diff --git a/root/schema.graphql b/root/schema.graphql index 439a5b5..52cc9f4 100644 --- a/root/schema.graphql +++ b/root/schema.graphql @@ -7,6 +7,7 @@ type Checkpoint @entity { start: BigInt! end: BigInt! root: Bytes! + logIndex: String! transactionHash: Bytes! timestamp: BigInt! } diff --git a/root/src/mappings/checkpoint.ts b/root/src/mappings/checkpoint.ts index 1abb8d6..cd938d7 100644 --- a/root/src/mappings/checkpoint.ts +++ b/root/src/mappings/checkpoint.ts @@ -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