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..d2a3460 --- /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