-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.kovan.yaml
98 lines (97 loc) · 3.45 KB
/
subgraph.kovan.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: PoolDeposits
network: kovan
source:
address: "0xc4DA2De9eAA62cEE78E56e4772847Ab516DE011e"
abi: PoolDeposits
startBlock: 19110000
#startBlock: 19114254
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- DepositAdded
- DepositWithdrawn
- EmergencyStateReached
- EmergencyVote
- EmergencyWithdrawl
- ProposalAdded
- ProposalWithdrawn
- RemoveEmergencyVote
- InterestSent
- WinnerPayout
- PartialDepositWithdrawn
abis:
- name: PoolDeposits
file: ./abis/PoolDeposits.json
eventHandlers:
- event: DepositAdded(indexed address,uint256)
handler: handleDepositAdded
- event: DepositWithdrawn(indexed address)
handler: handleDepositWithdrawn
- event: EmergencyStateReached(indexed address,uint256,uint256,uint256)
handler: handleEmergencyStateReached
- event: EmergencyVote(indexed address,uint256)
handler: handleEmergencyVote
- event: EmergencyWithdrawl(indexed address)
handler: handleEmergencyWithdrawl
- event: ProposalAdded(indexed address,indexed uint256,string)
handler: handleProposalAdded
- event: ProposalWithdrawn(indexed address)
handler: handleProposalWithdrawn
- event: RemoveEmergencyVote(indexed address,uint256)
handler: handleRemoveEmergencyVote
- event: InterestSent(indexed address,uint256)
handler: handleInterestSent
- event: PartialDepositWithdrawn(indexed address,uint256)
handler: handlePartialDepositWithdrawn
- event: WinnerPayout(indexed address,indexed uint256,uint256)
handler: handleWinnerPayout
file: ./src/poolDepositsHandlers.ts
- kind: ethereum/contract
name: NoLossDao
network: kovan
source:
address: "0xd5e1d6FC3395dF77105509Ca7123D84EFdc7B20d"
abi: NoLossDao
startBlock: 19110000
#startBlock: 19114218
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- IterationChanged
- IterationWinner
- VoteDelegated
- VotedDirect
- VotedViaProxy
- ProposalActive
- ProposalCooldown
- ProposalWithdrawn
abis:
- name: NoLossDao
file: ./abis/NoLossDao.json
eventHandlers:
- event: IterationChanged(indexed uint256,address,uint256)
handler: handleIterationChanged
- event: IterationWinner(indexed uint256,indexed address,indexed uint256)
handler: handleIterationWinner
- event: VoteDelegated(indexed address,address)
handler: handleVoteDelegated
- event: VotedDirect(indexed address,indexed uint256,indexed uint256)
handler: handleVotedDirect
- event: VotedViaProxy(indexed address,address,indexed uint256,indexed uint256)
handler: handleVotedViaProxy
- event: ProposalActive(indexed uint256,address,uint256)
handler: handleProposalActive
- event: ProposalCooldown(indexed uint256,uint256)
handler: handleProposalCooldown
- event: ProposalWithdrawn(indexed uint256,uint256)
handler: handleProposalWithdrawn
file: ./src/noLossDaoHandlers.ts