Commit 17e7f84
committed
feat(starknet_getEvent): add
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.transaction_index and event_index to emitted event context1 parent 3dc21ae commit 17e7f84
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1117 | 1129 | | |
1118 | 1130 | | |
1119 | | - | |
| 1131 | + | |
1120 | 1132 | | |
1121 | 1133 | | |
1122 | 1134 | | |
| |||
0 commit comments