@dhedge/trading-widget 3.0.0-alpha.1 → 3.0.0-alpha.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 CHANGED
@@ -456,7 +456,6 @@ path: `component.meta[name]`
456
456
  > | `bypassEntryFee` | string | Bypass Entry Fee | |
457
457
  > | `tokenAmountToApprove` | string | Amount of tokens to be approved. | |
458
458
  > | `auto` | string | Auto | |
459
- > | `autoSlippageDescription` | string | App is testing different slippage ranges, starting low and increasing until it's likely to pass | |
460
459
  > | `lengthenLockup` | string | Lengthen lockup to remove entry fee | |
461
460
  > | `deposit` | string | Buy | |
462
461
  > | `withdraw` | string | Sell | |
@@ -502,19 +501,23 @@ path: `component.meta[name]`
502
501
  > | `approveSpending` | string | Approve {symbol} spending | |
503
502
  > | `pay` | string | Pay | |
504
503
  > | `multiAssetFractions` | string | multi asset fractions | |
504
+ > | `swappableAssets` | string | swappable assets | |
505
505
  > | `explorer` | string | Explorer | |
506
506
  > | `as` | string | As | |
507
507
  > | `switchNetwork` | string | Switch Network | |
508
508
  > | `depositAction` | string | Buy | |
509
509
  > | `withdrawAction` | string | Sell | |
510
510
  > | `swapAction` | string | Swap | |
511
+ > | `unrollAction` | string | Unroll | |
511
512
  > | `claimAction` | string | Claim Without Swap | |
512
513
  > | `claimLabel` | string | Claim | |
513
514
  > | `swapOf` | string | Swap of | |
514
515
  > | `to` | string | to | |
516
+ > | `withdrawDescriptionTitle` | string | Withdrawing into {assetSymbol} involves 2 steps: | |
515
517
  > | `initWithdrawDescription` | string | Unroll {vaultSymbol} tokens into multi assets | |
516
518
  > | `initWithdrawTooltip` | string | Convertible tokens are basic ERC20 tokens which can be swapped on any DEXs | |
517
519
  > | `completeWithdrawDescription` | string | Swap multi assets into {assetSymbol} | |
520
+ > | `completeWithdrawTooltip` | string | The swap step can be skipped, and all swappable assets can be claimed directly. | |
518
521
 
519
522
  ###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
520
523
 
@@ -7,3 +7,4 @@ export { useCompleteWithdrawSwapData } from './use-complete-withdraw-swap-data';
7
7
  export { useCompleteWithdrawQuote } from './use-complete-withdraw-quote';
8
8
  export { useHandleCompleteWithdraw } from './use-handle-complete-withdraw';
9
9
  export { useCompleteWithdrawReceiveDiff } from './use-complete-withdraw-receive-diff';
10
+ export { useHasSwappableAssets } from './use-has-swappable-assets';
@@ -0,0 +1 @@
1
+ export declare const useHasSwappableAssets: () => boolean;
@@ -10,7 +10,7 @@ export interface DynamicTradingToken extends TradingToken {
10
10
  }
11
11
  export type TradingModalStatus = 'Success' | 'None' | 'Mining' | 'Wallet';
12
12
  export interface PendingTransaction {
13
- action: 'deposit' | 'withdraw' | 'approve' | 'oraclesUpdate' | 'swap' | 'claim';
13
+ action: TransactionAction;
14
14
  symbol: string;
15
15
  chainId: ChainId;
16
16
  txHash?: Address;
@@ -27,7 +27,7 @@ type RemoveTransaction = {
27
27
  } & Partial<PendingTransaction>;
28
28
  export type UpdateTransactionsArguments = AddTransaction | UpdateTransaction | RemoveTransaction;
29
29
  export type TradingPanelType = 'deposit' | 'withdraw';
30
- export type TransactionAction = 'deposit' | 'withdraw' | 'approve' | 'oraclesUpdate' | 'swap' | 'claim';
30
+ export type TransactionAction = 'deposit' | 'multi_withdraw' | 'single_withdraw' | 'approve' | 'oraclesUpdate' | 'swap' | 'claim';
31
31
  export type SwapEntity = 'token' | 'pool';
32
32
  export interface TokenSelectorPayload {
33
33
  isOpen: boolean;