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.
- 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/jobs/processors/multi_state_processor.py +2 -2
- defi_services/jobs/processors/state_processor.py +2 -2
- defi_services/jobs/queriers/state_querier.py +4 -4
- defi_services/services/dex/pancakeswap_service.py +1 -1
- defi_services/services/dex/pancakeswap_v2_service.py +1 -1
- defi_services/services/dex/uniswap_v2_service.py +1 -1
- defi_services/services/dex/uniswap_v3_service.py +2 -2
- defi_services/services/lending/aave_v2_services.py +2 -2
- defi_services/services/lending/aave_v3_services.py +4 -4
- defi_services/services/lending/apeswap_services.py +3 -3
- defi_services/services/lending/compound_service.py +3 -3
- defi_services/services/lending/compound_v3_services.py +1 -1
- defi_services/services/lending/flux_services.py +3 -3
- defi_services/services/lending/granary_services.py +1 -1
- defi_services/services/lending/iron_bank_service.py +4 -4
- defi_services/services/lending/justlend_service.py +3 -3
- defi_services/services/lending/liqee_service.py +3 -3
- defi_services/services/lending/morpho_aave_v2_services.py +2 -2
- defi_services/services/lending/morpho_aave_v3_services.py +2 -2
- defi_services/services/lending/morpho_compound_services.py +5 -5
- defi_services/services/lending/onyx_service.py +4 -4
- defi_services/services/lending/silo_services.py +3 -3
- defi_services/services/lending/strike_service.py +3 -3
- defi_services/services/lending/trava_services.py +2 -2
- defi_services/services/lending/uwu_services.py +2 -2
- defi_services/services/lending/valas_services.py +1 -1
- defi_services/services/lending/venus_services.py +7 -7
- defi_services/services/lending/wepiggy_services.py +4 -4
- defi_services/services/token_services.py +1 -1
- defi_services/utils/convert_address.py +2 -2
- {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/METADATA +1 -1
- {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/RECORD +95 -36
- {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/WHEEL +1 -1
- {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/LICENSE +0 -0
- {defi_state_querier-0.4.25.dist-info → defi_state_querier-0.4.27.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,744 @@
|
|
1
|
+
import json
|
2
|
+
|
3
|
+
LIDO_STONKS_ABI = json.loads('''
|
4
|
+
[
|
5
|
+
{
|
6
|
+
"inputs": [
|
7
|
+
{
|
8
|
+
"internalType": "address",
|
9
|
+
"name": "agent_",
|
10
|
+
"type": "address"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"internalType": "address",
|
14
|
+
"name": "manager_",
|
15
|
+
"type": "address"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"internalType": "address",
|
19
|
+
"name": "tokenFrom_",
|
20
|
+
"type": "address"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"internalType": "address",
|
24
|
+
"name": "tokenTo_",
|
25
|
+
"type": "address"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"internalType": "address",
|
29
|
+
"name": "amountConverter_",
|
30
|
+
"type": "address"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"internalType": "address",
|
34
|
+
"name": "orderSample_",
|
35
|
+
"type": "address"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"internalType": "uint256",
|
39
|
+
"name": "orderDurationInSeconds_",
|
40
|
+
"type": "uint256"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"internalType": "uint256",
|
44
|
+
"name": "marginInBasisPoints_",
|
45
|
+
"type": "uint256"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"internalType": "uint256",
|
49
|
+
"name": "priceToleranceInBasisPoints_",
|
50
|
+
"type": "uint256"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"stateMutability": "nonpayable",
|
54
|
+
"type": "constructor"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"inputs": [
|
58
|
+
{
|
59
|
+
"internalType": "address",
|
60
|
+
"name": "agent_",
|
61
|
+
"type": "address"
|
62
|
+
}
|
63
|
+
],
|
64
|
+
"name": "InvalidAgentAddress",
|
65
|
+
"type": "error"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"inputs": [
|
69
|
+
{
|
70
|
+
"internalType": "uint256",
|
71
|
+
"name": "amount",
|
72
|
+
"type": "uint256"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"name": "InvalidAmount",
|
76
|
+
"type": "error"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"inputs": [
|
80
|
+
{
|
81
|
+
"internalType": "address",
|
82
|
+
"name": "amountConverter",
|
83
|
+
"type": "address"
|
84
|
+
}
|
85
|
+
],
|
86
|
+
"name": "InvalidAmountConverterAddress",
|
87
|
+
"type": "error"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"inputs": [
|
91
|
+
{
|
92
|
+
"internalType": "address",
|
93
|
+
"name": "manager",
|
94
|
+
"type": "address"
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"name": "InvalidManagerAddress",
|
98
|
+
"type": "error"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"inputs": [
|
102
|
+
{
|
103
|
+
"internalType": "uint256",
|
104
|
+
"name": "min",
|
105
|
+
"type": "uint256"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"internalType": "uint256",
|
109
|
+
"name": "max",
|
110
|
+
"type": "uint256"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"internalType": "uint256",
|
114
|
+
"name": "received",
|
115
|
+
"type": "uint256"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"name": "InvalidOrderDuration",
|
119
|
+
"type": "error"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"inputs": [
|
123
|
+
{
|
124
|
+
"internalType": "address",
|
125
|
+
"name": "orderSample",
|
126
|
+
"type": "address"
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"name": "InvalidOrderSampleAddress",
|
130
|
+
"type": "error"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"inputs": [
|
134
|
+
{
|
135
|
+
"internalType": "address",
|
136
|
+
"name": "tokenFrom",
|
137
|
+
"type": "address"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"name": "InvalidTokenFromAddress",
|
141
|
+
"type": "error"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"inputs": [
|
145
|
+
{
|
146
|
+
"internalType": "address",
|
147
|
+
"name": "tokenTo",
|
148
|
+
"type": "address"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
"name": "InvalidTokenToAddress",
|
152
|
+
"type": "error"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"inputs": [
|
156
|
+
{
|
157
|
+
"internalType": "uint256",
|
158
|
+
"name": "limit",
|
159
|
+
"type": "uint256"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"internalType": "uint256",
|
163
|
+
"name": "received",
|
164
|
+
"type": "uint256"
|
165
|
+
}
|
166
|
+
],
|
167
|
+
"name": "MarginOverflowsAllowedLimit",
|
168
|
+
"type": "error"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"inputs": [
|
172
|
+
{
|
173
|
+
"internalType": "uint256",
|
174
|
+
"name": "min",
|
175
|
+
"type": "uint256"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"internalType": "uint256",
|
179
|
+
"name": "received",
|
180
|
+
"type": "uint256"
|
181
|
+
}
|
182
|
+
],
|
183
|
+
"name": "MinimumPossibleBalanceNotMet",
|
184
|
+
"type": "error"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"inputs": [
|
188
|
+
{
|
189
|
+
"internalType": "address",
|
190
|
+
"name": "sender",
|
191
|
+
"type": "address"
|
192
|
+
}
|
193
|
+
],
|
194
|
+
"name": "NotAgent",
|
195
|
+
"type": "error"
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"inputs": [
|
199
|
+
{
|
200
|
+
"internalType": "address",
|
201
|
+
"name": "sender",
|
202
|
+
"type": "address"
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"name": "NotAgentOrManager",
|
206
|
+
"type": "error"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"inputs": [
|
210
|
+
{
|
211
|
+
"internalType": "uint256",
|
212
|
+
"name": "limit",
|
213
|
+
"type": "uint256"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"internalType": "uint256",
|
217
|
+
"name": "received",
|
218
|
+
"type": "uint256"
|
219
|
+
}
|
220
|
+
],
|
221
|
+
"name": "PriceToleranceOverflowsAllowedLimit",
|
222
|
+
"type": "error"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"inputs": [],
|
226
|
+
"name": "TokensCannotBeSame",
|
227
|
+
"type": "error"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"anonymous": false,
|
231
|
+
"inputs": [
|
232
|
+
{
|
233
|
+
"indexed": false,
|
234
|
+
"internalType": "address",
|
235
|
+
"name": "agent",
|
236
|
+
"type": "address"
|
237
|
+
}
|
238
|
+
],
|
239
|
+
"name": "AgentSet",
|
240
|
+
"type": "event"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"anonymous": false,
|
244
|
+
"inputs": [
|
245
|
+
{
|
246
|
+
"indexed": false,
|
247
|
+
"internalType": "address",
|
248
|
+
"name": "amountConverter",
|
249
|
+
"type": "address"
|
250
|
+
}
|
251
|
+
],
|
252
|
+
"name": "AmountConverterSet",
|
253
|
+
"type": "event"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"anonymous": false,
|
257
|
+
"inputs": [
|
258
|
+
{
|
259
|
+
"indexed": true,
|
260
|
+
"internalType": "address",
|
261
|
+
"name": "_token",
|
262
|
+
"type": "address"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"indexed": false,
|
266
|
+
"internalType": "uint256",
|
267
|
+
"name": "_tokenId",
|
268
|
+
"type": "uint256"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"indexed": true,
|
272
|
+
"internalType": "address",
|
273
|
+
"name": "_recipient",
|
274
|
+
"type": "address"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"indexed": false,
|
278
|
+
"internalType": "uint256",
|
279
|
+
"name": "_amount",
|
280
|
+
"type": "uint256"
|
281
|
+
}
|
282
|
+
],
|
283
|
+
"name": "ERC1155Recovered",
|
284
|
+
"type": "event"
|
285
|
+
},
|
286
|
+
{
|
287
|
+
"anonymous": false,
|
288
|
+
"inputs": [
|
289
|
+
{
|
290
|
+
"indexed": true,
|
291
|
+
"internalType": "address",
|
292
|
+
"name": "_token",
|
293
|
+
"type": "address"
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"indexed": true,
|
297
|
+
"internalType": "address",
|
298
|
+
"name": "_recipient",
|
299
|
+
"type": "address"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"indexed": false,
|
303
|
+
"internalType": "uint256",
|
304
|
+
"name": "_amount",
|
305
|
+
"type": "uint256"
|
306
|
+
}
|
307
|
+
],
|
308
|
+
"name": "ERC20Recovered",
|
309
|
+
"type": "event"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"anonymous": false,
|
313
|
+
"inputs": [
|
314
|
+
{
|
315
|
+
"indexed": true,
|
316
|
+
"internalType": "address",
|
317
|
+
"name": "_token",
|
318
|
+
"type": "address"
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"indexed": false,
|
322
|
+
"internalType": "uint256",
|
323
|
+
"name": "_tokenId",
|
324
|
+
"type": "uint256"
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"indexed": true,
|
328
|
+
"internalType": "address",
|
329
|
+
"name": "_recipient",
|
330
|
+
"type": "address"
|
331
|
+
}
|
332
|
+
],
|
333
|
+
"name": "ERC721Recovered",
|
334
|
+
"type": "event"
|
335
|
+
},
|
336
|
+
{
|
337
|
+
"anonymous": false,
|
338
|
+
"inputs": [
|
339
|
+
{
|
340
|
+
"indexed": true,
|
341
|
+
"internalType": "address",
|
342
|
+
"name": "_recipient",
|
343
|
+
"type": "address"
|
344
|
+
},
|
345
|
+
{
|
346
|
+
"indexed": false,
|
347
|
+
"internalType": "uint256",
|
348
|
+
"name": "_amount",
|
349
|
+
"type": "uint256"
|
350
|
+
}
|
351
|
+
],
|
352
|
+
"name": "EtherRecovered",
|
353
|
+
"type": "event"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"anonymous": false,
|
357
|
+
"inputs": [
|
358
|
+
{
|
359
|
+
"indexed": false,
|
360
|
+
"internalType": "address",
|
361
|
+
"name": "manager",
|
362
|
+
"type": "address"
|
363
|
+
}
|
364
|
+
],
|
365
|
+
"name": "ManagerSet",
|
366
|
+
"type": "event"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"anonymous": false,
|
370
|
+
"inputs": [
|
371
|
+
{
|
372
|
+
"indexed": false,
|
373
|
+
"internalType": "uint256",
|
374
|
+
"name": "marginInBasisPoints",
|
375
|
+
"type": "uint256"
|
376
|
+
}
|
377
|
+
],
|
378
|
+
"name": "MarginInBasisPointsSet",
|
379
|
+
"type": "event"
|
380
|
+
},
|
381
|
+
{
|
382
|
+
"anonymous": false,
|
383
|
+
"inputs": [
|
384
|
+
{
|
385
|
+
"indexed": true,
|
386
|
+
"internalType": "address",
|
387
|
+
"name": "orderContract",
|
388
|
+
"type": "address"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"indexed": false,
|
392
|
+
"internalType": "uint256",
|
393
|
+
"name": "minBuyAmount",
|
394
|
+
"type": "uint256"
|
395
|
+
}
|
396
|
+
],
|
397
|
+
"name": "OrderContractCreated",
|
398
|
+
"type": "event"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"anonymous": false,
|
402
|
+
"inputs": [
|
403
|
+
{
|
404
|
+
"indexed": false,
|
405
|
+
"internalType": "uint256",
|
406
|
+
"name": "orderDurationInSeconds",
|
407
|
+
"type": "uint256"
|
408
|
+
}
|
409
|
+
],
|
410
|
+
"name": "OrderDurationInSecondsSet",
|
411
|
+
"type": "event"
|
412
|
+
},
|
413
|
+
{
|
414
|
+
"anonymous": false,
|
415
|
+
"inputs": [
|
416
|
+
{
|
417
|
+
"indexed": false,
|
418
|
+
"internalType": "address",
|
419
|
+
"name": "orderSample",
|
420
|
+
"type": "address"
|
421
|
+
}
|
422
|
+
],
|
423
|
+
"name": "OrderSampleSet",
|
424
|
+
"type": "event"
|
425
|
+
},
|
426
|
+
{
|
427
|
+
"anonymous": false,
|
428
|
+
"inputs": [
|
429
|
+
{
|
430
|
+
"indexed": false,
|
431
|
+
"internalType": "uint256",
|
432
|
+
"name": "priceToleranceInBasisPoints",
|
433
|
+
"type": "uint256"
|
434
|
+
}
|
435
|
+
],
|
436
|
+
"name": "PriceToleranceInBasisPointsSet",
|
437
|
+
"type": "event"
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"anonymous": false,
|
441
|
+
"inputs": [
|
442
|
+
{
|
443
|
+
"indexed": false,
|
444
|
+
"internalType": "address",
|
445
|
+
"name": "tokenFrom",
|
446
|
+
"type": "address"
|
447
|
+
}
|
448
|
+
],
|
449
|
+
"name": "TokenFromSet",
|
450
|
+
"type": "event"
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"anonymous": false,
|
454
|
+
"inputs": [
|
455
|
+
{
|
456
|
+
"indexed": false,
|
457
|
+
"internalType": "address",
|
458
|
+
"name": "tokenTo",
|
459
|
+
"type": "address"
|
460
|
+
}
|
461
|
+
],
|
462
|
+
"name": "TokenToSet",
|
463
|
+
"type": "event"
|
464
|
+
},
|
465
|
+
{
|
466
|
+
"inputs": [],
|
467
|
+
"name": "AGENT",
|
468
|
+
"outputs": [
|
469
|
+
{
|
470
|
+
"internalType": "address",
|
471
|
+
"name": "",
|
472
|
+
"type": "address"
|
473
|
+
}
|
474
|
+
],
|
475
|
+
"stateMutability": "view",
|
476
|
+
"type": "function"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"inputs": [],
|
480
|
+
"name": "AMOUNT_CONVERTER",
|
481
|
+
"outputs": [
|
482
|
+
{
|
483
|
+
"internalType": "address",
|
484
|
+
"name": "",
|
485
|
+
"type": "address"
|
486
|
+
}
|
487
|
+
],
|
488
|
+
"stateMutability": "view",
|
489
|
+
"type": "function"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"inputs": [],
|
493
|
+
"name": "MARGIN_IN_BASIS_POINTS",
|
494
|
+
"outputs": [
|
495
|
+
{
|
496
|
+
"internalType": "uint256",
|
497
|
+
"name": "",
|
498
|
+
"type": "uint256"
|
499
|
+
}
|
500
|
+
],
|
501
|
+
"stateMutability": "view",
|
502
|
+
"type": "function"
|
503
|
+
},
|
504
|
+
{
|
505
|
+
"inputs": [],
|
506
|
+
"name": "ORDER_DURATION_IN_SECONDS",
|
507
|
+
"outputs": [
|
508
|
+
{
|
509
|
+
"internalType": "uint256",
|
510
|
+
"name": "",
|
511
|
+
"type": "uint256"
|
512
|
+
}
|
513
|
+
],
|
514
|
+
"stateMutability": "view",
|
515
|
+
"type": "function"
|
516
|
+
},
|
517
|
+
{
|
518
|
+
"inputs": [],
|
519
|
+
"name": "ORDER_SAMPLE",
|
520
|
+
"outputs": [
|
521
|
+
{
|
522
|
+
"internalType": "address",
|
523
|
+
"name": "",
|
524
|
+
"type": "address"
|
525
|
+
}
|
526
|
+
],
|
527
|
+
"stateMutability": "view",
|
528
|
+
"type": "function"
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"inputs": [],
|
532
|
+
"name": "PRICE_TOLERANCE_IN_BASIS_POINTS",
|
533
|
+
"outputs": [
|
534
|
+
{
|
535
|
+
"internalType": "uint256",
|
536
|
+
"name": "",
|
537
|
+
"type": "uint256"
|
538
|
+
}
|
539
|
+
],
|
540
|
+
"stateMutability": "view",
|
541
|
+
"type": "function"
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"inputs": [],
|
545
|
+
"name": "TOKEN_FROM",
|
546
|
+
"outputs": [
|
547
|
+
{
|
548
|
+
"internalType": "address",
|
549
|
+
"name": "",
|
550
|
+
"type": "address"
|
551
|
+
}
|
552
|
+
],
|
553
|
+
"stateMutability": "view",
|
554
|
+
"type": "function"
|
555
|
+
},
|
556
|
+
{
|
557
|
+
"inputs": [],
|
558
|
+
"name": "TOKEN_TO",
|
559
|
+
"outputs": [
|
560
|
+
{
|
561
|
+
"internalType": "address",
|
562
|
+
"name": "",
|
563
|
+
"type": "address"
|
564
|
+
}
|
565
|
+
],
|
566
|
+
"stateMutability": "view",
|
567
|
+
"type": "function"
|
568
|
+
},
|
569
|
+
{
|
570
|
+
"inputs": [
|
571
|
+
{
|
572
|
+
"internalType": "uint256",
|
573
|
+
"name": "amount_",
|
574
|
+
"type": "uint256"
|
575
|
+
}
|
576
|
+
],
|
577
|
+
"name": "estimateTradeOutput",
|
578
|
+
"outputs": [
|
579
|
+
{
|
580
|
+
"internalType": "uint256",
|
581
|
+
"name": "estimatedTradeOutput",
|
582
|
+
"type": "uint256"
|
583
|
+
}
|
584
|
+
],
|
585
|
+
"stateMutability": "view",
|
586
|
+
"type": "function"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"inputs": [],
|
590
|
+
"name": "estimateTradeOutputFromCurrentBalance",
|
591
|
+
"outputs": [
|
592
|
+
{
|
593
|
+
"internalType": "uint256",
|
594
|
+
"name": "",
|
595
|
+
"type": "uint256"
|
596
|
+
}
|
597
|
+
],
|
598
|
+
"stateMutability": "view",
|
599
|
+
"type": "function"
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"inputs": [],
|
603
|
+
"name": "getOrderParameters",
|
604
|
+
"outputs": [
|
605
|
+
{
|
606
|
+
"internalType": "address",
|
607
|
+
"name": "",
|
608
|
+
"type": "address"
|
609
|
+
},
|
610
|
+
{
|
611
|
+
"internalType": "address",
|
612
|
+
"name": "",
|
613
|
+
"type": "address"
|
614
|
+
},
|
615
|
+
{
|
616
|
+
"internalType": "uint256",
|
617
|
+
"name": "",
|
618
|
+
"type": "uint256"
|
619
|
+
}
|
620
|
+
],
|
621
|
+
"stateMutability": "view",
|
622
|
+
"type": "function"
|
623
|
+
},
|
624
|
+
{
|
625
|
+
"inputs": [],
|
626
|
+
"name": "getPriceTolerance",
|
627
|
+
"outputs": [
|
628
|
+
{
|
629
|
+
"internalType": "uint256",
|
630
|
+
"name": "",
|
631
|
+
"type": "uint256"
|
632
|
+
}
|
633
|
+
],
|
634
|
+
"stateMutability": "view",
|
635
|
+
"type": "function"
|
636
|
+
},
|
637
|
+
{
|
638
|
+
"inputs": [],
|
639
|
+
"name": "manager",
|
640
|
+
"outputs": [
|
641
|
+
{
|
642
|
+
"internalType": "address",
|
643
|
+
"name": "",
|
644
|
+
"type": "address"
|
645
|
+
}
|
646
|
+
],
|
647
|
+
"stateMutability": "view",
|
648
|
+
"type": "function"
|
649
|
+
},
|
650
|
+
{
|
651
|
+
"inputs": [
|
652
|
+
{
|
653
|
+
"internalType": "uint256",
|
654
|
+
"name": "minBuyAmount_",
|
655
|
+
"type": "uint256"
|
656
|
+
}
|
657
|
+
],
|
658
|
+
"name": "placeOrder",
|
659
|
+
"outputs": [
|
660
|
+
{
|
661
|
+
"internalType": "address",
|
662
|
+
"name": "",
|
663
|
+
"type": "address"
|
664
|
+
}
|
665
|
+
],
|
666
|
+
"stateMutability": "nonpayable",
|
667
|
+
"type": "function"
|
668
|
+
},
|
669
|
+
{
|
670
|
+
"inputs": [
|
671
|
+
{
|
672
|
+
"internalType": "address",
|
673
|
+
"name": "token_",
|
674
|
+
"type": "address"
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"internalType": "uint256",
|
678
|
+
"name": "tokenId_",
|
679
|
+
"type": "uint256"
|
680
|
+
}
|
681
|
+
],
|
682
|
+
"name": "recoverERC1155",
|
683
|
+
"outputs": [],
|
684
|
+
"stateMutability": "nonpayable",
|
685
|
+
"type": "function"
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"inputs": [
|
689
|
+
{
|
690
|
+
"internalType": "address",
|
691
|
+
"name": "token_",
|
692
|
+
"type": "address"
|
693
|
+
},
|
694
|
+
{
|
695
|
+
"internalType": "uint256",
|
696
|
+
"name": "amount_",
|
697
|
+
"type": "uint256"
|
698
|
+
}
|
699
|
+
],
|
700
|
+
"name": "recoverERC20",
|
701
|
+
"outputs": [],
|
702
|
+
"stateMutability": "nonpayable",
|
703
|
+
"type": "function"
|
704
|
+
},
|
705
|
+
{
|
706
|
+
"inputs": [
|
707
|
+
{
|
708
|
+
"internalType": "address",
|
709
|
+
"name": "token_",
|
710
|
+
"type": "address"
|
711
|
+
},
|
712
|
+
{
|
713
|
+
"internalType": "uint256",
|
714
|
+
"name": "tokenId_",
|
715
|
+
"type": "uint256"
|
716
|
+
}
|
717
|
+
],
|
718
|
+
"name": "recoverERC721",
|
719
|
+
"outputs": [],
|
720
|
+
"stateMutability": "nonpayable",
|
721
|
+
"type": "function"
|
722
|
+
},
|
723
|
+
{
|
724
|
+
"inputs": [],
|
725
|
+
"name": "recoverEther",
|
726
|
+
"outputs": [],
|
727
|
+
"stateMutability": "nonpayable",
|
728
|
+
"type": "function"
|
729
|
+
},
|
730
|
+
{
|
731
|
+
"inputs": [
|
732
|
+
{
|
733
|
+
"internalType": "address",
|
734
|
+
"name": "manager_",
|
735
|
+
"type": "address"
|
736
|
+
}
|
737
|
+
],
|
738
|
+
"name": "setManager",
|
739
|
+
"outputs": [],
|
740
|
+
"stateMutability": "nonpayable",
|
741
|
+
"type": "function"
|
742
|
+
}
|
743
|
+
]
|
744
|
+
''')
|