-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
96 lines (95 loc) · 3.4 KB
/
subgraph.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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: PoolDeposits
network: mainnet
source:
address: "0x46441594290FC13e97dD2E2A9Cf49E114599bc38"
abi: PoolDeposits
startBlock: 10000000
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: mainnet
source:
address: "0xAc523606b34240A1d6C90CF1223f1B75136a14D1"
abi: NoLossDao
startBlock: 10000000
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