@dhedge/trading-widget 4.4.0-canary.2 → 4.4.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.
Files changed (47) hide show
  1. package/README.md +118 -126
  2. package/core-kit/abi/limit-order.d.ts +0 -15
  3. package/core-kit/abi/pool-manager-logic.d.ts +20 -0
  4. package/core-kit/const/logger.d.ts +0 -2
  5. package/core-kit/hooks/pool/multicall/use-pool-manager.dynamic.d.ts +40 -0
  6. package/core-kit/hooks/pool/multicall/use-pool-manager.static.d.ts +193 -0
  7. package/core-kit/hooks/pool/multicall/use-pool.dynamic.d.ts +2 -2
  8. package/core-kit/hooks/pool/use-available-manager-fee.d.ts +267 -0
  9. package/core-kit/hooks/pool/use-pool-composition-with-fraction.d.ts +2 -2
  10. package/core-kit/hooks/trading/deposit-v2/use-is-max-supply-cap-reached.d.ts +4 -0
  11. package/core-kit/types/config.types.d.ts +0 -1
  12. package/core-kit/types/trading-panel.types.d.ts +1 -1
  13. package/core-kit/utils/number.d.ts +1 -1
  14. package/index.cjs +10 -10
  15. package/index.d.ts +2 -2
  16. package/index.js +6401 -6635
  17. package/limit-orders/hooks/use-user-limit-order.d.ts +0 -15
  18. package/limit-orders/index.d.ts +0 -3
  19. package/package.json +1 -1
  20. package/style.css +1 -1
  21. package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +0 -1
  22. package/trading-widget/components/widget/widget-meta/index.d.ts +1 -1
  23. package/trading-widget/components/widget/widget-overlay/index.d.ts +0 -1
  24. package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.hooks.d.ts +0 -1
  25. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts +0 -1
  26. package/trading-widget/components/withdraw/init-step/button/valid-init-withdraw-button/valid-init-withdraw-button.hooks.d.ts +0 -2
  27. package/trading-widget/providers/component-provider/component-provider.d.ts +1 -1
  28. package/trading-widget/providers/component-provider/component-provider.hooks.d.ts +1 -1
  29. package/trading-widget/providers/component-provider/component-provider.types.d.ts +4 -1
  30. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +0 -9
  31. package/trading-widget/types/overlay.types.d.ts +0 -1
  32. package/core-kit/hooks/trading/limit-order-withdraw/use-is-limit-order-withdraw.d.ts +0 -1
  33. package/core-kit/hooks/trading/limit-order-withdraw/use-is-limit-withdraw-order-approved.d.ts +0 -1
  34. package/core-kit/hooks/trading/limit-order-withdraw/use-limit-order-withdraw-amount.d.ts +0 -2
  35. package/core-kit/hooks/trading/limit-order-withdraw/use-limit-order-withdraw-transaction.d.ts +0 -1
  36. package/core-kit/hooks/trading/limit-order-withdraw/use-limit-withdraw-approve-transaction.d.ts +0 -4
  37. package/core-kit/hooks/trading/trade-handlers/use-handle-limit-order-withdraw.d.ts +0 -10
  38. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-approve-button/limit-order-withdraw-approve-button.d.ts +0 -2
  39. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-approve-button/limit-order-withdraw-approve-button.hooks.d.ts +0 -5
  40. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-button/limit-order-withdraw-button.d.ts +0 -6
  41. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-button/limit-order-withdraw-button.hooks.d.ts +0 -5
  42. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-overlay.d.ts +0 -3
  43. package/trading-widget/components/widget/widget-overlay/limit-order-withdraw-overlay/limit-order-withdraw-terms-content.d.ts +0 -6
  44. package/trading-widget/components/widget/widget-overlay/trading-overlay/withdrawals/limit-order-withdrawal-overlay.d.ts +0 -3
  45. package/trading-widget/components/widget/widget-overlay/trading-overlay/withdrawals/limit-order-withdrawal-overlay.hooks.d.ts +0 -5
  46. package/trading-widget/components/withdraw/init-step/button/limit-order-withdraw-button/limit-order-withdraw-button.d.ts +0 -2
  47. package/trading-widget/components/withdraw/init-step/button/limit-order-withdraw-button/limit-order-withdraw-button.hooks.d.ts +0 -4
