From dc0a9a6cabc731a7aef51033dff9f05c1d31c84c Mon Sep 17 00:00:00 2001 From: Paymahn Moghadasian Date: Thu, 30 May 2024 10:04:14 -0500 Subject: [PATCH] bump api version again and fix handleblock --- src/mappings/blocks.ts | 6 +++--- subgraph.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100755 => 100644 subgraph.yaml diff --git a/src/mappings/blocks.ts b/src/mappings/blocks.ts index 67d4e71..54610b2 100755 --- a/src/mappings/blocks.ts +++ b/src/mappings/blocks.ts @@ -1,12 +1,12 @@ import { - EthereumBlock + ethereum } from "@graphprotocol/graph-ts" import { Block } from "../../generated/schema" -export function handleBlock(block: EthereumBlock): void { +export function handleBlock(block: ethereum.Block): void { let id = block.hash.toHex() let blockEntity = new Block(id); blockEntity.number = block.number; @@ -23,4 +23,4 @@ export function handleBlock(block: EthereumBlock): void { blockEntity.size = block.size; blockEntity.unclesHash = block.unclesHash.toHex(); blockEntity.save(); - } \ No newline at end of file + } diff --git a/subgraph.yaml b/subgraph.yaml old mode 100755 new mode 100644 index 0ce974d..3325d6b --- a/subgraph.yaml +++ b/subgraph.yaml @@ -13,7 +13,7 @@ dataSources: startBlock: 192 mapping: kind: ethereum/events - apiVersion: 0.0.5 + apiVersion: 0.0.6 language: wasm/assemblyscript entities: - ConverterAddition