defi-state-querier 0.4.26__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 (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.27.dist-info}/METADATA +1 -1
  63. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/RECORD +66 -7
  64. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/WHEEL +1 -1
  65. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/LICENSE +0 -0
  66. {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.27.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,698 @@
1
+ import json
2
+
3
+ LIDO_BURNER_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "internalType": "address",
9
+ "name": "_admin",
10
+ "type": "address"
11
+ },
12
+ {
13
+ "internalType": "address",
14
+ "name": "_treasury",
15
+ "type": "address"
16
+ },
17
+ {
18
+ "internalType": "address",
19
+ "name": "_stETH",
20
+ "type": "address"
21
+ },
22
+ {
23
+ "internalType": "uint256",
24
+ "name": "_totalCoverSharesBurnt",
25
+ "type": "uint256"
26
+ },
27
+ {
28
+ "internalType": "uint256",
29
+ "name": "_totalNonCoverSharesBurnt",
30
+ "type": "uint256"
31
+ }
32
+ ],
33
+ "stateMutability": "nonpayable",
34
+ "type": "constructor"
35
+ },
36
+ {
37
+ "inputs": [],
38
+ "name": "AppAuthLidoFailed",
39
+ "type": "error"
40
+ },
41
+ {
42
+ "inputs": [
43
+ {
44
+ "internalType": "uint256",
45
+ "name": "requestedAmount",
46
+ "type": "uint256"
47
+ },
48
+ {
49
+ "internalType": "uint256",
50
+ "name": "actualAmount",
51
+ "type": "uint256"
52
+ }
53
+ ],
54
+ "name": "BurnAmountExceedsActual",
55
+ "type": "error"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "DirectETHTransfer",
60
+ "type": "error"
61
+ },
62
+ {
63
+ "inputs": [],
64
+ "name": "StETHRecoveryWrongFunc",
65
+ "type": "error"
66
+ },
67
+ {
68
+ "inputs": [
69
+ {
70
+ "internalType": "string",
71
+ "name": "field",
72
+ "type": "string"
73
+ }
74
+ ],
75
+ "name": "ZeroAddress",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "ZeroBurnAmount",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "ZeroRecoveryAmount",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "anonymous": false,
90
+ "inputs": [
91
+ {
92
+ "indexed": true,
93
+ "internalType": "address",
94
+ "name": "requestedBy",
95
+ "type": "address"
96
+ },
97
+ {
98
+ "indexed": true,
99
+ "internalType": "address",
100
+ "name": "token",
101
+ "type": "address"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "uint256",
106
+ "name": "amount",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "name": "ERC20Recovered",
111
+ "type": "event"
112
+ },
113
+ {
114
+ "anonymous": false,
115
+ "inputs": [
116
+ {
117
+ "indexed": true,
118
+ "internalType": "address",
119
+ "name": "requestedBy",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "indexed": true,
124
+ "internalType": "address",
125
+ "name": "token",
126
+ "type": "address"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "internalType": "uint256",
131
+ "name": "tokenId",
132
+ "type": "uint256"
133
+ }
134
+ ],
135
+ "name": "ERC721Recovered",
136
+ "type": "event"
137
+ },
138
+ {
139
+ "anonymous": false,
140
+ "inputs": [
141
+ {
142
+ "indexed": true,
143
+ "internalType": "address",
144
+ "name": "requestedBy",
145
+ "type": "address"
146
+ },
147
+ {
148
+ "indexed": false,
149
+ "internalType": "uint256",
150
+ "name": "amountOfStETH",
151
+ "type": "uint256"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "uint256",
156
+ "name": "amountOfShares",
157
+ "type": "uint256"
158
+ }
159
+ ],
160
+ "name": "ExcessStETHRecovered",
161
+ "type": "event"
162
+ },
163
+ {
164
+ "anonymous": false,
165
+ "inputs": [
166
+ {
167
+ "indexed": true,
168
+ "internalType": "bytes32",
169
+ "name": "role",
170
+ "type": "bytes32"
171
+ },
172
+ {
173
+ "indexed": true,
174
+ "internalType": "bytes32",
175
+ "name": "previousAdminRole",
176
+ "type": "bytes32"
177
+ },
178
+ {
179
+ "indexed": true,
180
+ "internalType": "bytes32",
181
+ "name": "newAdminRole",
182
+ "type": "bytes32"
183
+ }
184
+ ],
185
+ "name": "RoleAdminChanged",
186
+ "type": "event"
187
+ },
188
+ {
189
+ "anonymous": false,
190
+ "inputs": [
191
+ {
192
+ "indexed": true,
193
+ "internalType": "bytes32",
194
+ "name": "role",
195
+ "type": "bytes32"
196
+ },
197
+ {
198
+ "indexed": true,
199
+ "internalType": "address",
200
+ "name": "account",
201
+ "type": "address"
202
+ },
203
+ {
204
+ "indexed": true,
205
+ "internalType": "address",
206
+ "name": "sender",
207
+ "type": "address"
208
+ }
209
+ ],
210
+ "name": "RoleGranted",
211
+ "type": "event"
212
+ },
213
+ {
214
+ "anonymous": false,
215
+ "inputs": [
216
+ {
217
+ "indexed": true,
218
+ "internalType": "bytes32",
219
+ "name": "role",
220
+ "type": "bytes32"
221
+ },
222
+ {
223
+ "indexed": true,
224
+ "internalType": "address",
225
+ "name": "account",
226
+ "type": "address"
227
+ },
228
+ {
229
+ "indexed": true,
230
+ "internalType": "address",
231
+ "name": "sender",
232
+ "type": "address"
233
+ }
234
+ ],
235
+ "name": "RoleRevoked",
236
+ "type": "event"
237
+ },
238
+ {
239
+ "anonymous": false,
240
+ "inputs": [
241
+ {
242
+ "indexed": true,
243
+ "internalType": "bool",
244
+ "name": "isCover",
245
+ "type": "bool"
246
+ },
247
+ {
248
+ "indexed": true,
249
+ "internalType": "address",
250
+ "name": "requestedBy",
251
+ "type": "address"
252
+ },
253
+ {
254
+ "indexed": false,
255
+ "internalType": "uint256",
256
+ "name": "amountOfStETH",
257
+ "type": "uint256"
258
+ },
259
+ {
260
+ "indexed": false,
261
+ "internalType": "uint256",
262
+ "name": "amountOfShares",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "name": "StETHBurnRequested",
267
+ "type": "event"
268
+ },
269
+ {
270
+ "anonymous": false,
271
+ "inputs": [
272
+ {
273
+ "indexed": true,
274
+ "internalType": "bool",
275
+ "name": "isCover",
276
+ "type": "bool"
277
+ },
278
+ {
279
+ "indexed": false,
280
+ "internalType": "uint256",
281
+ "name": "amountOfStETH",
282
+ "type": "uint256"
283
+ },
284
+ {
285
+ "indexed": false,
286
+ "internalType": "uint256",
287
+ "name": "amountOfShares",
288
+ "type": "uint256"
289
+ }
290
+ ],
291
+ "name": "StETHBurnt",
292
+ "type": "event"
293
+ },
294
+ {
295
+ "inputs": [],
296
+ "name": "DEFAULT_ADMIN_ROLE",
297
+ "outputs": [
298
+ {
299
+ "internalType": "bytes32",
300
+ "name": "",
301
+ "type": "bytes32"
302
+ }
303
+ ],
304
+ "stateMutability": "view",
305
+ "type": "function"
306
+ },
307
+ {
308
+ "inputs": [],
309
+ "name": "REQUEST_BURN_MY_STETH_ROLE",
310
+ "outputs": [
311
+ {
312
+ "internalType": "bytes32",
313
+ "name": "",
314
+ "type": "bytes32"
315
+ }
316
+ ],
317
+ "stateMutability": "view",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [],
322
+ "name": "REQUEST_BURN_SHARES_ROLE",
323
+ "outputs": [
324
+ {
325
+ "internalType": "bytes32",
326
+ "name": "",
327
+ "type": "bytes32"
328
+ }
329
+ ],
330
+ "stateMutability": "view",
331
+ "type": "function"
332
+ },
333
+ {
334
+ "inputs": [],
335
+ "name": "STETH",
336
+ "outputs": [
337
+ {
338
+ "internalType": "address",
339
+ "name": "",
340
+ "type": "address"
341
+ }
342
+ ],
343
+ "stateMutability": "view",
344
+ "type": "function"
345
+ },
346
+ {
347
+ "inputs": [],
348
+ "name": "TREASURY",
349
+ "outputs": [
350
+ {
351
+ "internalType": "address",
352
+ "name": "",
353
+ "type": "address"
354
+ }
355
+ ],
356
+ "stateMutability": "view",
357
+ "type": "function"
358
+ },
359
+ {
360
+ "inputs": [
361
+ {
362
+ "internalType": "uint256",
363
+ "name": "_sharesToBurn",
364
+ "type": "uint256"
365
+ }
366
+ ],
367
+ "name": "commitSharesToBurn",
368
+ "outputs": [],
369
+ "stateMutability": "nonpayable",
370
+ "type": "function"
371
+ },
372
+ {
373
+ "inputs": [],
374
+ "name": "getCoverSharesBurnt",
375
+ "outputs": [
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "",
379
+ "type": "uint256"
380
+ }
381
+ ],
382
+ "stateMutability": "view",
383
+ "type": "function"
384
+ },
385
+ {
386
+ "inputs": [],
387
+ "name": "getExcessStETH",
388
+ "outputs": [
389
+ {
390
+ "internalType": "uint256",
391
+ "name": "",
392
+ "type": "uint256"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [],
400
+ "name": "getNonCoverSharesBurnt",
401
+ "outputs": [
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "stateMutability": "view",
409
+ "type": "function"
410
+ },
411
+ {
412
+ "inputs": [
413
+ {
414
+ "internalType": "bytes32",
415
+ "name": "role",
416
+ "type": "bytes32"
417
+ }
418
+ ],
419
+ "name": "getRoleAdmin",
420
+ "outputs": [
421
+ {
422
+ "internalType": "bytes32",
423
+ "name": "",
424
+ "type": "bytes32"
425
+ }
426
+ ],
427
+ "stateMutability": "view",
428
+ "type": "function"
429
+ },
430
+ {
431
+ "inputs": [
432
+ {
433
+ "internalType": "bytes32",
434
+ "name": "role",
435
+ "type": "bytes32"
436
+ },
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "index",
440
+ "type": "uint256"
441
+ }
442
+ ],
443
+ "name": "getRoleMember",
444
+ "outputs": [
445
+ {
446
+ "internalType": "address",
447
+ "name": "",
448
+ "type": "address"
449
+ }
450
+ ],
451
+ "stateMutability": "view",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [
456
+ {
457
+ "internalType": "bytes32",
458
+ "name": "role",
459
+ "type": "bytes32"
460
+ }
461
+ ],
462
+ "name": "getRoleMemberCount",
463
+ "outputs": [
464
+ {
465
+ "internalType": "uint256",
466
+ "name": "",
467
+ "type": "uint256"
468
+ }
469
+ ],
470
+ "stateMutability": "view",
471
+ "type": "function"
472
+ },
473
+ {
474
+ "inputs": [],
475
+ "name": "getSharesRequestedToBurn",
476
+ "outputs": [
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "coverShares",
480
+ "type": "uint256"
481
+ },
482
+ {
483
+ "internalType": "uint256",
484
+ "name": "nonCoverShares",
485
+ "type": "uint256"
486
+ }
487
+ ],
488
+ "stateMutability": "view",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "bytes32",
495
+ "name": "role",
496
+ "type": "bytes32"
497
+ },
498
+ {
499
+ "internalType": "address",
500
+ "name": "account",
501
+ "type": "address"
502
+ }
503
+ ],
504
+ "name": "grantRole",
505
+ "outputs": [],
506
+ "stateMutability": "nonpayable",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [
511
+ {
512
+ "internalType": "bytes32",
513
+ "name": "role",
514
+ "type": "bytes32"
515
+ },
516
+ {
517
+ "internalType": "address",
518
+ "name": "account",
519
+ "type": "address"
520
+ }
521
+ ],
522
+ "name": "hasRole",
523
+ "outputs": [
524
+ {
525
+ "internalType": "bool",
526
+ "name": "",
527
+ "type": "bool"
528
+ }
529
+ ],
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "internalType": "address",
537
+ "name": "_token",
538
+ "type": "address"
539
+ },
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "_amount",
543
+ "type": "uint256"
544
+ }
545
+ ],
546
+ "name": "recoverERC20",
547
+ "outputs": [],
548
+ "stateMutability": "nonpayable",
549
+ "type": "function"
550
+ },
551
+ {
552
+ "inputs": [
553
+ {
554
+ "internalType": "address",
555
+ "name": "_token",
556
+ "type": "address"
557
+ },
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "_tokenId",
561
+ "type": "uint256"
562
+ }
563
+ ],
564
+ "name": "recoverERC721",
565
+ "outputs": [],
566
+ "stateMutability": "nonpayable",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [],
571
+ "name": "recoverExcessStETH",
572
+ "outputs": [],
573
+ "stateMutability": "nonpayable",
574
+ "type": "function"
575
+ },
576
+ {
577
+ "inputs": [
578
+ {
579
+ "internalType": "bytes32",
580
+ "name": "role",
581
+ "type": "bytes32"
582
+ },
583
+ {
584
+ "internalType": "address",
585
+ "name": "account",
586
+ "type": "address"
587
+ }
588
+ ],
589
+ "name": "renounceRole",
590
+ "outputs": [],
591
+ "stateMutability": "nonpayable",
592
+ "type": "function"
593
+ },
594
+ {
595
+ "inputs": [
596
+ {
597
+ "internalType": "uint256",
598
+ "name": "_stETHAmountToBurn",
599
+ "type": "uint256"
600
+ }
601
+ ],
602
+ "name": "requestBurnMyStETH",
603
+ "outputs": [],
604
+ "stateMutability": "nonpayable",
605
+ "type": "function"
606
+ },
607
+ {
608
+ "inputs": [
609
+ {
610
+ "internalType": "uint256",
611
+ "name": "_stETHAmountToBurn",
612
+ "type": "uint256"
613
+ }
614
+ ],
615
+ "name": "requestBurnMyStETHForCover",
616
+ "outputs": [],
617
+ "stateMutability": "nonpayable",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [
622
+ {
623
+ "internalType": "address",
624
+ "name": "_from",
625
+ "type": "address"
626
+ },
627
+ {
628
+ "internalType": "uint256",
629
+ "name": "_sharesAmountToBurn",
630
+ "type": "uint256"
631
+ }
632
+ ],
633
+ "name": "requestBurnShares",
634
+ "outputs": [],
635
+ "stateMutability": "nonpayable",
636
+ "type": "function"
637
+ },
638
+ {
639
+ "inputs": [
640
+ {
641
+ "internalType": "address",
642
+ "name": "_from",
643
+ "type": "address"
644
+ },
645
+ {
646
+ "internalType": "uint256",
647
+ "name": "_sharesAmountToBurn",
648
+ "type": "uint256"
649
+ }
650
+ ],
651
+ "name": "requestBurnSharesForCover",
652
+ "outputs": [],
653
+ "stateMutability": "nonpayable",
654
+ "type": "function"
655
+ },
656
+ {
657
+ "inputs": [
658
+ {
659
+ "internalType": "bytes32",
660
+ "name": "role",
661
+ "type": "bytes32"
662
+ },
663
+ {
664
+ "internalType": "address",
665
+ "name": "account",
666
+ "type": "address"
667
+ }
668
+ ],
669
+ "name": "revokeRole",
670
+ "outputs": [],
671
+ "stateMutability": "nonpayable",
672
+ "type": "function"
673
+ },
674
+ {
675
+ "inputs": [
676
+ {
677
+ "internalType": "bytes4",
678
+ "name": "interfaceId",
679
+ "type": "bytes4"
680
+ }
681
+ ],
682
+ "name": "supportsInterface",
683
+ "outputs": [
684
+ {
685
+ "internalType": "bool",
686
+ "name": "",
687
+ "type": "bool"
688
+ }
689
+ ],
690
+ "stateMutability": "view",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "stateMutability": "payable",
695
+ "type": "receive"
696
+ }
697
+ ]
698
+ ''')