@cetusprotocol/terminal 0.3.2 → 1.0.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/cetus-swap.cjs.js +45 -45
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +19722 -18156
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +45 -45
- package/dist/cetus-swap.umd.js.gz +0 -0
- package/dist/components/common/CopyButton.d.ts +1 -0
- package/dist/components/common/PowerByCetus.d.ts +3 -0
- package/dist/components/common/SlippageButton.d.ts +5 -2
- package/dist/components/common/TokenImage.d.ts +4 -1
- package/dist/components/common/Tooltip.d.ts +4 -1
- package/dist/components/common/TooltipV2.d.ts +2 -1
- package/dist/components/common/TransactionModeSetting.d.ts +11 -0
- package/dist/components/common/wallet/ConnectButton.d.ts +3 -1
- package/dist/components/common/wallet/TriggerButton.d.ts +1 -0
- package/dist/components/export/ExportModal.d.ts +2 -1
- package/dist/components/export/ExportWidgetBtn.d.ts +2 -2
- package/dist/components/swap/CurrentPriceBlock.d.ts +2 -1
- package/dist/components/swap/SwapHeader.d.ts +2 -1
- package/dist/components/swap/SwapWidget.d.ts +2 -1
- package/dist/components/swap/ThemeProvider.d.ts +7 -0
- package/dist/components/swap/WidgetHeader.d.ts +2 -1
- package/dist/components/theme/CustomLogo.d.ts +1 -0
- package/dist/components/theme/MenuCustomTheme.d.ts +1 -0
- package/dist/data/all-pools.json +74058 -0
- package/dist/data/all-pools.json.gz +0 -0
- package/dist/hooks/common/resolveCoinBalance.d.ts +3 -0
- package/dist/hooks/common/useFastModeTransaction.d.ts +7 -0
- package/dist/hooks/common/useGetPoolListByCoinType.d.ts +1 -0
- package/dist/hooks/common/useTransaction.d.ts +1 -1
- package/dist/hooks/useGetPoolList.d.ts +1 -0
- package/dist/images/icon_shio@2x.png +0 -0
- package/dist/images/logo_light@2x.png +0 -0
- package/dist/images/logo_pyth.png +0 -0
- package/dist/stores/demo.d.ts +7 -1
- package/dist/stores/global.d.ts +13 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/types/common.d.ts +3 -0
- package/dist/types/config.d.ts +24 -0
- package/dist/utils/color.d.ts +8 -0
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/error.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +13 -9
|
Binary file
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export default function SlippageButton(
|
|
2
|
-
|
|
1
|
+
export default function SlippageButton({ themeType }: {
|
|
2
|
+
themeType: string;
|
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function SlippageDialog({ onClose, themeType, }: {
|
|
5
|
+
themeType: string;
|
|
3
6
|
onClose: () => void;
|
|
4
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export default function TokenImage({ src, alt, className, style, showWarn, ...props }: {
|
|
1
|
+
export default function TokenImage({ token, src, alt, className, style, showWarn, haveBorder, showWarnSize, ...props }: {
|
|
2
2
|
src?: string;
|
|
3
3
|
alt?: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
showWarn?: boolean;
|
|
6
|
+
haveBorder?: boolean;
|
|
7
|
+
token?: any;
|
|
8
|
+
showWarnSize?: string;
|
|
6
9
|
style?: React.CSSProperties;
|
|
7
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,9 @@ interface TooltipProps {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
position?: "top" | "bottom" | "left" | "right";
|
|
6
6
|
delay?: number;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
marginTop?: string;
|
|
9
|
+
borderRadius?: string;
|
|
7
10
|
}
|
|
8
|
-
export default function Tooltip({ content, children, position, delay, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function Tooltip({ content, children, position, marginTop, borderRadius, delay, backgroundColor, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export {};
|
|
@@ -4,6 +4,7 @@ interface TooltipProps {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
position?: "top" | "bottom" | "left" | "right";
|
|
6
6
|
autoSwitchTooltip?: boolean;
|
|
7
|
+
borderRadius?: string;
|
|
7
8
|
}
|
|
8
|
-
export default function TooltipV2({ content, children, position, autoSwitchTooltip, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default function TooltipV2({ content, children, position, autoSwitchTooltip, borderRadius, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const TransactionModeSettings: (props: {
|
|
2
|
+
transactionMode: any;
|
|
3
|
+
setTransactionMode: (value: any) => void;
|
|
4
|
+
maxCapForGas: string;
|
|
5
|
+
setMaxCapForGas: (value: string) => void;
|
|
6
|
+
customGasPrice: string;
|
|
7
|
+
setCustomGasPrice: (value: string) => void;
|
|
8
|
+
suiBalance: string;
|
|
9
|
+
themeType: string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default TransactionModeSettings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WidgetBtnSize, WidgetDirection } from '../../types';
|
|
1
|
+
import { InitProps, WidgetBtnSize, WidgetDirection } from '../../types';
|
|
2
2
|
export default function ExportWidgetBtn({ size, direction, initProps, customWallet, }: {
|
|
3
3
|
size: WidgetBtnSize;
|
|
4
4
|
direction: WidgetDirection;
|
|
5
|
-
initProps:
|
|
5
|
+
initProps: InitProps;
|
|
6
6
|
customWallet: any;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,7 @@ type CurrentPriceProps = {
|
|
|
5
5
|
baseAmount: string;
|
|
6
6
|
quoteAmount: string;
|
|
7
7
|
loading: boolean;
|
|
8
|
+
fontSize?: string;
|
|
8
9
|
};
|
|
9
|
-
export default function CurrentPriceBlock({ baseToken, quoteToken, baseAmount, quoteAmount, loading, }: CurrentPriceProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function CurrentPriceBlock({ baseToken, quoteToken, baseAmount, quoteAmount, loading, fontSize, }: CurrentPriceProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type SwapHeaderProps = {
|
|
2
2
|
handleRefresh: () => void;
|
|
3
|
+
themeType: string;
|
|
3
4
|
};
|
|
4
|
-
export default function SwapHeader({ handleRefresh }: SwapHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default function SwapHeader({ handleRefresh, themeType, }: SwapHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export default function WidgetHeader({ independentWallet, customWallet, }: {
|
|
1
|
+
export default function WidgetHeader({ independentWallet, customWallet, logo, }: {
|
|
2
2
|
independentWallet: boolean;
|
|
3
3
|
customWallet?: any;
|
|
4
|
+
logo?: string;
|
|
4
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CustomLogo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MenuCustomTheme(): import("react/jsx-runtime").JSX.Element;
|