@paraspell/sdk-core 11.12.3 → 11.12.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
@@ -3162,6 +3162,10 @@ var reverseTransformLocation = function reverseTransformLocation(location) {
3162
3162
  });
3163
3163
  };
3164
3164
 
3165
+ var normalizeAmount = function normalizeAmount(amount) {
3166
+ return amount < MIN_AMOUNT ? MIN_AMOUNT : amount;
3167
+ };
3168
+
3165
3169
  /**
3166
3170
  * Retrieves the chain name corresponding to a specified parachain ID.
3167
3171
  *
@@ -4471,7 +4475,7 @@ var getDestXcmFee = /*#__PURE__*/function () {
4471
4475
  asset: asset,
4472
4476
  originFee: originFee,
4473
4477
  feeAsset: resolvedFeeAsset,
4474
- amount: currency.amount < MIN_AMOUNT ? MIN_AMOUNT : currency.amount
4478
+ amount: normalizeAmount(currency.amount)
4475
4479
  });
4476
4480
  case 4:
4477
4481
  dryRunResult = _context3.v;
@@ -11853,7 +11857,7 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
11853
11857
  case 3:
11854
11858
  originSufficient = _context.v;
11855
11859
  _context.n = 4;
11856
- return isSufficientDestination(destApi, destination, address, currency.amount, originAsset, fixedDestinationFee);
11860
+ return isSufficientDestination(destApi, destination, address, amount, originAsset, fixedDestinationFee);
11857
11861
  case 4:
11858
11862
  _destinationSufficient = _context.v;
