@suilend/sui-fe 0.2.74 → 0.2.75
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 +1 -0
- package/lib/coinType.js +7 -3
- package/package.json +1 -1
package/lib/coinType.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare const NORMALIZED_SEND_POINTS_COINTYPES: string[];
|
|
|
44
44
|
export declare const NORMALIZED_STEAMM_POINTS_COINTYPES: string[];
|
|
45
45
|
export declare const NORMALIZED_mSEND_S1_COINTYPES: string[];
|
|
46
46
|
export declare const NORMALIZED_mSEND_S2_COINTYPES: string[];
|
|
47
|
+
export declare const NORMALIZED_mSEND_COINTYPES: string[];
|
|
47
48
|
export declare const NORMALIZED_STABLECOIN_COINTYPES: string[];
|
|
48
49
|
export declare const NORMALIZED_BTC_COINTYPES: string[];
|
|
49
50
|
export declare const NORMALIZED_ETH_COINTYPES: string[];
|
package/lib/coinType.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.extractCTokenCoinType = exports.isCTokenCoinType = exports.isCoinType = exports.isMemecoin = exports.isEth = exports.isBtc = exports.isStablecoin = exports.isMsend = exports.isSteammPoints = exports.isSendPoints = exports.issSui = exports.isSui = exports.isSend = 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;
|
|
3
|
+
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_STEAMM_POINTS_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.isSteammPoints = exports.isSendPoints = exports.issSui = exports.isSui = exports.isSend = 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 = exports.NORMALIZED_MEMECOIN_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";
|
|
@@ -103,6 +103,10 @@ exports.NORMALIZED_mSEND_S1_COINTYPES = [
|
|
|
103
103
|
exports.NORMALIZED_mSEND_S2_COINTYPES = [
|
|
104
104
|
exports.NORMALIZED_mSEND_SERIES_4_COINTYPE,
|
|
105
105
|
];
|
|
106
|
+
exports.NORMALIZED_mSEND_COINTYPES = [
|
|
107
|
+
...exports.NORMALIZED_mSEND_S1_COINTYPES,
|
|
108
|
+
...exports.NORMALIZED_mSEND_S2_COINTYPES,
|
|
109
|
+
];
|
|
106
110
|
exports.NORMALIZED_STABLECOIN_COINTYPES = [
|
|
107
111
|
exports.NORMALIZED_wUSDC_COINTYPE,
|
|
108
112
|
exports.NORMALIZED_wUSDT_COINTYPE,
|
|
@@ -296,7 +300,7 @@ const isSendPoints = (coinType) => exports.NORMALIZED_SEND_POINTS_COINTYPES.incl
|
|
|
296
300
|
exports.isSendPoints = isSendPoints;
|
|
297
301
|
const isSteammPoints = (coinType) => exports.NORMALIZED_STEAMM_POINTS_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
|
|
298
302
|
exports.isSteammPoints = isSteammPoints;
|
|
299
|
-
const isMsend = (coinType) =>
|
|
303
|
+
const isMsend = (coinType) => exports.NORMALIZED_mSEND_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
|
|
300
304
|
exports.isMsend = isMsend;
|
|
301
305
|
const isStablecoin = (coinType) => exports.NORMALIZED_STABLECOIN_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
|
|
302
306
|
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.75","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"}}
|