Guidance for AI agents working in the WaveFlow repository.
WaveFlow is a Stellar/Soroban bounty escrow system. Maintainers fund programs linked to GitHub repos; merged PRs trigger gateway attestations that pay contributors on-chain.
From repo root:
docker-compose up -d
cargo build --workspace
cargo test --workspace
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo run -p waveflow-gateway
cargo run -p waveflow-apiSingle test:
cargo test -p waveflow-escrow record_merge_pays_contributor
cargo test -p waveflow-gateway verify_github_signature- Gateway:
DATABASE_URL,GITHUB_WEBHOOK_SECRET,SOROBAN_RPC_URL,GATEWAY_SECRET_KEY - API:
DATABASE_URL,API_ADMIN_KEYS,PORT
contracts/waveflow-escrow/src/contract.rs— on-chain escrow logiccrates/gateway/src/webhook.rs— GitHub webhook handlingcrates/gateway/src/attestation.rs— merge → chain payloadcrates/api/src/routes/— REST endpointsmigrations/— Postgres schema