forked from stplaydog/bancor-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
382 lines (382 loc) · 13.1 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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
specVersion: 0.0.2
description: Bancor
repository: https://github.com/blocklytics/bancor-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: CrowdsaleContract
network: mainnet
source:
address: "0xbbc79794599b19274850492394004087cbf89710"
abi: CrowdsaleContract
startBlock: 3851207
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- OwnerUpdate
abis:
- name: CrowdsaleContract
file: ./abis/CrowdsaleContract.json
eventHandlers:
- event: OwnerUpdate(address,address)
handler: createBackfill
file: ./src/mappings/crowdsale.ts
- kind: ethereum/contract
name: ContractRegistryContract
network: mainnet
source:
address: "0x52Ae12ABe5D8BD778BD5397F99cA900624CfADD4"
abi: ContractRegistryContract
startBlock: 6563025
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- AddressUpdate
- OwnerUpdate
abis:
- name: ContractRegistryContract
file: ./abis/ContractRegistryContract.json
eventHandlers:
- event: AddressUpdate(indexed bytes32,address)
handler: handleAddressUpdate
- event: OwnerUpdate(indexed address,indexed address)
handler: handleContractRegistryOwnerUpdate
file: ./src/mappings/contractRegistry.ts
- kind: ethereum/contract
name: ConverterRegistryContract1
network: mainnet
source:
address: "0x0ddff327ddf7fe838e3e63d02001ef23ad1ede8e"
abi: ConverterRegistryContract
startBlock: 7764526
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- TokenAddition
- TokenRemoval
- ConverterAddition
- ConverterRemoval
- OwnerUpdate
abis:
- name: ConverterRegistryContract
file: ./abis/ConverterRegistryContract.json
- name: ConverterContract
file: ./abis/ConverterContract.json
- name: SmartTokenContract
file: ./abis/SmartTokenContract.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: TokenAddition(indexed address)
handler: handleTokenAddition
- event: TokenRemoval(indexed address)
handler: handleTokenRemoval
- event: ConverterAddition(indexed address,address)
handler: handleConverterAddition
- event: ConverterRemoval(indexed address,address)
handler: handleConverterRemoval
- event: OwnerUpdate(indexed address,indexed address)
handler: handleConverterRegistryOwnerUpdate
file: ./src/mappings/converterRegistry1.ts
- kind: ethereum/contract
name: ConverterRegistryContract2
network: mainnet
source:
address: "0xc1933ed6a18c175A7C2058807F25e55461Cd92F5"
abi: ConverterRegistryContract
startBlock: 8694969
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- TokenAddition
- TokenRemoval
- ConverterAddition
- ConverterRemoval
- OwnerUpdate
abis:
- name: ConverterRegistryContract
file: ./abis/ConverterRegistryContract.json
- name: ConverterContract
file: ./abis/ConverterContract.json
- name: SmartTokenContract
file: ./abis/SmartTokenContract.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: TokenAddition(indexed address)
handler: handleTokenAddition
- event: TokenRemoval(indexed address)
handler: handleTokenRemoval
- event: ConverterAddition(indexed address,address)
handler: handleConverterAddition
- event: ConverterRemoval(indexed address,address)
handler: handleConverterRemoval
- event: OwnerUpdate(indexed address,indexed address)
handler: handleConverterRegistryOwnerUpdate
file: ./src/mappings/converterRegistry2.ts
- kind: ethereum/contract
name: ConverterRegistryContract3
network: mainnet
source:
address: "0x85e27A5718382F32238497e78b4A40DD778ab847"
abi: ConverterRegistryContract
startBlock: 9094899
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- SmartTokenAdded
- SmartTokenRemoved
- LiquidityPoolAdded
- LiquidityPoolRemoved
- ConvertibleTokenAdded
- ConvertibleTokenRemoved
- OwnerUpdate
abis:
- name: ConverterRegistryContract
file: ./abis/NewConverterRegistryContract.json
- name: ConverterContract
file: ./abis/ConverterContract.json
- name: SmartTokenContract
file: ./abis/SmartTokenContract.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: SmartTokenAdded(indexed address)
handler: handleSmartTokenAdded
- event: SmartTokenRemoved(indexed address)
handler: handleSmartTokenRemoved
- event: LiquidityPoolAdded(indexed address)
handler: handleLiquidityPoolAdded
- event: LiquidityPoolRemoved(indexed address)
handler: handleLiquidityPoolRemoved
- event: ConvertibleTokenAdded(indexed address,indexed address)
handler: handleConvertibleTokenAdded
- event: ConvertibleTokenRemoved(indexed address,indexed address)
handler: handleConvertibleTokenRemoved
- event: OwnerUpdate(indexed address,indexed address)
handler: handleConverterRegistryOwnerUpdate
file: ./src/mappings/converterRegistry3.ts
- kind: ethereum/contract
name: ConverterRegistryContract4
network: mainnet
source:
address: "0xf6e2d7f616b67e46d708e4410746e9aab3a4c518"
abi: ConverterRegistryContract
startBlock: 9120931
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- SmartTokenAdded
- SmartTokenRemoved
- LiquidityPoolAdded
- LiquidityPoolRemoved
- ConvertibleTokenAdded
- ConvertibleTokenRemoved
- OwnerUpdate
abis:
- name: ConverterRegistryContract
file: ./abis/NewConverterRegistryContract.json
- name: ConverterContract
file: ./abis/ConverterContract.json
- name: SmartTokenContract
file: ./abis/SmartTokenContract.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: SmartTokenAdded(indexed address)
handler: handleSmartTokenAdded
- event: SmartTokenRemoved(indexed address)
handler: handleSmartTokenRemoved
- event: LiquidityPoolAdded(indexed address)
handler: handleLiquidityPoolAdded
- event: LiquidityPoolRemoved(indexed address)
handler: handleLiquidityPoolRemoved
- event: ConvertibleTokenAdded(indexed address,indexed address)
handler: handleConvertibleTokenAdded
- event: ConvertibleTokenRemoved(indexed address,indexed address)
handler: handleConvertibleTokenRemoved
- event: OwnerUpdate(indexed address,indexed address)
handler: handleConverterRegistryOwnerUpdate
file: ./src/mappings/converterRegistry4.ts
- kind: ethereum/contract
name: ConverterRegistryContract5
network: mainnet
source:
address: "0xF84B332Db34C6A9b554D80cF9BC6124C1C74495D"
abi: ConverterRegistryContract
startBlock: 9656625
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- SmartTokenAdded
- SmartTokenRemoved
- LiquidityPoolAdded
- LiquidityPoolRemoved
- ConvertibleTokenAdded
- ConvertibleTokenRemoved
- OwnerUpdate
abis:
- name: ConverterRegistryContract
file: ./abis/NewConverterRegistryContract.json
- name: ConverterContract
file: ./abis/ConverterContract.json
- name: SmartTokenContract
file: ./abis/SmartTokenContract.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: SmartTokenAdded(indexed address)
handler: handleSmartTokenAdded
- event: SmartTokenRemoved(indexed address)
handler: handleSmartTokenRemoved
- event: LiquidityPoolAdded(indexed address)
handler: handleLiquidityPoolAdded
- event: LiquidityPoolRemoved(indexed address)
handler: handleLiquidityPoolRemoved
- event: ConvertibleTokenAdded(indexed address,indexed address)
handler: handleConvertibleTokenAdded
- event: ConvertibleTokenRemoved(indexed address,indexed address)
handler: handleConvertibleTokenRemoved
- event: OwnerUpdate(indexed address,indexed address)
handler: handleConverterRegistryOwnerUpdate
file: ./src/mappings/converterRegistry5.ts
- kind: ethereum/contract
name: ConverterUpgraderContract
network: mainnet
source:
address: "0x20412bD6d146309c55cC607d30c5aAd07fbF6148"
abi: ConverterUpgraderContract
startBlock: 8914400
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- ConverterUpgrade
abis:
- name: ConverterUpgraderContract
file: ./abis/ConverterUpgraderContract.json
- name: ConverterContract
file: ./abis/ConverterContract.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: ConverterUpgrade(indexed address,indexed address)
handler: handleConverterUpgrade
callHandlers:
- function: upgradeOld(address,bytes32)
handler: handleUpgradeOld
file: ./src/mappings/converterUpgrader.ts
templates:
- kind: ethereum/contract
name: ConverterContract
network: mainnet
source:
abi: ConverterContract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Conversion
- PriceDataUpdate
- ConversionFeeUpdate
- ManagerUpdate
- OwnerUpdate
abis:
- name: ConverterContract
file: ./abis/ConverterContract.json
- name: ConverterContractOld
file: ./abis/ConverterContractOld.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: Conversion(indexed address,indexed address,indexed address,uint256,uint256,int256)
handler: handleConversion
- event: PriceDataUpdate(indexed address,uint256,uint256,uint32)
handler: handlePriceDataUpdate
- event: ConversionFeeUpdate(uint32,uint32)
handler: handleConversionFeeUpdate
- event: ManagerUpdate(indexed address,indexed address)
handler: handleManagerUpdate
- event: OwnerUpdate(indexed address,indexed address)
handler: handleConverterOwnerUpdate
- event: VirtualBalancesEnable(bool)
handler: handleVirtualBalancesEnable
callHandlers:
- function: upgrade()
handler: handleUpgrade
file: ./src/mappings/converter.ts
- kind: ethereum/contract
name: SmartTokenContract
network: mainnet
source:
abi: SmartTokenContract
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
entities:
- NewSmartToken
- Issuance
- Destruction
- Transfer
- Approval
- OwnerUpdate
abis:
- name: SmartTokenContract
file: ./abis/SmartTokenContract.json
- name: ConverterContract
file: ./abis/ConverterContract.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
# - event: NewSmartToken(address)
# handler: handleNewSmartToken
# - event: Issuance(uint256)
# handler: handleIssuance
# - event: Destruction(uint256)
# handler: handleDestruction
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
# - event: Approval(indexed address,indexed address,uint256)
# handler: handleApproval
- event: OwnerUpdate(address,address)
handler: handleSmartTokenOwnerUpdate
file: ./src/mappings/smartToken.ts
- kind: ethereum/contract
name: ERC20Contract
network: mainnet
source:
abi: ERC20Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Approval
- Transfer
abis:
- name: ERC20Contract
file: ./abis/ERC20Contract.json
# eventHandlers:
# - event: Approval(indexed address,indexed address,uint256)
# handler: handleApproval
# - event: Transfer(indexed address,indexed address,uint256)
# handler: handleTransfer
file: ./src/mappings/erc20.ts