@paraspell/sdk 0.0.13 → 0.0.14

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/README.md CHANGED
@@ -69,10 +69,6 @@ paraspell.xcmPallet.send(api: ApiPromise, origin: origin Parachain name strin
69
69
  //Transfer tokens from Relay chain to Parachain
70
70
  paraspell.xcmPallet.transferRelayToPara(api: ApiPromise, destination: destination Parachain ID, amount: any, to: destination address string)
71
71
 
72
- //Transfer tokens from Relay chain to Parachain /w specific limit
73
- paraspell.xcmPallet.limitedTransferRelayToPara(api,destParaID,amount,destinationAddress,yourWeight,true)
74
-
75
-
76
72
  //hrmp pallet:
77
73
 
78
74
  //Close HRMP channels
package/dist/index.cjs CHANGED
@@ -2737,7 +2737,10 @@ function getAssetId(node, symbol) {
2737
2737
  if (!hasAssetsInfo(node)) {
2738
2738
  return null;
2739
2739
  }
2740
- return getAssetsInfo(node).otherAssets.find((o) => o.symbol === symbol)?.assetId ?? null;
2740
+ const info = getAssetsInfo(node).otherAssets.find(function(o) {
2741
+ return o.symbol === symbol;
2742
+ });
2743
+ return info ? info.assetId : null;
2741
2744
  }
2742
2745
  function getRelayChainSymbol(node) {
2743
2746
  if (!hasAssetsInfo(node)) {
@@ -2749,7 +2752,8 @@ function getNativeAssets(node) {
2749
2752
  if (!hasAssetsInfo(node)) {
2750
2753
  return [];
2751
2754
  }
2752
- return getAssetsInfo(node).nativeAssets ?? [];
2755
+ const info = getAssetsInfo(node).nativeAssets;
2756
+ return info ? info : [];
2753
2757
  }
2754
2758
  function getOtherAssets(node) {
2755
2759
  if (!hasAssetsInfo(node)) {
@@ -2762,7 +2766,9 @@ function getAllAssetsSymbols(node) {
2762
2766
  return [];
2763
2767
  }
2764
2768
  const { relayChainAssetSymbol, nativeAssets, otherAssets } = getAssetsInfo(node);
2765
- return [relayChainAssetSymbol, ...nativeAssets, ...otherAssets.map(({ symbol }) => symbol)];
2769
+ return [relayChainAssetSymbol, ...nativeAssets, ...otherAssets.map(function({ symbol }) {
2770
+ return symbol;
2771
+ })];
2766
2772
  }
2767
2773
  function hasSupportForAsset(node, symbol) {
2768
2774
  if (!hasAssetsInfo(node)) {
package/dist/index.mjs CHANGED
@@ -2735,7 +2735,10 @@ function getAssetId(node, symbol) {
2735
2735
  if (!hasAssetsInfo(node)) {
2736
2736
  return null;
2737
2737
  }
2738
- return getAssetsInfo(node).otherAssets.find((o) => o.symbol === symbol)?.assetId ?? null;
2738
+ const info = getAssetsInfo(node).otherAssets.find(function(o) {
2739
+ return o.symbol === symbol;
2740
+ });
2741
+ return info ? info.assetId : null;
2739
2742
  }
2740
2743
  function getRelayChainSymbol(node) {
2741
2744
  if (!hasAssetsInfo(node)) {
@@ -2747,7 +2750,8 @@ function getNativeAssets(node) {
2747
2750
  if (!hasAssetsInfo(node)) {
2748
2751
  return [];
2749
2752
  }
2750
- return getAssetsInfo(node).nativeAssets ?? [];
2753
+ const info = getAssetsInfo(node).nativeAssets;
2754
+ return info ? info : [];
2751
2755
  }
2752
2756
  function getOtherAssets(node) {
2753
2757
  if (!hasAssetsInfo(node)) {
@@ -2760,7 +2764,9 @@ function getAllAssetsSymbols(node) {
2760
2764
  return [];
2761
2765
  }
2762
2766
  const { relayChainAssetSymbol, nativeAssets, otherAssets } = getAssetsInfo(node);
2763
- return [relayChainAssetSymbol, ...nativeAssets, ...otherAssets.map(({ symbol }) => symbol)];
2767
+ return [relayChainAssetSymbol, ...nativeAssets, ...otherAssets.map(function({ symbol }) {
2768
+ return symbol;
2769
+ })];
2764
2770
  }
2765
2771
  function hasSupportForAsset(node, symbol) {
2766
2772
  if (!hasAssetsInfo(node)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": "@paraspell/sdk",
6
6
  "license": "MIT",