Skip to content

Implement SEP-24 Anchor Deposit and Withdrawal Modal Flow #390

Description

@Cjay-Cyber-2

Description — what to implement and the why/impact.

Users need a reliable interface to deposit and withdraw fiat currency into stablecoins (like USDC) via Stellar SEP-24 anchors directly within the neobrutalist UI. This task implements the anchor modal flow, connecting user wallets to registered SEP-24 interactive anchor endpoints.

Context & Requirements — background, constraints, design references, edge cases;

  • Grounded in src/components/ui/ primitives and src/lib/types.ts for network communication.
  • Must handle popup or embedded iframe interactions required by SEP-24 interactive transfer specs.
  • Must gracefully manage network errors, anchor unavailability, and session timeouts.

Acceptance Criteria — a checklist ("- [ ] ...") of specific, testable conditions that define "done".

  • SEP-24 deposit and withdrawal modal components are implemented with neobrutalist styling.
  • Integration with API/anchor configuration fetches valid interactive transfer URLs.
  • Proper handling of modal close events and transaction status polling.
  • Unit tests for anchor URL builder and state reducer logic.

Implementation Guidance — likely files/modules to touch and a suggested approach.

  • Touch src/components/anchors/ (or create if needed) and integrate with API hooks in src/lib/. Refer to Stellar SEP-24 specifications for parameter encoding.

Testing & Validation — how the contributor should prove it works.

  • Run npm test and npm run typecheck to ensure type safety and test coverage.
  • Manual verification of modal open/close states and form validation.

Submission Guidelines — must open a PR that includes "Closes #"; assignment is required before starting.


Wave complexity: Medium

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programcomplexity: mediumModerate scope, some designfeaturestellarTouches Stellar / SEP flows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions