Skip to content

raiku-protocol/raiku-programs

Repository files navigation

Raiku Programs

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.

Prerequisites

Development

Initial Setup

gcloud auth login     # Authenticate with GCloud
make setup            # Installs Anchor, sets up git hooks
make sync-secrets     # Syncs secrets from GCloud to .env

Build & Test

make build            # Builds all Anchor programs
make test             # Runs all tests (doc tests + Anchor tests)

Code Quality

make fmt              # Check Rust formatting
make clippy           # Run Clippy linter
yarn lint             # Check TypeScript formatting

Programs

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

Initialization after new validator

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

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors