Skip to content

Include token in payment event; add invoice_frozen and allowlist_removed events - #656

Open
Onomebello wants to merge 1 commit into
Stellar-split:mainfrom
Onomebello:feat/payment-token-event-invoice-frozen-remove-allowlist
Open

Include token in payment event; add invoice_frozen and allowlist_removed events#656
Onomebello wants to merge 1 commit into
Stellar-split:mainfrom
Onomebello:feat/payment-token-event-invoice-frozen-remove-allowlist

Conversation

@Onomebello

@Onomebello Onomebello commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • payment_received events now include the funding token address (in addition to payer/amount/seq), updated consistently across all seven call sites: standard pay, multi-recipient pay, token pay, bridge pay, pool pay, delegated pay, and pay-on-behalf-of. This lets off-chain listeners disambiguate payments on invoices/pools that can be funded in more than one token without a separate lookup.
  • invoice_cloned now emits the ledger sequence number as its event data instead of an empty tuple, so clone events can be correlated to a point in time.
  • pause_invoice now also emits a new invoice_frozen event ((creator, ledger)) alongside the existing invoice_paused event, giving indexers a dedicated topic to key off of for freeze transitions.
  • New remove_allowlist entrypoint clears an invoice's entire payer allowlist in a single call (reopening it to any payer) and emits a new allowlist_removed event. It mirrors the existing add_allowed_payer/remove_allowed_payer auth (creator or co-creator) and pause checks, and is a no-op (no event) if the invoice is already open.

Test plan

…moved events

- payment_received event now carries the funding token address alongside
  payer/amount/seq, updated across all seven call sites (standard pay,
  multi-recipient pay, token pay, bridge pay, pool pay, delegated pay,
  and pay-on-behalf-of).
- invoice_cloned event now emits the ledger sequence number instead of
  empty data, so listeners can correlate clones to a point in time.
- pause_invoice now also emits a new invoice_frozen event (creator,
  ledger) alongside the existing invoice_paused event.
- Add remove_allowlist entrypoint to clear an invoice's entire payer
  allowlist in one call (reopening it to any payer) and emit a new
  allowlist_removed event; mirrors the existing add/remove_allowed_payer
  auth and pause checks.
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Onomebello 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! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

1 participant