@cetusprotocol/terminal 0.1.9 → 0.2.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 +36 -36
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +11584 -11097
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +36 -36
- package/dist/cetus-swap.umd.js.gz +0 -0
- package/dist/hooks/swap/usePriceImpact.d.ts +1 -0
- package/dist/hooks/useGetMyAssetsPrice.d.ts +1 -0
- package/dist/utils/common.d.ts +1 -0
- package/package.json +7 -6
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useGetMyAssetsPrice(): void;
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export declare function getBalanceChanges(balanceChanges: Record<string, Balance
|
|
|
11
11
|
export declare function getCdnAssets(path: string): string;
|
|
12
12
|
export declare const textEllipses: (text: string, decimals?: number) => string;
|
|
13
13
|
export declare const coinTypeEquals: (tokenA?: string, tokenB?: string) => boolean;
|
|
14
|
+
export declare const isAvailableObject: (obj: unknown) => boolean;
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cetusprotocol/terminal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "dist/cetus-swap.cjs.js",
|
|
6
6
|
"module": "dist/cetus-swap.es.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
8
|
+
"files": ["dist"],
|
|
11
9
|
"peerDependencies": {
|
|
12
10
|
"@mysten/dapp-kit": ">=0.14.0",
|
|
13
11
|
"react": ">=18.2.0",
|
|
@@ -20,7 +18,7 @@
|
|
|
20
18
|
"preview": "vite preview"
|
|
21
19
|
},
|
|
22
20
|
"dependencies": {
|
|
23
|
-
"@cetusprotocol/aggregator-sdk": "^0.
|
|
21
|
+
"@cetusprotocol/aggregator-sdk": "^0.5.0",
|
|
24
22
|
"@mysten/sui": "^1.16.0",
|
|
25
23
|
"@radix-ui/colors": "^3.0.0",
|
|
26
24
|
"@radix-ui/react-icons": "^1.3.0",
|
|
@@ -67,6 +65,9 @@
|
|
|
67
65
|
"typescript": "^5.3.3",
|
|
68
66
|
"vite": "^4.4.4",
|
|
69
67
|
"vite-plugin-compression": "^0.5.1",
|
|
70
|
-
"vite-plugin-dts": "^4.4.0"
|
|
68
|
+
"vite-plugin-dts": "^4.4.0",
|
|
69
|
+
"@mysten/dapp-kit": "^0.14.40",
|
|
70
|
+
"react": "^18.2.0",
|
|
71
|
+
"react-dom": "^18.2.0"
|
|
71
72
|
}
|
|
72
73
|
}
|