-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubgraph.yaml
24 lines (24 loc) · 865 Bytes
/
subgraph.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: EthrDIDLinkedResourcesRegistry
network: mainnet
source:
address: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"
abi: EthrDIDLinkedResourcesRegistry
startBlock: 0
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- NewResource
abis:
- name: EthrDIDLinkedResourcesRegistry
file: ../smart-contracts/artifacts/contracts/EthrDIDLinkedResourcesRegistry.sol/EthrDIDLinkedResourcesRegistry.json
eventHandlers:
- event: NewResource(indexed address,indexed uint256,indexed string,(uint256,(string,string,string,string,(uint40,uint64),uint256),bytes))
handler: handleNewResource
file: ./src/ethr-did-linked-resources-registry.ts