This repository contains the source code for the implementation of Jet Protocol v2 to run on the Solana network, and associated tools for using the protocol (like a web frontend). The protocol allows for users to participate in non-custodial borrowing and lending marketplaces.
The protocol is currently under active development, and all APIs are subject to change.
Auto-generated API docs are available here
Install yarn, anchor and the Solana CLI (instructions)
To run the frontend web application also requires wasm-pack, which can be installed with cargo
:
cargo install wasm-pack --locked
Run the full test suite used by the github CI workflow. This requires all dependencies to be installed:
./check
Run it in a docker container that already contains all the solana and anchor dependencies. This only requires docker:
./check in-docker
Run a single job from the workflow:
./check [in-docker] [job-name (e.g. e2e-test)]
Ensure you have a /app/.env
file with the required variables:
REACT_APP_RPC_TOKEN = <YOUR_RPC_TOKEN>
REACT_APP_RPC_DEV_TOKEN = <YOUR_DEV_RPC_TOKEN>
REACT_APP_IP_REGISTRY = <YOUR_IP_REGISTRY_TOKEN>
REACT_APP_LOGROCKET_PROJECT = ""
To run the app:
yarn
yarn --cwd packages build
yarn dev