feat(engine): implement SEP-6 programmatic deposit and withdrawal endpoints

Aperta
#4 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
fastapi, python
Ambito
api, backend

Direzione di ricerca

Start by reading engine/app/sep1.py and engine/app/main.py, then review the existing SEP-24 implementation to understand how routes are registered and authenticated. Implement the SEP-6 endpoints in engine/app/sep6.py, add any required migration, and cover the acceptance criteria with integration tests in engine/tests/test_sep6.py; done means the endpoints, JWT account scoping, and tests work as specified.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

complexity: high engine

Context

SEPBox currently implements interactive ramps (SEP-24), but many programmatic wallets, fintech backends, and server-to-server integrations rely on SEP-6 non-interactive deposit and withdrawal endpoints.

Scope & Target Files

  • Create engine/app/sep6.py and register the router in engine/app/main.py
  • Update engine/app/sep1.py (stellar.toml) to advertise TRANSFER_SERVER
  • Add Alembic migration (if new fields/tables are required) and engine/tests/test_sep6.py

Acceptance Criteria

  • Implement GET /sep6/info returning supported deposit/withdrawal assets, limits, and fee metadata.
  • Implement authenticated GET /sep6/deposit and GET /sep6/withdraw endpoints accepting optional SEP-38 quote_id and SEP-12 customer validation.
  • Implement GET /sep6/transaction and GET /sep6/transactions scoped strictly to the authenticated JWT sub account.
  • Add full integration tests in engine/tests/test_sep6.py covering auth, deposit, withdrawal, and error responses.
Lingua principale
Python
Stelle
0
Fork
1
Merge medio
19h 43m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sepbox-dev/sepbox

Tutte le issue di sepbox-dev/sepbox

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.