@suilend/sui-fe 0.2.75 → 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 CHANGED
@@ -41,7 +41,6 @@ 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[];
47
46
  export declare const NORMALIZED_mSEND_COINTYPES: string[];
@@ -137,11 +136,11 @@ export declare const getPythOracleUrl: (coinType: string) => string | null;
137
136
  export declare const extractSymbolFromCoinType: (coinType: string) => string | undefined;
138
137
  export declare const isSendPointsS1: (coinType: string) => boolean;
139
138
  export declare const isSendPointsS2: (coinType: string) => boolean;
139
+ export declare const isSteammPoints: (coinType: string) => boolean;
140
140
  export declare const isSend: (coinType: string) => boolean;
141
141
  export declare const isSui: (coinType: string) => boolean;
142
142
  export declare const issSui: (coinType: string) => boolean;
143
143
  export declare const isSendPoints: (coinType: string) => boolean;
144
- export declare const isSteammPoints: (coinType: string) => boolean;
145
144
  export declare const isMsend: (coinType: string) => boolean;
146
145
  export declare const isStablecoin: (coinType: string) => boolean;
147
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_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;
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,
@@ -290,6 +287,8 @@ const isSendPointsS1 = (coinType) => (0, utils_1.normalizeStructTag)(coinType) =
290
287
  exports.isSendPointsS1 = isSendPointsS1;
291
288
  const isSendPointsS2 = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === exports.NORMALIZED_SEND_POINTS_S2_COINTYPE;
292
289
  exports.isSendPointsS2 = isSendPointsS2;
290
+ const isSteammPoints = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === exports.NORMALIZED_STEAMM_POINTS_COINTYPE;
291
+ exports.isSteammPoints = isSteammPoints;
293
292
  const isSend = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === exports.NORMALIZED_SEND_COINTYPE;
294
293
  exports.isSend = isSend;
295
294
  const isSui = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === exports.NORMALIZED_SUI_COINTYPE;
@@ -298,8 +297,6 @@ const issSui = (coinType) => (0, utils_1.normalizeStructTag)(coinType) === expor
298
297
  exports.issSui = issSui;
299
298
  const isSendPoints = (coinType) => exports.NORMALIZED_SEND_POINTS_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
300
299
  exports.isSendPoints = isSendPoints;
301
- const isSteammPoints = (coinType) => exports.NORMALIZED_STEAMM_POINTS_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
302
- exports.isSteammPoints = isSteammPoints;
303
300
  const isMsend = (coinType) => exports.NORMALIZED_mSEND_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
304
301
  exports.isMsend = isMsend;
305
302
  const isStablecoin = (coinType) => exports.NORMALIZED_STABLECOIN_COINTYPES.includes((0, utils_1.normalizeStructTag)(coinType));
package/package.json CHANGED
@@ -1 +1 @@
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"}}
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"}}