@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,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
-
import { usePrivacySwapStatus } from '../../../../hooks/Swap/usePrivacySwapStatus';
|
|
4
3
|
export interface SwapSettingsDialogProps {
|
|
5
4
|
open: boolean;
|
|
6
5
|
onClose: () => void;
|
|
7
6
|
fromToken?: TokenInfo | null;
|
|
8
7
|
toToken?: TokenInfo | null;
|
|
9
|
-
|
|
8
|
+
slippageQuickInput?: boolean;
|
|
10
9
|
}
|
|
11
|
-
export declare function SwapSettingsDialog({ open, onClose, fromToken, toToken,
|
|
10
|
+
export declare function SwapSettingsDialog({ open, onClose, fromToken, toToken, slippageQuickInput, }: SwapSettingsDialogProps): React.JSX.Element;
|
|
@@ -5,7 +5,6 @@ export interface TokenPickerDialogProps {
|
|
|
5
5
|
title?: React.ReactNode | string;
|
|
6
6
|
occupiedAddrs?: string[];
|
|
7
7
|
hiddenAddrs?: string[];
|
|
8
|
-
showAddrs?: string[];
|
|
9
8
|
occupiedChainId?: TokenPickerProps['occupiedChainId'];
|
|
10
9
|
onClose: DialogProps['onClose'];
|
|
11
10
|
value?: TokenPickerProps['value'];
|
|
@@ -17,6 +16,5 @@ export interface TokenPickerDialogProps {
|
|
|
17
16
|
searchOtherAddress?: TokenPickerProps['searchOtherAddress'];
|
|
18
17
|
chainId?: TokenPickerProps['chainId'];
|
|
19
18
|
modal?: boolean;
|
|
20
|
-
filterBySupportTargetChain?: boolean;
|
|
21
19
|
}
|
|
22
20
|
export declare function TokenPickerDialog(props: TokenPickerDialogProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { RoutePriceStatus } from '../../../hooks/Swap';
|
|
2
1
|
import { TokenInfo } from '../../../hooks/Token';
|
|
3
|
-
|
|
2
|
+
import { RoutePriceStatus } from '../../../hooks/Swap';
|
|
3
|
+
export declare function TokenPairPriceWithToggle({ toToken, fromToken, priceStatus, pricePerToToken, pricePerFromToken, }: {
|
|
4
4
|
toToken: TokenInfo | null;
|
|
5
5
|
fromToken: TokenInfo | null;
|
|
6
6
|
priceStatus: RoutePriceStatus;
|
|
7
7
|
pricePerToToken: number | null;
|
|
8
8
|
pricePerFromToken: number | null;
|
|
9
|
-
routeInfo: string | null;
|
|
10
9
|
}): import("react").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { GetAutoSlippage } from '../../hooks/setting/useSetAutoSlippage';
|
|
2
1
|
import { TokenInfo } from '../../hooks/Token/type';
|
|
2
|
+
import { GetAutoSlippage } from '../../hooks/setting/useSetAutoSlippage';
|
|
3
3
|
export interface SwapProps {
|
|
4
|
+
showPreviewInfoCard?: boolean;
|
|
5
|
+
slippageQuickInput?: boolean;
|
|
4
6
|
/** Higher priority setting slippage */
|
|
5
7
|
getAutoSlippage?: GetAutoSlippage;
|
|
6
8
|
onPayTokenChange?: (token: TokenInfo) => void;
|
|
7
9
|
onReceiveTokenChange?: (token: TokenInfo) => void;
|
|
8
10
|
}
|
|
9
|
-
export declare function Swap({ getAutoSlippage, onPayTokenChange, onReceiveTokenChange, }?: SwapProps): import("react").JSX.Element;
|
|
11
|
+
export declare function Swap({ showPreviewInfoCard, slippageQuickInput, getAutoSlippage, onPayTokenChange, onReceiveTokenChange, }?: SwapProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
1
|
import { CSSProperties } from 'react';
|
|
3
2
|
import { TokenInfo } from './../../hooks/Token';
|
|
4
|
-
|
|
3
|
+
import BigNumber from 'bignumber.js';
|
|
4
|
+
export default function TokenItem({ token, disabled, style, balance: balanceBigNumber, onClick, onDelete, }: {
|
|
5
5
|
token: TokenInfo;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
style?: CSSProperties;
|
|
8
8
|
balance?: BigNumber;
|
|
9
|
-
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
onDelete?: () => void;
|
|
10
11
|
}): import("react").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
1
|
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import type { TokenInfo } from '../../hooks/Token';
|
|
4
|
+
import { ChainId } from '@dodoex/api';
|
|
4
5
|
export interface TokenPickerProps {
|
|
5
6
|
chainId?: ChainId;
|
|
6
7
|
value?: TokenInfo | null | Array<TokenInfo>;
|
|
@@ -21,6 +22,5 @@ export interface TokenPickerProps {
|
|
|
21
22
|
/** like search pool address */
|
|
22
23
|
searchOtherAddress?: (address: string) => Promise<JSX.Element | null>;
|
|
23
24
|
sx?: BoxProps['sx'];
|
|
24
|
-
filterBySupportTargetChain?: boolean;
|
|
25
25
|
}
|
|
26
|
-
export default function TokenPicker({ chainId, value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, visible, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, sx,
|
|
26
|
+
export default function TokenPicker({ chainId, value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, visible, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, sx, }: TokenPickerProps): React.JSX.Element;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { ChainId, GraphQLRequests } from '@dodoex/api';
|
|
2
|
-
import type { WalletStore } from '@dodoex/btc-connect-react';
|
|
1
|
+
import { ChainId, ContractRequests, GraphQLRequests } from '@dodoex/api';
|
|
3
2
|
import { EmptyDataIcon, PaletteMode, ThemeOptions } from '@dodoex/components';
|
|
4
|
-
import { Connection } from '@solana/web3.js';
|
|
5
3
|
import { PropsWithChildren } from 'react';
|
|
6
4
|
import { APIServices } from '../../constants/api';
|
|
7
5
|
import { SupportedLang } from '../../constants/locales';
|
|
6
|
+
import { Web3ConnectorsProps } from '../../hooks/ConnectWallet';
|
|
8
7
|
import { ExecutionProps } from '../../hooks/Submission';
|
|
9
|
-
import { ExecutionCtx } from '../../hooks/Submission/types';
|
|
10
8
|
import { DefaultTokenInfo, TokenInfo } from '../../hooks/Token/type';
|
|
11
9
|
import { InitTokenListProps } from '../../hooks/Token/useInitTokenList';
|
|
12
|
-
import { Page } from '../../router';
|
|
13
10
|
import { ConfirmProps } from '../Confirm';
|
|
14
11
|
import { DialogProps } from '../Swap/components/Dialog';
|
|
12
|
+
import { Page } from '../../router';
|
|
13
|
+
import { ExecutionCtx } from '../../hooks/Submission/types';
|
|
15
14
|
import { TokenPickerDialogProps } from '../Swap/components/TokenCard/TokenPickerDialog';
|
|
16
15
|
export declare const WIDGET_CLASS_NAME = "dodo-widget-container";
|
|
17
|
-
export interface WidgetProps extends InitTokenListProps, ExecutionProps {
|
|
16
|
+
export interface WidgetProps extends Web3ConnectorsProps, InitTokenListProps, ExecutionProps {
|
|
18
17
|
apikey?: string;
|
|
19
|
-
GRAPHQL_URL: string;
|
|
20
|
-
IS_TEST_ENV: boolean;
|
|
21
18
|
theme?: PartialDeep<ThemeOptions>;
|
|
22
19
|
colorMode?: PaletteMode;
|
|
23
|
-
defaultChainId
|
|
20
|
+
defaultChainId?: ChainId;
|
|
24
21
|
width?: string | number;
|
|
25
22
|
height?: string | number;
|
|
26
23
|
feeRate?: number;
|
|
@@ -35,6 +32,7 @@ export interface WidgetProps extends InitTokenListProps, ExecutionProps {
|
|
|
35
32
|
noPowerBy?: boolean;
|
|
36
33
|
noDocumentLink?: boolean;
|
|
37
34
|
onlyChainId?: ChainId;
|
|
35
|
+
supportChainIds?: number[];
|
|
38
36
|
noUI?: boolean;
|
|
39
37
|
noLangProvider?: boolean;
|
|
40
38
|
noAutoConnect?: boolean;
|
|
@@ -46,11 +44,16 @@ export interface WidgetProps extends InitTokenListProps, ExecutionProps {
|
|
|
46
44
|
notSupportPMM?: boolean;
|
|
47
45
|
supportAMMV2?: boolean;
|
|
48
46
|
supportAMMV3?: boolean;
|
|
49
|
-
|
|
47
|
+
executionDialogExtra?: any;
|
|
50
48
|
/** When the winding status changes, no pop-up window will be displayed. */
|
|
51
49
|
noSubmissionDialog?: boolean;
|
|
52
|
-
|
|
50
|
+
showSubmissionSubmittedDialog?: boolean;
|
|
51
|
+
onProviderChanged?: (provider?: any) => void;
|
|
52
|
+
getStaticJsonRpcProviderByChainId?: Exclude<ConstructorParameters<typeof ContractRequests>[0], undefined>['getProvider'];
|
|
53
53
|
widgetRef?: React.RefObject<HTMLDivElement>;
|
|
54
|
+
/** If true is returned, the default wallet connection logic will not be executed */
|
|
55
|
+
onConnectWalletClick?: () => boolean | Promise<boolean>;
|
|
56
|
+
onSwitchChain?: (chainId?: ChainId) => Promise<boolean>;
|
|
54
57
|
/** When the token balance is insufficient, users can purchase or swap callbacks */
|
|
55
58
|
gotoBuyToken?: (params: {
|
|
56
59
|
token: TokenInfo;
|
|
@@ -90,8 +93,7 @@ export interface WidgetProps extends InitTokenListProps, ExecutionProps {
|
|
|
90
93
|
/** Default deadLine when it cannot be set. Unit: seconds */
|
|
91
94
|
deadLine?: number;
|
|
92
95
|
submission?: ExecutionCtx;
|
|
93
|
-
|
|
94
|
-
btcWalletStore?: WalletStore;
|
|
96
|
+
disableConnectedProviderRead?: boolean;
|
|
95
97
|
}
|
|
96
98
|
export { LangProvider } from '../../providers/i18n';
|
|
97
99
|
export { default as Message } from '../Message';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ExecutionProps } from '../../hooks/Submission';
|
|
3
|
-
export default function WithExecutionDialog({ children, executionStatus, showSubmitLoadingDialog, ...props }: {
|
|
3
|
+
export default function WithExecutionDialog({ children, executionStatus, showSubmitLoadingDialog, executionDialogExtra, ...props }: {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
+
executionDialogExtra?: any;
|
|
5
6
|
} & ExecutionProps): React.JSX.Element;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
1
|
export declare const EmptyAddress = "0x0000000000000000000000000000000000000000";
|
|
3
|
-
export declare const solanaFallbackAddress = "CVVQYs9Pi3t4it4KFpm3hxk97uDA6AVzNVJvGQTPH17n";
|
|
4
|
-
export declare const btcFallbackAddress = "tb1qcrd8yvatjzpxl0ew29jsps2z595jpwtm5mj38v";
|
|
5
|
-
export declare const suiFallbackAddress = "0xf5361d9079c5769b7b0c83841357f8f5b96d48b0477e1721e81c875ac7277e73";
|
|
6
|
-
export declare const tonFallbackAddress = "0QArAJPiEbfybbhm4XYU2ve5fIMozDvZvqU7wpVoKd-xJcRd";
|
|
7
|
-
export declare const getFallbackAddress: (chainId: ChainId | undefined) => string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContractRequests, TokenApi, ChainId } from '@dodoex/api';
|
|
2
2
|
export declare enum APIServiceKey {
|
|
3
3
|
routePrice = "routePrice",
|
|
4
|
-
solanaRoutePrice = "solanaRoutePrice",
|
|
5
4
|
fiatPrice = "fiatPrice",
|
|
6
5
|
bridgeRoutePrice = "bridgeRoutePrice",
|
|
7
6
|
bridgeEncode = "bridgeEncode",
|
|
@@ -12,100 +11,9 @@ export type APIServices = {
|
|
|
12
11
|
};
|
|
13
12
|
export declare const AppUrl = "https://app.dodoex.io";
|
|
14
13
|
export declare const getCGTokenListAPI: (chainId: ChainId) => any;
|
|
15
|
-
|
|
16
|
-
https://api.dodoex.io/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
"status": 200,
|
|
21
|
-
"data": {
|
|
22
|
-
"resAmount": 0.100184,
|
|
23
|
-
"resPricePerToToken": 0.9981633793819373,
|
|
24
|
-
"resPricePerFromToken": 1.0018399999999998,
|
|
25
|
-
"priceImpact": 0,
|
|
26
|
-
"useSource": "DODORoute",
|
|
27
|
-
"targetDecimals": 6,
|
|
28
|
-
"targetApproveAddr": "0x143bE32C854E4Ddce45aD48dAe3343821556D0c3",
|
|
29
|
-
"to": "0x026eea5c10f526153e7578E5257801f8610D1142",
|
|
30
|
-
"data": "0xff84aafa0000000000000000000000004bc32034caccc9b7e02536945edbc286bacba073000000000000000000000000cc683a782f4b30c138787cb5576a86af66fdc31d00000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000001875800000000000000000000000000000000000000000000000000000000000173c6000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000682d987600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000f9053e174c123098c17e60a2b1fab3b303f9e2900000000000000000000000000000000000000000000000000000000000000010000000000000000000000004f59b88556c1b133939b2655729ad53226ed5fad00000000000000000000000000000000000000000000000000000000000000020000000000000000000000004f59b88556c1b133939b2655729ad53226ed5fad000000000000000000000000026eea5c10f526153e7578e5257801f8610d11420000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
31
|
-
"minReturnAmount": "95174",
|
|
32
|
-
"gasLimit": "0",
|
|
33
|
-
"routeInfo": {
|
|
34
|
-
"subRouteTotalPart": 100,
|
|
35
|
-
"subRoute": [
|
|
36
|
-
{
|
|
37
|
-
"midPathPart": 100,
|
|
38
|
-
"midPath": [
|
|
39
|
-
{
|
|
40
|
-
"fromToken": "0x4bc32034caccc9b7e02536945edbc286bacba073",
|
|
41
|
-
"toToken": "0xcc683a782f4b30c138787cb5576a86af66fdc31d",
|
|
42
|
-
"oneSplitTotalPart": 20,
|
|
43
|
-
"poolDetails": [
|
|
44
|
-
{
|
|
45
|
-
"poolName": "DODOV2",
|
|
46
|
-
"pool": "0x4f59b88556c1b133939b2655729ad53226ed5fad",
|
|
47
|
-
"poolPart": 20,
|
|
48
|
-
"poolInAmount": "100000",
|
|
49
|
-
"poolOutAmount": "100184"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"fromAmount": "100000",
|
|
53
|
-
"toAmount": "100184"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"value": "0",
|
|
60
|
-
"id": "4767a82128f23ea114ae4f05c4faef21"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
*/
|
|
65
|
-
export declare const RoutePriceAPI = "https://api.dodoex.io/route-service/zetachain/swap";
|
|
66
|
-
/**
|
|
67
|
-
https://api.dodoex.io/route-service/zetachain/svm/swap?apikey=d5f476a6fd58e5e989&inputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&outputMint=Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB&amount=1000000&user=CjeWeg7Pfyq5VcakxaUwBHCZoEePKYuZTYgfkXaaiCw3&chainId=solana-mainnet&slippageBps=32&source=jupiter
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{
|
|
71
|
-
"status": 200,
|
|
72
|
-
"data": {
|
|
73
|
-
"resAmount": 0.999554,
|
|
74
|
-
"priceImpact": 0.00010563595848026669,
|
|
75
|
-
"useSource": "Jupiter",
|
|
76
|
-
"inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
|
|
77
|
-
"inAmount": "1000000",
|
|
78
|
-
"inputMintDecimal": 6,
|
|
79
|
-
"outputMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
|
|
80
|
-
"outAmount": "999554",
|
|
81
|
-
"outputMintDecimal": 6,
|
|
82
|
-
"minOutAmount": "996356",
|
|
83
|
-
"inAmountWithOutDecimals": 1,
|
|
84
|
-
"outAmountWithOutDecimals": 0.999554,
|
|
85
|
-
"slippageBps": 32,
|
|
86
|
-
"routePlan": [
|
|
87
|
-
{
|
|
88
|
-
"swapInfo": {
|
|
89
|
-
"ammKey": "5K7CHUbBYAh6wrantyJvDDqwT4VoKuZTi73CN1DTUUer",
|
|
90
|
-
"label": "Stabble Stable Swap",
|
|
91
|
-
"inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
|
|
92
|
-
"outputMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
|
|
93
|
-
"inAmount": "1000000",
|
|
94
|
-
"outAmount": "999554",
|
|
95
|
-
"feeAmount": "10",
|
|
96
|
-
"feeMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
|
|
97
|
-
},
|
|
98
|
-
"percent": 100
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"data": "AIABAAgLrl1dPXkIuWhzYVhFtYxb+JQ3GoZqa2pq14bW0E52rOJp7jJXlYhamzIeZUst3brLJbcQ9ZMduX/Gud3GUE0+/6/x/V52dT9Bjl8YSwqdPxo1PUQ8QzrmBC38ogNXtRwqxvp6877brTo9ZfNqq8l0MbG75MLS9uDkfKYCA0UvXWHOAQ5gr+2yJxe9YxkvVBRaP5ZaM7uC0scCnrLOHiCCZIyXJY9OJInxuz0QKRSODYMLWhOZ2v8QhASOe9jb6fhZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEedVb8jHAbu50xW7OaBUH/bGy3qP0jlECsc2iVrwTj7Q/+if11/ZKdMCbHylYed5LCas238ndUUsyGqezjOXoAwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAABynzuLbKQ30Ca3pj/0Wq5lWzvmdbFt2OddEbICsJmWXzN8dj2NJQ6itko+eogXWBEuAwQlfGA3cbUcKdhqHrdTAgkABQKcQBAACh4AAwQCAQ8FBg8AAgEHBAcIBxAAAgELDA0OERITFA9H4a81SdQvNO1AQg8AAAAAAIJADwAAAAAABDQPAAAAAAAjAAAA5RfLl3rjrSoBAAAAOGQAAUBCDwAAAAAAgkAPAAAAAAAgAAABWX05K6qoNBpFvohhQGiBxG4ZEV+GAgS6FrxyNTh9k9oETqYKoQYEERQMDQc=",
|
|
102
|
-
"lastValidBlockHeight": 319671584
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
*/
|
|
106
|
-
export declare const SolanaRoutePriceAPI = "https://api.dodoex.io/route-service/zetachain/svm/swap";
|
|
107
|
-
export declare const FiatPriceAPI = "https://api.dodoex.io/frontend-price-api-v2/current/batch";
|
|
14
|
+
export declare const RoutePriceAPI = "https://api.dodoex.io/route-service/v2/widget/getdodoroute";
|
|
15
|
+
export declare const FiatPriceAPI = "https://api.dodoex.io/frontend-price-api/current/batch";
|
|
108
16
|
export declare function getAPIService(key: APIServiceKey, serviceProps?: Partial<APIServices>): string;
|
|
109
17
|
export declare const contractRequests: ContractRequests;
|
|
18
|
+
export declare const tokenContractRequests: ContractRequests;
|
|
110
19
|
export declare const tokenApi: TokenApi;
|
|
111
|
-
export declare const swapApi: SwapApi;
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { AppKitNetwork } from '@reown/appkit/networks';
|
|
3
2
|
import { ReactComponent as ETHereumLogo } from '../assets/logo/networks/eth.svg';
|
|
4
3
|
export interface ChainListItem {
|
|
5
4
|
chainId: ChainId;
|
|
6
5
|
logo: typeof ETHereumLogo;
|
|
7
6
|
name: string;
|
|
8
7
|
mainnet?: ChainId;
|
|
9
|
-
caipNetwork: AppKitNetwork;
|
|
10
|
-
isEVMChain: boolean;
|
|
11
|
-
isSolanaChain: boolean;
|
|
12
|
-
isBTCChain: boolean;
|
|
13
|
-
isSUIChain: boolean;
|
|
14
|
-
isTONChain: boolean;
|
|
15
|
-
isTestNet: boolean;
|
|
16
|
-
/** 未链接钱包时,使用该地址 */
|
|
17
|
-
fallbackAddress: string;
|
|
18
8
|
}
|
|
19
9
|
export declare const chainListMap: Map<ChainId, ChainListItem>;
|
|
20
10
|
export declare const isTestNet: (chainId: ChainId) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export {
|
|
2
|
+
export { etherTokenAddress, basicTokenMap } from '@dodoex/api';
|
|
3
3
|
export declare const rpcServerMap: {
|
|
4
4
|
[key in ChainId]: Array<string>;
|
|
5
5
|
};
|
|
@@ -18,19 +18,3 @@ export declare const blockTimeMap: {
|
|
|
18
18
|
export declare const dexKeysMap: {
|
|
19
19
|
[key in ChainId]: string[];
|
|
20
20
|
};
|
|
21
|
-
export interface PrivacySwapSupplierEndpointI {
|
|
22
|
-
key: string;
|
|
23
|
-
name: string;
|
|
24
|
-
logo: string;
|
|
25
|
-
docUrl: string;
|
|
26
|
-
/** 添加链的配置 */
|
|
27
|
-
addChainParameters: AddChainParameter;
|
|
28
|
-
/** 是否在该节点的检查方法 */
|
|
29
|
-
isPrivacyEndpoint: {
|
|
30
|
-
contract: string;
|
|
31
|
-
rpcMethod: string;
|
|
32
|
-
} | null;
|
|
33
|
-
}
|
|
34
|
-
export declare const privacySwapSupplierEndpointsMap: {
|
|
35
|
-
[key in ChainId]: PrivacySwapSupplierEndpointI[];
|
|
36
|
-
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
declare const _default: {
|
|
2
|
+
chainId: number;
|
|
3
|
+
address: string;
|
|
4
|
+
name: string;
|
|
5
|
+
decimals: number;
|
|
6
|
+
symbol: string;
|
|
7
|
+
logoURI: string;
|
|
8
|
+
}[];
|
|
9
|
+
export default _default;
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
import { GraphQLRequests } from '@dodoex/api';
|
|
2
1
|
import { BridgeRouteI } from './useFetchRoutePriceBridge';
|
|
3
|
-
export
|
|
4
|
-
|
|
2
|
+
export interface BridgeOrderCreateParams {
|
|
3
|
+
fromChainId: number;
|
|
4
|
+
fromAmount: string;
|
|
5
|
+
fromTokenAddress: string;
|
|
6
|
+
toChainId: number;
|
|
7
|
+
toAmount: string;
|
|
8
|
+
toTokenAddress: string;
|
|
9
|
+
fromAddress: string;
|
|
10
|
+
toAddress: string;
|
|
11
|
+
slippage: number;
|
|
12
|
+
hash: string;
|
|
13
|
+
product: string | null;
|
|
14
|
+
extend: {
|
|
15
|
+
lifiBridge: BridgeRouteI['sourceRoute']['step']['tool'];
|
|
16
|
+
route: BridgeRouteI['sourceRoute'];
|
|
17
|
+
productParams: BridgeRouteI['productParams'];
|
|
18
|
+
encodeId: string;
|
|
19
|
+
source: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare function createBridgeOrder({ apikey, tx, route, bridgeCreateRouteAPI, encodeId, }: {
|
|
23
|
+
apikey?: string;
|
|
5
24
|
tx: string;
|
|
6
25
|
route: BridgeRouteI;
|
|
7
|
-
|
|
26
|
+
bridgeCreateRouteAPI: string;
|
|
27
|
+
encodeId: string;
|
|
8
28
|
}): Promise<any>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BridgeTXRequest } from '../../components/Bridge/BridgeSummaryDialog';
|
|
2
2
|
import { BridgeRouteI } from './useFetchRoutePriceBridge';
|
|
3
|
+
import { Metadata } from '../Submission/types';
|
|
3
4
|
export default function useExecuteBridgeRoute({ route, bridgeOrderTxRequest, }: {
|
|
4
5
|
route?: BridgeRouteI;
|
|
5
6
|
bridgeOrderTxRequest?: BridgeTXRequest;
|
|
6
|
-
}): () => Promise<import("../Submission/types").ExecutionResult> | undefined;
|
|
7
|
+
}): (metadata?: Metadata) => Promise<import("../Submission/types").ExecutionResult> | undefined;
|