@paraspell/sdk-core 14.5.0 → 14.5.1
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.d.ts +12 -11
- package/dist/index.mjs +49 -108
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ declare abstract class PolkadotApi<TApi, TRes, TSigner, TCustomChain extends str
|
|
|
93
93
|
localizeLocation(chain: TChain | TCustomChain, location: TLocation, origin?: TChain | TCustomChain): TLocation;
|
|
94
94
|
getAssetReserveChain(chain: TSubstrateChain | TCustomChain, assetLocation: TLocation, resolveExternalReserve?: boolean): TChain | TCustomChain;
|
|
95
95
|
isAssetXcEqual(a: TChainAssetInfo<TCustomChain>, b: TChainAssetInfo<TCustomChain>): boolean;
|
|
96
|
+
dispatchAs(call: TRes, origin: TDispatchOrigin): TRes;
|
|
96
97
|
init(chain: TChain | TCustomChain, clientTtlMs?: number, destination?: TDestination): Promise<void>;
|
|
97
98
|
setCustomCtx(ctx: TFullCustomCtx): void;
|
|
98
99
|
protected resetChain(): void;
|
|
@@ -107,7 +108,6 @@ declare abstract class PolkadotApi<TApi, TRes, TSigner, TCustomChain extends str
|
|
|
107
108
|
abstract queryState<T>(serialized: TSerializedStateQuery): Promise<T>;
|
|
108
109
|
abstract queryRuntimeApi<T>(serialized: TSerializedRuntimeApiQuery): Promise<T>;
|
|
109
110
|
abstract callBatchMethod(calls: TRes[], mode: BatchMode): TRes;
|
|
110
|
-
abstract callDispatchAsMethod(call: TRes, address: string): TRes;
|
|
111
111
|
abstract objectToHex(obj: unknown, typeName: string, version: Version): Promise<string>;
|
|
112
112
|
abstract hexToUint8a(hex: string): Uint8Array;
|
|
113
113
|
abstract stringToUint8a(str: string): Uint8Array;
|
|
@@ -525,6 +525,7 @@ declare class Xode<TApi, TRes, TSigner, TCustomChain extends string = never> ext
|
|
|
525
525
|
constructor();
|
|
526
526
|
transferPolkadotXCM(options: TPolkadotXCMTransferOptions<TApi, TRes, TSigner, TCustomChain>): Promise<TRes>;
|
|
527
527
|
canReceiveFrom<TCustomChain extends string = never>(origin: TChain | TCustomChain): boolean;
|
|
528
|
+
protected getMintConfig(): TMintConfig;
|
|
528
529
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes, TSigner, TCustomChain>): TRes;
|
|
529
530
|
}
|
|
530
531
|
|
|
@@ -1914,7 +1915,6 @@ type TTypeAndThenFees = {
|
|
|
1914
1915
|
destFee: bigint;
|
|
1915
1916
|
};
|
|
1916
1917
|
type TTypeAndThenOverrides = {
|
|
1917
|
-
reserveChain?: TSubstrateChain;
|
|
1918
1918
|
noFeeAsset?: boolean;
|
|
1919
1919
|
};
|
|
1920
1920
|
|
|
@@ -2175,9 +2175,16 @@ type TCreateEthBridgeInstructionsOptions<TApi, TRes, TSigner, TCustomChain exten
|
|
|
2175
2175
|
version: Version;
|
|
2176
2176
|
};
|
|
2177
2177
|
|
|
2178
|
+
type TDispatchOrigin = {
|
|
2179
|
+
type: 'signed';
|
|
2180
|
+
address: string;
|
|
2181
|
+
} | {
|
|
2182
|
+
type: 'treasuryCouncil';
|
|
2183
|
+
};
|
|
2178
2184
|
type TSetBalanceRes = {
|
|
2179
2185
|
assetStatusTx?: TSerializedExtrinsics;
|
|
2180
2186
|
balanceTx: TSerializedExtrinsics;
|
|
2187
|
+
forceOrigin?: TDispatchOrigin;
|
|
2181
2188
|
};
|
|
2182
2189
|
type TChainAssetInfo<TCustomChain extends string = never> = {
|
|
2183
2190
|
chain: TChain | TCustomChain;
|
|
@@ -2192,6 +2199,7 @@ type TMintConfig = {
|
|
|
2192
2199
|
useLocationId?: boolean;
|
|
2193
2200
|
useBigIntId?: boolean;
|
|
2194
2201
|
useCustomCurrencyId?: boolean;
|
|
2202
|
+
forceOrigin?: TDispatchOrigin;
|
|
2195
2203
|
};
|
|
2196
2204
|
declare abstract class BaseAssetsPallet {
|
|
2197
2205
|
protected palletName: TAssetsPallet;
|
|
@@ -2427,13 +2435,6 @@ declare const constructTypeAndThenCall: <TApi, TRes, TSigner, TCustomChain exten
|
|
|
2427
2435
|
*/
|
|
2428
2436
|
declare const createTypeAndThenCall: <TApi, TRes, TSigner, TCustomChain extends string = never>(options: TPolkadotXCMTransferOptions<TApi, TRes, TSigner, TCustomChain>, overrides?: TTypeAndThenOverrides) => Promise<TSerializedExtrinsics>;
|
|
2429
2437
|
|
|
2430
|
-
/**
|
|
2431
|
-
* Creates a type-and-then call but auto-selects the asset reserve between AssetHub and the Relay chain
|
|
2432
|
-
* by dry-running both variants and preferring the one that succeeds. If both fail, returns the
|
|
2433
|
-
* AssetHub variant. Supports only relaychain assets.
|
|
2434
|
-
*/
|
|
2435
|
-
declare const createTypeThenAutoReserve: <TApi, TRes, TSigner>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes, TSigner>) => Promise<TSerializedExtrinsics>;
|
|
2436
|
-
|
|
2437
2438
|
declare const validateCurrency: (currency: TCurrencyInput, feeAsset?: TCurrencyInput) => void;
|
|
2438
2439
|
declare const validateFeeAssetSupport: (assetInfo: TAssetInfo, feeAsset: TAssetInfo | undefined, overriddenAsset: TAssetWithFee[] | undefined, method: string) => void;
|
|
2439
2440
|
declare const validateDestination: <TApi, TRes, TSigner, TCustomChain extends string = never>(origin: TSubstrateChain | TCustomChain, destination: TDestination, api: PolkadotApi<TApi, TRes, TSigner, TCustomChain>) => void;
|
|
@@ -2638,5 +2639,5 @@ declare const selectXcmVersion: (forcedVersion: Version | undefined, originVersi
|
|
|
2638
2639
|
declare const pickCompatibleXcmVersion: <TApi, TRes, TSigner, TCustomChain extends string = never>(api: PolkadotApi<TApi, TRes, TSigner, TCustomChain>, origin: TSubstrateChain | TCustomChain, destination: TDestination, override?: Version) => Version;
|
|
2639
2640
|
declare const pickRouterCompatibleXcmVersion: <TApi, TRes, TSigner, TCustomChain extends string = never>(api: PolkadotApi<TApi, TRes, TSigner, TCustomChain>, origin: TSubstrateChain | undefined, exchangeChain: TSubstrateChain, destination: TChain | undefined) => Version;
|
|
2640
2641
|
|
|
2641
|
-
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, CustomChainConflictError, CustomChainInvalidError, DEFAULT_TTL_MS, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETH_MAINNET_CHAIN_ID, ETH_TESTNET_CHAIN_ID, EXCHANGE_CHAINS, EXTENSION_MS, ExtensionNotInstalledError, FeatureTemporarilyDisabledError, GeneralBuilder, InvalidAddressError, MAX_CLIENTS, MissingChainApiError, MissingParameterError, NoXCMSupportImplementedError, NumberFormatError, OverrideConflictError, PolkadotApi, PolkadotXcmError, PolkadotXcmExecutionError, ProviderUnavailableError, RELAY_LOCATION, RoutingResolutionError, RuntimeApiError, RuntimeApiUnavailableError, ScenarioNotSupportedError, SubmitTransactionError, TRANSACT_ORIGINS, TX_CLIENT_TIMEOUT_MS, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, ValidationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, aggregateHopFees, applyDecimalAbstraction, assertAddressIsString, assertCurrencyCore, assertEvmAddress, assertExtensionInstalled, assertHasId, assertNotEvmTransfer, assertSender, assertSenderSource, assertSubstrateOrigin, assertSwapSupport, assertToIsString, blake2128Concat, blake2b256, blake2b512, buildCustomChainAssetsInfo, buildCustomChainConfig, buildDestInfo, buildDryRunError, buildErc20StorageMint, buildHopInfo, buildOriginInfo, calcPreviewMintAmount, calcSentAssetPreviewMint, compareAddresses, compareLocationOrder, computeOverridenAmount, constructTypeAndThenCall, convertBuilderConfig, convertSs58, createAllCountedFilter, createAsset, createAssetId, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createBridgedXcmPrefix, createChainClient, createClientCache, createClientPoolHelpers, createCustomXcmOnDest, createDestination, createDirectExecuteXcm, createEthereumBridgeInstructions, createExecuteCall, createSwapBuilder, createTransfer, createTransferOrSwap, createTransferOrSwapAll, createTxOverrideAmount, createTypeAndThenCall,
|
|
2642
|
-
export type { BuildHopInfoOptions, ClientCache, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotXCMTransfer, IXTokensTransfer, OneKey, TAddress, TApiOrUrl, TApiType, TAssetState, TBatchOptions, TBatchedTransferOptions, TBifrostToken, TBridgeStatus, TBridgedXcmParams, TBuildAllInternalRes, TBuildDestInfoOptions, TBuildEvmTransferOptions, TBuildInternalRes, TBuildInternalResBase, TBuildOriginInfoOptions, TBuilderConfig, TBuilderInternalOptions, TBuilderOptions, TBypassOptions, TCacheItem, TChainAssetInfo, TChainConfig, TChainConfigMap, TChainWithApi, TClientEntry, TClientKey, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateEthBridgeInstructionsOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TCustomChainEntry, TCustomChainEntryHydrated, TCustomChainFrom, TCustomChainInput, TCustomChainPalletsInput, TCustomChainsCtx, TCustomChainsMap, TDestWeight, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChainFailure, TDryRunChainKind, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunFailure, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmExtension, TEvmSnowbridgeExtension, TEvmTransferOptions, TEvmTransferOptionsBase, TExchangeChain, TExchangeInput, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TFullCustomCtx, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceCommonOptions, TGetBalanceOptions, TGetBalanceOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, TMintConfig, TModuleError, TNativeTokenAsset, TOriginFeeDetails, TOriginXcmFeeInfo, TOtherReserveAsset, TPalletAssetId, TPaymentInfo, TPerAssetResult, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TQueriedAmount, TReceivedCurrencyInfo, TReserveAsset, TResolveEdDepositOptions, TResolveHopParams, TResolvedCurrency, TRuntimeApi, TScenario, TSelectedCurrencyInfo, TSelfReserveAsset, TSender, TSerializedExtrinsics, TSerializedRuntimeApiQuery, TSerializedStateQuery, TSetBalanceRes, TStatusChangeCallback, TSubstrateTransferBaseOptions, TSubstrateTransferBaseOptionsWithSender, TSubstrateTransferOptions, TSwapBuilder, TSwapBuilderFactory, TSwapConfig, TSwapEvent, TSwapEventType, TSwapExtension, TSwapFeeEstimates, TSwapOptions, TSystemProperties, TTransactOptions, TTransactOrigin, TTransactionContext, TTransactionType, TTransferBaseOptions, TTransferBaseOptionsWithSender, TTransferBaseOptionsWithSwap, TTransferFeeEstimates, TTransferInfo, TTransferInternalOptions, TTransferLocalOptions, TTransferOptions, TTransferOptionsWithSwap, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TTypeAndThenOverrides, TUrl, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeDetailWithForwardedXcm, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmVersioned, WithApi, WithRequiredSender, WithRequiredSwapOptions };
|
|
2642
|
+
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, CustomChainConflictError, CustomChainInvalidError, DEFAULT_TTL_MS, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETH_MAINNET_CHAIN_ID, ETH_TESTNET_CHAIN_ID, EXCHANGE_CHAINS, EXTENSION_MS, ExtensionNotInstalledError, FeatureTemporarilyDisabledError, GeneralBuilder, InvalidAddressError, MAX_CLIENTS, MissingChainApiError, MissingParameterError, NoXCMSupportImplementedError, NumberFormatError, OverrideConflictError, PolkadotApi, PolkadotXcmError, PolkadotXcmExecutionError, ProviderUnavailableError, RELAY_LOCATION, RoutingResolutionError, RuntimeApiError, RuntimeApiUnavailableError, ScenarioNotSupportedError, SubmitTransactionError, TRANSACT_ORIGINS, TX_CLIENT_TIMEOUT_MS, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, ValidationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, aggregateHopFees, applyDecimalAbstraction, assertAddressIsString, assertCurrencyCore, assertEvmAddress, assertExtensionInstalled, assertHasId, assertNotEvmTransfer, assertSender, assertSenderSource, assertSubstrateOrigin, assertSwapSupport, assertToIsString, blake2128Concat, blake2b256, blake2b512, buildCustomChainAssetsInfo, buildCustomChainConfig, buildDestInfo, buildDryRunError, buildErc20StorageMint, buildHopInfo, buildOriginInfo, calcPreviewMintAmount, calcSentAssetPreviewMint, compareAddresses, compareLocationOrder, computeOverridenAmount, constructTypeAndThenCall, convertBuilderConfig, convertSs58, createAllCountedFilter, createAsset, createAssetId, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createBridgedXcmPrefix, createChainClient, createClientCache, createClientPoolHelpers, createCustomXcmOnDest, createDestination, createDirectExecuteXcm, createEthereumBridgeInstructions, createExecuteCall, createSwapBuilder, createTransfer, createTransferOrSwap, createTransferOrSwapAll, createTxOverrideAmount, createTypeAndThenCall, createVersionedAssets, createVersionedDestination, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, executeWithSwap, formatAssetIdToERC20, formatUnits, generateMessageId, getAssetBalanceInternal, getAssetReserveChain, getAssetReserveChainImpl, getBalance, getBalanceInternal, getBridgeStatus, getChain, getChainConfig, getChainConfigImpl, getChainLocation, getChainProviders, getChainProvidersImpl, getChainVersion, getDryRunError, getErrorInstruction, getEthErc20Balance, getEvmExtensionOrThrow, getEvmPrivateKeyHex, getEvmSnowbridgeExtensionOrThrow, getLocalTransferAmount, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginXcmFee, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getParaIdImpl, getRelayChainOf, getRelayChainOfImpl, getRelayChainSymbolOf, getSwapExtensionOrThrow, getTChain, getTSubstrateChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, isAssetXcEqualImpl, isConfig, isExchange, isNativeAssetTeleport, isSenderSigner, isViemSigner, keyFromWs, localizeLocation, localizeLocationImpl, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, normalizeCustomChains, normalizeExchange, overrideTxAmount, padFee, padValueBy, parseUnits, pickCompatibleXcmVersion, pickOtherMintPallet, pickRouterCompatibleXcmVersion, registerEvmExtension, registerEvmSnowbridgeExtension, registerSwapExtension, resolveAssetCount, resolveDestChain, resolveModuleError, resolveParaId, resolveTransferParams, reverseTransformLocation, selectXcmVersion, sortAssets, throwUnsupportedCurrency, toLeHex, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, validateDestinationAddress, validateFeeAssetSupport, validateTransact, verifyEdOnDestination, wrapTxBypass };
|
|
2643
|
+
export type { BuildHopInfoOptions, ClientCache, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotXCMTransfer, IXTokensTransfer, OneKey, TAddress, TApiOrUrl, TApiType, TAssetState, TBatchOptions, TBatchedTransferOptions, TBifrostToken, TBridgeStatus, TBridgedXcmParams, TBuildAllInternalRes, TBuildDestInfoOptions, TBuildEvmTransferOptions, TBuildInternalRes, TBuildInternalResBase, TBuildOriginInfoOptions, TBuilderConfig, TBuilderInternalOptions, TBuilderOptions, TBypassOptions, TCacheItem, TChainAssetInfo, TChainConfig, TChainConfigMap, TChainWithApi, TClientEntry, TClientKey, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateEthBridgeInstructionsOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TCustomChainEntry, TCustomChainEntryHydrated, TCustomChainFrom, TCustomChainInput, TCustomChainPalletsInput, TCustomChainsCtx, TCustomChainsMap, TDestWeight, TDestination, TDispatchOrigin, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChainFailure, TDryRunChainKind, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunFailure, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmExtension, TEvmSnowbridgeExtension, TEvmTransferOptions, TEvmTransferOptionsBase, TExchangeChain, TExchangeInput, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TFullCustomCtx, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceCommonOptions, TGetBalanceOptions, TGetBalanceOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, TMintConfig, TModuleError, TNativeTokenAsset, TOriginFeeDetails, TOriginXcmFeeInfo, TOtherReserveAsset, TPalletAssetId, TPaymentInfo, TPerAssetResult, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TQueriedAmount, TReceivedCurrencyInfo, TReserveAsset, TResolveEdDepositOptions, TResolveHopParams, TResolvedCurrency, TRuntimeApi, TScenario, TSelectedCurrencyInfo, TSelfReserveAsset, TSender, TSerializedExtrinsics, TSerializedRuntimeApiQuery, TSerializedStateQuery, TSetBalanceRes, TStatusChangeCallback, TSubstrateTransferBaseOptions, TSubstrateTransferBaseOptionsWithSender, TSubstrateTransferOptions, TSwapBuilder, TSwapBuilderFactory, TSwapConfig, TSwapEvent, TSwapEventType, TSwapExtension, TSwapFeeEstimates, TSwapOptions, TSystemProperties, TTransactOptions, TTransactOrigin, TTransactionContext, TTransactionType, TTransferBaseOptions, TTransferBaseOptionsWithSender, TTransferBaseOptionsWithSwap, TTransferFeeEstimates, TTransferInfo, TTransferInternalOptions, TTransferLocalOptions, TTransferOptions, TTransferOptionsWithSwap, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TTypeAndThenOverrides, TUrl, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeDetailWithForwardedXcm, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmVersioned, WithApi, WithRequiredSender, WithRequiredSwapOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { blake2b } from '@noble/hashes/blake2.js';
|
|
2
|
-
import { isChainEvm, getAssetsObject, InvalidCurrencyError, isAssetEqual, isSymbolMatch, isStableCoinAsset, isAdditionalSubstrateBridgeAsset, isBridgedSystemAsset, STABLECOIN_IDS, isSymbolSpecifier, normalizeLocation, getNativeAssetSymbol, extractAssetLocation,
|
|
2
|
+
import { isChainEvm, getAssetsObject, InvalidCurrencyError, isAssetEqual, isSymbolMatch, isStableCoinAsset, isAdditionalSubstrateBridgeAsset, isBridgedSystemAsset, STABLECOIN_IDS, isSymbolSpecifier, normalizeLocation, getNativeAssetSymbol, extractAssetLocation, normalizeSymbol, Native, getOtherAssets, canonicalizeLocation, getAssetsObjectImpl, getAssetsImpl, getNativeAssetsImpl, getOtherAssetsImpl, findAssetInfoImpl, findAssetInfoOrThrowImpl, findAssetInfoOnDestImpl, findAssetOnDestOrThrowImpl, findNativeAssetInfoImpl, findNativeAssetInfoOrThrowImpl, isChainEvmImpl, getNativeAssetSymbolImpl, getRelayChainSymbolImpl, hasDryRunSupportImpl, hasXcmPaymentApiSupportImpl, getExistentialDepositImpl, normalizeCustomAssets } from '@paraspell/assets';
|
|
3
3
|
export * from '@paraspell/assets';
|
|
4
4
|
import { base58 } from '@scure/base';
|
|
5
5
|
import { isAddress, isHex, createPublicClient, http, formatUnits as formatUnits$1, parseUnits as parseUnits$1, stringToHex, numberToBytes } from 'viem';
|
|
@@ -2232,6 +2232,7 @@ var AssetsPallet = /*#__PURE__*/function (_BaseAssetsPallet) {
|
|
|
2232
2232
|
is_frozen: false
|
|
2233
2233
|
}
|
|
2234
2234
|
},
|
|
2235
|
+
forceOrigin: config.forceOrigin,
|
|
2235
2236
|
balanceTx: {
|
|
2236
2237
|
module: this.palletName,
|
|
2237
2238
|
method: 'mint',
|
|
@@ -6452,10 +6453,18 @@ var createOptionalMintTxs = function createOptionalMintTxs(chain, currency, amou
|
|
|
6452
6453
|
amount: amount
|
|
6453
6454
|
}), balance, address, api);
|
|
6454
6455
|
};
|
|
6456
|
+
var toTxWithOrigin = function toTxWithOrigin(api, tx, origin) {
|
|
6457
|
+
var call = api.deserializeExtrinsics(tx);
|
|
6458
|
+
return origin ? api.dispatchAs(call, origin) : call;
|
|
6459
|
+
};
|
|
6455
6460
|
var resultToExtrinsics = function resultToExtrinsics(api, address, _ref) {
|
|
6456
6461
|
var assetStatusTx = _ref.assetStatusTx,
|
|
6457
|
-
balanceTx = _ref.balanceTx
|
|
6458
|
-
|
|
6462
|
+
balanceTx = _ref.balanceTx,
|
|
6463
|
+
forceOrigin = _ref.forceOrigin;
|
|
6464
|
+
return [].concat(_toConsumableArray(assetStatusTx ? [toTxWithOrigin(api, assetStatusTx, forceOrigin)] : []), [toTxWithOrigin(api, balanceTx, assetStatusTx ? {
|
|
6465
|
+
type: 'signed',
|
|
6466
|
+
address: address
|
|
6467
|
+
} : undefined)]);
|
|
6459
6468
|
};
|
|
6460
6469
|
var mintBonusForSent = function mintBonusForSent(chain, sent, feeAsset, mintFeeAssets, api) {
|
|
6461
6470
|
if (!mintFeeAssets) return 0n;
|
|
@@ -6608,7 +6617,10 @@ var wrapTxBypass = /*#__PURE__*/function () {
|
|
|
6608
6617
|
mintAssetResults = _context2.v;
|
|
6609
6618
|
return _context2.a(2, api.callBatchMethod([].concat(_toConsumableArray([mintNativeAssetRes, mintRelayAssetRes, mintFeeAssetRes].concat(_toConsumableArray(mintAssetResults)).flatMap(function (tx) {
|
|
6610
6619
|
return tx ? resultToExtrinsics(api, address, tx) : [];
|
|
6611
|
-
})), [api.
|
|
6620
|
+
})), [api.dispatchAs(tx, {
|
|
6621
|
+
type: 'signed',
|
|
6622
|
+
address: address
|
|
6623
|
+
})]), BatchMode.BATCH_ALL));
|
|
6612
6624
|
}
|
|
6613
6625
|
}, _callee2);
|
|
6614
6626
|
}));
|
|
@@ -8464,13 +8476,10 @@ var getBridgeReserve = function getBridgeReserve(api, chain, destination, locati
|
|
|
8464
8476
|
var expectedConsensus = isExternalChain(destination) ? ethereumConsensus : _defineProperty({}, getRelayChainOf(destination).toLowerCase(), null);
|
|
8465
8477
|
return deepEqual(assetConsensus, expectedConsensus) ? destination : chain;
|
|
8466
8478
|
};
|
|
8467
|
-
var resolveReserveChain = function resolveReserveChain(api, chain, destination, assetLocation, isSubBridge
|
|
8479
|
+
var resolveReserveChain = function resolveReserveChain(api, chain, destination, assetLocation, isSubBridge) {
|
|
8468
8480
|
if (isSubBridge) {
|
|
8469
8481
|
return getBridgeReserve(api, chain, destination, assetLocation);
|
|
8470
8482
|
}
|
|
8471
|
-
if (overrideReserve !== undefined) {
|
|
8472
|
-
return overrideReserve;
|
|
8473
|
-
}
|
|
8474
8483
|
return api.getAssetReserveChain(chain, assetLocation, isExternalChain(destination));
|
|
8475
8484
|
};
|
|
8476
8485
|
var createTypeAndThenCallContext = /*#__PURE__*/function () {
|
|
@@ -8487,7 +8496,7 @@ var createTypeAndThenCallContext = /*#__PURE__*/function () {
|
|
|
8487
8496
|
transferredAsset = overriddenAsset === null || overriddenAsset === void 0 ? void 0 : overriddenAsset.find(function (asset) {
|
|
8488
8497
|
return !asset.isFeeAsset;
|
|
8489
8498
|
});
|
|
8490
|
-
reserveChain = resolveReserveChain(api, chain, destination, transferredAsset ? extractAssetLocation(transferredAsset) : assetInfo.location, isSubBridge
|
|
8499
|
+
reserveChain = resolveReserveChain(api, chain, destination, transferredAsset ? extractAssetLocation(transferredAsset) : assetInfo.location, isSubBridge);
|
|
8491
8500
|
feeAssetInfo = getFeeAssetInfo(assetInfo, options.feeAssetInfo);
|
|
8492
8501
|
feeAssetLocation = transferredAsset ? assetInfo.location : feeAssetInfo === null || feeAssetInfo === void 0 ? void 0 : feeAssetInfo.location;
|
|
8493
8502
|
feeReserveChain = feeAssetLocation && resolveReserveChain(api, chain, destination, feeAssetLocation, isSubBridge);
|
|
@@ -9054,7 +9063,6 @@ var createTypeAndThenCall = /*#__PURE__*/function () {
|
|
|
9054
9063
|
while (1) switch (_context3.n) {
|
|
9055
9064
|
case 0:
|
|
9056
9065
|
overrides = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {
|
|
9057
|
-
reserveChain: undefined,
|
|
9058
9066
|
noFeeAsset: false
|
|
9059
9067
|
};
|
|
9060
9068
|
_context3.n = 1;
|
|
@@ -9112,102 +9120,6 @@ var createTypeAndThenCall = /*#__PURE__*/function () {
|
|
|
9112
9120
|
};
|
|
9113
9121
|
}();
|
|
9114
9122
|
|
|
9115
|
-
var createCallForReserve = /*#__PURE__*/function () {
|
|
9116
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(chain, reserveChain, options) {
|
|
9117
|
-
var api, destination, sender, recipient, currency, feeCurrency, version, serialized, tx, dryRunResult;
|
|
9118
|
-
return _regenerator().w(function (_context) {
|
|
9119
|
-
while (1) switch (_context.n) {
|
|
9120
|
-
case 0:
|
|
9121
|
-
api = options.api, destination = options.destination, sender = options.sender, recipient = options.recipient, currency = options.currency, feeCurrency = options.feeCurrency, version = options.version;
|
|
9122
|
-
_context.n = 1;
|
|
9123
|
-
return createTypeAndThenCall(options, {
|
|
9124
|
-
reserveChain: reserveChain
|
|
9125
|
-
});
|
|
9126
|
-
case 1:
|
|
9127
|
-
serialized = _context.v;
|
|
9128
|
-
assertSender(sender);
|
|
9129
|
-
assertAddressIsString(recipient);
|
|
9130
|
-
assertToIsString(destination, 'Location destination is not supported for reserve auto-selection.');
|
|
9131
|
-
tx = api.deserializeExtrinsics(serialized);
|
|
9132
|
-
_context.n = 2;
|
|
9133
|
-
return dryRunInternal({
|
|
9134
|
-
api: api,
|
|
9135
|
-
tx: tx,
|
|
9136
|
-
origin: chain,
|
|
9137
|
-
destination: destination,
|
|
9138
|
-
sender: sender,
|
|
9139
|
-
currency: currency,
|
|
9140
|
-
version: version,
|
|
9141
|
-
feeAsset: feeCurrency,
|
|
9142
|
-
useRootOrigin: true
|
|
9143
|
-
});
|
|
9144
|
-
case 2:
|
|
9145
|
-
dryRunResult = _context.v;
|
|
9146
|
-
return _context.a(2, {
|
|
9147
|
-
call: serialized,
|
|
9148
|
-
success: dryRunResult.success
|
|
9149
|
-
});
|
|
9150
|
-
}
|
|
9151
|
-
}, _callee);
|
|
9152
|
-
}));
|
|
9153
|
-
return function createCallForReserve(_x, _x2, _x3) {
|
|
9154
|
-
return _ref.apply(this, arguments);
|
|
9155
|
-
};
|
|
9156
|
-
}();
|
|
9157
|
-
/**
|
|
9158
|
-
* Creates a type-and-then call but auto-selects the asset reserve between AssetHub and the Relay chain
|
|
9159
|
-
* by dry-running both variants and preferring the one that succeeds. If both fail, returns the
|
|
9160
|
-
* AssetHub variant. Supports only relaychain assets.
|
|
9161
|
-
*/
|
|
9162
|
-
var createTypeThenAutoReserve = /*#__PURE__*/function () {
|
|
9163
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(chain, options) {
|
|
9164
|
-
var originSupports, destSupports, relay, assetHubReserve, ahResult, relayResult;
|
|
9165
|
-
return _regenerator().w(function (_context2) {
|
|
9166
|
-
while (1) switch (_context2.n) {
|
|
9167
|
-
case 0:
|
|
9168
|
-
// Use dry-run path only when BOTH origin and destination support it
|
|
9169
|
-
originSupports = hasDryRunSupport(chain);
|
|
9170
|
-
destSupports = options.destChain ? hasDryRunSupport(options.destChain) : false;
|
|
9171
|
-
if (originSupports && destSupports) {
|
|
9172
|
-
_context2.n = 2;
|
|
9173
|
-
break;
|
|
9174
|
-
}
|
|
9175
|
-
_context2.n = 1;
|
|
9176
|
-
return createTypeAndThenCall(options);
|
|
9177
|
-
case 1:
|
|
9178
|
-
return _context2.a(2, _context2.v);
|
|
9179
|
-
case 2:
|
|
9180
|
-
relay = getRelayChainOf(chain);
|
|
9181
|
-
assetHubReserve = "AssetHub".concat(relay);
|
|
9182
|
-
_context2.n = 3;
|
|
9183
|
-
return createCallForReserve(chain, assetHubReserve, options);
|
|
9184
|
-
case 3:
|
|
9185
|
-
ahResult = _context2.v;
|
|
9186
|
-
if (!ahResult.success) {
|
|
9187
|
-
_context2.n = 4;
|
|
9188
|
-
break;
|
|
9189
|
-
}
|
|
9190
|
-
return _context2.a(2, ahResult.call);
|
|
9191
|
-
case 4:
|
|
9192
|
-
_context2.n = 5;
|
|
9193
|
-
return createCallForReserve(chain, relay, options);
|
|
9194
|
-
case 5:
|
|
9195
|
-
relayResult = _context2.v;
|
|
9196
|
-
if (!relayResult.success) {
|
|
9197
|
-
_context2.n = 6;
|
|
9198
|
-
break;
|
|
9199
|
-
}
|
|
9200
|
-
return _context2.a(2, relayResult.call);
|
|
9201
|
-
case 6:
|
|
9202
|
-
return _context2.a(2, ahResult.call);
|
|
9203
|
-
}
|
|
9204
|
-
}, _callee2);
|
|
9205
|
-
}));
|
|
9206
|
-
return function createTypeThenAutoReserve(_x4, _x5) {
|
|
9207
|
-
return _ref2.apply(this, arguments);
|
|
9208
|
-
};
|
|
9209
|
-
}();
|
|
9210
|
-
|
|
9211
9123
|
var calculateTotalXcmFee = function calculateTotalXcmFee(asset, feeResult) {
|
|
9212
9124
|
var totalHopFee = feeResult.hops.reduce(function (acc, hop) {
|
|
9213
9125
|
return isAssetEqual(hop.result.asset, asset) ? acc + hop.result.fee : acc;
|
|
@@ -12488,7 +12400,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_SubstrateChain) {
|
|
|
12488
12400
|
value: function transferPolkadotXCM(input) {
|
|
12489
12401
|
var scenario = input.scenario,
|
|
12490
12402
|
destChain = input.destChain;
|
|
12491
|
-
if (scenario === 'ParaToPara' && !(destChain !== null && destChain !== void 0 && destChain.startsWith('AssetHub'))) {
|
|
12403
|
+
if (scenario === 'ParaToPara' && !(destChain !== null && destChain !== void 0 && destChain.startsWith('AssetHub')) && destChain !== 'Hydration') {
|
|
12492
12404
|
throw new ScenarioNotSupportedError("Unable to use ".concat(this.chain, " for transfers to other Parachains."));
|
|
12493
12405
|
}
|
|
12494
12406
|
return transferPolkadotXcm(input);
|
|
@@ -12697,6 +12609,15 @@ var Xode = /*#__PURE__*/function (_SubstrateChain) {
|
|
|
12697
12609
|
value: function canReceiveFrom(origin) {
|
|
12698
12610
|
return origin === 'AssetHubPolkadot';
|
|
12699
12611
|
}
|
|
12612
|
+
}, {
|
|
12613
|
+
key: "getMintConfig",
|
|
12614
|
+
value: function getMintConfig() {
|
|
12615
|
+
return {
|
|
12616
|
+
forceOrigin: {
|
|
12617
|
+
type: 'treasuryCouncil'
|
|
12618
|
+
}
|
|
12619
|
+
};
|
|
12620
|
+
}
|
|
12700
12621
|
}, {
|
|
12701
12622
|
key: "transferLocalNonNativeAsset",
|
|
12702
12623
|
value: function transferLocalNonNativeAsset(options) {
|
|
@@ -13867,6 +13788,26 @@ var PolkadotApi = /*#__PURE__*/function () {
|
|
|
13867
13788
|
value: function isAssetXcEqual(a, b) {
|
|
13868
13789
|
return isAssetXcEqualImpl(this, a, b);
|
|
13869
13790
|
}
|
|
13791
|
+
}, {
|
|
13792
|
+
key: "dispatchAs",
|
|
13793
|
+
value: function dispatchAs(call, origin) {
|
|
13794
|
+
return this.deserializeExtrinsics({
|
|
13795
|
+
module: 'Utility',
|
|
13796
|
+
method: 'dispatch_as',
|
|
13797
|
+
params: {
|
|
13798
|
+
as_origin: origin.type === 'treasuryCouncil' ? {
|
|
13799
|
+
TreasuryCouncil: {
|
|
13800
|
+
Members: [1, 1]
|
|
13801
|
+
}
|
|
13802
|
+
} : {
|
|
13803
|
+
system: {
|
|
13804
|
+
Signed: origin.address
|
|
13805
|
+
}
|
|
13806
|
+
},
|
|
13807
|
+
call: call
|
|
13808
|
+
}
|
|
13809
|
+
});
|
|
13810
|
+
}
|
|
13870
13811
|
}, {
|
|
13871
13812
|
key: "init",
|
|
13872
13813
|
value: function () {
|
|
@@ -14244,4 +14185,4 @@ var createClientCache = function createClientCache(maxSize, pingClient, onEvicti
|
|
|
14244
14185
|
};
|
|
14245
14186
|
};
|
|
14246
14187
|
|
|
14247
|
-
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, CustomChainConflictError, CustomChainInvalidError, DEFAULT_TTL_MS, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETH_MAINNET_CHAIN_ID, ETH_TESTNET_CHAIN_ID, EXCHANGE_CHAINS, EXTENSION_MS, ExtensionNotInstalledError, FeatureTemporarilyDisabledError, GeneralBuilder, InvalidAddressError, MAX_CLIENTS, MissingChainApiError, MissingParameterError, NoXCMSupportImplementedError, NumberFormatError, OverrideConflictError, PolkadotApi, PolkadotXcmError, PolkadotXcmExecutionError, ProviderUnavailableError, RELAY_LOCATION, RoutingResolutionError, RuntimeApiError, RuntimeApiUnavailableError, ScenarioNotSupportedError, SubmitTransactionError, TRANSACT_ORIGINS, TX_CLIENT_TIMEOUT_MS, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, ValidationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, aggregateHopFees, applyDecimalAbstraction, assertAddressIsString, assertCurrencyCore, assertEvmAddress, assertExtensionInstalled, assertHasId, assertNotEvmTransfer, assertSender, assertSenderSource, assertSubstrateOrigin, assertSwapSupport, assertToIsString, blake2128Concat, blake2b256, blake2b512, buildCustomChainAssetsInfo, buildCustomChainConfig, buildDestInfo, buildDryRunError, buildErc20StorageMint, buildHopInfo, buildOriginInfo, calcPreviewMintAmount, calcSentAssetPreviewMint, compareAddresses, compareLocationOrder, computeOverridenAmount, constructTypeAndThenCall, convertBuilderConfig, convertSs58, createAllCountedFilter, createAsset, createAssetId, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createBridgedXcmPrefix, createChainClient, createClientCache, createClientPoolHelpers, createCustomXcmOnDest, createDestination, createDirectExecuteXcm, createEthereumBridgeInstructions, createExecuteCall, createSwapBuilder, createTransfer, createTransferOrSwap, createTransferOrSwapAll, createTxOverrideAmount, createTypeAndThenCall,
|
|
14188
|
+
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, CustomChainConflictError, CustomChainInvalidError, DEFAULT_TTL_MS, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETH_MAINNET_CHAIN_ID, ETH_TESTNET_CHAIN_ID, EXCHANGE_CHAINS, EXTENSION_MS, ExtensionNotInstalledError, FeatureTemporarilyDisabledError, GeneralBuilder, InvalidAddressError, MAX_CLIENTS, MissingChainApiError, MissingParameterError, NoXCMSupportImplementedError, NumberFormatError, OverrideConflictError, PolkadotApi, PolkadotXcmError, PolkadotXcmExecutionError, ProviderUnavailableError, RELAY_LOCATION, RoutingResolutionError, RuntimeApiError, RuntimeApiUnavailableError, ScenarioNotSupportedError, SubmitTransactionError, TRANSACT_ORIGINS, TX_CLIENT_TIMEOUT_MS, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, ValidationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, aggregateHopFees, applyDecimalAbstraction, assertAddressIsString, assertCurrencyCore, assertEvmAddress, assertExtensionInstalled, assertHasId, assertNotEvmTransfer, assertSender, assertSenderSource, assertSubstrateOrigin, assertSwapSupport, assertToIsString, blake2128Concat, blake2b256, blake2b512, buildCustomChainAssetsInfo, buildCustomChainConfig, buildDestInfo, buildDryRunError, buildErc20StorageMint, buildHopInfo, buildOriginInfo, calcPreviewMintAmount, calcSentAssetPreviewMint, compareAddresses, compareLocationOrder, computeOverridenAmount, constructTypeAndThenCall, convertBuilderConfig, convertSs58, createAllCountedFilter, createAsset, createAssetId, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createBridgedXcmPrefix, createChainClient, createClientCache, createClientPoolHelpers, createCustomXcmOnDest, createDestination, createDirectExecuteXcm, createEthereumBridgeInstructions, createExecuteCall, createSwapBuilder, createTransfer, createTransferOrSwap, createTransferOrSwapAll, createTxOverrideAmount, createTypeAndThenCall, createVersionedAssets, createVersionedDestination, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, executeWithSwap, formatAssetIdToERC20, formatUnits, generateMessageId, getAssetBalanceInternal, getAssetReserveChain, getAssetReserveChainImpl, getBalance, getBalanceInternal, getBridgeStatus, getChain, getChainConfig, getChainConfigImpl, getChainLocation, getChainProviders, getChainProvidersImpl, getChainVersion, getDryRunError, getErrorInstruction, getEthErc20Balance, getEvmExtensionOrThrow, getEvmPrivateKeyHex, getEvmSnowbridgeExtensionOrThrow, getLocalTransferAmount, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginXcmFee, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getParaIdImpl, getRelayChainOf, getRelayChainOfImpl, getRelayChainSymbolOf, getSwapExtensionOrThrow, getTChain, getTSubstrateChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, isAssetXcEqualImpl, isConfig, isExchange, isNativeAssetTeleport, isSenderSigner, isViemSigner, keyFromWs, localizeLocation, localizeLocationImpl, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, normalizeCustomChains, normalizeExchange, overrideTxAmount, padFee, padValueBy, parseUnits, pickCompatibleXcmVersion, pickOtherMintPallet, pickRouterCompatibleXcmVersion, registerEvmExtension, registerEvmSnowbridgeExtension, registerSwapExtension, resolveAssetCount, resolveDestChain, resolveModuleError, resolveParaId, resolveTransferParams, reverseTransformLocation, selectXcmVersion, sortAssets, throwUnsupportedCurrency, toLeHex, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, validateDestinationAddress, validateFeeAssetSupport, validateTransact, verifyEdOnDestination, wrapTxBypass };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-core",
|
|
3
|
-
"version": "14.5.
|
|
3
|
+
"version": "14.5.1",
|
|
4
4
|
"description": "SDK core for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@noble/hashes": "^2.4.0",
|
|
26
|
-
"@paraspell/assets": "14.5.
|
|
27
|
-
"@paraspell/pallets": "14.5.
|
|
28
|
-
"@paraspell/sdk-common": "14.5.
|
|
26
|
+
"@paraspell/assets": "14.5.1",
|
|
27
|
+
"@paraspell/pallets": "14.5.1",
|
|
28
|
+
"@paraspell/sdk-common": "14.5.1",
|
|
29
29
|
"@scure/base": "^2.4.0",
|
|
30
30
|
"viem": "^2.57.13"
|
|
31
31
|
},
|