@cetusprotocol/terminal 1.7.1 → 1.8.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 +49 -46
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +18393 -17580
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +49 -46
- package/dist/cetus-swap.umd.js.gz +0 -0
- package/dist/utils/common.d.ts +7 -0
- package/package.json +3 -3
|
Binary file
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ export declare const sleepTime: (s: number) => Promise<unknown>;
|
|
|
9
9
|
export declare function parseOwnerBalanceChanges(response: SuiTransactionBlockResponse, owner?: string, includedFee?: boolean): Record<string, BalanceChanges>;
|
|
10
10
|
export declare function getBalanceChanges(balanceChanges: Record<string, BalanceChanges>, coinInfo?: Token): string | undefined;
|
|
11
11
|
export declare function getCdnAssets(path: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Preload image to browser cache
|
|
14
|
+
* This function uses browser's native caching mechanism, all images using the same URL will be read from cache
|
|
15
|
+
* @param src Image URL
|
|
16
|
+
* @returns Promise<boolean> Returns whether image loaded successfully
|
|
17
|
+
*/
|
|
18
|
+
export declare function preloadImage(src: string): Promise<boolean>;
|
|
12
19
|
export declare const textEllipses: (text: string, decimals?: number) => string;
|
|
13
20
|
export declare const coinTypeEquals: (tokenA?: string, tokenB?: string) => boolean;
|
|
14
21
|
export declare const isAvailableObject: (obj: unknown) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cetusprotocol/terminal",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "dist/cetus-swap.cjs.js",
|
|
6
6
|
"module": "dist/cetus-swap.es.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"publish:test": "node ./version.mjs && npm publish --tag experimental"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cetusprotocol/aggregator-sdk": "
|
|
25
|
+
"@cetusprotocol/aggregator-sdk": "1.4.3",
|
|
26
26
|
"@radix-ui/colors": "^3.0.0",
|
|
27
27
|
"@radix-ui/react-icons": "^1.3.0",
|
|
28
28
|
"@radix-ui/themes": "^2.0.0",
|
|
@@ -85,4 +85,4 @@
|
|
|
85
85
|
"error-ex": "1.3.2",
|
|
86
86
|
"has-ansi": "5.0.1"
|
|
87
87
|
}
|
|
88
|
-
}
|
|
88
|
+
}
|