@cetusprotocol/terminal 2.0.3 → 2.0.5
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 +44 -44
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +22693 -23344
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +46 -46
- 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/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 +2 -4
- 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
package/dist/style.css.gz
CHANGED
|
Binary file
|
package/dist/types/common.d.ts
CHANGED
|
@@ -65,11 +65,7 @@ export type ToastType = {
|
|
|
65
65
|
};
|
|
66
66
|
export type TransactionOption = {
|
|
67
67
|
useDevInspect?: boolean;
|
|
68
|
-
useMev?: boolean;
|
|
69
68
|
txAction?: "signTransactionBlock" | "signAndExecuteTransactionBlock";
|
|
70
|
-
useFastMode?: boolean;
|
|
71
|
-
maxCapForGas?: string;
|
|
72
|
-
customGasPrice?: string;
|
|
73
69
|
};
|
|
74
70
|
export type SwapRouterFormat = {
|
|
75
71
|
router_summery: string;
|
package/dist/utils/error.d.ts
CHANGED
|
@@ -7,5 +7,4 @@ export declare function isUserRejectedError(error: any): any;
|
|
|
7
7
|
export declare function isPriceSlippageError(error: any): boolean;
|
|
8
8
|
export declare function isNotFindTxHashError(error: any): boolean;
|
|
9
9
|
export declare function isMaxCapError(error: any): boolean;
|
|
10
|
-
export declare function isFastModeServiceError(error: any): boolean;
|
|
11
10
|
export declare function handleErrorMessages(error: any): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cetusprotocol/terminal",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "dist/cetus-swap.cjs.js",
|
|
6
6
|
"module": "dist/cetus-swap.es.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"publish:lib": "npm run manifest:npm && npm run build:lib && npm publish"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@cetusprotocol/aggregator-sdk": "1.5.
|
|
30
|
+
"@cetusprotocol/aggregator-sdk": "1.5.3",
|
|
31
31
|
"@radix-ui/colors": "^3.0.0",
|
|
32
32
|
"@radix-ui/react-icons": "^1.3.0",
|
|
33
33
|
"@radix-ui/themes": "^2.0.0",
|
|
@@ -41,8 +41,6 @@
|
|
|
41
41
|
"react-number-format": "^5.4.2",
|
|
42
42
|
"react-syntax-highlighter": "^15.6.1",
|
|
43
43
|
"react-window": "^1.8.11",
|
|
44
|
-
"shio-fast-sdk": "^0.0.6",
|
|
45
|
-
"shio-sdk": "^1.0.8",
|
|
46
44
|
"suihoneypot": "^0.0.6",
|
|
47
45
|
"uuid": "^11.0.2",
|
|
48
46
|
"zustand": "^5.0.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function MevButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export default function useFastModeTransaction(): any;
|