@@ -107,6 +107,26 @@ export declare const usePoolManagerStatic: ({ address, chainId, }: PoolContractC
107
107
  }];
108
108
  readonly stateMutability: "view";
109
109
  readonly type: "function";
110
+ }, {
111
+ readonly inputs: readonly [];
112
+ readonly name: "maxSupplyCap";
113
+ readonly outputs: readonly [{
114
+ readonly internalType: "uint256";
115
+ readonly name: "";
116
+ readonly type: "uint256";
117
+ }];
118
+ readonly stateMutability: "view";
119
+ readonly type: "function";
120
+ }, {
121
+ readonly inputs: readonly [];
122
+ readonly name: "poolFeeShareNumerator";
123
+ readonly outputs: readonly [{
124
+ readonly internalType: "uint256";
125
+ readonly name: "";
126
+ readonly type: "uint256";
127
+ }];
128
+ readonly stateMutability: "view";
129
+ readonly type: "function";
110
130
  }];
111
131
  readonly functionName: "getFeeIncreaseInfo";
112
132
  readonly chainId: number;
@@ -218,6 +238,26 @@ export declare const usePoolManagerStatic: ({ address, chainId, }: PoolContractC
218
238
  }];
219
239
  readonly stateMutability: "view";
220
240
  readonly type: "function";
241
+ }, {
242
+ readonly inputs: readonly [];
243
+ readonly name: "maxSupplyCap";
244
+ readonly outputs: readonly [{
245
+ readonly internalType: "uint256";
246
+ readonly name: "";
247
+ readonly type: "uint256";
248
+ }];
249
+ readonly stateMutability: "view";
250
+ readonly type: "function";
251
+ }, {
252
+ readonly inputs: readonly [];
253
+ readonly name: "poolFeeShareNumerator";
254
+ readonly outputs: readonly [{
255
+ readonly internalType: "uint256";
256
+ readonly name: "";
257
+ readonly type: "uint256";
258
+ }];
259
+ readonly stateMutability: "view";
260
+ readonly type: "function";
221
261
  }];
222
262
  readonly functionName: "minDepositUSD";
223
263
  readonly chainId: number;
@@ -329,12 +369,165 @@ export declare const usePoolManagerStatic: ({ address, chainId, }: PoolContractC
329
369
  }];
330
370
  readonly stateMutability: "view";
331
371
  readonly type: "function";
372
+ }, {
373
+ readonly inputs: readonly [];
374
+ readonly name: "maxSupplyCap";
375
+ readonly outputs: readonly [{
376
+ readonly internalType: "uint256";
377
+ readonly name: "";
378
+ readonly type: "uint256";
379
+ }];
380
+ readonly stateMutability: "view";
381
+ readonly type: "function";
382
+ }, {
383
+ readonly inputs: readonly [];
384
+ readonly name: "poolFeeShareNumerator";
385
+ readonly outputs: readonly [{
386
+ readonly internalType: "uint256";
387
+ readonly name: "";
388
+ readonly type: "uint256";
389
+ }];
390
+ readonly stateMutability: "view";
391
+ readonly type: "function";
332
392
  }];
333
393
  readonly functionName: "isMemberAllowed";
334
394
  readonly args: readonly [`0x${string}`];
335
395
  readonly chainId: number;
