@paraspell/assets 10.4.0 → 10.4.2

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
@@ -2827,13 +2827,15 @@ var Hydration = {
2827
2827
  symbol: "KSM",
2828
2828
  decimals: 12,
2829
2829
  multiLocation: {
2830
- parents: 1,
2830
+ parents: 2,
2831
2831
  interior: {
2832
- X1: {
2833
- GlobalConsensus: {
2834
- kusama: null
2832
+ X1: [
2833
+ {
2834
+ GlobalConsensus: {
2835
+ kusama: null
2836
+ }
2835
2837
  }
2836
- }
2838
+ ]
2837
2839
  }
2838
2840
  },
2839
2841
  existentialDeposit: "313283208"
@@ -10739,7 +10741,7 @@ var Ethereum = {
10739
10741
  X1: [
10740
10742
  {
10741
10743
  GlobalConsensus: {
10742
- Kusama: null
10744
+ kusama: null
10743
10745
  }
10744
10746
  }
10745
10747
  ]
@@ -11944,4 +11946,5 @@ exports.isNodeEvm = isNodeEvm;
11944
11946
  exports.isOverrideMultiLocationSpecifier = isOverrideMultiLocationSpecifier;
11945
11947
  exports.isSymbolSpecifier = isSymbolSpecifier;
11946
11948
  exports.isTMultiAsset = isTMultiAsset;
11949
+ exports.normalizeMultiLocation = normalizeMultiLocation;
11947
11950
  exports.normalizeSymbol = normalizeSymbol;
package/dist/index.d.ts CHANGED
@@ -203,6 +203,14 @@ declare const getSupportedAssets: (origin: TNodeWithRelayChains, destination: TN
203
203
 
204
204
  declare const isAssetEqual: (asset1: TAsset, asset2: TAsset) => boolean;
205
205
 
206
+ /**
207
+ * Converts a multi-location to XCM V4 format. X1 junction of type object is converted to an array.
208
+ *
209
+ * @param multiLocation - The multi-location to normalize.
210
+ * @returns
211
+ */
212
+ declare const normalizeMultiLocation: (multiLocation: TMultiLocation) => TMultiLocation;
213
+
206
214
  declare const findAsset: (node: TNodeWithRelayChains, currency: TCurrencyInput, destination: TNodeWithRelayChains | null) => TAsset | null;
207
215
 
208
216
  declare const findAssetById: (assets: TForeignAsset[], assetId: TCurrency) => TForeignAsset | undefined;
@@ -270,5 +278,5 @@ declare const extractMultiAssetLoc: (multiAsset: TMultiAsset) => TMultiLocation;
270
278
 
271
279
  declare const getAssetMultiLocation: (node: TNodeWithRelayChains, currency: TCurrencyInput) => TMultiLocation | null;
272
280
 
273
- export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findAssetForNodeOrThrow, findAssetOnDestOrThrow, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolSpecifier, isTMultiAsset, normalizeSymbol };
281
+ export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findAssetForNodeOrThrow, findAssetOnDestOrThrow, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolSpecifier, isTMultiAsset, normalizeMultiLocation, normalizeSymbol };
274
282
  export type { TAmount, TAsset, TAssetJsonMap, TCurrency, TCurrencyCore, TCurrencyInput, TCurrencyInputWithAmount, TCurrencySymbol, TCurrencySymbolValue, TForeignAsset, TMultiAsset, TMultiAssetV3, TMultiAssetV4, TMultiAssetWithFee, TMultiLocationValue, TMultiLocationValueWithOverride, TNativeAsset, TNodeAssets, TOverrideMultiLocationSpecifier, TSymbolSpecifier, WithAmount };
package/dist/index.mjs CHANGED
@@ -2825,13 +2825,15 @@ var Hydration = {
2825
2825
  symbol: "KSM",
2826
2826
  decimals: 12,
2827
2827
  multiLocation: {
2828
- parents: 1,
2828
+ parents: 2,
2829
2829
  interior: {
2830
- X1: {
2831
- GlobalConsensus: {
2832
- kusama: null
2830
+ X1: [
2831
+ {
2832
+ GlobalConsensus: {
2833
+ kusama: null
2834
+ }
2833
2835
  }
2834
- }
2836
+ ]
2835
2837
  }
2836
2838
  },
2837
2839
  existentialDeposit: "313283208"
@@ -10737,7 +10739,7 @@ var Ethereum = {
10737
10739
  X1: [
10738
10740
  {
10739
10741
  GlobalConsensus: {
10740
- Kusama: null
10742
+ kusama: null
10741
10743
  }
10742
10744
  }
10743
10745
  ]
@@ -11902,4 +11904,4 @@ var getAssetMultiLocation = function getAssetMultiLocation(node, currency) {
11902
11904
  return asset.multiLocation;
11903
11905
  };
11904
11906
 
11905
- export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findAssetForNodeOrThrow, findAssetOnDestOrThrow, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolSpecifier, isTMultiAsset, normalizeSymbol };
11907
+ export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findAssetForNodeOrThrow, findAssetOnDestOrThrow, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolSpecifier, isTMultiAsset, normalizeMultiLocation, normalizeSymbol };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "10.4.0",
3
+ "version": "10.4.2",
4
4
  "description": "Assets for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@paraspell/sdk-common": "10.4.0"
26
+ "@paraspell/sdk-common": "10.4.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/plugin-syntax-import-attributes": "^7.27.1",