-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Which packages are impacted by your issue?
@graphprotocol/graph-ts
Describe the issue
Problem
When looking at these types:
graph-tooling/packages/ts/chain/ethereum.ts
Lines 626 to 627 in 4b4ad3e
| public logIndex: BigInt, | |
| public transactionLogIndex: BigInt, |
It's not obvious that the logIndex is the index of the event in the entire block, whereas transactionLogIndex is the index of the event in the transaction.
Confused Users
- What is the `index` field in the `Transaction` type provided by The Graph? #2035
- https://discord.com/channels/438038660412342282/438070183794573313/950636887436054538
Solution
- Rename
Event.logIndextoEvent.blockLogIndex. - For backward-compatibility, maintain
Event.logIndex, but annotate it as deprecated.
Related
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working