Complexity Score: 200
Description
The current OnchainModule uses a MockOnchainAdapter. For Wave 3, we need a production-ready SorobanOnchainAdapter that interacts with the AidEscrow contract on the Stellar Testnet/Mainnet using the Stellar SDK.
Requirements
- Create
SorobanOnchainAdapter in app/backend/src/onchain/soroban-onchain.adapter.ts.
- Implement
initEscrow, createClaim, and disburse methods.
- Use the Stellar SDK to build, sign, and submit Soroban transactions.
- Handle transaction submission errors and parse XDR for results.
- Ensure the adapter is correctly instantiated in
onchain.module.ts when ONCHAIN_ADAPTER=soroban.
Tech Stack
- NestJS, Stellar SDK (@stellar/stellar-sdk), Soroban CLI (for local testing).
Complexity Score: 200
Description
The current
OnchainModuleuses aMockOnchainAdapter. For Wave 3, we need a production-readySorobanOnchainAdapterthat interacts with theAidEscrowcontract on the Stellar Testnet/Mainnet using the Stellar SDK.Requirements
SorobanOnchainAdapterinapp/backend/src/onchain/soroban-onchain.adapter.ts.initEscrow,createClaim, anddisbursemethods.onchain.module.tswhenONCHAIN_ADAPTER=soroban.Tech Stack