@dodoex/widgets 3.16.0 → 3.18.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/219f8611c6c9e6e2.svg +6 -0
- package/dist/34acf2e58b457195.svg +9 -0
- package/dist/44df077bd19df476.svg +10 -0
- package/dist/5c5d298f247819e1.svg +10 -0
- package/dist/assets/bundle-BBymdwHN.css +65 -0
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/helper-C1OYS4SC.cjs +1 -0
- package/dist/helper-DUWFcWe6.js +1 -0
- package/dist/index-BGe7caLE.js +12 -0
- package/dist/index-BdB2BCQe.cjs +78 -0
- package/dist/index-CQl4nYsF.cjs +12 -0
- package/dist/index-Cm0O00ow.cjs +14 -0
- package/dist/index-XzRE8z_c.js +78 -0
- package/dist/index-ZV1FQySp.js +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/Bridge/BridgeRouteShortCard.d.ts +4 -2
- package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +2 -2
- package/dist/types/components/CardWidgets.d.ts +2 -11
- package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +4 -0
- package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +1 -1
- package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
- package/dist/types/components/ErrorMessageDialog.d.ts +1 -2
- package/dist/types/components/HowItWorks.d.ts +5 -5
- package/dist/types/components/Message/index.d.ts +1 -1
- package/dist/types/components/SelectChain.d.ts +2 -1
- package/dist/types/components/SubmittedDialog.d.ts +7 -0
- package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +5 -6
- package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +5 -0
- package/dist/types/components/Swap/components/Dialog.d.ts +1 -1
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +1 -2
- package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +1 -2
- package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +7 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +2 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +3 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +2 -3
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -2
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +2 -3
- package/dist/types/components/Swap/index.d.ts +4 -2
- package/dist/types/components/SwitchChainDialog/index.d.ts +6 -0
- package/dist/types/components/TokenPicker/ImportToken.d.ts +6 -0
- package/dist/types/components/TokenPicker/TokenDetailInfo.d.ts +6 -0
- package/dist/types/components/TokenPicker/TokenItem.d.ts +4 -3
- package/dist/types/components/TokenPicker/index.d.ts +3 -3
- package/dist/types/components/Widget/index.d.ts +15 -13
- package/dist/types/components/WithExecutionDialog/index.d.ts +2 -1
- package/dist/types/constants/address.d.ts +0 -6
- package/dist/types/constants/api.d.ts +4 -96
- package/dist/types/constants/chainList.d.ts +0 -10
- package/dist/types/constants/chains.d.ts +1 -17
- package/dist/types/constants/sessionStorage.d.ts +0 -1
- package/dist/types/constants/swap.d.ts +0 -1
- package/dist/types/constants/tokenList.d.ts +9 -8
- package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +24 -4
- package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +48 -138
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +2 -1
- package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +1 -4
- package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +9 -0
- package/dist/types/hooks/ConnectWallet/index.d.ts +2 -0
- package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +12 -1
- package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +8 -0
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +17 -0
- package/dist/types/hooks/ConnectWallet/web3.d.ts +10 -0
- package/dist/types/hooks/Submission/types.d.ts +1 -29
- package/dist/types/hooks/Submission/useExecution.d.ts +1 -1
- package/dist/types/hooks/Swap/useExecuteSwap.d.ts +1 -2
- package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +4 -2
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +6 -0
- package/dist/types/hooks/Swap/useSlippageLimit.d.ts +2 -2
- package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +5 -3
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +6 -0
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +133 -34
- package/dist/types/hooks/Token/type.d.ts +2 -3
- package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +1 -0
- package/dist/types/hooks/Token/useInitTokenList.d.ts +2 -2
- package/dist/types/hooks/Token/useSelectChainList.d.ts +5 -5
- package/dist/types/hooks/Token/useSelectChainList.test.d.ts +1 -0
- package/dist/types/hooks/Token/useTokenList.d.ts +8 -4
- package/dist/types/hooks/Token/useTokenList.test.d.ts +1 -0
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +2 -2
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +4 -1
- package/dist/types/hooks/Token/useTokenStatus.d.ts +2 -28
- package/dist/types/hooks/Token/useTokenStatus.test.d.ts +1 -0
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +1 -2
- package/dist/types/hooks/contract/useFetchTokens.d.ts +4 -9
- package/dist/types/hooks/useGlobalState.d.ts +0 -2
- package/dist/types/hooks/useGraphQLRequests.d.ts +1 -0
- package/dist/types/hooks/useMessageState.d.ts +1 -2
- package/dist/types/hooks/useRouteVisionData.d.ts +1 -17
- package/dist/types/hooks/useTokenState.d.ts +18 -3
- package/dist/types/index.d.ts +35 -27
- package/dist/types/locales/en-US.d.ts +1 -0
- package/dist/types/providers/i18n.d.ts +1 -1
- package/dist/types/router/types.d.ts +0 -5
- package/dist/types/utils/address.d.ts +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/token.d.ts +1 -1
- package/dist/types/utils/wallet.d.ts +0 -2
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMining.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/usePrevious.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +4 -1
- package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +1 -4
- package/dist/types/widgets/PoolWidget/AMMV3/reducer.d.ts +1 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +4 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/utils.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +5 -7
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +7 -2
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +5 -7
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +6 -14
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +7 -8
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +6 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +5 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +2 -49
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +6 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2RemoveLiquidity.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolListMyLiquidity.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/utils.d.ts +0 -4
- package/package.json +1 -1
- package/dist/helper-Dry2KYfh.js +0 -1
- package/dist/helper-iRd-4sp4.cjs +0 -1
- package/dist/index-BRTABuMK.cjs +0 -12
- package/dist/index-Ca_h9Yxg.js +0 -34
- package/dist/index-DDwPtr_I.js +0 -12
- package/dist/index-DHfQEIuw.cjs +0 -78
- package/dist/index-DsQIchnJ.js +0 -78
- package/dist/index-vyWzevj_.cjs +0 -34
- package/dist/types/components/Bridge/CompareRoute.d.ts +0 -4
- package/dist/types/components/Bridge/RouteVision.d.ts +0 -7
- package/dist/types/components/Bridge/RouteVisionModal.d.ts +0 -5
- package/dist/types/components/SquaredGoBack.d.ts +0 -5
- package/dist/types/components/Swap/SwapOrderHistory/CrossChainOrderList.d.ts +0 -4
- package/dist/types/components/Swap/SwapOrderHistory/CrossOrderCard.d.ts +0 -8
- package/dist/types/components/Swap/SwapOrderHistory/RefundModal.d.ts +0 -9
- package/dist/types/components/Swap/SwapOrderHistory/SameChainOrderList.d.ts +0 -3
- package/dist/types/components/Swap/components/FiatEntryAndGasRefuel.d.ts +0 -1
- package/dist/types/components/Swap/components/ReceiveAddressInputModal.d.ts +0 -10
- package/dist/types/components/Swap/components/RouteVisionModal.d.ts +0 -7
- package/dist/types/components/Swap/components/SwapSettingsDialog/SupplierSelect.d.ts +0 -5
- package/dist/types/components/Swap/components/TokenCard/TokenCardSwap.d.ts +0 -48
- package/dist/types/components/Swap/components/TokenCard/WalletConnectBtn.d.ts +0 -11
- package/dist/types/hooks/Bridge/useFeeList.d.ts +0 -9
- package/dist/types/hooks/Bridge/utils.d.ts +0 -6
- package/dist/types/hooks/ConnectWallet/useBTCWalletStore.d.ts +0 -1
- package/dist/types/hooks/Swap/useBridgeSlippage.d.ts +0 -3
- package/dist/types/hooks/Swap/useCrossSwapOrderList.d.ts +0 -215
- package/dist/types/hooks/Swap/usePrivacySwapStatus.d.ts +0 -10
- package/dist/types/hooks/Swap/useSwitchToSupplierChain.d.ts +0 -13
- package/dist/types/hooks/contract/useFetchMultiTokensForSingleChain.d.ts +0 -20
- package/dist/types/hooks/useAddressValidation.d.ts +0 -2
- package/dist/types/utils/CaipNetworksUtil.d.ts +0 -5
- package/dist/types/utils/btc.d.ts +0 -42
- package/dist/types/utils/constants.d.ts +0 -2
- package/dist/types/utils/reown-types.d.ts +0 -28
- package/dist/types/utils/solana.d.ts +0 -7
- package/dist/types/utils/ton.d.ts +0 -3
- package/dist/types/utils/zetachain_btc_test.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/AMMV2Create/Setting.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSetList.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterGroup.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolList/components/SortButtonGroup.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolList/components/TableSortButton.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolList/components/tags.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/curve/Add.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/AddOrRemove.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/AllPools.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/curve/CurvePoolDetail.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/OperateDialog.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/Remove.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/components/ApyTooltip.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/components/CoinReservePieChart.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/curve/components/CoinsLogoList.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/components/FilterAddressTags.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/components/LiquidityProvidersTable.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/curve/components/OperateButtonContainer.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/curve/components/ParametersTable.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/components/PoolTitle.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/components/PoolTotalStats.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/components/SlippageBonus.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/curve/components/SwapsTable.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/curve/components/TokenListPoolItem.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/hooks/useLiquidityProviders.d.ts +0 -166
- package/dist/types/widgets/PoolWidget/curve/hooks/useLpTokenBalances.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolDetail.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolListFilterTokenAndPool.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolSwapList.d.ts +0 -166
- package/dist/types/widgets/PoolWidget/curve/types.d.ts +0 -44
- package/dist/types/widgets/PoolWidget/curve/utils.d.ts +0 -4
- /package/dist/types/hooks/{useAddressValidation.test.d.ts → Bridge/useFetchRoutePriceBridge.test.d.ts} +0 -0
- /package/dist/types/{tests/1-get-account-state.d.ts → hooks/Chain/useChainList.test.d.ts} +0 -0
- /package/dist/types/{tests/1-send-ton.d.ts → hooks/Swap/useFetchFiatPrice.test.d.ts} +0 -0
- /package/dist/types/{utils/sui_test.d.ts → hooks/Swap/useFetchRoutePrice.test.d.ts} +0 -0
- /package/dist/types/{utils/ton_test.d.ts → hooks/Swap/useMarginAmount.test.d.ts} +0 -0
- /package/dist/types/{hooks → widgets/MiningWidget/hooks}/useRefetch.d.ts +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BridgeRouteI } from '../../hooks/Bridge';
|
|
3
|
-
export interface RouteVisionProps {
|
|
4
|
-
route: Pick<BridgeRouteI, 'fromChainId' | 'toChainId' | 'step'>;
|
|
5
|
-
isMobile?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const RouteVision: ({ route, isMobile }: RouteVisionProps) => React.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useCrossSwapOrderList } from '../../../hooks/Swap/useCrossSwapOrderList';
|
|
3
|
-
export default function CrossOrderCard({ data, isMobile, isErrorRefund, refetch, }: {
|
|
4
|
-
data: NonNullable<ReturnType<typeof useCrossSwapOrderList>['orderList'][0]>;
|
|
5
|
-
isMobile: boolean;
|
|
6
|
-
isErrorRefund: boolean;
|
|
7
|
-
refetch: () => void;
|
|
8
|
-
}): React.JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useCrossSwapOrderList } from '../../../hooks/Swap/useCrossSwapOrderList';
|
|
3
|
-
export interface RefundModalProps {
|
|
4
|
-
data: NonNullable<ReturnType<typeof useCrossSwapOrderList>['orderList'][0]>;
|
|
5
|
-
refetch: () => void;
|
|
6
|
-
claimConfirmOpen: boolean;
|
|
7
|
-
setClaimConfirmOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
-
}
|
|
9
|
-
export declare const RefundModal: ({ data, refetch, claimConfirmOpen, setClaimConfirmOpen, }: RefundModalProps) => React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function FiatEntryAndGasRefuel(): import("react").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
export interface ReceiveAddressInputModalProps {
|
|
4
|
-
chainId: ChainId;
|
|
5
|
-
open: boolean;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
inputToAddress: string | null;
|
|
8
|
-
setInputToAddress: Dispatch<SetStateAction<string | null>>;
|
|
9
|
-
}
|
|
10
|
-
export declare const ReceiveAddressInputModal: ({ chainId, open, onClose, inputToAddress, setInputToAddress, }: ReceiveAddressInputModalProps) => import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
2
|
-
export interface RouteVisionModalProps {
|
|
3
|
-
routeInfo: string | null;
|
|
4
|
-
toToken: TokenInfo;
|
|
5
|
-
fromToken: TokenInfo;
|
|
6
|
-
}
|
|
7
|
-
export declare const RouteVisionModal: ({ routeInfo, toToken, fromToken, }: RouteVisionModalProps) => import("react").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { usePrivacySwapStatus } from '../../../../hooks/Swap/usePrivacySwapStatus';
|
|
3
|
-
export declare function SupplierSelect({ privacySwapSupplierEndpoints, endpointStatusMap, refetchEndpointStatus, setIsSelectSupplierMode, }: Pick<ReturnType<typeof usePrivacySwapStatus>, 'endpointStatusMap' | 'privacySwapSupplierEndpoints' | 'privacySwapEnable' | 'privacySwapEnableAble' | 'refetchEndpointStatus'> & {
|
|
4
|
-
setIsSelectSupplierMode: Dispatch<SetStateAction<boolean>>;
|
|
5
|
-
}): import("react").JSX.Element;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@dodoex/components';
|
|
2
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
5
|
-
import { useWalletInfo } from '../../../../hooks/ConnectWallet/useWalletInfo';
|
|
6
|
-
import { BalanceData } from '../../../../hooks/Submission/useBalanceUpdateLoading';
|
|
7
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
8
|
-
import { TokenPickerProps } from '../../../TokenPicker';
|
|
9
|
-
export interface TokenCardProps {
|
|
10
|
-
amt: string;
|
|
11
|
-
fiatPriceTxt?: string | React.ReactNode;
|
|
12
|
-
failedReason?: React.ReactNode;
|
|
13
|
-
sx?: BoxProps['sx'];
|
|
14
|
-
readOnly?: boolean;
|
|
15
|
-
showMaxBtn?: boolean;
|
|
16
|
-
canClickBalance?: boolean;
|
|
17
|
-
occupiedAddrs?: string[];
|
|
18
|
-
showAddrs?: string[];
|
|
19
|
-
occupiedChainId?: TokenPickerProps['occupiedChainId'];
|
|
20
|
-
onMaxClick?: (max: string) => void;
|
|
21
|
-
token?: TokenInfo | null;
|
|
22
|
-
onInputChange?: (v: string) => void;
|
|
23
|
-
onInputFocus?: () => void;
|
|
24
|
-
onTokenClick?: () => void;
|
|
25
|
-
onTokenChange?: (token: TokenInfo, isOccupied: boolean) => void;
|
|
26
|
-
side?: TokenPickerProps['side'];
|
|
27
|
-
showChainLogo?: boolean;
|
|
28
|
-
showChainName?: boolean;
|
|
29
|
-
defaultLoadBalance?: boolean;
|
|
30
|
-
overrideBalance?: BigNumber | null;
|
|
31
|
-
overrideBalanceLoading?: boolean;
|
|
32
|
-
balanceText?: React.ReactNode;
|
|
33
|
-
showPercentage?: boolean;
|
|
34
|
-
inputReadonlyTooltip?: React.ReactNode;
|
|
35
|
-
inputTypography?: string;
|
|
36
|
-
hideToken?: boolean;
|
|
37
|
-
checkLogBalance?: BalanceData;
|
|
38
|
-
notTokenPickerModal?: boolean;
|
|
39
|
-
enterAddressEnabled?: boolean;
|
|
40
|
-
inputToAddress: string | null;
|
|
41
|
-
setInputToAddress: Dispatch<SetStateAction<string | null>>;
|
|
42
|
-
account: ReturnType<ReturnType<typeof useWalletInfo>['getAppKitAccountByChainId']>;
|
|
43
|
-
tokenQuery: UseQueryResult<{
|
|
44
|
-
balance: BigNumber;
|
|
45
|
-
} | null, Error>;
|
|
46
|
-
filterBySupportTargetChain?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export declare function TokenCardSwap({ sx, amt, token, readOnly, showMaxBtn, canClickBalance, onMaxClick, fiatPriceTxt, failedReason, occupiedAddrs, occupiedChainId, showAddrs, onInputFocus, onTokenClick, onInputChange, onTokenChange, side, showChainLogo, showChainName, defaultLoadBalance, overrideBalance, overrideBalanceLoading, balanceText, showPercentage, inputReadonlyTooltip, inputTypography, hideToken, checkLogBalance, notTokenPickerModal, enterAddressEnabled, inputToAddress, setInputToAddress, account, tokenQuery, filterBySupportTargetChain, }: TokenCardProps): import("react").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { useWalletInfo } from '../../../../hooks/ConnectWallet/useWalletInfo';
|
|
3
|
-
import { TokenInfo } from '../../../../hooks/Token/type';
|
|
4
|
-
export interface Props {
|
|
5
|
-
token: TokenInfo;
|
|
6
|
-
enterAddressEnabled?: boolean;
|
|
7
|
-
inputToAddress: string | null;
|
|
8
|
-
setInputToAddress: Dispatch<SetStateAction<string | null>>;
|
|
9
|
-
account: ReturnType<ReturnType<typeof useWalletInfo>['getAppKitAccountByChainId']>;
|
|
10
|
-
}
|
|
11
|
-
export declare const WalletConnectBtn: ({ token, enterAddressEnabled, inputToAddress, setInputToAddress, account, }: Props) => import("react").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BridgeRouteI } from './useFetchRoutePriceBridge';
|
|
2
|
-
export declare function useFeeList({ fees }: {
|
|
3
|
-
fees: BridgeRouteI['fees'];
|
|
4
|
-
}): {
|
|
5
|
-
key: "btcDepositFee" | "platformFee" | "destinationFee" | "protocolFees" | "svmRentFee";
|
|
6
|
-
title: string;
|
|
7
|
-
value: string | null;
|
|
8
|
-
isFree: boolean;
|
|
9
|
-
}[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TokenList } from '../Token/type';
|
|
2
|
-
import { BridgeStep, CrossChainSwapZetachainRoute } from './useFetchRoutePriceBridge';
|
|
3
|
-
export declare function generateBridgeStep({ omniPlan, tokenList, }: {
|
|
4
|
-
omniPlan: CrossChainSwapZetachainRoute['omniPlan'];
|
|
5
|
-
tokenList: TokenList;
|
|
6
|
-
}): BridgeStep;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useBTCWalletStore(): import("@dodoex/btc-connect-react").WalletStore | undefined;
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
2
|
-
account: string | undefined;
|
|
3
|
-
limit?: number;
|
|
4
|
-
type?: 'error_refund';
|
|
5
|
-
}): {
|
|
6
|
-
orderList: any;
|
|
7
|
-
data: import("@tanstack/react-query").InfiniteData<unknown, unknown>;
|
|
8
|
-
error: Error;
|
|
9
|
-
isError: true;
|
|
10
|
-
isPending: false;
|
|
11
|
-
isLoading: false;
|
|
12
|
-
isLoadingError: false;
|
|
13
|
-
isRefetchError: true;
|
|
14
|
-
isSuccess: false;
|
|
15
|
-
isPlaceholderData: false;
|
|
16
|
-
status: "error";
|
|
17
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
18
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
19
|
-
hasNextPage: boolean;
|
|
20
|
-
hasPreviousPage: boolean;
|
|
21
|
-
isFetchNextPageError: boolean;
|
|
22
|
-
isFetchingNextPage: boolean;
|
|
23
|
-
isFetchPreviousPageError: boolean;
|
|
24
|
-
isFetchingPreviousPage: boolean;
|
|
25
|
-
dataUpdatedAt: number;
|
|
26
|
-
errorUpdatedAt: number;
|
|
27
|
-
failureCount: number;
|
|
28
|
-
failureReason: Error | null;
|
|
29
|
-
errorUpdateCount: number;
|
|
30
|
-
isFetched: boolean;
|
|
31
|
-
isFetchedAfterMount: boolean;
|
|
32
|
-
isFetching: boolean;
|
|
33
|
-
isInitialLoading: boolean;
|
|
34
|
-
isPaused: boolean;
|
|
35
|
-
isRefetching: boolean;
|
|
36
|
-
isStale: boolean;
|
|
37
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
38
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
39
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<unknown, unknown>>;
|
|
40
|
-
} | {
|
|
41
|
-
orderList: any;
|
|
42
|
-
data: import("@tanstack/react-query").InfiniteData<unknown, unknown>;
|
|
43
|
-
error: null;
|
|
44
|
-
isError: false;
|
|
45
|
-
isPending: false;
|
|
46
|
-
isLoading: false;
|
|
47
|
-
isLoadingError: false;
|
|
48
|
-
isRefetchError: false;
|
|
49
|
-
isFetchNextPageError: false;
|
|
50
|
-
isFetchPreviousPageError: false;
|
|
51
|
-
isSuccess: true;
|
|
52
|
-
isPlaceholderData: false;
|
|
53
|
-
status: "success";
|
|
54
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
55
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
56
|
-
hasNextPage: boolean;
|
|
57
|
-
hasPreviousPage: boolean;
|
|
58
|
-
isFetchingNextPage: boolean;
|
|
59
|
-
isFetchingPreviousPage: boolean;
|
|
60
|
-
dataUpdatedAt: number;
|
|
61
|
-
errorUpdatedAt: number;
|
|
62
|
-
failureCount: number;
|
|
63
|
-
failureReason: Error | null;
|
|
64
|
-
errorUpdateCount: number;
|
|
65
|
-
isFetched: boolean;
|
|
66
|
-
isFetchedAfterMount: boolean;
|
|
67
|
-
isFetching: boolean;
|
|
68
|
-
isInitialLoading: boolean;
|
|
69
|
-
isPaused: boolean;
|
|
70
|
-
isRefetching: boolean;
|
|
71
|
-
isStale: boolean;
|
|
72
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
73
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
74
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<unknown, unknown>>;
|
|
75
|
-
} | {
|
|
76
|
-
orderList: any;
|
|
77
|
-
data: undefined;
|
|
78
|
-
error: Error;
|
|
79
|
-
isError: true;
|
|
80
|
-
isPending: false;
|
|
81
|
-
isLoading: false;
|
|
82
|
-
isLoadingError: true;
|
|
83
|
-
isRefetchError: false;
|
|
84
|
-
isFetchNextPageError: false;
|
|
85
|
-
isFetchPreviousPageError: false;
|
|
86
|
-
isSuccess: false;
|
|
87
|
-
isPlaceholderData: false;
|
|
88
|
-
status: "error";
|
|
89
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
90
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
91
|
-
hasNextPage: boolean;
|
|
92
|
-
hasPreviousPage: boolean;
|
|
93
|
-
isFetchingNextPage: boolean;
|
|
94
|
-
isFetchingPreviousPage: boolean;
|
|
95
|
-
dataUpdatedAt: number;
|
|
96
|
-
errorUpdatedAt: number;
|
|
97
|
-
failureCount: number;
|
|
98
|
-
failureReason: Error | null;
|
|
99
|
-
errorUpdateCount: number;
|
|
100
|
-
isFetched: boolean;
|
|
101
|
-
isFetchedAfterMount: boolean;
|
|
102
|
-
isFetching: boolean;
|
|
103
|
-
isInitialLoading: boolean;
|
|
104
|
-
isPaused: boolean;
|
|
105
|
-
isRefetching: boolean;
|
|
106
|
-
isStale: boolean;
|
|
107
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
108
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<unknown, unknown>>;
|
|
110
|
-
} | {
|
|
111
|
-
orderList: any;
|
|
112
|
-
data: undefined;
|
|
113
|
-
error: null;
|
|
114
|
-
isError: false;
|
|
115
|
-
isPending: true;
|
|
116
|
-
isLoading: true;
|
|
117
|
-
isLoadingError: false;
|
|
118
|
-
isRefetchError: false;
|
|
119
|
-
isFetchNextPageError: false;
|
|
120
|
-
isFetchPreviousPageError: false;
|
|
121
|
-
isSuccess: false;
|
|
122
|
-
isPlaceholderData: false;
|
|
123
|
-
status: "pending";
|
|
124
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
125
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
126
|
-
hasNextPage: boolean;
|
|
127
|
-
hasPreviousPage: boolean;
|
|
128
|
-
isFetchingNextPage: boolean;
|
|
129
|
-
isFetchingPreviousPage: boolean;
|
|
130
|
-
dataUpdatedAt: number;
|
|
131
|
-
errorUpdatedAt: number;
|
|
132
|
-
failureCount: number;
|
|
133
|
-
failureReason: Error | null;
|
|
134
|
-
errorUpdateCount: number;
|
|
135
|
-
isFetched: boolean;
|
|
136
|
-
isFetchedAfterMount: boolean;
|
|
137
|
-
isFetching: boolean;
|
|
138
|
-
isInitialLoading: boolean;
|
|
139
|
-
isPaused: boolean;
|
|
140
|
-
isRefetching: boolean;
|
|
141
|
-
isStale: boolean;
|
|
142
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
143
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
144
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<unknown, unknown>>;
|
|
145
|
-
} | {
|
|
146
|
-
orderList: any;
|
|
147
|
-
data: undefined;
|
|
148
|
-
error: null;
|
|
149
|
-
isError: false;
|
|
150
|
-
isPending: true;
|
|
151
|
-
isLoadingError: false;
|
|
152
|
-
isRefetchError: false;
|
|
153
|
-
isFetchNextPageError: false;
|
|
154
|
-
isFetchPreviousPageError: false;
|
|
155
|
-
isSuccess: false;
|
|
156
|
-
isPlaceholderData: false;
|
|
157
|
-
status: "pending";
|
|
158
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
159
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
160
|
-
hasNextPage: boolean;
|
|
161
|
-
hasPreviousPage: boolean;
|
|
162
|
-
isFetchingNextPage: boolean;
|
|
163
|
-
isFetchingPreviousPage: boolean;
|
|
164
|
-
dataUpdatedAt: number;
|
|
165
|
-
errorUpdatedAt: number;
|
|
166
|
-
failureCount: number;
|
|
167
|
-
failureReason: Error | null;
|
|
168
|
-
errorUpdateCount: number;
|
|
169
|
-
isFetched: boolean;
|
|
170
|
-
isFetchedAfterMount: boolean;
|
|
171
|
-
isFetching: boolean;
|
|
172
|
-
isLoading: boolean;
|
|
173
|
-
isInitialLoading: boolean;
|
|
174
|
-
isPaused: boolean;
|
|
175
|
-
isRefetching: boolean;
|
|
176
|
-
isStale: boolean;
|
|
177
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
178
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
179
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<unknown, unknown>>;
|
|
180
|
-
} | {
|
|
181
|
-
orderList: any;
|
|
182
|
-
data: import("@tanstack/react-query").InfiniteData<unknown, unknown>;
|
|
183
|
-
isError: false;
|
|
184
|
-
error: null;
|
|
185
|
-
isPending: false;
|
|
186
|
-
isLoading: false;
|
|
187
|
-
isLoadingError: false;
|
|
188
|
-
isRefetchError: false;
|
|
189
|
-
isSuccess: true;
|
|
190
|
-
isPlaceholderData: true;
|
|
191
|
-
isFetchNextPageError: false;
|
|
192
|
-
isFetchPreviousPageError: false;
|
|
193
|
-
status: "success";
|
|
194
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
195
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
196
|
-
hasNextPage: boolean;
|
|
197
|
-
hasPreviousPage: boolean;
|
|
198
|
-
isFetchingNextPage: boolean;
|
|
199
|
-
isFetchingPreviousPage: boolean;
|
|
200
|
-
dataUpdatedAt: number;
|
|
201
|
-
errorUpdatedAt: number;
|
|
202
|
-
failureCount: number;
|
|
203
|
-
failureReason: Error | null;
|
|
204
|
-
errorUpdateCount: number;
|
|
205
|
-
isFetched: boolean;
|
|
206
|
-
isFetchedAfterMount: boolean;
|
|
207
|
-
isFetching: boolean;
|
|
208
|
-
isInitialLoading: boolean;
|
|
209
|
-
isPaused: boolean;
|
|
210
|
-
isRefetching: boolean;
|
|
211
|
-
isStale: boolean;
|
|
212
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
213
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
214
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<unknown, unknown>>;
|
|
215
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function usePrivacySwapStatus({ chainId, account, }: {
|
|
2
|
-
chainId: number | undefined;
|
|
3
|
-
account: string | undefined;
|
|
4
|
-
}): {
|
|
5
|
-
privacySwapSupplierEndpoints: import("../../constants/chains").PrivacySwapSupplierEndpointI[];
|
|
6
|
-
privacySwapEnableAble: boolean;
|
|
7
|
-
privacySwapEnable: boolean;
|
|
8
|
-
refetchEndpointStatus: () => void;
|
|
9
|
-
endpointStatusMap: Map<string, boolean>;
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PrivacySwapSupplierEndpointI } from '../../constants/chains';
|
|
2
|
-
/**
|
|
3
|
-
* chainId 不变,切换至当前链的供应商链,供应商链提供隐私交易
|
|
4
|
-
* @param param0
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare function useSwitchToSupplierChain({ chainId, successCallback, selectedSupplier, }: {
|
|
8
|
-
chainId?: number;
|
|
9
|
-
successCallback: () => void;
|
|
10
|
-
selectedSupplier?: PrivacySwapSupplierEndpointI;
|
|
11
|
-
}): {
|
|
12
|
-
switchTo: () => Promise<void>;
|
|
13
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { TokenList } from '../Token';
|
|
3
|
-
type TokenInfoMap = Map<string, {
|
|
4
|
-
balance: BigNumber;
|
|
5
|
-
allowance: BigNumber;
|
|
6
|
-
}>;
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* 类似于 useFetchTokens
|
|
10
|
-
* 该方法用于查询单个 EVM 链上的多个 token 的余额,用于 TokenPicker 的 token 列表查询
|
|
11
|
-
* @param tokenList 需要查询的 token 列表,单一链
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export default function useFetchMultiTokensForSingleChain({ chainId, tokenList, blockNumber, skip, }: {
|
|
15
|
-
chainId: number;
|
|
16
|
-
tokenList: TokenList;
|
|
17
|
-
blockNumber?: number;
|
|
18
|
-
skip?: boolean;
|
|
19
|
-
}): TokenInfoMap;
|
|
20
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AppKitNetworkExtend, type CaipNetworkExtend } from './reown-types';
|
|
2
|
-
export declare const CaipNetworksUtil: {
|
|
3
|
-
isCaipNetwork(network: AppKitNetworkExtend): network is CaipNetworkExtend;
|
|
4
|
-
getChainNamespace(network: AppKitNetworkExtend): import("./reown-types").ChainNamespaceExtend;
|
|
5
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { WalletState } from '@dodoex/btc-connect-react';
|
|
2
|
-
export declare const SIGNET: {
|
|
3
|
-
bech32: string;
|
|
4
|
-
bip32: {
|
|
5
|
-
private: number;
|
|
6
|
-
public: number;
|
|
7
|
-
};
|
|
8
|
-
messagePrefix: string;
|
|
9
|
-
pubKeyHash: number;
|
|
10
|
-
scriptHash: number;
|
|
11
|
-
wif: number;
|
|
12
|
-
};
|
|
13
|
-
export declare function transferBitcoin({ toAddress, amount, calldata, btcWallet, btcDepositFee, isTestNet, }: {
|
|
14
|
-
toAddress: string;
|
|
15
|
-
amount: number;
|
|
16
|
-
calldata: string;
|
|
17
|
-
btcWallet: WalletState['btcWallet'];
|
|
18
|
-
btcDepositFee: number;
|
|
19
|
-
isTestNet: boolean;
|
|
20
|
-
}): Promise<string>;
|
|
21
|
-
export declare function getBitcoinFeeEstimate(amount: number, isSignet?: boolean): Promise<{
|
|
22
|
-
feeRates: {
|
|
23
|
-
fastestFee: any;
|
|
24
|
-
halfHourFee: any;
|
|
25
|
-
economyFee: any;
|
|
26
|
-
minimumFee: any;
|
|
27
|
-
};
|
|
28
|
-
optimalRate: any;
|
|
29
|
-
estimatedFee: (vsize: number) => number;
|
|
30
|
-
}>;
|
|
31
|
-
export declare function demonstrateFeeRateOptions(isSignet?: boolean): Promise<void>;
|
|
32
|
-
export declare function demonstrateVsizeCalculation(): void;
|
|
33
|
-
export declare function explainVsizeCalculation(): number;
|
|
34
|
-
export declare function compareFeeRates(vsize: number, isSignet?: boolean): Promise<{
|
|
35
|
-
fastestFee: any;
|
|
36
|
-
economyFee: any;
|
|
37
|
-
fastestFeeTotal: number;
|
|
38
|
-
economyFeeTotal: number;
|
|
39
|
-
difference: number;
|
|
40
|
-
percentageIncrease: string;
|
|
41
|
-
}>;
|
|
42
|
-
export declare function getNetworkFeeStatus(isSignet?: boolean): Promise<any>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type BaseNetwork, ChainId, ChainNamespace, type CaipNetwork } from '@reown/appkit-common';
|
|
2
|
-
import type { NamespaceTypeMap, UseAppKitAccountReturn } from '@reown/appkit/react';
|
|
3
|
-
export type ChainNamespaceExtend = ChainNamespace | 'ton' | 'sui';
|
|
4
|
-
export type CaipNetworkIdExtend = `${ChainNamespaceExtend}:${ChainId}`;
|
|
5
|
-
export type CaipAddressExtend = `${ChainNamespaceExtend}:${ChainId}:${string}`;
|
|
6
|
-
type NamespaceTypeMapExtend = NamespaceTypeMap & {
|
|
7
|
-
ton: 'eoa';
|
|
8
|
-
sui: 'eoa';
|
|
9
|
-
};
|
|
10
|
-
type AccountTypeMapExtend = {
|
|
11
|
-
[K in ChainNamespaceExtend]: {
|
|
12
|
-
namespace: K;
|
|
13
|
-
address: string;
|
|
14
|
-
type: NamespaceTypeMapExtend[K];
|
|
15
|
-
publicKey?: K extends 'bip122' ? string : never;
|
|
16
|
-
path?: K extends 'bip122' ? string : never;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
type AccountTypeExtend = AccountTypeMapExtend[ChainNamespaceExtend];
|
|
20
|
-
export type UseAppKitAccountReturnExtend = {
|
|
21
|
-
allAccounts: AccountTypeExtend[];
|
|
22
|
-
caipAddress: CaipAddressExtend | undefined;
|
|
23
|
-
} & Pick<UseAppKitAccountReturn, 'address' | 'isConnected' | 'embeddedWalletInfo' | 'status'>;
|
|
24
|
-
export type CaipNetworkExtend = Omit<CaipNetwork, 'chainNamespace'> & {
|
|
25
|
-
chainNamespace: ChainNamespaceExtend;
|
|
26
|
-
};
|
|
27
|
-
export type AppKitNetworkExtend = BaseNetwork | CaipNetworkExtend;
|
|
28
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
2
|
-
export declare function constructSolanaRouteTransaction({ data }: {
|
|
3
|
-
data: string;
|
|
4
|
-
}): VersionedTransaction | Transaction;
|
|
5
|
-
export declare function constructSolanaBridgeRouteTransaction({ data, }: {
|
|
6
|
-
data: string;
|
|
7
|
-
}): VersionedTransaction;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const executeRouteZetachainBtc: () => Promise<void>;
|
|
2
|
-
export declare function getMempoolUTXO(address: string): Promise<any>;
|
|
3
|
-
export declare function getMempoolTxDetail(txHash: string): Promise<any>;
|
|
4
|
-
export declare function getSignetMempoolUTXO(address: string): Promise<any>;
|
|
5
|
-
export declare function getSignetMempoolTxDetail(txHash: string): Promise<any>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@dodoex/components';
|
|
2
|
-
import { AUTO_SWAP_SLIPPAGE_PROTECTION } from '../../../constants/pool';
|
|
3
|
-
export declare const useSlipper: ({ address }: {
|
|
4
|
-
address?: string;
|
|
5
|
-
}) => {
|
|
6
|
-
slipper: number | "auto";
|
|
7
|
-
setSlipper: import("react").Dispatch<import("react").SetStateAction<number | "auto">>;
|
|
8
|
-
slipperValue: number;
|
|
9
|
-
resetSlipper: () => void;
|
|
10
|
-
};
|
|
11
|
-
export default function Setting({ sx, disabled, slippage, onChangeSlippage, }: {
|
|
12
|
-
sx?: BoxProps['sx'];
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
slippage: number | typeof AUTO_SWAP_SLIPPAGE_PROTECTION;
|
|
15
|
-
onChangeSlippage: (val: number | typeof AUTO_SWAP_SLIPPAGE_PROTECTION) => void;
|
|
16
|
-
}): import("react").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@dodoex/components';
|
|
2
|
-
export interface FilterGroupProps<T> {
|
|
3
|
-
filterList: Array<{
|
|
4
|
-
label: string;
|
|
5
|
-
value: T;
|
|
6
|
-
}>;
|
|
7
|
-
value: T;
|
|
8
|
-
onChange: (value: T) => void;
|
|
9
|
-
sx?: BoxProps['sx'];
|
|
10
|
-
}
|
|
11
|
-
export declare const FilterGroup: <T extends string>(props: FilterGroupProps<T>) => import("react").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@dodoex/components';
|
|
2
|
-
export interface SortButtonGroupProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
sortList: Array<{
|
|
5
|
-
label: string;
|
|
6
|
-
direction: 'asc' | 'desc' | undefined;
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
}>;
|
|
9
|
-
sx?: BoxProps['sx'];
|
|
10
|
-
}
|
|
11
|
-
export declare const SortButtonGroup: ({ children, sortList, sx, }: SortButtonGroupProps) => import("react").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface PoolTypeTagProps {
|
|
2
|
-
poolType: 'AMM V2' | 'AMM V3' | 'PMM';
|
|
3
|
-
}
|
|
4
|
-
export declare const PoolTypeTag: ({ poolType }: PoolTypeTagProps) => import("react").JSX.Element;
|
|
5
|
-
export interface PoolFeeRateTagProps {
|
|
6
|
-
isAMMV2: boolean;
|
|
7
|
-
isAMMV3: boolean;
|
|
8
|
-
lpFeeRate: any;
|
|
9
|
-
mtFeeRate: any;
|
|
10
|
-
}
|
|
11
|
-
export declare const PoolFeeRateTag: ({ isAMMV2, isAMMV3, lpFeeRate, mtFeeRate, }: PoolFeeRateTagProps) => import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OperateCurvePoolT } from './types';
|
|
2
|
-
export interface AddOrRemoveProps {
|
|
3
|
-
onClose?: () => void;
|
|
4
|
-
poolDetailBtnVisible?: boolean;
|
|
5
|
-
operateCurvePool: OperateCurvePoolT;
|
|
6
|
-
}
|
|
7
|
-
export declare const AddOrRemove: ({ onClose, poolDetailBtnVisible, operateCurvePool, }: AddOrRemoveProps) => import("react").JSX.Element;
|