Open
Description
Which packages are impacted by your issue?
@graphprotocol/graph-ts
graph-tooling/packages/ts/chain/ethereum.ts
Lines 531 to 618 in 4b4ad3e
Describe the issue
It would be super duper helpful if the ethereum types, e.g. Transaction,
Event`, etc., contained explanatory comments.
Lacking this information leads to uncertainty, e.g.:
- What is the `index` field in the `Transaction` type provided by The Graph? #2035
- If an event was emitted multiple times in the same transaction, can we know the index of the event? #2036
- https://discord.com/channels/438038660412342282/438070183794573313/1276303366221201499
In particular, I see that you provide some types that are not part of the standard Ethereum JavaScript API, e.g. transactionLogIndex
. This index value can be easily misunderstood for the transactionIndex
, which is the index of the tx within the block.
Explanatory comments would provide clarity.