-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
49 lines (48 loc) · 1.42 KB
/
subgraph.template.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
specVersion: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: ProviderRegistry
network: "{{ network }}"
source:
address: "{{ providerRegistry }}"
abi: ProviderRegistry
startBlock: {{ providerRegistryStartBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Provider
abis:
- name: ProviderRegistry
file: ./abis/ProviderRegistry.json
eventHandlers:
- event: ProviderRegistered(indexed address)
handler: handleProviderRegisteredEvent
- event: ProviderDeregistered(indexed address)
handler: handleProviderDeregisteredEvent
file: ./src/mappings/provider-registry.ts
- kind: ethereum
name: DelegateRegistry
network: "{{ network }}"
source:
address: "{{ delegateRegistry }}"
abi: DelegateRegistry
startBlock: {{ delegateRegistryStartBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- DelegateContract
abis:
- name: DelegateRegistry
file: ./abis/DelegateRegistry.json
eventHandlers:
- event: DelegateContract(indexed address,indexed address,indexed address,bytes32,bool)
handler: handleDelegateContractEvent
file: ./src/mappings/delegate-registry.ts