Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.14 KB

File metadata and controls

47 lines (35 loc) · 1.14 KB

StellarAid Contract

Rust workspace for StellarAid Soroban smart contracts.

Workspace Structure

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

Prerequisites

  • Rust toolchain (see rust-toolchain.toml)
  • wasm32 target: rustup target add wasm32-unknown-unknown
  • Soroban CLI: cargo install --locked soroban-cli

Quick Start

cp .env.example .env
make build
make test

See docs/DEPLOY.md for deployment instructions.

Prerequisites

  • 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

Configure Stellar Testnet

soroban network add --global testnet \
  --rpc-url https://soroban-testnet.stellar.org \
  --network-passphrase "Test SDF Network ; September 2015"