Skip to content

Commit ddedb04

Browse files
authored
Merge pull request #65 from Vaibhavjindal29/vaibhav
This will add the logIndex to checkpoint query.
2 parents 2904eaa + 9c035f6 commit ddedb04

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

root/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ type Checkpoint @entity {
77
start: BigInt!
88
end: BigInt!
99
root: Bytes!
10+
logIndex: String!
1011
transactionHash: Bytes!
1112
timestamp: BigInt!
1213
}

root/src/mappings/checkpoint.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export function handleNewHeaderBlock(event: NewHeaderBlock): void {
1818
entity.start = event.params.start
1919
entity.end = event.params.end
2020
entity.root = event.params.root
21+
entity.logIndex = event.logIndex.toString()
2122

2223
entity.transactionHash = event.transaction.hash
2324
entity.timestamp = event.block.timestamp

0 commit comments

Comments
 (0)