@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.
Files changed (158) hide show
  1. package/README.md +39 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/Com.d.ts +4 -0
  4. package/dist/_redirects +2 -0
  5. package/dist/cetus-swap.cjs.js +114 -0
  6. package/dist/cetus-swap.cjs.js.gz +0 -0
  7. package/dist/cetus-swap.es.js +36047 -0
  8. package/dist/cetus-swap.es.js.gz +0 -0
  9. package/dist/cetus-swap.umd.js +114 -0
  10. package/dist/cetus-swap.umd.js.gz +0 -0
  11. package/dist/components/common/BackButton.d.ts +3 -0
  12. package/dist/components/common/Button.d.ts +8 -0
  13. package/dist/components/common/CopyButton.d.ts +4 -0
  14. package/dist/components/common/HaveBackHeader.d.ts +4 -0
  15. package/dist/components/common/HighlightText.d.ts +10 -0
  16. package/dist/components/common/Loading.d.ts +2 -0
  17. package/dist/components/common/MevButton.d.ts +1 -0
  18. package/dist/components/common/NumericFormatInput.d.ts +15 -0
  19. package/dist/components/common/RefreshButton.d.ts +3 -0
  20. package/dist/components/common/SettingsButton.d.ts +5 -0
  21. package/dist/components/common/SlippageButton.d.ts +4 -0
  22. package/dist/components/common/Spinner.d.ts +8 -0
  23. package/dist/components/common/SpinnerWithGap.d.ts +7 -0
  24. package/dist/components/common/Toast.d.ts +7 -0
  25. package/dist/components/common/TokenImage.d.ts +7 -0
  26. package/dist/components/common/Tooltip.d.ts +9 -0
  27. package/dist/components/common/TooltipV2.d.ts +9 -0
  28. package/dist/components/common/TsStatusDialog.d.ts +7 -0
  29. package/dist/components/common/wallet/AccountSwitch.d.ts +3 -0
  30. package/dist/components/common/wallet/ConnectButton.d.ts +1 -0
  31. package/dist/components/common/wallet/TriggerButton.d.ts +4 -0
  32. package/dist/components/demo/CodeBlocks.d.ts +1 -0
  33. package/dist/components/demo/DemoFooter.d.ts +1 -0
  34. package/dist/components/demo/DisplayModeBlock.d.ts +1 -0
  35. package/dist/components/demo/DisplayModeTab.d.ts +6 -0
  36. package/dist/components/demo/NavMenu.d.ts +1 -0
  37. package/dist/components/demo/SetingMenu.d.ts +1 -0
  38. package/dist/components/demo/SimulateDappWallet.d.ts +1 -0
  39. package/dist/components/demo/SwapPanel.d.ts +1 -0
  40. package/dist/components/demo/TerminalModalButton.d.ts +5 -0
  41. package/dist/components/demo/WidgetBlock.d.ts +7 -0
  42. package/dist/components/demo/WidgetBtn.d.ts +7 -0
  43. package/dist/components/demo/index.d.ts +1 -0
  44. package/dist/components/export/ExportModal.d.ts +4 -0
  45. package/dist/components/export/ExportWidgetBtn.d.ts +7 -0
  46. package/dist/components/swap/CurrentPriceBlock.d.ts +10 -0
  47. package/dist/components/swap/PriceImpact.d.ts +8 -0
  48. package/dist/components/swap/ReceivedBlock.d.ts +8 -0
  49. package/dist/components/swap/RouteDialog.d.ts +11 -0
  50. package/dist/components/swap/ScamsAlert.d.ts +5 -0
  51. package/dist/components/swap/SecondaryDialog.d.ts +8 -0
  52. package/dist/components/swap/SimpleRouter.d.ts +8 -0
  53. package/dist/components/swap/SwapHeader.d.ts +5 -0
  54. package/dist/components/swap/SwapTrade.d.ts +7 -0
  55. package/dist/components/swap/SwapWidget.d.ts +4 -0
  56. package/dist/components/swap/TestToast.d.ts +1 -0
  57. package/dist/components/swap/TokenSelect.d.ts +7 -0
  58. package/dist/components/swap/TokenSelectModal/CollectTokenBlock.d.ts +6 -0
  59. package/dist/components/swap/TokenSelectModal/NoData.d.ts +11 -0
  60. package/dist/components/swap/TokenSelectModal/PlatformTabs.d.ts +5 -0
  61. package/dist/components/swap/TokenSelectModal/PopularTokens.d.ts +1 -0
  62. package/dist/components/swap/TokenSelectModal/TokenList.d.ts +13 -0
  63. package/dist/components/swap/TokenSelectModal/TypeTabs.d.ts +4 -0
  64. package/dist/components/swap/TokenSelectModal/WarnTokenDialog.d.ts +6 -0
  65. package/dist/components/swap/TokenSelectModal/index.d.ts +6 -0
  66. package/dist/components/swap/TradeInput.d.ts +17 -0
  67. package/dist/components/swap/WidgetHeader.d.ts +4 -0
  68. package/dist/config/explorer.d.ts +2 -0
  69. package/dist/config/index.d.ts +11 -0
  70. package/dist/config/provider.d.ts +36 -0
  71. package/dist/config/rpc.d.ts +2 -0
  72. package/dist/config/token.d.ts +3 -0
  73. package/dist/data/pools.json +40563 -0
  74. package/dist/data/pools.json.gz +0 -0
  75. package/dist/favicon.ico +0 -0
  76. package/dist/hooks/common/useExplorer.d.ts +4 -0
  77. package/dist/hooks/common/useFetch.d.ts +3 -0
  78. package/dist/hooks/common/useFindBestRouting.d.ts +11 -0
  79. package/dist/hooks/common/useGetPoolListByCoinType.d.ts +3 -0
  80. package/dist/hooks/common/useGetRouterConfig.d.ts +3 -0
  81. package/dist/hooks/common/useInterval.d.ts +9 -0
  82. package/dist/hooks/common/useSigner.d.ts +8 -0
  83. package/dist/hooks/common/useSyncedRef.d.ts +1 -0
  84. package/dist/hooks/common/useTransaction.d.ts +5 -0
  85. package/dist/hooks/common/useWindowWidth.d.ts +4 -0
  86. package/dist/hooks/demo/useDisplayMode.d.ts +15 -0
  87. package/dist/hooks/demo/useRpcConfiguration.d.ts +10 -0
  88. package/dist/hooks/demo/useSeting.d.ts +0 -0
  89. package/dist/hooks/swap/usePriceImpact.d.ts +13 -0
  90. package/dist/hooks/swap/useSwap.d.ts +13 -0
  91. package/dist/hooks/swap/useSwapButtonStatus.d.ts +4 -0
  92. package/dist/hooks/swap/useSwapHelper.d.ts +49 -0
  93. package/dist/hooks/useDebounce.d.ts +4 -0
  94. package/dist/hooks/useGetPoolList.d.ts +22 -0
  95. package/dist/hooks/useGetTokenBalance.d.ts +5 -0
  96. package/dist/hooks/useInitWidget.d.ts +3 -0
  97. package/dist/hooks/useSuiClient.d.ts +1 -0
  98. package/dist/hooks/useToast.d.ts +7 -0
  99. package/dist/hooks/useTokenCollect.d.ts +6 -0
  100. package/dist/hooks/useTokenPrice.d.ts +6 -0
  101. package/dist/hooks/useTokenSelect.d.ts +11 -0
  102. package/dist/hooks/useTokens.d.ts +8 -0
  103. package/dist/images/aggregator-source/aftermath.png +0 -0
  104. package/dist/images/aggregator-source/bluefin.png +0 -0
  105. package/dist/images/aggregator-source/bluemove.png +0 -0
  106. package/dist/images/aggregator-source/cetus.png +0 -0
  107. package/dist/images/aggregator-source/deepbook.png +0 -0
  108. package/dist/images/aggregator-source/flowx.png +0 -0
  109. package/dist/images/aggregator-source/haedal.png +0 -0
  110. package/dist/images/aggregator-source/kriya.png +0 -0
  111. package/dist/images/aggregator-source/scallop.png +0 -0
  112. package/dist/images/aggregator-source/suilend.png +0 -0
  113. package/dist/images/aggregator-source/turbos.png +0 -0
  114. package/dist/images/aggregator-source/volo.png +0 -0
  115. package/dist/images/birdeye-logo.png +0 -0
  116. package/dist/images/ghost_loading.png +0 -0
  117. package/dist/images/icon_mev@2x.png +0 -0
  118. package/dist/images/img-logo@2x.png +0 -0
  119. package/dist/images/img_no_data@2x.png +0 -0
  120. package/dist/images/logo@2x.png +0 -0
  121. package/dist/images/logo_CoinGecko@2x.png +0 -0
  122. package/dist/images/logo_pyth.png +0 -0
  123. package/dist/images/logo_suiscan@2x.png +0 -0
  124. package/dist/images/logo_suivision@2x.png +0 -0
  125. package/dist/images/placeholder-token@2x.png +0 -0
  126. package/dist/images/primary_loading.png +0 -0
  127. package/dist/index.d.ts +2 -0
  128. package/dist/main.d.ts +0 -0
  129. package/dist/stores/account.d.ts +16 -0
  130. package/dist/stores/client.d.ts +10 -0
  131. package/dist/stores/common.d.ts +8 -0
  132. package/dist/stores/demo.d.ts +27 -0
  133. package/dist/stores/global.d.ts +52 -0
  134. package/dist/stores/price.d.ts +8 -0
  135. package/dist/stores/swap.d.ts +26 -0
  136. package/dist/stores/token.d.ts +13 -0
  137. package/dist/stores/tokenSelect.d.ts +30 -0
  138. package/dist/stores/transaction.d.ts +7 -0
  139. package/dist/style.css +1 -0
  140. package/dist/style.css.gz +0 -0
  141. package/dist/types/common.d.ts +91 -0
  142. package/dist/types/config.d.ts +13 -0
  143. package/dist/types/demo.d.ts +5 -0
  144. package/dist/types/index.d.ts +4 -0
  145. package/dist/types/sui.d.ts +33 -0
  146. package/dist/utils/common.d.ts +13 -0
  147. package/dist/utils/contract.d.ts +10 -0
  148. package/dist/utils/decimal.d.ts +2 -0
  149. package/dist/utils/error.d.ts +9 -0
  150. package/dist/utils/fetch.d.ts +8 -0
  151. package/dist/utils/formatter.d.ts +12 -0
  152. package/dist/utils/index.d.ts +8 -0
  153. package/dist/utils/localforage-key.d.ts +4 -0
  154. package/dist/utils/localforage-service.d.ts +6 -0
  155. package/dist/utils/number.d.ts +20 -0
  156. package/dist/vite-env.d.ts +1 -0
  157. package/dist/widget.d.ts +0 -0
  158. package/package.json +72 -0
