-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.template.yaml
57 lines (57 loc) · 2.11 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: DonationVotingMerkleDistribution
network: {{ network }}
source:
address: '{{ donationVotingMerkleDistrobutionAddress }}'
abi: DonationVotingMerkleDistribution
startBlock: {{ startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Allocated
- Appealed
- BatchPayoutSuccessful
- Claimed
- Distributed
- DistributionUpdated
- FundsDistributed
- Initialized
- PoolActive
- RecipientStatusUpdated
- Registered
- TimestampsUpdated
abis:
- name: DonationVotingMerkleDistribution
file: ./abis/DonationVotingMerkleDistribution.json
eventHandlers:
- event: Allocated(indexed address,uint256,address,address)
handler: handleAllocated
- event: Appealed(indexed address,bytes,address)
handler: handleAppealed
- event: BatchPayoutSuccessful(indexed address)
handler: handleBatchPayoutSuccessful
- event: Claimed(indexed address,address,uint256,address)
handler: handleClaimed
- event: Distributed(indexed address,address,uint256,address)
handler: handleDistributed
- event: DistributionUpdated(bytes32,(uint256,string))
handler: handleDistributionUpdated
- event: FundsDistributed(uint256,address,indexed address,indexed address)
handler: handleFundsDistributed
- event: Initialized(address,bytes32,uint256,bytes)
handler: handleInitialized
- event: PoolActive(bool)
handler: handlePoolActive
- event: RecipientStatusUpdated(indexed uint256,uint256,address)
handler: handleRecipientStatusUpdated
- event: Registered(indexed address,bytes,address)
handler: handleRegistered
- event: TimestampsUpdated(uint256,uint256,uint256,uint256,address)
handler: handleTimestampsUpdated
file: ./src/donation-voting-merkle-distribution.ts