@cetusprotocol/terminal 1.2.2 → 1.3.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 +40 -40
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +30982 -22189
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +40 -40
- package/dist/cetus-swap.umd.js.gz +0 -0
- package/dist/components/swap/AllRouterImg.d.ts +3 -0
- package/dist/components/swap/RouteDialog.d.ts +2 -5
- package/dist/components/swap/SimpleRouter.d.ts +3 -3
- package/dist/components/swap/V3Router.d.ts +15 -0
- package/dist/hooks/swap/useSwapHelper.d.ts +1 -8
- package/dist/hooks/swap/useSwapRouter.d.ts +16 -0
- package/dist/hooks/useTokens.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/utils/common.d.ts +2 -0
- package/dist/utils/formatter.d.ts +2 -0
- package/package.json +2 -2
package/dist/style.css.gz
CHANGED
|
Binary file
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -13,3 +13,5 @@ export declare const textEllipses: (text: string, decimals?: number) => string;
|
|
|
13
13
|
export declare const coinTypeEquals: (tokenA?: string, tokenB?: string) => boolean;
|
|
14
14
|
export declare const isAvailableObject: (obj: unknown) => boolean;
|
|
15
15
|
export declare function normalizeCoinType(coin_type: string): string;
|
|
16
|
+
export declare function adjustTo100(arr: number[]): number[];
|
|
17
|
+
export declare function toLongCoinType(coinType: string): string;
|
|
@@ -10,3 +10,5 @@ export declare const formatPercentageGt0And100: (value: string | number | undefi
|
|
|
10
10
|
* */
|
|
11
11
|
export declare const formatCurrency: (value: string | number | undefined, decimal: number, hidelt?: boolean, noComma?: boolean) => string;
|
|
12
12
|
export declare const fixDEAdd: (num: any, precision: any, autoFix?: boolean) => string;
|
|
13
|
+
export declare const formatFeeRate: (value: string | number | undefined, decimal?: number) => string | number;
|
|
14
|
+
export declare const getPercentage: (value: string | number) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cetusprotocol/terminal",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.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": "^0.
|
|
25
|
+
"@cetusprotocol/aggregator-sdk": "^1.0.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",
|