Task
Implement the deposit and release functions in the Soroban escrow contract.
Details
- In
contracts/src/escrow.rs
deposit(): Hold funds in contract, record milestone conditions
release(): Verify milestone met, release funds to recipient
- Handle refund to depositor if conditions not met
- Emit events for deposit, release, refund
Path
Test
Run cd contracts && cargo build to verify.
Task
Implement the deposit and release functions in the Soroban escrow contract.
Details
contracts/src/escrow.rsdeposit(): Hold funds in contract, record milestone conditionsrelease(): Verify milestone met, release funds to recipientPath
contracts/src/escrow.rsTest
Run
cd contracts && cargo buildto verify.