feat(backend): implement SEP-10/SEP-24/SEP-6 Stellar Anchor Client#858
Open
Faithy5 wants to merge 1 commit into
Open
feat(backend): implement SEP-10/SEP-24/SEP-6 Stellar Anchor Client#858Faithy5 wants to merge 1 commit into
Faithy5 wants to merge 1 commit into
Conversation
- SEP-10: authenticate with anchor via challenge/response JWT flow - SEP-24: interactive withdrawal with bank detail fields (dest, dest_extra) - SEP-6: non-interactive withdrawal fallback - AnchorRegistry: in-memory payout store with background polling state machine - fetch stellar.toml to discover web_auth and transfer_server endpoints - map anchor transaction statuses to AnchorPayoutStatus enum - spawn async task per payout to run SEP flow and advance status Closes Fracverse#816
|
@Faithy5 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
@Faithy5 clippy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Stellar Anchor client in
stellar_anchor.rsper issue #816.Changes
backend/src/stellar_anchor.rsWEB_AUTH_ENDPOINT, submits (mock-)signed transaction, receives JWT/transactions/withdraw/interactivewith asset code, account, and bank detail fields (dest,dest_extra,type) formatted per SEP-9 KYC spec/withdrawfallback when SEP-24 transfer server is not available/.well-known/stellar.tomlto resolveWEB_AUTH_ENDPOINT,TRANSFER_SERVER_SEP0024, andTRANSFER_SERVERGET /transactionup to 10× (3 s apart) mapping anchor statuses toAnchorPayoutStatusAnchorRegistry: in-memory payout store,create_payoutspawns a background Tokio task running the full SEP flow and advancing payout statusbackend/Cargo.tomlreqwest 0.12(rustls-tls),hmac 0.12,sha2 0.10,hex 0.4,base64 0.22Acceptance Criteria
cargo buildpasses with zero errors and zero warnings from project codeCloses #816