@orderly.network/ui-transfer 2.7.3-alpha.0 → 2.7.4-alpha.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.
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +41 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -147,7 +147,7 @@ declare const useDepositFormScript: (options: DepositFormScriptOptions) => {
|
|
|
147
147
|
symbol: string | undefined;
|
|
148
148
|
}[];
|
|
149
149
|
};
|
|
150
|
-
warningMessage: string
|
|
150
|
+
warningMessage: string;
|
|
151
151
|
targetQuantity: string;
|
|
152
152
|
targetQuantityLoading: boolean;
|
|
153
153
|
};
|
|
@@ -175,7 +175,7 @@ type WithdrawFormScriptOptions = {
|
|
|
175
175
|
declare const useWithdrawFormScript: (options: WithdrawFormScriptOptions) => {
|
|
176
176
|
currentLTV: number;
|
|
177
177
|
nextLTV: number;
|
|
178
|
-
|
|
178
|
+
warningMessage: string | undefined;
|
|
179
179
|
withdrawTo: WithdrawTo;
|
|
180
180
|
setWithdrawTo: react.Dispatch<react.SetStateAction<WithdrawTo>>;
|
|
181
181
|
toAccountId: string;
|
|
@@ -385,6 +385,7 @@ declare const getTokenByTokenList: (tokens?: API.TokenInfo[]) => API.TokenInfo;
|
|
|
385
385
|
declare const feeDecimalsOffset: (origin?: number) => number;
|
|
386
386
|
declare function checkIsAccountId(accountId: string): boolean;
|
|
387
387
|
declare function getTransferErrorMessage(errorCode: number): string;
|
|
388
|
+
declare function getDepositKnownErrorMessage(message: string): string | undefined;
|
|
388
389
|
|
|
389
390
|
type ChainSelectProps = {
|
|
390
391
|
chains: API.NetworkInfos[];
|
|
@@ -475,4 +476,4 @@ declare const DepositStatus: react__default.FC<DepositStatusProps>;
|
|
|
475
476
|
type DepositStatusWidgetProps = Pick<DepositStatusProps, "className" | "onClick">;
|
|
476
477
|
declare const DepositStatusWidget: react__default.FC<DepositStatusWidgetProps>;
|
|
477
478
|
|
|
478
|
-
export { ActionButton, AvailableQuantity, BrokerWallet, ChainSelect, type ConvertFormProps, ConvertFormUI, ConvertFormWidget, type CurrentChain, type DST, DepositAction, DepositAndWithdraw, type DepositAndWithdrawProps, DepositAndWithdrawWithDialogId, DepositAndWithdrawWithSheetId, DepositForm, type DepositFormScriptOptions, DepositFormWidget, type DepositFormWidgetProps, DepositStatus, DepositStatusWidget, ExchangeDivider, Fee, type InputStatus, QuantityInput, SwapCoin, SwapDepositForm, SwapDepositFormWidget, TransferDialogId, TransferForm, TransferFormWidget, type TransferFormWidgetProps, TransferSheetId, TransferWidget, Web3Wallet, WithdrawForm, type WithdrawFormScriptOptions, WithdrawFormWidget, type WithdrawFormWidgetProps, WithdrawTo, checkIsAccountId, feeDecimalsOffset, getTokenByTokenList, getTransferErrorMessage, useActionType, useChainSelect, useConvertFormScript as useConvertForm, useDepositAction, useDepositFormScript, useDepositStatusScript, useInputStatus, useSwapDepositFormScript, useTransferFormScript, useWithdrawFormScript };
|
|
479
|
+
export { ActionButton, AvailableQuantity, BrokerWallet, ChainSelect, type ConvertFormProps, ConvertFormUI, ConvertFormWidget, type CurrentChain, type DST, DepositAction, DepositAndWithdraw, type DepositAndWithdrawProps, DepositAndWithdrawWithDialogId, DepositAndWithdrawWithSheetId, DepositForm, type DepositFormScriptOptions, DepositFormWidget, type DepositFormWidgetProps, DepositStatus, DepositStatusWidget, ExchangeDivider, Fee, type InputStatus, QuantityInput, SwapCoin, SwapDepositForm, SwapDepositFormWidget, TransferDialogId, TransferForm, TransferFormWidget, type TransferFormWidgetProps, TransferSheetId, TransferWidget, Web3Wallet, WithdrawForm, type WithdrawFormScriptOptions, WithdrawFormWidget, type WithdrawFormWidgetProps, WithdrawTo, checkIsAccountId, feeDecimalsOffset, getDepositKnownErrorMessage, getTokenByTokenList, getTransferErrorMessage, useActionType, useChainSelect, useConvertFormScript as useConvertForm, useDepositAction, useDepositFormScript, useDepositStatusScript, useInputStatus, useSwapDepositFormScript, useTransferFormScript, useWithdrawFormScript };
|
package/dist/index.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ declare const useDepositFormScript: (options: DepositFormScriptOptions) => {
|
|
|
147
147
|
symbol: string | undefined;
|
|
148
148
|
}[];
|
|
149
149
|
};
|
|
150
|
-
warningMessage: string
|
|
150
|
+
warningMessage: string;
|
|
151
151
|
targetQuantity: string;
|
|
152
152
|
targetQuantityLoading: boolean;
|
|
153
153
|
};
|
|
@@ -175,7 +175,7 @@ type WithdrawFormScriptOptions = {
|
|
|
175
175
|
declare const useWithdrawFormScript: (options: WithdrawFormScriptOptions) => {
|
|
176
176
|
currentLTV: number;
|
|
177
177
|
nextLTV: number;
|
|
178
|
-
|
|
178
|
+
warningMessage: string | undefined;
|
|
179
179
|
withdrawTo: WithdrawTo;
|
|
180
180
|
setWithdrawTo: react.Dispatch<react.SetStateAction<WithdrawTo>>;
|
|
181
181
|
toAccountId: string;
|
|
@@ -385,6 +385,7 @@ declare const getTokenByTokenList: (tokens?: API.TokenInfo[]) => API.TokenInfo;
|
|
|
385
385
|
declare const feeDecimalsOffset: (origin?: number) => number;
|
|
386
386
|
declare function checkIsAccountId(accountId: string): boolean;
|
|
387
387
|
declare function getTransferErrorMessage(errorCode: number): string;
|
|
388
|
+
declare function getDepositKnownErrorMessage(message: string): string | undefined;
|
|
388
389
|
|
|
389
390
|
type ChainSelectProps = {
|
|
390
391
|
chains: API.NetworkInfos[];
|
|
@@ -475,4 +476,4 @@ declare const DepositStatus: react__default.FC<DepositStatusProps>;
|
|
|
475
476
|
type DepositStatusWidgetProps = Pick<DepositStatusProps, "className" | "onClick">;
|
|
476
477
|
declare const DepositStatusWidget: react__default.FC<DepositStatusWidgetProps>;
|
|
477
478
|
|
|
478
|
-
export { ActionButton, AvailableQuantity, BrokerWallet, ChainSelect, type ConvertFormProps, ConvertFormUI, ConvertFormWidget, type CurrentChain, type DST, DepositAction, DepositAndWithdraw, type DepositAndWithdrawProps, DepositAndWithdrawWithDialogId, DepositAndWithdrawWithSheetId, DepositForm, type DepositFormScriptOptions, DepositFormWidget, type DepositFormWidgetProps, DepositStatus, DepositStatusWidget, ExchangeDivider, Fee, type InputStatus, QuantityInput, SwapCoin, SwapDepositForm, SwapDepositFormWidget, TransferDialogId, TransferForm, TransferFormWidget, type TransferFormWidgetProps, TransferSheetId, TransferWidget, Web3Wallet, WithdrawForm, type WithdrawFormScriptOptions, WithdrawFormWidget, type WithdrawFormWidgetProps, WithdrawTo, checkIsAccountId, feeDecimalsOffset, getTokenByTokenList, getTransferErrorMessage, useActionType, useChainSelect, useConvertFormScript as useConvertForm, useDepositAction, useDepositFormScript, useDepositStatusScript, useInputStatus, useSwapDepositFormScript, useTransferFormScript, useWithdrawFormScript };
|
|
479
|
+
export { ActionButton, AvailableQuantity, BrokerWallet, ChainSelect, type ConvertFormProps, ConvertFormUI, ConvertFormWidget, type CurrentChain, type DST, DepositAction, DepositAndWithdraw, type DepositAndWithdrawProps, DepositAndWithdrawWithDialogId, DepositAndWithdrawWithSheetId, DepositForm, type DepositFormScriptOptions, DepositFormWidget, type DepositFormWidgetProps, DepositStatus, DepositStatusWidget, ExchangeDivider, Fee, type InputStatus, QuantityInput, SwapCoin, SwapDepositForm, SwapDepositFormWidget, TransferDialogId, TransferForm, TransferFormWidget, type TransferFormWidgetProps, TransferSheetId, TransferWidget, Web3Wallet, WithdrawForm, type WithdrawFormScriptOptions, WithdrawFormWidget, type WithdrawFormWidgetProps, WithdrawTo, checkIsAccountId, feeDecimalsOffset, getDepositKnownErrorMessage, getTokenByTokenList, getTransferErrorMessage, useActionType, useChainSelect, useConvertFormScript as useConvertForm, useDepositAction, useDepositFormScript, useDepositStatusScript, useInputStatus, useSwapDepositFormScript, useTransferFormScript, useWithdrawFormScript };
|