-
Notifications
You must be signed in to change notification settings - Fork 6
/
subgraph.yaml
180 lines (180 loc) · 5.72 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: VoteProxyFactory
network: mainnet
source:
address: '0x868ba9aeacA5B73c7C27F3B01588bf4F1339F2bC'
abi: VoteProxyFactory
startBlock: 7707803
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- VoterRegistry
- Slate
- Spell
- Poll
- VoteProxy
- Action
- GovernanceInfo
abis:
- name: VoteProxyFactory
file: ./abis/VoteProxyFactory.json
eventHandlers:
- event: LinkConfirmed(indexed address,indexed address,indexed address)
handler: handleLinkConfirmed
file: ./src/mappings/VoteProxyFactory.ts
- kind: ethereum/contract
name: DSChief
network: mainnet
source:
address: '0x9eF05f7F6deB616fd37aC3c959a2dDD25A54E4F5'
abi: DSChief
startBlock: 7705360
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- VoterRegistry
- Slate
- Spell
- Poll
- VoteProxy
- Action
- GovernanceInfo
abis:
- name: DSChief
file: ./abis/DSChief.json
- name: DSSpell
file: ./abis/DSSpell.json
- name: RaiseCeilingLowerSF
file: ./abis/RaiseCeilingLowerSF.json
- name: DssSpellPaused
file: ./abis/DssSpellPaused.json
eventHandlers:
- event: LogNote(indexed bytes4,indexed address,indexed bytes32,indexed bytes32,uint256,bytes)
topic0: '0xdd46706400000000000000000000000000000000000000000000000000000000' # lock(uint)
handler: handleLock
- event: LogNote(indexed bytes4,indexed address,indexed bytes32,indexed bytes32,uint256,bytes)
topic0: '0xd8ccd0f300000000000000000000000000000000000000000000000000000000' # free(uint)
handler: handleFree
- event: LogNote(indexed bytes4,indexed address,indexed bytes32,indexed bytes32,uint256,bytes)
topic0: '0xa69beaba00000000000000000000000000000000000000000000000000000000' # vote(bytes32)
handler: handleVote
- event: LogNote(indexed bytes4,indexed address,indexed bytes32,indexed bytes32,uint256,bytes)
topic0: '0xed08132900000000000000000000000000000000000000000000000000000000' # vote(address[])
handler: handleVoteArray
- event: LogNote(indexed bytes4,indexed address,indexed bytes32,indexed bytes32,uint256,bytes)
topic0: '0x3c278bd500000000000000000000000000000000000000000000000000000000' # lift(address)
handler: handleLift
- event: Etch(indexed bytes32)
handler: handleEtch
file: ./src/mappings/DSChief.ts
- kind: ethereum/contract
name: PollingEmitter
network: mainnet
source:
address: '0xF9be8F0945acDdeeDaA64DFCA5Fe9629D0CF8E5D'
abi: PollingEmitter
startBlock: 8122205
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- VoterRegistry
- Slate
- Spell
- Poll
- VoteProxy
- Action
- GovernanceInfo
abis:
- name: PollingEmitter
file: ./abis/PollingEmitter.json
eventHandlers:
- event: PollCreated(indexed address,uint256,indexed uint256,uint256,uint256,string,string)
handler: handlePollCreated
- event: Voted(indexed address,indexed uint256,indexed uint256)
handler: handlePollVote
- event: PollWithdrawn(indexed address,uint256,uint256)
handler: handlePollWithdraw
file: ./src/mappings/PollingEmitter.ts
templates:
- name: DSSpell
kind: ethereum/contract
network: mainnet
source:
abi: DSSpell
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- VoterRegistry
- Slate
- Spell
- Poll
- VoteProxy
- Action
- GovernanceInfo
abis:
- name: DSSpell
file: ./abis/DSSpell.json
- name: DSChief
file: ./abis/DSChief.json
eventHandlers:
- event: LogNote(indexed bytes4,indexed address,indexed bytes32,indexed bytes32,uint256,bytes)
topic0: '0x96d373e500000000000000000000000000000000000000000000000000000000' # cast()
handler: handleCast
file: ./src/mappings/DSSpell.ts
- name: RaiseCeilingLowerSF
kind: ethereum/contract
network: mainnet
source:
abi: RaiseCeilingLowerSF
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Spell
- Action
- GovernanceInfo
abis:
- name: RaiseCeilingLowerSF
file: ./abis/RaiseCeilingLowerSF.json
- name: DSChief
file: ./abis/DSChief.json
eventHandlers:
- event: LogNote(indexed bytes4,indexed address,indexed bytes32,indexed bytes32,uint256,bytes)
topic0: '0x96d373e500000000000000000000000000000000000000000000000000000000' # cast()
handler: handleCast
file: ./src/mappings/RaiseCeilingLowerSF.ts
- name: DssSpellPaused
kind: ethereum/contract
network: mainnet
source:
abi: DssSpellPaused
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Spell
- Action
- GovernanceInfo
abis:
- name: DssSpellPaused
file: ./abis/DssSpellPaused.json
- name: DSChief
file: ./abis/DSChief.json
callHandlers:
- function: cast()
handler: handleCast
file: ./src/mappings/DssSpellPaused.ts