Skip to content

Soroban Contract Call Helpers (Frontend) #8

Description

@soomtochukwu

Description
apps/web/lib/contracts.ts stubs depositEscrow, releaseMilestone, and openDispute. These helpers bridge the UI to the on-chain contracts via Freighter.

Requirements

  • Build a Soroban invocation XDR for each contract function using @stellar/stellar-sdk
  • Pass XDR to signTransaction() (from stellar.ts); submit signed XDR to Soroban RPC
  • Return the confirmed transaction hash
  • Display a loading state during submission (handled by the calling component)

Acceptance Criteria

  • depositEscrow on Testnet locks USDC and returns a tx hash
  • releaseMilestone transitions the escrow job milestone on-chain
  • Invalid parameters (e.g. zero amount) throw before submitting a transaction

Metadata

Metadata

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