@dhedge/trading-widget 5.1.0 → 5.2.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/const/network.d.ts +127 -7
- package/core-kit/hooks/pool/use-available-manager-fee.d.ts +1 -1
- package/core-kit/hooks/pool/use-pool-dynamic-exit-remaining-cooldown.d.ts +1 -1
- package/core-kit/hooks/pool/use-user-vault-balance.d.ts +1 -1
- package/core-kit/hooks/state/action.d.ts +1 -1
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +1 -1
- package/core-kit/hooks/trading/use-easy-swapper-tracked-assets.d.ts +1 -1
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +1 -1
- package/core-kit/types/config.types.d.ts +1 -0
- package/core-kit/types/state.types.d.ts +2 -2
- package/index.cjs +1 -1
- package/index.js +2381 -2328
- package/limit-orders/hooks/use-user-limit-order.d.ts +1 -1
- package/package.json +3 -3
- package/style.css +1 -1
- package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +1 -0
- package/trading-widget/components/widget/widget-input/widget-input.hooks.d.ts +1 -1
- package/trading-widget/components/widget/widget-overlay/error-notification-overlay/complete-withdraw-error-overlay.d.ts +7 -0
- package/trading-widget/components/widget/widget-overlay/error-notification-overlay/error-notification-overlay.hooks.d.ts +1 -0
- package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.hooks.d.ts +1 -0
- package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +1 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +2 -2
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ Widget library has some vital `peerDependencies` as a core tool stack. Make sure
|
|
|
9
9
|
```bash
|
|
10
10
|
"@tanstack/react-query": "^5.28.4",
|
|
11
11
|
"react": ">=18.2.0",
|
|
12
|
-
"viem": "^2.
|
|
13
|
-
"wagmi": "^2.5
|
|
12
|
+
"viem": "^2.44.2",
|
|
13
|
+
"wagmi": "^2.19.5"
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
1. Installation:
|
|
@@ -117,6 +117,7 @@ Top level provider component. Headless part of trading logic. API handles params
|
|
|
117
117
|
> | `maintenance` | `boolean` | `false` | Enables global vault maintenance mode (blocks deposits & withdrawals) |
|
|
118
118
|
> | `maintenanceDeposits` | `boolean` | `false` | Blocks only deposits |
|
|
119
119
|
> | `maintenanceWithdrawals` | `boolean` | `false` | Blocks only withdrawals |
|
|
120
|
+
> | `depositCapacity` | `number` | `undefined` | Maximum deposit capacity in USD. If set, deposits exceeding this value will be blocked |
|
|
120
121
|
> | `pricingAsset` | `{ address: Address; symbol: string }` | `undefined` | Pricing asset used for limit orders |
|
|
121
122
|
|
|
122
123
|
###### Source: `packages/trading-widget/src/core-kit/types/config.types.ts`
|
|
@@ -233,6 +234,7 @@ path: `global.color[name]`
|
|
|
233
234
|
> | `colorTextSuccess` | string | `#73D393` | Success text color |
|
|
234
235
|
> | `colorIcon` | string | `global?.color?.colorTextPrimary ?? #ffffff` | Icon color |
|
|
235
236
|
> | `colorIconHover` | string | `global?.color?.colorIconHover ?? #ffffffCC` | Icon hover color |
|
|
237
|
+
> | `colorErrorOverlayIcon` | string | `var(--panel-accent-from-color)` | Error overlay icon color |
|
|
236
238
|
> | `colorScrollbar` | string | `#73D39380` | Scrollbar color |
|
|
237
239
|
|
|
238
240
|
###### size
|
|
@@ -536,6 +538,7 @@ path: `component.meta[name]`
|
|
|
536
538
|
> | `minimumPurchase` | string | Minimum purchase is {value} | |
|
|
537
539
|
> | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
|
|
538
540
|
> | `poolDepositsAreMaintenance` | string | {poolSymbol} token is under maintenance. Deposits are temporarily blocked. | |
|
|
541
|
+
> | `exceedsDepositCapacity` | string | Deposit amount exceeds available {poolSymbol} deposit capacity. | |
|
|
539
542
|
> | `poolWithdrawalsAreMaintenance` | string | {poolSymbol} token is under maintenance. Withdrawals are temporarily blocked. | |
|
|
540
543
|
> | `poolIsPrivate` | string | This vault is currently private | |
|
|
541
544
|
> | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
|
|
@@ -605,6 +608,7 @@ path: `component.meta[name]`
|
|
|
605
608
|
> | `deleteWithdrawalRequest` | string | Delete withdrawal request | |
|
|
606
609
|
> | `insufficientBalance` | string | Insufficient Balance | |
|
|
607
610
|
> | `expectToReceiveUsdcSoon` | string | Expect to receive your USDC over the next few minutes | |
|
|
611
|
+
> | `cancel` | string | Cancel | |
|
|
608
612
|
|
|
609
613
|
###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
|
|
610
614
|
|
|
@@ -37,16 +37,40 @@ export declare const CHAIN_MAP: {
|
|
|
37
37
|
sourceId?: number | undefined;
|
|
38
38
|
testnet?: boolean | undefined;
|
|
39
39
|
custom?: Record<string, unknown> | undefined;
|
|
40
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
40
41
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
41
42
|
formatters?: undefined;
|
|
43
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
44
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
45
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
46
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
47
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
48
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
49
|
+
}] | undefined;
|
|
42
50
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
|
|
51
|
+
verifyHash?: ((client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
account?: undefined;
|
|
54
|
+
batch?: undefined;
|
|
55
|
+
cacheTime?: undefined;
|
|
56
|
+
ccipRead?: undefined;
|
|
57
|
+
chain?: undefined;
|
|
58
|
+
experimental_blockTag?: undefined;
|
|
59
|
+
key?: undefined;
|
|
60
|
+
name?: undefined;
|
|
61
|
+
pollingInterval?: undefined;
|
|
62
|
+
request?: undefined;
|
|
63
|
+
transport?: undefined;
|
|
64
|
+
type?: undefined;
|
|
65
|
+
uid?: undefined;
|
|
66
|
+
} | undefined>, parameters: import("viem").VerifyHashActionParameters) => Promise<boolean>) | undefined;
|
|
43
67
|
};
|
|
44
68
|
readonly 137: {
|
|
45
69
|
blockExplorers: {
|
|
46
70
|
readonly default: {
|
|
47
71
|
readonly name: "PolygonScan";
|
|
48
72
|
readonly url: "https://polygonscan.com";
|
|
49
|
-
readonly apiUrl: "https://api.
|
|
73
|
+
readonly apiUrl: "https://api.etherscan.io/v2/api";
|
|
50
74
|
};
|
|
51
75
|
};
|
|
52
76
|
blockTime: 2000;
|
|
@@ -73,9 +97,33 @@ export declare const CHAIN_MAP: {
|
|
|
73
97
|
sourceId?: number | undefined;
|
|
74
98
|
testnet?: boolean | undefined;
|
|
75
99
|
custom?: Record<string, unknown> | undefined;
|
|
100
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
76
101
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
77
102
|
formatters?: undefined;
|
|
103
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
104
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
105
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
106
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
107
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
108
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
109
|
+
}] | undefined;
|
|
78
110
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
|
|
111
|
+
verifyHash?: ((client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
112
|
+
[x: string]: unknown;
|
|
113
|
+
account?: undefined;
|
|
114
|
+
batch?: undefined;
|
|
115
|
+
cacheTime?: undefined;
|
|
116
|
+
ccipRead?: undefined;
|
|
117
|
+
chain?: undefined;
|
|
118
|
+
experimental_blockTag?: undefined;
|
|
119
|
+
key?: undefined;
|
|
120
|
+
name?: undefined;
|
|
121
|
+
pollingInterval?: undefined;
|
|
122
|
+
request?: undefined;
|
|
123
|
+
transport?: undefined;
|
|
124
|
+
type?: undefined;
|
|
125
|
+
uid?: undefined;
|
|
126
|
+
} | undefined>, parameters: import("viem").VerifyHashActionParameters) => Promise<boolean>) | undefined;
|
|
79
127
|
};
|
|
80
128
|
readonly 10: {
|
|
81
129
|
blockExplorers: {
|
|
@@ -147,6 +195,7 @@ export declare const CHAIN_MAP: {
|
|
|
147
195
|
sourceId: 1;
|
|
148
196
|
testnet?: boolean | undefined;
|
|
149
197
|
custom?: Record<string, unknown> | undefined;
|
|
198
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
150
199
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
151
200
|
formatters: {
|
|
152
201
|
readonly block: {
|
|
@@ -212,16 +261,16 @@ export declare const CHAIN_MAP: {
|
|
|
212
261
|
r: `0x${string}`;
|
|
213
262
|
s: `0x${string}`;
|
|
214
263
|
v: bigint;
|
|
215
|
-
value: bigint;
|
|
216
|
-
gas: bigint;
|
|
217
264
|
to: `0x${string}` | null;
|
|
218
265
|
from: `0x${string}`;
|
|
266
|
+
gas: bigint;
|
|
219
267
|
nonce: number;
|
|
268
|
+
value: bigint;
|
|
220
269
|
blockHash: `0x${string}` | null;
|
|
221
270
|
blockNumber: bigint | null;
|
|
222
|
-
transactionIndex: number | null;
|
|
223
271
|
hash: `0x${string}`;
|
|
224
272
|
input: `0x${string}`;
|
|
273
|
+
transactionIndex: number | null;
|
|
225
274
|
typeHex: `0x${string}` | null;
|
|
226
275
|
accessList?: undefined;
|
|
227
276
|
authorizationList?: undefined;
|
|
@@ -379,9 +428,32 @@ export declare const CHAIN_MAP: {
|
|
|
379
428
|
type: "transactionReceipt";
|
|
380
429
|
};
|
|
381
430
|
};
|
|
431
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
432
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
433
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
434
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
435
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
436
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
437
|
+
}] | undefined;
|
|
382
438
|
serializers: {
|
|
383
439
|
readonly transaction: typeof import("wagmi/chains").serializeTransactionOpStack;
|
|
384
440
|
};
|
|
441
|
+
verifyHash?: ((client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
442
|
+
[x: string]: unknown;
|
|
443
|
+
account?: undefined;
|
|
444
|
+
batch?: undefined;
|
|
445
|
+
cacheTime?: undefined;
|
|
446
|
+
ccipRead?: undefined;
|
|
447
|
+
chain?: undefined;
|
|
448
|
+
experimental_blockTag?: undefined;
|
|
449
|
+
key?: undefined;
|
|
450
|
+
name?: undefined;
|
|
451
|
+
pollingInterval?: undefined;
|
|
452
|
+
request?: undefined;
|
|
453
|
+
transport?: undefined;
|
|
454
|
+
type?: undefined;
|
|
455
|
+
uid?: undefined;
|
|
456
|
+
} | undefined>, parameters: import("viem").VerifyHashActionParameters) => Promise<boolean>) | undefined;
|
|
385
457
|
};
|
|
386
458
|
readonly 42161: {
|
|
387
459
|
blockExplorers: {
|
|
@@ -415,9 +487,33 @@ export declare const CHAIN_MAP: {
|
|
|
415
487
|
sourceId?: number | undefined;
|
|
416
488
|
testnet?: boolean | undefined;
|
|
417
489
|
custom?: Record<string, unknown> | undefined;
|
|
490
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
418
491
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
419
492
|
formatters?: undefined;
|
|
493
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
494
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
495
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
496
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
497
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
498
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
499
|
+
}] | undefined;
|
|
420
500
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
|
|
501
|
+
verifyHash?: ((client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
502
|
+
[x: string]: unknown;
|
|
503
|
+
account?: undefined;
|
|
504
|
+
batch?: undefined;
|
|
505
|
+
cacheTime?: undefined;
|
|
506
|
+
ccipRead?: undefined;
|
|
507
|
+
chain?: undefined;
|
|
508
|
+
experimental_blockTag?: undefined;
|
|
509
|
+
key?: undefined;
|
|
510
|
+
name?: undefined;
|
|
511
|
+
pollingInterval?: undefined;
|
|
512
|
+
request?: undefined;
|
|
513
|
+
transport?: undefined;
|
|
514
|
+
type?: undefined;
|
|
515
|
+
uid?: undefined;
|
|
516
|
+
} | undefined>, parameters: import("viem").VerifyHashActionParameters) => Promise<boolean>) | undefined;
|
|
421
517
|
};
|
|
422
518
|
readonly 8453: {
|
|
423
519
|
blockExplorers: {
|
|
@@ -491,6 +587,7 @@ export declare const CHAIN_MAP: {
|
|
|
491
587
|
sourceId: 1;
|
|
492
588
|
testnet?: boolean | undefined;
|
|
493
589
|
custom?: Record<string, unknown> | undefined;
|
|
590
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
494
591
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
495
592
|
formatters: {
|
|
496
593
|
readonly block: {
|
|
@@ -556,16 +653,16 @@ export declare const CHAIN_MAP: {
|
|
|
556
653
|
r: `0x${string}`;
|
|
557
654
|
s: `0x${string}`;
|
|
558
655
|
v: bigint;
|
|
559
|
-
value: bigint;
|
|
560
|
-
gas: bigint;
|
|
561
656
|
to: `0x${string}` | null;
|
|
562
657
|
from: `0x${string}`;
|
|
658
|
+
gas: bigint;
|
|
563
659
|
nonce: number;
|
|
660
|
+
value: bigint;
|
|
564
661
|
blockHash: `0x${string}` | null;
|
|
565
662
|
blockNumber: bigint | null;
|
|
566
|
-
transactionIndex: number | null;
|
|
567
663
|
hash: `0x${string}`;
|
|
568
664
|
input: `0x${string}`;
|
|
665
|
+
transactionIndex: number | null;
|
|
569
666
|
typeHex: `0x${string}` | null;
|
|
570
667
|
accessList?: undefined;
|
|
571
668
|
authorizationList?: undefined;
|
|
@@ -723,9 +820,32 @@ export declare const CHAIN_MAP: {
|
|
|
723
820
|
type: "transactionReceipt";
|
|
724
821
|
};
|
|
725
822
|
};
|
|
823
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
824
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
825
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>, options: {
|
|
826
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
827
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters<import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, import("wagmi/chains").Chain | undefined, `0x${string}` | import("viem").Account | undefined, import("viem").PrepareTransactionRequestRequest<import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined, import("wagmi/chains").Chain | undefined>>>) | undefined, options: {
|
|
828
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
829
|
+
}] | undefined;
|
|
726
830
|
serializers: {
|
|
727
831
|
readonly transaction: typeof import("wagmi/chains").serializeTransactionOpStack;
|
|
728
832
|
};
|
|
833
|
+
verifyHash?: ((client: import('../types').Client<import("viem").Transport, import("wagmi/chains").Chain | undefined, import("viem").Account | undefined, undefined, {
|
|
834
|
+
[x: string]: unknown;
|
|
835
|
+
account?: undefined;
|
|
836
|
+
batch?: undefined;
|
|
837
|
+
cacheTime?: undefined;
|
|
838
|
+
ccipRead?: undefined;
|
|
839
|
+
chain?: undefined;
|
|
840
|
+
experimental_blockTag?: undefined;
|
|
841
|
+
key?: undefined;
|
|
842
|
+
name?: undefined;
|
|
843
|
+
pollingInterval?: undefined;
|
|
844
|
+
request?: undefined;
|
|
845
|
+
transport?: undefined;
|
|
846
|
+
type?: undefined;
|
|
847
|
+
uid?: undefined;
|
|
848
|
+
} | undefined>, parameters: import("viem").VerifyHashActionParameters) => Promise<boolean>) | undefined;
|
|
729
849
|
};
|
|
730
850
|
};
|
|
731
851
|
export declare const CHAIN_NATIVE_TOKENS: ChainNativeTokenMap;
|
|
@@ -270,5 +270,5 @@ export declare const useAvailableManagerFee: <T = number>({ address, chainId, se
|
|
|
270
270
|
readonly outputs: readonly [];
|
|
271
271
|
readonly stateMutability: "nonpayable";
|
|
272
272
|
readonly type: "function";
|
|
273
|
-
}], "calculateAvailableManagerFee", [bigint], T>;
|
|
273
|
+
}], "calculateAvailableManagerFee", readonly [bigint], T>;
|
|
274
274
|
export {};
|
|
@@ -271,5 +271,5 @@ export declare const usePoolDynamicExitRemainingCooldown: ({ address, chainId, }
|
|
|
271
271
|
readonly outputs: readonly [];
|
|
272
272
|
readonly stateMutability: "nonpayable";
|
|
273
273
|
readonly type: "function";
|
|
274
|
-
}], "getExitRemainingCooldown", [`0x${string}`], number>;
|
|
274
|
+
}], "getExitRemainingCooldown", readonly [sender: `0x${string}`], number>;
|
|
275
275
|
export {};
|
|
@@ -265,4 +265,4 @@ export declare const useUserVaultBalance: ({ account, chainId, address, }: PoolC
|
|
|
265
265
|
readonly outputs: readonly [];
|
|
266
266
|
readonly stateMutability: "nonpayable";
|
|
267
267
|
readonly type: "function";
|
|
268
|
-
}], "balanceOf", [`0x${string}`], import("@shared/types").Balance>;
|
|
268
|
+
}], "balanceOf", readonly [account: `0x${string}`], import("@shared/types").Balance>;
|
|
@@ -27,6 +27,6 @@ export declare const useGetSwapQuotes: () => ({ signal, variables, }: {
|
|
|
27
27
|
signal: AbortSignal;
|
|
28
28
|
variables: SwapDataRequest;
|
|
29
29
|
}) => Promise<import("@shared/types").SwapDataResponse[] | null>;
|
|
30
|
-
export declare const useUpdatePoolConfig: () => (payload: Record<`0x${string}`, Pick<import("../../types").PoolConfig, "maintenance" | "maintenanceDeposits" | "maintenanceWithdrawals">>) => void;
|
|
30
|
+
export declare const useUpdatePoolConfig: () => (payload: Record<`0x${string}`, Pick<import("../../types").PoolConfig, "maintenance" | "maintenanceDeposits" | "maintenanceWithdrawals" | "depositCapacity">>) => void;
|
|
31
31
|
export declare const useAddPoolConfig: () => (payload: import("../../types").PoolConfig) => void;
|
|
32
32
|
export declare const useUpdateCustomDepositTokensPerChain: () => (payload: Record<number, import("@shared/types").TradingToken[]>) => void;
|
|
@@ -1175,4 +1175,4 @@ export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<P
|
|
|
1175
1175
|
readonly outputs: readonly [];
|
|
1176
1176
|
readonly stateMutability: "payable";
|
|
1177
1177
|
readonly type: "function";
|
|
1178
|
-
}], "depositQuote", [`0x${string}`, `0x${string}`, bigint], bigint>;
|
|
1178
|
+
}], "depositQuote", readonly [`0x${string}`, `0x${string}`, bigint], bigint>;
|
|
@@ -1175,7 +1175,7 @@ export declare const useEasySwapperTrackedAssets: ({ account, chainId, }: Omit<P
|
|
|
1175
1175
|
readonly outputs: readonly [];
|
|
1176
1176
|
readonly stateMutability: "payable";
|
|
1177
1177
|
readonly type: "function";
|
|
1178
|
-
}], "getTrackedAssets", [`0x${string}`], readonly {
|
|
1178
|
+
}], "getTrackedAssets", readonly [_depositor: `0x${string}`], readonly {
|
|
1179
1179
|
token: `0x${string}`;
|
|
1180
1180
|
balance: bigint;
|
|
1181
1181
|
}[]>;
|
|
@@ -1174,4 +1174,4 @@ export declare const useWithdrawalVaultAddress: () => import("wagmi").UseReadCon
|
|
|
1174
1174
|
readonly outputs: readonly [];
|
|
1175
1175
|
readonly stateMutability: "payable";
|
|
1176
1176
|
readonly type: "function";
|
|
1177
|
-
}], "withdrawalContracts", [`0x${string}`], `0x${string}`>;
|
|
1177
|
+
}], "withdrawalContracts", readonly [`0x${string}`], `0x${string}`>;
|
|
@@ -50,7 +50,7 @@ export interface TradingPanelSetters {
|
|
|
50
50
|
updateStepper: (payload: TradingPanelState['stepper']) => void;
|
|
51
51
|
updateTransactions: (payload: UpdateTransactionsArguments) => void;
|
|
52
52
|
updatePoolFallbackData: (payload: PoolFallbackData) => void;
|
|
53
|
-
updatePoolConfig: (payload: Record<PoolConfig['address'], Pick<PoolConfig, 'maintenance' | 'maintenanceDeposits' | 'maintenanceWithdrawals'>>) => void;
|
|
53
|
+
updatePoolConfig: (payload: Record<PoolConfig['address'], Pick<PoolConfig, 'maintenance' | 'maintenanceDeposits' | 'maintenanceWithdrawals' | 'depositCapacity'>>) => void;
|
|
54
54
|
addPoolConfig: (payload: PoolConfig) => void;
|
|
55
55
|
updateCustomDepositTokensPerChain: (payload: Record<ChainId, TradingToken[]>) => void;
|
|
56
56
|
}
|
|
@@ -103,7 +103,7 @@ export type TradingPanelAction = {
|
|
|
103
103
|
payload: PoolFallbackData;
|
|
104
104
|
} | {
|
|
105
105
|
type: 'UPDATE_POOL_CONFIG';
|
|
106
|
-
payload: Record<PoolConfig['address'], Pick<PoolConfig, 'maintenance' | 'maintenanceDeposits' | 'maintenanceWithdrawals'>>;
|
|
106
|
+
payload: Record<PoolConfig['address'], Pick<PoolConfig, 'maintenance' | 'maintenanceDeposits' | 'maintenanceWithdrawals' | 'depositCapacity'>>;
|
|
107
107
|
} | {
|
|
108
108
|
type: 'ADD_POOL_CONFIG';
|
|
109
109
|
payload: PoolConfig;
|