396
+ }, {
397
+ readonly address: `0x${string}`;
398
+ readonly abi: readonly [{
399
+ readonly inputs: readonly [];
400
+ readonly name: "getFundComposition";
401
+ readonly outputs: readonly [{
402
+ readonly components: readonly [{
403
+ readonly internalType: "address";
404
+ readonly name: "asset";
405
+ readonly type: "address";
406
+ }, {
407
+ readonly internalType: "bool";
408
+ readonly name: "isDeposit";
409
+ readonly type: "bool";
410
+ }];
411
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
412
+ readonly name: "assets";
413
+ readonly type: "tuple[]";
414
+ }, {
415
+ readonly internalType: "uint256[]";
416
+ readonly name: "balances";
417
+ readonly type: "uint256[]";
418
+ }, {
419
+ readonly internalType: "uint256[]";
420
+ readonly name: "rates";
421
+ readonly type: "uint256[]";
422
+ }];
423
+ readonly stateMutability: "view";
424
+ readonly type: "function";
425
+ }, {
426
+ readonly inputs: readonly [];
427
+ readonly name: "getFeeIncreaseInfo";
428
+ readonly outputs: readonly [{
429
+ readonly internalType: "uint256";
430
+ readonly name: "";
431
+ readonly type: "uint256";
432
+ }, {
433
+ readonly internalType: "uint256";
434
+ readonly name: "";
435
+ readonly type: "uint256";
436
+ }, {
437
+ readonly internalType: "uint256";
438
+ readonly name: "";
439
+ readonly type: "uint256";
440
+ }, {
441
+ readonly internalType: "uint256";
442
+ readonly name: "";
443
+ readonly type: "uint256";
444
+ }, {
445
+ readonly internalType: "uint256";
446
+ readonly name: "";
447
+ readonly type: "uint256";
448
+ }];
449
+ readonly stateMutability: "view";
450
+ readonly type: "function";
451
+ }, {
452
+ readonly inputs: readonly [{
453
+ readonly internalType: "address";
454
+ readonly name: "member";
455
+ readonly type: "address";
456
+ }];
457
+ readonly name: "isMemberAllowed";
458
+ readonly outputs: readonly [{
459
+ readonly internalType: "bool";
460
+ readonly name: "";
461
+ readonly type: "bool";
462
+ }];
463
+ readonly stateMutability: "view";
464
+ readonly type: "function";
465
+ }, {
466
+ readonly inputs: readonly [];
467
+ readonly name: "minDepositUSD";
468
+ readonly outputs: readonly [{
469
+ readonly internalType: "uint256";
470
+ readonly name: "";
471
+ readonly type: "uint256";
472
+ }];
473
+ readonly stateMutability: "view";
474
+ readonly type: "function";
475
+ }, {
476
+ readonly inputs: readonly [];
477
+ readonly name: "totalFundValueMutable";
478
+ readonly outputs: readonly [{
479
+ readonly internalType: "uint256";
480
+ readonly name: "";
481
+ readonly type: "uint256";
482
+ }];
483
+ readonly stateMutability: "nonpayable";
484
+ readonly type: "function";
485
+ }, {
486
+ readonly inputs: readonly [];
487
+ readonly name: "getSupportedAssets";
488
+ readonly outputs: readonly [{
489
+ readonly components: readonly [{
490
+ readonly internalType: "address";
491
+ readonly name: "asset";
492
+ readonly type: "address";
493
+ }, {
494
+ readonly internalType: "bool";
495
+ readonly name: "isDeposit";
496
+ readonly type: "bool";
497
+ }];
498
+ readonly internalType: "struct IHasSupportedAsset.Asset[]";
499
+ readonly name: "";
500
+ readonly type: "tuple[]";
501
+ }];
502
+ readonly stateMutability: "view";
503
+ readonly type: "function";
504
+ }, {
505
+ readonly inputs: readonly [];
506
+ readonly name: "maxSupplyCap";
507
+ readonly outputs: readonly [{
508
+ readonly internalType: "uint256";
509
+ readonly name: "";
510
+ readonly type: "uint256";
511
+ }];
512
+ readonly stateMutability: "view";
513
+ readonly type: "function";
514
+ }, {
515
+ readonly inputs: readonly [];
516
+ readonly name: "poolFeeShareNumerator";
517
+ readonly outputs: readonly [{
518
+ readonly internalType: "uint256";
519
+ readonly name: "";
520
+ readonly type: "uint256";
521
+ }];
522
+ readonly stateMutability: "view";
523
+ readonly type: "function";
524
+ }];
525
+ readonly functionName: "maxSupplyCap";
526
+ readonly args: readonly [];
527
+ readonly chainId: number;
336
528
  }], true, {
337
529
  getFeeIncreaseInfo: readonly [bigint, bigint, bigint, bigint, bigint] | undefined;
338
530
  minDepositUSD: bigint | undefined;
339
531
  isMemberAllowed: boolean | undefined;
532
+ maxSupplyCapD18: bigint | undefined;
340
533
  }>;
