defi-state-querier 0.4.25__py3-none-any.whl → 0.4.27__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) 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/jobs/processors/multi_state_processor.py +2 -2
  62. defi_services/jobs/processors/state_processor.py +2 -2
  63. defi_services/jobs/queriers/state_querier.py +4 -4
  64. defi_services/services/dex/pancakeswap_service.py +1 -1
  65. defi_services/services/dex/pancakeswap_v2_service.py +1 -1
  66. defi_services/services/dex/uniswap_v2_service.py +1 -1
  67. defi_services/services/dex/uniswap_v3_service.py +2 -2
  68. defi_services/services/lending/aave_v2_services.py +2 -2
  69. defi_services/services/lending/aave_v3_services.py +4 -4
  70. defi_services/services/lending/apeswap_services.py +3 -3
  71. defi_services/services/lending/compound_service.py +3 -3
  72. defi_services/services/lending/compound_v3_services.py +1 -1
  73. defi_services/services/lending/flux_services.py +3 -3
  74. defi_services/services/lending/granary_services.py +1 -1
  75. defi_services/services/lending/iron_bank_service.py +4 -4
  76. defi_services/services/lending/justlend_service.py +3 -3
  77. defi_services/services/lending/liqee_service.py +3 -3
  78. defi_services/services/lending/morpho_aave_v2_services.py +2 -2
  79. defi_services/services/lending/morpho_aave_v3_services.py +2 -2
  80. defi_services/services/lending/morpho_compound_services.py +5 -5
  81. defi_services/services/lending/onyx_service.py +4 -4
  82. defi_services/services/lending/silo_services.py +3 -3
  83. defi_services/services/lending/strike_service.py +3 -3
  84. defi_services/services/lending/trava_services.py +2 -2
  85. defi_services/services/lending/uwu_services.py +2 -2
  86. defi_services/services/lending/valas_services.py +1 -1
  87. defi_services/services/lending/venus_services.py +7 -7
  88. defi_services/services/lending/wepiggy_services.py +4 -4
  89. defi_services/services/token_services.py +1 -1
  90. defi_services/utils/convert_address.py +2 -2
  91. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/METADATA +1 -1
  92. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/RECORD +95 -36
  93. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/WHEEL +1 -1
  94. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/LICENSE +0 -0
  95. {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,599 @@
1
+ import json
2
+
3
+ LIDO_ANCHOR_VAULT_ABI = json.loads('''
4
+ [
5
+ {
6
+ "name": "Deposited",
7
+ "inputs": [
8
+ {
9
+ "name": "sender",
10
+ "type": "address",
11
+ "indexed": true
12
+ },
13
+ {
14
+ "name": "amount",
15
+ "type": "uint256",
16
+ "indexed": false
17
+ },
18
+ {
19
+ "name": "terra_address",
20
+ "type": "bytes32",
21
+ "indexed": false
22
+ },
23
+ {
24
+ "name": "beth_amount_received",
25
+ "type": "uint256",
26
+ "indexed": false
27
+ }
28
+ ],
29
+ "anonymous": false,
30
+ "type": "event"
31
+ },
32
+ {
33
+ "name": "Withdrawn",
34
+ "inputs": [
35
+ {
36
+ "name": "recipient",
37
+ "type": "address",
38
+ "indexed": true
39
+ },
40
+ {
41
+ "name": "amount",
42
+ "type": "uint256",
43
+ "indexed": false
44
+ },
45
+ {
46
+ "name": "steth_amount_received",
47
+ "type": "uint256",
48
+ "indexed": false
49
+ }
50
+ ],
51
+ "anonymous": false,
52
+ "type": "event"
53
+ },
54
+ {
55
+ "name": "Refunded",
56
+ "inputs": [
57
+ {
58
+ "name": "recipient",
59
+ "type": "address",
60
+ "indexed": true
61
+ },
62
+ {
63
+ "name": "beth_amount",
64
+ "type": "uint256",
65
+ "indexed": false
66
+ },
67
+ {
68
+ "name": "steth_amount",
69
+ "type": "uint256",
70
+ "indexed": false
71
+ },
72
+ {
73
+ "name": "comment",
74
+ "type": "string",
75
+ "indexed": false
76
+ }
77
+ ],
78
+ "anonymous": false,
79
+ "type": "event"
80
+ },
81
+ {
82
+ "name": "RefundedBethBurned",
83
+ "inputs": [
84
+ {
85
+ "name": "beth_amount",
86
+ "type": "uint256",
87
+ "indexed": false
88
+ }
89
+ ],
90
+ "anonymous": false,
91
+ "type": "event"
92
+ },
93
+ {
94
+ "name": "RewardsCollected",
95
+ "inputs": [
96
+ {
97
+ "name": "steth_amount",
98
+ "type": "uint256",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "name": "ust_amount",
103
+ "type": "uint256",
104
+ "indexed": false
105
+ }
106
+ ],
107
+ "anonymous": false,
108
+ "type": "event"
109
+ },
110
+ {
111
+ "name": "AdminChanged",
112
+ "inputs": [
113
+ {
114
+ "name": "new_admin",
115
+ "type": "address",
116
+ "indexed": false
117
+ }
118
+ ],
119
+ "anonymous": false,
120
+ "type": "event"
121
+ },
122
+ {
123
+ "name": "EmergencyAdminChanged",
124
+ "inputs": [
125
+ {
126
+ "name": "new_emergency_admin",
127
+ "type": "address",
128
+ "indexed": false
129
+ }
130
+ ],
131
+ "anonymous": false,
132
+ "type": "event"
133
+ },
134
+ {
135
+ "name": "BridgeConnectorUpdated",
136
+ "inputs": [
137
+ {
138
+ "name": "bridge_connector",
139
+ "type": "address",
140
+ "indexed": false
141
+ }
142
+ ],
143
+ "anonymous": false,
144
+ "type": "event"
145
+ },
146
+ {
147
+ "name": "RewardsLiquidatorUpdated",
148
+ "inputs": [
149
+ {
150
+ "name": "rewards_liquidator",
151
+ "type": "address",
152
+ "indexed": false
153
+ }
154
+ ],
155
+ "anonymous": false,
156
+ "type": "event"
157
+ },
158
+ {
159
+ "name": "InsuranceConnectorUpdated",
160
+ "inputs": [
161
+ {
162
+ "name": "insurance_connector",
163
+ "type": "address",
164
+ "indexed": false
165
+ }
166
+ ],
167
+ "anonymous": false,
168
+ "type": "event"
169
+ },
170
+ {
171
+ "name": "LiquidationConfigUpdated",
172
+ "inputs": [
173
+ {
174
+ "name": "liquidations_admin",
175
+ "type": "address",
176
+ "indexed": false
177
+ },
178
+ {
179
+ "name": "no_liquidation_interval",
180
+ "type": "uint256",
181
+ "indexed": false
182
+ },
183
+ {
184
+ "name": "restricted_liquidation_interval",
185
+ "type": "uint256",
186
+ "indexed": false
187
+ }
188
+ ],
189
+ "anonymous": false,
190
+ "type": "event"
191
+ },
192
+ {
193
+ "name": "AnchorRewardsDistributorUpdated",
194
+ "inputs": [
195
+ {
196
+ "name": "anchor_rewards_distributor",
197
+ "type": "bytes32",
198
+ "indexed": false
199
+ }
200
+ ],
201
+ "anonymous": false,
202
+ "type": "event"
203
+ },
204
+ {
205
+ "name": "VersionIncremented",
206
+ "inputs": [
207
+ {
208
+ "name": "new_version",
209
+ "type": "uint256",
210
+ "indexed": false
211
+ }
212
+ ],
213
+ "anonymous": false,
214
+ "type": "event"
215
+ },
216
+ {
217
+ "name": "OperationsStopped",
218
+ "inputs": [],
219
+ "anonymous": false,
220
+ "type": "event"
221
+ },
222
+ {
223
+ "name": "OperationsResumed",
224
+ "inputs": [],
225
+ "anonymous": false,
226
+ "type": "event"
227
+ },
228
+ {
229
+ "stateMutability": "nonpayable",
230
+ "type": "constructor",
231
+ "inputs": [],
232
+ "outputs": []
233
+ },
234
+ {
235
+ "stateMutability": "nonpayable",
236
+ "type": "function",
237
+ "name": "pause",
238
+ "inputs": [],
239
+ "outputs": [],
240
+ "gas": 25752
241
+ },
242
+ {
243
+ "stateMutability": "nonpayable",
244
+ "type": "function",
245
+ "name": "resume",
246
+ "inputs": [],
247
+ "outputs": [],
248
+ "gas": 40785
249
+ },
250
+ {
251
+ "stateMutability": "nonpayable",
252
+ "type": "function",
253
+ "name": "change_admin",
254
+ "inputs": [
255
+ {
256
+ "name": "new_admin",
257
+ "type": "address"
258
+ }
259
+ ],
260
+ "outputs": [],
261
+ "gas": 39315
262
+ },
263
+ {
264
+ "stateMutability": "view",
265
+ "type": "function",
266
+ "name": "get_rate",
267
+ "inputs": [],
268
+ "outputs": [
269
+ {
270
+ "name": "",
271
+ "type": "uint256"
272
+ }
273
+ ],
274
+ "gas": 12581
275
+ },
276
+ {
277
+ "stateMutability": "payable",
278
+ "type": "function",
279
+ "name": "submit",
280
+ "inputs": [
281
+ {
282
+ "name": "_amount",
283
+ "type": "uint256"
284
+ },
285
+ {
286
+ "name": "_terra_address",
287
+ "type": "bytes32"
288
+ },
289
+ {
290
+ "name": "_extra_data",
291
+ "type": "bytes"
292
+ },
293
+ {
294
+ "name": "_expected_version",
295
+ "type": "uint256"
296
+ }
297
+ ],
298
+ "outputs": [
299
+ {
300
+ "name": "",
301
+ "type": "uint256"
302
+ },
303
+ {
304
+ "name": "",
305
+ "type": "uint256"
306
+ }
307
+ ],
308
+ "gas": 764
309
+ },
310
+ {
311
+ "stateMutability": "nonpayable",
312
+ "type": "function",
313
+ "name": "withdraw",
314
+ "inputs": [
315
+ {
316
+ "name": "_beth_amount",
317
+ "type": "uint256"
318
+ },
319
+ {
320
+ "name": "_expected_version",
321
+ "type": "uint256"
322
+ }
323
+ ],
324
+ "outputs": [
325
+ {
326
+ "name": "",
327
+ "type": "uint256"
328
+ }
329
+ ]
330
+ },
331
+ {
332
+ "stateMutability": "nonpayable",
333
+ "type": "function",
334
+ "name": "withdraw",
335
+ "inputs": [
336
+ {
337
+ "name": "_beth_amount",
338
+ "type": "uint256"
339
+ },
340
+ {
341
+ "name": "_expected_version",
342
+ "type": "uint256"
343
+ },
344
+ {
345
+ "name": "_recipient",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "outputs": [
350
+ {
351
+ "name": "",
352
+ "type": "uint256"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "stateMutability": "nonpayable",
358
+ "type": "function",
359
+ "name": "finalize_upgrade_v4",
360
+ "inputs": [],
361
+ "outputs": [],
362
+ "gas": 271242
363
+ },
364
+ {
365
+ "stateMutability": "nonpayable",
366
+ "type": "function",
367
+ "name": "collect_rewards",
368
+ "inputs": [],
369
+ "outputs": [
370
+ {
371
+ "name": "",
372
+ "type": "uint256"
373
+ }
374
+ ],
375
+ "gas": 515
376
+ },
377
+ {
378
+ "stateMutability": "view",
379
+ "type": "function",
380
+ "name": "admin",
381
+ "inputs": [],
382
+ "outputs": [
383
+ {
384
+ "name": "",
385
+ "type": "address"
386
+ }
387
+ ],
388
+ "gas": 2628
389
+ },
390
+ {
391
+ "stateMutability": "view",
392
+ "type": "function",
393
+ "name": "beth_token",
394
+ "inputs": [],
395
+ "outputs": [
396
+ {
397
+ "name": "",
398
+ "type": "address"
399
+ }
400
+ ],
401
+ "gas": 2658
402
+ },
403
+ {
404
+ "stateMutability": "view",
405
+ "type": "function",
406
+ "name": "steth_token",
407
+ "inputs": [],
408
+ "outputs": [
409
+ {
410
+ "name": "",
411
+ "type": "address"
412
+ }
413
+ ],
414
+ "gas": 2688
415
+ },
416
+ {
417
+ "stateMutability": "view",
418
+ "type": "function",
419
+ "name": "bridge_connector",
420
+ "inputs": [],
421
+ "outputs": [
422
+ {
423
+ "name": "",
424
+ "type": "address"
425
+ }
426
+ ],
427
+ "gas": 2718
428
+ },
429
+ {
430
+ "stateMutability": "view",
431
+ "type": "function",
432
+ "name": "rewards_liquidator",
433
+ "inputs": [],
434
+ "outputs": [
435
+ {
436
+ "name": "",
437
+ "type": "address"
438
+ }
439
+ ],
440
+ "gas": 2748
441
+ },
442
+ {
443
+ "stateMutability": "view",
444
+ "type": "function",
445
+ "name": "insurance_connector",
446
+ "inputs": [],
447
+ "outputs": [
448
+ {
449
+ "name": "",
450
+ "type": "address"
451
+ }
452
+ ],
453
+ "gas": 2778
454
+ },
455
+ {
456
+ "stateMutability": "view",
457
+ "type": "function",
458
+ "name": "anchor_rewards_distributor",
459
+ "inputs": [],
460
+ "outputs": [
461
+ {
462
+ "name": "",
463
+ "type": "bytes32"
464
+ }
465
+ ],
466
+ "gas": 2808
467
+ },
468
+ {
469
+ "stateMutability": "view",
470
+ "type": "function",
471
+ "name": "liquidations_admin",
472
+ "inputs": [],
473
+ "outputs": [
474
+ {
475
+ "name": "",
476
+ "type": "address"
477
+ }
478
+ ],
479
+ "gas": 2838
480
+ },
481
+ {
482
+ "stateMutability": "view",
483
+ "type": "function",
484
+ "name": "no_liquidation_interval",
485
+ "inputs": [],
486
+ "outputs": [
487
+ {
488
+ "name": "",
489
+ "type": "uint256"
490
+ }
491
+ ],
492
+ "gas": 2868
493
+ },
494
+ {
495
+ "stateMutability": "view",
496
+ "type": "function",
497
+ "name": "restricted_liquidation_interval",
498
+ "inputs": [],
499
+ "outputs": [
500
+ {
501
+ "name": "",
502
+ "type": "uint256"
503
+ }
504
+ ],
505
+ "gas": 2898
506
+ },
507
+ {
508
+ "stateMutability": "view",
509
+ "type": "function",
510
+ "name": "last_liquidation_time",
511
+ "inputs": [],
512
+ "outputs": [
513
+ {
514
+ "name": "",
515
+ "type": "uint256"
516
+ }
517
+ ],
518
+ "gas": 2928
519
+ },
520
+ {
521
+ "stateMutability": "view",
522
+ "type": "function",
523
+ "name": "last_liquidation_share_price",
524
+ "inputs": [],
525
+ "outputs": [
526
+ {
527
+ "name": "",
528
+ "type": "uint256"
529
+ }
530
+ ],
531
+ "gas": 2958
532
+ },
533
+ {
534
+ "stateMutability": "view",
535
+ "type": "function",
536
+ "name": "last_liquidation_shares_burnt",
537
+ "inputs": [],
538
+ "outputs": [
539
+ {
540
+ "name": "",
541
+ "type": "uint256"
542
+ }
543
+ ],
544
+ "gas": 2988
545
+ },
546
+ {
547
+ "stateMutability": "view",
548
+ "type": "function",
549
+ "name": "version",
550
+ "inputs": [],
551
+ "outputs": [
552
+ {
553
+ "name": "",
554
+ "type": "uint256"
555
+ }
556
+ ],
557
+ "gas": 3018
558
+ },
559
+ {
560
+ "stateMutability": "view",
561
+ "type": "function",
562
+ "name": "emergency_admin",
563
+ "inputs": [],
564
+ "outputs": [
565
+ {
566
+ "name": "",
567
+ "type": "address"
568
+ }
569
+ ],
570
+ "gas": 3048
571
+ },
572
+ {
573
+ "stateMutability": "view",
574
+ "type": "function",
575
+ "name": "operations_allowed",
576
+ "inputs": [],
577
+ "outputs": [
578
+ {
579
+ "name": "",
580
+ "type": "bool"
581
+ }
582
+ ],
583
+ "gas": 3078
584
+ },
585
+ {
586
+ "stateMutability": "view",
587
+ "type": "function",
588
+ "name": "total_beth_refunded",
589
+ "inputs": [],
590
+ "outputs": [
591
+ {
592
+ "name": "",
593
+ "type": "uint256"
594
+ }
595
+ ],
596
+ "gas": 3108
597
+ }
598
+ ]
599
+ ''')