Binary file
@@ -0,0 +1,3 @@
1
+ export default function BackButton({ onClick }: {
2
+ onClick: () => void;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ interface ButtonProps {
2
+ text: string;
3
+ className?: string;
4
+ btnIsDisabled?: boolean;
5
+ onClick?: () => void;
6
+ }
7
+ export default function ButtonCom(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ export default function CopyButton(props: {
2
+ text: string;
3
+ type?: "btn";
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default function HaveBackHeader({ title, backClick, }: {
2
+ title: string;
3
+ backClick: () => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ declare const GeneralLoading: () => import("react/jsx-runtime").JSX.Element;
2
+ export default GeneralLoading;
@@ -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,3 @@
1
+ export default function RefreshButto({ onClick }: {
2
+ onClick: () => void;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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,4 @@
1
+ export default function SlippageButton(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SlippageDialog({ onClose }: {
3
+ onClose: () => void;
4
+ }): 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,7 @@
1
+ import { ToastType } from '../../types';
2
+ type ToastProps = {
3
+ toastData: ToastType;
4
+ onClose: (id: number) => void;
5
+ };
6
+ export declare function Toast({ toastData, onClose }: ToastProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ export default function TokenImage({ src, alt, className, style, showWarn, ...props }: {
2
+ src?: string;
3
+ alt?: string;
4
+ className?: string;
5
+ showWarn?: boolean;
6
+ style?: React.CSSProperties;
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,3 @@
1
+ export default function AccountSwitch({ currentAccount, }: {
2
+ currentAccount: string | undefined;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function ConnectButtonCom(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare const TriggerButton: import('react').ForwardRefExoticComponent<{
2
+ connect: (value: boolean) => void;
3
+ } & import('react').RefAttributes<unknown>>;
4
+ export default TriggerButton;
@@ -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,6 @@
1
+ import { DisplayMode } from '../../types';
2
+ export default function DisplayModeTab({ tabList, currentTab, onChange, }: {
3
+ tabList: DisplayMode[];
4
+ currentTab: DisplayMode;
5
+ onChange: (value: DisplayMode) => void;
6
+ }): 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,5 @@
1
+ export default function TerminalModalButton({ onOpen, }: {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ onOpen: () => void;
5
+ }): 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,4 @@
1
+ export default function ExportModal({ initProps, customWallet, }: {
2
+ initProps: any;
3
+ customWallet: any;
4
+ }): 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,8 @@
1
+ type ReceivedBlockProps = {
2
+ pl?: string;
3
+ pr?: string;
4
+ amountLimit?: string;
5
+ isLoading: boolean;
6
+ };
7
+ export default function ReceivedBlock({ pr, pl, amountLimit, isLoading, }: ReceivedBlockProps): 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,5 @@
1
+ interface ScamsAlertProps {
2
+ scamsText: string;
3
+ }
4
+ declare function ScamsAlert({ scamsText }: ScamsAlertProps): import("react/jsx-runtime").JSX.Element;
5
+ export default ScamsAlert;
@@ -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,5 @@
1
+ type SwapHeaderProps = {
2
+ handleRefresh: () => void;
3
+ };
4
+ export default function SwapHeader({ handleRefresh }: SwapHeaderProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ type SwapTradeProps = {
2
+ refreshCount: number;
3
+ customWallet?: any;
4
+ initProps?: any;
5
+ };
6
+ export default function SwapTrade({ refreshCount, customWallet, initProps, }: SwapTradeProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ export default function SwapIndex({ initProps, customWallet, }: {
2
+ initProps?: any;
3
+ customWallet?: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function TestToast(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Token } from '../../types';
2
+ type TokenSelectProps = {
3
+ token?: Token;
4
+ handleTokenSelectClick?: () => void;
5
+ };
6
+ export default function TokenSelect(props: TokenSelectProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -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,5 @@
1
+ export default function PlatformTabs({ tabList, currentTab, changeTab, }: {
2
+ tabList: string[];
3
+ currentTab: string;
4
+ changeTab: (value: string) => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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,4 @@
1
+ export default function TypeTabs({ currentType, changeTab, }: {
2
+ currentType: string;
3
+ changeTab: (value: string) => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Token } from '../../../types';
2
+ export default function WarnTokenDialog({ onClose, tokenList, onSureClick, }: {
3
+ tokenList: Token[];
4
+ onClose: () => void;
5
+ onSureClick: () => void;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Token } from '../../../types';
2
+ export default function TokenSelectModal({ backClick, onSelectToken, currToken, }: {
3
+ backClick: () => void;
4
+ currToken?: Token;
5
+ onSelectToken: (token: Token) => void;
6
+ }): 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,4 @@
1
+ export default function WidgetHeader({ independentWallet, customWallet, }: {
2
+ independentWallet: boolean;
3
+ customWallet?: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ConfigLinkItem } from '../types';
2
+ export declare const ExplorerList: ConfigLinkItem[];
@@ -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>;
@@ -0,0 +1,2 @@
1
+ import { ConfigLinkItem } from '../types';
2
+ export declare const RpcMainnetNodes: ConfigLinkItem[];
@@ -0,0 +1,3 @@
1
+ import { Token } from '../types';
2
+ export declare const defaultSwapFromToken: Token;
3
+ export declare const defaultSwapToToken: Token;