defi-state-querier 0.4.26__py3-none-any.whl → 0.4.28__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. defi_services/__init__.py +1 -1
  2. defi_services/abis/vault/lido/__init__.py +0 -0
  3. defi_services/abis/vault/lido/event_transfer_shares.py +8 -0
  4. defi_services/abis/vault/lido/lido_1inch_steth_dai_pool.py +1308 -0
  5. defi_services/abis/vault/lido/lido_accounting_oracle.py +1342 -0
  6. defi_services/abis/vault/lido/lido_add_allowed_recipient.py +96 -0
  7. defi_services/abis/vault/lido/lido_allowed_recipents_factory.py +303 -0
  8. defi_services/abis/vault/lido/lido_allowed_recipients_builder_multi_token_tooling.py +427 -0
  9. defi_services/abis/vault/lido/lido_allowed_recipients_builder_tooling.py +414 -0
  10. defi_services/abis/vault/lido/lido_allowed_recipients_factory_multi_token.py +369 -0
  11. defi_services/abis/vault/lido/lido_allowed_recipients_registry.py +654 -0
  12. defi_services/abis/vault/lido/lido_allowed_token_registry.py +397 -0
  13. defi_services/abis/vault/lido/lido_anchor_vault.py +599 -0
  14. defi_services/abis/vault/lido/lido_aragon_acl.py +755 -0
  15. defi_services/abis/vault/lido/lido_aragon_agent.py +984 -0
  16. defi_services/abis/vault/lido/lido_aragon_finance.py +1013 -0
  17. defi_services/abis/vault/lido/lido_aragon_pm.py +490 -0
  18. defi_services/abis/vault/lido/lido_aragon_token_manager.py +759 -0
  19. defi_services/abis/vault/lido/lido_aragon_voting.py +887 -0
  20. defi_services/abis/vault/lido/lido_balancer_wseth_eth_pool.py +1441 -0
  21. defi_services/abis/vault/lido/lido_burner.py +698 -0
  22. defi_services/abis/vault/lido/lido_curated_staking_module.py +1571 -0
  23. defi_services/abis/vault/lido/lido_curve_liquidity_farming_manager.py +113 -0
  24. defi_services/abis/vault/lido/lido_curve_liquidity_farming_pool.py +899 -0
  25. defi_services/abis/vault/lido/lido_curve_liquidity_farming_reward.py +666 -0
  26. defi_services/abis/vault/lido/lido_curve_steth_eth_gauge.py +967 -0
  27. defi_services/abis/vault/lido/lido_curve_steth_eth_pool.py +986 -0
  28. defi_services/abis/vault/lido/lido_dao.py +623 -0
  29. defi_services/abis/vault/lido/lido_dao_insurance_fund.py +283 -0
  30. defi_services/abis/vault/lido/lido_dao_token.py +590 -0
  31. defi_services/abis/vault/lido/lido_deposit_security_module.py +687 -0
  32. defi_services/abis/vault/lido/lido_early_stakes_airdrop.py +120 -0
  33. defi_services/abis/vault/lido/lido_easy_track.py +1108 -0
  34. defi_services/abis/vault/lido/lido_evem_script_executor.py +170 -0
  35. defi_services/abis/vault/lido/lido_execution_layer_rewards_vaults.py +170 -0
  36. defi_services/abis/vault/lido/lido_l1_executor.py +135 -0
  37. defi_services/abis/vault/lido/lido_l1_proxy_admin.py +155 -0
  38. defi_services/abis/vault/lido/lido_legacy_oracle.py +539 -0
  39. defi_services/abis/vault/lido/lido_liquidity_farming_pool.py +899 -0
  40. defi_services/abis/vault/lido/lido_locator.py +357 -0
  41. defi_services/abis/vault/lido/lido_mev_boost_relay_allowed_list.py +331 -0
  42. defi_services/abis/vault/lido/lido_multisigs.py +1037 -0
  43. defi_services/abis/vault/lido/lido_oracle_daemon_config.py +474 -0
  44. defi_services/abis/vault/lido/lido_oracle_report_sanity_checker.py +1327 -0
  45. defi_services/abis/vault/lido/lido_remove_allowed_recipient.py +91 -0
  46. defi_services/abis/vault/lido/lido_staking_router.py +2311 -0
  47. defi_services/abis/vault/lido/lido_steth.py +1604 -0
  48. defi_services/abis/vault/lido/lido_stonks.py +744 -0
  49. defi_services/abis/vault/lido/lido_sushi_wsteth_dai_pool.py +662 -0
  50. defi_services/abis/vault/lido/lido_token_brigde.py +735 -0
  51. defi_services/abis/vault/lido/lido_token_gateway.py +808 -0
  52. defi_services/abis/vault/lido/lido_token_reward_program.py +363 -0
  53. defi_services/abis/vault/lido/lido_top_up_allowed_recipients.py +150 -0
  54. defi_services/abis/vault/lido/lido_validators_exit_bus_oracle.py +1230 -0
  55. defi_services/abis/vault/lido/lido_validators_exit_bus_oracle_hash_consensus.py +1085 -0
  56. defi_services/abis/vault/lido/lido_voting_repo.py +434 -0
  57. defi_services/abis/vault/lido/lido_withdrawal_vault.py +121 -0
  58. defi_services/abis/vault/lido/lido_withdrawl_queue.py +2031 -0
  59. defi_services/abis/vault/lido/lido_wsteth.py +481 -0
  60. defi_services/abis/vault/lido/lidor_accounting_oracle_hash_consensus.py +1085 -0
  61. defi_services/services/token_services.py +1 -1
  62. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/METADATA +4 -4
  63. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/RECORD +66 -7
  64. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/WHEEL +1 -1
  65. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/LICENSE +0 -0
  66. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,539 @@
