From 360a4a36f50ee8e0898d7db6ae24cc823c3e05cf Mon Sep 17 00:00:00 2001 From: Benjamin Levesque <14175665+benjlevesque@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:41:47 +0100 Subject: [PATCH 1/2] feat: sepolia --- package.json | 2 +- subgraph-sepolia.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 subgraph-sepolia.yaml diff --git a/package.json b/package.json index 6dd60c5..3c47431 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ RequestNetwork/request-storage", "create-local": "graph create --node http://localhost:8020/ RequestNetwork/request-storage", "remove-local": "graph remove --node http://localhost:8020/ RequestNetwork/request-storage", - "deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 RequestNetwork/request-storage", + "deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 --version-label $(git rev-parse --short HEAD) RequestNetwork/request-storage", "monitor-deployment-local": "ts-node cli/monitor.ts" }, "dependencies": { diff --git a/subgraph-sepolia.yaml b/subgraph-sepolia.yaml new file mode 100644 index 0000000..2e8993f --- /dev/null +++ b/subgraph-sepolia.yaml @@ -0,0 +1,26 @@ +specVersion: 0.0.4 +schema: + file: ./schema.graphql +features: + - ipfsOnEthereumContracts +dataSources: + - kind: ethereum/contract + name: Contract + network: sepolia + source: + address: "0xd6c085A4D14e9e171f4aF58F7F48bd81173f167E" + abi: Contract + startBlock: 4734914 + mapping: + kind: ethereum/events + apiVersion: 0.0.6 + language: wasm/assemblyscript + entities: + - NewHash + abis: + - name: Contract + file: ./abis/Contract.json + eventHandlers: + - event: NewHash(string,address,bytes) + handler: handleNewHash + file: ./src/mapping.ts From 51b9479369b6fe43d4bddc426c7868573cbcebb5 Mon Sep 17 00:00:00 2001 From: Benjamin Levesque <14175665+benjlevesque@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:42:59 +0100 Subject: [PATCH 2/2] format --- subgraph-sepolia.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgraph-sepolia.yaml b/subgraph-sepolia.yaml index 2e8993f..d2a3460 100644 --- a/subgraph-sepolia.yaml +++ b/subgraph-sepolia.yaml @@ -6,7 +6,7 @@ features: dataSources: - kind: ethereum/contract name: Contract - network: sepolia + network: sepolia source: address: "0xd6c085A4D14e9e171f4aF58F7F48bd81173f167E" abi: Contract