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