Skip to content

Add deterministic event ordering tests for multi-operation transactions #1748

Description

@Jagadeeshftw

Area: Events / indexer correctness · Estimated effort: 6–10 h

Problem

Event schema/versioning docs exist and many operations emit multiple events, but consumers need a guaranteed order when a batch changes several records.

Design decision required

Define event ordering as part of the ABI and decide whether failed operations emit compensating or no events.

Requirements

  • Exercise batch, payout split, fee, and rollback paths
  • assert topics/data/order and absence on failed transactions.

Acceptance criteria

  • Event ordering is documented, golden fixtures cover multi-event transactions, and failure paths do not emit misleading success events.

Out of scope

  • Unrelated refactors, dependency upgrades, or behavior changes outside the stated scope.
  • Closing, deleting, or weakening existing tests to make the change pass.

Verification

cargo test --manifest-path contracts/bounty_escrow/Cargo.toml --workspace events -- --nocapture

PR requirements

  • Explain the before/after behavior and include the evidence requested above.
  • Add regression tests for the changed behavior and report relevant build, test, lint, and artifact results.
  • Keep the PR focused and reference this issue.
  • Please open the PR within 48 hours of assignment so the work remains active; ask a question in the issue if the scope needs clarification.

Good luck, and please join the contributor Telegram group if you want to discuss the work: https://t.me/+u5qmu35nZ7I0OTU1

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions