@suilend/sui-fe 0.2.74 → 0.2.76
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/lib/coinType.d.ts +2 -2
- package/lib/coinType.js +9 -8
- package/package.json +1 -1
package/lib/coinType.d.ts
CHANGED
|
@@ -41,9 +41,9 @@ export declare const NORMALIZED_KOBAN_COINTYPE: string;
|
|
|
41
41
|
export declare const NORMALIZED_oshiSUI_COINTYPE: string;
|
|
42
42
|
export declare const NORMALIZED_LOFI_COINTYPE: string;
|
|
43
43
|
export declare const NORMALIZED_SEND_POINTS_COINTYPES: string[];
|
|
44
|
-
export declare const NORMALIZED_STEAMM_POINTS_COINTYPES: string[];
|
|
45
44
|
export declare const NORMALIZED_mSEND_S1_COINTYPES: string[];
|
|
46
45
|
export declare const NORMALIZED_mSEND_S2_COINTYPES: string[];
|
|
46
|
+
export declare const NORMALIZED_mSEND_COINTYPES: string[];
|
|
47
47
|
export declare const NORMALIZED_STABLECOIN_COINTYPES: string[];
|
|
48
48
|
export declare const NORMALIZED_BTC_COINTYPES: string[];
|
|
49
49
|
export declare const NORMALIZED_ETH_COINTYPES: string[];
|
|
@@ -136,11 +136,11 @@ export declare const getPythOracleUrl: (coinType: string) => string | null;
|
|
|
136
136
|
export declare const extractSymbolFromCoinType: (coinType: string) => string | undefined;
|
|
137
137
|
export declare const isSendPointsS1: (coinType: string) => boolean;
|
|
138
138
|
export declare const isSendPointsS2: (coinType: string) => boolean;
|
|
139
|
+
export declare const isSteammPoints: (coinType: string) => boolean;
|
|
139
140
|
export declare const isSend: (coinType: string) => boolean;
|
|
140
141
|
export declare const isSui: (coinType: string) => boolean;
|
|
141
142
|
export declare const issSui: (coinType: string) => boolean;
|
|
142
143
|
export declare const isSendPoints: (coinType: string) => boolean;
|
|
143
|
-
export declare const isSteammPoints: (coinType: string) => boolean;
|
|
144
144
|
export declare const isMsend: (coinType: string) => boolean;
|
|
145
145
|
export declare const isStablecoin: (coinType: string) => boolean;
|
|
146
146
|
export declare const isBtc: (coinType: string) => boolean;
|
package/lib/coinType.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NORMALIZED_MEMECOIN_COINTYPES = exports.NORMALIZED_ETH_COINTYPES = exports.NORMALIZED_BTC_COINTYPES = exports.NORMALIZED_STABLECOIN_COINTYPES = exports.
|
|
4
|
-
exports.extractCTokenCoinType = exports.isCTokenCoinType = exports.isCoinType = exports.isMemecoin = exports.isEth = exports.isBtc = exports.isStablecoin = exports.isMsend = exports.
|
|
3
|
+
exports.NORMALIZED_MEMECOIN_COINTYPES = exports.NORMALIZED_ETH_COINTYPES = exports.NORMALIZED_BTC_COINTYPES = exports.NORMALIZED_STABLECOIN_COINTYPES = exports.NORMALIZED_mSEND_COINTYPES = exports.NORMALIZED_mSEND_S2_COINTYPES = exports.NORMALIZED_mSEND_S1_COINTYPES = exports.NORMALIZED_SEND_POINTS_COINTYPES = exports.NORMALIZED_LOFI_COINTYPE = exports.NORMALIZED_oshiSUI_COINTYPE = exports.NORMALIZED_KOBAN_COINTYPE = exports.NORMALIZED_UP_COINTYPE = exports.NORMALIZED_HAEDAL_COINTYPE = exports.NORMALIZED_flSUI_COINTYPE = exports.NORMALIZED_WAL_COINTYPE = exports.NORMALIZED_iSUI_COINTYPE = exports.NORMALIZED_mUSD_COINTYPE = exports.NORMALIZED_LBTC_COINTYPE = exports.NORMALIZED_yapSUI_COINTYPE = exports.NORMALIZED_BLUE_COINTYPE = exports.NORMALIZED_wBTC_COINTYPE = exports.NORMALIZED_BUCK_COINTYPE = exports.NORMALIZED_suiUSDT_COINTYPE = exports.NORMALIZED_upSUI_COINTYPE = exports.NORMALIZED_trevinSUI_COINTYPE = exports.NORMALIZED_kSUI_COINTYPE = exports.NORMALIZED_fudSUI_COINTYPE = exports.NORMALIZED_NS_COINTYPE = exports.NORMALIZED_HIPPO_COINTYPE = exports.NORMALIZED_mSUI_COINTYPE = exports.NORMALIZED_sSUI_COINTYPE = exports.NORMALIZED_suiETH_COINTYPE = exports.NORMALIZED_DEEP_COINTYPE = exports.NORMALIZED_USDC_COINTYPE = exports.NORMALIZED_FUD_COINTYPE = exports.NORMALIZED_AUSD_COINTYPE = exports.NORMALIZED_SOL_COINTYPE = exports.NORMALIZED_WETH_COINTYPE = exports.NORMALIZED_wUSDT_COINTYPE = exports.NORMALIZED_wUSDC_COINTYPE = exports.NORMALIZED_SUI_COINTYPE = exports.NORMALIZED_SEND_COINTYPE = exports.NORMALIZED_mSEND_SERIES_4_COINTYPE = exports.NORMALIZED_mSEND_12M_COINTYPE = exports.NORMALIZED_mSEND_6M_COINTYPE = exports.NORMALIZED_mSEND_3M_COINTYPE = exports.NORMALIZED_STEAMM_POINTS_COINTYPE = exports.NORMALIZED_SEND_POINTS_S2_COINTYPE = exports.NORMALIZED_SEND_POINTS_S1_COINTYPE = exports.SUI_COINTYPE = void 0;
|
|
4
|
+
exports.extractCTokenCoinType = exports.isCTokenCoinType = exports.isCoinType = exports.isMemecoin = exports.isEth = exports.isBtc = exports.isStablecoin = exports.isMsend = exports.isSendPoints = exports.issSui = exports.isSui = exports.isSend = exports.isSteammPoints = exports.isSendPointsS2 = exports.isSendPointsS1 = exports.extractSymbolFromCoinType = exports.getPythOracleUrl = exports.COINTYPE_PYTH_PRICE_FEED_SYMBOL_MAP = exports.COINTYPE_COLOR_MAP = exports.COINTYPE_SYMBOL_MAP = exports.COINTYPE_LOGO_MAP = exports.TEMPORARY_PYTH_PRICE_FEED_COINTYPES = exports.NON_SPONSORED_PYTH_PRICE_FEED_COINTYPES = void 0;
|
|
5
5
|
const utils_1 = require("@mysten/sui/utils");
|
|
6
6
|
// coinTypes
|
|
7
7
|
const SEND_POINTS_S1_COINTYPE = "0x34fe4f3c9e450fed4d0a3c587ed842eec5313c30c3cc3c0841247c49425e246b::suilend_point::SUILEND_POINT";
|
|
@@ -92,9 +92,6 @@ exports.NORMALIZED_SEND_POINTS_COINTYPES = [
|
|
|
92
92
|
exports.NORMALIZED_SEND_POINTS_S1_COINTYPE,
|
|
93
93
|
exports.NORMALIZED_SEND_POINTS_S2_COINTYPE,
|
|
94
94
|
];
|
|
95
|
-
exports.NORMALIZED_STEAMM_POINTS_COINTYPES = [
|
|
96
|
-
exports.NORMALIZED_STEAMM_POINTS_COINTYPE,
|
|
97
|
-
];
|
|
98
95
|
exports.NORMALIZED_mSEND_S1_COINTYPES = [
|
|
99
96
|
exports.NORMALIZED_mSEND_3M_COINTYPE,
|
|
100
97
|
exports.NORMALIZED_mSEND_6M_COINTYPE,
|
|
@@ -103,6 +100,10 @@ exports.NORMALIZED_mSEND_S1_COINTYPES = [
|
|
|
103
100
|
exports.NORMALIZED_mSEND_S2_COINTYPES = [
|
|
104
101
|
exports.NORMALIZED_mSEND_SERIES_4_COINTYPE,
|
|
105
102
|
];
|
|
103
|
+
exports.NORMALIZED_mSEND_COINTYPES = [
|
|
104
|
+
...exports.NORMALIZED_mSEND_S1_COINTYPES,
|
|
105
|
+
...exports.NORMALIZED_mSEND_S2_COINTYPES,
|
|
106
|
+
];
|
|
106
107
|
exports.NORMALIZED_STABLECOIN_COINTYPES = [
|
|
107
108
|
exports.NORMALIZED_wUSDC_COINTYPE,
|
|
108
109
|
exports.NORMALIZED_wUSDT_COINTYPE,
|
|
@@ -286,6 +287,8 @@ const isSendPointsS1 = (coinType) => (0, utils_1.normalizeStructTag)(coinType) =
|
|
|
286
287
|
exports.isSendPointsS1 = isSendPointsS1;
|
|
287
288
|
const isSendPointsS2 = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === exports.NORMALIZED_SEND_POINTS_S2_COINTYPE;
|
|
288
289
|
exports.isSendPointsS2 = isSendPointsS2;
|
|
290
|
+
const isSteammPoints = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === exports.NORMALIZED_STEAMM_POINTS_COINTYPE;
|
|
291
|
+
exports.isSteammPoints = isSteammPoints;
|
|
289
292
|
const isSend = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === exports.NORMALIZED_SEND_COINTYPE;
|
|
290
293
|
exports.isSend = isSend;
|
|
291
294
|
const isSui = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === exports.NORMALIZED_SUI_COINTYPE;
|
|
@@ -294,9 +297,7 @@ const issSui = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === expor
|
|
|
294
297
|
exports.issSui = issSui;
|
|
295
298
|
const isSendPoints = (coinType) => exports.NORMALIZED_SEND_POINTS_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
|
|
296
299
|
exports.isSendPoints = isSendPoints;
|
|
297
|
-
const
|
|
298
|
-
exports.isSteammPoints = isSteammPoints;
|
|
299
|
-
const isMsend = (coinType) => [...exports.NORMALIZED_mSEND_S1_COINTYPES, ...exports.NORMALIZED_mSEND_S2_COINTYPES].includes((0, utils_1.normalizeStructTag)(coinType));
|
|
300
|
+
const isMsend = (coinType) => exports.NORMALIZED_mSEND_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
|
|
300
301
|
exports.isMsend = isMsend;
|
|
301
302
|
const isStablecoin = (coinType) => exports.NORMALIZED_STABLECOIN_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
|
|
302
303
|
exports.isStablecoin = isStablecoin;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@suilend/sui-fe","version":"0.2.
|
|
1
|
+
{"name":"@suilend/sui-fe","version":"0.2.76","private":false,"description":"A collection of TypeScript frontend libraries","author":"Suilend","license":"MIT","main":"./index.js","exports":{".":"./index.js","./lib/api":"./lib/api.js","./lib/coinMetadata":"./lib/coinMetadata.js","./lib/coinType":"./lib/coinType.js","./lib/constants":"./lib/constants.js","./lib/format":"./lib/format.js","./lib":"./lib/index.js","./lib/indexedDB":"./lib/indexedDB.js","./lib/msafe":"./lib/msafe.js","./lib/track":"./lib/track.js","./lib/transactions":"./lib/transactions.js"},"types":"./index.js","scripts":{"build":"rm -rf ./dist && bun tsc","eslint":"eslint --fix \"./src/**/*.ts\"","prettier":"prettier --write \"./src/**/*\"","lint":"bun eslint && bun prettier && bun tsc --noEmit","release":"bun run build && bun ts-node ./release.ts && cd ./dist && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/suilend/sui-fe.git"},"bugs":{"url":"https://github.com/suilend/sui-fe/issues"},"dependencies":{"@pythnetwork/pyth-sui-js":"^2.1.0","bignumber.js":"^9.1.2","lodash":"^4.17.21","mixpanel-browser":"^2.56.0","next":"^15.0.3","p-limit":"3.1.0"},"devDependencies":{"@tsconfig/recommended":"^1.0.8","@types/lodash":"^4.17.13","@types/mixpanel-browser":"^2.50.2","@types/node":"^22.9.0","@typescript-eslint/eslint-plugin":"^8.14.0","@typescript-eslint/parser":"^8.14.0","eslint":"^9.14.0","eslint-config-next":"^15.0.3","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.1","prettier":"^3.3.3","ts-node":"^10.9.2","typescript":"^5.6.3"},"peerDependencies":{"@mysten/sui":"1.28.2","date-fns":"^4.1.0"}}
|