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
Context
- Target file:
contracts/split/src/events.rs, call sites in contracts/split/src/lib.rs
Description
payment_receivedincontracts/split/src/events.rsemits(payer, amount, event_seq)but omits the token address. For multi-token invoices this makes off-chain reconciliation ambiguous. Addingtoken: &Addressto the data tuple would allow indexers to distinguish XLM from USDC payments without a separate lookup.Acceptance Criteria
payment_received(env, invoice_id, payer, amount)signature to add atoken: &Addressparametertokenin the published event data:(payer, amount, token, event_seq)contracts/split/src/lib.rscargo testpassesContext
contracts/split/src/events.rs, call sites incontracts/split/src/lib.rs