Skip to content

Add token field to payment_received event data #600

Description

@Kingsman-99

Description

payment_received in contracts/split/src/events.rs emits (payer, amount, event_seq) but omits the token address. For multi-token invoices this makes off-chain reconciliation ambiguous. Adding token: &Address to the data tuple would allow indexers to distinguish XLM from USDC payments without a separate lookup.

Acceptance Criteria

  • Update payment_received(env, invoice_id, payer, amount) signature to add a token: &Address parameter
  • Include token in the published event data: (payer, amount, token, event_seq)
  • Update all call sites in contracts/split/src/lib.rs
  • Update tests that assert the event data shape
  • cargo test passes

Context

  • Target file: contracts/split/src/events.rs, call sites in contracts/split/src/lib.rs

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highComplex feature requiring deep knowledge - 200 ptsenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions