@dhedge/trading-widget 3.18.1 → 3.18.3
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 +125 -99
- package/core-kit/const/logger.d.ts +6 -0
- package/core-kit/hooks/trading/index.d.ts +1 -0
- package/core-kit/hooks/trading/use-is-batch-contract-writes-trading.d.ts +1 -0
- package/core-kit/types/config.types.d.ts +6 -0
- package/core-kit/types/trading-panel.types.d.ts +1 -1
- package/index.cjs +58 -58
- package/index.d.ts +1 -1
- package/index.js +17155 -16858
- package/limit-orders/component/common/percentage-input.d.ts +18 -0
- package/limit-orders/component/input-group/input-group.hooks.d.ts +5 -0
- package/limit-orders/component/limit-order-button/limit-order-approve-button.hooks.d.ts +1 -0
- package/limit-orders/component/limit-order-button/limit-order-button.hooks.d.ts +1 -0
- package/limit-orders/component/limit-order-content.d.ts +7 -0
- package/limit-orders/component/limit-order-overlay.d.ts +11 -0
- package/limit-orders/constants.d.ts +1 -0
- package/limit-orders/hooks/use-existing-limit-order-default-prices.d.ts +11 -0
- package/limit-orders/hooks/use-limit-order-covered-vault-amount.d.ts +5 -0
- package/limit-orders/hooks/use-on-limit-order-settled.d.ts +2 -2
- package/limit-orders/providers/state-provider/reducer.d.ts +1 -0
- package/limit-orders/providers/state-provider/state-provider.types.d.ts +16 -4
- package/limit-orders/providers/theme-provider/theme-provider.types.d.ts +1 -0
- package/limit-orders/providers/translation-provider/translation-provider.types.d.ts +3 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +1 -1
- package/trading-widget/components/widget/widget-input/widget-input.hooks.d.ts +2 -1
- package/trading-widget/components/widget/widget-overlay/error-notification-overlay/error-notification-overlay.d.ts +3 -0
- package/trading-widget/components/widget/widget-overlay/{notification-overlay/notification-overlay.hooks.d.ts → error-notification-overlay/error-notification-overlay.hooks.d.ts} +1 -1
- package/trading-widget/components/widget/widget-overlay/index.d.ts +2 -1
- package/trading-widget/components/widget/widget-overlay/{notification-overlay/notification-overlay.d.ts → limit-sells-overlay/limit-sells-overlay.d.ts} +1 -1
- package/trading-widget/components/widget/widget-overlay/limit-sells-overlay/limit-sells-overlay.hooks.d.ts +12 -0
- package/trading-widget/components/widget/widget-overlay/pool-select-overlay/pool-select-overlay.hooks.d.ts +2 -0
- package/trading-widget/hooks/index.d.ts +1 -0
- package/trading-widget/hooks/use-open-limit-sells-overlay.d.ts +1 -0
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +3 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +2 -0
- package/trading-widget/types/overlay.types.d.ts +2 -1
package/README.md
CHANGED
|
@@ -100,6 +100,28 @@ Top level provider component. Headless part of trading logic. API handles params
|
|
|
100
100
|
|
|
101
101
|
</details>
|
|
102
102
|
|
|
103
|
+
<details>
|
|
104
|
+
<summary><code>PoolConfig</code> <code><b>/</b></code> <code>Vault configuration schema</code></summary>
|
|
105
|
+
|
|
106
|
+
> | name | type | default value | description |
|
|
107
|
+
> | ------------------------------------------- | -------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
108
|
+
> | `address` | `Address` | — | Vault contract address |
|
|
109
|
+
> | `symbol` | `string` | — | Vault token symbol |
|
|
110
|
+
> | `chainId` | `ChainId` | — | Chain identifier where the vault lives |
|
|
111
|
+
> | `depositParams.customTokens` | `TradingToken[]` | `[]` | List of additional assets accepted for deposits |
|
|
112
|
+
> | `depositParams.defaultDepositTokenSymbol` | `string` | `undefined` | Symbol of token to pre-select by default when switching to the **Deposit** tab |
|
|
113
|
+
> | `withdrawParams.customTokens` | `TradingToken[]` | `[]` | List of single-asset options available for withdrawals |
|
|
114
|
+
> | `withdrawParams.defaultWithdrawTokenSymbol` | `string` | `undefined` | Symbol of token to pre-select by default when switching to the **Withdraw** tab (falls back to first `customTokens` item if undefined). |
|
|
115
|
+
> | `deprecated` | `boolean` | `false` | Marks vault as deprecated and blocks trading operations |
|
|
116
|
+
> | `maintenance` | `boolean` | `false` | Enables global vault maintenance mode (blocks deposits & withdrawals) |
|
|
117
|
+
> | `maintenanceDeposits` | `boolean` | `false` | Blocks only deposits |
|
|
118
|
+
> | `maintenanceWithdrawals` | `boolean` | `false` | Blocks only withdrawals |
|
|
119
|
+
> | `pricingAsset` | `{ address: Address; symbol: string }` | `undefined` | Pricing asset used for limit orders |
|
|
120
|
+
|
|
121
|
+
###### Source: `packages/trading-widget/src/core-kit/types/config.types.ts`
|
|
122
|
+
|
|
123
|
+
</details>
|
|
124
|
+
|
|
103
125
|
### TradingWidget
|
|
104
126
|
|
|
105
127
|
UI configuration provider. Manages params to configure custom styling, components, translations and basic trading params. Decomposed into `config`, `components`, `theme` and `translation` params. See below for more details
|
|
@@ -130,6 +152,8 @@ UI configuration provider. Manages params to configure custom styling, component
|
|
|
130
152
|
> | `chainConfig` | `Partial<Record<ChainId, { name: string; iconPath: string }>>` | `{}` | Sets map of chain `name` and `iconPath` |
|
|
131
153
|
> | `aaveOffchainWithdrawMinValue` | `number` | `50` | Value in USD when off-chain Aave withdrawal is enabled |
|
|
132
154
|
> | `getFallbackIconPath` | `(tokenName: string) => string` | `buildIconLink` | Fallback token icon path getter |
|
|
155
|
+
> | `minLimitOrderValue` | `number` | `0` | Minimum USD value required to create a limit sell order |
|
|
156
|
+
> | `limitOrderThemeConfig` | `ThemeProviderConfigProps` | `{}` | Limit sell overlay content theme config |
|
|
133
157
|
|
|
134
158
|
##### actions
|
|
135
159
|
|
|
@@ -451,105 +475,107 @@ path: `component.meta[name]`
|
|
|
451
475
|
<code>Translation keys</code>
|
|
452
476
|
</summary>|
|
|
453
477
|
|
|
454
|
-
> | name
|
|
455
|
-
> |
|
|
456
|
-
> | `depositSlippageWarning`
|
|
457
|
-
> | `withdrawSlippageWarning`
|
|
458
|
-
> | `minSlippageWarning`
|
|
459
|
-
> | `highSlippageWarning`
|
|
460
|
-
> | `recommendedMinSlippage`
|
|
461
|
-
> | `projectedDailyEarningsTooltip`
|
|
462
|
-
> | `dailyEarnings`
|
|
463
|
-
> | `projectedYearlyEarningsTooltip`
|
|
464
|
-
> | `yearlyEarnings`
|
|
465
|
-
> | `fullReceiveDetails`
|
|
466
|
-
> | `tradeDetails`
|
|
467
|
-
> | `maxSlippage`
|
|
468
|
-
> | `minReceiveAmount`
|
|
469
|
-
> | `minReceived`
|
|
470
|
-
> | `estimatedMultiAssetFractions`
|
|
471
|
-
> | `infinite`
|
|
472
|
-
> | `tokenAllowance`
|
|
473
|
-
> | `entryFee`
|
|
474
|
-
> | `entryFeeExplanation`
|
|
475
|
-
> | `minDepositUsd`
|
|
476
|
-
> | `minDeposit`
|
|
477
|
-
> | `tokensLockTime`
|
|
478
|
-
> | `slippageTolerance`
|
|
479
|
-
> | `bypassEntryFee`
|
|
480
|
-
> | `tokenAmountToApprove`
|
|
481
|
-
> | `auto`
|
|
482
|
-
> | `lengthenLockup`
|
|
483
|
-
> | `deposit`
|
|
484
|
-
> | `withdraw`
|
|
485
|
-
> | `yourBalance`
|
|
486
|
-
> | `max`
|
|
487
|
-
> | `allAssets`
|
|
488
|
-
> | `all`
|
|
489
|
-
> | `payWith`
|
|
490
|
-
> | `buyEstimated`
|
|
491
|
-
> | `sell`
|
|
492
|
-
> | `receiveEstimated`
|
|
493
|
-
> | `confirmInWallet`
|
|
494
|
-
> | `pending`
|
|
495
|
-
> | `approve`
|
|
496
|
-
> | `connectWallet`
|
|
497
|
-
> | `minimumPurchase`
|
|
498
|
-
> | `poolIsInactive`
|
|
499
|
-
> | `poolDepositsAreMaintenance`
|
|
500
|
-
> | `poolWithdrawalsAreMaintenance`
|
|
501
|
-
> | `poolIsPrivate`
|
|
502
|
-
> | `confirmMaxSlippage`
|
|
503
|
-
> | `withdrawalLiquidityDisabled`
|
|
504
|
-
> | `withdrawCooldown`
|
|
505
|
-
> | `termsOfUse`
|
|
506
|
-
> | `termOfUseDepositListTitle`
|
|
507
|
-
> | `termOfUseDepositAssetSlippage`
|
|
508
|
-
> | `termOfUseDepositBugs`
|
|
509
|
-
> | `termOfUseDepositDowntime`
|
|
510
|
-
> | `termOfUseDepositAuditRisk`
|
|
511
|
-
> | `termOfUseDepositAccept`
|
|
512
|
-
> | `back`
|
|
513
|
-
> | `highSlippage`
|
|
514
|
-
> | `responsibleHighSlippage`
|
|
515
|
-
> | `highSlippageListTitle`
|
|
516
|
-
> | `highSlippageQuoteDiff`
|
|
517
|
-
> | `highSlippageRisk`
|
|
518
|
-
> | `confirm`
|
|
519
|
-
> | `selectToken`
|
|
520
|
-
> | `sendingOrderToWallet`
|
|
521
|
-
> | `settingUpTx`
|
|
522
|
-
> | `miningTx`
|
|
523
|
-
> | `approveSpending`
|
|
524
|
-
> | `pay`
|
|
525
|
-
> | `multiAssetFractions`
|
|
526
|
-
> | `swappableAssets`
|
|
527
|
-
> | `explorer`
|
|
528
|
-
> | `as`
|
|
529
|
-
> | `switchNetwork`
|
|
530
|
-
> | `depositAction`
|
|
531
|
-
> | `withdrawAction`
|
|
532
|
-
> | `swapAction`
|
|
533
|
-
> | `unrollAction`
|
|
534
|
-
> | `unrollAndClaimAction`
|
|
535
|
-
> | `claimAction`
|
|
536
|
-
> | `claimLabel`
|
|
537
|
-
> | `
|
|
538
|
-
> | `
|
|
539
|
-
> | `
|
|
540
|
-
> | `
|
|
541
|
-
> | `
|
|
542
|
-
> | `
|
|
543
|
-
> | `
|
|
544
|
-
> | `
|
|
545
|
-
> | `
|
|
546
|
-
> | `
|
|
547
|
-
> | `
|
|
548
|
-
> | `
|
|
549
|
-
> | `
|
|
550
|
-
> | `
|
|
551
|
-
> | `
|
|
552
|
-
> | `
|
|
478
|
+
> | name | type | default value | description |
|
|
479
|
+
> | ----------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
480
|
+
> | `depositSlippageWarning` | string | Excludes entry fee. | |
|
|
481
|
+
> | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
|
|
482
|
+
> | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
|
|
483
|
+
> | `highSlippageWarning` | string | We recommend using another asset to trade with lower slippage. | |
|
|
484
|
+
> | `recommendedMinSlippage` | string | Recommended Min Slippage | |
|
|
485
|
+
> | `projectedDailyEarningsTooltip` | string | Projected daily earnings are based on the current APY and may differ from actual earnings. | |
|
|
486
|
+
> | `dailyEarnings` | string | Daily Earnings | |
|
|
487
|
+
> | `projectedYearlyEarningsTooltip` | string | Projected yearly earnings are based on the current APY and may differ from actual earnings. | |
|
|
488
|
+
> | `yearlyEarnings` | string | Yearly Earnings | |
|
|
489
|
+
> | `fullReceiveDetails` | string | See full details influencing what you will receive. | |
|
|
490
|
+
> | `tradeDetails` | string | Trade details | |
|
|
491
|
+
> | `maxSlippage` | string | Max slippage | |
|
|
492
|
+
> | `minReceiveAmount` | string | You will receive no less than this amount. | |
|
|
493
|
+
> | `minReceived` | string | Minimum Received | |
|
|
494
|
+
> | `estimatedMultiAssetFractions` | string | Estimated multi asset fractions | |
|
|
495
|
+
> | `infinite` | string | Infinite | |
|
|
496
|
+
> | `tokenAllowance` | string | Token Allowance | |
|
|
497
|
+
> | `entryFee` | string | Entry Fee | |
|
|
498
|
+
> | `entryFeeExplanation` | string | When you deposit, the token takes a small entry fee. This fee helps cover the costs when we rebalance the underlying funds, and it's shared among all token holders. | |
|
|
499
|
+
> | `minDepositUsd` | string | Minimum deposit in USD. | |
|
|
500
|
+
> | `minDeposit` | string | Minimum Deposit | |
|
|
501
|
+
> | `tokensLockTime` | string | Purchased tokens will have a {lockTime} lock. | |
|
|
502
|
+
> | `slippageTolerance` | string | Slippage tolerance | |
|
|
503
|
+
> | `bypassEntryFee` | string | Bypass Entry Fee | |
|
|
504
|
+
> | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
|
|
505
|
+
> | `auto` | string | Auto | |
|
|
506
|
+
> | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
|
|
507
|
+
> | `deposit` | string | Buy | |
|
|
508
|
+
> | `withdraw` | string | Sell | |
|
|
509
|
+
> | `yourBalance` | string | Your Balance | |
|
|
510
|
+
> | `max` | string | Max | |
|
|
511
|
+
> | `allAssets` | string | All Assets | |
|
|
512
|
+
> | `all` | string | All | |
|
|
513
|
+
> | `payWith` | string | Pay with | |
|
|
514
|
+
> | `buyEstimated` | string | Buy (estimated) | |
|
|
515
|
+
> | `sell` | string | Sell | |
|
|
516
|
+
> | `receiveEstimated` | string | Receive (estimated) | |
|
|
517
|
+
> | `confirmInWallet` | string | Please confirm in wallet | |
|
|
518
|
+
> | `pending` | string | Pending... | |
|
|
519
|
+
> | `approve` | string | Approve | |
|
|
520
|
+
> | `connectWallet` | string | Connect Wallet | |
|
|
521
|
+
> | `minimumPurchase` | string | Minimum purchase is {value} | |
|
|
522
|
+
> | `poolIsInactive` | string | {poolSymbol} token is no longer active. Please withdraw from them. | |
|
|
523
|
+
> | `poolDepositsAreMaintenance` | string | {poolSymbol} token is under maintenance. Deposits are temporarily blocked. | |
|
|
524
|
+
> | `poolWithdrawalsAreMaintenance` | string | {poolSymbol} token is under maintenance. Withdrawals are temporarily blocked. | |
|
|
525
|
+
> | `poolIsPrivate` | string | This vault is currently private | |
|
|
526
|
+
> | `confirmMaxSlippage` | string | Confirm {slippagePercentage}% max slippage | |
|
|
527
|
+
> | `withdrawalLiquidityDisabled` | string | Intended withdraw value is greater than available liquidity ({value}) | |
|
|
528
|
+
> | `withdrawCooldown` | string | You can sell your {tokenSymbol} tokens in {cooldownEndTime} | |
|
|
529
|
+
> | `termsOfUse` | string | Terms Of Use | |
|
|
530
|
+
> | `termOfUseDepositListTitle` | string | Please know the following before depositing | |
|
|
531
|
+
> | `termOfUseDepositAssetSlippage` | string | When exiting, investors receive single asset or the underlying vault assets. Withdraw slippage can be customized in withdraw settings | |
|
|
532
|
+
> | `termOfUseDepositBugs` | string | There may be interface bugs on the platform | |
|
|
533
|
+
> | `termOfUseDepositDowntime` | string | There may be interface downtime (planned and unplanned) | |
|
|
534
|
+
> | `termOfUseDepositAuditRisk` | string | Smart contracts are audited but a risk is still present | |
|
|
535
|
+
> | `termOfUseDepositAccept` | string | Accept & Deposit | |
|
|
536
|
+
> | `back` | string | Back | |
|
|
537
|
+
> | `highSlippage` | string | High Slippage Alert | |
|
|
538
|
+
> | `responsibleHighSlippage` | string | By proceeding with this trade, you acknowledge and accept the possibility of experiencing high slippage, resulting in a potential difference between the expected and executed price. | |
|
|
539
|
+
> | `highSlippageListTitle` | string | Please consider the following before confirming | |
|
|
540
|
+
> | `highSlippageQuoteDiff` | string | Be aware that the final amount of assets you receive may be different from the initially quoted value. | |
|
|
541
|
+
> | `highSlippageRisk` | string | Ensure that you understand the risks associated with high slippage and are comfortable proceeding with the trade. | |
|
|
542
|
+
> | `confirm` | string | Confirm | |
|
|
543
|
+
> | `selectToken` | string | Select Token | |
|
|
544
|
+
> | `sendingOrderToWallet` | string | Sending order to your wallet | |
|
|
545
|
+
> | `settingUpTx` | string | Setting up transaction | |
|
|
546
|
+
> | `miningTx` | string | Processing | |
|
|
547
|
+
> | `approveSpending` | string | Approve {symbol} spending | |
|
|
548
|
+
> | `pay` | string | Pay | |
|
|
549
|
+
> | `multiAssetFractions` | string | multi asset fractions | |
|
|
550
|
+
> | `swappableAssets` | string | swappable assets | |
|
|
551
|
+
> | `explorer` | string | Explorer | |
|
|
552
|
+
> | `as` | string | As | |
|
|
553
|
+
> | `switchNetwork` | string | Switch Network | |
|
|
554
|
+
> | `depositAction` | string | Buy | |
|
|
555
|
+
> | `withdrawAction` | string | Sell | |
|
|
556
|
+
> | `swapAction` | string | Swap | |
|
|
557
|
+
> | `unrollAction` | string | Unroll | |
|
|
558
|
+
> | `unrollAndClaimAction` | string | Claim | |
|
|
559
|
+
> | `claimAction` | string | Claim Without Swap | |
|
|
560
|
+
> | `claimLabel` | string | Claim Assets | |
|
|
561
|
+
> | `createLimitSellOrder` | string | Create limit sell order | |
|
|
562
|
+
> | `swapAndClaimTo` | string | Swap and claim assets to | |
|
|
563
|
+
> | `initWithdrawDescription` | string | Unroll | |
|
|
564
|
+
> | `initWithdrawTooltip` | string | Unroll prepares assets for single asset withdrawal | |
|
|
565
|
+
> | `completeWithdrawDescription` | string | Claim | |
|
|
566
|
+
> | `completeWithdrawTooltip` | string | This final step swaps all assets to a single asset and sends it to your wallet | |
|
|
567
|
+
> | `unrollAndClaimDescription` | string | Claim | |
|
|
568
|
+
> | `total` | string | Total: | |
|
|
569
|
+
> | `showAll` | string | Show All | |
|
|
570
|
+
> | `hide` | string | Hide | |
|
|
571
|
+
> | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
|
|
572
|
+
> | `proceedWithNextStep` | string | Please proceed with the next step. | |
|
|
573
|
+
> | `aggregatorsLabel` | string | Swap source | |
|
|
574
|
+
> | `aggregatorsTooltip` | string | Choose which aggregators to use for your trades. | |
|
|
575
|
+
> | `batchTransactionsLabel` | string | Batch transactions | |
|
|
576
|
+
> | `batchTransactionsSwitchLabel` | string | Batch | |
|
|
577
|
+
> | `batchTransactionsTooltip` | string | Group approve and trade calls into a single batch transaction. Disable if you prefer separate prompts. | |
|
|
578
|
+
> | `openLimitOrderAfterBuySwitchLabel` | string | Add limit sell | |
|
|
553
579
|
|
|
554
580
|
###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
|
|
555
581
|
|
|
@@ -11,6 +11,8 @@ export declare const TRADING_PANEL_LOG_EVENT: {
|
|
|
11
11
|
WITHDRAWAL: string;
|
|
12
12
|
TRADING_SETTINGS_OPENED: string;
|
|
13
13
|
INFINITE_ALLOWANCE_CHANGE: string;
|
|
14
|
+
BATCH_TRANSACTIONS_CHANGE: string;
|
|
15
|
+
CREATE_LIMIT_SELL_ORDER: string;
|
|
14
16
|
};
|
|
15
17
|
export declare const LOG_EVENT_BY_TRANSACTION_ACTION_MAP: Record<TransactionAction, string[]>;
|
|
16
18
|
/**
|
|
@@ -36,4 +38,8 @@ export declare const TRADING_LOG_EVENT_PARAM: {
|
|
|
36
38
|
NAME: string;
|
|
37
39
|
TYPE: string;
|
|
38
40
|
};
|
|
41
|
+
IS_BATCH_TRANSACTIONS_ENABLED: {
|
|
42
|
+
NAME: string;
|
|
43
|
+
TYPE: string;
|
|
44
|
+
};
|
|
39
45
|
};
|
|
@@ -10,3 +10,4 @@ export { useProjectedEarningsCore } from './projected-earnings/use-projected-ear
|
|
|
10
10
|
export { useSwapDataQuery } from './use-swap-data-query';
|
|
11
11
|
export { useSendTokenDebouncedValue } from './use-send-token-debounced-value';
|
|
12
12
|
export { useEasySwapperTrackedAssets } from './use-easy-swapper-tracked-assets';
|
|
13
|
+
export { useIsBatchContractWritesTrading } from './use-is-batch-contract-writes-trading';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsBatchContractWritesTrading: () => boolean;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { PoolComposition } from 'core-kit/types/pool.types';
|
|
2
2
|
import type { ApyCurrency, TradingToken } from 'core-kit/types/trading-panel.types';
|
|
3
3
|
import type { Address, ChainId } from 'core-kit/types/web3.types';
|
|
4
|
+
export type PricingAsset = {
|
|
5
|
+
address: Address;
|
|
6
|
+
symbol: string;
|
|
7
|
+
};
|
|
4
8
|
export interface PoolConfig {
|
|
5
9
|
address: Address;
|
|
6
10
|
symbol: string;
|
|
@@ -11,11 +15,13 @@ export interface PoolConfig {
|
|
|
11
15
|
};
|
|
12
16
|
withdrawParams: {
|
|
13
17
|
customTokens: TradingToken[];
|
|
18
|
+
defaultWithdrawTokenSymbol?: string;
|
|
14
19
|
};
|
|
15
20
|
deprecated?: boolean;
|
|
16
21
|
maintenance?: boolean;
|
|
17
22
|
maintenanceDeposits?: boolean;
|
|
18
23
|
maintenanceWithdrawals?: boolean;
|
|
24
|
+
pricingAsset?: PricingAsset;
|
|
19
25
|
}
|
|
20
26
|
export interface PoolFallbackData {
|
|
21
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';
|
|
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;
|