@cetusprotocol/terminal 2.0.4 → 2.0.6
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 +39 -62
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +24719 -26055
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +39 -62
- package/dist/cetus-swap.umd.js.gz +0 -0
- package/dist/components/common/SlippageButton.d.ts +2 -5
- package/dist/components/swap/SwapHeader.d.ts +1 -2
- package/dist/shims/react-jsx-runtime.d.ts +8 -0
- package/dist/stores/global.d.ts +0 -17
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/types/common.d.ts +0 -4
- package/dist/utils/error.d.ts +0 -1
- package/package.json +4 -6
- package/dist/components/common/MevButton.d.ts +0 -1
- package/dist/components/common/TransactionModeSetting.d.ts +0 -11
- package/dist/hooks/common/useFastModeTransaction.d.ts +0 -1
|
Binary file
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export default function SlippageButton(
|
|
2
|
-
|
|
3
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function SlippageDialog({ onClose, themeType, }: {
|
|
5
|
-
themeType: string;
|
|
1
|
+
export default function SlippageButton(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function SlippageDialog({ onClose }: {
|
|
6
3
|
onClose: () => void;
|
|
7
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
type SwapHeaderProps = {
|
|
2
2
|
handleRefresh: () => void;
|
|
3
|
-
themeType: string;
|
|
4
3
|
};
|
|
5
|
-
export default function SwapHeader({ handleRefresh
|
|
4
|
+
export default function SwapHeader({ handleRefresh }: SwapHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createElement, Fragment, Key } from 'react';
|
|
2
|
+
type JsxProps = Record<string, unknown> | null;
|
|
3
|
+
type JsxType = Parameters<typeof createElement>[0];
|
|
4
|
+
declare function createJsxElement(type: JsxType, props: JsxProps, key?: Key): import('react').ReactElement<{}, string | import('react').JSXElementConstructor<any>>;
|
|
5
|
+
export { Fragment };
|
|
6
|
+
export declare const jsx: typeof createJsxElement;
|
|
7
|
+
export declare const jsxs: typeof createJsxElement;
|
|
8
|
+
export declare const jsxDEV: typeof createJsxElement;
|
package/dist/stores/global.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AggregatorProvider } from '../config/provider';
|
|
2
2
|
import { ConfigLinkItem } from '../types';
|
|
3
|
-
export type TransactionMode = "Default" | "Fast Mode";
|
|
4
3
|
interface GlobalState {
|
|
5
4
|
currentExplorer: string;
|
|
6
5
|
setCurrentExplorer: (value: string) => void;
|
|
@@ -18,14 +17,6 @@ interface GlobalState {
|
|
|
18
17
|
setProviders: (providers: AggregatorProvider[]) => void;
|
|
19
18
|
poolApiMap: Record<string, any[]>;
|
|
20
19
|
setPoolApiMap: (key: string, poolAddress: any[]) => void;
|
|
21
|
-
mevProtect: boolean;
|
|
22
|
-
setMevProtect: (value: boolean) => void;
|
|
23
|
-
transactionMode: TransactionMode;
|
|
24
|
-
setTransctionMode: (value: TransactionMode) => void;
|
|
25
|
-
maxCapForGas: string;
|
|
26
|
-
setMaxCapForGas: (value: string) => void;
|
|
27
|
-
customGasPrice: string;
|
|
28
|
-
setCustomGasPrice: (value: string) => void;
|
|
29
20
|
ignoreWarnTokenMap: Record<string, boolean>;
|
|
30
21
|
setIgnoreWarnToken: (coin_type: string) => void;
|
|
31
22
|
}
|
|
@@ -39,11 +30,7 @@ declare const useGlobalStore: import('zustand').UseBoundStore<Omit<import('zusta
|
|
|
39
30
|
slippage: string;
|
|
40
31
|
customRpc: string;
|
|
41
32
|
providers: AggregatorProvider[];
|
|
42
|
-
mevProtect: boolean;
|
|
43
33
|
ignoreWarnTokenMap: Record<string, boolean>;
|
|
44
|
-
transactionMode: TransactionMode;
|
|
45
|
-
maxCapForGas: string;
|
|
46
|
-
customGasPrice: string;
|
|
47
34
|
}, unknown>>) => void;
|
|
48
35
|
clearStorage: () => void;
|
|
49
36
|
rehydrate: () => Promise<void> | void;
|
|
@@ -56,11 +43,7 @@ declare const useGlobalStore: import('zustand').UseBoundStore<Omit<import('zusta
|
|
|
56
43
|
slippage: string;
|
|
57
44
|
customRpc: string;
|
|
58
45
|
providers: AggregatorProvider[];
|
|
59
|
-
mevProtect: boolean;
|
|
60
46
|
ignoreWarnTokenMap: Record<string, boolean>;
|
|
61
|
-
transactionMode: TransactionMode;
|
|
62
|
-
maxCapForGas: string;
|
|
63
|
-
customGasPrice: string;
|
|
64
47
|
}, unknown>>;
|
|
65
48
|
};
|
|
66
49
|
}>;
|