@paraspell/sdk 8.8.0 → 8.9.0

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
@@ -291,7 +291,7 @@ getAssetMultiLocation(chainFrom, { symbol: symbol } | { id: assetId })
291
291
 
292
292
  ### Parachain XCM Pallet queries
293
293
  ```ts
294
- import { getDefaultPallet, getSupportedPallets, SUPPORTED_PALLETS } from '@paraspell/sdk';
294
+ import { getDefaultPallet, getSupportedPallets, getPalletIndex SUPPORTED_PALLETS } from '@paraspell/sdk';
295
295
 
296
296
  //Retrieve default pallet for specific Parachain
297
297
  getDefaultPallet(node: TNode)
@@ -299,6 +299,9 @@ getDefaultPallet(node: TNode)
299
299
  // Returns an array of supported pallets for a specific Parachain
300
300
  getSupportedPallets(node: TNode)
301
301
 
302
+ //Returns index of XCM Pallet used by Parachain
303
+ getPalletIndex(node: TNode)
304
+
302
305
  // Print all pallets that are currently supported
303
306
  console.log(SUPPORTED_PALLETS)
304
307
  ```
@@ -358,11 +361,11 @@ await verifyEdOnDestination(node, currency: {symbol: || id: || multilocation: .
358
361
 
359
362
  - Run all core tests and checks using `pnpm runAll`
360
363
 
361
- XCM SDK can be tested in [Playground](https://github.com/paraspell/xcm-tools/tree/main/apps/playground).
364
+ XCM SDK can be tested in [Playground](https://playground.paraspell.xyz/xcm-sdk/xcm-transfer).
362
365
 
363
366
  ## License
364
367
 
365
- Made with 💛 by [ParaSpell✨](https://github.com/paraspell)
368
+ Made with 💛 by [ParaSpell✨](https://paraspell.xyz/)
366
369
 
367
370
  Published under [MIT License](https://github.com/paraspell/xcm-tools/blob/main/packages/sdk/LICENSE).
368
371
 
package/dist/index.cjs CHANGED
@@ -1343,9 +1343,9 @@ var assets = /*#__PURE__*/Object.freeze({
1343
1343
  Native: sdkCore.Native,
1344
1344
  Override: sdkCore.Override,
1345
1345
  claimAssets: claimAssets,
1346
+ findAsset: sdkCore.findAsset,
1346
1347
  getAllAssetsSymbols: sdkCore.getAllAssetsSymbols,
1347
1348
  getAssetBalance: getAssetBalance,
1348
- getAssetBySymbolOrId: sdkCore.getAssetBySymbolOrId,
1349
1349
  getAssetDecimals: sdkCore.getAssetDecimals,
1350
1350
  getAssetId: sdkCore.getAssetId,
1351
1351
  getAssets: sdkCore.getAssets,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _paraspell_sdk_core from '@paraspell/sdk-core';
2
- import { TApiOrUrl, Foreign, ForeignAbstract, Native, Override, getAllAssetsSymbols, getAssetBySymbolOrId, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, TEvmBuilderOptions, TNodeWithRelayChains, TCurrencyInputWithAmount, GeneralBuilder as GeneralBuilder$1, TSendBaseOptions, TNodeDotKsmWithRelayChains } from '@paraspell/sdk-core';
2
+ import { TApiOrUrl, Foreign, ForeignAbstract, Native, Override, findAsset, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, TEvmBuilderOptions, TNodeWithRelayChains, TCurrencyInputWithAmount, GeneralBuilder as GeneralBuilder$1, TSendBaseOptions, TNodeDotKsmWithRelayChains } from '@paraspell/sdk-core';
3
3
  export * from '@paraspell/sdk-core';
4
4
  import { TEvmNodeFrom } from '@paraspell/sdk-core/src';
5
5
  import * as polkadot_api from 'polkadot-api';
@@ -73,9 +73,9 @@ declare const assets_ForeignAbstract: typeof ForeignAbstract;
73
73
  declare const assets_Native: typeof Native;
74
74
  declare const assets_Override: typeof Override;
75
75
  declare const assets_claimAssets: typeof claimAssets;
76
+ declare const assets_findAsset: typeof findAsset;
76
77
  declare const assets_getAllAssetsSymbols: typeof getAllAssetsSymbols;
77
78
  declare const assets_getAssetBalance: typeof getAssetBalance;
78
- declare const assets_getAssetBySymbolOrId: typeof getAssetBySymbolOrId;
79
79
  declare const assets_getAssetDecimals: typeof getAssetDecimals;
80
80
  declare const assets_getAssetId: typeof getAssetId;
81
81
  declare const assets_getAssets: typeof getAssets;
@@ -98,7 +98,7 @@ declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
98
98
  declare const assets_isNodeEvm: typeof isNodeEvm;
99
99
  declare const assets_verifyEdOnDestination: typeof verifyEdOnDestination;
100
100
  declare namespace assets {
101
- export { assets_Foreign as Foreign, assets_ForeignAbstract as ForeignAbstract, assets_Native as Native, assets_Override as Override, assets_claimAssets as claimAssets, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetBySymbolOrId as getAssetBySymbolOrId, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getMaxForeignTransferableAmount as getMaxForeignTransferableAmount, assets_getMaxNativeTransferableAmount as getMaxNativeTransferableAmount, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_getTransferableAmount as getTransferableAmount, assets_hasSupportForAsset as hasSupportForAsset, assets_isNodeEvm as isNodeEvm, assets_verifyEdOnDestination as verifyEdOnDestination };
101
+ export { assets_Foreign as Foreign, assets_ForeignAbstract as ForeignAbstract, assets_Native as Native, assets_Override as Override, assets_claimAssets as claimAssets, assets_findAsset as findAsset, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getMaxForeignTransferableAmount as getMaxForeignTransferableAmount, assets_getMaxNativeTransferableAmount as getMaxNativeTransferableAmount, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_getTransferableAmount as getTransferableAmount, assets_hasSupportForAsset as hasSupportForAsset, assets_isNodeEvm as isNodeEvm, assets_verifyEdOnDestination as verifyEdOnDestination };
102
102
  }
103
103
 
104
104
  /**
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { BatchMode, createApiInstanceForNode as createApiInstanceForNode$1, NodeNotSupportedError, Parents, Version, getNode, isForeignAsset, computeFeeFromDryRun, getAssetsObject, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getTransferInfo as getTransferInfo$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, getMaxNativeTransferableAmount as getMaxNativeTransferableAmount$1, getMaxForeignTransferableAmount as getMaxForeignTransferableAmount$1, getTransferableAmount as getTransferableAmount$1, verifyEdOnDestination as verifyEdOnDestination$1, Foreign, ForeignAbstract, Native, Override, getAllAssetsSymbols, getAssetBySymbolOrId, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, transferMoonbeamEvm, validateAddress, transferMoonbeamToEth, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, send as send$1, getDryRun as getDryRun$1 } from '@paraspell/sdk-core';
1
+ import { BatchMode, createApiInstanceForNode as createApiInstanceForNode$1, NodeNotSupportedError, Parents, Version, getNode, isForeignAsset, computeFeeFromDryRun, getAssetsObject, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getTransferInfo as getTransferInfo$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, getMaxNativeTransferableAmount as getMaxNativeTransferableAmount$1, getMaxForeignTransferableAmount as getMaxForeignTransferableAmount$1, getTransferableAmount as getTransferableAmount$1, verifyEdOnDestination as verifyEdOnDestination$1, Foreign, ForeignAbstract, Native, Override, findAsset, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, transferMoonbeamEvm, validateAddress, transferMoonbeamToEth, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, send as send$1, getDryRun as getDryRun$1 } from '@paraspell/sdk-core';
2
2
  export * from '@paraspell/sdk-core';
3
3
  import { blake2b } from '@noble/hashes/blake2b';
4
4
  import { bytesToHex } from '@noble/hashes/utils';
@@ -1342,9 +1342,9 @@ var assets = /*#__PURE__*/Object.freeze({
1342
1342
  Native: Native,
1343
1343
  Override: Override,
1344
1344
  claimAssets: claimAssets,
1345
+ findAsset: findAsset,
1345
1346
  getAllAssetsSymbols: getAllAssetsSymbols,
1346
1347
  getAssetBalance: getAssetBalance,
1347
- getAssetBySymbolOrId: getAssetBySymbolOrId,
1348
1348
  getAssetDecimals: getAssetDecimals,
1349
1349
  getAssetId: getAssetId,
1350
1350
  getAssets: getAssets,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "8.8.0",
3
+ "version": "8.9.0",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "ethers": "^6.13.5",
27
27
  "viem": "^2.23.5",
28
28
  "@noble/hashes": "^1.7.1",
29
- "@paraspell/sdk-core": "8.8.0"
29
+ "@paraspell/sdk-core": "8.9.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "polkadot-api": ">= 1.9.3 < 2"