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

Abierto
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
fastapi, python
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
0
Forks
1
Merge medio
19 h 43 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sepbox-dev/sepbox

Todos los issues de sepbox-dev/sepbox

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.