Skip to content

Add multisig proposal REST API endpoints #129

Description

@codebestia

Create apps/backend/src/routes/treasury.ts with authenticated endpoints: POST /treasury/propose, POST /treasury/proposals/:id/approve, POST /treasury/proposals/:id/reject, POST /treasury/proposals/:id/execute, GET /treasury/proposals?conversationId=, GET /treasury/proposals/:id. Each mutating endpoint calls the corresponding on-chain contract function via Stellar SDK and syncs the DB. Mount under /treasury.

Acceptance criteria:

  • All routes return 403 for non-members
  • POST /treasury/propose returns { id, onChainId, status: 'pending' }
  • DB row status stays in sync with on-chain status

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions