Category: Escrow Contract
Difficulty: advanced
Labels: soroban, rust, advanced
Files involved
contracts/escrow/src/lib.rs
Background
Depends on the RFC issue above. Implement the agreed authorization check (signature verification, multi-sig, or oracle/timelock) before releasing funds.
This issue is part of the RemitX contributor backlog, generated from a full codebase audit of the project. RemitX is a Stellar-based remittance platform (Next.js 16, Prisma/Postgres, the Stellar SDK, and a Soroban escrow contract) currently at the "foundation build" stage: auth and the data model are real, while the Stellar integration, escrow contract internals, and several frontend pages are intentionally scaffolded with TODO(contributor) markers. See FOUNDATION.md in the repo root for the full project map and current status of every subsystem before starting.
Suggested approach
- Review the current implementation in
contracts/escrow/src/lib.rs and confirm the stub/gap described below.
- Depends on the RFC issue above. Implement the agreed authorization check (signature verification, multi-sig, or oracle/timelock) before releasing funds.
- Handle the edge cases and failure modes called out in the acceptance criteria below (e.g. unauthorized release() calls fail).
- Add or update tests so the behavior is verifiable and won't silently regress.
- Update any relevant comments/docs (e.g. remove the
TODO(contributor) marker this issue resolves, if applicable).
Acceptance criteria
Notes for contributors
- Keep the change scoped to this issue — if you notice other stubs or bugs nearby, open a separate issue rather than bundling fixes into this PR.
- Match the existing code style in the surrounding file. This codebase uses TypeScript strict mode, Zod for input validation, and the shared
successResponse/errorResponse helpers in src/lib/api-response.ts for every API route.
- If this issue depends on another issue in this area being done first, check the related issues below before starting — some subsystems (e.g. the escrow contract's
release() authorization) need a design decision made before implementation can proceed.
- Please reference this issue number in your PR description, and check off acceptance criteria as you satisfy them.
Related issues in this area
ISSUE #21
Category: Escrow Contract
Difficulty:
advancedLabels:
soroban,rust,advancedFiles involved
contracts/escrow/src/lib.rsBackground
Depends on the RFC issue above. Implement the agreed authorization check (signature verification, multi-sig, or oracle/timelock) before releasing funds.
This issue is part of the RemitX contributor backlog, generated from a full codebase audit of the project. RemitX is a Stellar-based remittance platform (Next.js 16, Prisma/Postgres, the Stellar SDK, and a Soroban escrow contract) currently at the "foundation build" stage: auth and the data model are real, while the Stellar integration, escrow contract internals, and several frontend pages are intentionally scaffolded with
TODO(contributor)markers. SeeFOUNDATION.mdin the repo root for the full project map and current status of every subsystem before starting.Suggested approach
contracts/escrow/src/lib.rsand confirm the stub/gap described below.TODO(contributor)marker this issue resolves, if applicable).Acceptance criteria
Notes for contributors
successResponse/errorResponsehelpers insrc/lib/api-response.tsfor every API route.release()authorization) need a design decision made before implementation can proceed.Related issues in this area