-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubgraph.template.yaml
68 lines (68 loc) · 2.07 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
60
61
62
63
64
65
66
67
68
specVersion: 0.0.3
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: GrantRegistry
network: {{ network }}
source:
address: "{{contracts.grantRegistry.address}}"
abi: GrantRegistry
startBlock: {{contracts.grantRegistry.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Grant
abis:
- name: GrantRegistry
file: ./abis/GrantRegistry.json
eventHandlers:
- event: GrantCreated(indexed uint96,indexed address,indexed address,(uint256,string),uint256)
handler: handleGrantCreated
- event: GrantUpdated(indexed uint96,indexed address,indexed address,(uint256,string),uint256)
handler: handleGrantUpdated
file: ./src/grantRegistry.ts
- kind: ethereum/contract
name: GrantRoundManager
network: {{ network }}
source:
address: "{{contracts.grantRoundManager.address}}"
abi: GrantRoundManager
startBlock: {{contracts.grantRoundManager.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- GrantRound
- GrantDonation
abis:
- name: GrantRoundManager
file: ./abis/GrantRoundManager.json
eventHandlers:
- event: GrantRoundCreated(address)
handler: handleGrantRoundCreated
- event: GrantDonation(indexed uint96,indexed address,uint256,address[],uint256)
handler: handleGrantDonation
file: ./src/grantRoundManager.ts
templates:
- kind: ethereum/contract
name: GrantRound
network: {{ network }}
source:
abi: GrantRound
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/grantRound.ts
entities:
- GrantRoundDonation
abis:
- name: GrantRound
file: ./abis/GrantRound.json
eventHandlers:
- event: AddMatchingFunds(uint256,indexed address)
handler: handleAddMatchingFunds