forked from OlympusDAO/olympus-protocol-metrics-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
510 lines (510 loc) · 14.7 KB
/
Copy pathsubgraph.yaml
File metadata and controls
510 lines (510 loc) · 14.7 KB
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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
specVersion: 0.0.4
description: Olympus Protocol Metrics Subgraph
repository: https://github.com/OlympusDAO/olympus-protocol-metrics-subgraph
schema:
file: ./schema.graphql
dataSources:
#sOHM
- kind: ethereum/contract
name: sOlympusERC20V1
network: mainnet
source:
address: "0x31932e6e45012476ba3a3a4953cba62aee77fbbe"
abi: sOlympusERC20
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- sOlympusERC20V1
abis:
- name: OlympusStakingV1
file: ./abis/OlympusStakingV1.json
- name: sOlympusERC20
file: ./abis/sOlympusERC20.json
- name: OlympusERC20
file: ./abis/OlympusERC20.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: BalancerVault
file: ./abis/BalancerVault.json
- name: ERC20
file: ./abis/ERC20.json
callHandlers:
- function: rebase(uint256)
handler: rebaseFunction
file: ./src/sOlympusERC20V1.ts
- kind: ethereum/contract
name: sOlympusERC20V2
network: mainnet
source:
address: "0x04f2694c8fcee23e8fd0dfea1d4f5bb8c352111f"
abi: sOlympusERC20V2
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- sOlympusERC20V2
abis:
- name: OlympusStakingV2
file: ./abis/OlympusStakingV2.json
- name: sOlympusERC20V2
file: ./abis/sOlympusERC20V2.json
- name: OlympusERC20
file: ./abis/OlympusERC20.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: BalancerVault
file: ./abis/BalancerVault.json
- name: ERC20
file: ./abis/ERC20.json
callHandlers:
- function: rebase(uint256,uint256)
handler: rebaseFunction
file: ./src/sOlympusERC20V2.ts
- kind: ethereum/contract
name: sOlympusERC20V3
network: mainnet
source:
address: "0x04906695D6D12CF5459975d7C3C03356E4Ccd460"
abi: sOlympusERC20V3
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- sOlympusERC20V3
abis:
- name: OlympusStakingV3
file: ./abis/OlympusStakingV3.json
- name: sOlympusERC20V3
file: ./abis/sOlympusERC20V3.json
- name: OlympusERC20
file: ./abis/OlympusERC20.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: BalancerVault
file: ./abis/BalancerVault.json
- name: ERC20
file: ./abis/ERC20.json
callHandlers:
- function: rebase(uint256,uint256)
handler: rebaseFunction
file: ./src/sOlympusERC20V3.ts
#DAI Bond Contract V1
- kind: ethereum/contract
name: DAIBondV1
network: mainnet
source:
address: "0xa64ed1b66cb2838ef2a198d8345c0ce6967a2a3c"
abi: DAIBondV1
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DAIBondDeposit
abis:
- name: DAIBondV1
file: ./abis/DAIBondV1.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/DAIBondV1.ts
#DAI Bond Contract V2
- kind: ethereum/contract
name: DAIBondV2
network: mainnet
source:
address: "0xd03056323b7a63e2095ae97fa1ad92e4820ff045"
abi: DAIBondV2
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DAIBondDeposit
abis:
- name: DAIBondV2
file: ./abis/DAIBondV2.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/DAIBondV2.ts
#DAI Bond Contract V3
- kind: ethereum/contract
name: DAIBondV3
network: mainnet
source:
address: "0x575409F8d77c12B05feD8B455815f0e54797381c"
abi: DAIBondV3
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DAIBondDeposit
abis:
- name: DAIBondV3
file: ./abis/DAIBondV3.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/DAIBondV3.ts
#OHM DAI LP Bond Contract V1
- kind: ethereum/contract
name: OHMDAIBondV1
network: mainnet
source:
address: "0xd27001d1aAEd5f002C722Ad729de88a91239fF29"
abi: OHMDAIBondV1
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OHMDAIBondV1
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: OHMDAIBondV1
file: ./abis/OHMDAIBondV1.json
callHandlers:
- function: depositBondPrinciple(uint256)
handler: handleDeposit
file: ./src/OHMDAIBondV1.ts
#OHM DAI LP Bond Contract V2
- kind: ethereum/contract
name: OHMDAIBondV2
network: mainnet
source:
address: "0x13e8484a86327f5882d1340ed0d7643a29548536"
abi: OHMDAIBondV2
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OHMDAIBondV2
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: OHMDAIBondV2
file: ./abis/OHMDAIBondV2.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/OHMDAIBondV2.ts
#OHM DAI LP Bond Contract V3
- kind: ethereum/contract
name: OHMDAIBondV3
network: mainnet
source:
address: "0x996668c46fc0b764afda88d83eb58afc933a1626"
abi: OHMDAIBondV3
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OHMDAIBondV3
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: OHMDAIBondV3
file: ./abis/OHMDAIBondV3.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/OHMDAIBondV3.ts
#OHM DAI LP Bond Contract V4
- kind: ethereum/contract
name: OHMDAIBondV4
network: mainnet
source:
address: "0x956c43998316b6a2F21f89a1539f73fB5B78c151"
abi: OHMDAIBondV4
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OHMDAIBondV4
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: OHMDAIBondV4
file: ./abis/OHMDAIBondV4.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/OHMDAIBondV4.ts
# FRAX-OHM v1
- kind: ethereum/contract
name: OHMFRAXBondV1
network: mainnet
source:
address: "0x539b6c906244ac34e348bbe77885cdfa994a3776"
abi: OHMFRAXBondV1
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OHMFRAXBondV1
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: OHMFRAXBondV1
file: ./abis/OHMFRAXBondV1.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/OHMFRAXBondV1.ts
# FRAX-OHM v2
- kind: ethereum/contract
name: OHMFRAXBondV2
network: mainnet
source:
address: "0xc20cfff07076858a7e642e396180ec390e5a02f7"
abi: OHMFRAXBondV2
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OHMFRAXBondV2
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: OHMFRAXBondV2
file: ./abis/OHMFRAXBondV2.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/OHMFRAXBondV2.ts
# FRAX v1
- kind: ethereum/contract
name: FRAXBondV1
network: mainnet
source:
address: "0x8510c8c2B6891E04864fa196693D44E6B6ec2514"
abi: FRAXBondV1
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- FRAXBondV1
abis:
- name: FRAXBondV1
file: ./abis/FRAXBondV1.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/FRAXBondV1.ts
#WETH
- kind: ethereum/contract
name: ETHBondV1
network: mainnet
source:
address: "0xe6295201cd1ff13ced5f063a5421c39a1d236f1c"
abi: ETHBondV1
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ETHBondV1
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: ETHBondV1
file: ./abis/ETHBondV1.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/ETHBondV1.ts
#LUSD
- kind: ethereum/contract
name: LUSDBondV1
network: mainnet
source:
address: "0x10c0f93f64e3c8d0a1b0f4b87d6155fd9e89d08d"
abi: LUSDBondV1
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- LUSDBondV1
abis:
- name: LUSDBondV1
file: ./abis/LUSDBondV1.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/LUSDBondV1.ts
# LUSD-OHM v2
- kind: ethereum/contract
name: OHMLUSDBondV1
network: mainnet
source:
address: "0xfb1776299e7804dd8016303df9c07a65c80f67b6"
abi: OHMLUSDBondV1
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OHMLUSDBondV1
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: OHMLUSDBondV1
file: ./abis/LUSDBondV1.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/OHMLUSDBondV1.ts
# ETH-OHM v2
- kind: ethereum/contract
name: OHMETHBondV1
network: mainnet
source:
address: "0xB6C9dc843dEc44Aa305217c2BbC58B44438B6E16"
abi: OHMETHBondV1
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OHMETHBondV1
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: OHMETHBondV1
file: ./abis/OHMETHBondV1.json
callHandlers:
- function: deposit(uint256,uint256,address)
handler: handleDeposit
file: ./src/OHMETHBondV1.ts
# TODO Start syncing protocol metrics every 10 blocks when we are close to present
- kind: ethereum/contract
name: ProtocolMetrics
network: mainnet
source:
address: "0xB63cac384247597756545b500253ff8E607a8020"
abi: OlympusStakingV3
startBlock: 15050000
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ProtocolMetrics
abis:
- name: OlympusStakingV1
file: ./abis/OlympusStakingV1.json
- name: OlympusStakingV2
file: ./abis/OlympusStakingV2.json
- name: OlympusStakingV3
file: ./abis/OlympusStakingV3.json
- name: sOlympusERC20
file: ./abis/sOlympusERC20.json
- name: sOlympusERC20V2
file: ./abis/sOlympusERC20V2.json
- name: sOlympusERC20V3
file: ./abis/sOlympusERC20V3.json
- name: OlympusERC20
file: ./abis/OlympusERC20.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: UniswapV3Pair
file: ./abis/UniswapV3Pair.json
- name: ConvexAllocator
file: ./abis/ConvexAllocator.json
- name: CirculatingSupply
file: ./abis/CirculatingSupply.json
- name: ERC20
file: ./abis/ERC20.json
- name: MasterChef
file: ./abis/MasterChef.json
- name: DAIBondV1
file: ./abis/DAIBondV1.json
- name: DAIBondV2
file: ./abis/DAIBondV2.json
- name: DAIBondV3
file: ./abis/DAIBondV3.json
- name: OHMDAIBondV1
file: ./abis/OHMDAIBondV1.json
- name: OHMDAIBondV2
file: ./abis/OHMDAIBondV2.json
- name: OHMDAIBondV3
file: ./abis/OHMDAIBondV3.json
- name: OHMDAIBondV4
file: ./abis/OHMDAIBondV4.json
- name: OHMFRAXBondV1
file: ./abis/OHMFRAXBondV1.json
- name: OHMFRAXBondV2
file: ./abis/OHMFRAXBondV2.json
- name: FRAXBondV1
file: ./abis/FRAXBondV1.json
- name: ETHBondV1
file: ./abis/ETHBondV1.json
- name: LUSDBondV1
file: ./abis/LUSDBondV1.json
- name: OHMLUSDBondV1
file: ./abis/OHMLUSDBondV1.json
- name: VeFXS
file: ./abis/VeFXS.json
- name: Distributor
file: ./abis/Distributor.json
- name: RariAllocator
file: ./abis/RariAllocator.json
- name: BalancerVault
file: ./abis/BalancerVault.json
- name: ConvexBaseRewardPool
file: ./abis/ConvexBaseRewardPool.json
- name: CurvePool
file: ./abis/CurvePool.json
- name: TokeAllocator
file: ./abis/TokeAllocator.json
- name: LUSDAllocatorV2
file: ./abis/LUSDAllocatorV2.json
- name: BalancerPoolToken
file: ./abis/BalancerPoolToken.json
- name: TokemakStaking
file: ./abis/TokemakStaking.json
- name: LQTYStaking
file: ./abis/LQTYStaking.json
- name: BalancerLiquidityGauge
file: ./abis/BalancerLiquidityGauge.json
- name: gOHM
file: ./abis/gOHM.json
- name: FraxSwapPool
file: ./abis/FraxSwapPool.json
- name: vlCVX
file: ./abis/vlCVX.json
callHandlers:
- function: stake(address,uint256,bool,bool)
handler: handleMetrics
file: ./src/utils/ProtocolMetrics.ts