@dhedge/trading-widget 3.11.2 → 3.12.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 +0 -1
- package/core-kit/abi/easy-swapper-v2.d.ts +225 -90
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +450 -180
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +225 -90
- package/core-kit/hooks/trading/use-easy-swapper-tracked-assets.d.ts +225 -90
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts +1 -2
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-get-init-withdraw-transaction-arguments.d.ts +3 -6
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +225 -90
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +225 -90
- package/core-kit/types/contract.types.d.ts +1 -0
- package/index.cjs +52 -52
- package/index.js +7253 -6776
- package/package.json +1 -1
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +0 -1
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-is-offchain-aave-withdraw-supported.d.ts +0 -1
|
@@ -120,27 +120,17 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
120
120
|
}, {
|
|
121
121
|
readonly anonymous: false;
|
|
122
122
|
readonly inputs: readonly [{
|
|
123
|
-
readonly indexed:
|
|
123
|
+
readonly indexed: false;
|
|
124
124
|
readonly internalType: "address";
|
|
125
|
-
readonly name: "
|
|
125
|
+
readonly name: "limitOrderVault";
|
|
126
126
|
readonly type: "address";
|
|
127
127
|
}, {
|
|
128
128
|
readonly indexed: true;
|
|
129
129
|
readonly internalType: "address";
|
|
130
|
-
readonly name: "
|
|
131
|
-
readonly type: "address";
|
|
132
|
-
}];
|
|
133
|
-
readonly name: "OwnershipTransferred";
|
|
134
|
-
readonly type: "event";
|
|
135
|
-
}, {
|
|
136
|
-
readonly anonymous: false;
|
|
137
|
-
readonly inputs: readonly [{
|
|
138
|
-
readonly indexed: false;
|
|
139
|
-
readonly internalType: "address";
|
|
140
|
-
readonly name: "proxy";
|
|
130
|
+
readonly name: "depositor";
|
|
141
131
|
readonly type: "address";
|
|
142
132
|
}];
|
|
143
|
-
readonly name: "
|
|
133
|
+
readonly name: "LimitOrderVaultCreated";
|
|
144
134
|
readonly type: "event";
|
|
145
135
|
}, {
|
|
146
136
|
readonly anonymous: false;
|
|
@@ -182,21 +172,6 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
182
172
|
}];
|
|
183
173
|
readonly name: "WithdrawalInitiated";
|
|
184
174
|
readonly type: "event";
|
|
185
|
-
}, {
|
|
186
|
-
readonly anonymous: false;
|
|
187
|
-
readonly inputs: readonly [{
|
|
188
|
-
readonly indexed: false;
|
|
189
|
-
readonly internalType: "address";
|
|
190
|
-
readonly name: "withdrawalVault";
|
|
191
|
-
readonly type: "address";
|
|
192
|
-
}, {
|
|
193
|
-
readonly indexed: true;
|
|
194
|
-
readonly internalType: "address";
|
|
195
|
-
readonly name: "depositor";
|
|
196
|
-
readonly type: "address";
|
|
197
|
-
}];
|
|
198
|
-
readonly name: "WithdrawalVaultCreated";
|
|
199
|
-
readonly type: "event";
|
|
200
175
|
}, {
|
|
201
176
|
readonly anonymous: false;
|
|
202
177
|
readonly inputs: readonly [{
|
|
@@ -232,15 +207,141 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
232
207
|
}];
|
|
233
208
|
readonly name: "ZapDepositCompleted";
|
|
234
209
|
readonly type: "event";
|
|
210
|
+
}, {
|
|
211
|
+
readonly inputs: readonly [{
|
|
212
|
+
readonly components: readonly [{
|
|
213
|
+
readonly components: readonly [{
|
|
214
|
+
readonly internalType: "contract IERC20";
|
|
215
|
+
readonly name: "token";
|
|
216
|
+
readonly type: "address";
|
|
217
|
+
}, {
|
|
218
|
+
readonly internalType: "uint256";
|
|
219
|
+
readonly name: "amount";
|
|
220
|
+
readonly type: "uint256";
|
|
221
|
+
}, {
|
|
222
|
+
readonly components: readonly [{
|
|
223
|
+
readonly internalType: "bytes32";
|
|
224
|
+
readonly name: "routerKey";
|
|
225
|
+
readonly type: "bytes32";
|
|
226
|
+
}, {
|
|
227
|
+
readonly internalType: "bytes";
|
|
228
|
+
readonly name: "swapData";
|
|
229
|
+
readonly type: "bytes";
|
|
230
|
+
}];
|
|
231
|
+
readonly internalType: "struct ISwapper.AggregatorData";
|
|
232
|
+
readonly name: "aggregatorData";
|
|
233
|
+
readonly type: "tuple";
|
|
234
|
+
}];
|
|
235
|
+
readonly internalType: "struct ISwapper.SrcTokenSwapDetails[]";
|
|
236
|
+
readonly name: "srcData";
|
|
237
|
+
readonly type: "tuple[]";
|
|
238
|
+
}, {
|
|
239
|
+
readonly components: readonly [{
|
|
240
|
+
readonly internalType: "contract IERC20";
|
|
241
|
+
readonly name: "destToken";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
}, {
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
readonly name: "minDestAmount";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}];
|
|
248
|
+
readonly internalType: "struct ISwapper.DestData";
|
|
249
|
+
readonly name: "destData";
|
|
250
|
+
readonly type: "tuple";
|
|
251
|
+
}];
|
|
252
|
+
readonly internalType: "struct IWithdrawalVault.MultiInSingleOutData";
|
|
253
|
+
readonly name: "_swapData";
|
|
254
|
+
readonly type: "tuple";
|
|
255
|
+
}, {
|
|
256
|
+
readonly internalType: "uint256";
|
|
257
|
+
readonly name: "_expectedDestTokenAmount";
|
|
258
|
+
readonly type: "uint256";
|
|
259
|
+
}];
|
|
260
|
+
readonly name: "completeLimitOrderWithdrawal";
|
|
261
|
+
readonly outputs: readonly [{
|
|
262
|
+
readonly internalType: "uint256";
|
|
263
|
+
readonly name: "destTokenAmount";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
}];
|
|
266
|
+
readonly stateMutability: "nonpayable";
|
|
267
|
+
readonly type: "function";
|
|
235
268
|
}, {
|
|
236
269
|
readonly inputs: readonly [];
|
|
237
|
-
readonly name: "
|
|
270
|
+
readonly name: "completeLimitOrderWithdrawal";
|
|
271
|
+
readonly outputs: readonly [];
|
|
272
|
+
readonly stateMutability: "nonpayable";
|
|
273
|
+
readonly type: "function";
|
|
274
|
+
}, {
|
|
275
|
+
readonly inputs: readonly [{
|
|
276
|
+
readonly internalType: "address";
|
|
277
|
+
readonly name: "_user";
|
|
278
|
+
readonly type: "address";
|
|
279
|
+
}, {
|
|
280
|
+
readonly components: readonly [{
|
|
281
|
+
readonly components: readonly [{
|
|
282
|
+
readonly internalType: "contract IERC20";
|
|
283
|
+
readonly name: "token";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
}, {
|
|
286
|
+
readonly internalType: "uint256";
|
|
287
|
+
readonly name: "amount";
|
|
288
|
+
readonly type: "uint256";
|
|
289
|
+
}, {
|
|
290
|
+
readonly components: readonly [{
|
|
291
|
+
readonly internalType: "bytes32";
|
|
292
|
+
readonly name: "routerKey";
|
|
293
|
+
readonly type: "bytes32";
|
|
294
|
+
}, {
|
|
295
|
+
readonly internalType: "bytes";
|
|
296
|
+
readonly name: "swapData";
|
|
297
|
+
readonly type: "bytes";
|
|
298
|
+
}];
|
|
299
|
+
readonly internalType: "struct ISwapper.AggregatorData";
|
|
300
|
+
readonly name: "aggregatorData";
|
|
301
|
+
readonly type: "tuple";
|
|
302
|
+
}];
|
|
303
|
+
readonly internalType: "struct ISwapper.SrcTokenSwapDetails[]";
|
|
304
|
+
readonly name: "srcData";
|
|
305
|
+
readonly type: "tuple[]";
|
|
306
|
+
}, {
|
|
307
|
+
readonly components: readonly [{
|
|
308
|
+
readonly internalType: "contract IERC20";
|
|
309
|
+
readonly name: "destToken";
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
}, {
|
|
312
|
+
readonly internalType: "uint256";
|
|
313
|
+
readonly name: "minDestAmount";
|
|
314
|
+
readonly type: "uint256";
|
|
315
|
+
}];
|
|
316
|
+
readonly internalType: "struct ISwapper.DestData";
|
|
317
|
+
readonly name: "destData";
|
|
318
|
+
readonly type: "tuple";
|
|
319
|
+
}];
|
|
320
|
+
readonly internalType: "struct IWithdrawalVault.MultiInSingleOutData";
|
|
321
|
+
readonly name: "_swapData";
|
|
322
|
+
readonly type: "tuple";
|
|
323
|
+
}, {
|
|
324
|
+
readonly internalType: "uint256";
|
|
325
|
+
readonly name: "_expectedDestTokenAmount";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
}];
|
|
328
|
+
readonly name: "completeLimitOrderWithdrawalFor";
|
|
238
329
|
readonly outputs: readonly [{
|
|
239
330
|
readonly internalType: "uint256";
|
|
240
|
-
readonly name: "";
|
|
331
|
+
readonly name: "destTokenAmount";
|
|
241
332
|
readonly type: "uint256";
|
|
242
333
|
}];
|
|
243
|
-
readonly stateMutability: "
|
|
334
|
+
readonly stateMutability: "nonpayable";
|
|
335
|
+
readonly type: "function";
|
|
336
|
+
}, {
|
|
337
|
+
readonly inputs: readonly [{
|
|
338
|
+
readonly internalType: "address";
|
|
339
|
+
readonly name: "_user";
|
|
340
|
+
readonly type: "address";
|
|
341
|
+
}];
|
|
342
|
+
readonly name: "completeLimitOrderWithdrawalFor";
|
|
343
|
+
readonly outputs: readonly [];
|
|
344
|
+
readonly stateMutability: "nonpayable";
|
|
244
345
|
readonly type: "function";
|
|
245
346
|
}, {
|
|
246
347
|
readonly inputs: readonly [{
|
|
@@ -293,7 +394,11 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
293
394
|
readonly type: "uint256";
|
|
294
395
|
}];
|
|
295
396
|
readonly name: "completeWithdrawal";
|
|
296
|
-
readonly outputs: readonly [
|
|
397
|
+
readonly outputs: readonly [{
|
|
398
|
+
readonly internalType: "uint256";
|
|
399
|
+
readonly name: "destTokenAmount";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
}];
|
|
297
402
|
readonly stateMutability: "nonpayable";
|
|
298
403
|
readonly type: "function";
|
|
299
404
|
}, {
|
|
@@ -441,6 +546,33 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
441
546
|
readonly type: "function";
|
|
442
547
|
}, {
|
|
443
548
|
readonly inputs: readonly [{
|
|
549
|
+
readonly internalType: "address";
|
|
550
|
+
readonly name: "_depositor";
|
|
551
|
+
readonly type: "address";
|
|
552
|
+
}];
|
|
553
|
+
readonly name: "getTrackedAssetsFromLimitOrders";
|
|
554
|
+
readonly outputs: readonly [{
|
|
555
|
+
readonly components: readonly [{
|
|
556
|
+
readonly internalType: "address";
|
|
557
|
+
readonly name: "token";
|
|
558
|
+
readonly type: "address";
|
|
559
|
+
}, {
|
|
560
|
+
readonly internalType: "uint256";
|
|
561
|
+
readonly name: "balance";
|
|
562
|
+
readonly type: "uint256";
|
|
563
|
+
}];
|
|
564
|
+
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
565
|
+
readonly name: "trackedAssets";
|
|
566
|
+
readonly type: "tuple[]";
|
|
567
|
+
}];
|
|
568
|
+
readonly stateMutability: "view";
|
|
569
|
+
readonly type: "function";
|
|
570
|
+
}, {
|
|
571
|
+
readonly inputs: readonly [{
|
|
572
|
+
readonly internalType: "address";
|
|
573
|
+
readonly name: "_user";
|
|
574
|
+
readonly type: "address";
|
|
575
|
+
}, {
|
|
444
576
|
readonly internalType: "address";
|
|
445
577
|
readonly name: "_dHedgeVault";
|
|
446
578
|
readonly type: "address";
|
|
@@ -466,7 +598,7 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
466
598
|
readonly name: "_complexAssetsData";
|
|
467
599
|
readonly type: "tuple[]";
|
|
468
600
|
}];
|
|
469
|
-
readonly name: "
|
|
601
|
+
readonly name: "initLimitOrderWithdrawalFor";
|
|
470
602
|
readonly outputs: readonly [{
|
|
471
603
|
readonly components: readonly [{
|
|
472
604
|
readonly internalType: "address";
|
|
@@ -497,9 +629,22 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
497
629
|
readonly name: "_amountIn";
|
|
498
630
|
readonly type: "uint256";
|
|
499
631
|
}, {
|
|
500
|
-
readonly
|
|
501
|
-
|
|
502
|
-
|
|
632
|
+
readonly components: readonly [{
|
|
633
|
+
readonly internalType: "address";
|
|
634
|
+
readonly name: "supportedAsset";
|
|
635
|
+
readonly type: "address";
|
|
636
|
+
}, {
|
|
637
|
+
readonly internalType: "bytes";
|
|
638
|
+
readonly name: "withdrawData";
|
|
639
|
+
readonly type: "bytes";
|
|
640
|
+
}, {
|
|
641
|
+
readonly internalType: "uint256";
|
|
642
|
+
readonly name: "slippageTolerance";
|
|
643
|
+
readonly type: "uint256";
|
|
644
|
+
}];
|
|
645
|
+
readonly internalType: "struct IPoolLogic.ComplexAsset[]";
|
|
646
|
+
readonly name: "_complexAssetsData";
|
|
647
|
+
readonly type: "tuple[]";
|
|
503
648
|
}];
|
|
504
649
|
readonly name: "initWithdrawal";
|
|
505
650
|
readonly outputs: readonly [{
|
|
@@ -525,28 +670,16 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
525
670
|
}, {
|
|
526
671
|
readonly inputs: readonly [{
|
|
527
672
|
readonly internalType: "address";
|
|
528
|
-
readonly name: "
|
|
529
|
-
readonly type: "address";
|
|
530
|
-
}, {
|
|
531
|
-
readonly internalType: "address";
|
|
532
|
-
readonly name: "_weth";
|
|
533
|
-
readonly type: "address";
|
|
534
|
-
}, {
|
|
535
|
-
readonly internalType: "contract IWETH";
|
|
536
|
-
readonly name: "_wrappedNativeToken";
|
|
537
|
-
readonly type: "address";
|
|
538
|
-
}, {
|
|
539
|
-
readonly internalType: "contract ISwapper";
|
|
540
|
-
readonly name: "_swapper";
|
|
673
|
+
readonly name: "";
|
|
541
674
|
readonly type: "address";
|
|
542
|
-
}, {
|
|
543
|
-
readonly internalType: "uint256";
|
|
544
|
-
readonly name: "_customCooldown";
|
|
545
|
-
readonly type: "uint256";
|
|
546
675
|
}];
|
|
547
|
-
readonly name: "
|
|
548
|
-
readonly outputs: readonly [
|
|
549
|
-
|
|
676
|
+
readonly name: "isAuthorizedWithdrawer";
|
|
677
|
+
readonly outputs: readonly [{
|
|
678
|
+
readonly internalType: "bool";
|
|
679
|
+
readonly name: "";
|
|
680
|
+
readonly type: "bool";
|
|
681
|
+
}];
|
|
682
|
+
readonly stateMutability: "view";
|
|
550
683
|
readonly type: "function";
|
|
551
684
|
}, {
|
|
552
685
|
readonly inputs: readonly [{
|
|
@@ -562,6 +695,20 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
562
695
|
}];
|
|
563
696
|
readonly stateMutability: "view";
|
|
564
697
|
readonly type: "function";
|
|
698
|
+
}, {
|
|
699
|
+
readonly inputs: readonly [{
|
|
700
|
+
readonly internalType: "address";
|
|
701
|
+
readonly name: "";
|
|
702
|
+
readonly type: "address";
|
|
703
|
+
}];
|
|
704
|
+
readonly name: "limitOrderContracts";
|
|
705
|
+
readonly outputs: readonly [{
|
|
706
|
+
readonly internalType: "address";
|
|
707
|
+
readonly name: "";
|
|
708
|
+
readonly type: "address";
|
|
709
|
+
}];
|
|
710
|
+
readonly stateMutability: "view";
|
|
711
|
+
readonly type: "function";
|
|
565
712
|
}, {
|
|
566
713
|
readonly inputs: readonly [{
|
|
567
714
|
readonly internalType: "address";
|
|
@@ -620,6 +767,25 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
620
767
|
readonly outputs: readonly [];
|
|
621
768
|
readonly stateMutability: "nonpayable";
|
|
622
769
|
readonly type: "function";
|
|
770
|
+
}, {
|
|
771
|
+
readonly inputs: readonly [{
|
|
772
|
+
readonly components: readonly [{
|
|
773
|
+
readonly internalType: "address";
|
|
774
|
+
readonly name: "toWhitelist";
|
|
775
|
+
readonly type: "address";
|
|
776
|
+
}, {
|
|
777
|
+
readonly internalType: "bool";
|
|
778
|
+
readonly name: "whitelisted";
|
|
779
|
+
readonly type: "bool";
|
|
780
|
+
}];
|
|
781
|
+
readonly internalType: "struct EasySwapperV2.WhitelistSetting[]";
|
|
782
|
+
readonly name: "_whitelistSettings";
|
|
783
|
+
readonly type: "tuple[]";
|
|
784
|
+
}];
|
|
785
|
+
readonly name: "setAuthorizedWithdrawers";
|
|
786
|
+
readonly outputs: readonly [];
|
|
787
|
+
readonly stateMutability: "nonpayable";
|
|
788
|
+
readonly type: "function";
|
|
623
789
|
}, {
|
|
624
790
|
readonly inputs: readonly [{
|
|
625
791
|
readonly internalType: "uint256";
|
|
@@ -634,14 +800,14 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
634
800
|
readonly inputs: readonly [{
|
|
635
801
|
readonly components: readonly [{
|
|
636
802
|
readonly internalType: "address";
|
|
637
|
-
readonly name: "
|
|
803
|
+
readonly name: "toWhitelist";
|
|
638
804
|
readonly type: "address";
|
|
639
805
|
}, {
|
|
640
806
|
readonly internalType: "bool";
|
|
641
807
|
readonly name: "whitelisted";
|
|
642
808
|
readonly type: "bool";
|
|
643
809
|
}];
|
|
644
|
-
readonly internalType: "struct EasySwapperV2.
|
|
810
|
+
readonly internalType: "struct EasySwapperV2.WhitelistSetting[]";
|
|
645
811
|
readonly name: "_whitelistSettings";
|
|
646
812
|
readonly type: "tuple[]";
|
|
647
813
|
}];
|
|
@@ -699,37 +865,6 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
699
865
|
readonly outputs: readonly [];
|
|
700
866
|
readonly stateMutability: "nonpayable";
|
|
701
867
|
readonly type: "function";
|
|
702
|
-
}, {
|
|
703
|
-
readonly inputs: readonly [{
|
|
704
|
-
readonly internalType: "address";
|
|
705
|
-
readonly name: "_dHedgeVault";
|
|
706
|
-
readonly type: "address";
|
|
707
|
-
}, {
|
|
708
|
-
readonly internalType: "uint256";
|
|
709
|
-
readonly name: "_amountIn";
|
|
710
|
-
readonly type: "uint256";
|
|
711
|
-
}, {
|
|
712
|
-
readonly internalType: "uint256";
|
|
713
|
-
readonly name: "_slippageTolerance";
|
|
714
|
-
readonly type: "uint256";
|
|
715
|
-
}];
|
|
716
|
-
readonly name: "unrollAndClaim";
|
|
717
|
-
readonly outputs: readonly [{
|
|
718
|
-
readonly components: readonly [{
|
|
719
|
-
readonly internalType: "address";
|
|
720
|
-
readonly name: "token";
|
|
721
|
-
readonly type: "address";
|
|
722
|
-
}, {
|
|
723
|
-
readonly internalType: "uint256";
|
|
724
|
-
readonly name: "balance";
|
|
725
|
-
readonly type: "uint256";
|
|
726
|
-
}];
|
|
727
|
-
readonly internalType: "struct IWithdrawalVault.TrackedAsset[]";
|
|
728
|
-
readonly name: "";
|
|
729
|
-
readonly type: "tuple[]";
|
|
730
|
-
}];
|
|
731
|
-
readonly stateMutability: "nonpayable";
|
|
732
|
-
readonly type: "function";
|
|
733
868
|
}, {
|
|
734
869
|
readonly inputs: readonly [{
|
|
735
870
|
readonly internalType: "address";
|