Skip to content

Conversation

@kkovaacs
Copy link
Contributor

Changes

To make creating unique IDs (like used by Voyager, that combines the block number, the transaction index, and the event index within the transaction) possible without additional JSON-RPC calls, this change adds two new indices to the context of emitted events:

  • transaction_index is the index of the transaction within the block that has emitted the event.
  • event_index is the index of the event within the transaction.

This change also brings us closer to feature parity with the Ethereum JSON-RPC API, where eth_getLogs returns both the transaction index and the log index (the index of the event within the block).

Checklist:

  • Validated the specification files - npm run validate_all
  • Applied formatting - npm run format
  • Performed code self-review
  • If making a new release, checked out the guidelines

… emitted event context

To make creating unique IDs (like used by Voyager, that combines the
block number, the transaction index, and the event index within the transaction)
possible without additional JSON-RPC calls, this change adds two new
indices to the context of emitted events:

- `transaction_index` is the index of the transaction within the block that has
emitted the event.
- `event_index` is the index of the event within the transaction.
@kkovaacs kkovaacs changed the base branch from master to release/v0.10.0-rc.0 September 28, 2025 18:59
@eitanm-starkware eitanm-starkware changed the base branch from release/v0.10.0-rc.0 to release/v0.10.0-rc.1 October 22, 2025 13:39
@eitanm-starkware eitanm-starkware merged commit 3c4e87d into starkware-libs:release/v0.10.0-rc.1 Oct 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants