Solana smart contracts for the Raiku protocol, built using the Anchor framework. Currently includes the escrow contract for managing SOL escrow deposits in the marketplace.
- Anchor CLI (installed via
make setup) - Yarn
- Rust toolchain 1.89.0 (specified in
rust-toolchain.toml) - Solana CLI
- Google Cloud CLI (for secrets management)
gcloud auth login # Authenticate with GCloud
make setup # Installs Anchor, sets up git hooks
make sync-secrets # Syncs secrets from GCloud to .envmake build # Builds all Anchor programs
make test # Runs all tests (doc tests + Anchor tests)make fmt # Check Rust formatting
make clippy # Run Clippy linter
yarn lint # Check TypeScript formatting| Program | Address | Description |
|---|---|---|
escrow-contract |
ZXg7U1Jp2SQ4NEdzAW3F678CNjbkeS71GyVj6TesmJY |
Manages SOL escrow deposits for the marketplace |
escrow-v3 |
escWviLuqJ13okD1zzWe4GZ4eywBQE4PoGcCpjkPnuF |
Pinocchio rewrite of the escrow contract |
tip-distribution |
ACtcK99427U2aqQN8LqJx286fHoTX3kTM6VxFogw2qew |
Tip distribution for validators and stakers |
tip-payment |
2gwwdVTvEgXBnLKU8Dytb1aHiZ5AdJASUoeD2LLThBbX |
Tip payments for intra-slot |
RAIKU_RPC_URL=https://agave-1.rpc.devnet.raiku.sh RAIKU_WS_URL=wss://agave-1.ws.devnet.raiku.sh make init-programs \
AUTHORITY=2adCg2diZVaYk1XvhFec8Zm2bNaszaKud9GfvSPe1tHL \
EXPIRED_FUNDS_ACCOUNT=2adCg2diZVaYk1XvhFec8Zm2bNaszaKud9GfvSPe1tHL \
NUM_EPOCHS_VALID=3 \
MAX_VALIDATOR_COMMISSION_BPS=10000