Skip to content

Commit

Permalink
feat: sepolia (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjlevesque authored Dec 14, 2023
1 parent 19db1fc commit cbd809a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
26 changes: 26 additions & 0 deletions subgraph-sepolia.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cbd809a

Please sign in to comment.