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.
- defi_services/__init__.py +1 -1
- defi_services/abis/vault/lido/__init__.py +0 -0
- defi_services/abis/vault/lido/event_transfer_shares.py +8 -0
- defi_services/abis/vault/lido/lido_1inch_steth_dai_pool.py +1308 -0
- defi_services/abis/vault/lido/lido_accounting_oracle.py +1342 -0
- defi_services/abis/vault/lido/lido_add_allowed_recipient.py +96 -0
- defi_services/abis/vault/lido/lido_allowed_recipents_factory.py +303 -0
- defi_services/abis/vault/lido/lido_allowed_recipients_builder_multi_token_tooling.py +427 -0
- defi_services/abis/vault/lido/lido_allowed_recipients_builder_tooling.py +414 -0
- defi_services/abis/vault/lido/lido_allowed_recipients_factory_multi_token.py +369 -0
- defi_services/abis/vault/lido/lido_allowed_recipients_registry.py +654 -0
- defi_services/abis/vault/lido/lido_allowed_token_registry.py +397 -0
- defi_services/abis/vault/lido/lido_anchor_vault.py +599 -0
- defi_services/abis/vault/lido/lido_aragon_acl.py +755 -0
- defi_services/abis/vault/lido/lido_aragon_agent.py +984 -0
- defi_services/abis/vault/lido/lido_aragon_finance.py +1013 -0
- defi_services/abis/vault/lido/lido_aragon_pm.py +490 -0
- defi_services/abis/vault/lido/lido_aragon_token_manager.py +759 -0
- defi_services/abis/vault/lido/lido_aragon_voting.py +887 -0
- defi_services/abis/vault/lido/lido_balancer_wseth_eth_pool.py +1441 -0
- defi_services/abis/vault/lido/lido_burner.py +698 -0
- defi_services/abis/vault/lido/lido_curated_staking_module.py +1571 -0
- defi_services/abis/vault/lido/lido_curve_liquidity_farming_manager.py +113 -0
- defi_services/abis/vault/lido/lido_curve_liquidity_farming_pool.py +899 -0
- defi_services/abis/vault/lido/lido_curve_liquidity_farming_reward.py +666 -0
- defi_services/abis/vault/lido/lido_curve_steth_eth_gauge.py +967 -0
- defi_services/abis/vault/lido/lido_curve_steth_eth_pool.py +986 -0
- defi_services/abis/vault/lido/lido_dao.py +623 -0
- defi_services/abis/vault/lido/lido_dao_insurance_fund.py +283 -0
- defi_services/abis/vault/lido/lido_dao_token.py +590 -0
- defi_services/abis/vault/lido/lido_deposit_security_module.py +687 -0
- defi_services/abis/vault/lido/lido_early_stakes_airdrop.py +120 -0
- defi_services/abis/vault/lido/lido_easy_track.py +1108 -0
- defi_services/abis/vault/lido/lido_evem_script_executor.py +170 -0
- defi_services/abis/vault/lido/lido_execution_layer_rewards_vaults.py +170 -0
- defi_services/abis/vault/lido/lido_l1_executor.py +135 -0
- defi_services/abis/vault/lido/lido_l1_proxy_admin.py +155 -0
- defi_services/abis/vault/lido/lido_legacy_oracle.py +539 -0
- defi_services/abis/vault/lido/lido_liquidity_farming_pool.py +899 -0
- defi_services/abis/vault/lido/lido_locator.py +357 -0
- defi_services/abis/vault/lido/lido_mev_boost_relay_allowed_list.py +331 -0
- defi_services/abis/vault/lido/lido_multisigs.py +1037 -0
- defi_services/abis/vault/lido/lido_oracle_daemon_config.py +474 -0
- defi_services/abis/vault/lido/lido_oracle_report_sanity_checker.py +1327 -0
- defi_services/abis/vault/lido/lido_remove_allowed_recipient.py +91 -0
- defi_services/abis/vault/lido/lido_staking_router.py +2311 -0
- defi_services/abis/vault/lido/lido_steth.py +1604 -0
- defi_services/abis/vault/lido/lido_stonks.py +744 -0
- defi_services/abis/vault/lido/lido_sushi_wsteth_dai_pool.py +662 -0
- defi_services/abis/vault/lido/lido_token_brigde.py +735 -0
- defi_services/abis/vault/lido/lido_token_gateway.py +808 -0
- defi_services/abis/vault/lido/lido_token_reward_program.py +363 -0
- defi_services/abis/vault/lido/lido_top_up_allowed_recipients.py +150 -0
- defi_services/abis/vault/lido/lido_validators_exit_bus_oracle.py +1230 -0
- defi_services/abis/vault/lido/lido_validators_exit_bus_oracle_hash_consensus.py +1085 -0
- defi_services/abis/vault/lido/lido_voting_repo.py +434 -0
- defi_services/abis/vault/lido/lido_withdrawal_vault.py +121 -0
- defi_services/abis/vault/lido/lido_withdrawl_queue.py +2031 -0
- defi_services/abis/vault/lido/lido_wsteth.py +481 -0
- defi_services/abis/vault/lido/lidor_accounting_oracle_hash_consensus.py +1085 -0
- defi_services/services/token_services.py +1 -1
- {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/METADATA +4 -4
- {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/RECORD +66 -7
- {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/WHEEL +1 -1
- {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/LICENSE +0 -0
- {defi_state_querier-0.4.26.dist-info → defi_state_querier-0.4.28.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,397 @@
|
|
1
|
+
import json
|
2
|
+
|
3
|
+
LIDO_ALLOWED_TOKEN_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": "_addTokenToAllowedListRoleHolders",
|
15
|
+
"type": "address[]"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"internalType": "address[]",
|
19
|
+
"name": "_removeTokenFromAllowedListRoleHolders",
|
20
|
+
"type": "address[]"
|
21
|
+
}
|
22
|
+
],
|
23
|
+
"stateMutability": "nonpayable",
|
24
|
+
"type": "constructor"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"anonymous": false,
|
28
|
+
"inputs": [
|
29
|
+
{
|
30
|
+
"indexed": true,
|
31
|
+
"internalType": "bytes32",
|
32
|
+
"name": "role",
|
33
|
+
"type": "bytes32"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"indexed": true,
|
37
|
+
"internalType": "bytes32",
|
38
|
+
"name": "previousAdminRole",
|
39
|
+
"type": "bytes32"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"indexed": true,
|
43
|
+
"internalType": "bytes32",
|
44
|
+
"name": "newAdminRole",
|
45
|
+
"type": "bytes32"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"name": "RoleAdminChanged",
|
49
|
+
"type": "event"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"anonymous": false,
|
53
|
+
"inputs": [
|
54
|
+
{
|
55
|
+
"indexed": true,
|
56
|
+
"internalType": "bytes32",
|
57
|
+
"name": "role",
|
58
|
+
"type": "bytes32"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"indexed": true,
|
62
|
+
"internalType": "address",
|
63
|
+
"name": "account",
|
64
|
+
"type": "address"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"indexed": true,
|
68
|
+
"internalType": "address",
|
69
|
+
"name": "sender",
|
70
|
+
"type": "address"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "RoleGranted",
|
74
|
+
"type": "event"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"anonymous": false,
|
78
|
+
"inputs": [
|
79
|
+
{
|
80
|
+
"indexed": true,
|
81
|
+
"internalType": "bytes32",
|
82
|
+
"name": "role",
|
83
|
+
"type": "bytes32"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"indexed": true,
|
87
|
+
"internalType": "address",
|
88
|
+
"name": "account",
|
89
|
+
"type": "address"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"indexed": true,
|
93
|
+
"internalType": "address",
|
94
|
+
"name": "sender",
|
95
|
+
"type": "address"
|
96
|
+
}
|
97
|
+
],
|
98
|
+
"name": "RoleRevoked",
|
99
|
+
"type": "event"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"anonymous": false,
|
103
|
+
"inputs": [
|
104
|
+
{
|
105
|
+
"indexed": true,
|
106
|
+
"internalType": "address",
|
107
|
+
"name": "_token",
|
108
|
+
"type": "address"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"name": "TokenAdded",
|
112
|
+
"type": "event"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"anonymous": false,
|
116
|
+
"inputs": [
|
117
|
+
{
|
118
|
+
"indexed": true,
|
119
|
+
"internalType": "address",
|
120
|
+
"name": "_token",
|
121
|
+
"type": "address"
|
122
|
+
}
|
123
|
+
],
|
124
|
+
"name": "TokenRemoved",
|
125
|
+
"type": "event"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"inputs": [],
|
129
|
+
"name": "ADD_TOKEN_TO_ALLOWED_LIST_ROLE",
|
130
|
+
"outputs": [
|
131
|
+
{
|
132
|
+
"internalType": "bytes32",
|
133
|
+
"name": "",
|
134
|
+
"type": "bytes32"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"stateMutability": "view",
|
138
|
+
"type": "function"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"inputs": [],
|
142
|
+
"name": "DEFAULT_ADMIN_ROLE",
|
143
|
+
"outputs": [
|
144
|
+
{
|
145
|
+
"internalType": "bytes32",
|
146
|
+
"name": "",
|
147
|
+
"type": "bytes32"
|
148
|
+
}
|
149
|
+
],
|
150
|
+
"stateMutability": "view",
|
151
|
+
"type": "function"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"inputs": [],
|
155
|
+
"name": "REMOVE_TOKEN_FROM_ALLOWED_LIST_ROLE",
|
156
|
+
"outputs": [
|
157
|
+
{
|
158
|
+
"internalType": "bytes32",
|
159
|
+
"name": "",
|
160
|
+
"type": "bytes32"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"stateMutability": "view",
|
164
|
+
"type": "function"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"inputs": [
|
168
|
+
{
|
169
|
+
"internalType": "address",
|
170
|
+
"name": "_token",
|
171
|
+
"type": "address"
|
172
|
+
}
|
173
|
+
],
|
174
|
+
"name": "addToken",
|
175
|
+
"outputs": [],
|
176
|
+
"stateMutability": "nonpayable",
|
177
|
+
"type": "function"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"inputs": [
|
181
|
+
{
|
182
|
+
"internalType": "uint256",
|
183
|
+
"name": "",
|
184
|
+
"type": "uint256"
|
185
|
+
}
|
186
|
+
],
|
187
|
+
"name": "allowedTokens",
|
188
|
+
"outputs": [
|
189
|
+
{
|
190
|
+
"internalType": "address",
|
191
|
+
"name": "",
|
192
|
+
"type": "address"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"stateMutability": "view",
|
196
|
+
"type": "function"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"inputs": [],
|
200
|
+
"name": "decimals",
|
201
|
+
"outputs": [
|
202
|
+
{
|
203
|
+
"internalType": "uint8",
|
204
|
+
"name": "",
|
205
|
+
"type": "uint8"
|
206
|
+
}
|
207
|
+
],
|
208
|
+
"stateMutability": "pure",
|
209
|
+
"type": "function"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"inputs": [],
|
213
|
+
"name": "getAllowedTokens",
|
214
|
+
"outputs": [
|
215
|
+
{
|
216
|
+
"internalType": "address[]",
|
217
|
+
"name": "",
|
218
|
+
"type": "address[]"
|
219
|
+
}
|
220
|
+
],
|
221
|
+
"stateMutability": "view",
|
222
|
+
"type": "function"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"inputs": [
|
226
|
+
{
|
227
|
+
"internalType": "bytes32",
|
228
|
+
"name": "role",
|
229
|
+
"type": "bytes32"
|
230
|
+
}
|
231
|
+
],
|
232
|
+
"name": "getRoleAdmin",
|
233
|
+
"outputs": [
|
234
|
+
{
|
235
|
+
"internalType": "bytes32",
|
236
|
+
"name": "",
|
237
|
+
"type": "bytes32"
|
238
|
+
}
|
239
|
+
],
|
240
|
+
"stateMutability": "view",
|
241
|
+
"type": "function"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"inputs": [
|
245
|
+
{
|
246
|
+
"internalType": "bytes32",
|
247
|
+
"name": "role",
|
248
|
+
"type": "bytes32"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"internalType": "address",
|
252
|
+
"name": "account",
|
253
|
+
"type": "address"
|
254
|
+
}
|
255
|
+
],
|
256
|
+
"name": "grantRole",
|
257
|
+
"outputs": [],
|
258
|
+
"stateMutability": "nonpayable",
|
259
|
+
"type": "function"
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"inputs": [
|
263
|
+
{
|
264
|
+
"internalType": "bytes32",
|
265
|
+
"name": "role",
|
266
|
+
"type": "bytes32"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"internalType": "address",
|
270
|
+
"name": "account",
|
271
|
+
"type": "address"
|
272
|
+
}
|
273
|
+
],
|
274
|
+
"name": "hasRole",
|
275
|
+
"outputs": [
|
276
|
+
{
|
277
|
+
"internalType": "bool",
|
278
|
+
"name": "",
|
279
|
+
"type": "bool"
|
280
|
+
}
|
281
|
+
],
|
282
|
+
"stateMutability": "view",
|
283
|
+
"type": "function"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"inputs": [
|
287
|
+
{
|
288
|
+
"internalType": "address",
|
289
|
+
"name": "_token",
|
290
|
+
"type": "address"
|
291
|
+
}
|
292
|
+
],
|
293
|
+
"name": "isTokenAllowed",
|
294
|
+
"outputs": [
|
295
|
+
{
|
296
|
+
"internalType": "bool",
|
297
|
+
"name": "",
|
298
|
+
"type": "bool"
|
299
|
+
}
|
300
|
+
],
|
301
|
+
"stateMutability": "view",
|
302
|
+
"type": "function"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"inputs": [
|
306
|
+
{
|
307
|
+
"internalType": "uint256",
|
308
|
+
"name": "_tokenAmount",
|
309
|
+
"type": "uint256"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"internalType": "address",
|
313
|
+
"name": "_token",
|
314
|
+
"type": "address"
|
315
|
+
}
|
316
|
+
],
|
317
|
+
"name": "normalizeAmount",
|
318
|
+
"outputs": [
|
319
|
+
{
|
320
|
+
"internalType": "uint256",
|
321
|
+
"name": "",
|
322
|
+
"type": "uint256"
|
323
|
+
}
|
324
|
+
],
|
325
|
+
"stateMutability": "view",
|
326
|
+
"type": "function"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"inputs": [
|
330
|
+
{
|
331
|
+
"internalType": "address",
|
332
|
+
"name": "_token",
|
333
|
+
"type": "address"
|
334
|
+
}
|
335
|
+
],
|
336
|
+
"name": "removeToken",
|
337
|
+
"outputs": [],
|
338
|
+
"stateMutability": "nonpayable",
|
339
|
+
"type": "function"
|
340
|
+
},
|
341
|
+
{
|
342
|
+
"inputs": [
|
343
|
+
{
|
344
|
+
"internalType": "bytes32",
|
345
|
+
"name": "role",
|
346
|
+
"type": "bytes32"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"internalType": "address",
|
350
|
+
"name": "account",
|
351
|
+
"type": "address"
|
352
|
+
}
|
353
|
+
],
|
354
|
+
"name": "renounceRole",
|
355
|
+
"outputs": [],
|
356
|
+
"stateMutability": "nonpayable",
|
357
|
+
"type": "function"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"inputs": [
|
361
|
+
{
|
362
|
+
"internalType": "bytes32",
|
363
|
+
"name": "role",
|
364
|
+
"type": "bytes32"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"internalType": "address",
|
368
|
+
"name": "account",
|
369
|
+
"type": "address"
|
370
|
+
}
|
371
|
+
],
|
372
|
+
"name": "revokeRole",
|
373
|
+
"outputs": [],
|
374
|
+
"stateMutability": "nonpayable",
|
375
|
+
"type": "function"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"inputs": [
|
379
|
+
{
|
380
|
+
"internalType": "bytes4",
|
381
|
+
"name": "interfaceId",
|
382
|
+
"type": "bytes4"
|
383
|
+
}
|
384
|
+
],
|
385
|
+
"name": "supportsInterface",
|
386
|
+
"outputs": [
|
387
|
+
{
|
388
|
+
"internalType": "bool",
|
389
|
+
"name": "",
|
390
|
+
"type": "bool"
|
391
|
+
}
|
392
|
+
],
|
393
|
+
"stateMutability": "view",
|
394
|
+
"type": "function"
|
395
|
+
}
|
396
|
+
]
|
397
|
+
''')
|