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,434 @@
1
+ import json
2
+
3
+ LIDO_VOTING_REPO_ABI = json.loads('''
4
+ [
5
+ {
6
+ "constant": true,
7
+ "inputs": [],
8
+ "name": "hasInitialized",
9
+ "outputs": [
10
+ {
11
+ "name": "",
12
+ "type": "bool"
13
+ }
14
+ ],
15
+ "payable": false,
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "constant": true,
21
+ "inputs": [
22
+ {
23
+ "name": "_script",
24
+ "type": "bytes"
25
+ }
26
+ ],
27
+ "name": "getEVMScriptExecutor",
28
+ "outputs": [
29
+ {
30
+ "name": "",
31
+ "type": "address"
32
+ }
33
+ ],
34
+ "payable": false,
35
+ "stateMutability": "view",
36
+ "type": "function"
37
+ },
38
+ {
39
+ "constant": true,
40
+ "inputs": [],
41
+ "name": "getRecoveryVault",
42
+ "outputs": [
43
+ {
44
+ "name": "",
45
+ "type": "address"
46
+ }
47
+ ],
48
+ "payable": false,
49
+ "stateMutability": "view",
50
+ "type": "function"
51
+ },
52
+ {
53
+ "constant": true,
54
+ "inputs": [
55
+ {
56
+ "name": "_semanticVersion",
57
+ "type": "uint16[3]"
58
+ }
59
+ ],
60
+ "name": "getBySemanticVersion",
61
+ "outputs": [
62
+ {
63
+ "name": "semanticVersion",
64
+ "type": "uint16[3]"
65
+ },
66
+ {
67
+ "name": "contractAddress",
68
+ "type": "address"
69
+ },
70
+ {
71
+ "name": "contentURI",
72
+ "type": "bytes"
73
+ }
74
+ ],
75
+ "payable": false,
76
+ "stateMutability": "view",
77
+ "type": "function"
78
+ },
79
+ {
80
+ "constant": false,
81
+ "inputs": [
82
+ {
83
+ "name": "_newSemanticVersion",
84
+ "type": "uint16[3]"
85
+ },
86
+ {
87
+ "name": "_contractAddress",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "name": "_contentURI",
92
+ "type": "bytes"
93
+ }
94
+ ],
95
+ "name": "newVersion",
96
+ "outputs": [],
97
+ "payable": false,
98
+ "stateMutability": "nonpayable",
99
+ "type": "function"
100
+ },
101
+ {
102
+ "constant": true,
103
+ "inputs": [
104
+ {
105
+ "name": "_versionId",
106
+ "type": "uint256"
107
+ }
108
+ ],
109
+ "name": "getByVersionId",
110
+ "outputs": [
111
+ {
112
+ "name": "semanticVersion",
113
+ "type": "uint16[3]"
114
+ },
115
+ {
116
+ "name": "contractAddress",
117
+ "type": "address"
118
+ },
119
+ {
120
+ "name": "contentURI",
121
+ "type": "bytes"
122
+ }
123
+ ],
124
+ "payable": false,
125
+ "stateMutability": "view",
126
+ "type": "function"
127
+ },
128
+ {
129
+ "constant": true,
130
+ "inputs": [
131
+ {
132
+ "name": "token",
133
+ "type": "address"
134
+ }
135
+ ],
136
+ "name": "allowRecoverability",
137
+ "outputs": [
138
+ {
139
+ "name": "",
140
+ "type": "bool"
141
+ }
142
+ ],
143
+ "payable": false,
144
+ "stateMutability": "view",
145
+ "type": "function"
146
+ },
147
+ {
148
+ "constant": true,
149
+ "inputs": [],
150
+ "name": "appId",
151
+ "outputs": [
152
+ {
153
+ "name": "",
154
+ "type": "bytes32"
155
+ }
156
+ ],
157
+ "payable": false,
158
+ "stateMutability": "view",
159
+ "type": "function"
160
+ },
161
+ {
162
+ "constant": false,
163
+ "inputs": [],
164
+ "name": "initialize",
165
+ "outputs": [],
166
+ "payable": false,
167
+ "stateMutability": "nonpayable",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "constant": true,
172
+ "inputs": [],
173
+ "name": "getInitializationBlock",
174
+ "outputs": [
175
+ {
176
+ "name": "",
177
+ "type": "uint256"
178
+ }
179
+ ],
180
+ "payable": false,
181
+ "stateMutability": "view",
182
+ "type": "function"
183
+ },
184
+ {
185
+ "constant": true,
186
+ "inputs": [
187
+ {
188
+ "name": "_contractAddress",
189
+ "type": "address"
190
+ }
191
+ ],
192
+ "name": "getLatestForContractAddress",
193
+ "outputs": [
194
+ {
195
+ "name": "semanticVersion",
196
+ "type": "uint16[3]"
197
+ },
198
+ {
199
+ "name": "contractAddress",
200
+ "type": "address"
201
+ },
202
+ {
203
+ "name": "contentURI",
204
+ "type": "bytes"
205
+ }
206
+ ],
207
+ "payable": false,
208
+ "stateMutability": "view",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "constant": false,
213
+ "inputs": [
214
+ {
215
+ "name": "_token",
216
+ "type": "address"
217
+ }
218
+ ],
219
+ "name": "transferToVault",
220
+ "outputs": [],
221
+ "payable": false,
222
+ "stateMutability": "nonpayable",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "constant": true,
227
+ "inputs": [
228
+ {
229
+ "name": "_sender",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "name": "_role",
234
+ "type": "bytes32"
235
+ },
236
+ {
237
+ "name": "_params",
238
+ "type": "uint256[]"
239
+ }
240
+ ],
241
+ "name": "canPerform",
242
+ "outputs": [
243
+ {
244
+ "name": "",
245
+ "type": "bool"
246
+ }
247
+ ],
248
+ "payable": false,
249
+ "stateMutability": "view",
250
+ "type": "function"
251
+ },
252
+ {
253
+ "constant": true,
254
+ "inputs": [],
255
+ "name": "getEVMScriptRegistry",
256
+ "outputs": [
257
+ {
258
+ "name": "",
259
+ "type": "address"
260
+ }
261
+ ],
262
+ "payable": false,
263
+ "stateMutability": "view",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "constant": true,
268
+ "inputs": [
269
+ {
270
+ "name": "_oldVersion",
271
+ "type": "uint16[3]"
272
+ },
273
+ {
274
+ "name": "_newVersion",
275
+ "type": "uint16[3]"
276
+ }
277
+ ],
278
+ "name": "isValidBump",
279
+ "outputs": [
280
+ {
281
+ "name": "",
282
+ "type": "bool"
283
+ }
284
+ ],
285
+ "payable": false,
286
+ "stateMutability": "pure",
287
+ "type": "function"
288
+ },
289
+ {
290
+ "constant": true,
291
+ "inputs": [],
292
+ "name": "CREATE_VERSION_ROLE",
293
+ "outputs": [
294
+ {
295
+ "name": "",
296
+ "type": "bytes32"
297
+ }
298
+ ],
299
+ "payable": false,
300
+ "stateMutability": "view",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "constant": true,
305
+ "inputs": [],
306
+ "name": "getLatest",
307
+ "outputs": [
308
+ {
309
+ "name": "semanticVersion",
310
+ "type": "uint16[3]"
311
+ },
312
+ {
313
+ "name": "contractAddress",
314
+ "type": "address"
315
+ },
316
+ {
317
+ "name": "contentURI",
318
+ "type": "bytes"
319
+ }
320
+ ],
321
+ "payable": false,
322
+ "stateMutability": "view",
323
+ "type": "function"
324
+ },
325
+ {
326
+ "constant": true,
327
+ "inputs": [],
328
+ "name": "getVersionsCount",
329
+ "outputs": [
330
+ {
331
+ "name": "",
332
+ "type": "uint256"
333
+ }
334
+ ],
335
+ "payable": false,
336
+ "stateMutability": "view",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "constant": true,
341
+ "inputs": [],
342
+ "name": "kernel",
343
+ "outputs": [
344
+ {
345
+ "name": "",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "payable": false,
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "constant": true,
355
+ "inputs": [],
356
+ "name": "isPetrified",
357
+ "outputs": [
358
+ {
359
+ "name": "",
360
+ "type": "bool"
361
+ }
362
+ ],
363
+ "payable": false,
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
367
+ {
368
+ "anonymous": false,
369
+ "inputs": [
370
+ {
371
+ "indexed": false,
372
+ "name": "versionId",
373
+ "type": "uint256"
374
+ },
375
+ {
376
+ "indexed": false,
377
+ "name": "semanticVersion",
378
+ "type": "uint16[3]"
379
+ }
380
+ ],
381
+ "name": "NewVersion",
382
+ "type": "event"
383
+ },
384
+ {
385
+ "anonymous": false,
386
+ "inputs": [
387
+ {
388
+ "indexed": true,
389
+ "name": "executor",
390
+ "type": "address"
391
+ },
392
+ {
393
+ "indexed": false,
394
+ "name": "script",
395
+ "type": "bytes"
396
+ },
397
+ {
398
+ "indexed": false,
399
+ "name": "input",
400
+ "type": "bytes"
401
+ },
402
+ {
403
+ "indexed": false,
404
+ "name": "returnData",
405
+ "type": "bytes"
406
+ }
407
+ ],
408
+ "name": "ScriptResult",
409
+ "type": "event"
410
+ },
411
+ {
412
+ "anonymous": false,
413
+ "inputs": [
414
+ {
415
+ "indexed": true,
416
+ "name": "vault",
417
+ "type": "address"
418
+ },
419
+ {
420
+ "indexed": true,
421
+ "name": "token",
422
+ "type": "address"
423
+ },
424
+ {
425
+ "indexed": false,
426
+ "name": "amount",
427
+ "type": "uint256"
428
+ }
429
+ ],
430
+ "name": "RecoverToVault",
431
+ "type": "event"
432
+ }
433
+ ]
434
+ ''')
@@ -0,0 +1,121 @@
1
+ import json
2
+
3
+ LIDO_WITHDRAWAL_VAULT_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [],
7
+ "stateMutability": "nonpayable",
8
+ "type": "constructor"
9
+ },
10
+ {
11
+ "anonymous": false,
12
+ "inputs": [
13
+ {
14
+ "indexed": false,
15
+ "internalType": "address",
16
+ "name": "previousAdmin",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "indexed": false,
21
+ "internalType": "address",
22
+ "name": "newAdmin",
23
+ "type": "address"
24
+ }
25
+ ],
26
+ "name": "AdminChanged",
27
+ "type": "event"
28
+ },
29
+ {
30
+ "anonymous": false,
31
+ "inputs": [
32
+ {
33
+ "indexed": true,
34
+ "internalType": "address",
35
+ "name": "implementation",
36
+ "type": "address"
37
+ }
38
+ ],
39
+ "name": "Upgraded",
40
+ "type": "event"
41
+ },
42
+ {
43
+ "stateMutability": "payable",
44
+ "type": "fallback"
45
+ },
46
+ {
47
+ "inputs": [],
48
+ "name": "implementation",
49
+ "outputs": [
50
+ {
51
+ "internalType": "address",
52
+ "name": "",
53
+ "type": "address"
54
+ }
55
+ ],
56
+ "stateMutability": "view",
57
+ "type": "function"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "internalType": "address",
63
+ "name": "newAdmin",
64
+ "type": "address"
65
+ }
66
+ ],
67
+ "name": "proxy_changeAdmin",
68
+ "outputs": [],
69
+ "stateMutability": "nonpayable",
70
+ "type": "function"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "proxy_getAdmin",
75
+ "outputs": [
76
+ {
77
+ "internalType": "address",
78
+ "name": "",
79
+ "type": "address"
80
+ }
81
+ ],
82
+ "stateMutability": "view",
83
+ "type": "function"
84
+ },
85
+ {
86
+ "inputs": [],
87
+ "name": "proxy_getIsOssified",
88
+ "outputs": [
89
+ {
90
+ "internalType": "bool",
91
+ "name": "",
92
+ "type": "bool"
93
+ }
94
+ ],
95
+ "stateMutability": "view",
96
+ "type": "function"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "newImplementation",
103
+ "type": "address"
104
+ },
105
+ {
106
+ "internalType": "bytes",
107
+ "name": "setupCalldata",
108
+ "type": "bytes"
109
+ }
110
+ ],
111
+ "name": "proxy_upgradeTo",
112
+ "outputs": [],
113
+ "stateMutability": "nonpayable",
114
+ "type": "function"
115
+ },
116
+ {
117
+ "stateMutability": "payable",
118
+ "type": "receive"
119
+ }
120
+ ]
121
+ ''')