1
+ import json
2
+
3
+ LIDO_LEGACY_ORACLE_ABI = json.loads('''
4
+ [
5
+ {
6
+ "constant": true,
7
+ "inputs": [],
8
+ "name": "hasInitialized",
9
+ "outputs": [
10
+ {
11
+ "name": "",
12
+ "type": "bool"
13
+ }
14
+ ],
15
+ "payable": false,
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "constant": true,
21
+ "inputs": [],
22
+ "name": "getVersion",
23
+ "outputs": [
24
+ {
25
+ "name": "",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "payable": false,
30
+ "stateMutability": "view",
31
+ "type": "function"
32
+ },
33
+ {
34
+ "constant": true,
35
+ "inputs": [
36
+ {
37
+ "name": "_script",
38
+ "type": "bytes"
39
+ }
40
+ ],
41
+ "name": "getEVMScriptExecutor",
42
+ "outputs": [
43
+ {
44
+ "name": "",
45
+ "type": "address"
46
+ }
47
+ ],
48
+ "payable": false,
49
+ "stateMutability": "view",
50
+ "type": "function"
51
+ },
52
+ {
53
+ "constant": true,
54
+ "inputs": [],
55
+ "name": "getRecoveryVault",
56
+ "outputs": [
57
+ {
58
+ "name": "",
59
+ "type": "address"
60
+ }
61
+ ],
62
+ "payable": false,
63
+ "stateMutability": "view",
64
+ "type": "function"
65
+ },
66
+ {
67
+ "constant": false,
68
+ "inputs": [
69
+ {
70
+ "name": "_lidoLocator",
71
+ "type": "address"
72
+ },
73
+ {
74
+ "name": "_accountingOracleConsensusContract",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "initialize",
79
+ "outputs": [],
80
+ "payable": false,
81
+ "stateMutability": "nonpayable",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "constant": false,
86
+ "inputs": [
87
+ {
88
+ "name": "_accountingOracle",
89
+ "type": "address"
90
+ }
91
+ ],
92
+ "name": "finalizeUpgrade_v4",
93
+ "outputs": [],
94
+ "payable": false,
95
+ "stateMutability": "nonpayable",
96
+ "type": "function"
97
+ },
98
+ {
99
+ "constant": true,
100
+ "inputs": [],
101
+ "name": "getLastCompletedReportDelta",
102
+ "outputs": [
103
+ {
104
+ "name": "postTotalPooledEther",
105
+ "type": "uint256"
106
+ },
107
+ {
108
+ "name": "preTotalPooledEther",
109
+ "type": "uint256"
110
+ },
111
+ {
112
+ "name": "timeElapsed",
113
+ "type": "uint256"
114
+ }
115
+ ],
116
+ "payable": false,
117
+ "stateMutability": "view",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "constant": true,
122
+ "inputs": [],
123
+ "name": "getLido",
124
+ "outputs": [
125
+ {
126
+ "name": "",
127
+ "type": "address"
128
+ }
129
+ ],
130
+ "payable": false,
131
+ "stateMutability": "view",
132
+ "type": "function"
133
+ },
134
+ {
135
+ "constant": true,
136
+ "inputs": [],
137
+ "name": "getCurrentFrame",
138
+ "outputs": [
139
+ {
140
+ "name": "frameEpochId",
141
+ "type": "uint256"
142
+ },
143
+ {
144
+ "name": "frameStartTime",
145
+ "type": "uint256"
146
+ },
147
+ {
148
+ "name": "frameEndTime",
149
+ "type": "uint256"
150
+ }
151
+ ],
152
+ "payable": false,
153
+ "stateMutability": "view",
154
+ "type": "function"
155
+ },
156
+ {
157
+ "constant": true,
158
+ "inputs": [
159
+ {
160
+ "name": "token",
161
+ "type": "address"
162
+ }
163
+ ],
164
+ "name": "allowRecoverability",
165
+ "outputs": [
166
+ {
167
+ "name": "",
168
+ "type": "bool"
169
+ }
170
+ ],
171
+ "payable": false,
172
+ "stateMutability": "view",
173
+ "type": "function"
174
+ },
175
+ {
176
+ "constant": true,
177
+ "inputs": [],
178
+ "name": "appId",
179
+ "outputs": [
180
+ {
181
+ "name": "",
182
+ "type": "bytes32"
183
+ }
184
+ ],
185
+ "payable": false,
186
+ "stateMutability": "view",
187
+ "type": "function"
188
+ },
189
+ {
190
+ "constant": false,
191
+ "inputs": [
192
+ {
193
+ "name": "",
194
+ "type": "uint256"
195
+ },
196
+ {
197
+ "name": "timeElapsed",
198
+ "type": "uint256"
199
+ },
200
+ {
201
+ "name": "",
202
+ "type": "uint256"
203
+ },
204
+ {
205
+ "name": "preTotalEther",
206
+ "type": "uint256"
207
+ },
208
+ {
209
+ "name": "postTotalShares",
210
+ "type": "uint256"
211
+ },
212
+ {
213
+ "name": "postTotalEther",
214
+ "type": "uint256"
215
+ },
216
+ {
217
+ "name": "",
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "name": "handlePostTokenRebase",
222
+ "outputs": [],
223
+ "payable": false,
224
+ "stateMutability": "nonpayable",
225
+ "type": "function"
226
+ },
227
+ {
228
+ "constant": true,
229
+ "inputs": [],
230
+ "name": "getLastCompletedEpochId",
231
+ "outputs": [
232
+ {
233
+ "name": "",
234
+ "type": "uint256"
235
+ }
236
+ ],
237
+ "payable": false,
238
+ "stateMutability": "view",
239
+ "type": "function"
240
+ },
241
+ {
242
+ "constant": true,
243
+ "inputs": [],
244
+ "name": "getContractVersion",
245
+ "outputs": [
246
+ {
247
+ "name": "",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "payable": false,
252
+ "stateMutability": "view",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "constant": true,
257
+ "inputs": [],
258
+ "name": "getInitializationBlock",
259
+ "outputs": [
260
+ {
261
+ "name": "",
262
+ "type": "uint256"
263
+ }
264
+ ],
265
+ "payable": false,
266
+ "stateMutability": "view",
267
+ "type": "function"
268
+ },
269
+ {
270
+ "constant": false,
271
+ "inputs": [
272
+ {
273
+ "name": "_refSlot",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "name": "_clBalance",
278
+ "type": "uint256"
279
+ },
280
+ {
281
+ "name": "_clValidators",
282
+ "type": "uint256"
283
+ }
284
+ ],
285
+ "name": "handleConsensusLayerReport",
286
+ "outputs": [],
287
+ "payable": false,
288
+ "stateMutability": "nonpayable",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "constant": false,
293
+ "inputs": [
294
+ {
295
+ "name": "_token",
296
+ "type": "address"
297
+ }
298
+ ],
299
+ "name": "transferToVault",
300
+ "outputs": [],
301
+ "payable": false,
302
+ "stateMutability": "nonpayable",
303
+ "type": "function"
304
+ },
305
+ {
306
+ "constant": true,
307
+ "inputs": [],
308
+ "name": "getAccountingOracle",
309
+ "outputs": [
310
+ {
311
+ "name": "",
312
+ "type": "address"
313
+ }
314
+ ],
315
+ "payable": false,
316
+ "stateMutability": "view",
317
+ "type": "function"
318
+ },
319
+ {
320
+ "constant": true,
321
+ "inputs": [
322
+ {
323
+ "name": "_sender",
324
+ "type": "address"
325
+ },
326
+ {
327
+ "name": "_role",
328
+ "type": "bytes32"
329
+ },
330
+ {
331
+ "name": "_params",
332
+ "type": "uint256[]"
333
+ }
334
+ ],
335
+ "name": "canPerform",
336
+ "outputs": [
337
+ {
338
+ "name": "",
339
+ "type": "bool"
340
+ }
341
+ ],
342
+ "payable": false,
343
+ "stateMutability": "view",
344
+ "type": "function"
345
+ },
346
+ {
347
+ "constant": true,
348
+ "inputs": [],
349
+ "name": "getCurrentEpochId",
350
+ "outputs": [
351
+ {
352
+ "name": "",
353
+ "type": "uint256"
354
+ }
355
+ ],
356
+ "payable": false,
357
+ "stateMutability": "view",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "constant": true,
362
+ "inputs": [],
363
+ "name": "getEVMScriptRegistry",
364
+ "outputs": [
365
+ {
366
+ "name": "",
367
+ "type": "address"
368
+ }
369
+ ],
370
+ "payable": false,
371
+ "stateMutability": "view",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "constant": true,
376
+ "inputs": [],
377
+ "name": "kernel",
378
+ "outputs": [
379
+ {
380
+ "name": "",
381
+ "type": "address"
382
+ }
383
+ ],
384
+ "payable": false,
385
+ "stateMutability": "view",
386
+ "type": "function"
387
+ },
388
+ {
389
+ "constant": true,
390
+ "inputs": [],
391
+ "name": "isPetrified",
392
+ "outputs": [
393
+ {
394
+ "name": "",
395
+ "type": "bool"
396
+ }
397
+ ],
398
+ "payable": false,
399
+ "stateMutability": "view",
400
+ "type": "function"
401
+ },
402
+ {
403
+ "constant": true,
404
+ "inputs": [],
405
+ "name": "getBeaconSpec",
406
+ "outputs": [
407
+ {
408
+ "name": "epochsPerFrame",
409
+ "type": "uint64"
410
+ },
411
+ {
412
+ "name": "slotsPerEpoch",
413
+ "type": "uint64"
414
+ },
415
+ {
416
+ "name": "secondsPerSlot",
417
+ "type": "uint64"
418
+ },
419
+ {
420
+ "name": "genesisTime",
421
+ "type": "uint64"
422
+ }
423
+ ],
424
+ "payable": false,
425
+ "stateMutability": "view",
426
+ "type": "function"
427
+ },
428
+ {
429
+ "anonymous": false,
430
+ "inputs": [
431
+ {
432
+ "indexed": false,
433
+ "name": "epochId",
434
+ "type": "uint256"
435
+ },
436
+ {
437
+ "indexed": false,
438
+ "name": "beaconBalance",
439
+ "type": "uint128"
440
+ },
441
+ {
442
+ "indexed": false,
443
+ "name": "beaconValidators",
444
+ "type": "uint128"
445
+ }
446
+ ],
447
+ "name": "Completed",
448
+ "type": "event"
449
+ },
450
+ {
451
+ "anonymous": false,
452
+ "inputs": [
453
+ {
454
+ "indexed": false,
455
+ "name": "postTotalPooledEther",
456
+ "type": "uint256"
457
+ },
458
+ {
459
+ "indexed": false,
460
+ "name": "preTotalPooledEther",
461
+ "type": "uint256"
462
+ },
463
+ {
464
+ "indexed": false,
465
+ "name": "timeElapsed",
466
+ "type": "uint256"
467
+ },
468
+ {
469
+ "indexed": false,
470
+ "name": "totalShares",
471
+ "type": "uint256"
472
+ }
473
+ ],
474
+ "name": "PostTotalShares",
475
+ "type": "event"
476
+ },
477
+ {
478
+ "anonymous": false,
479
+ "inputs": [
480
+ {
481
+ "indexed": true,
482
+ "name": "executor",
483
+ "type": "address"
484
+ },
485
+ {
486
+ "indexed": false,
487
+ "name": "script",
488
+ "type": "bytes"
489
+ },
490
+ {
491
+ "indexed": false,
492
+ "name": "input",
493
+ "type": "bytes"
494
+ },
495
+ {
496
+ "indexed": false,
497
+ "name": "returnData",
498
+ "type": "bytes"
499
+ }
500
+ ],
501
+ "name": "ScriptResult",
502
+ "type": "event"
503
+ },
504
+ {
505
+ "anonymous": false,
506
+ "inputs": [
507
+ {
508
+ "indexed": true,
509
+ "name": "vault",
510
+ "type": "address"
511
+ },
512
+ {
513
+ "indexed": true,
514
+ "name": "token",
515
+ "type": "address"
516
+ },
517
+ {
518
+ "indexed": false,
519
+ "name": "amount",
520
+ "type": "uint256"
521
+ }
522
+ ],
523
+ "name": "RecoverToVault",
524
+ "type": "event"
525
+ },
526
+ {
527
+ "anonymous": false,
528
+ "inputs": [
529
+ {
530
+ "indexed": false,
531
+ "name": "version",
532
+ "type": "uint256"
533
+ }
534
+ ],
535
+ "name": "ContractVersionSet",
536
+ "type": "event"
537
+ }
538
+ ]
539
+ ''')