forked from HausDAO/daohaus-supergraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
225 lines (225 loc) · 7.85 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: V2Factory
network: idchain
source:
address: "0xF42aFC058B7b6f80729e43021404549F69875652"
abi: V2Factory
startBlock: 2200328
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Register
abis:
- name: V2Factory
file: ./abis/V2Factory.json
- name: Erc20
file: ./abis/Erc20.json
- name: Erc20Bytes32
file: ./abis/Erc20Bytes32.json
eventHandlers:
- event: Register(uint256,address,indexed address,address[],uint256,uint256,uint256,uint256,uint256,uint256,uint256,string,uint256)
handler: handleRegisterV2
- event: Delete(address)
handler: handleDeleteV2
file: ./src/factory-mapping.ts
- kind: ethereum/contract
name: V21Factory
network: idchain
source:
address: "0x99B4525D6d6F6c3161D0abd6A58B482f46ad5Cd0"
abi: V21Factory
startBlock: 4996151
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Register
abis:
- name: V21Factory
file: ./abis/V21Factory.json
- name: V2Moloch
file: ./abis/V2Moloch.json
- name: V21Moloch
file: ./abis/V21Moloch.json
- name: Erc20
file: ./abis/Erc20.json
- name: Erc20Bytes32
file: ./abis/Erc20Bytes32.json
eventHandlers:
- event: SummonComplete(indexed address,address[],address[],uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256[])
handler: handleSummonV21
- event: Register(uint256,address,string,string,uint256)
handler: handleRegisterV21
file: ./src/factory-mapping.ts
- kind: ethereum/contract
name: MinionFactory
network: idchain
source:
address: "0x90253955D4066eE27C183B4644089a5A04A888F1"
abi: MinionFactory
startBlock: 4996029
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Moloch
- Minion
abis:
- name: V1Moloch
file: ./abis/V1Moloch.json
- name: MinionFactory
file: ./abis/MinionFactory.json
- name: Minion
file: ./abis/Minion.json
eventHandlers:
- event: SummonMinion(indexed address,indexed address,string,string)
handler: handleSummonedMinion
file: ./src/minion-factory-mapping.ts
templates:
- kind: ethereum/contract
name: MolochV1Template
network: idchain
source:
abi: V1Moloch
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/v1-mapping.ts
entities:
- Moloch
- Member
- Vote
- Proposal
- Badge
abis:
- name: V1Moloch
file: ./abis/V1Moloch.json
- name: Guildbank
file: ./abis/Guildbank.json
- name: Erc20
file: ./abis/Erc20.json
- name: Erc20Bytes32
file: ./abis/Erc20Bytes32.json
eventHandlers:
- event: SummonComplete(indexed address,uint256)
handler: handleSummonComplete
- event: SubmitProposal(uint256,indexed address,indexed address,indexed address,uint256,uint256)
handler: handleSubmitProposal
- event: SubmitVote(indexed uint256,indexed address,indexed address,uint8)
handler: handleSubmitVote
- event: ProcessProposal(indexed uint256,indexed address,indexed address,uint256,uint256,bool)
handler: handleProcessProposal
- event: Ragequit(indexed address,uint256)
handler: handleRagequit
- event: Abort(indexed uint256,address)
handler: handleAbort
- event: UpdateDelegateKey(indexed address,address)
handler: handleUpdateDelegateKey
- kind: ethereum/contract
name: MolochV2Template
network: idchain
source:
abi: V2Moloch
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/v2-mapping.ts
entities:
- Moloch
- TokenBalance
- Token
- Member
- Vote
- Proposal
- Badge
abis:
- name: V2Moloch
file: ./abis/V2Moloch.json
- name: Erc20
file: ./abis/Erc20.json
- name: Erc20Bytes32
file: ./abis/Erc20Bytes32.json
eventHandlers:
- event: SummonComplete(indexed address,address[],uint256,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleSummonComplete
- event: SubmitProposal(indexed address,uint256,uint256,uint256,address,uint256,address,string,bool[6],uint256,indexed address,indexed address)
handler: handleSubmitProposal
- event: SubmitVote(uint256,indexed uint256,indexed address,indexed address,uint8)
handler: handleSubmitVote
- event: SponsorProposal(indexed address,indexed address,uint256,uint256,uint256)
handler: handleSponsorProposal
- event: ProcessProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessProposal
- event: ProcessGuildKickProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessGuildKickProposal
- event: ProcessWhitelistProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessWhitelistProposal
- event: UpdateDelegateKey(indexed address,address)
handler: handleUpdateDelegateKey
- event: CancelProposal(indexed uint256,address)
handler: handleCancelProposal
- event: Withdraw(indexed address,address,uint256)
handler: handleWithdraw
- event: Ragequit(indexed address,uint256,uint256)
handler: handleRagequit
- event: TokensCollected(indexed address,uint256)
handler: handleTokensCollected
- kind: ethereum/contract
name: MolochV21Template
network: idchain
source:
abi: V21Moloch
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/v2-mapping.ts
entities:
- Moloch
- TokenBalance
- Token
- Member
- Vote
- Proposal
abis:
- name: V21Moloch
file: ./abis/V21Moloch.json
- name: V2Moloch
file: ./abis/V2Moloch.json
- name: Erc20
file: ./abis/Erc20.json
- name: Erc20Bytes32
file: ./abis/Erc20Bytes32.json
eventHandlers:
- event: SubmitProposal(indexed address,uint256,uint256,uint256,address,uint256,address,string,bool[6],uint256,indexed address,indexed address)
handler: handleSubmitProposal
- event: SubmitVote(uint256,indexed uint256,indexed address,indexed address,uint8)
handler: handleSubmitVote
- event: SponsorProposal(indexed address,indexed address,uint256,uint256,uint256)
handler: handleSponsorProposal
- event: ProcessProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessProposal
- event: ProcessGuildKickProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessGuildKickProposal
- event: ProcessWhitelistProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessWhitelistProposal
- event: UpdateDelegateKey(indexed address,address)
handler: handleUpdateDelegateKey
- event: CancelProposal(indexed uint256,address)
handler: handleCancelProposal
- event: Withdraw(indexed address,address,uint256)
handler: handleWithdraw
- event: Ragequit(indexed address,uint256,uint256)
handler: handleRagequit
- event: TokensCollected(indexed address,uint256)
handler: handleTokensCollected