@paraspell/sdk-core 13.4.0 → 13.4.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 +3 -15
- package/dist/index.mjs +11 -114
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -405,14 +405,6 @@ declare class LaosPaseo<TApi, TRes, TSigner> extends Laos<TApi, TRes, TSigner> {
|
|
|
405
405
|
constructor();
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
declare class Manta<TApi, TRes, TSigner> extends Chain<TApi, TRes, TSigner> implements IXTokensTransfer<TApi, TRes, TSigner> {
|
|
409
|
-
static readonly NATIVE_ASSET_ID = 1n;
|
|
410
|
-
constructor();
|
|
411
|
-
private getAssetId;
|
|
412
|
-
transferXTokens(input: TXTokensTransferOptions<TApi, TRes, TSigner>): TRes;
|
|
413
|
-
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes, TSigner>): TRes;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
408
|
declare class Moonbeam<TApi, TRes, TSigner> extends Chain<TApi, TRes, TSigner> implements IPolkadotXCMTransfer<TApi, TRes, TSigner> {
|
|
417
409
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
418
410
|
transferPolkadotXCM(options: TPolkadotXCMTransferOptions<TApi, TRes, TSigner>): Promise<TRes>;
|
|
@@ -550,7 +542,6 @@ declare const chains: <TApi, TRes, TSigner>() => {
|
|
|
550
542
|
CoretimePolkadot: CoretimePolkadot<TApi, TRes, TSigner>;
|
|
551
543
|
PeoplePolkadot: PeoplePolkadot<TApi, TRes, TSigner>;
|
|
552
544
|
RobonomicsPolkadot: RobonomicsPolkadot<TApi, TRes, TSigner>;
|
|
553
|
-
Manta: Manta<TApi, TRes, TSigner>;
|
|
554
545
|
NeuroWeb: NeuroWeb<TApi, TRes, TSigner>;
|
|
555
546
|
Pendulum: Pendulum<TApi, TRes, TSigner>;
|
|
556
547
|
Collectives: Collectives<TApi, TRes, TSigner>;
|
|
@@ -1827,9 +1818,6 @@ type TXcmAsset = {
|
|
|
1827
1818
|
} | {
|
|
1828
1819
|
Native: null;
|
|
1829
1820
|
};
|
|
1830
|
-
type TMantaAsset = {
|
|
1831
|
-
MantaCurrency: bigint | undefined;
|
|
1832
|
-
};
|
|
1833
1821
|
type TNativeTokenAsset = 'NativeToken';
|
|
1834
1822
|
type TZeitgeistAsset = 'Ztg';
|
|
1835
1823
|
type TOtherReserveAsset = {
|
|
@@ -1850,7 +1838,7 @@ type TBifrostToken = {
|
|
|
1850
1838
|
} | {
|
|
1851
1839
|
Token2: number;
|
|
1852
1840
|
};
|
|
1853
|
-
type TXTokensCurrencySelection = TXcmVersioned<TLocation | TAsset | TAsset[]> | TXcmForeignAsset | TForeignAssetId | TForeignOrTokenAsset | TXcmAsset |
|
|
1841
|
+
type TXTokensCurrencySelection = TXcmVersioned<TLocation | TAsset | TAsset[]> | TXcmForeignAsset | TForeignAssetId | TForeignOrTokenAsset | TXcmAsset | TOtherReserveAsset | TBifrostToken | string | bigint | number | undefined;
|
|
1854
1842
|
|
|
1855
1843
|
declare class AmountTooLowError extends Error {
|
|
1856
1844
|
constructor(message?: string);
|
|
@@ -2418,7 +2406,7 @@ declare const reverseTransformLocation: (location: TLocation) => TLocation;
|
|
|
2418
2406
|
|
|
2419
2407
|
declare const normalizeAmount: (amount: bigint) => bigint;
|
|
2420
2408
|
|
|
2421
|
-
declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "Darwinia" | "EnergyWebX" | "Hydration" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "
|
|
2409
|
+
declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "Darwinia" | "EnergyWebX" | "Hydration" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "NeuroWeb" | "Pendulum" | "Mythos" | "Peaq" | "PeoplePolkadot" | "Unique" | "Xode" | "AssetHubKusama" | "BridgeHubKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Basilisk" | "BifrostKusama" | "CrustShadow" | "Crab" | "Laos" | "Quartz" | "RobonomicsPolkadot" | "PeopleKusama" | "Shiden" | "Zeitgeist" | "AssetHubWestend" | "BridgeHubWestend" | "CollectivesWestend" | "CoretimeWestend" | "Penpal" | "PeopleWestend" | "AjunaPaseo" | "AssetHubPaseo" | "BifrostPaseo" | "BridgeHubPaseo" | "CoretimePaseo" | "EnergyWebXPaseo" | "HeimaPaseo" | "HydrationPaseo" | "LaosPaseo" | "NeuroWebPaseo" | "PeoplePaseo" | "ZeitgeistPaseo" | undefined;
|
|
2422
2410
|
|
|
2423
2411
|
declare const resolveParaId: (paraId: number | undefined, destination: TDestination) => number | undefined;
|
|
2424
2412
|
|
|
@@ -2472,4 +2460,4 @@ declare const pickCompatibleXcmVersion: (origin: TSubstrateChain, destination: T
|
|
|
2472
2460
|
declare const pickRouterCompatibleXcmVersion: (origin: TSubstrateChain | undefined, exchangeChain: TSubstrateChain, destination: TChain | undefined) => Version;
|
|
2473
2461
|
|
|
2474
2462
|
export { API_TYPES, AmountTooLowError, ApiNotInitializedError, AssetClaimBuilder, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, 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, TransferToAhNotSupported, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, ValidationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertExtensionInstalled, assertHasId, assertNotEvmTransfer, assertSender, assertSenderSource, assertSubstrateOrigin, assertSwapSupport, assertToIsString, blake2b256, blake2b512, 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, getBalance, getBalanceInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getEthErc20Balance, getEvmExtensionOrThrow, getEvmPrivateKeyHex, getEvmSnowbridgeExtensionOrThrow, getFailureInfo, getLocalTransferAmount, getMinTransferableAmount, getMinTransferableAmountInternal, getMoonbeamErc20Balance, getOriginXcmFee, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getSwapExtensionOrThrow, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, isSenderSigner, isViemSigner, keyFromWs, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, normalizeExchange, overrideTxAmount, padFee, padValueBy, parseUnits, pickCompatibleXcmVersion, pickRouterCompatibleXcmVersion, registerEvmExtension, registerEvmSnowbridgeExtension, registerSwapExtension, resolveAssetCount, resolveDestChain, resolveModuleError, resolveParaId, resolveTransferParams, reverseTransformLocation, selectXcmVersion, sortAssets, throwUnsupportedCurrency, transferMoonbeamEvm, transferMoonbeamToEth, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, validateDestinationAddress, validateTransact, verifyEdOnDestination, wrapTxBypass };
|
|
2475
|
-
export type { BuildHopInfoOptions, ClientCache, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotXCMTransfer, IXTokensTransfer, OneKey, TAddress, TApiOrUrl, TApiType, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedTransferOptions, TBifrostToken, TBridgeStatus, TBuildAllInternalRes, TBuildDestInfoOptions, TBuildInternalRes, TBuildInternalResBase, TBuilderConfig, TBuilderInternalOptions, TBuilderOptions, TBypassOptions, TCacheItem, TChainConfig, TChainConfigMap, TChainEndpoint, TChainWithApi, TClientEntry, TClientKey, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateEthBridgeInstructionsOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmExtension, TEvmSnowbridgeExtension, TEvmTransferOptions, TEvmTransferOptionsBase, TExchangeChain, TExchangeInput, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceCommonOptions, TGetBalanceOptions, TGetBalanceOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo,
|
|
2463
|
+
export type { BuildHopInfoOptions, ClientCache, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotXCMTransfer, IXTokensTransfer, OneKey, TAddress, TApiOrUrl, TApiType, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedTransferOptions, TBifrostToken, TBridgeStatus, TBuildAllInternalRes, TBuildDestInfoOptions, TBuildInternalRes, TBuildInternalResBase, TBuilderConfig, TBuilderInternalOptions, TBuilderOptions, TBypassOptions, TCacheItem, TChainConfig, TChainConfigMap, TChainEndpoint, TChainWithApi, TClientEntry, TClientKey, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateEthBridgeInstructionsOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmExtension, TEvmSnowbridgeExtension, TEvmTransferOptions, TEvmTransferOptionsBase, TExchangeChain, TExchangeInput, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceCommonOptions, TGetBalanceOptions, TGetBalanceOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, TModuleError, TNativeTokenAsset, TOriginFeeDetails, TOtherReserveAsset, TPaymentInfo, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TReserveAsset, TResolveHopParams, TScenario, TSelfReserveAsset, TSender, TSerializedExtrinsics, TSerializedRuntimeApiQuery, TSerializedStateQuery, TSetBalanceRes, TStatusChangeCallback, TSubstrateTransferBaseOptions, TSubstrateTransferBaseOptionsWithSender, TSubstrateTransferOptions, TSwapBuilder, TSwapBuilderFactory, TSwapConfig, TSwapEvent, TSwapEventType, TSwapExtension, TSwapFeeEstimates, TSwapOptions, 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, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSender, WithRequiredSwapOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { blake2b } from '@noble/hashes/blake2.js';
|
|
2
|
-
import { isChainEvm, getAssetsObject, InvalidCurrencyError, extractAssetLocation, isTAsset, findAssetInfoOrThrow, findNativeAssetInfoOrThrow, findAssetInfo, findAssetOnDestOrThrow, findAssetInfoOnDest, isAssetEqual, isStableCoinAsset, isBridgedSystemAsset, isOverrideLocationSpecifier,
|
|
2
|
+
import { isChainEvm, getAssetsObject, InvalidCurrencyError, extractAssetLocation, isTAsset, findAssetInfoOrThrow, findNativeAssetInfoOrThrow, findAssetInfo, findAssetOnDestOrThrow, findAssetInfoOnDest, isAssetEqual, isStableCoinAsset, isBridgedSystemAsset, isOverrideLocationSpecifier, isSymbolSpecifier, getRelayChainSymbol, normalizeLocation, getNativeAssetSymbol, getEdFromAssetOrThrow, isSymbolMatch, getExistentialDepositOrThrow, hasDryRunSupport, findNativeAssetInfo, isAssetXcEqual, normalizeSymbol, Native, hasXcmPaymentApiSupport, getOtherAssets } from '@paraspell/assets';
|
|
3
3
|
export * from '@paraspell/assets';
|
|
4
4
|
import { base58 } from '@scure/base';
|
|
5
|
-
import { isAddress, isHex, pad, toHex, getAddress, concat, keccak256, createPublicClient, http, getContract,
|
|
5
|
+
import { isAddress, isHex, pad, toHex, getAddress, concat, keccak256, createPublicClient, http, getContract, formatUnits as formatUnits$1, parseUnits as parseUnits$1 } from 'viem';
|
|
6
6
|
import { Version, isTLocation, replaceBigInt, isExternalChain, hasJunction, getJunctionValue, isRelayChain, deepEqual, Parents, isSnowbridge, isBridge, isSubstrateBridge, PARACHAINS, RELAYCHAINS, isTrustedChain } from '@paraspell/sdk-common';
|
|
7
7
|
export * from '@paraspell/sdk-common';
|
|
8
8
|
import { getSupportedPallets, getNativeAssetsPallet, getOtherAssetsPallets, getXcmPallet, getSupportedPalletsDetails, hasPallet } from '@paraspell/pallets';
|
|
@@ -1492,14 +1492,6 @@ var Acala$1 = {
|
|
|
1492
1492
|
{
|
|
1493
1493
|
name: "Dwellir",
|
|
1494
1494
|
endpoint: "wss://acala-rpc.n.dwellir.com"
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
name: "IBP1",
|
|
1498
|
-
endpoint: "wss://acala.ibp.network"
|
|
1499
|
-
},
|
|
1500
|
-
{
|
|
1501
|
-
name: "IBP2",
|
|
1502
|
-
endpoint: "wss://acala.dotters.network"
|
|
1503
1495
|
}
|
|
1504
1496
|
]
|
|
1505
1497
|
};
|
|
@@ -1511,14 +1503,6 @@ var Ajuna$1 = {
|
|
|
1511
1503
|
{
|
|
1512
1504
|
name: "AjunaNetwork",
|
|
1513
1505
|
endpoint: "wss://rpc-para.ajuna.network"
|
|
1514
|
-
},
|
|
1515
|
-
{
|
|
1516
|
-
name: "IBP1",
|
|
1517
|
-
endpoint: "wss://ajuna.ibp.network"
|
|
1518
|
-
},
|
|
1519
|
-
{
|
|
1520
|
-
name: "IBP2",
|
|
1521
|
-
endpoint: "wss://ajuna.dotters.network"
|
|
1522
1506
|
}
|
|
1523
1507
|
]
|
|
1524
1508
|
};
|
|
@@ -1550,14 +1534,6 @@ var BifrostPolkadot$1 = {
|
|
|
1550
1534
|
info: "bifrost",
|
|
1551
1535
|
paraId: 2030,
|
|
1552
1536
|
providers: [
|
|
1553
|
-
{
|
|
1554
|
-
name: "IBP1",
|
|
1555
|
-
endpoint: "wss://bifrost-polkadot.ibp.network"
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
name: "IBP2",
|
|
1559
|
-
endpoint: "wss://bifrost-polkadot.dotters.network"
|
|
1560
|
-
},
|
|
1561
1537
|
{
|
|
1562
1538
|
name: "Liebi",
|
|
1563
1539
|
endpoint: "wss://hk.p.bifrost-rpc.liebi.com/ws"
|
|
@@ -1722,12 +1698,8 @@ var Moonbeam$1 = {
|
|
|
1722
1698
|
endpoint: "wss://moonbeam-rpc.publicnode.com"
|
|
1723
1699
|
},
|
|
1724
1700
|
{
|
|
1725
|
-
name: "
|
|
1726
|
-
endpoint: "wss://moonbeam.
|
|
1727
|
-
},
|
|
1728
|
-
{
|
|
1729
|
-
name: "IBP2",
|
|
1730
|
-
endpoint: "wss://moonbeam.dotters.network"
|
|
1701
|
+
name: "Dwellir",
|
|
1702
|
+
endpoint: "wss://moonbeam-rpc.n.dwellir.com"
|
|
1731
1703
|
},
|
|
1732
1704
|
{
|
|
1733
1705
|
name: "Moonbeam Foundation",
|
|
@@ -1737,10 +1709,6 @@ var Moonbeam$1 = {
|
|
|
1737
1709
|
name: "OnFinality",
|
|
1738
1710
|
endpoint: "wss://moonbeam.api.onfinality.io/public-ws"
|
|
1739
1711
|
},
|
|
1740
|
-
{
|
|
1741
|
-
name: "RadiumBlock",
|
|
1742
|
-
endpoint: "wss://moonbeam.public.curie.radiumblock.co/ws"
|
|
1743
|
-
},
|
|
1744
1712
|
{
|
|
1745
1713
|
name: "UnitedBloc",
|
|
1746
1714
|
endpoint: "wss://moonbeam.unitedbloc.com"
|
|
@@ -1844,17 +1812,6 @@ var Crust$1 = {
|
|
|
1844
1812
|
}
|
|
1845
1813
|
]
|
|
1846
1814
|
};
|
|
1847
|
-
var Manta$1 = {
|
|
1848
|
-
name: "Manta",
|
|
1849
|
-
info: "manta",
|
|
1850
|
-
paraId: 2104,
|
|
1851
|
-
providers: [
|
|
1852
|
-
{
|
|
1853
|
-
name: "Manta Network",
|
|
1854
|
-
endpoint: "wss://ws.manta.systems"
|
|
1855
|
-
}
|
|
1856
|
-
]
|
|
1857
|
-
};
|
|
1858
1815
|
var NeuroWeb$1 = {
|
|
1859
1816
|
name: "NeuroWeb",
|
|
1860
1817
|
info: "neuroweb",
|
|
@@ -1883,8 +1840,8 @@ var Mythos$1 = {
|
|
|
1883
1840
|
paraId: 3369,
|
|
1884
1841
|
providers: [
|
|
1885
1842
|
{
|
|
1886
|
-
name: "
|
|
1887
|
-
endpoint: "wss://
|
|
1843
|
+
name: "dmarket",
|
|
1844
|
+
endpoint: "wss://mythos-rpc.dmarket.com/"
|
|
1888
1845
|
}
|
|
1889
1846
|
]
|
|
1890
1847
|
};
|
|
@@ -1942,14 +1899,6 @@ var Unique$1 = {
|
|
|
1942
1899
|
{
|
|
1943
1900
|
name: "Geo Load Balancer",
|
|
1944
1901
|
endpoint: "wss://ws.unique.network"
|
|
1945
|
-
},
|
|
1946
|
-
{
|
|
1947
|
-
name: "IBP1",
|
|
1948
|
-
endpoint: "wss://unique.ibp.network"
|
|
1949
|
-
},
|
|
1950
|
-
{
|
|
1951
|
-
name: "IBP2",
|
|
1952
|
-
endpoint: "wss://unique.dotters.network"
|
|
1953
1902
|
}
|
|
1954
1903
|
]
|
|
1955
1904
|
};
|
|
@@ -2105,6 +2054,10 @@ var Moonriver$1 = {
|
|
|
2105
2054
|
name: "Allnodes",
|
|
2106
2055
|
endpoint: "wss://moonriver-rpc.publicnode.com"
|
|
2107
2056
|
},
|
|
2057
|
+
{
|
|
2058
|
+
name: "Dwellir",
|
|
2059
|
+
endpoint: "wss://moonriver-rpc.n.dwellir.com"
|
|
2060
|
+
},
|
|
2108
2061
|
{
|
|
2109
2062
|
name: "Moonbeam Foundation",
|
|
2110
2063
|
endpoint: "wss://wss.api.moonriver.moonbeam.network"
|
|
@@ -2113,10 +2066,6 @@ var Moonriver$1 = {
|
|
|
2113
2066
|
name: "OnFinality",
|
|
2114
2067
|
endpoint: "wss://moonriver.api.onfinality.io/public-ws"
|
|
2115
2068
|
},
|
|
2116
|
-
{
|
|
2117
|
-
name: "RadiumBlock",
|
|
2118
|
-
endpoint: "wss://moonriver.public.curie.radiumblock.co/ws"
|
|
2119
|
-
},
|
|
2120
2069
|
{
|
|
2121
2070
|
name: "UnitedBloc",
|
|
2122
2071
|
endpoint: "wss://moonriver.unitedbloc.com"
|
|
@@ -2742,7 +2691,7 @@ var Westend$1 = {
|
|
|
2742
2691
|
},
|
|
2743
2692
|
{
|
|
2744
2693
|
name: "RadiumBlock",
|
|
2745
|
-
endpoint: "wss://
|
|
2694
|
+
endpoint: "wss://rpc.public.curie.radiumblock.xyz/ws-westend"
|
|
2746
2695
|
}
|
|
2747
2696
|
]
|
|
2748
2697
|
};
|
|
@@ -2787,7 +2736,6 @@ var configs = {
|
|
|
2787
2736
|
CoretimePolkadot: CoretimePolkadot$1,
|
|
2788
2737
|
Collectives: Collectives$1,
|
|
2789
2738
|
Crust: Crust$1,
|
|
2790
|
-
Manta: Manta$1,
|
|
2791
2739
|
NeuroWeb: NeuroWeb$1,
|
|
2792
2740
|
Pendulum: Pendulum$1,
|
|
2793
2741
|
Mythos: Mythos$1,
|
|
@@ -13383,56 +13331,6 @@ var LaosPaseo = /*#__PURE__*/function (_Laos) {
|
|
|
13383
13331
|
return _createClass(LaosPaseo);
|
|
13384
13332
|
}(Laos);
|
|
13385
13333
|
|
|
13386
|
-
var Manta = /*#__PURE__*/function (_Chain) {
|
|
13387
|
-
function Manta() {
|
|
13388
|
-
_classCallCheck(this, Manta);
|
|
13389
|
-
return _callSuper(this, Manta, ['Manta', 'manta', 'Polkadot', Version.V3]);
|
|
13390
|
-
}
|
|
13391
|
-
_inherits(Manta, _Chain);
|
|
13392
|
-
return _createClass(Manta, [{
|
|
13393
|
-
key: "getAssetId",
|
|
13394
|
-
value: function getAssetId(asset) {
|
|
13395
|
-
if (asset.symbol === this.getNativeAssetSymbol()) return Manta.NATIVE_ASSET_ID;
|
|
13396
|
-
assertHasId(asset);
|
|
13397
|
-
return BigInt(asset.assetId);
|
|
13398
|
-
}
|
|
13399
|
-
}, {
|
|
13400
|
-
key: "transferXTokens",
|
|
13401
|
-
value: function transferXTokens$1(input) {
|
|
13402
|
-
var asset = input.asset;
|
|
13403
|
-
var currencySelection = {
|
|
13404
|
-
MantaCurrency: this.getAssetId(asset)
|
|
13405
|
-
};
|
|
13406
|
-
return transferXTokens(input, currencySelection);
|
|
13407
|
-
}
|
|
13408
|
-
}, {
|
|
13409
|
-
key: "transferLocalNonNativeAsset",
|
|
13410
|
-
value: function transferLocalNonNativeAsset(options) {
|
|
13411
|
-
var api = options.api,
|
|
13412
|
-
asset = options.assetInfo,
|
|
13413
|
-
recipient = options.recipient,
|
|
13414
|
-
balance = options.balance,
|
|
13415
|
-
isAmountAll = options.isAmountAll,
|
|
13416
|
-
keepAlive = options.keepAlive;
|
|
13417
|
-
assertHasId(asset);
|
|
13418
|
-
var assetId = BigInt(asset.assetId);
|
|
13419
|
-
var amount = isAmountAll ? balance : asset.amount;
|
|
13420
|
-
return api.deserializeExtrinsics({
|
|
13421
|
-
module: 'Assets',
|
|
13422
|
-
method: keepAlive ? 'transfer_keep_alive' : 'transfer',
|
|
13423
|
-
params: {
|
|
13424
|
-
id: assetId,
|
|
13425
|
-
target: {
|
|
13426
|
-
Id: recipient
|
|
13427
|
-
},
|
|
13428
|
-
amount: amount
|
|
13429
|
-
}
|
|
13430
|
-
});
|
|
13431
|
-
}
|
|
13432
|
-
}]);
|
|
13433
|
-
}(Chain);
|
|
13434
|
-
Manta.NATIVE_ASSET_ID = 1n;
|
|
13435
|
-
|
|
13436
13334
|
var Moonbeam = /*#__PURE__*/function (_Chain) {
|
|
13437
13335
|
function Moonbeam() {
|
|
13438
13336
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Moonbeam';
|
|
@@ -14129,7 +14027,6 @@ var chains = function chains() {
|
|
|
14129
14027
|
CoretimePolkadot: new CoretimePolkadot(),
|
|
14130
14028
|
PeoplePolkadot: new PeoplePolkadot(),
|
|
14131
14029
|
RobonomicsPolkadot: new RobonomicsPolkadot(),
|
|
14132
|
-
Manta: new Manta(),
|
|
14133
14030
|
NeuroWeb: new NeuroWeb(),
|
|
14134
14031
|
Pendulum: new Pendulum(),
|
|
14135
14032
|
Collectives: new Collectives(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-core",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.1",
|
|
4
4
|
"description": "SDK core for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,28 +22,28 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@noble/hashes": "^2.0
|
|
26
|
-
"@scure/base": "^2.
|
|
27
|
-
"viem": "^2.
|
|
28
|
-
"@paraspell/assets": "13.4.
|
|
29
|
-
"@paraspell/pallets": "13.4.
|
|
30
|
-
"@paraspell/sdk-common": "13.4.
|
|
25
|
+
"@noble/hashes": "^2.2.0",
|
|
26
|
+
"@scure/base": "^2.2.0",
|
|
27
|
+
"viem": "^2.48.4",
|
|
28
|
+
"@paraspell/assets": "13.4.1",
|
|
29
|
+
"@paraspell/pallets": "13.4.1",
|
|
30
|
+
"@paraspell/sdk-common": "13.4.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/plugin-syntax-import-attributes": "^7.28.6",
|
|
34
34
|
"@babel/preset-env": "^7.29.2",
|
|
35
|
-
"@codecov/rollup-plugin": "^
|
|
35
|
+
"@codecov/rollup-plugin": "^2.0.1",
|
|
36
36
|
"@polkadot/api": "^16.5.6",
|
|
37
37
|
"@polkadot/types": "^16.5.6",
|
|
38
38
|
"@rollup/plugin-babel": "^7.0.0",
|
|
39
39
|
"@rollup/plugin-json": "^6.1.0",
|
|
40
40
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
41
|
-
"@vitest/coverage-v8": "^4.1.
|
|
42
|
-
"axios": "^1.
|
|
43
|
-
"dotenv": "^17.
|
|
44
|
-
"rollup": "^4.60.
|
|
41
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
42
|
+
"axios": "^1.15.2",
|
|
43
|
+
"dotenv": "^17.4.2",
|
|
44
|
+
"rollup": "^4.60.2",
|
|
45
45
|
"rollup-plugin-dts": "^6.4.1",
|
|
46
|
-
"ts-morph": "^
|
|
46
|
+
"ts-morph": "^28.0.0",
|
|
47
47
|
"ts-node": "^10.9.2",
|
|
48
48
|
"tslib": "^2.8.1"
|
|
49
49
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"test": "vitest run",
|
|
58
58
|
"test:cov": "vitest run --coverage",
|
|
59
59
|
"test:watch": "vitest",
|
|
60
|
-
"updateChainConfigs": "node --loader ts-node/esm --experimental-specifier-resolution=node ./scripts/fetchChainConfigs.ts",
|
|
60
|
+
"updateChainConfigs": "TS_NODE_PROJECT=./scripts/tsconfig.json node --loader ts-node/esm --experimental-specifier-resolution=node ./scripts/fetchChainConfigs.ts",
|
|
61
61
|
"runAll": "pnpm compile && pnpm format:write && pnpm lint && pnpm test"
|
|
62
62
|
}
|
|
63
63
|
}
|