@paraspell/sdk-core 13.9.0 → 13.10.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/dist/index.d.ts +8 -9
- package/dist/index.mjs +100 -125
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ declare abstract class Chain<TApi, TRes, TSigner, TCustomChain extends string =
|
|
|
156
156
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
157
157
|
canReceiveFrom<TCustomChain extends string = never>(_origin: TChain | TCustomChain): boolean;
|
|
158
158
|
shouldUseNativeAssetTeleport({ api, assetInfo: asset, to }: TTransferInternalOptions<TApi, TRes, TSigner, TCustomChain>): boolean;
|
|
159
|
+
shouldUseExecuteTransfer(_options: TPolkadotXCMTransferOptions<TApi, TRes, TSigner, TCustomChain>): boolean;
|
|
159
160
|
createAsset(api: PolkadotApi<TApi, TRes, TSigner, TCustomChain>, asset: WithAmount<TAssetInfo>, version: Version): TAsset;
|
|
160
161
|
getNativeAssetSymbol<TCustomChain extends string = never>(api: PolkadotApi<TApi, TRes, TSigner, TCustomChain>): string;
|
|
161
162
|
transferLocal(options: TTransferInternalOptions<TApi, TRes, TSigner, TCustomChain>): Promise<TRes>;
|
|
@@ -201,6 +202,7 @@ declare class AssetHubKusama<TApi, TRes, TSigner> extends Chain<TApi, TRes, TSig
|
|
|
201
202
|
|
|
202
203
|
declare class AssetHubPolkadot<TApi, TRes, TSigner> extends Chain<TApi, TRes, TSigner> implements IPolkadotXCMTransfer<TApi, TRes, TSigner> {
|
|
203
204
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
205
|
+
shouldUseExecuteTransfer(options: TPolkadotXCMTransferOptions<TApi, TRes, TSigner>): boolean;
|
|
204
206
|
transferPolkadotXCM(options: TPolkadotXCMTransferOptions<TApi, TRes, TSigner>): Promise<TRes>;
|
|
205
207
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes, TSigner>): TRes;
|
|
206
208
|
getBalanceForeign<TApi, TRes, TSigner>(api: PolkadotApi<TApi, TRes, TSigner>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
@@ -225,6 +227,7 @@ declare class Astar<TApi, TRes, TSigner> extends Chain<TApi, TRes, TSigner> impl
|
|
|
225
227
|
declare class Hydration<TApi, TRes, TSigner> extends Chain<TApi, TRes, TSigner> implements IPolkadotXCMTransfer<TApi, TRes, TSigner> {
|
|
226
228
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
227
229
|
protected getMintConfig(): TMintConfig;
|
|
230
|
+
shouldUseExecuteTransfer(input: TPolkadotXCMTransferOptions<TApi, TRes, TSigner>): boolean;
|
|
228
231
|
transferPolkadotXCM(input: TPolkadotXCMTransferOptions<TApi, TRes, TSigner>): Promise<TRes>;
|
|
229
232
|
transferMoonbeamWhAsset<TApi, TRes, TSigner>(input: TPolkadotXCMTransferOptions<TApi, TRes, TSigner>): Promise<TRes>;
|
|
230
233
|
transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes, TSigner>): Promise<TRes>;
|
|
@@ -1584,10 +1587,6 @@ declare class SubmitTransactionError extends Error {
|
|
|
1584
1587
|
constructor(message: string);
|
|
1585
1588
|
}
|
|
1586
1589
|
|
|
1587
|
-
declare class TransferToAhNotSupported extends Error {
|
|
1588
|
-
constructor(message?: string);
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
1590
|
declare class TypeAndThenUnavailableError extends Error {
|
|
1592
1591
|
constructor(message: string);
|
|
1593
1592
|
}
|
|
@@ -2179,8 +2178,7 @@ type TDestWeight = {
|
|
|
2179
2178
|
proof_size: bigint;
|
|
2180
2179
|
};
|
|
2181
2180
|
type TXTokensMethod = 'transfer' | 'transfer_multiasset' | 'transfer_multiassets';
|
|
2182
|
-
type TPolkadotXcmMethod = 'limited_teleport_assets' | '
|
|
2183
|
-
type TXcmPalletMethod = 'limited_teleport_assets' | 'limited_reserve_transfer_assets' | 'transfer_assets_using_type_and_then';
|
|
2181
|
+
type TPolkadotXcmMethod = 'limited_teleport_assets' | 'transfer_assets_using_type_and_then';
|
|
2184
2182
|
type TWeight<TWeightType = bigint> = {
|
|
2185
2183
|
refTime: TWeightType;
|
|
2186
2184
|
proofSize: TWeightType;
|
|
@@ -2218,7 +2216,6 @@ type TCreateBaseTransferXcmOptions<TRes, TCustomChain extends string = never> =
|
|
|
2218
2216
|
version: Version;
|
|
2219
2217
|
useJitWithdraw?: boolean;
|
|
2220
2218
|
useFeeAssetOnHops?: boolean;
|
|
2221
|
-
forceBuyExecution?: boolean;
|
|
2222
2219
|
paraIdTo?: number;
|
|
2223
2220
|
transactOptions?: TTransactOptions<TRes>;
|
|
2224
2221
|
};
|
|
@@ -2684,6 +2681,8 @@ declare const getLocalTransferAmount: <TApi, TRes, TSigner>({ assetInfo, balance
|
|
|
2684
2681
|
|
|
2685
2682
|
declare const handleToAhTeleport: <TApi, TRes, TSigner>(origin: TParachain, input: TPolkadotXCMTransferOptions<TApi, TRes, TSigner>, defaultTx: TRes) => Promise<TRes>;
|
|
2686
2683
|
|
|
2684
|
+
declare const isNativeAssetTeleport: <TApi, TRes, TSigner, TCustomChain extends string = never>(api: PolkadotApi<TApi, TRes, TSigner, TCustomChain>, origin: TChain | TCustomChain, dest: TChain | TCustomChain, asset: TAssetInfo) => boolean;
|
|
2685
|
+
|
|
2687
2686
|
declare const throwUnsupportedCurrency: (currency: TCurrencyInput, chain: string, { isDestination }?: {
|
|
2688
2687
|
isDestination: boolean;
|
|
2689
2688
|
}) => never;
|
|
@@ -2696,5 +2695,5 @@ declare const selectXcmVersion: (forcedVersion: Version | undefined, originVersi
|
|
|
2696
2695
|
declare const pickCompatibleXcmVersion: <TApi, TRes, TSigner, TCustomChain extends string = never>(api: PolkadotApi<TApi, TRes, TSigner, TCustomChain>, origin: TSubstrateChain | TCustomChain, destination: TDestination, override?: Version) => Version;
|
|
2697
2696
|
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;
|
|
2698
2697
|
|
|
2699
|
-
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, AssetClaimBuilder, 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,
|
|
2700
|
-
export type { BuildHopInfoOptions, ClientCache, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotXCMTransfer, IXTokensTransfer, OneKey, TAddress, TApiOrUrl, TApiType, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedTransferOptions, TBifrostToken, TBridgeStatus, TBuildAllInternalRes, TBuildDestInfoOptions, TBuildEvmTransferOptions, TBuildInternalRes, TBuildInternalResBase, TBuildOriginInfoOptions, TBuilderConfig, TBuilderInternalOptions, TBuilderOptions, TBypassOptions, TCacheItem, TChainConfig, TChainConfigMap, TChainEndpoint, 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, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunFailureInfo, 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, TPaymentInfo, TPerAssetResult, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TReceivedCurrencyInfo, TReserveAsset, 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,
|
|
2698
|
+
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, AssetClaimBuilder, 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, assertNotRawAssets, assertSender, assertSenderSource, assertSubstrateOrigin, assertSwapSupport, assertToIsString, blake2b256, blake2b512, buildCustomChainAssetsInfo, buildCustomChainConfig, buildDestInfo, buildHopInfo, buildOriginInfo, calcPreviewMintAmount, claimAssets, compareAddresses, computeOverridenAmount, constructTypeAndThenCall, convertBuilderConfig, convertSs58, createAsset, createAssetId, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createClientCache, createClientPoolHelpers, createCustomXcmOnDest, createDestination, createDirectExecuteXcm, createEthereumBridgeInstructions, createExecuteCall, createExecuteExchangeXcm, createSwapBuilder, createTransfer, createTransferOrSwap, createTransferOrSwapAll, createTxOverrideAmount, createTypeAndThenCall, createTypeThenAutoReserve, 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, getEthErc20Balance, getEvmExtensionOrThrow, getEvmPrivateKeyHex, getEvmSnowbridgeExtensionOrThrow, getFailureInfo, getLocalTransferAmount, getMinTransferableAmount, getMinTransferableAmountInternal, getMoonbeamErc20Balance, getOriginXcmFee, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getParaIdImpl, getRelayChainOf, getRelayChainOfImpl, getRelayChainSymbolOf, getSwapExtensionOrThrow, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, 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, transferMoonbeamEvm, transferMoonbeamToEth, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, validateDestinationAddress, validateTransact, verifyEdOnDestination, wrapTxBypass };
|
|
2699
|
+
export type { BuildHopInfoOptions, ClientCache, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotXCMTransfer, IXTokensTransfer, OneKey, TAddress, TApiOrUrl, TApiType, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedTransferOptions, TBifrostToken, TBridgeStatus, TBuildAllInternalRes, TBuildDestInfoOptions, TBuildEvmTransferOptions, TBuildInternalRes, TBuildInternalResBase, TBuildOriginInfoOptions, TBuilderConfig, TBuilderInternalOptions, TBuilderOptions, TBypassOptions, TCacheItem, TChainConfig, TChainConfigMap, TChainEndpoint, 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, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunFailureInfo, 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, TPaymentInfo, TPerAssetResult, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TReceivedCurrencyInfo, TReserveAsset, 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, TZeitgeistAsset, WithApi, WithRequiredSender, WithRequiredSwapOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { blake2b } from '@noble/hashes/blake2.js';
|
|
2
|
-
import { isChainEvm, getAssetsObject, isChainEvmImpl, InvalidCurrencyError, isOverrideLocationSpecifier, isTAsset, getOtherAssets,
|
|
2
|
+
import { isChainEvm, getAssetsObject, isChainEvmImpl, InvalidCurrencyError, isOverrideLocationSpecifier, isTAsset, getOtherAssets, getNativeAssetSymbolImpl, isSymbolMatch, getRelayChainSymbolImpl, isAssetEqual, isSymbolSpecifier, isStableCoinAsset, isBridgedSystemAsset, normalizeLocation, getNativeAssetSymbol, getEdFromAssetOrThrow, getExistentialDepositOrThrowImpl, extractAssetLocation, hasDryRunSupport, normalizeSymbol, Native, canonicalizeLocation, getAssetsObjectImpl, getAssetsImpl, getNativeAssetsImpl, getOtherAssetsImpl, findAssetInfoImpl, findAssetInfoOrThrowImpl, findAssetInfoOnDestImpl, findAssetOnDestOrThrowImpl, findNativeAssetInfoImpl, findNativeAssetInfoOrThrowImpl, hasDryRunSupportImpl, hasXcmPaymentApiSupportImpl, normalizeCustomAssets } from '@paraspell/assets';
|
|
3
3
|
export * from '@paraspell/assets';
|
|
4
4
|
import { base58 } from '@scure/base';
|
|
5
5
|
import { isAddress, pad, toHex, getAddress, concat, keccak256, isHex, createPublicClient, http, getContract, formatUnits as formatUnits$1, parseUnits as parseUnits$1 } from 'viem';
|
|
6
|
-
import { isTLocation, replaceBigInt, isExternalChain, Version, isRelayChain, Parents, isSubstrateBridge, isSnowbridge, isCustomChain, getJunctionValue, deepEqual, hasJunction, RELAYCHAINS,
|
|
6
|
+
import { isTLocation, replaceBigInt, isExternalChain, Version, isRelayChain, Parents, isSubstrateBridge, isSnowbridge, isCustomChain, getJunctionValue, deepEqual, hasJunction, RELAYCHAINS, isTrustedChain, ETHEREUM_BRIDGE_ORIGINS, isBridge, PARACHAINS, DEFAULT_SS58_PREFIX, CHAINS } from '@paraspell/sdk-common';
|
|
7
7
|
export * from '@paraspell/sdk-common';
|
|
8
8
|
import { getXcmPallet, getSupportedPallets, getOtherAssetsPallets, getNativeAssetsPallet, hasPalletImpl, getXcmPalletImpl, getSupportedPalletsDetails, ASSETS_PALLETS, NATIVE_ASSETS_PALLET_PRIORITY, OTHER_ASSETS_PALLET_PRIORITY } from '@paraspell/pallets';
|
|
9
9
|
export * from '@paraspell/pallets';
|
|
@@ -803,18 +803,6 @@ var SubmitTransactionError = /*#__PURE__*/function (_Error) {
|
|
|
803
803
|
return _createClass(SubmitTransactionError);
|
|
804
804
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
805
805
|
|
|
806
|
-
var TransferToAhNotSupported = /*#__PURE__*/function (_Error) {
|
|
807
|
-
function TransferToAhNotSupported(message) {
|
|
808
|
-
var _this;
|
|
809
|
-
_classCallCheck(this, TransferToAhNotSupported);
|
|
810
|
-
_this = _callSuper(this, TransferToAhNotSupported, [message]);
|
|
811
|
-
_this.name = 'TransferToAhNotSupported';
|
|
812
|
-
return _this;
|
|
813
|
-
}
|
|
814
|
-
_inherits(TransferToAhNotSupported, _Error);
|
|
815
|
-
return _createClass(TransferToAhNotSupported);
|
|
816
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
817
|
-
|
|
818
806
|
var TypeAndThenUnavailableError = /*#__PURE__*/function (_Error) {
|
|
819
807
|
function TypeAndThenUnavailableError(message) {
|
|
820
808
|
var _this;
|
|
@@ -1117,8 +1105,7 @@ var assertExtensionInstalled = function assertExtensionInstalled(extension, exte
|
|
|
1117
1105
|
|
|
1118
1106
|
var createPayFees = function createPayFees(version, asset, weight) {
|
|
1119
1107
|
var includeRefundSurplus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
1120
|
-
|
|
1121
|
-
if (forceBuyExecution || version < Version.V5) {
|
|
1108
|
+
if (version < Version.V5) {
|
|
1122
1109
|
return [{
|
|
1123
1110
|
BuyExecution: {
|
|
1124
1111
|
fees: asset,
|
|
@@ -2311,10 +2298,6 @@ var Hydration$1 = {
|
|
|
2311
2298
|
info: "hydradx",
|
|
2312
2299
|
paraId: 2034,
|
|
2313
2300
|
providers: [
|
|
2314
|
-
{
|
|
2315
|
-
name: "Dwellir",
|
|
2316
|
-
endpoint: "wss://hydration-rpc.n.dwellir.com"
|
|
2317
|
-
},
|
|
2318
2301
|
{
|
|
2319
2302
|
name: "Helikon",
|
|
2320
2303
|
endpoint: "wss://rpc.helikon.io/hydradx"
|
|
@@ -3506,7 +3489,7 @@ var Chain = /*#__PURE__*/function () {
|
|
|
3506
3489
|
key: "transfer",
|
|
3507
3490
|
value: function () {
|
|
3508
3491
|
var _transfer = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(transferOptions) {
|
|
3509
|
-
var api, asset, currency, feeAsset, feeCurrency, recipient, destination, paraIdTo, overriddenAsset, version, sender, ahAddress, pallet, method, keepAlive, transactOptions, scenario, paraId, destChain, isLocalTransfer, isRelayAsset, mythAsset, isMythAsset, assetNeedsTypeThen, supportsTypeThen, isSubBridge, useTypeAndThen, options, promise,
|
|
3492
|
+
var api, asset, currency, feeAsset, feeCurrency, recipient, destination, paraIdTo, overriddenAsset, version, sender, ahAddress, pallet, method, keepAlive, transactOptions, scenario, paraId, destChain, isLocalTransfer, isRelayAsset, mythAsset, isMythAsset, assetNeedsTypeThen, supportsTypeThen, isSubBridge, useTypeAndThen, options, promise, isAHOrigin, isAHDest, isExternalAsset, isEthDest, isExternalAssetViaAh, isExternalAssetToAh, call, isBifrostOrigin, isJamtonOrigin, isAssetHubDest, useMultiAssets, input, _t;
|
|
3510
3493
|
return _regenerator().w(function (_context) {
|
|
3511
3494
|
while (1) switch (_context.n) {
|
|
3512
3495
|
case 0:
|
|
@@ -3533,7 +3516,7 @@ var Chain = /*#__PURE__*/function () {
|
|
|
3533
3516
|
this.throwIfCantReceive(destChain);
|
|
3534
3517
|
isRelayAsset = deepEqual(asset.location, RELAY_LOCATION) && isSymbolMatch(getRelayChainSymbolImpl(this.chain, api._customCtx), asset.symbol);
|
|
3535
3518
|
mythAsset = api.findNativeAssetInfoOrThrow('Mythos');
|
|
3536
|
-
isMythAsset =
|
|
3519
|
+
isMythAsset = isAssetEqual(mythAsset, asset);
|
|
3537
3520
|
assetNeedsTypeThen = isRelayAsset || isMythAsset;
|
|
3538
3521
|
_context.n = 3;
|
|
3539
3522
|
return api.hasMethod(hasPalletImpl(this.chain, 'XcmPallet', api._customCtx) ? 'XcmPallet' : 'PolkadotXcm', 'transfer_assets_using_type_and_then');
|
|
@@ -3595,18 +3578,6 @@ var Chain = /*#__PURE__*/function () {
|
|
|
3595
3578
|
case 6:
|
|
3596
3579
|
return _context.a(2, _t.deserializeExtrinsics.call(_t, _context.v));
|
|
3597
3580
|
case 7:
|
|
3598
|
-
shouldUseTeleport = this.shouldUseNativeAssetTeleport(transferOptions);
|
|
3599
|
-
isAhToOtherPara = this.chain.startsWith('AssetHub') && destChain && !isTrustedChain(destChain);
|
|
3600
|
-
isOtherParaToAh = (destChain === null || destChain === void 0 ? void 0 : destChain.startsWith('AssetHub')) && !isTrustedChain(this.chain);
|
|
3601
|
-
isAllowedAhTransfer = function isAllowedAhTransfer(chain) {
|
|
3602
|
-
return chain === null || chain === void 0 ? void 0 : chain.startsWith('Integritee');
|
|
3603
|
-
};
|
|
3604
|
-
if (!((isAhToOtherPara || isOtherParaToAh) && shouldUseTeleport && !isAllowedAhTransfer(destChain) && !isAllowedAhTransfer(this.chain))) {
|
|
3605
|
-
_context.n = 8;
|
|
3606
|
-
break;
|
|
3607
|
-
}
|
|
3608
|
-
throw new TransferToAhNotSupported('Native asset transfers to or from AssetHub are temporarily disabled');
|
|
3609
|
-
case 8:
|
|
3610
3581
|
isAHOrigin = this.chain.includes('AssetHub');
|
|
3611
3582
|
isAHDest = !isTLocation(destination) && destination.includes('AssetHub'); // Handle common cases
|
|
3612
3583
|
isExternalAsset = asset.location.parents === Parents.TWO;
|
|
@@ -3614,26 +3585,32 @@ var Chain = /*#__PURE__*/function () {
|
|
|
3614
3585
|
isExternalAssetViaAh = isExternalAsset && !isAHOrigin && !isAHDest && !isEthDest && !feeAsset; // External asset - Any origin to AHP - DestinationReserve - one DepositAsset instruction
|
|
3615
3586
|
isExternalAssetToAh = isExternalAsset && isAHDest && !isAHOrigin && !isEthDest && !feeAsset;
|
|
3616
3587
|
if (!(isExternalAssetViaAh || isExternalAssetToAh || useTypeAndThen)) {
|
|
3617
|
-
_context.n =
|
|
3588
|
+
_context.n = 10;
|
|
3618
3589
|
break;
|
|
3619
3590
|
}
|
|
3620
3591
|
if (!(useTypeAndThen && supportsPolkadotXCM(this) && !isSubBridge)) {
|
|
3621
|
-
_context.n =
|
|
3592
|
+
_context.n = 8;
|
|
3622
3593
|
break;
|
|
3623
3594
|
}
|
|
3624
|
-
_context.n =
|
|
3595
|
+
_context.n = 8;
|
|
3625
3596
|
return this.transferPolkadotXCM(options);
|
|
3626
|
-
case
|
|
3627
|
-
_context.n =
|
|
3597
|
+
case 8:
|
|
3598
|
+
_context.n = 9;
|
|
3628
3599
|
return createTypeAndThenCall(options);
|
|
3629
|
-
case
|
|
3600
|
+
case 9:
|
|
3630
3601
|
call = _context.v;
|
|
3631
3602
|
return _context.a(2, api.deserializeExtrinsics(call));
|
|
3632
|
-
case
|
|
3603
|
+
case 10:
|
|
3633
3604
|
if (!supportsPolkadotXCM(this)) {
|
|
3634
3605
|
_context.n = 12;
|
|
3635
3606
|
break;
|
|
3636
3607
|
}
|
|
3608
|
+
if (!(this.shouldUseNativeAssetTeleport(transferOptions) && !this.shouldUseExecuteTransfer(options))) {
|
|
3609
|
+
_context.n = 11;
|
|
3610
|
+
break;
|
|
3611
|
+
}
|
|
3612
|
+
return _context.a(2, transferPolkadotXcm(options, 'limited_teleport_assets', 'Unlimited'));
|
|
3613
|
+
case 11:
|
|
3637
3614
|
return _context.a(2, this.transferPolkadotXCM(options));
|
|
3638
3615
|
case 12:
|
|
3639
3616
|
_context.n = 15;
|
|
@@ -3726,27 +3703,16 @@ var Chain = /*#__PURE__*/function () {
|
|
|
3726
3703
|
}, {
|
|
3727
3704
|
key: "shouldUseNativeAssetTeleport",
|
|
3728
3705
|
value: function shouldUseNativeAssetTeleport(_ref) {
|
|
3729
|
-
var _this = this;
|
|
3730
3706
|
var api = _ref.api,
|
|
3731
3707
|
asset = _ref.assetInfo,
|
|
3732
3708
|
to = _ref.to;
|
|
3733
|
-
if (isTLocation(to) || isSubstrateBridge(this.chain, to)
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
});
|
|
3741
|
-
var isSomeChainNativeAsset = nativeSymbols.some(function (symbol) {
|
|
3742
|
-
return isSymbolMatch(asset.symbol, symbol);
|
|
3743
|
-
});
|
|
3744
|
-
var isNativeAsset = !isTLocation(to) && (isAHPOrigin && !asset.isNative && isSymbolMatch(asset.symbol, getNativeAssetSymbolImpl(to, api._customCtx)) || isAHPDest && isSomeChainNativeAsset);
|
|
3745
|
-
var assetHubChain = "AssetHub".concat(this.ecosystem);
|
|
3746
|
-
var isRegisteredOnAh = api.findAssetInfo(assetHubChain, {
|
|
3747
|
-
location: asset.location
|
|
3748
|
-
});
|
|
3749
|
-
return Boolean(isNativeAsset) && Boolean(isRegisteredOnAh) && (isAHPOrigin || isAHPDest);
|
|
3709
|
+
if (isTLocation(to) || isSubstrateBridge(this.chain, to)) return false;
|
|
3710
|
+
return isNativeAssetTeleport(api, this.chain, to, asset);
|
|
3711
|
+
}
|
|
3712
|
+
}, {
|
|
3713
|
+
key: "shouldUseExecuteTransfer",
|
|
3714
|
+
value: function shouldUseExecuteTransfer(_options) {
|
|
3715
|
+
return false;
|
|
3750
3716
|
}
|
|
3751
3717
|
}, {
|
|
3752
3718
|
key: "createAsset",
|
|
@@ -7779,7 +7745,7 @@ var mintBonusForSent = function mintBonusForSent(chain, sent, feeAsset, mintFeeA
|
|
|
7779
7745
|
return true;
|
|
7780
7746
|
});
|
|
7781
7747
|
return preminted.some(function (a) {
|
|
7782
|
-
return
|
|
7748
|
+
return isAssetEqual(a, sent);
|
|
7783
7749
|
}) ? parseUnits(resolveBypassMintAmount(chain), sent.decimals) : 0n;
|
|
7784
7750
|
};
|
|
7785
7751
|
var wrapTxBypass = /*#__PURE__*/function () {
|
|
@@ -7827,7 +7793,7 @@ var wrapTxBypass = /*#__PURE__*/function () {
|
|
|
7827
7793
|
};
|
|
7828
7794
|
nativeInfo = mintFeeAssets ? api.findNativeAssetInfo(chain) : null;
|
|
7829
7795
|
relayInfo = mintFeeAssets ? api.findAssetInfo(chain, relayCurrency) : null;
|
|
7830
|
-
sameNativeRelay = !!(nativeInfo && relayInfo &&
|
|
7796
|
+
sameNativeRelay = !!(nativeInfo && relayInfo && isAssetEqual(nativeInfo, relayInfo));
|
|
7831
7797
|
if (!mintFeeAssets) {
|
|
7832
7798
|
_context2.n = 2;
|
|
7833
7799
|
break;
|
|
@@ -8762,7 +8728,7 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
8762
8728
|
var aggregateHopFees = function aggregateHopFees(hops, matchAsset) {
|
|
8763
8729
|
var totalHopFee = hops.reduce(function (acc, hop) {
|
|
8764
8730
|
var _hop$result$fee;
|
|
8765
|
-
return
|
|
8731
|
+
return isAssetEqual(hop.result.asset, matchAsset) ? acc + ((_hop$result$fee = hop.result.fee) !== null && _hop$result$fee !== void 0 ? _hop$result$fee : 0n) : acc;
|
|
8766
8732
|
}, 0n);
|
|
8767
8733
|
var bridgeHop = hops.find(function (hop) {
|
|
8768
8734
|
return hop.chain.startsWith('BridgeHub');
|
|
@@ -9593,12 +9559,14 @@ var resolveTransferType = function resolveTransferType(_ref) {
|
|
|
9593
9559
|
var origin = _ref.origin,
|
|
9594
9560
|
reserve = _ref.reserve,
|
|
9595
9561
|
dest = _ref.dest,
|
|
9596
|
-
isSubBridge = _ref.isSubBridge
|
|
9562
|
+
isSubBridge = _ref.isSubBridge,
|
|
9563
|
+
assetInfo = _ref.assetInfo;
|
|
9597
9564
|
// Direct A → C: when origin is reserve OR dest is reserve, check origin <-> dest trust
|
|
9598
9565
|
// Hop A → B → C: when reserve differs from both, check origin <-> reserve trust
|
|
9599
9566
|
var isDirect = origin.chain === reserve.chain || dest.chain === reserve.chain;
|
|
9600
9567
|
var chainToCheck = isDirect ? dest.chain : reserve.chain;
|
|
9601
|
-
|
|
9568
|
+
var canTeleport = isTrustedChain(origin.chain) && isTrustedChain(chainToCheck) || isNativeAssetTeleport(origin.api, origin.chain, chainToCheck, assetInfo);
|
|
9569
|
+
if (canTeleport && !isSubBridge) return 'Teleport';
|
|
9602
9570
|
if (origin.chain === reserve.chain) return 'LocalReserve';
|
|
9603
9571
|
return 'DestinationReserve';
|
|
9604
9572
|
};
|
|
@@ -9917,7 +9885,7 @@ var createCustomXcm = /*#__PURE__*/function () {
|
|
|
9917
9885
|
case 3:
|
|
9918
9886
|
destLoc = createDestination(origin.api, version, origin.chain, destination, paraIdTo); // If both reserve (B) and destination (C) are trusted chains,
|
|
9919
9887
|
// use teleport instead of DepositReserveAsset
|
|
9920
|
-
if (!(isTrustedChain(reserve.chain) && isTrustedChain(dest.chain))) {
|
|
9888
|
+
if (!(isTrustedChain(reserve.chain) && isTrustedChain(dest.chain) || isNativeAssetTeleport(origin.api, reserve.chain, dest.chain, assetInfo))) {
|
|
9921
9889
|
_context.n = 4;
|
|
9922
9890
|
break;
|
|
9923
9891
|
}
|
|
@@ -10252,9 +10220,9 @@ var createTypeThenAutoReserve = /*#__PURE__*/function () {
|
|
|
10252
10220
|
|
|
10253
10221
|
var calculateTotalXcmFee = function calculateTotalXcmFee(asset, feeResult) {
|
|
10254
10222
|
var totalHopFee = feeResult.hops.reduce(function (acc, hop) {
|
|
10255
|
-
return
|
|
10223
|
+
return isAssetEqual(hop.result.asset, asset) ? acc + hop.result.fee : acc;
|
|
10256
10224
|
}, 0n);
|
|
10257
|
-
var destFee =
|
|
10225
|
+
var destFee = isAssetEqual(feeResult.destination.asset, asset) ? feeResult.destination.fee : 0n;
|
|
10258
10226
|
return totalHopFee + destFee;
|
|
10259
10227
|
};
|
|
10260
10228
|
var verifyEdOnDestinationInternal = /*#__PURE__*/function () {
|
|
@@ -10537,6 +10505,15 @@ var createAssetsFilter = function createAssetsFilter(asset, version) {
|
|
|
10537
10505
|
};
|
|
10538
10506
|
};
|
|
10539
10507
|
|
|
10508
|
+
var isNativeAssetTeleport = function isNativeAssetTeleport(api, origin, dest, asset) {
|
|
10509
|
+
if (isExternalChain(origin) || isExternalChain(dest)) return false;
|
|
10510
|
+
var isOriginAh = origin.includes('AssetHub');
|
|
10511
|
+
var isDestAh = dest.includes('AssetHub');
|
|
10512
|
+
if (isOriginAh === isDestAh) return false;
|
|
10513
|
+
var para = isDestAh ? origin : dest;
|
|
10514
|
+
return isAssetEqual(api.findNativeAssetInfoOrThrow(para), asset);
|
|
10515
|
+
};
|
|
10516
|
+
|
|
10540
10517
|
var prepareExecuteContext = function prepareExecuteContext(_ref) {
|
|
10541
10518
|
var api = _ref.api,
|
|
10542
10519
|
chain = _ref.chain,
|
|
@@ -10576,15 +10553,15 @@ var updateAsset = function updateAsset(asset, amount) {
|
|
|
10576
10553
|
}
|
|
10577
10554
|
});
|
|
10578
10555
|
};
|
|
10579
|
-
var getInstructionType = function getInstructionType(version, origin, destination, reserveChain, transactOptions) {
|
|
10556
|
+
var getInstructionType = function getInstructionType(api, version, origin, destination, assetInfo, reserveChain, transactOptions) {
|
|
10580
10557
|
if (version >= Version.V5 && transactOptions !== null && transactOptions !== void 0 && transactOptions.call) {
|
|
10581
10558
|
return 'InitiateTransfer';
|
|
10582
10559
|
}
|
|
10583
10560
|
if (reserveChain !== undefined && origin !== reserveChain && isTrustedChain(origin) && isTrustedChain(reserveChain)) {
|
|
10584
10561
|
return 'InitiateTeleportToReserve';
|
|
10585
10562
|
}
|
|
10586
|
-
// Trusted chains can teleport
|
|
10587
|
-
if (isTrustedChain(origin) && isTrustedChain(destination)) {
|
|
10563
|
+
// Trusted chains (or native-asset teleports to/from AssetHub) can teleport
|
|
10564
|
+
if (isTrustedChain(origin) && isTrustedChain(destination) || isNativeAssetTeleport(api, origin, destination, assetInfo)) {
|
|
10588
10565
|
return 'InitiateTeleport';
|
|
10589
10566
|
}
|
|
10590
10567
|
// If we need intermediary reserve (not on reserve chain)
|
|
@@ -10594,8 +10571,8 @@ var getInstructionType = function getInstructionType(version, origin, destinatio
|
|
|
10594
10571
|
// Direct deposit (either no reserve or we're on reserve)
|
|
10595
10572
|
return 'DepositAsset';
|
|
10596
10573
|
};
|
|
10597
|
-
var getInitiateTransferType = function getInitiateTransferType(origin, destination, reserveChain) {
|
|
10598
|
-
if (isTrustedChain(origin) && isTrustedChain(destination)) {
|
|
10574
|
+
var getInitiateTransferType = function getInitiateTransferType(api, origin, destination, assetInfo, reserveChain) {
|
|
10575
|
+
if (isTrustedChain(origin) && isTrustedChain(destination) || isNativeAssetTeleport(api, origin, destination, assetInfo)) {
|
|
10599
10576
|
return 'Teleport';
|
|
10600
10577
|
}
|
|
10601
10578
|
if (origin === reserveChain) return 'ReserveDeposit';
|
|
@@ -10605,6 +10582,7 @@ var createBaseExecuteXcm = function createBaseExecuteXcm(options) {
|
|
|
10605
10582
|
var api = options.api,
|
|
10606
10583
|
chain = options.chain,
|
|
10607
10584
|
destChain = options.destChain,
|
|
10585
|
+
assetInfo = options.assetInfo,
|
|
10608
10586
|
_options$fees = options.fees,
|
|
10609
10587
|
originFee = _options$fees.originFee,
|
|
10610
10588
|
reserveFee = _options$fees.reserveFee,
|
|
@@ -10612,8 +10590,6 @@ var createBaseExecuteXcm = function createBaseExecuteXcm(options) {
|
|
|
10612
10590
|
paraIdTo = options.paraIdTo,
|
|
10613
10591
|
transactOptions = options.transactOptions,
|
|
10614
10592
|
useFeeAssetOnHops = options.useFeeAssetOnHops,
|
|
10615
|
-
_options$forceBuyExec = options.forceBuyExecution,
|
|
10616
|
-
forceBuyExecution = _options$forceBuyExec === void 0 ? false : _options$forceBuyExec,
|
|
10617
10593
|
_options$suffixXcm = options.suffixXcm,
|
|
10618
10594
|
suffixXcm = _options$suffixXcm === void 0 ? [] : _options$suffixXcm;
|
|
10619
10595
|
var _prepareExecuteContex = prepareExecuteContext(options),
|
|
@@ -10634,7 +10610,7 @@ var createBaseExecuteXcm = function createBaseExecuteXcm(options) {
|
|
|
10634
10610
|
if (chain !== 'AssetHubPolkadot' && reserveChain === undefined) {
|
|
10635
10611
|
throw new UnsupportedOperationError('Sending local reserve assets with custom fee asset is not yet supported for this chain.');
|
|
10636
10612
|
}
|
|
10637
|
-
var transferType = getInstructionType(version, chain, destChain, reserveChain, transactOptions);
|
|
10613
|
+
var transferType = getInstructionType(api, version, chain, destChain, assetInfo, reserveChain, transactOptions);
|
|
10638
10614
|
var routingAssetsFilter = feeAsset ? {
|
|
10639
10615
|
Wild: {
|
|
10640
10616
|
AllCounted: 2
|
|
@@ -10645,14 +10621,14 @@ var createBaseExecuteXcm = function createBaseExecuteXcm(options) {
|
|
|
10645
10621
|
DepositReserveAsset: {
|
|
10646
10622
|
assets: createAssetsFilter(assetLocalizedToReserve, version),
|
|
10647
10623
|
dest: createDestination(api, version, reserveChain !== null && reserveChain !== void 0 ? reserveChain : chain, destChain, paraIdTo),
|
|
10648
|
-
xcm: [].concat(_toConsumableArray(createPayFees(version, hopFeeAssetToDest !== null && hopFeeAssetToDest !== void 0 ? hopFeeAssetToDest : updateAsset(assetLocalizedToDest, reserveFee === 1000n ? amount / 2n : amount - originFeeDeduction - reserveFee)
|
|
10624
|
+
xcm: [].concat(_toConsumableArray(createPayFees(version, hopFeeAssetToDest !== null && hopFeeAssetToDest !== void 0 ? hopFeeAssetToDest : updateAsset(assetLocalizedToDest, reserveFee === 1000n ? amount / 2n : amount - originFeeDeduction - reserveFee))), _toConsumableArray(suffixXcm))
|
|
10649
10625
|
}
|
|
10650
10626
|
}];
|
|
10651
10627
|
var mainInstructions;
|
|
10652
10628
|
switch (transferType) {
|
|
10653
10629
|
case 'InitiateTransfer':
|
|
10654
10630
|
{
|
|
10655
|
-
var transferFilter = getInitiateTransferType(chain, destChain, reserveChain);
|
|
10631
|
+
var transferFilter = getInitiateTransferType(api, chain, destChain, assetInfo, reserveChain);
|
|
10656
10632
|
mainInstructions = [{
|
|
10657
10633
|
InitiateTransfer: {
|
|
10658
10634
|
destination: destLocation,
|
|
@@ -10672,7 +10648,7 @@ var createBaseExecuteXcm = function createBaseExecuteXcm(options) {
|
|
|
10672
10648
|
InitiateTeleport: {
|
|
10673
10649
|
assets: routingAssetsFilter,
|
|
10674
10650
|
dest: destLocation,
|
|
10675
|
-
xcm: [].concat(_toConsumableArray(createPayFees(version, hopFeeAssetToDest !== null && hopFeeAssetToDest !== void 0 ? hopFeeAssetToDest : updateAsset(assetLocalizedToDest, amount - originFeeDeduction)
|
|
10651
|
+
xcm: [].concat(_toConsumableArray(createPayFees(version, hopFeeAssetToDest !== null && hopFeeAssetToDest !== void 0 ? hopFeeAssetToDest : updateAsset(assetLocalizedToDest, amount - originFeeDeduction))), _toConsumableArray(suffixXcm))
|
|
10676
10652
|
}
|
|
10677
10653
|
}];
|
|
10678
10654
|
break;
|
|
@@ -10682,7 +10658,7 @@ var createBaseExecuteXcm = function createBaseExecuteXcm(options) {
|
|
|
10682
10658
|
InitiateTeleport: {
|
|
10683
10659
|
assets: routingAssetsFilter,
|
|
10684
10660
|
dest: getChainLocation(chain, reserveChain, api._customCtx),
|
|
10685
|
-
xcm: [].concat(_toConsumableArray(createPayFees(version, hopFeeAssetToReserve !== null && hopFeeAssetToReserve !== void 0 ? hopFeeAssetToReserve : updateAsset(assetLocalizedToReserve, amount - originFeeDeduction)
|
|
10661
|
+
xcm: [].concat(_toConsumableArray(createPayFees(version, hopFeeAssetToReserve !== null && hopFeeAssetToReserve !== void 0 ? hopFeeAssetToReserve : updateAsset(assetLocalizedToReserve, amount - originFeeDeduction))), _toConsumableArray(resolvedDepositInstruction))
|
|
10686
10662
|
}
|
|
10687
10663
|
}];
|
|
10688
10664
|
break;
|
|
@@ -10694,7 +10670,7 @@ var createBaseExecuteXcm = function createBaseExecuteXcm(options) {
|
|
|
10694
10670
|
reserve: getChainLocation(chain, reserveChain, api._customCtx),
|
|
10695
10671
|
xcm: [].concat(_toConsumableArray(createPayFees(version, // Decrease amount by 2 units because for some reason polkadot withdraws 2 units less
|
|
10696
10672
|
// than requested, so we need to account for that
|
|
10697
|
-
hopFeeAssetToReserve !== null && hopFeeAssetToReserve !== void 0 ? hopFeeAssetToReserve : updateAsset(assetLocalizedToReserve, amount - 2n)
|
|
10673
|
+
hopFeeAssetToReserve !== null && hopFeeAssetToReserve !== void 0 ? hopFeeAssetToReserve : updateAsset(assetLocalizedToReserve, amount - 2n))), _toConsumableArray(resolvedDepositInstruction))
|
|
10698
10674
|
}
|
|
10699
10675
|
}];
|
|
10700
10676
|
break;
|
|
@@ -10811,12 +10787,9 @@ var createExecuteExchangeXcm = function createExecuteExchangeXcm(input, origin,
|
|
|
10811
10787
|
|
|
10812
10788
|
var prepareCommonExecuteXcm = function prepareCommonExecuteXcm(options, assetToDeposit) {
|
|
10813
10789
|
var api = options.api,
|
|
10814
|
-
feeAsset = options.feeAssetInfo,
|
|
10815
10790
|
useJitWithdraw = options.useJitWithdraw,
|
|
10816
10791
|
recipient = options.recipient,
|
|
10817
|
-
version = options.version
|
|
10818
|
-
_options$forceBuyExec = options.forceBuyExecution,
|
|
10819
|
-
forceBuyExecution = _options$forceBuyExec === void 0 ? false : _options$forceBuyExec;
|
|
10792
|
+
version = options.version;
|
|
10820
10793
|
var context = prepareExecuteContext(options);
|
|
10821
10794
|
var assetLocalized = context.assetLocalized,
|
|
10822
10795
|
assetLocalizedToDest = context.assetLocalizedToDest,
|
|
@@ -10826,11 +10799,8 @@ var prepareCommonExecuteXcm = function prepareCommonExecuteXcm(options, assetToD
|
|
|
10826
10799
|
prefix.push({
|
|
10827
10800
|
WithdrawAsset: withdrawAssets
|
|
10828
10801
|
});
|
|
10829
|
-
if (
|
|
10830
|
-
prefix.push.apply(prefix, _toConsumableArray(createPayFees(version, feeAssetLocalized
|
|
10831
|
-
refTime: 450n,
|
|
10832
|
-
proofSize: 0n
|
|
10833
|
-
}, false, forceBuyExecution)));
|
|
10802
|
+
if (feeAssetLocalized && !useJitWithdraw) {
|
|
10803
|
+
prefix.push.apply(prefix, _toConsumableArray(createPayFees(version, feeAssetLocalized, undefined, false)));
|
|
10834
10804
|
} else {
|
|
10835
10805
|
prefix.push({
|
|
10836
10806
|
SetFeesMode: {
|
|
@@ -11098,8 +11068,7 @@ var createSwapExecuteXcm = /*#__PURE__*/function () {
|
|
|
11098
11068
|
originFee: hasSeparateFeeAsset ? ethBridgeFee || originFee : originFee,
|
|
11099
11069
|
reserveFee: originReserveFee
|
|
11100
11070
|
},
|
|
11101
|
-
version: version
|
|
11102
|
-
forceBuyExecution: true
|
|
11071
|
+
version: version
|
|
11103
11072
|
}, assetToLocalizedToDest), prefix = _prepareCommonExecute.prefix, depositInstruction = _prepareCommonExecute.depositInstruction;
|
|
11104
11073
|
_context2.n = 4;
|
|
11105
11074
|
return createExchangeInstructions(options, assetFrom, assetTo, isEthereumDest && hasSeparateFeeAsset);
|
|
@@ -11137,7 +11106,6 @@ var createSwapExecuteXcm = /*#__PURE__*/function () {
|
|
|
11137
11106
|
originFee: hasSeparateFeeAsset ? ethBridgeFee : 0n,
|
|
11138
11107
|
reserveFee: destReserveFee
|
|
11139
11108
|
},
|
|
11140
|
-
forceBuyExecution: true,
|
|
11141
11109
|
suffixXcm: snowbridgeInstructions
|
|
11142
11110
|
});
|
|
11143
11111
|
_context2.n = 7;
|
|
@@ -11156,7 +11124,6 @@ var createSwapExecuteXcm = /*#__PURE__*/function () {
|
|
|
11156
11124
|
originFee: 0n,
|
|
11157
11125
|
reserveFee: destReserveFee
|
|
11158
11126
|
},
|
|
11159
|
-
forceBuyExecution: true,
|
|
11160
11127
|
suffixXcm: [depositInstruction]
|
|
11161
11128
|
});
|
|
11162
11129
|
} else {
|
|
@@ -11176,7 +11143,6 @@ var createSwapExecuteXcm = /*#__PURE__*/function () {
|
|
|
11176
11143
|
originFee: hasSeparateFeeAsset ? ethBridgeFee : 0n,
|
|
11177
11144
|
reserveFee: originReserveFee
|
|
11178
11145
|
},
|
|
11179
|
-
forceBuyExecution: true,
|
|
11180
11146
|
suffixXcm: [].concat(_toConsumableArray(exchangeInstructions), _toConsumableArray(exchangeToDestXcm))
|
|
11181
11147
|
}) : [].concat(_toConsumableArray(exchangeInstructions), _toConsumableArray(exchangeToDestXcm));
|
|
11182
11148
|
fullXcm = [].concat(_toConsumableArray(prefix), _toConsumableArray(finalXcm));
|
|
@@ -11783,36 +11749,38 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Chain) {
|
|
|
11783
11749
|
}
|
|
11784
11750
|
_inherits(AssetHubPolkadot, _Chain);
|
|
11785
11751
|
return _createClass(AssetHubPolkadot, [{
|
|
11752
|
+
key: "shouldUseExecuteTransfer",
|
|
11753
|
+
value: function shouldUseExecuteTransfer(options) {
|
|
11754
|
+
var api = options.api,
|
|
11755
|
+
assetInfo = options.assetInfo,
|
|
11756
|
+
feeAssetInfo = options.feeAssetInfo,
|
|
11757
|
+
overriddenAsset = options.overriddenAsset;
|
|
11758
|
+
if (!feeAssetInfo || overriddenAsset) return false;
|
|
11759
|
+
if (isSymbolMatch(assetInfo.symbol, 'KSM')) return false;
|
|
11760
|
+
var nativeAsset = api.findNativeAssetInfoOrThrow(this.chain);
|
|
11761
|
+
var isNativeAsset = isAssetEqual(nativeAsset, assetInfo);
|
|
11762
|
+
var isNativeFeeAsset = isAssetEqual(nativeAsset, feeAssetInfo);
|
|
11763
|
+
return !isNativeAsset || !isNativeFeeAsset;
|
|
11764
|
+
}
|
|
11765
|
+
}, {
|
|
11786
11766
|
key: "transferPolkadotXCM",
|
|
11787
11767
|
value: function () {
|
|
11788
11768
|
var _transferPolkadotXCM = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
11789
|
-
var api,
|
|
11769
|
+
var api, _t;
|
|
11790
11770
|
return _regenerator().w(function (_context) {
|
|
11791
11771
|
while (1) switch (_context.n) {
|
|
11792
11772
|
case 0:
|
|
11793
|
-
api = options.api
|
|
11794
|
-
if (!(
|
|
11795
|
-
_context.n =
|
|
11796
|
-
break;
|
|
11797
|
-
}
|
|
11798
|
-
if (!isSymbolMatch(assetInfo.symbol, 'KSM')) {
|
|
11799
|
-
_context.n = 1;
|
|
11800
|
-
break;
|
|
11801
|
-
}
|
|
11802
|
-
return _context.a(2, transferPolkadotXcm(options));
|
|
11803
|
-
case 1:
|
|
11804
|
-
isNativeAsset = isSymbolMatch(assetInfo.symbol, this.getNativeAssetSymbol(api));
|
|
11805
|
-
isNativeFeeAsset = isSymbolMatch(feeAssetInfo.symbol, this.getNativeAssetSymbol(api));
|
|
11806
|
-
if (!(!isNativeAsset || !isNativeFeeAsset)) {
|
|
11807
|
-
_context.n = 3;
|
|
11773
|
+
api = options.api;
|
|
11774
|
+
if (!this.shouldUseExecuteTransfer(options)) {
|
|
11775
|
+
_context.n = 2;
|
|
11808
11776
|
break;
|
|
11809
11777
|
}
|
|
11810
11778
|
_t = api;
|
|
11811
|
-
_context.n =
|
|
11779
|
+
_context.n = 1;
|
|
11812
11780
|
return handleExecuteTransfer(options);
|
|
11813
|
-
case
|
|
11781
|
+
case 1:
|
|
11814
11782
|
return _context.a(2, _t.deserializeExtrinsics.call(_t, _context.v));
|
|
11815
|
-
case
|
|
11783
|
+
case 2:
|
|
11816
11784
|
return _context.a(2, transferPolkadotXcm(options));
|
|
11817
11785
|
}
|
|
11818
11786
|
}, _callee, this);
|
|
@@ -11993,22 +11961,29 @@ var Hydration = /*#__PURE__*/function (_Chain) {
|
|
|
11993
11961
|
useIdPrefix: false
|
|
11994
11962
|
};
|
|
11995
11963
|
}
|
|
11964
|
+
}, {
|
|
11965
|
+
key: "shouldUseExecuteTransfer",
|
|
11966
|
+
value: function shouldUseExecuteTransfer(input) {
|
|
11967
|
+
var asset = input.assetInfo,
|
|
11968
|
+
feeAsset = input.feeAssetInfo,
|
|
11969
|
+
overriddenAsset = input.overriddenAsset,
|
|
11970
|
+
api = input.api;
|
|
11971
|
+
if (!feeAsset || overriddenAsset) return false;
|
|
11972
|
+
var nativeAsset = api.findNativeAssetInfoOrThrow(this.chain);
|
|
11973
|
+
var isNativeAsset = isAssetEqual(nativeAsset, asset);
|
|
11974
|
+
var isNativeFeeAsset = isAssetEqual(nativeAsset, feeAsset);
|
|
11975
|
+
return !isNativeAsset || !isNativeFeeAsset;
|
|
11976
|
+
}
|
|
11996
11977
|
}, {
|
|
11997
11978
|
key: "transferPolkadotXCM",
|
|
11998
11979
|
value: function () {
|
|
11999
11980
|
var _transferPolkadotXCM = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(input) {
|
|
12000
|
-
var destination, asset,
|
|
11981
|
+
var destination, asset, api, _t;
|
|
12001
11982
|
return _regenerator().w(function (_context) {
|
|
12002
11983
|
while (1) switch (_context.n) {
|
|
12003
11984
|
case 0:
|
|
12004
|
-
destination = input.destination, asset = input.assetInfo,
|
|
12005
|
-
if (!(
|
|
12006
|
-
_context.n = 2;
|
|
12007
|
-
break;
|
|
12008
|
-
}
|
|
12009
|
-
isNativeAsset = isSymbolMatch(asset.symbol, this.getNativeAssetSymbol(api));
|
|
12010
|
-
isNativeFeeAsset = isSymbolMatch(feeAsset.symbol, this.getNativeAssetSymbol(api));
|
|
12011
|
-
if (!(!isNativeAsset || !isNativeFeeAsset)) {
|
|
11985
|
+
destination = input.destination, asset = input.assetInfo, api = input.api;
|
|
11986
|
+
if (!this.shouldUseExecuteTransfer(input)) {
|
|
12012
11987
|
_context.n = 2;
|
|
12013
11988
|
break;
|
|
12014
11989
|
}
|
|
@@ -12671,7 +12646,7 @@ var EnergyWebX = /*#__PURE__*/function (_Chain) {
|
|
|
12671
12646
|
scenario: scenario
|
|
12672
12647
|
});
|
|
12673
12648
|
}
|
|
12674
|
-
return transferPolkadotXcm(input
|
|
12649
|
+
return transferPolkadotXcm(input);
|
|
12675
12650
|
}
|
|
12676
12651
|
}, {
|
|
12677
12652
|
key: "isRelayToParaEnabled",
|
|
@@ -13452,7 +13427,7 @@ var Quartz = /*#__PURE__*/function (_Chain) {
|
|
|
13452
13427
|
var RobonomicsPolkadot = /*#__PURE__*/function (_Chain) {
|
|
13453
13428
|
function RobonomicsPolkadot() {
|
|
13454
13429
|
_classCallCheck(this, RobonomicsPolkadot);
|
|
13455
|
-
return _callSuper(this, RobonomicsPolkadot, ['RobonomicsPolkadot', 'robonomics', 'Polkadot', Version.
|
|
13430
|
+
return _callSuper(this, RobonomicsPolkadot, ['RobonomicsPolkadot', 'robonomics', 'Polkadot', Version.V5]);
|
|
13456
13431
|
}
|
|
13457
13432
|
_inherits(RobonomicsPolkadot, _Chain);
|
|
13458
13433
|
return _createClass(RobonomicsPolkadot, [{
|
|
@@ -14998,4 +14973,4 @@ var createClientCache = function createClientCache(maxSize, pingClient, onEvicti
|
|
|
14998
14973
|
};
|
|
14999
14974
|
};
|
|
15000
14975
|
|
|
15001
|
-
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, AssetClaimBuilder, 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,
|
|
14976
|
+
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, AssetClaimBuilder, 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, assertNotRawAssets, assertSender, assertSenderSource, assertSubstrateOrigin, assertSwapSupport, assertToIsString, blake2b256, blake2b512, buildCustomChainAssetsInfo, buildCustomChainConfig, buildDestInfo, buildHopInfo, buildOriginInfo, calcPreviewMintAmount, claimAssets, compareAddresses, computeOverridenAmount, constructTypeAndThenCall, convertBuilderConfig, convertSs58, createAsset, createAssetId, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createClientCache, createClientPoolHelpers, createCustomXcmOnDest, createDestination, createDirectExecuteXcm, createEthereumBridgeInstructions, createExecuteCall, createExecuteExchangeXcm, createSwapBuilder, createTransfer, createTransferOrSwap, createTransferOrSwapAll, createTxOverrideAmount, createTypeAndThenCall, createTypeThenAutoReserve, 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, getEthErc20Balance, getEvmExtensionOrThrow, getEvmPrivateKeyHex, getEvmSnowbridgeExtensionOrThrow, getFailureInfo$1 as getFailureInfo, getLocalTransferAmount, getMinTransferableAmount, getMinTransferableAmountInternal, getMoonbeamErc20Balance, getOriginXcmFee, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getParaIdImpl, getRelayChainOf, getRelayChainOfImpl, getRelayChainSymbolOf, getSwapExtensionOrThrow, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, 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, transferMoonbeamEvm, transferMoonbeamToEth, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, validateDestinationAddress, validateTransact, verifyEdOnDestination, wrapTxBypass };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-core",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.10.0",
|
|
4
4
|
"description": "SDK core for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@noble/hashes": "^2.2.0",
|
|
26
26
|
"@scure/base": "^2.2.0",
|
|
27
|
-
"viem": "^2.
|
|
28
|
-
"@paraspell/assets": "13.
|
|
29
|
-
"@paraspell/
|
|
30
|
-
"@paraspell/
|
|
27
|
+
"viem": "^2.53.1",
|
|
28
|
+
"@paraspell/assets": "13.10.0",
|
|
29
|
+
"@paraspell/sdk-common": "13.10.0",
|
|
30
|
+
"@paraspell/pallets": "13.10.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/plugin-syntax-import-attributes": "^7.29.7",
|
|
34
34
|
"@babel/preset-env": "^7.29.7",
|
|
35
35
|
"@codecov/rollup-plugin": "^2.0.1",
|
|
36
|
-
"@rollup/plugin-babel": "^7.
|
|
36
|
+
"@rollup/plugin-babel": "^7.1.0",
|
|
37
37
|
"@rollup/plugin-json": "^6.1.0",
|
|
38
38
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
39
|
-
"@vitest/coverage-v8": "^4.1.
|
|
40
|
-
"axios": "^1.
|
|
39
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
40
|
+
"axios": "^1.18.1",
|
|
41
41
|
"dotenv": "^17.4.2",
|
|
42
|
-
"rollup": "^4.
|
|
42
|
+
"rollup": "^4.62.2",
|
|
43
43
|
"rollup-plugin-dts": "^6.4.1",
|
|
44
44
|
"ts-morph": "^28.0.0",
|
|
45
45
|
"tsx": "^4.22.4"
|