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,357 @@
1
+ import json
2
+
3
+ LIDO_LOCATOR_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "components": [
9
+ {
10
+ "internalType": "address",
11
+ "name": "accountingOracle",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "depositSecurityModule",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "address",
21
+ "name": "elRewardsVault",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "address",
26
+ "name": "legacyOracle",
27
+ "type": "address"
28
+ },
29
+ {
30
+ "internalType": "address",
31
+ "name": "lido",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "oracleReportSanityChecker",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "address",
41
+ "name": "postTokenRebaseReceiver",
42
+ "type": "address"
43
+ },
44
+ {
45
+ "internalType": "address",
46
+ "name": "burner",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "internalType": "address",
51
+ "name": "stakingRouter",
52
+ "type": "address"
53
+ },
54
+ {
55
+ "internalType": "address",
56
+ "name": "treasury",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "internalType": "address",
61
+ "name": "validatorsExitBusOracle",
62
+ "type": "address"
63
+ },
64
+ {
65
+ "internalType": "address",
66
+ "name": "withdrawalQueue",
67
+ "type": "address"
68
+ },
69
+ {
70
+ "internalType": "address",
71
+ "name": "withdrawalVault",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "internalType": "address",
76
+ "name": "oracleDaemonConfig",
77
+ "type": "address"
78
+ }
79
+ ],
80
+ "internalType": "struct LidoLocator.Config",
81
+ "name": "_config",
82
+ "type": "tuple"
83
+ }
84
+ ],
85
+ "stateMutability": "nonpayable",
86
+ "type": "constructor"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "ZeroAddress",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "accountingOracle",
96
+ "outputs": [
97
+ {
98
+ "internalType": "address",
99
+ "name": "",
100
+ "type": "address"
101
+ }
102
+ ],
103
+ "stateMutability": "view",
104
+ "type": "function"
105
+ },
106
+ {
107
+ "inputs": [],
108
+ "name": "burner",
109
+ "outputs": [
110
+ {
111
+ "internalType": "address",
112
+ "name": "",
113
+ "type": "address"
114
+ }
115
+ ],
116
+ "stateMutability": "view",
117
+ "type": "function"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "coreComponents",
122
+ "outputs": [
123
+ {
124
+ "internalType": "address",
125
+ "name": "",
126
+ "type": "address"
127
+ },
128
+ {
129
+ "internalType": "address",
130
+ "name": "",
131
+ "type": "address"
132
+ },
133
+ {
134
+ "internalType": "address",
135
+ "name": "",
136
+ "type": "address"
137
+ },
138
+ {
139
+ "internalType": "address",
140
+ "name": "",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "internalType": "address",
145
+ "name": "",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "internalType": "address",
150
+ "name": "",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "stateMutability": "view",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "depositSecurityModule",
160
+ "outputs": [
161
+ {
162
+ "internalType": "address",
163
+ "name": "",
164
+ "type": "address"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "elRewardsVault",
173
+ "outputs": [
174
+ {
175
+ "internalType": "address",
176
+ "name": "",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "legacyOracle",
186
+ "outputs": [
187
+ {
188
+ "internalType": "address",
189
+ "name": "",
190
+ "type": "address"
191
+ }
192
+ ],
193
+ "stateMutability": "view",
194
+ "type": "function"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "lido",
199
+ "outputs": [
200
+ {
201
+ "internalType": "address",
202
+ "name": "",
203
+ "type": "address"
204
+ }
205
+ ],
206
+ "stateMutability": "view",
207
+ "type": "function"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "oracleDaemonConfig",
212
+ "outputs": [
213
+ {
214
+ "internalType": "address",
215
+ "name": "",
216
+ "type": "address"
217
+ }
218
+ ],
219
+ "stateMutability": "view",
220
+ "type": "function"
221
+ },
222
+ {
223
+ "inputs": [],
224
+ "name": "oracleReportComponentsForLido",
225
+ "outputs": [
226
+ {
227
+ "internalType": "address",
228
+ "name": "",
229
+ "type": "address"
230
+ },
231
+ {
232
+ "internalType": "address",
233
+ "name": "",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "internalType": "address",
238
+ "name": "",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "internalType": "address",
243
+ "name": "",
244
+ "type": "address"
245
+ },
246
+ {
247
+ "internalType": "address",
248
+ "name": "",
249
+ "type": "address"
250
+ },
251
+ {
252
+ "internalType": "address",
253
+ "name": "",
254
+ "type": "address"
255
+ },
256
+ {
257
+ "internalType": "address",
258
+ "name": "",
259
+ "type": "address"
260
+ }
261
+ ],
262
+ "stateMutability": "view",
263
+ "type": "function"
264
+ },
265
+ {
266
+ "inputs": [],
267
+ "name": "oracleReportSanityChecker",
268
+ "outputs": [
269
+ {
270
+ "internalType": "address",
271
+ "name": "",
272
+ "type": "address"
273
+ }
274
+ ],
275
+ "stateMutability": "view",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [],
280
+ "name": "postTokenRebaseReceiver",
281
+ "outputs": [
282
+ {
283
+ "internalType": "address",
284
+ "name": "",
285
+ "type": "address"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [],
293
+ "name": "stakingRouter",
294
+ "outputs": [
295
+ {
296
+ "internalType": "address",
297
+ "name": "",
298
+ "type": "address"
299
+ }
300
+ ],
301
+ "stateMutability": "view",
302
+ "type": "function"
303
+ },
304
+ {
305
+ "inputs": [],
306
+ "name": "treasury",
307
+ "outputs": [
308
+ {
309
+ "internalType": "address",
310
+ "name": "",
311
+ "type": "address"
312
+ }
313
+ ],
314
+ "stateMutability": "view",
315
+ "type": "function"
316
+ },
317
+ {
318
+ "inputs": [],
319
+ "name": "validatorsExitBusOracle",
320
+ "outputs": [
321
+ {
322
+ "internalType": "address",
323
+ "name": "",
324
+ "type": "address"
325
+ }
326
+ ],
327
+ "stateMutability": "view",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [],
332
+ "name": "withdrawalQueue",
333
+ "outputs": [
334
+ {
335
+ "internalType": "address",
336
+ "name": "",
337
+ "type": "address"
338
+ }
339
+ ],
340
+ "stateMutability": "view",
341
+ "type": "function"
342
+ },
343
+ {
344
+ "inputs": [],
345
+ "name": "withdrawalVault",
346
+ "outputs": [
347
+ {
348
+ "internalType": "address",
349
+ "name": "",
350
+ "type": "address"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ }
356
+ ]
357
+ ''')
@@ -0,0 +1,331 @@
1
+ import json
2
+
3
+ LIDO_MEV_BOOST_RELAY_ALLOWED_LIST = json.loads('''
4
+ [
5
+ {
6
+ "name": "RelayAdded",
7
+ "inputs": [
8
+ {
9
+ "name": "uri_hash",
10
+ "type": "string",
11
+ "indexed": true
12
+ },
13
+ {
14
+ "name": "relay",
15
+ "type": "tuple",
16
+ "components": [
17
+ {
18
+ "name": "uri",
19
+ "type": "string"
20
+ },
21
+ {
22
+ "name": "operator",
23
+ "type": "string"
24
+ },
25
+ {
26
+ "name": "is_mandatory",
27
+ "type": "bool"
28
+ },
29
+ {
30
+ "name": "description",
31
+ "type": "string"
32
+ }
33
+ ],
34
+ "indexed": false
35
+ }
36
+ ],
37
+ "anonymous": false,
38
+ "type": "event"
39
+ },
40
+ {
41
+ "name": "RelayRemoved",
42
+ "inputs": [
43
+ {
44
+ "name": "uri_hash",
45
+ "type": "string",
46
+ "indexed": true
47
+ },
48
+ {
49
+ "name": "uri",
50
+ "type": "string",
51
+ "indexed": false
52
+ }
53
+ ],
54
+ "anonymous": false,
55
+ "type": "event"
56
+ },
57
+ {
58
+ "name": "AllowedListUpdated",
59
+ "inputs": [
60
+ {
61
+ "name": "allowed_list_version",
62
+ "type": "uint256",
63
+ "indexed": true
64
+ }
65
+ ],
66
+ "anonymous": false,
67
+ "type": "event"
68
+ },
69
+ {
70
+ "name": "OwnerChanged",
71
+ "inputs": [
72
+ {
73
+ "name": "new_owner",
74
+ "type": "address",
75
+ "indexed": true
76
+ }
77
+ ],
78
+ "anonymous": false,
79
+ "type": "event"
80
+ },
81
+ {
82
+ "name": "ManagerChanged",
83
+ "inputs": [
84
+ {
85
+ "name": "new_manager",
86
+ "type": "address",
87
+ "indexed": true
88
+ }
89
+ ],
90
+ "anonymous": false,
91
+ "type": "event"
92
+ },
93
+ {
94
+ "name": "ERC20Recovered",
95
+ "inputs": [
96
+ {
97
+ "name": "token",
98
+ "type": "address",
99
+ "indexed": true
100
+ },
101
+ {
102
+ "name": "amount",
103
+ "type": "uint256",
104
+ "indexed": false
105
+ },
106
+ {
107
+ "name": "recipient",
108
+ "type": "address",
109
+ "indexed": true
110
+ }
111
+ ],
112
+ "anonymous": false,
113
+ "type": "event"
114
+ },
115
+ {
116
+ "stateMutability": "nonpayable",
117
+ "type": "constructor",
118
+ "inputs": [
119
+ {
120
+ "name": "owner",
121
+ "type": "address"
122
+ }
123
+ ],
124
+ "outputs": []
125
+ },
126
+ {
127
+ "stateMutability": "view",
128
+ "type": "function",
129
+ "name": "get_relays_amount",
130
+ "inputs": [],
131
+ "outputs": [
132
+ {
133
+ "name": "",
134
+ "type": "uint256"
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "stateMutability": "view",
140
+ "type": "function",
141
+ "name": "get_owner",
142
+ "inputs": [],
143
+ "outputs": [
144
+ {
145
+ "name": "",
146
+ "type": "address"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "stateMutability": "view",
152
+ "type": "function",
153
+ "name": "get_manager",
154
+ "inputs": [],
155
+ "outputs": [
156
+ {
157
+ "name": "",
158
+ "type": "address"
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "stateMutability": "view",
164
+ "type": "function",
165
+ "name": "get_relays",
166
+ "inputs": [],
167
+ "outputs": [
168
+ {
169
+ "name": "",
170
+ "type": "tuple[]",
171
+ "components": [
172
+ {
173
+ "name": "uri",
174
+ "type": "string"
175
+ },
176
+ {
177
+ "name": "operator",
178
+ "type": "string"
179
+ },
180
+ {
181
+ "name": "is_mandatory",
182
+ "type": "bool"
183
+ },
184
+ {
185
+ "name": "description",
186
+ "type": "string"
187
+ }
188
+ ]
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "stateMutability": "view",
194
+ "type": "function",
195
+ "name": "get_relay_by_uri",
196
+ "inputs": [
197
+ {
198
+ "name": "relay_uri",
199
+ "type": "string"
200
+ }
201
+ ],
202
+ "outputs": [
203
+ {
204
+ "name": "",
205
+ "type": "tuple",
206
+ "components": [
207
+ {
208
+ "name": "uri",
209
+ "type": "string"
210
+ },
211
+ {
212
+ "name": "operator",
213
+ "type": "string"
214
+ },
215
+ {
216
+ "name": "is_mandatory",
217
+ "type": "bool"
218
+ },
219
+ {
220
+ "name": "description",
221
+ "type": "string"
222
+ }
223
+ ]
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "stateMutability": "view",
229
+ "type": "function",
230
+ "name": "get_allowed_list_version",
231
+ "inputs": [],
232
+ "outputs": [
233
+ {
234
+ "name": "",
235
+ "type": "uint256"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "stateMutability": "nonpayable",
241
+ "type": "function",
242
+ "name": "add_relay",
243
+ "inputs": [
244
+ {
245
+ "name": "uri",
246
+ "type": "string"
247
+ },
248
+ {
249
+ "name": "operator",
250
+ "type": "string"
251
+ },
252
+ {
253
+ "name": "is_mandatory",
254
+ "type": "bool"
255
+ },
256
+ {
257
+ "name": "description",
258
+ "type": "string"
259
+ }
260
+ ],
261
+ "outputs": []
262
+ },
263
+ {
264
+ "stateMutability": "nonpayable",
265
+ "type": "function",
266
+ "name": "remove_relay",
267
+ "inputs": [
268
+ {
269
+ "name": "uri",
270
+ "type": "string"
271
+ }
272
+ ],
273
+ "outputs": []
274
+ },
275
+ {
276
+ "stateMutability": "nonpayable",
277
+ "type": "function",
278
+ "name": "change_owner",
279
+ "inputs": [
280
+ {
281
+ "name": "owner",
282
+ "type": "address"
283
+ }
284
+ ],
285
+ "outputs": []
286
+ },
287
+ {
288
+ "stateMutability": "nonpayable",
289
+ "type": "function",
290
+ "name": "set_manager",
291
+ "inputs": [
292
+ {
293
+ "name": "manager",
294
+ "type": "address"
295
+ }
296
+ ],
297
+ "outputs": []
298
+ },
299
+ {
300
+ "stateMutability": "nonpayable",
301
+ "type": "function",
302
+ "name": "dismiss_manager",
303
+ "inputs": [],
304
+ "outputs": []
305
+ },
306
+ {
307
+ "stateMutability": "nonpayable",
308
+ "type": "function",
309
+ "name": "recover_erc20",
310
+ "inputs": [
311
+ {
312
+ "name": "token",
313
+ "type": "address"
314
+ },
315
+ {
316
+ "name": "amount",
317
+ "type": "uint256"
318
+ },
319
+ {
320
+ "name": "recipient",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "outputs": []
325
+ },
326
+ {
327
+ "stateMutability": "nonpayable",
328
+ "type": "fallback"
329
+ }
330
+ ]
331
+ ''')