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,687 @@
1
+ import json
2
+
3
+ LIDO_DEPOSIT_SECURITY_MODULE_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "internalType": "address",
9
+ "name": "_lido",
10
+ "type": "address"
11
+ },
12
+ {
13
+ "internalType": "address",
14
+ "name": "_depositContract",
15
+ "type": "address"
16
+ },
17
+ {
18
+ "internalType": "address",
19
+ "name": "_stakingRouter",
20
+ "type": "address"
21
+ },
22
+ {
23
+ "internalType": "uint256",
24
+ "name": "_maxDepositsPerBlock",
25
+ "type": "uint256"
26
+ },
27
+ {
28
+ "internalType": "uint256",
29
+ "name": "_minDepositBlockDistance",
30
+ "type": "uint256"
31
+ },
32
+ {
33
+ "internalType": "uint256",
34
+ "name": "_pauseIntentValidityPeriodBlocks",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "stateMutability": "nonpayable",
39
+ "type": "constructor"
40
+ },
41
+ {
42
+ "inputs": [],
43
+ "name": "DepositInactiveModule",
44
+ "type": "error"
45
+ },
46
+ {
47
+ "inputs": [],
48
+ "name": "DepositNoQuorum",
49
+ "type": "error"
50
+ },
51
+ {
52
+ "inputs": [],
53
+ "name": "DepositNonceChanged",
54
+ "type": "error"
55
+ },
56
+ {
57
+ "inputs": [],
58
+ "name": "DepositRootChanged",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [],
63
+ "name": "DepositTooFrequent",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [],
68
+ "name": "DepositUnexpectedBlockHash",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "address",
75
+ "name": "addr",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "DuplicateAddress",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "InvalidSignature",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "address",
91
+ "name": "addr",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "NotAGuardian",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "caller",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "NotAnOwner",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "PauseIntentExpired",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "SignaturesNotSorted",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [
121
+ {
122
+ "internalType": "string",
123
+ "name": "field",
124
+ "type": "string"
125
+ }
126
+ ],
127
+ "name": "ZeroAddress",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "string",
134
+ "name": "parameter",
135
+ "type": "string"
136
+ }
137
+ ],
138
+ "name": "ZeroParameter",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "anonymous": false,
143
+ "inputs": [
144
+ {
145
+ "indexed": true,
146
+ "internalType": "address",
147
+ "name": "guardian",
148
+ "type": "address"
149
+ },
150
+ {
151
+ "indexed": true,
152
+ "internalType": "uint24",
153
+ "name": "stakingModuleId",
154
+ "type": "uint24"
155
+ }
156
+ ],
157
+ "name": "DepositsPaused",
158
+ "type": "event"
159
+ },
160
+ {
161
+ "anonymous": false,
162
+ "inputs": [
163
+ {
164
+ "indexed": true,
165
+ "internalType": "uint24",
166
+ "name": "stakingModuleId",
167
+ "type": "uint24"
168
+ }
169
+ ],
170
+ "name": "DepositsUnpaused",
171
+ "type": "event"
172
+ },
173
+ {
174
+ "anonymous": false,
175
+ "inputs": [
176
+ {
177
+ "indexed": false,
178
+ "internalType": "address",
179
+ "name": "guardian",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "GuardianAdded",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": false,
191
+ "internalType": "uint256",
192
+ "name": "newValue",
193
+ "type": "uint256"
194
+ }
195
+ ],
196
+ "name": "GuardianQuorumChanged",
197
+ "type": "event"
198
+ },
199
+ {
200
+ "anonymous": false,
201
+ "inputs": [
202
+ {
203
+ "indexed": false,
204
+ "internalType": "address",
205
+ "name": "guardian",
206
+ "type": "address"
207
+ }
208
+ ],
209
+ "name": "GuardianRemoved",
210
+ "type": "event"
211
+ },
212
+ {
213
+ "anonymous": false,
214
+ "inputs": [
215
+ {
216
+ "indexed": false,
217
+ "internalType": "uint256",
218
+ "name": "newValue",
219
+ "type": "uint256"
220
+ }
221
+ ],
222
+ "name": "MaxDepositsChanged",
223
+ "type": "event"
224
+ },
225
+ {
226
+ "anonymous": false,
227
+ "inputs": [
228
+ {
229
+ "indexed": false,
230
+ "internalType": "uint256",
231
+ "name": "newValue",
232
+ "type": "uint256"
233
+ }
234
+ ],
235
+ "name": "MinDepositBlockDistanceChanged",
236
+ "type": "event"
237
+ },
238
+ {
239
+ "anonymous": false,
240
+ "inputs": [
241
+ {
242
+ "indexed": false,
243
+ "internalType": "address",
244
+ "name": "newValue",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "name": "OwnerChanged",
249
+ "type": "event"
250
+ },
251
+ {
252
+ "anonymous": false,
253
+ "inputs": [
254
+ {
255
+ "indexed": false,
256
+ "internalType": "uint256",
257
+ "name": "newValue",
258
+ "type": "uint256"
259
+ }
260
+ ],
261
+ "name": "PauseIntentValidityPeriodBlocksChanged",
262
+ "type": "event"
263
+ },
264
+ {
265
+ "inputs": [],
266
+ "name": "ATTEST_MESSAGE_PREFIX",
267
+ "outputs": [
268
+ {
269
+ "internalType": "bytes32",
270
+ "name": "",
271
+ "type": "bytes32"
272
+ }
273
+ ],
274
+ "stateMutability": "view",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "inputs": [],
279
+ "name": "DEPOSIT_CONTRACT",
280
+ "outputs": [
281
+ {
282
+ "internalType": "contract IDepositContract",
283
+ "name": "",
284
+ "type": "address"
285
+ }
286
+ ],
287
+ "stateMutability": "view",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [],
292
+ "name": "LIDO",
293
+ "outputs": [
294
+ {
295
+ "internalType": "contract ILido",
296
+ "name": "",
297
+ "type": "address"
298
+ }
299
+ ],
300
+ "stateMutability": "view",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "inputs": [],
305
+ "name": "PAUSE_MESSAGE_PREFIX",
306
+ "outputs": [
307
+ {
308
+ "internalType": "bytes32",
309
+ "name": "",
310
+ "type": "bytes32"
311
+ }
312
+ ],
313
+ "stateMutability": "view",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "STAKING_ROUTER",
319
+ "outputs": [
320
+ {
321
+ "internalType": "contract IStakingRouter",
322
+ "name": "",
323
+ "type": "address"
324
+ }
325
+ ],
326
+ "stateMutability": "view",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [
331
+ {
332
+ "internalType": "address",
333
+ "name": "addr",
334
+ "type": "address"
335
+ },
336
+ {
337
+ "internalType": "uint256",
338
+ "name": "newQuorum",
339
+ "type": "uint256"
340
+ }
341
+ ],
342
+ "name": "addGuardian",
343
+ "outputs": [],
344
+ "stateMutability": "nonpayable",
345
+ "type": "function"
346
+ },
347
+ {
348
+ "inputs": [
349
+ {
350
+ "internalType": "address[]",
351
+ "name": "addresses",
352
+ "type": "address[]"
353
+ },
354
+ {
355
+ "internalType": "uint256",
356
+ "name": "newQuorum",
357
+ "type": "uint256"
358
+ }
359
+ ],
360
+ "name": "addGuardians",
361
+ "outputs": [],
362
+ "stateMutability": "nonpayable",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [
367
+ {
368
+ "internalType": "uint256",
369
+ "name": "stakingModuleId",
370
+ "type": "uint256"
371
+ }
372
+ ],
373
+ "name": "canDeposit",
374
+ "outputs": [
375
+ {
376
+ "internalType": "bool",
377
+ "name": "",
378
+ "type": "bool"
379
+ }
380
+ ],
381
+ "stateMutability": "view",
382
+ "type": "function"
383
+ },
384
+ {
385
+ "inputs": [
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "blockNumber",
389
+ "type": "uint256"
390
+ },
391
+ {
392
+ "internalType": "bytes32",
393
+ "name": "blockHash",
394
+ "type": "bytes32"
395
+ },
396
+ {
397
+ "internalType": "bytes32",
398
+ "name": "depositRoot",
399
+ "type": "bytes32"
400
+ },
401
+ {
402
+ "internalType": "uint256",
403
+ "name": "stakingModuleId",
404
+ "type": "uint256"
405
+ },
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "nonce",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "internalType": "bytes",
413
+ "name": "depositCalldata",
414
+ "type": "bytes"
415
+ },
416
+ {
417
+ "components": [
418
+ {
419
+ "internalType": "bytes32",
420
+ "name": "r",
421
+ "type": "bytes32"
422
+ },
423
+ {
424
+ "internalType": "bytes32",
425
+ "name": "vs",
426
+ "type": "bytes32"
427
+ }
428
+ ],
429
+ "internalType": "struct DepositSecurityModule.Signature[]",
430
+ "name": "sortedGuardianSignatures",
431
+ "type": "tuple[]"
432
+ }
433
+ ],
434
+ "name": "depositBufferedEther",
435
+ "outputs": [],
436
+ "stateMutability": "nonpayable",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "inputs": [
441
+ {
442
+ "internalType": "address",
443
+ "name": "addr",
444
+ "type": "address"
445
+ }
446
+ ],
447
+ "name": "getGuardianIndex",
448
+ "outputs": [
449
+ {
450
+ "internalType": "int256",
451
+ "name": "",
452
+ "type": "int256"
453
+ }
454
+ ],
455
+ "stateMutability": "view",
456
+ "type": "function"
457
+ },
458
+ {
459
+ "inputs": [],
460
+ "name": "getGuardianQuorum",
461
+ "outputs": [
462
+ {
463
+ "internalType": "uint256",
464
+ "name": "",
465
+ "type": "uint256"
466
+ }
467
+ ],
468
+ "stateMutability": "view",
469
+ "type": "function"
470
+ },
471
+ {
472
+ "inputs": [],
473
+ "name": "getGuardians",
474
+ "outputs": [
475
+ {
476
+ "internalType": "address[]",
477
+ "name": "",
478
+ "type": "address[]"
479
+ }
480
+ ],
481
+ "stateMutability": "view",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [],
486
+ "name": "getMaxDeposits",
487
+ "outputs": [
488
+ {
489
+ "internalType": "uint256",
490
+ "name": "",
491
+ "type": "uint256"
492
+ }
493
+ ],
494
+ "stateMutability": "view",
495
+ "type": "function"
496
+ },
497
+ {
498
+ "inputs": [],
499
+ "name": "getMinDepositBlockDistance",
500
+ "outputs": [
501
+ {
502
+ "internalType": "uint256",
503
+ "name": "",
504
+ "type": "uint256"
505
+ }
506
+ ],
507
+ "stateMutability": "view",
508
+ "type": "function"
509
+ },
510
+ {
511
+ "inputs": [],
512
+ "name": "getOwner",
513
+ "outputs": [
514
+ {
515
+ "internalType": "address",
516
+ "name": "",
517
+ "type": "address"
518
+ }
519
+ ],
520
+ "stateMutability": "view",
521
+ "type": "function"
522
+ },
523
+ {
524
+ "inputs": [],
525
+ "name": "getPauseIntentValidityPeriodBlocks",
526
+ "outputs": [
527
+ {
528
+ "internalType": "uint256",
529
+ "name": "",
530
+ "type": "uint256"
531
+ }
532
+ ],
533
+ "stateMutability": "view",
534
+ "type": "function"
535
+ },
536
+ {
537
+ "inputs": [
538
+ {
539
+ "internalType": "address",
540
+ "name": "addr",
541
+ "type": "address"
542
+ }
543
+ ],
544
+ "name": "isGuardian",
545
+ "outputs": [
546
+ {
547
+ "internalType": "bool",
548
+ "name": "",
549
+ "type": "bool"
550
+ }
551
+ ],
552
+ "stateMutability": "view",
553
+ "type": "function"
554
+ },
555
+ {
556
+ "inputs": [
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "blockNumber",
560
+ "type": "uint256"
561
+ },
562
+ {
563
+ "internalType": "uint256",
564
+ "name": "stakingModuleId",
565
+ "type": "uint256"
566
+ },
567
+ {
568
+ "components": [
569
+ {
570
+ "internalType": "bytes32",
571
+ "name": "r",
572
+ "type": "bytes32"
573
+ },
574
+ {
575
+ "internalType": "bytes32",
576
+ "name": "vs",
577
+ "type": "bytes32"
578
+ }
579
+ ],
580
+ "internalType": "struct DepositSecurityModule.Signature",
581
+ "name": "sig",
582
+ "type": "tuple"
583
+ }
584
+ ],
585
+ "name": "pauseDeposits",
586
+ "outputs": [],
587
+ "stateMutability": "nonpayable",
588
+ "type": "function"
589
+ },
590
+ {
591
+ "inputs": [
592
+ {
593
+ "internalType": "address",
594
+ "name": "addr",
595
+ "type": "address"
596
+ },
597
+ {
598
+ "internalType": "uint256",
599
+ "name": "newQuorum",
600
+ "type": "uint256"
601
+ }
602
+ ],
603
+ "name": "removeGuardian",
604
+ "outputs": [],
605
+ "stateMutability": "nonpayable",
606
+ "type": "function"
607
+ },
608
+ {
609
+ "inputs": [
610
+ {
611
+ "internalType": "uint256",
612
+ "name": "newValue",
613
+ "type": "uint256"
614
+ }
615
+ ],
616
+ "name": "setGuardianQuorum",
617
+ "outputs": [],
618
+ "stateMutability": "nonpayable",
619
+ "type": "function"
620
+ },
621
+ {
622
+ "inputs": [
623
+ {
624
+ "internalType": "uint256",
625
+ "name": "newValue",
626
+ "type": "uint256"
627
+ }
628
+ ],
629
+ "name": "setMaxDeposits",
630
+ "outputs": [],
631
+ "stateMutability": "nonpayable",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "newValue",
639
+ "type": "uint256"
640
+ }
641
+ ],
642
+ "name": "setMinDepositBlockDistance",
643
+ "outputs": [],
644
+ "stateMutability": "nonpayable",
645
+ "type": "function"
646
+ },
647
+ {
648
+ "inputs": [
649
+ {
650
+ "internalType": "address",
651
+ "name": "newValue",
652
+ "type": "address"
653
+ }
654
+ ],
655
+ "name": "setOwner",
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable",
658
+ "type": "function"
659
+ },
660
+ {
661
+ "inputs": [
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "newValue",
665
+ "type": "uint256"
666
+ }
667
+ ],
668
+ "name": "setPauseIntentValidityPeriodBlocks",
669
+ "outputs": [],
670
+ "stateMutability": "nonpayable",
671
+ "type": "function"
672
+ },
673
+ {
674
+ "inputs": [
675
+ {
676
+ "internalType": "uint256",
677
+ "name": "stakingModuleId",
678
+ "type": "uint256"
679
+ }
680
+ ],
681
+ "name": "unpauseDeposits",
682
+ "outputs": [],
683
+ "stateMutability": "nonpayable",
684
+ "type": "function"
685
+ }
686
+ ]
687
+ ''')