@cetusprotocol/terminal 1.7.0 → 1.7.2

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.
Binary file
@@ -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.7.0",
3
+ "version": "1.7.2",
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": "^1.4.1",
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",