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,654 @@
1
+ import json
2
+
3
+ LIDO_ALLOWED_RECIPIENTS_REGISTRY_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "internalType": "address",
9
+ "name": "_admin",
10
+ "type": "address"
11
+ },
12
+ {
13
+ "internalType": "address[]",
14
+ "name": "_addRecipientToAllowedListRoleHolders",
15
+ "type": "address[]"
16
+ },
17
+ {
18
+ "internalType": "address[]",
19
+ "name": "_removeRecipientFromAllowedListRoleHolders",
20
+ "type": "address[]"
21
+ },
22
+ {
23
+ "internalType": "address[]",
24
+ "name": "_setParametersRoleHolders",
25
+ "type": "address[]"
26
+ },
27
+ {
28
+ "internalType": "address[]",
29
+ "name": "_updateSpentAmountRoleHolders",
30
+ "type": "address[]"
31
+ },
32
+ {
33
+ "internalType": "contract IBokkyPooBahsDateTimeContract",
34
+ "name": "_bokkyPooBahsDateTimeContract",
35
+ "type": "address"
36
+ }
37
+ ],
38
+ "stateMutability": "nonpayable",
39
+ "type": "constructor"
40
+ },
41
+ {
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": true,
46
+ "internalType": "address",
47
+ "name": "_newAddress",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "BokkyPooBahsDateTimeContractChanged",
52
+ "type": "event"
53
+ },
54
+ {
55
+ "anonymous": false,
56
+ "inputs": [
57
+ {
58
+ "indexed": true,
59
+ "internalType": "uint256",
60
+ "name": "_periodStartTimestamp",
61
+ "type": "uint256"
62
+ }
63
+ ],
64
+ "name": "CurrentPeriodAdvanced",
65
+ "type": "event"
66
+ },
67
+ {
68
+ "anonymous": false,
69
+ "inputs": [
70
+ {
71
+ "indexed": false,
72
+ "internalType": "uint256",
73
+ "name": "_limit",
74
+ "type": "uint256"
75
+ },
76
+ {
77
+ "indexed": false,
78
+ "internalType": "uint256",
79
+ "name": "_periodDurationMonths",
80
+ "type": "uint256"
81
+ }
82
+ ],
83
+ "name": "LimitsParametersChanged",
84
+ "type": "event"
85
+ },
86
+ {
87
+ "anonymous": false,
88
+ "inputs": [
89
+ {
90
+ "indexed": true,
91
+ "internalType": "address",
92
+ "name": "_recipient",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "indexed": false,
97
+ "internalType": "string",
98
+ "name": "_title",
99
+ "type": "string"
100
+ }
101
+ ],
102
+ "name": "RecipientAdded",
103
+ "type": "event"
104
+ },
105
+ {
106
+ "anonymous": false,
107
+ "inputs": [
108
+ {
109
+ "indexed": true,
110
+ "internalType": "address",
111
+ "name": "_recipient",
112
+ "type": "address"
113
+ }
114
+ ],
115
+ "name": "RecipientRemoved",
116
+ "type": "event"
117
+ },
118
+ {
119
+ "anonymous": false,
120
+ "inputs": [
121
+ {
122
+ "indexed": true,
123
+ "internalType": "bytes32",
124
+ "name": "role",
125
+ "type": "bytes32"
126
+ },
127
+ {
128
+ "indexed": true,
129
+ "internalType": "bytes32",
130
+ "name": "previousAdminRole",
131
+ "type": "bytes32"
132
+ },
133
+ {
134
+ "indexed": true,
135
+ "internalType": "bytes32",
136
+ "name": "newAdminRole",
137
+ "type": "bytes32"
138
+ }
139
+ ],
140
+ "name": "RoleAdminChanged",
141
+ "type": "event"
142
+ },
143
+ {
144
+ "anonymous": false,
145
+ "inputs": [
146
+ {
147
+ "indexed": true,
148
+ "internalType": "bytes32",
149
+ "name": "role",
150
+ "type": "bytes32"
151
+ },
152
+ {
153
+ "indexed": true,
154
+ "internalType": "address",
155
+ "name": "account",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "indexed": true,
160
+ "internalType": "address",
161
+ "name": "sender",
162
+ "type": "address"
163
+ }
164
+ ],
165
+ "name": "RoleGranted",
166
+ "type": "event"
167
+ },
168
+ {
169
+ "anonymous": false,
170
+ "inputs": [
171
+ {
172
+ "indexed": true,
173
+ "internalType": "bytes32",
174
+ "name": "role",
175
+ "type": "bytes32"
176
+ },
177
+ {
178
+ "indexed": true,
179
+ "internalType": "address",
180
+ "name": "account",
181
+ "type": "address"
182
+ },
183
+ {
184
+ "indexed": true,
185
+ "internalType": "address",
186
+ "name": "sender",
187
+ "type": "address"
188
+ }
189
+ ],
190
+ "name": "RoleRevoked",
191
+ "type": "event"
192
+ },
193
+ {
194
+ "anonymous": false,
195
+ "inputs": [
196
+ {
197
+ "indexed": false,
198
+ "internalType": "uint256",
199
+ "name": "_alreadySpentAmount",
200
+ "type": "uint256"
201
+ },
202
+ {
203
+ "indexed": false,
204
+ "internalType": "uint256",
205
+ "name": "_spendableBalance",
206
+ "type": "uint256"
207
+ },
208
+ {
209
+ "indexed": true,
210
+ "internalType": "uint256",
211
+ "name": "_periodStartTimestamp",
212
+ "type": "uint256"
213
+ },
214
+ {
215
+ "indexed": false,
216
+ "internalType": "uint256",
217
+ "name": "_periodEndTimestamp",
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "name": "SpendableAmountChanged",
222
+ "type": "event"
223
+ },
224
+ {
225
+ "anonymous": false,
226
+ "inputs": [
227
+ {
228
+ "indexed": false,
229
+ "internalType": "uint256",
230
+ "name": "_newSpentAmount",
231
+ "type": "uint256"
232
+ }
233
+ ],
234
+ "name": "SpentAmountChanged",
235
+ "type": "event"
236
+ },
237
+ {
238
+ "inputs": [],
239
+ "name": "ADD_RECIPIENT_TO_ALLOWED_LIST_ROLE",
240
+ "outputs": [
241
+ {
242
+ "internalType": "bytes32",
243
+ "name": "",
244
+ "type": "bytes32"
245
+ }
246
+ ],
247
+ "stateMutability": "view",
248
+ "type": "function"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "DEFAULT_ADMIN_ROLE",
253
+ "outputs": [
254
+ {
255
+ "internalType": "bytes32",
256
+ "name": "",
257
+ "type": "bytes32"
258
+ }
259
+ ],
260
+ "stateMutability": "view",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "REMOVE_RECIPIENT_FROM_ALLOWED_LIST_ROLE",
266
+ "outputs": [
267
+ {
268
+ "internalType": "bytes32",
269
+ "name": "",
270
+ "type": "bytes32"
271
+ }
272
+ ],
273
+ "stateMutability": "view",
274
+ "type": "function"
275
+ },
276
+ {
277
+ "inputs": [],
278
+ "name": "SET_PARAMETERS_ROLE",
279
+ "outputs": [
280
+ {
281
+ "internalType": "bytes32",
282
+ "name": "",
283
+ "type": "bytes32"
284
+ }
285
+ ],
286
+ "stateMutability": "view",
287
+ "type": "function"
288
+ },
289
+ {
290
+ "inputs": [],
291
+ "name": "UPDATE_SPENT_AMOUNT_ROLE",
292
+ "outputs": [
293
+ {
294
+ "internalType": "bytes32",
295
+ "name": "",
296
+ "type": "bytes32"
297
+ }
298
+ ],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [
304
+ {
305
+ "internalType": "address",
306
+ "name": "_recipient",
307
+ "type": "address"
308
+ },
309
+ {
310
+ "internalType": "string",
311
+ "name": "_title",
312
+ "type": "string"
313
+ }
314
+ ],
315
+ "name": "addRecipient",
316
+ "outputs": [],
317
+ "stateMutability": "nonpayable",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [
322
+ {
323
+ "internalType": "uint256",
324
+ "name": "",
325
+ "type": "uint256"
326
+ }
327
+ ],
328
+ "name": "allowedRecipients",
329
+ "outputs": [
330
+ {
331
+ "internalType": "address",
332
+ "name": "",
333
+ "type": "address"
334
+ }
335
+ ],
336
+ "stateMutability": "view",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [],
341
+ "name": "bokkyPooBahsDateTimeContract",
342
+ "outputs": [
343
+ {
344
+ "internalType": "contract IBokkyPooBahsDateTimeContract",
345
+ "name": "",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [],
354
+ "name": "getAllowedRecipients",
355
+ "outputs": [
356
+ {
357
+ "internalType": "address[]",
358
+ "name": "",
359
+ "type": "address[]"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [],
367
+ "name": "getLimitParameters",
368
+ "outputs": [
369
+ {
370
+ "internalType": "uint256",
371
+ "name": "",
372
+ "type": "uint256"
373
+ },
374
+ {
375
+ "internalType": "uint256",
376
+ "name": "",
377
+ "type": "uint256"
378
+ }
379
+ ],
380
+ "stateMutability": "view",
381
+ "type": "function"
382
+ },
383
+ {
384
+ "inputs": [],
385
+ "name": "getPeriodState",
386
+ "outputs": [
387
+ {
388
+ "internalType": "uint256",
389
+ "name": "_alreadySpentAmount",
390
+ "type": "uint256"
391
+ },
392
+ {
393
+ "internalType": "uint256",
394
+ "name": "_spendableBalanceInPeriod",
395
+ "type": "uint256"
396
+ },
397
+ {
398
+ "internalType": "uint256",
399
+ "name": "_periodStartTimestamp",
400
+ "type": "uint256"
401
+ },
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "_periodEndTimestamp",
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": "address",
439
+ "name": "account",
440
+ "type": "address"
441
+ }
442
+ ],
443
+ "name": "grantRole",
444
+ "outputs": [],
445
+ "stateMutability": "nonpayable",
446
+ "type": "function"
447
+ },
448
+ {
449
+ "inputs": [
450
+ {
451
+ "internalType": "bytes32",
452
+ "name": "role",
453
+ "type": "bytes32"
454
+ },
455
+ {
456
+ "internalType": "address",
457
+ "name": "account",
458
+ "type": "address"
459
+ }
460
+ ],
461
+ "name": "hasRole",
462
+ "outputs": [
463
+ {
464
+ "internalType": "bool",
465
+ "name": "",
466
+ "type": "bool"
467
+ }
468
+ ],
469
+ "stateMutability": "view",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [
474
+ {
475
+ "internalType": "address",
476
+ "name": "_recipient",
477
+ "type": "address"
478
+ }
479
+ ],
480
+ "name": "isRecipientAllowed",
481
+ "outputs": [
482
+ {
483
+ "internalType": "bool",
484
+ "name": "",
485
+ "type": "bool"
486
+ }
487
+ ],
488
+ "stateMutability": "view",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "uint256",
495
+ "name": "_payoutAmount",
496
+ "type": "uint256"
497
+ },
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "_motionDuration",
501
+ "type": "uint256"
502
+ }
503
+ ],
504
+ "name": "isUnderSpendableBalance",
505
+ "outputs": [
506
+ {
507
+ "internalType": "bool",
508
+ "name": "",
509
+ "type": "bool"
510
+ }
511
+ ],
512
+ "stateMutability": "view",
513
+ "type": "function"
514
+ },
515
+ {
516
+ "inputs": [
517
+ {
518
+ "internalType": "address",
519
+ "name": "_recipient",
520
+ "type": "address"
521
+ }
522
+ ],
523
+ "name": "removeRecipient",
524
+ "outputs": [],
525
+ "stateMutability": "nonpayable",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [
530
+ {
531
+ "internalType": "bytes32",
532
+ "name": "role",
533
+ "type": "bytes32"
534
+ },
535
+ {
536
+ "internalType": "address",
537
+ "name": "account",
538
+ "type": "address"
539
+ }
540
+ ],
541
+ "name": "renounceRole",
542
+ "outputs": [],
543
+ "stateMutability": "nonpayable",
544
+ "type": "function"
545
+ },
546
+ {
547
+ "inputs": [
548
+ {
549
+ "internalType": "bytes32",
550
+ "name": "role",
551
+ "type": "bytes32"
552
+ },
553
+ {
554
+ "internalType": "address",
555
+ "name": "account",
556
+ "type": "address"
557
+ }
558
+ ],
559
+ "name": "revokeRole",
560
+ "outputs": [],
561
+ "stateMutability": "nonpayable",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [
566
+ {
567
+ "internalType": "address",
568
+ "name": "_bokkyPooBahsDateTimeContract",
569
+ "type": "address"
570
+ }
571
+ ],
572
+ "name": "setBokkyPooBahsDateTimeContract",
573
+ "outputs": [],
574
+ "stateMutability": "nonpayable",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [
579
+ {
580
+ "internalType": "uint256",
581
+ "name": "_limit",
582
+ "type": "uint256"
583
+ },
584
+ {
585
+ "internalType": "uint256",
586
+ "name": "_periodDurationMonths",
587
+ "type": "uint256"
588
+ }
589
+ ],
590
+ "name": "setLimitParameters",
591
+ "outputs": [],
592
+ "stateMutability": "nonpayable",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [],
597
+ "name": "spendableBalance",
598
+ "outputs": [
599
+ {
600
+ "internalType": "uint256",
601
+ "name": "",
602
+ "type": "uint256"
603
+ }
604
+ ],
605
+ "stateMutability": "view",
606
+ "type": "function"
607
+ },
608
+ {
609
+ "inputs": [
610
+ {
611
+ "internalType": "bytes4",
612
+ "name": "interfaceId",
613
+ "type": "bytes4"
614
+ }
615
+ ],
616
+ "name": "supportsInterface",
617
+ "outputs": [
618
+ {
619
+ "internalType": "bool",
620
+ "name": "",
621
+ "type": "bool"
622
+ }
623
+ ],
624
+ "stateMutability": "view",
625
+ "type": "function"
626
+ },
627
+ {
628
+ "inputs": [
629
+ {
630
+ "internalType": "uint256",
631
+ "name": "_newSpentAmount",
632
+ "type": "uint256"
633
+ }
634
+ ],
635
+ "name": "unsafeSetSpentAmount",
636
+ "outputs": [],
637
+ "stateMutability": "nonpayable",
638
+ "type": "function"
639
+ },
640
+ {
641
+ "inputs": [
642
+ {
643
+ "internalType": "uint256",
644
+ "name": "_payoutAmount",
645
+ "type": "uint256"
646
+ }
647
+ ],
648
+ "name": "updateSpentAmount",
649
+ "outputs": [],
650
+ "stateMutability": "nonpayable",
651
+ "type": "function"
652
+ }
653
+ ]
654
+ ''')