@dhedge/trading-widget 3.0.0-alpha.2 → 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 +2 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/index.d.ts +1 -0
- package/core-kit/hooks/trading/withdraw-v2/complete-step/use-has-swappable-assets.d.ts +1 -0
- package/core-kit/types/trading-panel.types.d.ts +2 -2
- package/{index-7f343925.js → index-57a6eab2.js} +5574 -5569
- package/index-a45591cd.cjs +207 -0
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{pyth-adapter-60edb1a6.js → pyth-adapter-25487a87.js} +1 -1
- package/{pyth-adapter-470b96e5.cjs → pyth-adapter-ef6a3a0d.cjs} +1 -1
- package/style.css +1 -1
- package/trading-widget/components/common/button/action-button/action-button.d.ts +1 -2
- package/trading-widget/components/common/index.d.ts +1 -0
- package/trading-widget/components/withdraw/complete-step/balance/complete-withdraw-balance.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.d.ts +3 -0
- package/trading-widget/components/withdraw/complete-step/{balance → button/claim-button}/claim-button.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/complete-step/complete-step.hooks.d.ts +3 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +2 -0
- package/index-31666c6d.cjs +0 -207
- package/trading-widget/components/withdraw/complete-step/balance/claim-button.d.ts +0 -2
package/README.md
CHANGED
|
@@ -501,6 +501,7 @@ path: `component.meta[name]`
|
|
|
501
501
|
> | `approveSpending` | string | Approve {symbol} spending | |
|
|
502
502
|
> | `pay` | string | Pay | |
|
|
503
503
|
> | `multiAssetFractions` | string | multi asset fractions | |
|
|
504
|
+
> | `swappableAssets` | string | swappable assets | |
|
|
504
505
|
> | `explorer` | string | Explorer | |
|
|
505
506
|
> | `as` | string | As | |
|
|
506
507
|
> | `switchNetwork` | string | Switch Network | |
|
|
@@ -512,6 +513,7 @@ path: `component.meta[name]`
|
|
|
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} | |
|
|
@@ -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:
|
|
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' | '
|
|
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;
|