@paraspell/sdk 7.2.7 → 7.2.8

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 CHANGED
@@ -16116,7 +16116,8 @@ var getNativeAssets = function getNativeAssets(node) {
16116
16116
  * @returns An array of other asset details.
16117
16117
  */
16118
16118
  var getOtherAssets = function getOtherAssets(node) {
16119
- return getAssetsObject(node).otherAssets;
16119
+ var otherAssets = getAssetsObject(node).otherAssets;
16120
+ return node === 'AssetHubPolkadot' ? [].concat(_toConsumableArray(otherAssets), _toConsumableArray(getAssetsObject('Ethereum').otherAssets)) : otherAssets;
16120
16121
  };
16121
16122
  /**
16122
16123
  * Retrieves the complete list of assets for a specified node, including relay chain asset, native, and other assets.
@@ -16144,13 +16145,15 @@ var getAllAssetsSymbols = function getAllAssetsSymbols(node) {
16144
16145
  var symbol = _ref.symbol;
16145
16146
  return symbol;
16146
16147
  });
16147
- var otherAssetsSymbols = otherAssets.filter(function (asset) {
16148
- return asset.symbol !== undefined;
16149
- }).map(function (_ref2) {
16148
+ var otherAssetsSymbols = otherAssets.map(function (_ref2) {
16150
16149
  var symbol = _ref2.symbol;
16151
16150
  return symbol;
16152
16151
  });
16153
- return [].concat(_toConsumableArray(nativeAssetsSymbols), _toConsumableArray(otherAssetsSymbols));
16152
+ var ethAssetsSymbols = node === 'AssetHubPolkadot' ? getAssetsObject('Ethereum').otherAssets.map(function (_ref3) {
16153
+ var symbol = _ref3.symbol;
16154
+ return symbol;
16155
+ }) : [];
16156
+ return [].concat(_toConsumableArray(nativeAssetsSymbols), _toConsumableArray(otherAssetsSymbols), _toConsumableArray(ethAssetsSymbols));
16154
16157
  };
16155
16158
  /**
16156
16159
  * Retrieves the symbol of the native asset for a specified node.
package/dist/index.mjs CHANGED
@@ -16114,7 +16114,8 @@ var getNativeAssets = function getNativeAssets(node) {
16114
16114
  * @returns An array of other asset details.
16115
16115
  */
16116
16116
  var getOtherAssets = function getOtherAssets(node) {
16117
- return getAssetsObject(node).otherAssets;
16117
+ var otherAssets = getAssetsObject(node).otherAssets;
16118
+ return node === 'AssetHubPolkadot' ? [].concat(_toConsumableArray(otherAssets), _toConsumableArray(getAssetsObject('Ethereum').otherAssets)) : otherAssets;
16118
16119
  };
16119
16120
  /**
16120
16121
  * Retrieves the complete list of assets for a specified node, including relay chain asset, native, and other assets.
@@ -16142,13 +16143,15 @@ var getAllAssetsSymbols = function getAllAssetsSymbols(node) {
16142
16143
  var symbol = _ref.symbol;
16143
16144
  return symbol;
16144
16145
  });
16145
- var otherAssetsSymbols = otherAssets.filter(function (asset) {
16146
- return asset.symbol !== undefined;
16147
- }).map(function (_ref2) {
16146
+ var otherAssetsSymbols = otherAssets.map(function (_ref2) {
16148
16147
  var symbol = _ref2.symbol;
16149
16148
  return symbol;
16150
16149
  });
16151
- return [].concat(_toConsumableArray(nativeAssetsSymbols), _toConsumableArray(otherAssetsSymbols));
16150
+ var ethAssetsSymbols = node === 'AssetHubPolkadot' ? getAssetsObject('Ethereum').otherAssets.map(function (_ref3) {
16151
+ var symbol = _ref3.symbol;
16152
+ return symbol;
16153
+ }) : [];
16154
+ return [].concat(_toConsumableArray(nativeAssetsSymbols), _toConsumableArray(otherAssetsSymbols), _toConsumableArray(ethAssetsSymbols));
16152
16155
  };
16153
16156
  /**
16154
16157
  * Retrieves the symbol of the native asset for a specified node.
@@ -16116,7 +16116,8 @@ var getNativeAssets = function getNativeAssets(node) {
16116
16116
  * @returns An array of other asset details.
16117
16117
  */
16118
16118
  var getOtherAssets = function getOtherAssets(node) {
16119
- return getAssetsObject(node).otherAssets;
16119
+ var otherAssets = getAssetsObject(node).otherAssets;
16120
+ return node === 'AssetHubPolkadot' ? [].concat(_toConsumableArray(otherAssets), _toConsumableArray(getAssetsObject('Ethereum').otherAssets)) : otherAssets;
16120
16121
  };
16121
16122
  /**
16122
16123
  * Retrieves the complete list of assets for a specified node, including relay chain asset, native, and other assets.
@@ -16144,13 +16145,15 @@ var getAllAssetsSymbols = function getAllAssetsSymbols(node) {
16144
16145
  var symbol = _ref.symbol;
16145
16146
  return symbol;
16146
16147
  });
16147
- var otherAssetsSymbols = otherAssets.filter(function (asset) {
16148
- return asset.symbol !== undefined;
16149
- }).map(function (_ref2) {
16148
+ var otherAssetsSymbols = otherAssets.map(function (_ref2) {
16150
16149
  var symbol = _ref2.symbol;
16151
16150
  return symbol;
16152
16151
  });
16153
- return [].concat(_toConsumableArray(nativeAssetsSymbols), _toConsumableArray(otherAssetsSymbols));
16152
+ var ethAssetsSymbols = node === 'AssetHubPolkadot' ? getAssetsObject('Ethereum').otherAssets.map(function (_ref3) {
16153
+ var symbol = _ref3.symbol;
16154
+ return symbol;
16155
+ }) : [];
16156
+ return [].concat(_toConsumableArray(nativeAssetsSymbols), _toConsumableArray(otherAssetsSymbols), _toConsumableArray(ethAssetsSymbols));
16154
16157
  };
16155
16158
  /**
16156
16159
  * Retrieves the symbol of the native asset for a specified node.
@@ -16114,7 +16114,8 @@ var getNativeAssets = function getNativeAssets(node) {
16114
16114
  * @returns An array of other asset details.
16115
16115
  */
16116
16116
  var getOtherAssets = function getOtherAssets(node) {
16117
- return getAssetsObject(node).otherAssets;
16117
+ var otherAssets = getAssetsObject(node).otherAssets;
16118
+ return node === 'AssetHubPolkadot' ? [].concat(_toConsumableArray(otherAssets), _toConsumableArray(getAssetsObject('Ethereum').otherAssets)) : otherAssets;
16118
16119
  };
16119
16120
  /**
16120
16121
  * Retrieves the complete list of assets for a specified node, including relay chain asset, native, and other assets.
@@ -16142,13 +16143,15 @@ var getAllAssetsSymbols = function getAllAssetsSymbols(node) {
16142
16143
  var symbol = _ref.symbol;
16143
16144
  return symbol;
16144
16145
  });
16145
- var otherAssetsSymbols = otherAssets.filter(function (asset) {
16146
- return asset.symbol !== undefined;
16147
- }).map(function (_ref2) {
16146
+ var otherAssetsSymbols = otherAssets.map(function (_ref2) {
16148
16147
  var symbol = _ref2.symbol;
16149
16148
  return symbol;
16150
16149
  });
16151
- return [].concat(_toConsumableArray(nativeAssetsSymbols), _toConsumableArray(otherAssetsSymbols));
16150
+ var ethAssetsSymbols = node === 'AssetHubPolkadot' ? getAssetsObject('Ethereum').otherAssets.map(function (_ref3) {
16151
+ var symbol = _ref3.symbol;
16152
+ return symbol;
16153
+ }) : [];
16154
+ return [].concat(_toConsumableArray(nativeAssetsSymbols), _toConsumableArray(otherAssetsSymbols), _toConsumableArray(ethAssetsSymbols));
16152
16155
  };
16153
16156
  /**
16154
16157
  * Retrieves the symbol of the native asset for a specified node.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "7.2.7",
3
+ "version": "7.2.8",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": "@paraspell/sdk",
6
6
  "license": "MIT",