Feature/anchor payout events#872
Open
Promzy204-bad wants to merge 2 commits into
Open
Conversation
- Add POST /api/commitments/validate route with per-field rules - CreateCommitmentStepConfigure: debounced (500ms) server validation, AbortController cancellation, aria-invalid/aria-describedby, blocks advance on errors with graceful server-down fallback - 18 unit tests covering debounce, field-error mapping, blocking advance, request cancellation, loading state, and multiple simultaneous errors - docs/CREATE_DRAFT_VALIDATION.md documents the validate contract
- Emit 'payout' event per beneficiary with topics (symbol, owner, address) and data=share - Emit 'anchor_pay' event when fiat_anchor_info is non-empty, data=(share, fiat_anchor_info) - Add 3 tests covering fiat/non-fiat/mixed event emission scenarios
|
@Promzy204-bad 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
|
@Promzy204-bad |
Contributor
|
@Promzy204-bad |
Contributor
|
@Promzy204-bad |
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.
feat(contract): Emit payout and fiat anchor off-ramp events in trigger_payout
Summary
Adds Soroban event emission to the trigger_payout procedure to enable the backend to detect and execute Stellar
Anchor SEP off-ramp flows for fiat beneficiaries.
Changes
trigger_payout in lib.rs
beneficiary_address), data: (share, fiat_anchor_info) — carries the exact amount and bank/mobile-money routing
string the backend needs to initiate the SEP-24/31 flow
Tests (test.rs)
present
fiat_anchor_info is empty
of two beneficiaries has fiat routing, and that token balances remain correct
Acceptance Criteria
closes #834