@@ -548,8 +548,8 @@ export declare const usePoolDynamic: ({ address, chainId, refetchInterval, enabl
548
548
  readonly chainId: number;
549
549
  }], true, {
550
550
  tokenPrice: string | undefined;
551
- totalValue: string | undefined;
552
- totalSupply: string | undefined;
551
+ totalValueD18: string | undefined;
552
+ totalSupplyD18: string | undefined;
553
553
  isPrivateVault: boolean | undefined;
554
554
  performanceFee: string | undefined;
555
555
  streamingFee: string | undefined;
@@ -0,0 +1,267 @@
1
+ export declare const useAvailableManagerFee: () => import("wagmi").UseReadContractReturnType<readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "owner";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "address";
8
+ readonly name: "spender";
9
+ readonly type: "address";
10
+ }];
11
+ readonly name: "allowance";
12
+ readonly outputs: readonly [{
13
+ readonly internalType: "uint256";
14
+ readonly name: "";
15
+ readonly type: "uint256";
16
+ }];
17
+ readonly stateMutability: "view";
18
+ readonly type: "function";
19
+ }, {
20
+ readonly inputs: readonly [{
21
+ readonly internalType: "address";
22
+ readonly name: "spender";
23
+ readonly type: "address";
24
+ }, {
25
+ readonly internalType: "uint256";
26
+ readonly name: "amount";
27
+ readonly type: "uint256";
28
+ }];
29
+ readonly name: "approve";
30
+ readonly outputs: readonly [{
31
+ readonly internalType: "bool";
32
+ readonly name: "";
33
+ readonly type: "bool";
34
+ }];
35
+ readonly stateMutability: "nonpayable";
36
+ readonly type: "function";
37
+ }, {
38
+ readonly inputs: readonly [{
39
+ readonly internalType: "address";
40
+ readonly name: "account";
41
+ readonly type: "address";
42
+ }];
43
+ readonly name: "balanceOf";
44
+ readonly outputs: readonly [{
45
+ readonly internalType: "uint256";
46
+ readonly name: "";
47
+ readonly type: "uint256";
48
+ }];
49
+ readonly stateMutability: "view";
50
+ readonly type: "function";
51
+ }, {
52
+ readonly inputs: readonly [{
53
+ readonly internalType: "uint256";
54
+ readonly name: "fundValue";
55
+ readonly type: "uint256";
56
+ }];
57
+ readonly name: "calculateAvailableManagerFee";
58
+ readonly outputs: readonly [{
59
+ readonly internalType: "uint256";
60
+ readonly name: "fee";
61
+ readonly type: "uint256";
62
+ }];
63
+ readonly stateMutability: "view";
64
+ readonly type: "function";
65
+ }, {
66
+ readonly inputs: readonly [];
67
+ readonly name: "decimals";
68
+ readonly outputs: readonly [{
69
+ readonly internalType: "uint8";
70
+ readonly name: "";
71
+ readonly type: "uint8";
72
+ }];
73
+ readonly stateMutability: "view";
74
+ readonly type: "function";
75
+ }, {
76
+ readonly inputs: readonly [{
77
+ readonly internalType: "address";
78
+ readonly name: "_asset";
79
+ readonly type: "address";
80
+ }, {
81
+ readonly internalType: "uint256";
82
+ readonly name: "_amount";
83
+ readonly type: "uint256";
84
+ }];
85
+ readonly name: "deposit";
86
+ readonly outputs: readonly [{
87
+ readonly internalType: "uint256";
88
+ readonly name: "liquidityMinted";
89
+ readonly type: "uint256";
90
+ }];
91
+ readonly stateMutability: "nonpayable";
92
+ readonly type: "function";
93
+ }, {
94
+ readonly inputs: readonly [{
95
+ readonly internalType: "address";
96
+ readonly name: "sender";
97
+ readonly type: "address";
98
+ }];
99
+ readonly name: "getExitRemainingCooldown";
100
+ readonly outputs: readonly [{
101
+ readonly internalType: "uint256";
102
+ readonly name: "remaining";
103
+ readonly type: "uint256";
104
+ }];
105
+ readonly stateMutability: "view";
106
+ readonly type: "function";
107
+ }, {
108
+ readonly inputs: readonly [];
109
+ readonly name: "getFundSummary";
110
+ readonly outputs: readonly [{
111
+ readonly components: readonly [{
112
+ readonly internalType: "string";
113
+ readonly name: "name";
114
+ readonly type: "string";
115
+ }, {
116
+ readonly internalType: "uint256";
117
+ readonly name: "totalSupply";
118
+ readonly type: "uint256";
119
+ }, {
120
+ readonly internalType: "uint256";
121
+ readonly name: "totalFundValue";
122
+ readonly type: "uint256";
123
+ }, {
124
+ readonly internalType: "address";
125
+ readonly name: "manager";
126
+ readonly type: "address";
127
+ }, {
128
+ readonly internalType: "string";
129
+ readonly name: "managerName";
130
+ readonly type: "string";
131
+ }, {
132
+ readonly internalType: "uint256";
133
+ readonly name: "creationTime";
134
+ readonly type: "uint256";
135
+ }, {
136
+ readonly internalType: "bool";
137
+ readonly name: "privatePool";
138
+ readonly type: "bool";
139
+ }, {
140
+ readonly internalType: "uint256";
141
+ readonly name: "performanceFeeNumerator";
142
+ readonly type: "uint256";
143
+ }, {
144
+ readonly internalType: "uint256";
145
+ readonly name: "managerFeeNumerator";
146
+ readonly type: "uint256";
147
+ }, {
148
+ readonly internalType: "uint256";
149
+ readonly name: "managerFeeDenominator";
150
+ readonly type: "uint256";
151
+ }, {
152
+ readonly internalType: "uint256";
153
+ readonly name: "exitFeeNumerator";
154
+ readonly type: "uint256";
155
+ }, {
156
+ readonly internalType: "uint256";
157
+ readonly name: "exitFeeDenominator";
158
+ readonly type: "uint256";
159
+ }, {
160
+ readonly internalType: "uint256";
161
+ readonly name: "entryFeeNumerator";
162
+ readonly type: "uint256";
163
+ }];
164
+ readonly internalType: "struct PoolLogic.FundSummary";
165
+ readonly name: "";
166
+ readonly type: "tuple";
167
+ }];
168
+ readonly stateMutability: "view";
169
+ readonly type: "function";
170
+ }, {
171
+ readonly inputs: readonly [];
172
+ readonly name: "mintManagerFee";
173
+ readonly outputs: readonly [];
174
+ readonly stateMutability: "nonpayable";
175
+ readonly type: "function";
176
+ }, {
177
+ readonly inputs: readonly [];
178
+ readonly name: "name";
179
+ readonly outputs: readonly [{
180
+ readonly internalType: "string";
181
+ readonly name: "";
182
+ readonly type: "string";
183
+ }];
184
+ readonly stateMutability: "view";
185
+ readonly type: "function";
186
+ }, {
187
+ readonly inputs: readonly [];
188
+ readonly name: "poolManagerLogic";
189
+ readonly outputs: readonly [{
190
+ readonly internalType: "address";
191
+ readonly name: "";
192
+ readonly type: "address";
193
+ }];
194
+ readonly stateMutability: "view";
195
+ readonly type: "function";
196
+ }, {
197
+ readonly inputs: readonly [];
198
+ readonly name: "symbol";
199
+ readonly outputs: readonly [{
200
+ readonly internalType: "string";
201
+ readonly name: "";
202
+ readonly type: "string";
203
+ }];
204
+ readonly stateMutability: "view";
205
+ readonly type: "function";
206
+ }, {
207
+ readonly inputs: readonly [];
208
+ readonly name: "tokenPrice";
209
+ readonly outputs: readonly [{
210
+ readonly internalType: "uint256";
211
+ readonly name: "price";
212
+ readonly type: "uint256";
213
+ }];
214
+ readonly stateMutability: "view";
215
+ readonly type: "function";
216
+ }, {
217
+ readonly inputs: readonly [];
218
+ readonly name: "totalSupply";
219
+ readonly outputs: readonly [{
220
+ readonly internalType: "uint256";
221
+ readonly name: "";
222
+ readonly type: "uint256";
223
+ }];
224
+ readonly stateMutability: "view";
225
+ readonly type: "function";
226
+ }, {
227
+ readonly inputs: readonly [{
228
+ readonly internalType: "uint256";
229
+ readonly name: "_fundTokenAmount";
230
+ readonly type: "uint256";
231
+ }, {
232
+ readonly components: readonly [{
233
+ readonly internalType: "address";
234
+ readonly name: "supportedAsset";
235
+ readonly type: "address";
236
+ }, {
237
+ readonly internalType: "bytes";
238
+ readonly name: "withdrawData";
239
+ readonly type: "bytes";
240
+ }, {
241
+ readonly internalType: "uint256";
242
+ readonly name: "slippageTolerance";
243
+ readonly type: "uint256";
244
+ }];
245
+ readonly internalType: "struct IPoolLogic.ComplexAsset[]";
246
+ readonly name: "_complexAssetsData";
247
+ readonly type: "tuple[]";
248
+ }];
249
+ readonly name: "withdrawSafe";
250
+ readonly outputs: readonly [];
251
+ readonly stateMutability: "nonpayable";
252
+ readonly type: "function";
253
+ }, {
254
+ readonly inputs: readonly [{
255
+ readonly internalType: "uint256";
256
+ readonly name: "_fundTokenAmount";
257
+ readonly type: "uint256";
258
+ }, {
259
+ readonly internalType: "uint256";
260
+ readonly name: "_slippageTolerance";
261
+ readonly type: "uint256";
262
+ }];
263
+ readonly name: "withdrawSafe";
264
+ readonly outputs: readonly [];
265
+ readonly stateMutability: "nonpayable";
266
+ readonly type: "function";
267
+ }], "calculateAvailableManagerFee", [bigint], number>;
@@ -3,12 +3,12 @@ import type { ChainId, PoolContractCallParams } from '../../types/web3.types';
3
3
  interface PoolCompositionParams {
4
4
  composition: PoolComposition[];
5
5
  vaultTokensAmount: string;
6
- totalSupply: string;
6
+ totalSupplyD18: string;
7
7
  }
