Skip to content

Implement SorobanOnchainAdapter for Live Soroban Transactions #203

@Cedarich

Description

@Cedarich

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).

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions