@dhedge/trading-widget 3.0.0-alpha.4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/core-kit/abi/easy-swapper-v2.d.ts +322 -0
- package/core-kit/const/default-data.d.ts +2 -0
- package/core-kit/const/network.d.ts +156 -1706
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +644 -0
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +4 -1
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +322 -0
- package/core-kit/hooks/trading/withdraw-v2/index.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/index.d.ts +3 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-estimated-receive-assets.d.ts +210 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction-arguments.d.ts +5 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-unroll-and-claim-transaction.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdraw-assets-info.d.ts +219 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +832 -0
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +322 -0
- package/core-kit/types/trading-panel.types.d.ts +1 -1
- package/core-kit/utils/common.d.ts +4 -0
- package/core-kit/utils/index.d.ts +1 -0
- package/index-67db9b4a.cjs +217 -0
- package/index-bf566a15.js +40447 -0
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/pyth-adapter-76f6458b.cjs +11 -0
- package/pyth-adapter-7e6e3809.js +5705 -0
- package/style.css +1 -1
- package/trading-widget/components/common/balance/withdraw-assets-composition-table.d.ts +7 -0
- package/trading-widget/components/common/meta/assets-composition-disclosure/assets-composition-disclosure.d.ts +3 -0
- package/trading-widget/components/common/spinner/spinner.d.ts +0 -2
- package/trading-widget/components/withdraw/complete-step/balance/complete-withdraw-balance.hooks.d.ts +1 -1
- package/trading-widget/components/withdraw/complete-step/complete-step.hooks.d.ts +1 -1
- package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.hooks.d.ts +0 -1
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/all-assets-composition-table/all-assets-composition-table.d.ts +2 -0
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/all-assets-composition-table/all-assets-composition-table.hooks.d.ts +14 -0
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/single-asset-composition-table/single-asset-composition-table.d.ts +3 -0
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/single-asset-composition-table/single-asset-composition-table.hooks.d.ts +10 -0
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/withdraw-section.d.ts +4 -1
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/withdraw-section.hooks.d.ts +11 -8
- package/trading-widget/components/withdraw/stepper/withdraw-stepper.d.ts +2 -0
- package/trading-widget/components/withdraw/stepper/withdraw-stepper.hooks.d.ts +8 -0
- package/trading-widget/components/withdraw/tab-panel/tab-panel.hooks.d.ts +0 -2
- package/trading-widget/providers/component-provider/component-provider.hooks.d.ts +0 -1
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +5 -1
- package/trading-widget/utils/synthetix-v3.d.ts +8 -9
- package/index-9fbabd1e.js +0 -39505
- package/index-aca26249.cjs +0 -207
- package/pyth-adapter-5451669c.cjs +0 -11
- package/pyth-adapter-f527b1bb.js +0 -4119
- package/trading-widget/components/widget/widget-meta/stepper.d.ts +0 -9
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/asset-composition-table/asset-composition-table.d.ts +0 -2
- package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/asset-composition-table/asset-composition-table.hooks.d.ts +0 -12
- /package/trading-widget/components/withdraw/init-step/input-group/withdraw-section/{asset-composition-table → all-assets-composition-table}/withdraw-explanation-tip.d.ts +0 -0
package/README.md
CHANGED
|
@@ -509,14 +509,18 @@ path: `component.meta[name]`
|
|
|
509
509
|
> | `withdrawAction` | string | Sell | |
|
|
510
510
|
> | `swapAction` | string | Swap | |
|
|
511
511
|
> | `unrollAction` | string | Unroll | |
|
|
512
|
+
> | `unrollAndClaimAction` | string | Unroll and Claim | |
|
|
512
513
|
> | `claimAction` | string | Claim Without Swap | |
|
|
513
514
|
> | `claimLabel` | string | Claim | |
|
|
514
515
|
> | `swapAndClaimTo` | string | Swap and claim assets to | |
|
|
515
|
-
> | `withdrawDescriptionTitle` | string | Withdrawing into {assetSymbol} involves 2 steps: | |
|
|
516
516
|
> | `initWithdrawDescription` | string | Unroll {vaultSymbol} tokens into multi assets | |
|
|
517
517
|
> | `initWithdrawTooltip` | string | Convertible tokens are basic ERC20 tokens which can be swapped on any DEXs | |
|
|
518
518
|
> | `completeWithdrawDescription` | string | Swap multi assets into {assetSymbol} | |
|
|
519
|
-
> | `completeWithdrawTooltip` | string |
|
|
519
|
+
> | `completeWithdrawTooltip` | string | All swappable assets can be claimed directly without swap. | |
|
|
520
|
+
> | `unrollAndClaimDescription` | string | Unroll {vaultSymbol} tokens and claim {assetSymbol} | |
|
|
521
|
+
> | `total` | string | Total: | |
|
|
522
|
+
> | `showAll` | string | Show All | |
|
|
523
|
+
> | `hide` | string | Hide | |
|
|
520
524
|
|
|
521
525
|
###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
|
|
522
526
|
|
|
@@ -1,4 +1,129 @@
|
|
|
1
1
|
export declare const EasySwapperV2Abi: readonly [{
|
|
2
|
+
readonly anonymous: false;
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly indexed: true;
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly name: "previousOwner";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}, {
|
|
9
|
+
readonly indexed: true;
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "newOwner";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly name: "OwnershipTransferred";
|
|
15
|
+
readonly type: "event";
|
|
16
|
+
}, {
|
|
17
|
+
readonly anonymous: false;
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly indexed: false;
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "proxy";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly name: "ProxyCreated";
|
|
25
|
+
readonly type: "event";
|
|
26
|
+
}, {
|
|
27
|
+
readonly anonymous: false;
|
|
28
|
+
readonly inputs: readonly [{
|
|
29
|
+
readonly indexed: false;
|
|
30
|
+
readonly internalType: "address";
|
|
31
|
+
readonly name: "withdrawalVault";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}, {
|
|
34
|
+
readonly indexed: true;
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "depositor";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}];
|
|
39
|
+
readonly name: "WithdrawalCompleted";
|
|
40
|
+
readonly type: "event";
|
|
41
|
+
}, {
|
|
42
|
+
readonly anonymous: false;
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly indexed: false;
|
|
45
|
+
readonly internalType: "address";
|
|
46
|
+
readonly name: "withdrawalVault";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}, {
|
|
49
|
+
readonly indexed: true;
|
|
50
|
+
readonly internalType: "address";
|
|
51
|
+
readonly name: "depositor";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly indexed: false;
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "dHedgeVault";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly indexed: false;
|
|
60
|
+
readonly internalType: "uint256";
|
|
61
|
+
readonly name: "amountWithdrawn";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
}];
|
|
64
|
+
readonly name: "WithdrawalInitiated";
|
|
65
|
+
readonly type: "event";
|
|
66
|
+
}, {
|
|
67
|
+
readonly anonymous: false;
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly indexed: false;
|
|
70
|
+
readonly internalType: "address";
|
|
71
|
+
readonly name: "withdrawalVault";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
}, {
|
|
74
|
+
readonly indexed: true;
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
readonly name: "depositor";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
}];
|
|
79
|
+
readonly name: "WithdrawalVaultCreated";
|
|
80
|
+
readonly type: "event";
|
|
81
|
+
}, {
|
|
82
|
+
readonly anonymous: false;
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly indexed: true;
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
readonly name: "depositor";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}, {
|
|
89
|
+
readonly indexed: true;
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
readonly name: "dHedgeVault";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}, {
|
|
94
|
+
readonly indexed: false;
|
|
95
|
+
readonly internalType: "contract IERC20";
|
|
96
|
+
readonly name: "vaultDepositToken";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
}, {
|
|
99
|
+
readonly indexed: false;
|
|
100
|
+
readonly internalType: "contract IERC20";
|
|
101
|
+
readonly name: "userDepositToken";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}, {
|
|
104
|
+
readonly indexed: false;
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
readonly name: "amountReceived";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}, {
|
|
109
|
+
readonly indexed: false;
|
|
110
|
+
readonly internalType: "uint256";
|
|
111
|
+
readonly name: "lockupTime";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
}];
|
|
114
|
+
readonly name: "ZapDepositCompleted";
|
|
115
|
+
readonly type: "event";
|
|
116
|
+
}, {
|
|
117
|
+
readonly inputs: readonly [];
|
|
118
|
+
readonly name: "DEFAULT_COOLDOWN";
|
|
119
|
+
readonly outputs: readonly [{
|
|
120
|
+
readonly internalType: "uint256";
|
|
121
|
+
readonly name: "";
|
|
122
|
+
readonly type: "uint256";
|
|
123
|
+
}];
|
|
124
|
+
readonly stateMutability: "view";
|
|
125
|
+
readonly type: "function";
|
|
126
|
+
}, {
|
|
2
127
|
readonly inputs: readonly [{
|
|
3
128
|
readonly components: readonly [{
|
|
4
129
|
readonly components: readonly [{
|
|
@@ -82,6 +207,16 @@ export declare const EasySwapperV2Abi: readonly [{
|
|
|
82
207
|
}];
|
|
83
208
|
readonly stateMutability: "view";
|
|
84
209
|
readonly type: "function";
|
|
210
|
+
}, {
|
|
211
|
+
readonly inputs: readonly [];
|
|
212
|
+
readonly name: "dHedgePoolFactory";
|
|
213
|
+
readonly outputs: readonly [{
|
|
214
|
+
readonly internalType: "address";
|
|
215
|
+
readonly name: "";
|
|
216
|
+
readonly type: "address";
|
|
217
|
+
}];
|
|
218
|
+
readonly stateMutability: "view";
|
|
219
|
+
readonly type: "function";
|
|
85
220
|
}, {
|
|
86
221
|
readonly inputs: readonly [{
|
|
87
222
|
readonly internalType: "address";
|
|
@@ -148,6 +283,20 @@ export declare const EasySwapperV2Abi: readonly [{
|
|
|
148
283
|
readonly outputs: readonly [];
|
|
149
284
|
readonly stateMutability: "nonpayable";
|
|
150
285
|
readonly type: "function";
|
|
286
|
+
}, {
|
|
287
|
+
readonly inputs: readonly [{
|
|
288
|
+
readonly internalType: "uint8";
|
|
289
|
+
readonly name: "";
|
|
290
|
+
readonly type: "uint8";
|
|
291
|
+
}];
|
|
292
|
+
readonly name: "getLogic";
|
|
293
|
+
readonly outputs: readonly [{
|
|
294
|
+
readonly internalType: "address";
|
|
295
|
+
readonly name: "";
|
|
296
|
+
readonly type: "address";
|
|
297
|
+
}];
|
|
298
|
+
readonly stateMutability: "view";
|
|
299
|
+
readonly type: "function";
|
|
151
300
|
}, {
|
|
152
301
|
readonly inputs: readonly [{
|
|
153
302
|
readonly internalType: "address";
|
|
@@ -186,9 +335,66 @@ export declare const EasySwapperV2Abi: readonly [{
|
|
|
186
335
|
readonly type: "uint256";
|
|
187
336
|
}];
|
|
188
337
|
readonly name: "initWithdrawal";
|
|
338
|
+
readonly outputs: readonly [{
|
|
339
|
+
readonly components: readonly [{
|
|
340
|
+
readonly internalType: "address";
|
|
341
|
+
readonly name: "token";
|
|
342
|
+
readonly type: "address";
|
|
343
|
+
}, {
|
|
344
|
+
readonly internalType: "uint256";
|
|
345
|
+
readonly name: "balance";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
}];
|
|
348
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
349
|
+
readonly name: "trackedAssets";
|
|
350
|
+
readonly type: "tuple[]";
|
|
351
|
+
}, {
|
|
352
|
+
readonly internalType: "address";
|
|
353
|
+
readonly name: "vault";
|
|
354
|
+
readonly type: "address";
|
|
355
|
+
}];
|
|
356
|
+
readonly stateMutability: "nonpayable";
|
|
357
|
+
readonly type: "function";
|
|
358
|
+
}, {
|
|
359
|
+
readonly inputs: readonly [{
|
|
360
|
+
readonly internalType: "address";
|
|
361
|
+
readonly name: "_vaultLogic";
|
|
362
|
+
readonly type: "address";
|
|
363
|
+
}, {
|
|
364
|
+
readonly internalType: "address";
|
|
365
|
+
readonly name: "_weth";
|
|
366
|
+
readonly type: "address";
|
|
367
|
+
}, {
|
|
368
|
+
readonly internalType: "contract IWETH";
|
|
369
|
+
readonly name: "_wrappedNativeToken";
|
|
370
|
+
readonly type: "address";
|
|
371
|
+
}, {
|
|
372
|
+
readonly internalType: "contract ISwapper";
|
|
373
|
+
readonly name: "_swapper";
|
|
374
|
+
readonly type: "address";
|
|
375
|
+
}, {
|
|
376
|
+
readonly internalType: "uint256";
|
|
377
|
+
readonly name: "_customCooldown";
|
|
378
|
+
readonly type: "uint256";
|
|
379
|
+
}];
|
|
380
|
+
readonly name: "initialize";
|
|
189
381
|
readonly outputs: readonly [];
|
|
190
382
|
readonly stateMutability: "nonpayable";
|
|
191
383
|
readonly type: "function";
|
|
384
|
+
}, {
|
|
385
|
+
readonly inputs: readonly [{
|
|
386
|
+
readonly internalType: "address";
|
|
387
|
+
readonly name: "_dHedgeVault";
|
|
388
|
+
readonly type: "address";
|
|
389
|
+
}];
|
|
390
|
+
readonly name: "isdHedgeVault";
|
|
391
|
+
readonly outputs: readonly [{
|
|
392
|
+
readonly internalType: "bool";
|
|
393
|
+
readonly name: "isVault";
|
|
394
|
+
readonly type: "bool";
|
|
395
|
+
}];
|
|
396
|
+
readonly stateMutability: "view";
|
|
397
|
+
readonly type: "function";
|
|
192
398
|
}, {
|
|
193
399
|
readonly inputs: readonly [{
|
|
194
400
|
readonly internalType: "address";
|
|
@@ -217,6 +423,16 @@ export declare const EasySwapperV2Abi: readonly [{
|
|
|
217
423
|
readonly outputs: readonly [];
|
|
218
424
|
readonly stateMutability: "payable";
|
|
219
425
|
readonly type: "function";
|
|
426
|
+
}, {
|
|
427
|
+
readonly inputs: readonly [];
|
|
428
|
+
readonly name: "owner";
|
|
429
|
+
readonly outputs: readonly [{
|
|
430
|
+
readonly internalType: "address";
|
|
431
|
+
readonly name: "";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
}];
|
|
434
|
+
readonly stateMutability: "view";
|
|
435
|
+
readonly type: "function";
|
|
220
436
|
}, {
|
|
221
437
|
readonly inputs: readonly [{
|
|
222
438
|
readonly internalType: "uint256";
|
|
@@ -231,6 +447,71 @@ export declare const EasySwapperV2Abi: readonly [{
|
|
|
231
447
|
readonly outputs: readonly [];
|
|
232
448
|
readonly stateMutability: "nonpayable";
|
|
233
449
|
readonly type: "function";
|
|
450
|
+
}, {
|
|
451
|
+
readonly inputs: readonly [];
|
|
452
|
+
readonly name: "renounceOwnership";
|
|
453
|
+
readonly outputs: readonly [];
|
|
454
|
+
readonly stateMutability: "nonpayable";
|
|
455
|
+
readonly type: "function";
|
|
456
|
+
}, {
|
|
457
|
+
readonly inputs: readonly [{
|
|
458
|
+
readonly internalType: "uint256";
|
|
459
|
+
readonly name: "_customCooldown";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
}];
|
|
462
|
+
readonly name: "setCustomCooldown";
|
|
463
|
+
readonly outputs: readonly [];
|
|
464
|
+
readonly stateMutability: "nonpayable";
|
|
465
|
+
readonly type: "function";
|
|
466
|
+
}, {
|
|
467
|
+
readonly inputs: readonly [{
|
|
468
|
+
readonly components: readonly [{
|
|
469
|
+
readonly internalType: "address";
|
|
470
|
+
readonly name: "dHedgeVault";
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
}, {
|
|
473
|
+
readonly internalType: "bool";
|
|
474
|
+
readonly name: "whitelisted";
|
|
475
|
+
readonly type: "bool";
|
|
476
|
+
}];
|
|
477
|
+
readonly internalType: "struct EasySwapperV2.CustomCooldownSetting[]";
|
|
478
|
+
readonly name: "_whitelistSettings";
|
|
479
|
+
readonly type: "tuple[]";
|
|
480
|
+
}];
|
|
481
|
+
readonly name: "setCustomCooldownWhitelist";
|
|
482
|
+
readonly outputs: readonly [];
|
|
483
|
+
readonly stateMutability: "nonpayable";
|
|
484
|
+
readonly type: "function";
|
|
485
|
+
}, {
|
|
486
|
+
readonly inputs: readonly [{
|
|
487
|
+
readonly internalType: "address";
|
|
488
|
+
readonly name: "_vaultLogic";
|
|
489
|
+
readonly type: "address";
|
|
490
|
+
}];
|
|
491
|
+
readonly name: "setLogic";
|
|
492
|
+
readonly outputs: readonly [];
|
|
493
|
+
readonly stateMutability: "nonpayable";
|
|
494
|
+
readonly type: "function";
|
|
495
|
+
}, {
|
|
496
|
+
readonly inputs: readonly [{
|
|
497
|
+
readonly internalType: "contract ISwapper";
|
|
498
|
+
readonly name: "_swapper";
|
|
499
|
+
readonly type: "address";
|
|
500
|
+
}];
|
|
501
|
+
readonly name: "setSwapper";
|
|
502
|
+
readonly outputs: readonly [];
|
|
503
|
+
readonly stateMutability: "nonpayable";
|
|
504
|
+
readonly type: "function";
|
|
505
|
+
}, {
|
|
506
|
+
readonly inputs: readonly [{
|
|
507
|
+
readonly internalType: "address";
|
|
508
|
+
readonly name: "_dHedgePoolFactory";
|
|
509
|
+
readonly type: "address";
|
|
510
|
+
}];
|
|
511
|
+
readonly name: "setdHedgePoolFactory";
|
|
512
|
+
readonly outputs: readonly [];
|
|
513
|
+
readonly stateMutability: "nonpayable";
|
|
514
|
+
readonly type: "function";
|
|
234
515
|
}, {
|
|
235
516
|
readonly inputs: readonly [];
|
|
236
517
|
readonly name: "swapper";
|
|
@@ -241,6 +522,47 @@ export declare const EasySwapperV2Abi: readonly [{
|
|
|
241
522
|
}];
|
|
242
523
|
readonly stateMutability: "view";
|
|
243
524
|
readonly type: "function";
|
|
525
|
+
}, {
|
|
526
|
+
readonly inputs: readonly [{
|
|
527
|
+
readonly internalType: "address";
|
|
528
|
+
readonly name: "newOwner";
|
|
529
|
+
readonly type: "address";
|
|
530
|
+
}];
|
|
531
|
+
readonly name: "transferOwnership";
|
|
532
|
+
readonly outputs: readonly [];
|
|
533
|
+
readonly stateMutability: "nonpayable";
|
|
534
|
+
readonly type: "function";
|
|
535
|
+
}, {
|
|
536
|
+
readonly inputs: readonly [{
|
|
537
|
+
readonly internalType: "address";
|
|
538
|
+
readonly name: "_dHedgeVault";
|
|
539
|
+
readonly type: "address";
|
|
540
|
+
}, {
|
|
541
|
+
readonly internalType: "uint256";
|
|
542
|
+
readonly name: "_amountIn";
|
|
543
|
+
readonly type: "uint256";
|
|
544
|
+
}, {
|
|
545
|
+
readonly internalType: "uint256";
|
|
546
|
+
readonly name: "_slippageTolerance";
|
|
547
|
+
readonly type: "uint256";
|
|
548
|
+
}];
|
|
549
|
+
readonly name: "unrollAndClaim";
|
|
550
|
+
readonly outputs: readonly [{
|
|
551
|
+
readonly components: readonly [{
|
|
552
|
+
readonly internalType: "address";
|
|
553
|
+
readonly name: "token";
|
|
554
|
+
readonly type: "address";
|
|
555
|
+
}, {
|
|
556
|
+
readonly internalType: "uint256";
|
|
557
|
+
readonly name: "balance";
|
|
558
|
+
readonly type: "uint256";
|
|
559
|
+
}];
|
|
560
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
561
|
+
readonly name: "";
|
|
562
|
+
readonly type: "tuple[]";
|
|
563
|
+
}];
|
|
564
|
+
readonly stateMutability: "nonpayable";
|
|
565
|
+
readonly type: "function";
|
|
244
566
|
}, {
|
|
245
567
|
readonly inputs: readonly [];
|
|
246
568
|
readonly name: "weth";
|
|
@@ -17,8 +17,10 @@ export declare const DEFAULT_SWAP_TRANSACTION_SLIPPAGE = 0.3;
|
|
|
17
17
|
export declare const DEFAULT_DEPOSIT_SLIPPAGE_SCALE: number[];
|
|
18
18
|
export declare const DEFAULT_MULTI_ASSET_WITHDRAW_METHOD = "withdrawSafe";
|
|
19
19
|
export declare const EASY_SWAPPER_V2_INITIATE_WITHDRAW_METHOD = "initWithdrawal";
|
|
20
|
+
export declare const EASY_SWAPPER_V2_UNROLL_AND_CLAIM_METHOD = "unrollAndClaim";
|
|
20
21
|
export declare const EASY_SWAPPER_V2_COMPLETE_WITHDRAW_METHOD = "completeWithdrawal";
|
|
21
22
|
export declare const NATIVE_TOKEN_DEPOSIT_GAS_LIMIT = 4200000;
|
|
22
23
|
export declare const GAS_LIMIT_BUFFER_COEFF = 1.25;
|
|
23
24
|
export declare const MANAGER_FEE_DENOMINATOR = 10000;
|
|
24
25
|
export declare const DEFAULT_PROMISE_TIMEOUT_MS = 13000;
|
|
26
|
+
export declare const DEFAULT_VISIBLE_ASSETS_LIMIT = 3;
|