Rust workspace for StellarAid Soroban smart contracts.
contracts/
donation/ # Donation smart contract
withdrawal/ # Withdrawal smart contract
campaign/ # Campaign smart contract
sdk/ # Shared SDK (Horizon client, Soroban RPC, keypair utils, config)
worker/ # Background worker binary
scripts/ # Deployment scripts
docs/ # Documentation
- Rust toolchain (see
rust-toolchain.toml) - wasm32 target:
rustup target add wasm32-unknown-unknown - Soroban CLI:
cargo install --locked soroban-cli
cp .env.example .env
make build
make testSee docs/DEPLOY.md for deployment instructions.
- Rust toolchain (stable): https://rustup.rs
- wasm32 target:
rustup target add wasm32-unknown-unknown - Soroban CLI:
cargo install --locked soroban-cli --features opt - Verify:
soroban --version
soroban network add --global testnet \
--rpc-url https://soroban-testnet.stellar.org \
--network-passphrase "Test SDF Network ; September 2015"