@spicenet-io/spiceflow-ui 1.7.4 → 1.7.5

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/index.cjs.js CHANGED
@@ -406,13 +406,16 @@ const getAllAssetsForChain = (chainId, userAssets = []) => {
406
406
  const config = getChainConfig(chainId);
407
407
  if (!config) return [];
408
408
  const assets = [];
409
- const userNativeAsset = userAssets.find(
410
- (asset) => asset.chainId === chainId && asset.isNative
411
- );
412
- if (userNativeAsset) {
413
- assets.push(userNativeAsset);
414
- } else {
415
- assets.push(createNativeAsset(chainId));
409
+ const excludeNativeTokenChains = [11155111, 421614, 84532, 688689];
410
+ if (!excludeNativeTokenChains.includes(chainId)) {
411
+ const userNativeAsset = userAssets.find(
412
+ (asset) => asset.chainId === chainId && asset.isNative
413
+ );
414
+ if (userNativeAsset) {
415
+ assets.push(userNativeAsset);
416
+ } else {
417
+ assets.push(createNativeAsset(chainId));
418
+ }
416
419
  }
417
420
  if (!config.supportedTokens) return assets;
418
421
  config.supportedTokens.forEach((tokenConfig) => {
@@ -1351,6 +1354,10 @@ const getChainName = (chainId) => {
1351
1354
  return "Citrea Testnet";
1352
1355
  case 123420001114:
1353
1356
  return "Basecamp Testnet";
1357
+ case 84532:
1358
+ return "Base Sepolia";
1359
+ case 688689:
1360
+ return "Pharos Atlantic";
1354
1361
  default:
1355
1362
  return `Chain ${chainId}`;
1356
1363
  }
package/dist/index.js CHANGED
@@ -404,13 +404,16 @@ const getAllAssetsForChain = (chainId, userAssets = []) => {
404
404
  const config = getChainConfig(chainId);
405
405
  if (!config) return [];
406
406
  const assets = [];
407
- const userNativeAsset = userAssets.find(
408
- (asset) => asset.chainId === chainId && asset.isNative
409
- );
410
- if (userNativeAsset) {
411
- assets.push(userNativeAsset);
412
- } else {
413
- assets.push(createNativeAsset(chainId));
407
+ const excludeNativeTokenChains = [11155111, 421614, 84532, 688689];
408
+ if (!excludeNativeTokenChains.includes(chainId)) {
409
+ const userNativeAsset = userAssets.find(
410
+ (asset) => asset.chainId === chainId && asset.isNative
411
+ );
412
+ if (userNativeAsset) {
413
+ assets.push(userNativeAsset);
414
+ } else {
415
+ assets.push(createNativeAsset(chainId));
416
+ }
414
417
  }
415
418
  if (!config.supportedTokens) return assets;
416
419
  config.supportedTokens.forEach((tokenConfig) => {
@@ -1349,6 +1352,10 @@ const getChainName = (chainId) => {
1349
1352
  return "Citrea Testnet";
1350
1353
  case 123420001114:
1351
1354
  return "Basecamp Testnet";
1355
+ case 84532:
1356
+ return "Base Sepolia";
1357
+ case 688689:
1358
+ return "Pharos Atlantic";
1352
1359
  default:
1353
1360
  return `Chain ${chainId}`;
1354
1361
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spicenet-io/spiceflow-ui",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Spiceflow UI SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",