@paraspell/sdk 10.10.4 → 10.10.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 CHANGED
@@ -1951,7 +1951,21 @@ var getBridgeStatus = /*#__PURE__*/function () {
1951
1951
  };
1952
1952
  }();
1953
1953
  var getOriginXcmFee = createPapiApiCall(sdkCore.getOriginXcmFee);
1954
- var getXcmFee = createPapiApiCall(sdkCore.getXcmFee);
1954
+ var getXcmFee = /*#__PURE__*/function () {
1955
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(options) {
1956
+ return _regenerator().w(function (_context3) {
1957
+ while (1) switch (_context3.n) {
1958
+ case 0:
1959
+ return _context3.a(2, sdkCore.getXcmFee(_objectSpread2(_objectSpread2({}, options), {}, {
1960
+ api: new PapiApi()
1961
+ })));
1962
+ }
1963
+ }, _callee3);
1964
+ }));
1965
+ return function getXcmFee(_x3) {
1966
+ return _ref3.apply(this, arguments);
1967
+ };
1968
+ }();
1955
1969
  var handleSwapExecuteTransfer = createPapiApiCall(sdkCore.handleSwapExecuteTransfer);
1956
1970
 
1957
1971
  var transfer = /*#__PURE__*/Object.freeze({
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, findAsset, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, TNodeDotKsmWithRelayChains, TEvmBuilderOptions, TNodeWithRelayChains, TCurrencyInputWithAmount, GeneralBuilder as GeneralBuilder$1, TSendBaseOptions } 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, TNodeDotKsmWithRelayChains, TEvmBuilderOptions, TNodeWithRelayChains, TCurrencyInputWithAmount, GeneralBuilder as GeneralBuilder$1, TSendBaseOptions, TGetXcmFeeBaseOptions } 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';
@@ -208,9 +208,7 @@ declare const getOriginXcmFee: (options: _paraspell_sdk_core.TGetOriginXcmFeeBas
208
208
  forwardedXcms?: any;
209
209
  destParaId?: number;
210
210
  }>;
211
- declare const getXcmFee: (options: _paraspell_sdk_core.TGetXcmFeeBaseOptions<TPapiTransaction> & {
212
- api?: TPapiApiOrUrl;
213
- }) => Promise<_paraspell_sdk_core.TGetXcmFeeResult>;
211
+ declare const getXcmFee: <TDisableFallback extends boolean>(options: TGetXcmFeeBaseOptions<TPapiTransaction, TDisableFallback>) => Promise<_paraspell_sdk_core.TGetXcmFeeResult<TDisableFallback>>;
214
212
  declare const handleSwapExecuteTransfer: (options: _paraspell_sdk_core.TCreateBaseSwapXcmOptions & {
215
213
  api?: TPapiApiOrUrl;
216
214
  }) => Promise<TPapiTransaction>;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { InvalidParameterError, BatchMode, getNodeProviders, createApiInstanceForNode as createApiInstanceForNode$1, NodeNotSupportedError, Parents, Version, getNode, isForeignAsset, computeFeeFromDryRun, findAsset, Native, getNativeAssetSymbol, hasXcmPaymentApiSupport, getAssetsObject, localizeLocation, isRelayChain, InvalidCurrencyError, isAssetEqual, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, Foreign, ForeignAbstract, Override, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, convertSs58 as convertSs58$1, transferMoonbeamEvm, validateAddress, transferMoonbeamToEth, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, getBridgeStatus as getBridgeStatus$1, send as send$1, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1, getOriginXcmFee as getOriginXcmFee$1, getXcmFee as getXcmFee$1, handleSwapExecuteTransfer as handleSwapExecuteTransfer$1 } from '@paraspell/sdk-core';
1
+ import { InvalidParameterError, BatchMode, getNodeProviders, createApiInstanceForNode as createApiInstanceForNode$1, NodeNotSupportedError, Parents, Version, getNode, isForeignAsset, computeFeeFromDryRun, findAsset, Native, getNativeAssetSymbol, hasXcmPaymentApiSupport, getAssetsObject, localizeLocation, isRelayChain, InvalidCurrencyError, isAssetEqual, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, Foreign, ForeignAbstract, Override, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, convertSs58 as convertSs58$1, transferMoonbeamEvm, validateAddress, transferMoonbeamToEth, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, getBridgeStatus as getBridgeStatus$1, getXcmFee as getXcmFee$1, send as send$1, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1, getOriginXcmFee as getOriginXcmFee$1, handleSwapExecuteTransfer as handleSwapExecuteTransfer$1 } from '@paraspell/sdk-core';
2
2
  export * from '@paraspell/sdk-core';
3
3
  import { blake2b } from '@noble/hashes/blake2';
4
4
  import { bytesToHex } from '@noble/hashes/utils';
@@ -1950,7 +1950,21 @@ var getBridgeStatus = /*#__PURE__*/function () {
1950
1950
  };
1951
1951
  }();
1952
1952
  var getOriginXcmFee = createPapiApiCall(getOriginXcmFee$1);
1953
- var getXcmFee = createPapiApiCall(getXcmFee$1);
1953
+ var getXcmFee = /*#__PURE__*/function () {
1954
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(options) {
1955
+ return _regenerator().w(function (_context3) {
1956
+ while (1) switch (_context3.n) {
1957
+ case 0:
1958
+ return _context3.a(2, getXcmFee$1(_objectSpread2(_objectSpread2({}, options), {}, {
1959
+ api: new PapiApi()
1960
+ })));
1961
+ }
1962
+ }, _callee3);
1963
+ }));
1964
+ return function getXcmFee(_x3) {
1965
+ return _ref3.apply(this, arguments);
1966
+ };
1967
+ }();
1954
1968
  var handleSwapExecuteTransfer = createPapiApiCall(handleSwapExecuteTransfer$1);
1955
1969
 
1956
1970
  var transfer = /*#__PURE__*/Object.freeze({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "10.10.4",
3
+ "version": "10.10.5",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "viem": "^2.31.6",
28
- "@paraspell/sdk-core": "10.10.4"
28
+ "@paraspell/sdk-core": "10.10.5"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "polkadot-api": ">= 1.14.1 < 2"