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,590 @@
1
+ import json
2
+
3
+ LIDO_DAO_TOKEN_ABI = json.loads('''
4
+ [
5
+ {
6
+ "constant": true,
7
+ "inputs": [],
8
+ "name": "name",
9
+ "outputs": [
10
+ {
11
+ "name": "",
12
+ "type": "string"
13
+ }
14
+ ],
15
+ "payable": false,
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "constant": false,
21
+ "inputs": [
22
+ {
23
+ "name": "_spender",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "name": "_amount",
28
+ "type": "uint256"
29
+ }
30
+ ],
31
+ "name": "approve",
32
+ "outputs": [
33
+ {
34
+ "name": "success",
35
+ "type": "bool"
36
+ }
37
+ ],
38
+ "payable": false,
39
+ "stateMutability": "nonpayable",
40
+ "type": "function"
41
+ },
42
+ {
43
+ "constant": true,
44
+ "inputs": [],
45
+ "name": "creationBlock",
46
+ "outputs": [
47
+ {
48
+ "name": "",
49
+ "type": "uint256"
50
+ }
51
+ ],
52
+ "payable": false,
53
+ "stateMutability": "view",
54
+ "type": "function"
55
+ },
56
+ {
57
+ "constant": true,
58
+ "inputs": [],
59
+ "name": "totalSupply",
60
+ "outputs": [
61
+ {
62
+ "name": "",
63
+ "type": "uint256"
64
+ }
65
+ ],
66
+ "payable": false,
67
+ "stateMutability": "view",
68
+ "type": "function"
69
+ },
70
+ {
71
+ "constant": false,
72
+ "inputs": [
73
+ {
74
+ "name": "_from",
75
+ "type": "address"
76
+ },
77
+ {
78
+ "name": "_to",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "name": "_amount",
83
+ "type": "uint256"
84
+ }
85
+ ],
86
+ "name": "transferFrom",
87
+ "outputs": [
88
+ {
89
+ "name": "success",
90
+ "type": "bool"
91
+ }
92
+ ],
93
+ "payable": false,
94
+ "stateMutability": "nonpayable",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "constant": true,
99
+ "inputs": [],
100
+ "name": "decimals",
101
+ "outputs": [
102
+ {
103
+ "name": "",
104
+ "type": "uint8"
105
+ }
106
+ ],
107
+ "payable": false,
108
+ "stateMutability": "view",
109
+ "type": "function"
110
+ },
111
+ {
112
+ "constant": false,
113
+ "inputs": [
114
+ {
115
+ "name": "_newController",
116
+ "type": "address"
117
+ }
118
+ ],
119
+ "name": "changeController",
120
+ "outputs": [],
121
+ "payable": false,
122
+ "stateMutability": "nonpayable",
123
+ "type": "function"
124
+ },
125
+ {
126
+ "constant": true,
127
+ "inputs": [
128
+ {
129
+ "name": "_owner",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "name": "_blockNumber",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "name": "balanceOfAt",
138
+ "outputs": [
139
+ {
140
+ "name": "",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "payable": false,
145
+ "stateMutability": "view",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "constant": true,
150
+ "inputs": [],
151
+ "name": "version",
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "string"
156
+ }
157
+ ],
158
+ "payable": false,
159
+ "stateMutability": "view",
160
+ "type": "function"
161
+ },
162
+ {
163
+ "constant": false,
164
+ "inputs": [
165
+ {
166
+ "name": "_cloneTokenName",
167
+ "type": "string"
168
+ },
169
+ {
170
+ "name": "_cloneDecimalUnits",
171
+ "type": "uint8"
172
+ },
173
+ {
174
+ "name": "_cloneTokenSymbol",
175
+ "type": "string"
176
+ },
177
+ {
178
+ "name": "_snapshotBlock",
179
+ "type": "uint256"
180
+ },
181
+ {
182
+ "name": "_transfersEnabled",
183
+ "type": "bool"
184
+ }
185
+ ],
186
+ "name": "createCloneToken",
187
+ "outputs": [
188
+ {
189
+ "name": "",
190
+ "type": "address"
191
+ }
192
+ ],
193
+ "payable": false,
194
+ "stateMutability": "nonpayable",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "constant": true,
199
+ "inputs": [
200
+ {
201
+ "name": "_owner",
202
+ "type": "address"
203
+ }
204
+ ],
205
+ "name": "balanceOf",
206
+ "outputs": [
207
+ {
208
+ "name": "balance",
209
+ "type": "uint256"
210
+ }
211
+ ],
212
+ "payable": false,
213
+ "stateMutability": "view",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "constant": true,
218
+ "inputs": [],
219
+ "name": "parentToken",
220
+ "outputs": [
221
+ {
222
+ "name": "",
223
+ "type": "address"
224
+ }
225
+ ],
226
+ "payable": false,
227
+ "stateMutability": "view",
228
+ "type": "function"
229
+ },
230
+ {
231
+ "constant": false,
232
+ "inputs": [
233
+ {
234
+ "name": "_owner",
235
+ "type": "address"
236
+ },
237
+ {
238
+ "name": "_amount",
239
+ "type": "uint256"
240
+ }
241
+ ],
242
+ "name": "generateTokens",
243
+ "outputs": [
244
+ {
245
+ "name": "",
246
+ "type": "bool"
247
+ }
248
+ ],
249
+ "payable": false,
250
+ "stateMutability": "nonpayable",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "constant": true,
255
+ "inputs": [],
256
+ "name": "symbol",
257
+ "outputs": [
258
+ {
259
+ "name": "",
260
+ "type": "string"
261
+ }
262
+ ],
263
+ "payable": false,
264
+ "stateMutability": "view",
265
+ "type": "function"
266
+ },
267
+ {
268
+ "constant": true,
269
+ "inputs": [
270
+ {
271
+ "name": "_blockNumber",
272
+ "type": "uint256"
273
+ }
274
+ ],
275
+ "name": "totalSupplyAt",
276
+ "outputs": [
277
+ {
278
+ "name": "",
279
+ "type": "uint256"
280
+ }
281
+ ],
282
+ "payable": false,
283
+ "stateMutability": "view",
284
+ "type": "function"
285
+ },
286
+ {
287
+ "constant": false,
288
+ "inputs": [
289
+ {
290
+ "name": "_to",
291
+ "type": "address"
292
+ },
293
+ {
294
+ "name": "_amount",
295
+ "type": "uint256"
296
+ }
297
+ ],
298
+ "name": "transfer",
299
+ "outputs": [
300
+ {
301
+ "name": "success",
302
+ "type": "bool"
303
+ }
304
+ ],
305
+ "payable": false,
306
+ "stateMutability": "nonpayable",
307
+ "type": "function"
308
+ },
309
+ {
310
+ "constant": true,
311
+ "inputs": [],
312
+ "name": "transfersEnabled",
313
+ "outputs": [
314
+ {
315
+ "name": "",
316
+ "type": "bool"
317
+ }
318
+ ],
319
+ "payable": false,
320
+ "stateMutability": "view",
321
+ "type": "function"
322
+ },
323
+ {
324
+ "constant": true,
325
+ "inputs": [],
326
+ "name": "parentSnapShotBlock",
327
+ "outputs": [
328
+ {
329
+ "name": "",
330
+ "type": "uint256"
331
+ }
332
+ ],
333
+ "payable": false,
334
+ "stateMutability": "view",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "constant": false,
339
+ "inputs": [
340
+ {
341
+ "name": "_spender",
342
+ "type": "address"
343
+ },
344
+ {
345
+ "name": "_amount",
346
+ "type": "uint256"
347
+ },
348
+ {
349
+ "name": "_extraData",
350
+ "type": "bytes"
351
+ }
352
+ ],
353
+ "name": "approveAndCall",
354
+ "outputs": [
355
+ {
356
+ "name": "success",
357
+ "type": "bool"
358
+ }
359
+ ],
360
+ "payable": false,
361
+ "stateMutability": "nonpayable",
362
+ "type": "function"
363
+ },
364
+ {
365
+ "constant": false,
366
+ "inputs": [
367
+ {
368
+ "name": "_owner",
369
+ "type": "address"
370
+ },
371
+ {
372
+ "name": "_amount",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "name": "destroyTokens",
377
+ "outputs": [
378
+ {
379
+ "name": "",
380
+ "type": "bool"
381
+ }
382
+ ],
383
+ "payable": false,
384
+ "stateMutability": "nonpayable",
385
+ "type": "function"
386
+ },
387
+ {
388
+ "constant": true,
389
+ "inputs": [
390
+ {
391
+ "name": "_owner",
392
+ "type": "address"
393
+ },
394
+ {
395
+ "name": "_spender",
396
+ "type": "address"
397
+ }
398
+ ],
399
+ "name": "allowance",
400
+ "outputs": [
401
+ {
402
+ "name": "remaining",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "payable": false,
407
+ "stateMutability": "view",
408
+ "type": "function"
409
+ },
410
+ {
411
+ "constant": false,
412
+ "inputs": [
413
+ {
414
+ "name": "_token",
415
+ "type": "address"
416
+ }
417
+ ],
418
+ "name": "claimTokens",
419
+ "outputs": [],
420
+ "payable": false,
421
+ "stateMutability": "nonpayable",
422
+ "type": "function"
423
+ },
424
+ {
425
+ "constant": true,
426
+ "inputs": [],
427
+ "name": "tokenFactory",
428
+ "outputs": [
429
+ {
430
+ "name": "",
431
+ "type": "address"
432
+ }
433
+ ],
434
+ "payable": false,
435
+ "stateMutability": "view",
436
+ "type": "function"
437
+ },
438
+ {
439
+ "constant": false,
440
+ "inputs": [
441
+ {
442
+ "name": "_transfersEnabled",
443
+ "type": "bool"
444
+ }
445
+ ],
446
+ "name": "enableTransfers",
447
+ "outputs": [],
448
+ "payable": false,
449
+ "stateMutability": "nonpayable",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "constant": true,
454
+ "inputs": [],
455
+ "name": "controller",
456
+ "outputs": [
457
+ {
458
+ "name": "",
459
+ "type": "address"
460
+ }
461
+ ],
462
+ "payable": false,
463
+ "stateMutability": "view",
464
+ "type": "function"
465
+ },
466
+ {
467
+ "inputs": [
468
+ {
469
+ "name": "_tokenFactory",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "name": "_parentToken",
474
+ "type": "address"
475
+ },
476
+ {
477
+ "name": "_parentSnapShotBlock",
478
+ "type": "uint256"
479
+ },
480
+ {
481
+ "name": "_tokenName",
482
+ "type": "string"
483
+ },
484
+ {
485
+ "name": "_decimalUnits",
486
+ "type": "uint8"
487
+ },
488
+ {
489
+ "name": "_tokenSymbol",
490
+ "type": "string"
491
+ },
492
+ {
493
+ "name": "_transfersEnabled",
494
+ "type": "bool"
495
+ }
496
+ ],
497
+ "payable": false,
498
+ "stateMutability": "nonpayable",
499
+ "type": "constructor"
500
+ },
501
+ {
502
+ "payable": true,
503
+ "stateMutability": "payable",
504
+ "type": "fallback"
505
+ },
506
+ {
507
+ "anonymous": false,
508
+ "inputs": [
509
+ {
510
+ "indexed": true,
511
+ "name": "_token",
512
+ "type": "address"
513
+ },
514
+ {
515
+ "indexed": true,
516
+ "name": "_controller",
517
+ "type": "address"
518
+ },
519
+ {
520
+ "indexed": false,
521
+ "name": "_amount",
522
+ "type": "uint256"
523
+ }
524
+ ],
525
+ "name": "ClaimedTokens",
526
+ "type": "event"
527
+ },
528
+ {
529
+ "anonymous": false,
530
+ "inputs": [
531
+ {
532
+ "indexed": true,
533
+ "name": "_from",
534
+ "type": "address"
535
+ },
536
+ {
537
+ "indexed": true,
538
+ "name": "_to",
539
+ "type": "address"
540
+ },
541
+ {
542
+ "indexed": false,
543
+ "name": "_amount",
544
+ "type": "uint256"
545
+ }
546
+ ],
547
+ "name": "Transfer",
548
+ "type": "event"
549
+ },
550
+ {
551
+ "anonymous": false,
552
+ "inputs": [
553
+ {
554
+ "indexed": true,
555
+ "name": "_cloneToken",
556
+ "type": "address"
557
+ },
558
+ {
559
+ "indexed": false,
560
+ "name": "_snapshotBlock",
561
+ "type": "uint256"
562
+ }
563
+ ],
564
+ "name": "NewCloneToken",
565
+ "type": "event"
566
+ },
567
+ {
568
+ "anonymous": false,
569
+ "inputs": [
570
+ {
571
+ "indexed": true,
572
+ "name": "_owner",
573
+ "type": "address"
574
+ },
575
+ {
576
+ "indexed": true,
577
+ "name": "_spender",
578
+ "type": "address"
579
+ },
580
+ {
581
+ "indexed": false,
582
+ "name": "_amount",
583
+ "type": "uint256"
584
+ }
585
+ ],
586
+ "name": "Approval",
587
+ "type": "event"
588
+ }
589
+ ]
590
+ ''')