8
8
  type PoolCompositionWithFractionParams = PoolContractCallParams & {
9
9
  vaultTokensAmount: string;
10
10
  chainId: ChainId;
11
11
  };
12
- export declare const formatPoolComposition: ({ composition, vaultTokensAmount, totalSupply, }: PoolCompositionParams) => PoolCompositionWithFraction[];
12
+ export declare const formatPoolComposition: ({ composition, vaultTokensAmount, totalSupplyD18, }: PoolCompositionParams) => PoolCompositionWithFraction[];
13
13
  export declare const usePoolCompositionWithFraction: ({ address, vaultTokensAmount, chainId, }: PoolCompositionWithFractionParams) => PoolCompositionWithFraction[];
14
14
  export {};
@@ -0,0 +1,4 @@
1
+ export declare const useIsMaxSupplyCapReached: () => {
2
+ isMaxSupplyCapReached: boolean;
3
+ supplyCapInUsd: string;
4
+ };
@@ -22,7 +22,6 @@ export interface PoolConfig {
22
22
  maintenanceDeposits?: boolean;
23
23
  maintenanceWithdrawals?: boolean;
24
24
  pricingAsset?: PricingAsset;
25
- onDemandWithdrawalEnabled?: boolean;
26
25
  }
27
26
  export interface PoolFallbackData {
28
27
  address: Address;
@@ -28,7 +28,7 @@ type RemoveTransaction = {
28
28
  } & Partial<PendingTransaction>;
29
29
  export type UpdateTransactionsArguments = AddTransaction | UpdateTransaction | RemoveTransaction;
30
30
  export type TradingPanelType = 'deposit' | 'withdraw';
31
- export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'swap' | 'claim' | 'single_withdraw_and_claim' | 'create_limit_sell_order' | 'limit_order_withdraw' | 'delete_limit_order_withdraw';
31
+ export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'swap' | 'claim' | 'single_withdraw_and_claim' | 'create_limit_sell_order';
32
32
  export type SwapEntity = 'token' | 'pool';
33
33
  export interface TokenSelectorPayload {
34
34
  isOpen: boolean;
@@ -1,6 +1,6 @@
1
1
  import BigNumber from 'bignumber.js';
2
2
  export declare const getPercent: (numerator: number, denominator: number) => number;
3
- export declare const normalizeNumber: (value: string | number | BigNumber, precision?: number) => number;
3
+ export declare const normalizeNumber: (value: string | number | BigNumber | bigint, precision?: number) => number;
4
4
  export declare const getConventionalTokenPriceDecimals: (tokenPrice: number) => number;
5
5
  export declare const shiftBy: (value: bigint | string | number, n?: number) => string;
6
6
  export declare const getPoolFraction: (poolTotalValue: string, amountToSell: string, poolTotalSupply: string, precision?: number) => number;