@dhedge/trading-widget 3.0.0-alpha.2 → 3.0.0-alpha.4
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 +3 -2
- 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-9fbabd1e.js} +7142 -7146
- package/index-aca26249.cjs +207 -0
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{pyth-adapter-470b96e5.cjs → pyth-adapter-5451669c.cjs} +1 -1
- package/{pyth-adapter-60edb1a6.js → pyth-adapter-f527b1bb.js} +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/widget/widget-input/token-selector/token-selector.hooks.d.ts +2 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/swap-summary.d.ts +0 -1
- 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/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +3 -2
- 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 | |
|
|
@@ -510,8 +511,8 @@ path: `component.meta[name]`
|
|
|
510
511
|
> | `unrollAction` | string | Unroll | |
|
|
511
512
|
> | `claimAction` | string | Claim Without Swap | |
|
|
512
513
|
> | `claimLabel` | string | Claim | |
|
|
513
|
-
> | `
|
|
514
|
-
> | `
|
|
514
|
+
> | `swapAndClaimTo` | string | Swap and claim assets to | |
|
|
515
|
+
> | `withdrawDescriptionTitle` | string | Withdrawing into {assetSymbol} involves 2 steps: | |
|
|
515
516
|
> | `initWithdrawDescription` | string | Unroll {vaultSymbol} tokens into multi assets | |
|
|
516
517
|
> | `initWithdrawTooltip` | string | Convertible tokens are basic ERC20 tokens which can be swapped on any DEXs | |
|
|
517
518
|
> | `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;
|