Skip to content

Commit

Permalink
Merge pull request #65 from Vaibhavjindal29/vaibhav
Browse files Browse the repository at this point in the history
This will add the logIndex to checkpoint query.
  • Loading branch information
0xKrishna authored Jun 3, 2022
2 parents 2904eaa + 9c035f6 commit ddedb04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions root/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ type Checkpoint @entity {
start: BigInt!
end: BigInt!
root: Bytes!
logIndex: String!
transactionHash: Bytes!
timestamp: BigInt!
}
Expand Down
1 change: 1 addition & 0 deletions root/src/mappings/checkpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function handleNewHeaderBlock(event: NewHeaderBlock): void {
entity.start = event.params.start
entity.end = event.params.end
entity.root = event.params.root
entity.logIndex = event.logIndex.toString()

entity.transactionHash = event.transaction.hash
entity.timestamp = event.block.timestamp
Expand Down

0 comments on commit ddedb04

Please sign in to comment.