11859
11863
  return _context.a(2, {
@@ -12896,17 +12900,17 @@ var createTypeAndThenCallContext = /*#__PURE__*/function () {
12896
12900
  };
12897
12901
  }();
12898
12902
 
12899
- var createCustomXcm = function createCustomXcm(_ref, isDotAsset, assetCount) {
12903
+ var createCustomXcm = function createCustomXcm(_ref, isDotAsset, assetCount, isForFeeCalc) {
12900
12904
  var origin = _ref.origin,
12901
12905
  dest = _ref.dest,
12902
12906
  reserve = _ref.reserve,
12903
12907
  isSubBridge = _ref.isSubBridge,
12904
12908
  assetInfo = _ref.assetInfo,
12905
12909
  options = _ref.options;
12906
- var fees = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {
12907
- reserveFee: MIN_FEE,
12910
+ var fees = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
12911
+ reserveFee: 0n,
12908
12912
  refundFee: 0n,
12909
- destFee: MIN_FEE
12913
+ destFee: 0n
12910
12914
  };
12911
12915
  var destination = options.destination,
12912
12916
  version = options.version,
@@ -12942,15 +12946,15 @@ var createCustomXcm = function createCustomXcm(_ref, isDotAsset, assetCount) {
12942
12946
  assetsFilter.push(createAsset(version, assetInfo.amount, localizeLocation(reserve.chain, assetInfo.location)));
12943
12947
  if (isSubBridge || origin.chain !== reserve.chain && dest.chain !== reserve.chain) {
12944
12948
  var buyExecutionAmount = !isDotAsset ? destFee : assetInfo.amount - reserveFee - refundFee;
12945
- if (buyExecutionAmount < 0n) throw new AmountTooLowError();
12946
- var filter = fees.destFee === MIN_FEE ? {
12949
+ if (buyExecutionAmount < 0n && !isForFeeCalc) throw new AmountTooLowError();
12950
+ var filter = isForFeeCalc ? {
12947
12951
  Wild: 'All'
12948
12952
  } : {
12949
12953
  Definite: assetsFilter
12950
12954
  };
12951
12955
  var buyExecution = {
12952
12956
  BuyExecution: {
12953
- fees: createAsset(version, buyExecutionAmount, feeLocLocalized),
12957
+ fees: createAsset(version, normalizeAmount(buyExecutionAmount), feeLocLocalized),
12954
12958
  weight_limit: 'Unlimited'
12955
12959
  }
12956
12960
  };
@@ -13044,7 +13048,7 @@ var createTypeAndThenCall = /*#__PURE__*/function () {
13044
13048
  return sdkCommon.deepEqual(assetInfo.location, loc);
13045
13049
  });
13046
13050
  assetCount = isRelayAsset ? 1 : 2;
13047
- customXcm = createCustomXcm(context, isRelayAsset, assetCount);
13051
+ customXcm = createCustomXcm(context, isRelayAsset, assetCount, true);
13048
13052
  refundInstruction = senderAddress ? createRefundInstruction(api, senderAddress, version, assetCount) : null;
13049
13053
  _context.n = 2;
13050
13054
  return computeAllFees(context, customXcm, isRelayAsset, refundInstruction);
@@ -13052,7 +13056,7 @@ var createTypeAndThenCall = /*#__PURE__*/function () {
13052
13056
  fees = _context.v;
13053
13057
  finalCustomXcm = [];
13054
13058
  if (refundInstruction && !isSubBridge) finalCustomXcm.push(refundInstruction);
13055
- finalCustomXcm.push.apply(finalCustomXcm, _toConsumableArray(createCustomXcm(context, isRelayAsset, assetCount, fees)));
13059
+ finalCustomXcm.push.apply(finalCustomXcm, _toConsumableArray(createCustomXcm(context, isRelayAsset, assetCount, false, fees)));
13056
13060
  totalFee = fees.reserveFee + fees.destFee + fees.refundFee;
13057
13061
  assets = buildAssets(chain, assetInfo, totalFee, isRelayAsset, version);
13058
13062
  return _context.a(2, buildTypeAndThenCall(context, isRelayAsset, finalCustomXcm, assets));
@@ -14577,6 +14581,7 @@ exports.isConfig = isConfig;
14577
14581
  exports.localizeLocation = localizeLocation;
14578
14582
  exports.maybeOverrideAsset = maybeOverrideAsset;
14579
14583
  exports.maybeOverrideAssets = maybeOverrideAssets;
14584
+ exports.normalizeAmount = normalizeAmount;
14580
14585
  exports.overrideTxAmount = overrideTxAmount;
14581
14586
  exports.padFee = padFee;
14582
14587
  exports.padValueBy = padValueBy;
package/dist/index.d.ts CHANGED
@@ -2304,6 +2304,8 @@ declare const localizeLocation: (chain: TChain, location: TLocation, origin?: TC
2304
2304
 
2305
2305
  declare const reverseTransformLocation: (location: TLocation) => TLocation;
2306
2306
 
2307
+ declare const normalizeAmount: (amount: bigint) => bigint;
2308
+
2307
2309
  declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "ComposableFinance" | "Darwinia" | "EnergyWebX" | "Hydration" | "IntegriteePolkadot" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "Subsocial" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "Polimec" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "Xode" | "AssetHubKusama" | "BridgeHubKusama" | "IntegriteeKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Altair" | "Amplitude" | "Basilisk" | "BifrostKusama" | "CrustShadow" | "Crab" | "Laos" | "Quartz" | "RobonomicsKusama" | "PeopleKusama" | "Shiden" | "Zeitgeist" | "AssetHubWestend" | "BridgeHubWestend" | "CollectivesWestend" | "CoretimeWestend" | "Penpal" | "PeopleWestend" | "AjunaPaseo" | "AssetHubPaseo" | "BifrostPaseo" | "BridgeHubPaseo" | "CoretimePaseo" | "EnergyWebXPaseo" | "HeimaPaseo" | "HydrationPaseo" | "IntegriteePaseo" | "KiltPaseo" | "LaosPaseo" | "NeuroWebPaseo" | "NodlePaseo" | "PAssetHub" | "PeoplePaseo" | "ZeitgeistPaseo" | undefined;
2308
2310
 
2309
2311
  declare const resolveParaId: (paraId: number | undefined, destination: TDestination) => number | undefined;
@@ -2343,5 +2345,5 @@ declare const formatUnits: typeof formatUnits$1;
2343
2345
 
2344
2346
  declare const validateAddress: (address: TAddress, chain: TChain, isDestination?: boolean) => void;
2345
2347
 
2346
- export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatUnits, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };
2348
+ export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatUnits, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };
2347
2349
  export type { BuildHopInfoOptions, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedSendOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuildInternalRes, TBuilderConfig, TBuilderOptions, TBypassOptions, TChainConfig, TChainConfigMap, TChainWithApi, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignByAssetOptions, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TResolveHopParams, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapConfig, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TUrl, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
package/dist/index.mjs CHANGED
@@ -3163,6 +3163,10 @@ var reverseTransformLocation = function reverseTransformLocation(location) {
3163
3163
  });
3164
3164
  };
3165
3165
 
3166
+ var normalizeAmount = function normalizeAmount(amount) {
3167
+ return amount < MIN_AMOUNT ? MIN_AMOUNT : amount;
3168
+ };
3169
+
3166
3170
  /**
3167
3171
  * Retrieves the chain name corresponding to a specified parachain ID.
3168
3172
  *
@@ -4472,7 +4476,7 @@ var getDestXcmFee = /*#__PURE__*/function () {
4472
4476
  asset: asset,
4473
4477
  originFee: originFee,
4474
4478
  feeAsset: resolvedFeeAsset,
4475
- amount: currency.amount < MIN_AMOUNT ? MIN_AMOUNT : currency.amount
4479
+ amount: normalizeAmount(currency.amount)
4476
4480
  });
4477
4481
  case 4:
4478
4482
  dryRunResult = _context3.v;
@@ -11854,7 +11858,7 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
11854
11858
  case 3:
11855
11859
  originSufficient = _context.v;
11856
11860
  _context.n = 4;
11857
- return isSufficientDestination(destApi, destination, address, currency.amount, originAsset, fixedDestinationFee);
11861
+ return isSufficientDestination(destApi, destination, address, amount, originAsset, fixedDestinationFee);
11858
11862
  case 4:
11859
11863
  _destinationSufficient = _context.v;
11860
11864
  return _context.a(2, {
@@ -12897,17 +12901,17 @@ var createTypeAndThenCallContext = /*#__PURE__*/function () {
12897
12901
  };
12898
12902
  }();
12899
12903
 
12900
- var createCustomXcm = function createCustomXcm(_ref, isDotAsset, assetCount) {
12904
+ var createCustomXcm = function createCustomXcm(_ref, isDotAsset, assetCount, isForFeeCalc) {
12901
12905
  var origin = _ref.origin,
12902
12906
  dest = _ref.dest,
12903
12907
  reserve = _ref.reserve,
12904
12908
  isSubBridge = _ref.isSubBridge,
12905
12909
  assetInfo = _ref.assetInfo,
12906
12910
  options = _ref.options;
12907
- var fees = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {
12908
- reserveFee: MIN_FEE,
12911
+ var fees = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
12912
+ reserveFee: 0n,
12909
12913
  refundFee: 0n,
12910
- destFee: MIN_FEE
12914
+ destFee: 0n
12911
12915
  };
12912
12916
  var destination = options.destination,
12913
12917
  version = options.version,
@@ -12943,15 +12947,15 @@ var createCustomXcm = function createCustomXcm(_ref, isDotAsset, assetCount) {
12943
12947
  assetsFilter.push(createAsset(version, assetInfo.amount, localizeLocation(reserve.chain, assetInfo.location)));
12944
12948
  if (isSubBridge || origin.chain !== reserve.chain && dest.chain !== reserve.chain) {
12945
12949
  var buyExecutionAmount = !isDotAsset ? destFee : assetInfo.amount - reserveFee - refundFee;
12946
- if (buyExecutionAmount < 0n) throw new AmountTooLowError();
12947
- var filter = fees.destFee === MIN_FEE ? {
12950
+ if (buyExecutionAmount < 0n && !isForFeeCalc) throw new AmountTooLowError();
12951
+ var filter = isForFeeCalc ? {
12948
12952
  Wild: 'All'
12949
12953
  } : {
12950
12954
  Definite: assetsFilter
12951
12955
  };
12952
12956
  var buyExecution = {
12953
12957
  BuyExecution: {
12954
- fees: createAsset(version, buyExecutionAmount, feeLocLocalized),
12958
+ fees: createAsset(version, normalizeAmount(buyExecutionAmount), feeLocLocalized),
12955
12959
  weight_limit: 'Unlimited'
12956
12960
  }
12957
12961
  };
@@ -13045,7 +13049,7 @@ var createTypeAndThenCall = /*#__PURE__*/function () {
13045
13049
  return deepEqual(assetInfo.location, loc);
13046
13050
  });
13047
13051
  assetCount = isRelayAsset ? 1 : 2;
13048
- customXcm = createCustomXcm(context, isRelayAsset, assetCount);
13052
+ customXcm = createCustomXcm(context, isRelayAsset, assetCount, true);
13049
13053
  refundInstruction = senderAddress ? createRefundInstruction(api, senderAddress, version, assetCount) : null;
13050
13054
  _context.n = 2;
13051
13055
  return computeAllFees(context, customXcm, isRelayAsset, refundInstruction);
@@ -13053,7 +13057,7 @@ var createTypeAndThenCall = /*#__PURE__*/function () {
13053
13057
  fees = _context.v;
13054
13058
  finalCustomXcm = [];
13055
13059
  if (refundInstruction && !isSubBridge) finalCustomXcm.push(refundInstruction);
13056
- finalCustomXcm.push.apply(finalCustomXcm, _toConsumableArray(createCustomXcm(context, isRelayAsset, assetCount, fees)));
13060
+ finalCustomXcm.push.apply(finalCustomXcm, _toConsumableArray(createCustomXcm(context, isRelayAsset, assetCount, false, fees)));
13057
13061
  totalFee = fees.reserveFee + fees.destFee + fees.refundFee;
13058
13062
  assets = buildAssets(chain, assetInfo, totalFee, isRelayAsset, version);
13059
13063
  return _context.a(2, buildTypeAndThenCall(context, isRelayAsset, finalCustomXcm, assets));
@@ -14481,4 +14485,4 @@ var Builder = function Builder(api) {
14481
14485
  return new GeneralBuilder(api, new BatchTransactionManager());
14482
14486
  };
14483
14487
 
14484
- export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatUnits, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getFailureInfo$1 as getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };
14488
+ export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatUnits, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getFailureInfo$1 as getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-core",
3
- "version": "11.12.3",
3
+ "version": "11.12.5",
4
4
  "description": "SDK core for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "@scure/base": "^2.0.0",
28
28
  "viem": "^2.37.9",
29
- "@paraspell/pallets": "11.12.3",
30
- "@paraspell/sdk-common": "11.12.3",
31
- "@paraspell/assets": "11.12.3"
29
+ "@paraspell/assets": "11.12.5",
30
+ "@paraspell/sdk-common": "11.12.5",
31
+ "@paraspell/pallets": "11.12.5"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/plugin-syntax-import-attributes": "^7.27.1",