@cetusprotocol/terminal 0.0.0-experimental-1737427725035
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 +39 -0
- package/dist/App.d.ts +2 -0
- package/dist/Com.d.ts +4 -0
- package/dist/_redirects +2 -0
- package/dist/cetus-swap.cjs.js +114 -0
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +36047 -0
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +114 -0
- package/dist/cetus-swap.umd.js.gz +0 -0
- package/dist/components/common/BackButton.d.ts +3 -0
- package/dist/components/common/Button.d.ts +8 -0
- package/dist/components/common/CopyButton.d.ts +4 -0
- package/dist/components/common/HaveBackHeader.d.ts +4 -0
- package/dist/components/common/HighlightText.d.ts +10 -0
- package/dist/components/common/Loading.d.ts +2 -0
- package/dist/components/common/MevButton.d.ts +1 -0
- package/dist/components/common/NumericFormatInput.d.ts +15 -0
- package/dist/components/common/RefreshButton.d.ts +3 -0
- package/dist/components/common/SettingsButton.d.ts +5 -0
- package/dist/components/common/SlippageButton.d.ts +4 -0
- package/dist/components/common/Spinner.d.ts +8 -0
- package/dist/components/common/SpinnerWithGap.d.ts +7 -0
- package/dist/components/common/Toast.d.ts +7 -0
- package/dist/components/common/TokenImage.d.ts +7 -0
- package/dist/components/common/Tooltip.d.ts +9 -0
- package/dist/components/common/TooltipV2.d.ts +9 -0
- package/dist/components/common/TsStatusDialog.d.ts +7 -0
- package/dist/components/common/wallet/AccountSwitch.d.ts +3 -0
- package/dist/components/common/wallet/ConnectButton.d.ts +1 -0
- package/dist/components/common/wallet/TriggerButton.d.ts +4 -0
- package/dist/components/demo/CodeBlocks.d.ts +1 -0
- package/dist/components/demo/DemoFooter.d.ts +1 -0
- package/dist/components/demo/DisplayModeBlock.d.ts +1 -0
- package/dist/components/demo/DisplayModeTab.d.ts +6 -0
- package/dist/components/demo/NavMenu.d.ts +1 -0
- package/dist/components/demo/SetingMenu.d.ts +1 -0
- package/dist/components/demo/SimulateDappWallet.d.ts +1 -0
- package/dist/components/demo/SwapPanel.d.ts +1 -0
- package/dist/components/demo/TerminalModalButton.d.ts +5 -0
- package/dist/components/demo/WidgetBlock.d.ts +7 -0
- package/dist/components/demo/WidgetBtn.d.ts +7 -0
- package/dist/components/demo/index.d.ts +1 -0
- package/dist/components/export/ExportModal.d.ts +4 -0
- package/dist/components/export/ExportWidgetBtn.d.ts +7 -0
- package/dist/components/swap/CurrentPriceBlock.d.ts +10 -0
- package/dist/components/swap/PriceImpact.d.ts +8 -0
- package/dist/components/swap/ReceivedBlock.d.ts +8 -0
- package/dist/components/swap/RouteDialog.d.ts +11 -0
- package/dist/components/swap/ScamsAlert.d.ts +5 -0
- package/dist/components/swap/SecondaryDialog.d.ts +8 -0
- package/dist/components/swap/SimpleRouter.d.ts +8 -0
- package/dist/components/swap/SwapHeader.d.ts +5 -0
- package/dist/components/swap/SwapTrade.d.ts +7 -0
- package/dist/components/swap/SwapWidget.d.ts +4 -0
- package/dist/components/swap/TestToast.d.ts +1 -0
- package/dist/components/swap/TokenSelect.d.ts +7 -0
- package/dist/components/swap/TokenSelectModal/CollectTokenBlock.d.ts +6 -0
- package/dist/components/swap/TokenSelectModal/NoData.d.ts +11 -0
- package/dist/components/swap/TokenSelectModal/PlatformTabs.d.ts +5 -0
- package/dist/components/swap/TokenSelectModal/PopularTokens.d.ts +1 -0
- package/dist/components/swap/TokenSelectModal/TokenList.d.ts +13 -0
- package/dist/components/swap/TokenSelectModal/TypeTabs.d.ts +4 -0
- package/dist/components/swap/TokenSelectModal/WarnTokenDialog.d.ts +6 -0
- package/dist/components/swap/TokenSelectModal/index.d.ts +6 -0
- package/dist/components/swap/TradeInput.d.ts +17 -0
- package/dist/components/swap/WidgetHeader.d.ts +4 -0
- package/dist/config/explorer.d.ts +2 -0
- package/dist/config/index.d.ts +11 -0
- package/dist/config/provider.d.ts +36 -0
- package/dist/config/rpc.d.ts +2 -0
- package/dist/config/token.d.ts +3 -0
- package/dist/data/pools.json +40563 -0
- package/dist/data/pools.json.gz +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/hooks/common/useExplorer.d.ts +4 -0
- package/dist/hooks/common/useFetch.d.ts +3 -0
- package/dist/hooks/common/useFindBestRouting.d.ts +11 -0
- package/dist/hooks/common/useGetPoolListByCoinType.d.ts +3 -0
- package/dist/hooks/common/useGetRouterConfig.d.ts +3 -0
- package/dist/hooks/common/useInterval.d.ts +9 -0
- package/dist/hooks/common/useSigner.d.ts +8 -0
- package/dist/hooks/common/useSyncedRef.d.ts +1 -0
- package/dist/hooks/common/useTransaction.d.ts +5 -0
- package/dist/hooks/common/useWindowWidth.d.ts +4 -0
- package/dist/hooks/demo/useDisplayMode.d.ts +15 -0
- package/dist/hooks/demo/useRpcConfiguration.d.ts +10 -0
- package/dist/hooks/demo/useSeting.d.ts +0 -0
- package/dist/hooks/swap/usePriceImpact.d.ts +13 -0
- package/dist/hooks/swap/useSwap.d.ts +13 -0
- package/dist/hooks/swap/useSwapButtonStatus.d.ts +4 -0
- package/dist/hooks/swap/useSwapHelper.d.ts +49 -0
- package/dist/hooks/useDebounce.d.ts +4 -0
- package/dist/hooks/useGetPoolList.d.ts +22 -0
- package/dist/hooks/useGetTokenBalance.d.ts +5 -0
- package/dist/hooks/useInitWidget.d.ts +3 -0
- package/dist/hooks/useSuiClient.d.ts +1 -0
- package/dist/hooks/useToast.d.ts +7 -0
- package/dist/hooks/useTokenCollect.d.ts +6 -0
- package/dist/hooks/useTokenPrice.d.ts +6 -0
- package/dist/hooks/useTokenSelect.d.ts +11 -0
- package/dist/hooks/useTokens.d.ts +8 -0
- package/dist/images/aggregator-source/aftermath.png +0 -0
- package/dist/images/aggregator-source/bluefin.png +0 -0
- package/dist/images/aggregator-source/bluemove.png +0 -0
- package/dist/images/aggregator-source/cetus.png +0 -0
- package/dist/images/aggregator-source/deepbook.png +0 -0
- package/dist/images/aggregator-source/flowx.png +0 -0
- package/dist/images/aggregator-source/haedal.png +0 -0
- package/dist/images/aggregator-source/kriya.png +0 -0
- package/dist/images/aggregator-source/scallop.png +0 -0
- package/dist/images/aggregator-source/suilend.png +0 -0
- package/dist/images/aggregator-source/turbos.png +0 -0
- package/dist/images/aggregator-source/volo.png +0 -0
- package/dist/images/birdeye-logo.png +0 -0
- package/dist/images/ghost_loading.png +0 -0
- package/dist/images/icon_mev@2x.png +0 -0
- package/dist/images/img-logo@2x.png +0 -0
- package/dist/images/img_no_data@2x.png +0 -0
- package/dist/images/logo@2x.png +0 -0
- package/dist/images/logo_CoinGecko@2x.png +0 -0
- package/dist/images/logo_pyth.png +0 -0
- package/dist/images/logo_suiscan@2x.png +0 -0
- package/dist/images/logo_suivision@2x.png +0 -0
- package/dist/images/placeholder-token@2x.png +0 -0
- package/dist/images/primary_loading.png +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/stores/account.d.ts +16 -0
- package/dist/stores/client.d.ts +10 -0
- package/dist/stores/common.d.ts +8 -0
- package/dist/stores/demo.d.ts +27 -0
- package/dist/stores/global.d.ts +52 -0
- package/dist/stores/price.d.ts +8 -0
- package/dist/stores/swap.d.ts +26 -0
- package/dist/stores/token.d.ts +13 -0
- package/dist/stores/tokenSelect.d.ts +30 -0
- package/dist/stores/transaction.d.ts +7 -0
- package/dist/style.css +1 -0
- package/dist/style.css.gz +0 -0
- package/dist/types/common.d.ts +91 -0
- package/dist/types/config.d.ts +13 -0
- package/dist/types/demo.d.ts +5 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/sui.d.ts +33 -0
- package/dist/utils/common.d.ts +13 -0
- package/dist/utils/contract.d.ts +10 -0
- package/dist/utils/decimal.d.ts +2 -0
- package/dist/utils/error.d.ts +9 -0
- package/dist/utils/fetch.d.ts +8 -0
- package/dist/utils/formatter.d.ts +12 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/localforage-key.d.ts +4 -0
- package/dist/utils/localforage-service.d.ts +6 -0
- package/dist/utils/number.d.ts +20 -0
- package/dist/vite-env.d.ts +1 -0
- package/dist/widget.d.ts +0 -0
- package/package.json +72 -0
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type HighlightTextProps = {
|
|
2
|
+
text: string;
|
|
3
|
+
text_color?: string;
|
|
4
|
+
text_size?: string;
|
|
5
|
+
text_highlight_color?: string;
|
|
6
|
+
keywords: string[];
|
|
7
|
+
onKeywordClick: (key: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export default function HighlightText(props: HighlightTextProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MevButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InputAttributes, NumericFormatProps } from 'react-number-format';
|
|
2
|
+
interface NumericFormatInputParams extends Omit<NumericFormatProps<InputAttributes>, "onChange"> {
|
|
3
|
+
value: string;
|
|
4
|
+
decimals?: number;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
maxValue?: number;
|
|
7
|
+
minValue?: number;
|
|
8
|
+
inputAllowed?: boolean;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
style?: Record<string, string | number>;
|
|
11
|
+
className?: string;
|
|
12
|
+
onChange: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export default function NumericFormatInput(props: NumericFormatInputParams): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export default function SettingsButton(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function ExplorerSettings(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function RpcNodeSettings({ onClose }: {
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface SpinnerProps {
|
|
3
|
+
wrapStyle?: React.CSSProperties;
|
|
4
|
+
size?: string | number;
|
|
5
|
+
variant?: "primary" | "ghost";
|
|
6
|
+
}
|
|
7
|
+
export default function Spinner({ size, variant, wrapStyle, }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default function SpinnerWithGap({ size, strokeWidth, color, emptyColor, gapPercentage, }: {
|
|
2
|
+
size?: string | undefined;
|
|
3
|
+
strokeWidth?: string | undefined;
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
emptyColor?: string | undefined;
|
|
6
|
+
gapPercentage?: number | undefined;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface TooltipProps {
|
|
3
|
+
content: React.ReactNode;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
6
|
+
delay?: number;
|
|
7
|
+
}
|
|
8
|
+
export default function Tooltip({ content, children, position, delay, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface TooltipProps {
|
|
3
|
+
content: React.ReactNode;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
6
|
+
autoSwitchTooltip?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function TooltipV2({ content, children, position, autoSwitchTooltip, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ToastType } from '../../types';
|
|
2
|
+
type TsStatusDialogProps = {
|
|
3
|
+
transactionData: ToastType;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
};
|
|
6
|
+
export default function TsStatusDialog({ onClose, transactionData, }: TsStatusDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ConnectButtonCom(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CodeBlocks(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DemoFooter(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DisplayModeBlock(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function NavMenu(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SetingMenu(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SimulateDappWallet(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SwapPanel(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetBtnSize, WidgetDirection } from '../../types';
|
|
2
|
+
export default function WidgetBlock({ currentDirection, changeDirection, changeBtnSize, currentBtnSize, }: {
|
|
3
|
+
currentDirection: WidgetDirection;
|
|
4
|
+
changeDirection: (value: WidgetDirection) => void;
|
|
5
|
+
currentBtnSize: WidgetBtnSize;
|
|
6
|
+
changeBtnSize: (value: WidgetBtnSize) => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetBtnSize, WidgetDirection } from '../../types';
|
|
2
|
+
export default function WidgetBtn({ size, direction, isOpen, onToggle, }: {
|
|
3
|
+
size: WidgetBtnSize;
|
|
4
|
+
direction: WidgetDirection;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onToggle: () => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DemoIndex(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetBtnSize, WidgetDirection } from '../../types';
|
|
2
|
+
export default function ExportWidgetBtn({ size, direction, initProps, customWallet, }: {
|
|
3
|
+
size: WidgetBtnSize;
|
|
4
|
+
direction: WidgetDirection;
|
|
5
|
+
initProps: any;
|
|
6
|
+
customWallet: any;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Token } from '../../types';
|
|
2
|
+
type CurrentPriceProps = {
|
|
3
|
+
baseToken: Token;
|
|
4
|
+
quoteToken: Token;
|
|
5
|
+
baseAmount: string;
|
|
6
|
+
quoteAmount: string;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
};
|
|
9
|
+
export default function CurrentPriceBlock({ baseToken, quoteToken, baseAmount, quoteAmount, loading, }: CurrentPriceProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SwapRouterData } from '../../types/common';
|
|
2
|
+
type PriceImpactProps = {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
routerData?: SwapRouterData;
|
|
5
|
+
noTips?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default function PriceImpact({ isLoading, routerData, noTips, }: PriceImpactProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SwapRouterFormat } from '../../types/common';
|
|
2
|
+
type RouteDialogProps = {
|
|
3
|
+
data?: SwapRouterFormat;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
toBack: () => void;
|
|
6
|
+
};
|
|
7
|
+
export default function RouteDialog({ toBack, data, isLoading, }: RouteDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function RouteItem({ path }: {
|
|
9
|
+
path: any;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SwapRouterData } from '../../types';
|
|
2
|
+
type SecondaryDialogProps = {
|
|
3
|
+
data: SwapRouterData;
|
|
4
|
+
toBack: () => void;
|
|
5
|
+
onSubmitClick: (data: SwapRouterData) => void;
|
|
6
|
+
};
|
|
7
|
+
export default function SecondaryDialog({ toBack, onSubmitClick, data, }: SecondaryDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SwapRouterFormat } from '../../types';
|
|
2
|
+
type SimpleRouterProps = {
|
|
3
|
+
hasSubMenu: boolean;
|
|
4
|
+
formatSwapRouter?: SwapRouterFormat;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default function SimpleRouter({ hasSubMenu, isLoading, formatSwapRouter, }: SimpleRouterProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TestToast(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Token, TokenActionType } from '../../../types';
|
|
2
|
+
export type CollectTokenBlockProps = {
|
|
3
|
+
tokenList: Token[];
|
|
4
|
+
onHandleTokenAction: (data: Token, actionType: TokenActionType) => void;
|
|
5
|
+
};
|
|
6
|
+
export default function CollectTokenBlock({ tokenList, onHandleTokenAction, }: CollectTokenBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface NoDataProps {
|
|
3
|
+
img?: string;
|
|
4
|
+
text?: string | React.ReactNode;
|
|
5
|
+
width?: string;
|
|
6
|
+
height?: string;
|
|
7
|
+
padding?: string;
|
|
8
|
+
subItem?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export default function NoData(props: NoDataProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function PopularTokens(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Token, TokenActionType } from '../../../types';
|
|
2
|
+
export default function TokenList({ showTokenList, onHandleTokenAction, showCollect, showDelete, }: {
|
|
3
|
+
showTokenList: Token[];
|
|
4
|
+
onHandleTokenAction: (data: Token, actionType: TokenActionType) => void;
|
|
5
|
+
showCollect?: boolean;
|
|
6
|
+
showDelete?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TokenListItem({ data, showCollect, showDelete, onHandleTokenAction, }: {
|
|
9
|
+
data: any;
|
|
10
|
+
showCollect: boolean;
|
|
11
|
+
showDelete: boolean;
|
|
12
|
+
onHandleTokenAction: (data: Token, actionType: TokenActionType) => void;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Token, TokenBalance } from '../../types/common';
|
|
2
|
+
type TradeInputProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
amount: string;
|
|
5
|
+
amountValue?: string;
|
|
6
|
+
balance?: TokenBalance;
|
|
7
|
+
onInputChange: (value: string) => void;
|
|
8
|
+
handleTokenSelectClick?: () => void;
|
|
9
|
+
token?: Token;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
showMax?: boolean;
|
|
12
|
+
showHalf?: boolean;
|
|
13
|
+
inputAllowed?: boolean;
|
|
14
|
+
marginTop?: string;
|
|
15
|
+
};
|
|
16
|
+
export default function TradeInput({ label, amount, amountValue, balance, onInputChange, handleTokenSelectClick, token, loading, showMax, showHalf, inputAllowed, marginTop, }: TradeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EnvConfig } from '../types';
|
|
2
|
+
export * from './explorer';
|
|
3
|
+
export * from './rpc';
|
|
4
|
+
export declare const SlippageList: {
|
|
5
|
+
display: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const APP_ENV = "mainnet";
|
|
9
|
+
declare const _default: EnvConfig;
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const DefaultTerminalPartner = "0x45f3c0814d7be4aa5fbd32d7e3c40f3c062a2b63eaf5ec4f8c1539b5987b11af";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare enum AggregatorProvider {
|
|
2
|
+
CETUS = "CETUS",
|
|
3
|
+
KRIYA = "KRIYA",
|
|
4
|
+
KRIYAV3 = "KRIYAV3",
|
|
5
|
+
FLOWX = "FLOWX",
|
|
6
|
+
FLOWXV3 = "FLOWXV3",
|
|
7
|
+
AFTERMATH = "AFTERMATH",
|
|
8
|
+
HAEDAL = "HAEDAL",
|
|
9
|
+
VOLO = "VOLO",
|
|
10
|
+
AFSUI = "AFSUI",
|
|
11
|
+
DEEPBOOKV3 = "DEEPBOOKV3",
|
|
12
|
+
SCALLOP = "SCALLOP",
|
|
13
|
+
BLUEMOVE = "BLUEMOVE",
|
|
14
|
+
TURBOS = "TURBOS",
|
|
15
|
+
SPRINGSUI = "SPRINGSUI",
|
|
16
|
+
BLUEFIN = "BLUEFIN",
|
|
17
|
+
HAEDALPMM = "HAEDALPMM",
|
|
18
|
+
ALPHAFI = "ALPHAFI"
|
|
19
|
+
}
|
|
20
|
+
export type MarketType = "pyth" | "coingecko" | "birdeye" | "Cetus";
|
|
21
|
+
export type AggregatorDex = {
|
|
22
|
+
name: string;
|
|
23
|
+
id: AggregatorProvider;
|
|
24
|
+
logo: string;
|
|
25
|
+
type: string;
|
|
26
|
+
sort: number;
|
|
27
|
+
subItems?: AggregatorDex[];
|
|
28
|
+
};
|
|
29
|
+
export declare const MarketSourceMap: Record<MarketType, string>;
|
|
30
|
+
export declare const MarketSourceLogoMap: Record<MarketType, string>;
|
|
31
|
+
export declare const AggregatorSourceImg: Record<AggregatorProvider, string>;
|
|
32
|
+
export declare const AggregatorDexGroup: {
|
|
33
|
+
groupName: string;
|
|
34
|
+
items: AggregatorProvider[];
|
|
35
|
+
}[];
|
|
36
|
+
export declare const AggregatorDexMap: Record<string, AggregatorDex>;
|