-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph_template.yaml
59 lines (59 loc) · 1.74 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
50
51
52
53
54
55
56
57
58
59
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: GraphcastRegistry
network: {{network}}
source:
abi: GraphcastRegistry
address: {{registry_address}}
startBlock: {{registry_block}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- OwnershipTransferred
- SetStaking
- Initialized
- SetGraphcastID
abis:
- name: GraphcastRegistry
file: ./abis/GraphcastRegistry.json
eventHandlers:
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: SetStaking(indexed address)
handler: handleSetStaking
- event: Initialized(uint8)
handler: handleInitialized
- event: SetGraphcastID(indexed address,indexed address)
handler: handleSetGraphcastID
file: ./src/graphcast-registry.ts
- kind: ethereum
name: ServiceRegistry
network: {{network}}
source:
abi: ServiceRegistry
address: {{service_address}}
startBlock: {{service_block}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- ContractSynced
- ParameterUpdated
- ServiceRegistered
- ServiceUnregistered
- SetController
abis:
- name: ServiceRegistry
file: ./abis/ServiceRegistry.json
eventHandlers:
- event: ServiceRegistered(indexed address,string,string)
handler: handleServiceRegistered
- event: ServiceUnregistered(indexed address)
handler: handleServiceUnregistered
file: ./src/service-registry.ts