@paraspell/sdk-core 12.4.0 → 12.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 +90 -122
- package/dist/index.mjs +344 -521
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { isChainEvm, getAssetsObject, InvalidCurrencyError, extractAssetLocation
|
|
|
3
3
|
export * from '@paraspell/assets';
|
|
4
4
|
import { base58 } from '@scure/base';
|
|
5
5
|
import { isAddress, parseUnits as parseUnits$1, formatUnits as formatUnits$1, getContract, createPublicClient, http, pad, toHex, getAddress, concat, keccak256 } from 'viem';
|
|
6
|
-
import { replaceBigInt, isTLocation, Version, hasJunction, getJunctionValue, isRelayChain, deepEqual, Parents, isExternalChain, isSnowbridge, isBridge, PARACHAINS,
|
|
6
|
+
import { replaceBigInt, isTLocation, Version, hasJunction, getJunctionValue, isRelayChain, deepEqual, Parents, isExternalChain, isSnowbridge, isBridge, PARACHAINS, isSubstrateBridge, RELAYCHAINS, isTrustedChain } from '@paraspell/sdk-common';
|
|
7
7
|
export * from '@paraspell/sdk-common';
|
|
8
8
|
import { mainnet, sepolia, moonbeam, moonriver } from 'viem/chains';
|
|
9
9
|
import { getSupportedPallets, getNativeAssetsPallet, getOtherAssetsPallets, getSupportedPalletsDetails } from '@paraspell/pallets';
|
|
@@ -2264,17 +2264,6 @@ var Altair$1 = {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
]
|
|
2266
2266
|
};
|
|
2267
|
-
var Amplitude$1 = {
|
|
2268
|
-
name: "Amplitude",
|
|
2269
|
-
info: "amplitude",
|
|
2270
|
-
paraId: 2124,
|
|
2271
|
-
providers: [
|
|
2272
|
-
{
|
|
2273
|
-
name: "PendulumChain",
|
|
2274
|
-
endpoint: "wss://rpc-amplitude.pendulumchain.tech"
|
|
2275
|
-
}
|
|
2276
|
-
]
|
|
2277
|
-
};
|
|
2278
2267
|
var Basilisk$1 = {
|
|
2279
2268
|
name: "Basilisk",
|
|
2280
2269
|
info: "basilisk",
|
|
@@ -2730,7 +2719,7 @@ var ZeitgeistPaseo$1 = {
|
|
|
2730
2719
|
}
|
|
2731
2720
|
]
|
|
2732
2721
|
};
|
|
2733
|
-
var Polkadot = {
|
|
2722
|
+
var Polkadot$1 = {
|
|
2734
2723
|
name: "Polkadot Relay",
|
|
2735
2724
|
info: "polkadot",
|
|
2736
2725
|
paraId: 0,
|
|
@@ -2789,7 +2778,7 @@ var Polkadot = {
|
|
|
2789
2778
|
}
|
|
2790
2779
|
]
|
|
2791
2780
|
};
|
|
2792
|
-
var Kusama = {
|
|
2781
|
+
var Kusama$1 = {
|
|
2793
2782
|
name: "Kusama Relay",
|
|
2794
2783
|
info: "kusama",
|
|
2795
2784
|
paraId: 0,
|
|
@@ -2840,7 +2829,7 @@ var Kusama = {
|
|
|
2840
2829
|
}
|
|
2841
2830
|
]
|
|
2842
2831
|
};
|
|
2843
|
-
var Westend = {
|
|
2832
|
+
var Westend$1 = {
|
|
2844
2833
|
name: "Westend Relay",
|
|
2845
2834
|
info: "westend",
|
|
2846
2835
|
paraId: 0,
|
|
@@ -2867,7 +2856,7 @@ var Westend = {
|
|
|
2867
2856
|
}
|
|
2868
2857
|
]
|
|
2869
2858
|
};
|
|
2870
|
-
var Paseo = {
|
|
2859
|
+
var Paseo$1 = {
|
|
2871
2860
|
name: "Paseo Relay",
|
|
2872
2861
|
info: "paseo",
|
|
2873
2862
|
paraId: 0,
|
|
@@ -2933,7 +2922,6 @@ var configs = {
|
|
|
2933
2922
|
CoretimeKusama: CoretimeKusama$1,
|
|
2934
2923
|
Encointer: Encointer$1,
|
|
2935
2924
|
Altair: Altair$1,
|
|
2936
|
-
Amplitude: Amplitude$1,
|
|
2937
2925
|
Basilisk: Basilisk$1,
|
|
2938
2926
|
BifrostKusama: BifrostKusama$1,
|
|
2939
2927
|
CrustShadow: CrustShadow$1,
|
|
@@ -2963,10 +2951,10 @@ var configs = {
|
|
|
2963
2951
|
PAssetHub: PAssetHub$1,
|
|
2964
2952
|
PeoplePaseo: PeoplePaseo$1,
|
|
2965
2953
|
ZeitgeistPaseo: ZeitgeistPaseo$1,
|
|
2966
|
-
Polkadot: Polkadot,
|
|
2967
|
-
Kusama: Kusama,
|
|
2968
|
-
Westend: Westend,
|
|
2969
|
-
Paseo: Paseo
|
|
2954
|
+
Polkadot: Polkadot$1,
|
|
2955
|
+
Kusama: Kusama$1,
|
|
2956
|
+
Westend: Westend$1,
|
|
2957
|
+
Paseo: Paseo$1
|
|
2970
2958
|
};
|
|
2971
2959
|
|
|
2972
2960
|
var configsMap = configs;
|
|
@@ -3468,10 +3456,6 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
3468
3456
|
}, {
|
|
3469
3457
|
key: "to",
|
|
3470
3458
|
value: function to(chain, paraIdTo) {
|
|
3471
|
-
var from = this._options.from;
|
|
3472
|
-
if (from && isRelayChain(from) && _typeof(chain) !== 'object' && isExternalChain(chain)) {
|
|
3473
|
-
throw new ScenarioNotSupportedError('Transfers from relay chain to Ethereum are not yet supported.');
|
|
3474
|
-
}
|
|
3475
3459
|
return new GeneralBuilder(this.api, this.batchManager, _objectSpread2(_objectSpread2({}, this._options), {}, {
|
|
3476
3460
|
to: chain,
|
|
3477
3461
|
paraIdTo: paraIdTo
|
|
@@ -4878,6 +4862,15 @@ var validateDestination = function validateDestination(origin, destination) {
|
|
|
4878
4862
|
throw new ScenarioNotSupportedError('Origin and destination must share the same relay chain unless using a bridge.');
|
|
4879
4863
|
}
|
|
4880
4864
|
}
|
|
4865
|
+
if (isRelayChain(origin) && typeof destination === 'string' && !isExternalChain(destination)) {
|
|
4866
|
+
var chain = getChain(destination);
|
|
4867
|
+
if (!chain.isRelayToParaEnabled()) {
|
|
4868
|
+
throw new ScenarioNotSupportedError({
|
|
4869
|
+
chain: destination,
|
|
4870
|
+
scenario: 'RelayToPara'
|
|
4871
|
+
});
|
|
4872
|
+
}
|
|
4873
|
+
}
|
|
4881
4874
|
};
|
|
4882
4875
|
var validateAssetSpecifiers = function validateAssetSpecifiers(assetCheckEnabled, currency) {
|
|
4883
4876
|
if (!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol)) {
|
|
@@ -5269,6 +5262,45 @@ var createBeneficiaryLocation = function createBeneficiaryLocation(_ref2) {
|
|
|
5269
5262
|
};
|
|
5270
5263
|
};
|
|
5271
5264
|
|
|
5265
|
+
var createDestination = function createDestination(version, origin, destination, chainId, junction, parents) {
|
|
5266
|
+
var isLocDestination = isTLocation(destination);
|
|
5267
|
+
var isSubBridge = !isLocDestination && !isExternalChain(destination) && isSubstrateBridge(origin, destination);
|
|
5268
|
+
if (isSubBridge) {
|
|
5269
|
+
return {
|
|
5270
|
+
parents: Parents.TWO,
|
|
5271
|
+
interior: {
|
|
5272
|
+
X2: [{
|
|
5273
|
+
GlobalConsensus: getRelayChainOf(destination)
|
|
5274
|
+
}, {
|
|
5275
|
+
Parachain: chainId
|
|
5276
|
+
}]
|
|
5277
|
+
}
|
|
5278
|
+
};
|
|
5279
|
+
}
|
|
5280
|
+
var isSb = !isLocDestination && isSnowbridge(origin, destination);
|
|
5281
|
+
if (isSb) {
|
|
5282
|
+
return {
|
|
5283
|
+
parents: Parents.TWO,
|
|
5284
|
+
interior: {
|
|
5285
|
+
X1: [getEthereumJunction(origin)]
|
|
5286
|
+
}
|
|
5287
|
+
};
|
|
5288
|
+
}
|
|
5289
|
+
var scenario = resolveScenario(origin, destination);
|
|
5290
|
+
var parentsResolved = parents !== null && parents !== void 0 ? parents : scenario === 'RelayToPara' ? Parents.ZERO : Parents.ONE;
|
|
5291
|
+
var interior = scenario === 'ParaToRelay' ? 'Here' : createX1Payload(version, junction !== null && junction !== void 0 ? junction : {
|
|
5292
|
+
Parachain: chainId
|
|
5293
|
+
});
|
|
5294
|
+
return isLocDestination ? destination : {
|
|
5295
|
+
parents: parentsResolved,
|
|
5296
|
+
interior: interior
|
|
5297
|
+
};
|
|
5298
|
+
};
|
|
5299
|
+
var createVersionedDestination = function createVersionedDestination(version, origin, destination, chainId, junction, parents) {
|
|
5300
|
+
var plainDestination = createDestination(version, origin, destination, chainId, junction, parents);
|
|
5301
|
+
return addXcmVersionHeader(plainDestination, version);
|
|
5302
|
+
};
|
|
5303
|
+
|
|
5272
5304
|
var getChainLocation = function getChainLocation(chain, destChain) {
|
|
5273
5305
|
var fromRelay = isRelayChain(chain);
|
|
5274
5306
|
var toRelay = isRelayChain(destChain);
|
|
@@ -7342,92 +7374,9 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
|
|
|
7342
7374
|
};
|
|
7343
7375
|
}();
|
|
7344
7376
|
|
|
7345
|
-
var createDestination = function createDestination(version, origin, destination, chainId, junction, parents) {
|
|
7346
|
-
var isLocDestination = isTLocation(destination);
|
|
7347
|
-
var isSubBridge = !isLocDestination && !isExternalChain(destination) && isSubstrateBridge(origin, destination);
|
|
7348
|
-
if (isSubBridge) {
|
|
7349
|
-
return {
|
|
7350
|
-
parents: Parents.TWO,
|
|
7351
|
-
interior: {
|
|
7352
|
-
X2: [{
|
|
7353
|
-
GlobalConsensus: getRelayChainOf(destination)
|
|
7354
|
-
}, {
|
|
7355
|
-
Parachain: chainId
|
|
7356
|
-
}]
|
|
7357
|
-
}
|
|
7358
|
-
};
|
|
7359
|
-
}
|
|
7360
|
-
var isSb = !isLocDestination && isSnowbridge(origin, destination);
|
|
7361
|
-
if (isSb) {
|
|
7362
|
-
return {
|
|
7363
|
-
parents: Parents.TWO,
|
|
7364
|
-
interior: {
|
|
7365
|
-
X1: [getEthereumJunction(origin)]
|
|
7366
|
-
}
|
|
7367
|
-
};
|
|
7368
|
-
}
|
|
7369
|
-
var scenario = resolveScenario(origin, destination);
|
|
7370
|
-
var parentsResolved = parents !== null && parents !== void 0 ? parents : scenario === 'RelayToPara' ? Parents.ZERO : Parents.ONE;
|
|
7371
|
-
var interior = scenario === 'ParaToRelay' ? 'Here' : createX1Payload(version, junction !== null && junction !== void 0 ? junction : {
|
|
7372
|
-
Parachain: chainId
|
|
7373
|
-
});
|
|
7374
|
-
return isLocDestination ? destination : {
|
|
7375
|
-
parents: parentsResolved,
|
|
7376
|
-
interior: interior
|
|
7377
|
-
};
|
|
7378
|
-
};
|
|
7379
|
-
var createVersionedDestination = function createVersionedDestination(version, origin, destination, chainId, junction, parents) {
|
|
7380
|
-
var plainDestination = createDestination(version, origin, destination, chainId, junction, parents);
|
|
7381
|
-
return addXcmVersionHeader(plainDestination, version);
|
|
7382
|
-
};
|
|
7383
|
-
var resolveTChainFromLocation = function resolveTChainFromLocation(relaychain, location) {
|
|
7384
|
-
var _PARACHAINS$find;
|
|
7385
|
-
var parachainId = getJunctionValue(location, 'Parachain');
|
|
7386
|
-
if (parachainId === undefined) {
|
|
7387
|
-
throw new RoutingResolutionError('Parachain ID not found in destination location.');
|
|
7388
|
-
}
|
|
7389
|
-
var chain = (_PARACHAINS$find = PARACHAINS.find(function (chain) {
|
|
7390
|
-
return getParaId(chain) === parachainId && getRelayChainOf(chain) === relaychain;
|
|
7391
|
-
})) !== null && _PARACHAINS$find !== void 0 ? _PARACHAINS$find : null;
|
|
7392
|
-
if (chain === null) {
|
|
7393
|
-
throw new RoutingResolutionError('Chain with specified paraId not found in destination location.');
|
|
7394
|
-
}
|
|
7395
|
-
return chain;
|
|
7396
|
-
};
|
|
7397
|
-
|
|
7398
|
-
var transferRelayToPara = /*#__PURE__*/function () {
|
|
7399
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
7400
|
-
var api, origin, destination, isLocationDestination, serializedCall;
|
|
7401
|
-
return _regenerator().w(function (_context) {
|
|
7402
|
-
while (1) switch (_context.n) {
|
|
7403
|
-
case 0:
|
|
7404
|
-
api = options.api, origin = options.origin, destination = options.destination;
|
|
7405
|
-
isLocationDestination = _typeof(destination) === 'object';
|
|
7406
|
-
if (!(api.getConfig() === undefined && isLocationDestination)) {
|
|
7407
|
-
_context.n = 1;
|
|
7408
|
-
break;
|
|
7409
|
-
}
|
|
7410
|
-
throw new MissingParameterError('api', 'API is required when using location as destination.');
|
|
7411
|
-
case 1:
|
|
7412
|
-
_context.n = 2;
|
|
7413
|
-
return api.init(origin, TX_CLIENT_TIMEOUT_MS);
|
|
7414
|
-
case 2:
|
|
7415
|
-
_context.n = 3;
|
|
7416
|
-
return getChain(isLocationDestination ? resolveTChainFromLocation(origin, destination) : destination).transferRelayToPara(options);
|
|
7417
|
-
case 3:
|
|
7418
|
-
serializedCall = _context.v;
|
|
7419
|
-
return _context.a(2, api.deserializeExtrinsics(serializedCall));
|
|
7420
|
-
}
|
|
7421
|
-
}, _callee);
|
|
7422
|
-
}));
|
|
7423
|
-
return function transferRelayToPara(_x) {
|
|
7424
|
-
return _ref.apply(this, arguments);
|
|
7425
|
-
};
|
|
7426
|
-
}();
|
|
7427
|
-
|
|
7428
7377
|
var send = /*#__PURE__*/function () {
|
|
7429
7378
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
7430
|
-
var api, origin, currency, feeAsset, address, destination, paraIdTo, version, senderAddress, ahAddress, pallet, method, isAmountAll, isBridge, assetCheckEnabled, asset, resolvedFeeAsset, amount, finalAmount, originVersion, destVersion,
|
|
7379
|
+
var api, origin, currency, feeAsset, address, destination, paraIdTo, version, senderAddress, ahAddress, pallet, method, isAmountAll, isBridge, assetCheckEnabled, asset, resolvedFeeAsset, amount, finalAmount, originVersion, destVersion, overriddenAsset, resolvedAsset, finalAsset, finalVersion, normalizedAsset;
|
|
7431
7380
|
return _regenerator().w(function (_context) {
|
|
7432
7381
|
while (1) switch (_context.n) {
|
|
7433
7382
|
case 0:
|
|
@@ -7446,77 +7395,10 @@ var send = /*#__PURE__*/function () {
|
|
|
7446
7395
|
finalAmount = !Array.isArray(currency) && amount < MIN_AMOUNT ? MIN_AMOUNT : amount;
|
|
7447
7396
|
originVersion = getChainVersion(origin);
|
|
7448
7397
|
destVersion = !isTLocation(destination) ? getChainVersion(destination) : undefined;
|
|
7449
|
-
resolvedVersion = selectXcmVersion(version, originVersion, destVersion);
|
|
7450
|
-
if (!isRelayChain(origin)) {
|
|
7451
|
-
_context.n = 6;
|
|
7452
|
-
break;
|
|
7453
|
-
}
|
|
7454
|
-
if (!(typeof destination === 'string' && isExternalChain(destination))) {
|
|
7455
|
-
_context.n = 1;
|
|
7456
|
-
break;
|
|
7457
|
-
}
|
|
7458
|
-
throw new ScenarioNotSupportedError('Transfers from relay chain to Ethereum are not supported.');
|
|
7459
|
-
case 1:
|
|
7460
|
-
if (asset) {
|
|
7461
|
-
_context.n = 2;
|
|
7462
|
-
break;
|
|
7463
|
-
}
|
|
7464
|
-
throw new MissingParameterError('asset', 'Asset is required for relay chain to relay chain transfers.');
|
|
7465
|
-
case 2:
|
|
7466
|
-
isLocalTransfer = origin === destination;
|
|
7467
|
-
if (!isLocalTransfer) {
|
|
7468
|
-
_context.n = 5;
|
|
7469
|
-
break;
|
|
7470
|
-
}
|
|
7471
|
-
if (!isTLocation(address)) {
|
|
7472
|
-
_context.n = 3;
|
|
7473
|
-
break;
|
|
7474
|
-
}
|
|
7475
|
-
throw new InvalidAddressError('Location address is not supported for local transfers.');
|
|
7476
|
-
case 3:
|
|
7477
|
-
_context.n = 4;
|
|
7478
|
-
return api.init(origin, TX_CLIENT_TIMEOUT_MS);
|
|
7479
|
-
case 4:
|
|
7480
|
-
return _context.a(2, api.deserializeExtrinsics(isAmountAll ? {
|
|
7481
|
-
module: 'Balances',
|
|
7482
|
-
method: 'transfer_all',
|
|
7483
|
-
params: {
|
|
7484
|
-
dest: {
|
|
7485
|
-
Id: address
|
|
7486
|
-
},
|
|
7487
|
-
keepAlive: true
|
|
7488
|
-
}
|
|
7489
|
-
} : {
|
|
7490
|
-
module: 'Balances',
|
|
7491
|
-
method: 'transfer_keep_alive',
|
|
7492
|
-
params: {
|
|
7493
|
-
dest: {
|
|
7494
|
-
Id: address
|
|
7495
|
-
},
|
|
7496
|
-
value: finalAmount
|
|
7497
|
-
}
|
|
7498
|
-
}));
|
|
7499
|
-
case 5:
|
|
7500
|
-
return _context.a(2, transferRelayToPara({
|
|
7501
|
-
api: api,
|
|
7502
|
-
origin: origin,
|
|
7503
|
-
destination: destination,
|
|
7504
|
-
address: address,
|
|
7505
|
-
senderAddress: senderAddress,
|
|
7506
|
-
assetInfo: _objectSpread2(_objectSpread2({}, asset), {}, {
|
|
7507
|
-
amount: finalAmount
|
|
7508
|
-
}),
|
|
7509
|
-
currency: currency,
|
|
7510
|
-
paraIdTo: paraIdTo,
|
|
7511
|
-
version: resolvedVersion,
|
|
7512
|
-
pallet: pallet,
|
|
7513
|
-
method: method
|
|
7514
|
-
}));
|
|
7515
|
-
case 6:
|
|
7516
7398
|
overriddenAsset = resolveOverriddenAsset(options, isBridge, assetCheckEnabled, resolvedFeeAsset);
|
|
7517
|
-
_context.n =
|
|
7399
|
+
_context.n = 1;
|
|
7518
7400
|
return api.init(origin, TX_CLIENT_TIMEOUT_MS);
|
|
7519
|
-
case
|
|
7401
|
+
case 1:
|
|
7520
7402
|
// In case asset check is disabled, we create asset object from currency symbol
|
|
7521
7403
|
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
7522
7404
|
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
@@ -9128,15 +9010,15 @@ var supportsXTransfer = function supportsXTransfer(obj) {
|
|
|
9128
9010
|
var supportsPolkadotXCM = function supportsPolkadotXCM(obj) {
|
|
9129
9011
|
return _typeof(obj) === 'object' && obj !== null && 'transferPolkadotXCM' in obj;
|
|
9130
9012
|
};
|
|
9131
|
-
var
|
|
9132
|
-
function
|
|
9133
|
-
_classCallCheck(this,
|
|
9013
|
+
var Chain = /*#__PURE__*/function () {
|
|
9014
|
+
function Chain(chain, info, ecosystem, version) {
|
|
9015
|
+
_classCallCheck(this, Chain);
|
|
9134
9016
|
this._info = info;
|
|
9135
9017
|
this._ecosystem = ecosystem;
|
|
9136
9018
|
this._chain = chain;
|
|
9137
9019
|
this._version = version;
|
|
9138
9020
|
}
|
|
9139
|
-
return _createClass(
|
|
9021
|
+
return _createClass(Chain, [{
|
|
9140
9022
|
key: "info",
|
|
9141
9023
|
get: function get() {
|
|
9142
9024
|
return this._info;
|
|
@@ -9165,6 +9047,11 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9165
9047
|
if (isExternalAsset) return false;
|
|
9166
9048
|
return !this.shouldUseNativeAssetTeleport(options) || !supportsPolkadotXCM(this);
|
|
9167
9049
|
}
|
|
9050
|
+
}, {
|
|
9051
|
+
key: "isRelayToParaEnabled",
|
|
9052
|
+
value: function isRelayToParaEnabled() {
|
|
9053
|
+
return true;
|
|
9054
|
+
}
|
|
9168
9055
|
}, {
|
|
9169
9056
|
key: "transfer",
|
|
9170
9057
|
value: function () {
|
|
@@ -9191,7 +9078,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9191
9078
|
isMythAsset = isAssetXcEqual(mythAsset, asset);
|
|
9192
9079
|
assetNeedsTypeThen = isRelayAsset || isMythAsset;
|
|
9193
9080
|
_context.n = 2;
|
|
9194
|
-
return api.hasMethod('PolkadotXcm', 'transfer_assets_using_type_and_then');
|
|
9081
|
+
return api.hasMethod(isRelayChain(this.chain) ? 'XcmPallet' : 'PolkadotXcm', 'transfer_assets_using_type_and_then');
|
|
9195
9082
|
case 2:
|
|
9196
9083
|
supportsTypeThen = _context.v;
|
|
9197
9084
|
if (!(assetNeedsTypeThen && !supportsTypeThen)) {
|
|
@@ -9248,7 +9135,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9248
9135
|
}));
|
|
9249
9136
|
case 6:
|
|
9250
9137
|
if (!(supportsPolkadotXCM(this) || useTypeAndThen)) {
|
|
9251
|
-
_context.n =
|
|
9138
|
+
_context.n = 11;
|
|
9252
9139
|
break;
|
|
9253
9140
|
}
|
|
9254
9141
|
options = {
|
|
@@ -9289,12 +9176,6 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9289
9176
|
}
|
|
9290
9177
|
throw new TransferToAhNotSupported('Native asset transfers to or from AssetHub are temporarily disabled');
|
|
9291
9178
|
case 7:
|
|
9292
|
-
if (!(this.chain === 'Astar' && assetNeedsTypeThen)) {
|
|
9293
|
-
_context.n = 8;
|
|
9294
|
-
break;
|
|
9295
|
-
}
|
|
9296
|
-
throw new FeatureTemporarilyDisabledError('Astar system asset transfers are temporarily disabled');
|
|
9297
|
-
case 8:
|
|
9298
9179
|
isAHOrigin = this.chain.includes('AssetHub');
|
|
9299
9180
|
isAHDest = !isTLocation(destination) && destination.includes('AssetHub'); // Handle common cases
|
|
9300
9181
|
isExternalAsset = ((_asset$location2 = asset.location) === null || _asset$location2 === void 0 ? void 0 : _asset$location2.parents) === Parents.TWO;
|
|
@@ -9302,30 +9183,30 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9302
9183
|
isExternalAssetViaAh = isExternalAsset && !isAHOrigin && !isAHDest && !isEthDest && !feeAsset; // External asset - Any origin to AHP - DestinationReserve - one DepositAsset instruction
|
|
9303
9184
|
isExternalAssetToAh = isExternalAsset && isAHDest && !isAHOrigin && !isEthDest && !feeAsset;
|
|
9304
9185
|
if (!(isExternalAssetViaAh || isExternalAssetToAh || useTypeAndThen)) {
|
|
9305
|
-
_context.n =
|
|
9186
|
+
_context.n = 10;
|
|
9306
9187
|
break;
|
|
9307
9188
|
}
|
|
9308
9189
|
if (!(useTypeAndThen && supportsPolkadotXCM(this) && !isSubBridge)) {
|
|
9309
|
-
_context.n =
|
|
9190
|
+
_context.n = 8;
|
|
9310
9191
|
break;
|
|
9311
9192
|
}
|
|
9312
|
-
_context.n =
|
|
9193
|
+
_context.n = 8;
|
|
9313
9194
|
return this.transferPolkadotXCM(options);
|
|
9314
|
-
case
|
|
9315
|
-
_context.n =
|
|
9195
|
+
case 8:
|
|
9196
|
+
_context.n = 9;
|
|
9316
9197
|
return createTypeAndThenCall(options);
|
|
9317
|
-
case
|
|
9198
|
+
case 9:
|
|
9318
9199
|
call = _context.v;
|
|
9319
9200
|
return _context.a(2, api.deserializeExtrinsics(call));
|
|
9320
|
-
case
|
|
9201
|
+
case 10:
|
|
9321
9202
|
if (!supportsPolkadotXCM(this)) {
|
|
9322
|
-
_context.n =
|
|
9203
|
+
_context.n = 11;
|
|
9323
9204
|
break;
|
|
9324
9205
|
}
|
|
9325
9206
|
return _context.a(2, this.transferPolkadotXCM(options));
|
|
9326
|
-
case
|
|
9207
|
+
case 11:
|
|
9327
9208
|
throw new NoXCMSupportImplementedError(this._chain);
|
|
9328
|
-
case
|
|
9209
|
+
case 12:
|
|
9329
9210
|
return _context.a(2);
|
|
9330
9211
|
}
|
|
9331
9212
|
}, _callee, this);
|
|
@@ -9398,52 +9279,6 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9398
9279
|
}, null);
|
|
9399
9280
|
return Boolean(isNativeAsset) && Boolean(isRegisteredOnAh) && (isAHPOrigin || isAHPDest);
|
|
9400
9281
|
}
|
|
9401
|
-
}, {
|
|
9402
|
-
key: "transferRelayToPara",
|
|
9403
|
-
value: function () {
|
|
9404
|
-
var _transferRelayToPara = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
9405
|
-
var api, origin, version, assetInfo, address, senderAddress, destination, paraIdTo, paraId, destChain, scenario;
|
|
9406
|
-
return _regenerator().w(function (_context2) {
|
|
9407
|
-
while (1) switch (_context2.n) {
|
|
9408
|
-
case 0:
|
|
9409
|
-
api = options.api, origin = options.origin, version = options.version, assetInfo = options.assetInfo, address = options.address, senderAddress = options.senderAddress, destination = options.destination, paraIdTo = options.paraIdTo;
|
|
9410
|
-
if (!this.isReceivingTempDisabled('RelayToPara')) {
|
|
9411
|
-
_context2.n = 1;
|
|
9412
|
-
break;
|
|
9413
|
-
}
|
|
9414
|
-
throw new FeatureTemporarilyDisabledError("Receiving on ".concat(this.chain, " is temporarily disabled"));
|
|
9415
|
-
case 1:
|
|
9416
|
-
paraId = resolveParaId(paraIdTo, destination);
|
|
9417
|
-
destChain = resolveDestChain(this.chain, paraId);
|
|
9418
|
-
scenario = 'RelayToPara';
|
|
9419
|
-
if (destChain) {
|
|
9420
|
-
_context2.n = 2;
|
|
9421
|
-
break;
|
|
9422
|
-
}
|
|
9423
|
-
throw new UnsupportedOperationError('Cannot override destination when using type and then transfer.');
|
|
9424
|
-
case 2:
|
|
9425
|
-
return _context2.a(2, createTypeThenAutoReserve(getRelayChainOf(destChain), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
9426
|
-
chain: origin,
|
|
9427
|
-
beneficiaryLocation: createBeneficiaryLocation({
|
|
9428
|
-
api: api,
|
|
9429
|
-
address: address,
|
|
9430
|
-
version: version
|
|
9431
|
-
}),
|
|
9432
|
-
senderAddress: senderAddress,
|
|
9433
|
-
asset: this.createAsset(assetInfo, version),
|
|
9434
|
-
destLocation: createDestination(version, this.chain, destination, paraId),
|
|
9435
|
-
scenario: scenario,
|
|
9436
|
-
destChain: destChain,
|
|
9437
|
-
paraIdTo: paraId
|
|
9438
|
-
})));
|
|
9439
|
-
}
|
|
9440
|
-
}, _callee2, this);
|
|
9441
|
-
}));
|
|
9442
|
-
function transferRelayToPara(_x2) {
|
|
9443
|
-
return _transferRelayToPara.apply(this, arguments);
|
|
9444
|
-
}
|
|
9445
|
-
return transferRelayToPara;
|
|
9446
|
-
}()
|
|
9447
9282
|
}, {
|
|
9448
9283
|
key: "createAsset",
|
|
9449
9284
|
value: function createAsset$1(asset, version) {
|
|
@@ -9460,20 +9295,20 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9460
9295
|
}, {
|
|
9461
9296
|
key: "transferLocal",
|
|
9462
9297
|
value: function () {
|
|
9463
|
-
var _transferLocal = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
9298
|
+
var _transferLocal = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
9464
9299
|
var api, asset, feeAsset, address, senderAddress, isAmountAll, validatedOptions, isNativeAsset, balance, localOptions;
|
|
9465
|
-
return _regenerator().w(function (
|
|
9466
|
-
while (1) switch (
|
|
9300
|
+
return _regenerator().w(function (_context2) {
|
|
9301
|
+
while (1) switch (_context2.n) {
|
|
9467
9302
|
case 0:
|
|
9468
9303
|
api = options.api, asset = options.assetInfo, feeAsset = options.feeAsset, address = options.address, senderAddress = options.senderAddress, isAmountAll = options.isAmountAll;
|
|
9469
9304
|
if (!isTLocation(address)) {
|
|
9470
|
-
|
|
9305
|
+
_context2.n = 1;
|
|
9471
9306
|
break;
|
|
9472
9307
|
}
|
|
9473
9308
|
throw new InvalidAddressError('Location address is not supported for local transfers');
|
|
9474
9309
|
case 1:
|
|
9475
9310
|
if (!feeAsset) {
|
|
9476
|
-
|
|
9311
|
+
_context2.n = 2;
|
|
9477
9312
|
break;
|
|
9478
9313
|
}
|
|
9479
9314
|
throw new UnsupportedOperationError('Fee asset is not supported for local transfers');
|
|
@@ -9483,11 +9318,11 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9483
9318
|
});
|
|
9484
9319
|
isNativeAsset = asset.symbol === this.getNativeAssetSymbol() && asset.isNative;
|
|
9485
9320
|
if (!isAmountAll) {
|
|
9486
|
-
|
|
9321
|
+
_context2.n = 4;
|
|
9487
9322
|
break;
|
|
9488
9323
|
}
|
|
9489
9324
|
assertSenderAddress(senderAddress);
|
|
9490
|
-
|
|
9325
|
+
_context2.n = 3;
|
|
9491
9326
|
return getAssetBalanceInternal({
|
|
9492
9327
|
api: api,
|
|
9493
9328
|
chain: this.chain,
|
|
@@ -9495,8 +9330,8 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9495
9330
|
asset: asset
|
|
9496
9331
|
});
|
|
9497
9332
|
case 3:
|
|
9498
|
-
balance =
|
|
9499
|
-
|
|
9333
|
+
balance = _context2.v;
|
|
9334
|
+
_context2.n = 5;
|
|
9500
9335
|
break;
|
|
9501
9336
|
case 4:
|
|
9502
9337
|
balance = MIN_AMOUNT;
|
|
@@ -9505,18 +9340,18 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9505
9340
|
balance: balance
|
|
9506
9341
|
});
|
|
9507
9342
|
if (!isNativeAsset) {
|
|
9508
|
-
|
|
9343
|
+
_context2.n = 6;
|
|
9509
9344
|
break;
|
|
9510
9345
|
}
|
|
9511
|
-
return
|
|
9346
|
+
return _context2.a(2, this.transferLocalNativeAsset(localOptions));
|
|
9512
9347
|
case 6:
|
|
9513
|
-
return
|
|
9348
|
+
return _context2.a(2, this.transferLocalNonNativeAsset(localOptions));
|
|
9514
9349
|
case 7:
|
|
9515
|
-
return
|
|
9350
|
+
return _context2.a(2);
|
|
9516
9351
|
}
|
|
9517
|
-
},
|
|
9352
|
+
}, _callee2, this);
|
|
9518
9353
|
}));
|
|
9519
|
-
function transferLocal(
|
|
9354
|
+
function transferLocal(_x2) {
|
|
9520
9355
|
return _transferLocal.apply(this, arguments);
|
|
9521
9356
|
}
|
|
9522
9357
|
return transferLocal;
|
|
@@ -9586,7 +9421,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9586
9421
|
}, {
|
|
9587
9422
|
key: "transferToEthereum",
|
|
9588
9423
|
value: function () {
|
|
9589
|
-
var _transferToEthereum = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
9424
|
+
var _transferToEthereum = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(input) {
|
|
9590
9425
|
var _feeAsset$location;
|
|
9591
9426
|
var useOnlyDepositInstruction,
|
|
9592
9427
|
api,
|
|
@@ -9611,18 +9446,18 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9611
9446
|
messageId,
|
|
9612
9447
|
hopDestination,
|
|
9613
9448
|
call,
|
|
9614
|
-
|
|
9615
|
-
return _regenerator().w(function (
|
|
9616
|
-
while (1) switch (
|
|
9449
|
+
_args3 = arguments;
|
|
9450
|
+
return _regenerator().w(function (_context3) {
|
|
9451
|
+
while (1) switch (_context3.n) {
|
|
9617
9452
|
case 0:
|
|
9618
|
-
useOnlyDepositInstruction =
|
|
9453
|
+
useOnlyDepositInstruction = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : false;
|
|
9619
9454
|
api = input.api, asset = input.assetInfo, version = input.version, address = input.address, senderAddress = input.senderAddress, feeAsset = input.feeAssetInfo;
|
|
9620
|
-
|
|
9455
|
+
_context3.n = 1;
|
|
9621
9456
|
return getBridgeStatus(api.clone());
|
|
9622
9457
|
case 1:
|
|
9623
|
-
bridgeStatus =
|
|
9458
|
+
bridgeStatus = _context3.v;
|
|
9624
9459
|
if (!(bridgeStatus !== 'Normal')) {
|
|
9625
|
-
|
|
9460
|
+
_context3.n = 2;
|
|
9626
9461
|
break;
|
|
9627
9462
|
}
|
|
9628
9463
|
throw new BridgeHaltedError();
|
|
@@ -9631,14 +9466,14 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9631
9466
|
assertAddressIsString(address);
|
|
9632
9467
|
assertSenderAddress(senderAddress);
|
|
9633
9468
|
ethAsset = createAsset(version, asset.amount, asset.location);
|
|
9634
|
-
|
|
9469
|
+
_context3.n = 3;
|
|
9635
9470
|
return api.createApiForChain('AssetHubPolkadot');
|
|
9636
9471
|
case 3:
|
|
9637
|
-
ahApi =
|
|
9638
|
-
|
|
9472
|
+
ahApi = _context3.v;
|
|
9473
|
+
_context3.n = 4;
|
|
9639
9474
|
return getParaEthTransferFees(ahApi);
|
|
9640
9475
|
case 4:
|
|
9641
|
-
_yield$getParaEthTran =
|
|
9476
|
+
_yield$getParaEthTran = _context3.v;
|
|
9642
9477
|
_yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
|
|
9643
9478
|
bridgeFee = _yield$getParaEthTran2[0];
|
|
9644
9479
|
executionFee = _yield$getParaEthTran2[1];
|
|
@@ -9650,7 +9485,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9650
9485
|
systemAssetInfo = findNativeAssetInfoOrThrow(getRelayChainOf(this.chain));
|
|
9651
9486
|
shouldIncludeFeeAsset = feeAsset && !isAssetEqual(feeAsset, asset) || !isAssetEqual(asset, systemAssetInfo);
|
|
9652
9487
|
if (!useOnlyDepositInstruction) {
|
|
9653
|
-
|
|
9488
|
+
_context3.n = 5;
|
|
9654
9489
|
break;
|
|
9655
9490
|
}
|
|
9656
9491
|
customXcmOnDest = addXcmVersionHeader([{
|
|
@@ -9667,14 +9502,14 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9667
9502
|
})
|
|
9668
9503
|
}
|
|
9669
9504
|
}], version);
|
|
9670
|
-
|
|
9505
|
+
_context3.n = 7;
|
|
9671
9506
|
break;
|
|
9672
9507
|
case 5:
|
|
9673
9508
|
assertHasId(ethAssetInfo);
|
|
9674
|
-
|
|
9509
|
+
_context3.n = 6;
|
|
9675
9510
|
return generateMessageId(api, senderAddress, getParaId(this.chain), ethAssetInfo.assetId, address, asset.amount);
|
|
9676
9511
|
case 6:
|
|
9677
|
-
messageId =
|
|
9512
|
+
messageId = _context3.v;
|
|
9678
9513
|
customXcmOnDest = createCustomXcmOnDest(input, this.chain, messageId, ethAssetInfo);
|
|
9679
9514
|
case 7:
|
|
9680
9515
|
hopDestination = 'AssetHubPolkadot';
|
|
@@ -9691,11 +9526,11 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9691
9526
|
weight_limit: 'Unlimited'
|
|
9692
9527
|
}
|
|
9693
9528
|
};
|
|
9694
|
-
return
|
|
9529
|
+
return _context3.a(2, api.deserializeExtrinsics(call));
|
|
9695
9530
|
}
|
|
9696
|
-
},
|
|
9531
|
+
}, _callee3, this);
|
|
9697
9532
|
}));
|
|
9698
|
-
function transferToEthereum(
|
|
9533
|
+
function transferToEthereum(_x3) {
|
|
9699
9534
|
return _transferToEthereum.apply(this, arguments);
|
|
9700
9535
|
}
|
|
9701
9536
|
return transferToEthereum;
|
|
@@ -9714,60 +9549,60 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9714
9549
|
}, {
|
|
9715
9550
|
key: "getBalanceForeign",
|
|
9716
9551
|
value: function () {
|
|
9717
|
-
var _getBalanceForeign = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
9552
|
+
var _getBalanceForeign = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(api, address, asset) {
|
|
9718
9553
|
var pallets, lastError, customCurrencyId, _iterator, _step, pallet, instance, _t, _t2;
|
|
9719
|
-
return _regenerator().w(function (
|
|
9720
|
-
while (1) switch (
|
|
9554
|
+
return _regenerator().w(function (_context4) {
|
|
9555
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
9721
9556
|
case 0:
|
|
9722
9557
|
pallets = getOtherAssetsPallets(this.chain);
|
|
9723
9558
|
if (!(pallets.length === 0)) {
|
|
9724
|
-
|
|
9559
|
+
_context4.n = 1;
|
|
9725
9560
|
break;
|
|
9726
9561
|
}
|
|
9727
9562
|
throw new RoutingResolutionError("No foreign asset pallets found for ".concat(this.chain));
|
|
9728
9563
|
case 1:
|
|
9729
9564
|
customCurrencyId = this.getCustomCurrencyId(asset);
|
|
9730
9565
|
_iterator = _createForOfIteratorHelper(pallets);
|
|
9731
|
-
|
|
9566
|
+
_context4.p = 2;
|
|
9732
9567
|
_iterator.s();
|
|
9733
9568
|
case 3:
|
|
9734
9569
|
if ((_step = _iterator.n()).done) {
|
|
9735
|
-
|
|
9570
|
+
_context4.n = 8;
|
|
9736
9571
|
break;
|
|
9737
9572
|
}
|
|
9738
9573
|
pallet = _step.value;
|
|
9739
9574
|
instance = getPalletInstance(pallet);
|
|
9740
|
-
|
|
9741
|
-
|
|
9575
|
+
_context4.p = 4;
|
|
9576
|
+
_context4.n = 5;
|
|
9742
9577
|
return instance.getBalance(api, address, asset, customCurrencyId);
|
|
9743
9578
|
case 5:
|
|
9744
|
-
return
|
|
9579
|
+
return _context4.a(2, _context4.v);
|
|
9745
9580
|
case 6:
|
|
9746
|
-
|
|
9747
|
-
_t =
|
|
9581
|
+
_context4.p = 6;
|
|
9582
|
+
_t = _context4.v;
|
|
9748
9583
|
lastError = _t;
|
|
9749
9584
|
case 7:
|
|
9750
|
-
|
|
9585
|
+
_context4.n = 3;
|
|
9751
9586
|
break;
|
|
9752
9587
|
case 8:
|
|
9753
|
-
|
|
9588
|
+
_context4.n = 10;
|
|
9754
9589
|
break;
|
|
9755
9590
|
case 9:
|
|
9756
|
-
|
|
9757
|
-
_t2 =
|
|
9591
|
+
_context4.p = 9;
|
|
9592
|
+
_t2 = _context4.v;
|
|
9758
9593
|
_iterator.e(_t2);
|
|
9759
9594
|
case 10:
|
|
9760
|
-
|
|
9595
|
+
_context4.p = 10;
|
|
9761
9596
|
_iterator.f();
|
|
9762
|
-
return
|
|
9597
|
+
return _context4.f(10);
|
|
9763
9598
|
case 11:
|
|
9764
9599
|
throw lastError;
|
|
9765
9600
|
case 12:
|
|
9766
|
-
return
|
|
9601
|
+
return _context4.a(2);
|
|
9767
9602
|
}
|
|
9768
|
-
},
|
|
9603
|
+
}, _callee4, this, [[4, 6], [2, 9, 10, 11]]);
|
|
9769
9604
|
}));
|
|
9770
|
-
function getBalanceForeign(_x5, _x6
|
|
9605
|
+
function getBalanceForeign(_x4, _x5, _x6) {
|
|
9771
9606
|
return _getBalanceForeign.apply(this, arguments);
|
|
9772
9607
|
}
|
|
9773
9608
|
return getBalanceForeign;
|
|
@@ -9782,7 +9617,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9782
9617
|
}]);
|
|
9783
9618
|
}();
|
|
9784
9619
|
|
|
9785
|
-
var Acala = /*#__PURE__*/function (
|
|
9620
|
+
var Acala = /*#__PURE__*/function (_Chain) {
|
|
9786
9621
|
function Acala() {
|
|
9787
9622
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Acala';
|
|
9788
9623
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'acala';
|
|
@@ -9791,19 +9626,16 @@ var Acala = /*#__PURE__*/function (_Parachain) {
|
|
|
9791
9626
|
_classCallCheck(this, Acala);
|
|
9792
9627
|
return _callSuper(this, Acala, [chain, info, ecosystem, version]);
|
|
9793
9628
|
}
|
|
9794
|
-
_inherits(Acala,
|
|
9629
|
+
_inherits(Acala, _Chain);
|
|
9795
9630
|
return _createClass(Acala, [{
|
|
9796
9631
|
key: "transferPolkadotXCM",
|
|
9797
9632
|
value: function transferPolkadotXCM(input) {
|
|
9798
9633
|
return transferPolkadotXcm(input);
|
|
9799
9634
|
}
|
|
9800
9635
|
}, {
|
|
9801
|
-
key: "
|
|
9802
|
-
value: function
|
|
9803
|
-
|
|
9804
|
-
chain: this.chain,
|
|
9805
|
-
scenario: 'RelayToPara'
|
|
9806
|
-
});
|
|
9636
|
+
key: "isRelayToParaEnabled",
|
|
9637
|
+
value: function isRelayToParaEnabled() {
|
|
9638
|
+
return false;
|
|
9807
9639
|
}
|
|
9808
9640
|
}, {
|
|
9809
9641
|
key: "transferLocalNativeAsset",
|
|
@@ -9893,9 +9725,9 @@ var Acala = /*#__PURE__*/function (_Parachain) {
|
|
|
9893
9725
|
return _superPropGet(Acala, "getBalance", this, 3)([api, address, asset]);
|
|
9894
9726
|
}
|
|
9895
9727
|
}]);
|
|
9896
|
-
}(
|
|
9728
|
+
}(Chain);
|
|
9897
9729
|
|
|
9898
|
-
var Ajuna = /*#__PURE__*/function (
|
|
9730
|
+
var Ajuna = /*#__PURE__*/function (_Chain) {
|
|
9899
9731
|
function Ajuna() {
|
|
9900
9732
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Ajuna';
|
|
9901
9733
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ajuna';
|
|
@@ -9904,19 +9736,16 @@ var Ajuna = /*#__PURE__*/function (_Parachain) {
|
|
|
9904
9736
|
_classCallCheck(this, Ajuna);
|
|
9905
9737
|
return _callSuper(this, Ajuna, [chain, info, ecosystem, version]);
|
|
9906
9738
|
}
|
|
9907
|
-
_inherits(Ajuna,
|
|
9739
|
+
_inherits(Ajuna, _Chain);
|
|
9908
9740
|
return _createClass(Ajuna, [{
|
|
9909
9741
|
key: "transferPolkadotXCM",
|
|
9910
9742
|
value: function transferPolkadotXCM(input) {
|
|
9911
9743
|
return transferPolkadotXcm(input);
|
|
9912
9744
|
}
|
|
9913
9745
|
}, {
|
|
9914
|
-
key: "
|
|
9915
|
-
value: function
|
|
9916
|
-
|
|
9917
|
-
chain: this.chain,
|
|
9918
|
-
scenario: 'RelayToPara'
|
|
9919
|
-
});
|
|
9746
|
+
key: "isRelayToParaEnabled",
|
|
9747
|
+
value: function isRelayToParaEnabled() {
|
|
9748
|
+
return false;
|
|
9920
9749
|
}
|
|
9921
9750
|
}, {
|
|
9922
9751
|
key: "transferLocalNonNativeAsset",
|
|
@@ -9952,7 +9781,7 @@ var Ajuna = /*#__PURE__*/function (_Parachain) {
|
|
|
9952
9781
|
});
|
|
9953
9782
|
}
|
|
9954
9783
|
}]);
|
|
9955
|
-
}(
|
|
9784
|
+
}(Chain);
|
|
9956
9785
|
|
|
9957
9786
|
var AjunaPaseo = /*#__PURE__*/function (_Ajuna) {
|
|
9958
9787
|
function AjunaPaseo() {
|
|
@@ -9963,12 +9792,12 @@ var AjunaPaseo = /*#__PURE__*/function (_Ajuna) {
|
|
|
9963
9792
|
return _createClass(AjunaPaseo);
|
|
9964
9793
|
}(Ajuna);
|
|
9965
9794
|
|
|
9966
|
-
var Altair = /*#__PURE__*/function (
|
|
9795
|
+
var Altair = /*#__PURE__*/function (_Chain) {
|
|
9967
9796
|
function Altair() {
|
|
9968
9797
|
_classCallCheck(this, Altair);
|
|
9969
9798
|
return _callSuper(this, Altair, ['Altair', 'altair', 'Kusama', Version.V4]);
|
|
9970
9799
|
}
|
|
9971
|
-
_inherits(Altair,
|
|
9800
|
+
_inherits(Altair, _Chain);
|
|
9972
9801
|
return _createClass(Altair, [{
|
|
9973
9802
|
key: "getCustomCurrencyId",
|
|
9974
9803
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -10018,44 +9847,14 @@ var Altair = /*#__PURE__*/function (_Parachain) {
|
|
|
10018
9847
|
});
|
|
10019
9848
|
}
|
|
10020
9849
|
}]);
|
|
10021
|
-
}(
|
|
10022
|
-
|
|
10023
|
-
var Amplitude = /*#__PURE__*/function (_Parachain) {
|
|
10024
|
-
function Amplitude() {
|
|
10025
|
-
_classCallCheck(this, Amplitude);
|
|
10026
|
-
return _callSuper(this, Amplitude, ['Amplitude', 'amplitude', 'Kusama', Version.V3]);
|
|
10027
|
-
}
|
|
10028
|
-
_inherits(Amplitude, _Parachain);
|
|
10029
|
-
return _createClass(Amplitude, [{
|
|
10030
|
-
key: "getCustomCurrencyId",
|
|
10031
|
-
value: function getCustomCurrencyId(asset) {
|
|
10032
|
-
if (asset.symbol === this.getNativeAssetSymbol()) return {
|
|
10033
|
-
Native: null
|
|
10034
|
-
};
|
|
10035
|
-
assertHasId(asset);
|
|
10036
|
-
return {
|
|
10037
|
-
XCM: Number(asset.assetId)
|
|
10038
|
-
};
|
|
10039
|
-
}
|
|
10040
|
-
}, {
|
|
10041
|
-
key: "transferXTokens",
|
|
10042
|
-
value: function transferXTokens$1(input) {
|
|
10043
|
-
var asset = input.asset;
|
|
10044
|
-
assertHasId(asset);
|
|
10045
|
-
var currencySelection = {
|
|
10046
|
-
XCM: Number(asset.assetId)
|
|
10047
|
-
};
|
|
10048
|
-
return transferXTokens(input, currencySelection);
|
|
10049
|
-
}
|
|
10050
|
-
}]);
|
|
10051
|
-
}(Parachain);
|
|
9850
|
+
}(Chain);
|
|
10052
9851
|
|
|
10053
|
-
var AssetHubKusama = /*#__PURE__*/function (
|
|
9852
|
+
var AssetHubKusama = /*#__PURE__*/function (_Chain) {
|
|
10054
9853
|
function AssetHubKusama() {
|
|
10055
9854
|
_classCallCheck(this, AssetHubKusama);
|
|
10056
9855
|
return _callSuper(this, AssetHubKusama, ['AssetHubKusama', 'KusamaAssetHub', 'Kusama', Version.V5]);
|
|
10057
9856
|
}
|
|
10058
|
-
_inherits(AssetHubKusama,
|
|
9857
|
+
_inherits(AssetHubKusama, _Chain);
|
|
10059
9858
|
return _createClass(AssetHubKusama, [{
|
|
10060
9859
|
key: "transferPolkadotXCM",
|
|
10061
9860
|
value: function transferPolkadotXCM(input) {
|
|
@@ -10077,7 +9876,7 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
10077
9876
|
return getChain('AssetHubPolkadot').getBalanceForeign(api, address, asset);
|
|
10078
9877
|
}
|
|
10079
9878
|
}]);
|
|
10080
|
-
}(
|
|
9879
|
+
}(Chain);
|
|
10081
9880
|
|
|
10082
9881
|
var abstractDecimals = function abstractDecimals(amount, decimals, api) {
|
|
10083
9882
|
var config = api.getConfig();
|
|
@@ -10980,7 +10779,7 @@ var throwUnsupportedCurrency = function throwUnsupportedCurrency(currency, chain
|
|
|
10980
10779
|
throw new InvalidCurrencyError("".concat(isDestination ? 'Destination' : 'Origin', " chain ").concat(chain, " does not support currency ").concat(JSON.stringify(currency, replaceBigInt), "."));
|
|
10981
10780
|
};
|
|
10982
10781
|
|
|
10983
|
-
var AssetHubPolkadot = /*#__PURE__*/function (
|
|
10782
|
+
var AssetHubPolkadot = /*#__PURE__*/function (_Chain) {
|
|
10984
10783
|
function AssetHubPolkadot() {
|
|
10985
10784
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'AssetHubPolkadot';
|
|
10986
10785
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'PolkadotAssetHub';
|
|
@@ -10989,7 +10788,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
10989
10788
|
_classCallCheck(this, AssetHubPolkadot);
|
|
10990
10789
|
return _callSuper(this, AssetHubPolkadot, [chain, info, ecosystem, version]);
|
|
10991
10790
|
}
|
|
10992
|
-
_inherits(AssetHubPolkadot,
|
|
10791
|
+
_inherits(AssetHubPolkadot, _Chain);
|
|
10993
10792
|
return _createClass(AssetHubPolkadot, [{
|
|
10994
10793
|
key: "handleEthBridgeNativeTransfer",
|
|
10995
10794
|
value: function () {
|
|
@@ -11158,7 +10957,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11158
10957
|
return getPalletInstance('ForeignAssets').getBalance(api, address, asset);
|
|
11159
10958
|
}
|
|
11160
10959
|
}]);
|
|
11161
|
-
}(
|
|
10960
|
+
}(Chain);
|
|
11162
10961
|
|
|
11163
10962
|
var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
11164
10963
|
function AssetHubPaseo() {
|
|
@@ -11178,7 +10977,7 @@ var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
11178
10977
|
return _createClass(AssetHubWestend);
|
|
11179
10978
|
}(AssetHubPolkadot);
|
|
11180
10979
|
|
|
11181
|
-
var Astar = /*#__PURE__*/function (
|
|
10980
|
+
var Astar = /*#__PURE__*/function (_Chain) {
|
|
11182
10981
|
function Astar() {
|
|
11183
10982
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Astar';
|
|
11184
10983
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'astar';
|
|
@@ -11187,19 +10986,16 @@ var Astar = /*#__PURE__*/function (_Parachain) {
|
|
|
11187
10986
|
_classCallCheck(this, Astar);
|
|
11188
10987
|
return _callSuper(this, Astar, [chain, info, ecosystem, version]);
|
|
11189
10988
|
}
|
|
11190
|
-
_inherits(Astar,
|
|
10989
|
+
_inherits(Astar, _Chain);
|
|
11191
10990
|
return _createClass(Astar, [{
|
|
11192
10991
|
key: "transferPolkadotXCM",
|
|
11193
10992
|
value: function transferPolkadotXCM(input) {
|
|
11194
10993
|
return transferPolkadotXcm(input, 'transfer_assets_using_type_and_then');
|
|
11195
10994
|
}
|
|
11196
10995
|
}, {
|
|
11197
|
-
key: "
|
|
11198
|
-
value: function
|
|
11199
|
-
|
|
11200
|
-
chain: this.chain,
|
|
11201
|
-
scenario: 'RelayToPara'
|
|
11202
|
-
});
|
|
10996
|
+
key: "isRelayToParaEnabled",
|
|
10997
|
+
value: function isRelayToParaEnabled() {
|
|
10998
|
+
return false;
|
|
11203
10999
|
}
|
|
11204
11000
|
}, {
|
|
11205
11001
|
key: "transferLocalNonNativeAsset",
|
|
@@ -11235,9 +11031,9 @@ var Astar = /*#__PURE__*/function (_Parachain) {
|
|
|
11235
11031
|
});
|
|
11236
11032
|
}
|
|
11237
11033
|
}]);
|
|
11238
|
-
}(
|
|
11034
|
+
}(Chain);
|
|
11239
11035
|
|
|
11240
|
-
var Hydration = /*#__PURE__*/function (
|
|
11036
|
+
var Hydration = /*#__PURE__*/function (_Chain) {
|
|
11241
11037
|
function Hydration() {
|
|
11242
11038
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Hydration';
|
|
11243
11039
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hydradx';
|
|
@@ -11246,7 +11042,7 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
|
|
|
11246
11042
|
_classCallCheck(this, Hydration);
|
|
11247
11043
|
return _callSuper(this, Hydration, [chain, info, ecosystem, version]);
|
|
11248
11044
|
}
|
|
11249
|
-
_inherits(Hydration,
|
|
11045
|
+
_inherits(Hydration, _Chain);
|
|
11250
11046
|
return _createClass(Hydration, [{
|
|
11251
11047
|
key: "transferPolkadotXCM",
|
|
11252
11048
|
value: function () {
|
|
@@ -11374,7 +11170,7 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
|
|
|
11374
11170
|
});
|
|
11375
11171
|
}
|
|
11376
11172
|
}]);
|
|
11377
|
-
}(
|
|
11173
|
+
}(Chain);
|
|
11378
11174
|
|
|
11379
11175
|
var Basilisk = /*#__PURE__*/function (_Hydration) {
|
|
11380
11176
|
function Basilisk() {
|
|
@@ -11390,7 +11186,7 @@ var Basilisk = /*#__PURE__*/function (_Hydration) {
|
|
|
11390
11186
|
}]);
|
|
11391
11187
|
}(Hydration);
|
|
11392
11188
|
|
|
11393
|
-
var BifrostPolkadot = /*#__PURE__*/function (
|
|
11189
|
+
var BifrostPolkadot = /*#__PURE__*/function (_Chain) {
|
|
11394
11190
|
function BifrostPolkadot() {
|
|
11395
11191
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BifrostPolkadot';
|
|
11396
11192
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'bifrost';
|
|
@@ -11399,7 +11195,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11399
11195
|
_classCallCheck(this, BifrostPolkadot);
|
|
11400
11196
|
return _callSuper(this, BifrostPolkadot, [chain, info, ecosystem, version]);
|
|
11401
11197
|
}
|
|
11402
|
-
_inherits(BifrostPolkadot,
|
|
11198
|
+
_inherits(BifrostPolkadot, _Chain);
|
|
11403
11199
|
return _createClass(BifrostPolkadot, [{
|
|
11404
11200
|
key: "getCustomCurrencyId",
|
|
11405
11201
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -11472,7 +11268,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11472
11268
|
});
|
|
11473
11269
|
}
|
|
11474
11270
|
}]);
|
|
11475
|
-
}(
|
|
11271
|
+
}(Chain);
|
|
11476
11272
|
|
|
11477
11273
|
var BifrostKusama = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
11478
11274
|
function BifrostKusama() {
|
|
@@ -11492,12 +11288,12 @@ var BifrostPaseo = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
|
11492
11288
|
return _createClass(BifrostPaseo);
|
|
11493
11289
|
}(BifrostPolkadot);
|
|
11494
11290
|
|
|
11495
|
-
var BridgeHubKusama = /*#__PURE__*/function (
|
|
11291
|
+
var BridgeHubKusama = /*#__PURE__*/function (_Chain) {
|
|
11496
11292
|
function BridgeHubKusama() {
|
|
11497
11293
|
_classCallCheck(this, BridgeHubKusama);
|
|
11498
11294
|
return _callSuper(this, BridgeHubKusama, ['BridgeHubKusama', 'kusamaBridgeHub', 'Kusama', Version.V5]);
|
|
11499
11295
|
}
|
|
11500
|
-
_inherits(BridgeHubKusama,
|
|
11296
|
+
_inherits(BridgeHubKusama, _Chain);
|
|
11501
11297
|
return _createClass(BridgeHubKusama, [{
|
|
11502
11298
|
key: "transferPolkadotXCM",
|
|
11503
11299
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11508,9 +11304,9 @@ var BridgeHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
11508
11304
|
return transferPolkadotXcm(input);
|
|
11509
11305
|
}
|
|
11510
11306
|
}]);
|
|
11511
|
-
}(
|
|
11307
|
+
}(Chain);
|
|
11512
11308
|
|
|
11513
|
-
var BridgeHubPolkadot = /*#__PURE__*/function (
|
|
11309
|
+
var BridgeHubPolkadot = /*#__PURE__*/function (_Chain) {
|
|
11514
11310
|
function BridgeHubPolkadot() {
|
|
11515
11311
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BridgeHubPolkadot';
|
|
11516
11312
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotBridgeHub';
|
|
@@ -11519,7 +11315,7 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11519
11315
|
_classCallCheck(this, BridgeHubPolkadot);
|
|
11520
11316
|
return _callSuper(this, BridgeHubPolkadot, [chain, info, ecosystem, version]);
|
|
11521
11317
|
}
|
|
11522
|
-
_inherits(BridgeHubPolkadot,
|
|
11318
|
+
_inherits(BridgeHubPolkadot, _Chain);
|
|
11523
11319
|
return _createClass(BridgeHubPolkadot, [{
|
|
11524
11320
|
key: "transferPolkadotXCM",
|
|
11525
11321
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11531,7 +11327,7 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11531
11327
|
return transferPolkadotXcm(input);
|
|
11532
11328
|
}
|
|
11533
11329
|
}]);
|
|
11534
|
-
}(
|
|
11330
|
+
}(Chain);
|
|
11535
11331
|
|
|
11536
11332
|
var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
11537
11333
|
function BridgeHubPaseo() {
|
|
@@ -11551,12 +11347,12 @@ var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
|
11551
11347
|
return _createClass(BridgeHubWestend);
|
|
11552
11348
|
}(BridgeHubPolkadot);
|
|
11553
11349
|
|
|
11554
|
-
var Centrifuge = /*#__PURE__*/function (
|
|
11350
|
+
var Centrifuge = /*#__PURE__*/function (_Chain) {
|
|
11555
11351
|
function Centrifuge() {
|
|
11556
11352
|
_classCallCheck(this, Centrifuge);
|
|
11557
11353
|
return _callSuper(this, Centrifuge, ['Centrifuge', 'centrifuge', 'Polkadot', Version.V4]);
|
|
11558
11354
|
}
|
|
11559
|
-
_inherits(Centrifuge,
|
|
11355
|
+
_inherits(Centrifuge, _Chain);
|
|
11560
11356
|
return _createClass(Centrifuge, [{
|
|
11561
11357
|
key: "getCustomCurrencyId",
|
|
11562
11358
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -11606,9 +11402,9 @@ var Centrifuge = /*#__PURE__*/function (_Parachain) {
|
|
|
11606
11402
|
});
|
|
11607
11403
|
}
|
|
11608
11404
|
}]);
|
|
11609
|
-
}(
|
|
11405
|
+
}(Chain);
|
|
11610
11406
|
|
|
11611
|
-
var Collectives = /*#__PURE__*/function (
|
|
11407
|
+
var Collectives = /*#__PURE__*/function (_Chain) {
|
|
11612
11408
|
function Collectives() {
|
|
11613
11409
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Collectives';
|
|
11614
11410
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCollectives';
|
|
@@ -11617,7 +11413,7 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
11617
11413
|
_classCallCheck(this, Collectives);
|
|
11618
11414
|
return _callSuper(this, Collectives, [chain, info, ecosystem, version]);
|
|
11619
11415
|
}
|
|
11620
|
-
_inherits(Collectives,
|
|
11416
|
+
_inherits(Collectives, _Chain);
|
|
11621
11417
|
return _createClass(Collectives, [{
|
|
11622
11418
|
key: "transferPolkadotXCM",
|
|
11623
11419
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11629,7 +11425,7 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
11629
11425
|
return transferPolkadotXcm(input);
|
|
11630
11426
|
}
|
|
11631
11427
|
}]);
|
|
11632
|
-
}(
|
|
11428
|
+
}(Chain);
|
|
11633
11429
|
|
|
11634
11430
|
var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
11635
11431
|
function CollectivesWestend() {
|
|
@@ -11640,12 +11436,12 @@ var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
|
11640
11436
|
return _createClass(CollectivesWestend);
|
|
11641
11437
|
}(Collectives);
|
|
11642
11438
|
|
|
11643
|
-
var CoretimeKusama = /*#__PURE__*/function (
|
|
11439
|
+
var CoretimeKusama = /*#__PURE__*/function (_Chain) {
|
|
11644
11440
|
function CoretimeKusama() {
|
|
11645
11441
|
_classCallCheck(this, CoretimeKusama);
|
|
11646
11442
|
return _callSuper(this, CoretimeKusama, ['CoretimeKusama', 'kusamaCoretime', 'Kusama', Version.V5]);
|
|
11647
11443
|
}
|
|
11648
|
-
_inherits(CoretimeKusama,
|
|
11444
|
+
_inherits(CoretimeKusama, _Chain);
|
|
11649
11445
|
return _createClass(CoretimeKusama, [{
|
|
11650
11446
|
key: "transferPolkadotXCM",
|
|
11651
11447
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11659,9 +11455,9 @@ var CoretimeKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
11659
11455
|
return transferPolkadotXcm(input);
|
|
11660
11456
|
}
|
|
11661
11457
|
}]);
|
|
11662
|
-
}(
|
|
11458
|
+
}(Chain);
|
|
11663
11459
|
|
|
11664
|
-
var CoretimePolkadot = /*#__PURE__*/function (
|
|
11460
|
+
var CoretimePolkadot = /*#__PURE__*/function (_Chain) {
|
|
11665
11461
|
function CoretimePolkadot() {
|
|
11666
11462
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'CoretimePolkadot';
|
|
11667
11463
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCoretime';
|
|
@@ -11670,7 +11466,7 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11670
11466
|
_classCallCheck(this, CoretimePolkadot);
|
|
11671
11467
|
return _callSuper(this, CoretimePolkadot, [chain, info, ecosystem, version]);
|
|
11672
11468
|
}
|
|
11673
|
-
_inherits(CoretimePolkadot,
|
|
11469
|
+
_inherits(CoretimePolkadot, _Chain);
|
|
11674
11470
|
return _createClass(CoretimePolkadot, [{
|
|
11675
11471
|
key: "transferPolkadotXCM",
|
|
11676
11472
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11689,7 +11485,7 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11689
11485
|
return origin !== 'Hydration' && origin !== 'Moonbeam';
|
|
11690
11486
|
}
|
|
11691
11487
|
}]);
|
|
11692
|
-
}(
|
|
11488
|
+
}(Chain);
|
|
11693
11489
|
|
|
11694
11490
|
var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
11695
11491
|
function CoretimePaseo() {
|
|
@@ -11709,12 +11505,12 @@ var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
|
11709
11505
|
return _createClass(CoretimeWestend);
|
|
11710
11506
|
}(CoretimePolkadot);
|
|
11711
11507
|
|
|
11712
|
-
var Crab = /*#__PURE__*/function (
|
|
11508
|
+
var Crab = /*#__PURE__*/function (_Chain) {
|
|
11713
11509
|
function Crab() {
|
|
11714
11510
|
_classCallCheck(this, Crab);
|
|
11715
11511
|
return _callSuper(this, Crab, ['Crab', 'crab', 'Kusama', Version.V4]);
|
|
11716
11512
|
}
|
|
11717
|
-
_inherits(Crab,
|
|
11513
|
+
_inherits(Crab, _Chain);
|
|
11718
11514
|
return _createClass(Crab, [{
|
|
11719
11515
|
key: "transferPolkadotXCM",
|
|
11720
11516
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11725,12 +11521,9 @@ var Crab = /*#__PURE__*/function (_Parachain) {
|
|
|
11725
11521
|
});
|
|
11726
11522
|
}
|
|
11727
11523
|
}, {
|
|
11728
|
-
key: "
|
|
11729
|
-
value: function
|
|
11730
|
-
|
|
11731
|
-
chain: this.chain,
|
|
11732
|
-
scenario: 'RelayToPara'
|
|
11733
|
-
});
|
|
11524
|
+
key: "isRelayToParaEnabled",
|
|
11525
|
+
value: function isRelayToParaEnabled() {
|
|
11526
|
+
return false;
|
|
11734
11527
|
}
|
|
11735
11528
|
}, {
|
|
11736
11529
|
key: "transferLocalNonNativeAsset",
|
|
@@ -11738,14 +11531,14 @@ var Crab = /*#__PURE__*/function (_Parachain) {
|
|
|
11738
11531
|
return getChain('Darwinia').transferLocalNonNativeAsset(options);
|
|
11739
11532
|
}
|
|
11740
11533
|
}]);
|
|
11741
|
-
}(
|
|
11534
|
+
}(Chain);
|
|
11742
11535
|
|
|
11743
|
-
var Crust = /*#__PURE__*/function (
|
|
11536
|
+
var Crust = /*#__PURE__*/function (_Chain) {
|
|
11744
11537
|
function Crust() {
|
|
11745
11538
|
_classCallCheck(this, Crust);
|
|
11746
11539
|
return _callSuper(this, Crust, ['Crust', 'crustParachain', 'Polkadot', Version.V3]);
|
|
11747
11540
|
}
|
|
11748
|
-
_inherits(Crust,
|
|
11541
|
+
_inherits(Crust, _Chain);
|
|
11749
11542
|
return _createClass(Crust, [{
|
|
11750
11543
|
key: "getCurrencySelection",
|
|
11751
11544
|
value: function getCurrencySelection(asset) {
|
|
@@ -11796,14 +11589,14 @@ var Crust = /*#__PURE__*/function (_Parachain) {
|
|
|
11796
11589
|
});
|
|
11797
11590
|
}
|
|
11798
11591
|
}]);
|
|
11799
|
-
}(
|
|
11592
|
+
}(Chain);
|
|
11800
11593
|
|
|
11801
|
-
var CrustShadow = /*#__PURE__*/function (
|
|
11594
|
+
var CrustShadow = /*#__PURE__*/function (_Chain) {
|
|
11802
11595
|
function CrustShadow() {
|
|
11803
11596
|
_classCallCheck(this, CrustShadow);
|
|
11804
11597
|
return _callSuper(this, CrustShadow, ['CrustShadow', 'shadow', 'Kusama', Version.V3]);
|
|
11805
11598
|
}
|
|
11806
|
-
_inherits(CrustShadow,
|
|
11599
|
+
_inherits(CrustShadow, _Chain);
|
|
11807
11600
|
return _createClass(CrustShadow, [{
|
|
11808
11601
|
key: "getCurrencySelection",
|
|
11809
11602
|
value: function getCurrencySelection(asset) {
|
|
@@ -11828,14 +11621,14 @@ var CrustShadow = /*#__PURE__*/function (_Parachain) {
|
|
|
11828
11621
|
return getChain('Crust').transferLocalNonNativeAsset(options);
|
|
11829
11622
|
}
|
|
11830
11623
|
}]);
|
|
11831
|
-
}(
|
|
11624
|
+
}(Chain);
|
|
11832
11625
|
|
|
11833
|
-
var Curio = /*#__PURE__*/function (
|
|
11626
|
+
var Curio = /*#__PURE__*/function (_Chain) {
|
|
11834
11627
|
function Curio() {
|
|
11835
11628
|
_classCallCheck(this, Curio);
|
|
11836
11629
|
return _callSuper(this, Curio, ['Curio', 'curio', 'Kusama', Version.V3]);
|
|
11837
11630
|
}
|
|
11838
|
-
_inherits(Curio,
|
|
11631
|
+
_inherits(Curio, _Chain);
|
|
11839
11632
|
return _createClass(Curio, [{
|
|
11840
11633
|
key: "getCustomCurrencyId",
|
|
11841
11634
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -11863,14 +11656,14 @@ var Curio = /*#__PURE__*/function (_Parachain) {
|
|
|
11863
11656
|
return true;
|
|
11864
11657
|
}
|
|
11865
11658
|
}]);
|
|
11866
|
-
}(
|
|
11659
|
+
}(Chain);
|
|
11867
11660
|
|
|
11868
|
-
var Darwinia = /*#__PURE__*/function (
|
|
11661
|
+
var Darwinia = /*#__PURE__*/function (_Chain) {
|
|
11869
11662
|
function Darwinia() {
|
|
11870
11663
|
_classCallCheck(this, Darwinia);
|
|
11871
11664
|
return _callSuper(this, Darwinia, ['Darwinia', 'darwinia', 'Polkadot', Version.V4]);
|
|
11872
11665
|
}
|
|
11873
|
-
_inherits(Darwinia,
|
|
11666
|
+
_inherits(Darwinia, _Chain);
|
|
11874
11667
|
return _createClass(Darwinia, [{
|
|
11875
11668
|
key: "transferPolkadotXCM",
|
|
11876
11669
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11915,14 +11708,14 @@ var Darwinia = /*#__PURE__*/function (_Parachain) {
|
|
|
11915
11708
|
});
|
|
11916
11709
|
}
|
|
11917
11710
|
}]);
|
|
11918
|
-
}(
|
|
11711
|
+
}(Chain);
|
|
11919
11712
|
|
|
11920
|
-
var Encointer = /*#__PURE__*/function (
|
|
11713
|
+
var Encointer = /*#__PURE__*/function (_Chain) {
|
|
11921
11714
|
function Encointer() {
|
|
11922
11715
|
_classCallCheck(this, Encointer);
|
|
11923
11716
|
return _callSuper(this, Encointer, ['Encointer', 'encointer', 'Kusama', Version.V5]);
|
|
11924
11717
|
}
|
|
11925
|
-
_inherits(Encointer,
|
|
11718
|
+
_inherits(Encointer, _Chain);
|
|
11926
11719
|
return _createClass(Encointer, [{
|
|
11927
11720
|
key: "transferPolkadotXCM",
|
|
11928
11721
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11936,9 +11729,9 @@ var Encointer = /*#__PURE__*/function (_Parachain) {
|
|
|
11936
11729
|
});
|
|
11937
11730
|
}
|
|
11938
11731
|
}]);
|
|
11939
|
-
}(
|
|
11732
|
+
}(Chain);
|
|
11940
11733
|
|
|
11941
|
-
var EnergyWebX = /*#__PURE__*/function (
|
|
11734
|
+
var EnergyWebX = /*#__PURE__*/function (_Chain) {
|
|
11942
11735
|
function EnergyWebX() {
|
|
11943
11736
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'EnergyWebX';
|
|
11944
11737
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ewx';
|
|
@@ -11947,7 +11740,7 @@ var EnergyWebX = /*#__PURE__*/function (_Parachain) {
|
|
|
11947
11740
|
_classCallCheck(this, EnergyWebX);
|
|
11948
11741
|
return _callSuper(this, EnergyWebX, [chain, info, ecosystem, version]);
|
|
11949
11742
|
}
|
|
11950
|
-
_inherits(EnergyWebX,
|
|
11743
|
+
_inherits(EnergyWebX, _Chain);
|
|
11951
11744
|
return _createClass(EnergyWebX, [{
|
|
11952
11745
|
key: "transferPolkadotXCM",
|
|
11953
11746
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11961,12 +11754,9 @@ var EnergyWebX = /*#__PURE__*/function (_Parachain) {
|
|
|
11961
11754
|
return transferPolkadotXcm(input, 'reserve_transfer_assets');
|
|
11962
11755
|
}
|
|
11963
11756
|
}, {
|
|
11964
|
-
key: "
|
|
11965
|
-
value: function
|
|
11966
|
-
|
|
11967
|
-
chain: this.chain,
|
|
11968
|
-
scenario: 'RelayToPara'
|
|
11969
|
-
});
|
|
11757
|
+
key: "isRelayToParaEnabled",
|
|
11758
|
+
value: function isRelayToParaEnabled() {
|
|
11759
|
+
return false;
|
|
11970
11760
|
}
|
|
11971
11761
|
}, {
|
|
11972
11762
|
key: "getBalanceForeign",
|
|
@@ -11996,7 +11786,7 @@ var EnergyWebX = /*#__PURE__*/function (_Parachain) {
|
|
|
11996
11786
|
return getBalanceForeign;
|
|
11997
11787
|
}()
|
|
11998
11788
|
}]);
|
|
11999
|
-
}(
|
|
11789
|
+
}(Chain);
|
|
12000
11790
|
|
|
12001
11791
|
var EnergyWebXPaseo = /*#__PURE__*/function (_EnergyWebX) {
|
|
12002
11792
|
function EnergyWebXPaseo() {
|
|
@@ -12007,7 +11797,7 @@ var EnergyWebXPaseo = /*#__PURE__*/function (_EnergyWebX) {
|
|
|
12007
11797
|
return _createClass(EnergyWebXPaseo);
|
|
12008
11798
|
}(EnergyWebX);
|
|
12009
11799
|
|
|
12010
|
-
var Heima = /*#__PURE__*/function (
|
|
11800
|
+
var Heima = /*#__PURE__*/function (_Chain) {
|
|
12011
11801
|
function Heima() {
|
|
12012
11802
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Heima';
|
|
12013
11803
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'heima';
|
|
@@ -12016,7 +11806,7 @@ var Heima = /*#__PURE__*/function (_Parachain) {
|
|
|
12016
11806
|
_classCallCheck(this, Heima);
|
|
12017
11807
|
return _callSuper(this, Heima, [chain, info, ecosystem, version]);
|
|
12018
11808
|
}
|
|
12019
|
-
_inherits(Heima,
|
|
11809
|
+
_inherits(Heima, _Chain);
|
|
12020
11810
|
return _createClass(Heima, [{
|
|
12021
11811
|
key: "transferPolkadotXCM",
|
|
12022
11812
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12034,7 +11824,7 @@ var Heima = /*#__PURE__*/function (_Parachain) {
|
|
|
12034
11824
|
return transferPolkadotXcm(input);
|
|
12035
11825
|
}
|
|
12036
11826
|
}]);
|
|
12037
|
-
}(
|
|
11827
|
+
}(Chain);
|
|
12038
11828
|
|
|
12039
11829
|
var HeimaPaseo = /*#__PURE__*/function (_Heima) {
|
|
12040
11830
|
function HeimaPaseo() {
|
|
@@ -12054,12 +11844,12 @@ var HydrationPaseo = /*#__PURE__*/function (_Hydration) {
|
|
|
12054
11844
|
return _createClass(HydrationPaseo);
|
|
12055
11845
|
}(Hydration);
|
|
12056
11846
|
|
|
12057
|
-
var Interlay = /*#__PURE__*/function (
|
|
11847
|
+
var Interlay = /*#__PURE__*/function (_Chain) {
|
|
12058
11848
|
function Interlay() {
|
|
12059
11849
|
_classCallCheck(this, Interlay);
|
|
12060
11850
|
return _callSuper(this, Interlay, ['Interlay', 'interlay', 'Polkadot', Version.V3]);
|
|
12061
11851
|
}
|
|
12062
|
-
_inherits(Interlay,
|
|
11852
|
+
_inherits(Interlay, _Chain);
|
|
12063
11853
|
return _createClass(Interlay, [{
|
|
12064
11854
|
key: "getCustomCurrencyId",
|
|
12065
11855
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -12116,14 +11906,14 @@ var Interlay = /*#__PURE__*/function (_Parachain) {
|
|
|
12116
11906
|
return this.getBalanceForeign(api, address, asset);
|
|
12117
11907
|
}
|
|
12118
11908
|
}]);
|
|
12119
|
-
}(
|
|
11909
|
+
}(Chain);
|
|
12120
11910
|
|
|
12121
|
-
var Jamton = /*#__PURE__*/function (
|
|
11911
|
+
var Jamton = /*#__PURE__*/function (_Chain) {
|
|
12122
11912
|
function Jamton() {
|
|
12123
11913
|
_classCallCheck(this, Jamton);
|
|
12124
11914
|
return _callSuper(this, Jamton, ['Jamton', 'jamton', 'Polkadot', Version.V4]);
|
|
12125
11915
|
}
|
|
12126
|
-
_inherits(Jamton,
|
|
11916
|
+
_inherits(Jamton, _Chain);
|
|
12127
11917
|
return _createClass(Jamton, [{
|
|
12128
11918
|
key: "getCustomCurrencyId",
|
|
12129
11919
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -12161,7 +11951,7 @@ var Jamton = /*#__PURE__*/function (_Parachain) {
|
|
|
12161
11951
|
return transferPolkadotXcm(input);
|
|
12162
11952
|
}
|
|
12163
11953
|
}]);
|
|
12164
|
-
}(
|
|
11954
|
+
}(Chain);
|
|
12165
11955
|
|
|
12166
11956
|
var Karura = /*#__PURE__*/function (_Acala) {
|
|
12167
11957
|
function Karura() {
|
|
@@ -12172,7 +11962,7 @@ var Karura = /*#__PURE__*/function (_Acala) {
|
|
|
12172
11962
|
return _createClass(Karura);
|
|
12173
11963
|
}(Acala);
|
|
12174
11964
|
|
|
12175
|
-
var KiltSpiritnet = /*#__PURE__*/function (
|
|
11965
|
+
var KiltSpiritnet = /*#__PURE__*/function (_Chain) {
|
|
12176
11966
|
function KiltSpiritnet() {
|
|
12177
11967
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'KiltSpiritnet';
|
|
12178
11968
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'kilt';
|
|
@@ -12181,7 +11971,7 @@ var KiltSpiritnet = /*#__PURE__*/function (_Parachain) {
|
|
|
12181
11971
|
_classCallCheck(this, KiltSpiritnet);
|
|
12182
11972
|
return _callSuper(this, KiltSpiritnet, [chain, info, ecosystem, version]);
|
|
12183
11973
|
}
|
|
12184
|
-
_inherits(KiltSpiritnet,
|
|
11974
|
+
_inherits(KiltSpiritnet, _Chain);
|
|
12185
11975
|
return _createClass(KiltSpiritnet, [{
|
|
12186
11976
|
key: "transferPolkadotXCM",
|
|
12187
11977
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12193,15 +11983,12 @@ var KiltSpiritnet = /*#__PURE__*/function (_Parachain) {
|
|
|
12193
11983
|
return transferPolkadotXcm(input);
|
|
12194
11984
|
}
|
|
12195
11985
|
}, {
|
|
12196
|
-
key: "
|
|
12197
|
-
value: function
|
|
12198
|
-
|
|
12199
|
-
chain: this.chain,
|
|
12200
|
-
scenario: 'RelayToPara'
|
|
12201
|
-
});
|
|
11986
|
+
key: "isRelayToParaEnabled",
|
|
11987
|
+
value: function isRelayToParaEnabled() {
|
|
11988
|
+
return false;
|
|
12202
11989
|
}
|
|
12203
11990
|
}]);
|
|
12204
|
-
}(
|
|
11991
|
+
}(Chain);
|
|
12205
11992
|
|
|
12206
11993
|
var KiltPaseo = /*#__PURE__*/function (_KiltSpiritnet) {
|
|
12207
11994
|
function KiltPaseo() {
|
|
@@ -12222,12 +12009,12 @@ var KiltPaseo = /*#__PURE__*/function (_KiltSpiritnet) {
|
|
|
12222
12009
|
}]);
|
|
12223
12010
|
}(KiltSpiritnet);
|
|
12224
12011
|
|
|
12225
|
-
var Kintsugi = /*#__PURE__*/function (
|
|
12012
|
+
var Kintsugi = /*#__PURE__*/function (_Chain) {
|
|
12226
12013
|
function Kintsugi() {
|
|
12227
12014
|
_classCallCheck(this, Kintsugi);
|
|
12228
12015
|
return _callSuper(this, Kintsugi, ['Kintsugi', 'kintsugi', 'Kusama', Version.V3]);
|
|
12229
12016
|
}
|
|
12230
|
-
_inherits(Kintsugi,
|
|
12017
|
+
_inherits(Kintsugi, _Chain);
|
|
12231
12018
|
return _createClass(Kintsugi, [{
|
|
12232
12019
|
key: "getCustomCurrencyId",
|
|
12233
12020
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -12284,9 +12071,36 @@ var Kintsugi = /*#__PURE__*/function (_Parachain) {
|
|
|
12284
12071
|
return this.getBalanceForeign(api, address, asset);
|
|
12285
12072
|
}
|
|
12286
12073
|
}]);
|
|
12287
|
-
}(
|
|
12074
|
+
}(Chain);
|
|
12288
12075
|
|
|
12289
|
-
var
|
|
12076
|
+
var Polkadot = /*#__PURE__*/function (_Chain) {
|
|
12077
|
+
function Polkadot() {
|
|
12078
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Polkadot';
|
|
12079
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadot';
|
|
12080
|
+
var ecosystem = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Polkadot';
|
|
12081
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
12082
|
+
_classCallCheck(this, Polkadot);
|
|
12083
|
+
return _callSuper(this, Polkadot, [chain, info, ecosystem, version]);
|
|
12084
|
+
}
|
|
12085
|
+
_inherits(Polkadot, _Chain);
|
|
12086
|
+
return _createClass(Polkadot, [{
|
|
12087
|
+
key: "transferPolkadotXCM",
|
|
12088
|
+
value: function transferPolkadotXCM(input) {
|
|
12089
|
+
return transferPolkadotXcm(input);
|
|
12090
|
+
}
|
|
12091
|
+
}]);
|
|
12092
|
+
}(Chain);
|
|
12093
|
+
|
|
12094
|
+
var Kusama = /*#__PURE__*/function (_Polkadot) {
|
|
12095
|
+
function Kusama() {
|
|
12096
|
+
_classCallCheck(this, Kusama);
|
|
12097
|
+
return _callSuper(this, Kusama, ['Kusama', 'kusama', 'Kusama', Version.V5]);
|
|
12098
|
+
}
|
|
12099
|
+
_inherits(Kusama, _Polkadot);
|
|
12100
|
+
return _createClass(Kusama);
|
|
12101
|
+
}(Polkadot);
|
|
12102
|
+
|
|
12103
|
+
var Laos = /*#__PURE__*/function (_Chain) {
|
|
12290
12104
|
function Laos() {
|
|
12291
12105
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Laos';
|
|
12292
12106
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'laos';
|
|
@@ -12295,7 +12109,7 @@ var Laos = /*#__PURE__*/function (_Parachain) {
|
|
|
12295
12109
|
_classCallCheck(this, Laos);
|
|
12296
12110
|
return _callSuper(this, Laos, [chain, info, ecosystem, version]);
|
|
12297
12111
|
}
|
|
12298
|
-
_inherits(Laos,
|
|
12112
|
+
_inherits(Laos, _Chain);
|
|
12299
12113
|
return _createClass(Laos, [{
|
|
12300
12114
|
key: "transferPolkadotXCM",
|
|
12301
12115
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12317,15 +12131,12 @@ var Laos = /*#__PURE__*/function (_Parachain) {
|
|
|
12317
12131
|
return transferPolkadotXcm(input);
|
|
12318
12132
|
}
|
|
12319
12133
|
}, {
|
|
12320
|
-
key: "
|
|
12321
|
-
value: function
|
|
12322
|
-
|
|
12323
|
-
chain: this.chain,
|
|
12324
|
-
scenario: 'RelayToPara'
|
|
12325
|
-
});
|
|
12134
|
+
key: "isRelayToParaEnabled",
|
|
12135
|
+
value: function isRelayToParaEnabled() {
|
|
12136
|
+
return false;
|
|
12326
12137
|
}
|
|
12327
12138
|
}]);
|
|
12328
|
-
}(
|
|
12139
|
+
}(Chain);
|
|
12329
12140
|
|
|
12330
12141
|
var LaosPaseo = /*#__PURE__*/function (_Laos) {
|
|
12331
12142
|
function LaosPaseo() {
|
|
@@ -12336,12 +12147,12 @@ var LaosPaseo = /*#__PURE__*/function (_Laos) {
|
|
|
12336
12147
|
return _createClass(LaosPaseo);
|
|
12337
12148
|
}(Laos);
|
|
12338
12149
|
|
|
12339
|
-
var Manta = /*#__PURE__*/function (
|
|
12150
|
+
var Manta = /*#__PURE__*/function (_Chain) {
|
|
12340
12151
|
function Manta() {
|
|
12341
12152
|
_classCallCheck(this, Manta);
|
|
12342
12153
|
return _callSuper(this, Manta, ['Manta', 'manta', 'Polkadot', Version.V3]);
|
|
12343
12154
|
}
|
|
12344
|
-
_inherits(Manta,
|
|
12155
|
+
_inherits(Manta, _Chain);
|
|
12345
12156
|
return _createClass(Manta, [{
|
|
12346
12157
|
key: "getAssetId",
|
|
12347
12158
|
value: function getAssetId(asset) {
|
|
@@ -12382,10 +12193,10 @@ var Manta = /*#__PURE__*/function (_Parachain) {
|
|
|
12382
12193
|
});
|
|
12383
12194
|
}
|
|
12384
12195
|
}]);
|
|
12385
|
-
}(
|
|
12196
|
+
}(Chain);
|
|
12386
12197
|
Manta.NATIVE_ASSET_ID = 1n;
|
|
12387
12198
|
|
|
12388
|
-
var Moonbeam = /*#__PURE__*/function (
|
|
12199
|
+
var Moonbeam = /*#__PURE__*/function (_Chain) {
|
|
12389
12200
|
function Moonbeam() {
|
|
12390
12201
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Moonbeam';
|
|
12391
12202
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'moonbeam';
|
|
@@ -12394,7 +12205,7 @@ var Moonbeam = /*#__PURE__*/function (_Parachain) {
|
|
|
12394
12205
|
_classCallCheck(this, Moonbeam);
|
|
12395
12206
|
return _callSuper(this, Moonbeam, [chain, info, ecosystem, version]);
|
|
12396
12207
|
}
|
|
12397
|
-
_inherits(Moonbeam,
|
|
12208
|
+
_inherits(Moonbeam, _Chain);
|
|
12398
12209
|
return _createClass(Moonbeam, [{
|
|
12399
12210
|
key: "transferPolkadotXCM",
|
|
12400
12211
|
value: function () {
|
|
@@ -12431,14 +12242,14 @@ var Moonbeam = /*#__PURE__*/function (_Parachain) {
|
|
|
12431
12242
|
return getMoonbeamErc20Balance(this.chain, asset.assetId, address);
|
|
12432
12243
|
}
|
|
12433
12244
|
}]);
|
|
12434
|
-
}(
|
|
12245
|
+
}(Chain);
|
|
12435
12246
|
|
|
12436
|
-
var Moonriver = /*#__PURE__*/function (
|
|
12247
|
+
var Moonriver = /*#__PURE__*/function (_Chain) {
|
|
12437
12248
|
function Moonriver() {
|
|
12438
12249
|
_classCallCheck(this, Moonriver);
|
|
12439
12250
|
return _callSuper(this, Moonriver, ['Moonriver', 'moonriver', 'Kusama', Version.V5]);
|
|
12440
12251
|
}
|
|
12441
|
-
_inherits(Moonriver,
|
|
12252
|
+
_inherits(Moonriver, _Chain);
|
|
12442
12253
|
return _createClass(Moonriver, [{
|
|
12443
12254
|
key: "transferPolkadotXCM",
|
|
12444
12255
|
value: function transferPolkadotXCM(options) {
|
|
@@ -12450,7 +12261,7 @@ var Moonriver = /*#__PURE__*/function (_Parachain) {
|
|
|
12450
12261
|
return getChain('Moonbeam').transferLocalNonNativeAsset(options);
|
|
12451
12262
|
}
|
|
12452
12263
|
}]);
|
|
12453
|
-
}(
|
|
12264
|
+
}(Chain);
|
|
12454
12265
|
|
|
12455
12266
|
var createTypeAndThenTransfer = /*#__PURE__*/function () {
|
|
12456
12267
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options, chain, version) {
|
|
@@ -12501,12 +12312,12 @@ var createTypeAndThenTransfer = /*#__PURE__*/function () {
|
|
|
12501
12312
|
return _ref.apply(this, arguments);
|
|
12502
12313
|
};
|
|
12503
12314
|
}();
|
|
12504
|
-
var Mythos = /*#__PURE__*/function (
|
|
12315
|
+
var Mythos = /*#__PURE__*/function (_Chain) {
|
|
12505
12316
|
function Mythos() {
|
|
12506
12317
|
_classCallCheck(this, Mythos);
|
|
12507
12318
|
return _callSuper(this, Mythos, ['Mythos', 'mythos', 'Polkadot', Version.V5]);
|
|
12508
12319
|
}
|
|
12509
|
-
_inherits(Mythos,
|
|
12320
|
+
_inherits(Mythos, _Chain);
|
|
12510
12321
|
return _createClass(Mythos, [{
|
|
12511
12322
|
key: "transferPolkadotXCM",
|
|
12512
12323
|
value: function () {
|
|
@@ -12555,17 +12366,14 @@ var Mythos = /*#__PURE__*/function (_Parachain) {
|
|
|
12555
12366
|
return transferPolkadotXCM;
|
|
12556
12367
|
}()
|
|
12557
12368
|
}, {
|
|
12558
|
-
key: "
|
|
12559
|
-
value: function
|
|
12560
|
-
|
|
12561
|
-
chain: this.chain,
|
|
12562
|
-
scenario: 'RelayToPara'
|
|
12563
|
-
});
|
|
12369
|
+
key: "isRelayToParaEnabled",
|
|
12370
|
+
value: function isRelayToParaEnabled() {
|
|
12371
|
+
return false;
|
|
12564
12372
|
}
|
|
12565
12373
|
}]);
|
|
12566
|
-
}(
|
|
12374
|
+
}(Chain);
|
|
12567
12375
|
|
|
12568
|
-
var NeuroWeb = /*#__PURE__*/function (
|
|
12376
|
+
var NeuroWeb = /*#__PURE__*/function (_Chain) {
|
|
12569
12377
|
function NeuroWeb() {
|
|
12570
12378
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'NeuroWeb';
|
|
12571
12379
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'neuroweb';
|
|
@@ -12574,7 +12382,7 @@ var NeuroWeb = /*#__PURE__*/function (_Parachain) {
|
|
|
12574
12382
|
_classCallCheck(this, NeuroWeb);
|
|
12575
12383
|
return _callSuper(this, NeuroWeb, [chain, info, ecosystem, version]);
|
|
12576
12384
|
}
|
|
12577
|
-
_inherits(NeuroWeb,
|
|
12385
|
+
_inherits(NeuroWeb, _Chain);
|
|
12578
12386
|
return _createClass(NeuroWeb, [{
|
|
12579
12387
|
key: "transferPolkadotXCM",
|
|
12580
12388
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12628,7 +12436,7 @@ var NeuroWeb = /*#__PURE__*/function (_Parachain) {
|
|
|
12628
12436
|
});
|
|
12629
12437
|
}
|
|
12630
12438
|
}]);
|
|
12631
|
-
}(
|
|
12439
|
+
}(Chain);
|
|
12632
12440
|
|
|
12633
12441
|
var NeuroWebPaseo = /*#__PURE__*/function (_NeuroWeb) {
|
|
12634
12442
|
function NeuroWebPaseo() {
|
|
@@ -12639,7 +12447,7 @@ var NeuroWebPaseo = /*#__PURE__*/function (_NeuroWeb) {
|
|
|
12639
12447
|
return _createClass(NeuroWebPaseo);
|
|
12640
12448
|
}(NeuroWeb);
|
|
12641
12449
|
|
|
12642
|
-
var Nodle = /*#__PURE__*/function (
|
|
12450
|
+
var Nodle = /*#__PURE__*/function (_Chain) {
|
|
12643
12451
|
function Nodle() {
|
|
12644
12452
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Nodle';
|
|
12645
12453
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'nodle';
|
|
@@ -12648,7 +12456,7 @@ var Nodle = /*#__PURE__*/function (_Parachain) {
|
|
|
12648
12456
|
_classCallCheck(this, Nodle);
|
|
12649
12457
|
return _callSuper(this, Nodle, [chain, info, ecosystem, version]);
|
|
12650
12458
|
}
|
|
12651
|
-
_inherits(Nodle,
|
|
12459
|
+
_inherits(Nodle, _Chain);
|
|
12652
12460
|
return _createClass(Nodle, [{
|
|
12653
12461
|
key: "transferPolkadotXCM",
|
|
12654
12462
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12666,17 +12474,23 @@ var Nodle = /*#__PURE__*/function (_Parachain) {
|
|
|
12666
12474
|
return transferPolkadotXcm(input);
|
|
12667
12475
|
}
|
|
12668
12476
|
}, {
|
|
12669
|
-
key: "
|
|
12670
|
-
value: function
|
|
12671
|
-
|
|
12672
|
-
chain: this.chain,
|
|
12673
|
-
scenario: 'RelayToPara'
|
|
12674
|
-
});
|
|
12477
|
+
key: "isRelayToParaEnabled",
|
|
12478
|
+
value: function isRelayToParaEnabled() {
|
|
12479
|
+
return false;
|
|
12675
12480
|
}
|
|
12676
12481
|
}]);
|
|
12677
|
-
}(
|
|
12482
|
+
}(Chain);
|
|
12483
|
+
|
|
12484
|
+
var Paseo = /*#__PURE__*/function (_Polkadot) {
|
|
12485
|
+
function Paseo() {
|
|
12486
|
+
_classCallCheck(this, Paseo);
|
|
12487
|
+
return _callSuper(this, Paseo, ['Paseo', 'paseo', 'Paseo', Version.V5]);
|
|
12488
|
+
}
|
|
12489
|
+
_inherits(Paseo, _Polkadot);
|
|
12490
|
+
return _createClass(Paseo);
|
|
12491
|
+
}(Polkadot);
|
|
12678
12492
|
|
|
12679
|
-
var PeoplePolkadot = /*#__PURE__*/function (
|
|
12493
|
+
var PeoplePolkadot = /*#__PURE__*/function (_Chain) {
|
|
12680
12494
|
function PeoplePolkadot() {
|
|
12681
12495
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'PeoplePolkadot';
|
|
12682
12496
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotPeople';
|
|
@@ -12685,7 +12499,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
12685
12499
|
_classCallCheck(this, PeoplePolkadot);
|
|
12686
12500
|
return _callSuper(this, PeoplePolkadot, [chain, info, ecosystem, version]);
|
|
12687
12501
|
}
|
|
12688
|
-
_inherits(PeoplePolkadot,
|
|
12502
|
+
_inherits(PeoplePolkadot, _Chain);
|
|
12689
12503
|
return _createClass(PeoplePolkadot, [{
|
|
12690
12504
|
key: "transferPolkadotXCM",
|
|
12691
12505
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12697,7 +12511,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
12697
12511
|
return transferPolkadotXcm(input);
|
|
12698
12512
|
}
|
|
12699
12513
|
}]);
|
|
12700
|
-
}(
|
|
12514
|
+
}(Chain);
|
|
12701
12515
|
|
|
12702
12516
|
var PAssetHub = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
12703
12517
|
function PAssetHub() {
|
|
@@ -12718,12 +12532,12 @@ var PAssetHub = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
|
12718
12532
|
}]);
|
|
12719
12533
|
}(PeoplePolkadot);
|
|
12720
12534
|
|
|
12721
|
-
var Peaq = /*#__PURE__*/function (
|
|
12535
|
+
var Peaq = /*#__PURE__*/function (_Chain) {
|
|
12722
12536
|
function Peaq() {
|
|
12723
12537
|
_classCallCheck(this, Peaq);
|
|
12724
12538
|
return _callSuper(this, Peaq, ['Peaq', 'peaq', 'Polkadot', Version.V4]);
|
|
12725
12539
|
}
|
|
12726
|
-
_inherits(Peaq,
|
|
12540
|
+
_inherits(Peaq, _Chain);
|
|
12727
12541
|
return _createClass(Peaq, [{
|
|
12728
12542
|
key: "transferXTokens",
|
|
12729
12543
|
value: function transferXTokens$1(input) {
|
|
@@ -12739,12 +12553,9 @@ var Peaq = /*#__PURE__*/function (_Parachain) {
|
|
|
12739
12553
|
return transferXTokens(input, BigInt(asset.assetId));
|
|
12740
12554
|
}
|
|
12741
12555
|
}, {
|
|
12742
|
-
key: "
|
|
12743
|
-
value: function
|
|
12744
|
-
|
|
12745
|
-
chain: this.chain,
|
|
12746
|
-
scenario: 'RelayToPara'
|
|
12747
|
-
});
|
|
12556
|
+
key: "isRelayToParaEnabled",
|
|
12557
|
+
value: function isRelayToParaEnabled() {
|
|
12558
|
+
return false;
|
|
12748
12559
|
}
|
|
12749
12560
|
}, {
|
|
12750
12561
|
key: "transferLocalNonNativeAsset",
|
|
@@ -12780,14 +12591,14 @@ var Peaq = /*#__PURE__*/function (_Parachain) {
|
|
|
12780
12591
|
});
|
|
12781
12592
|
}
|
|
12782
12593
|
}]);
|
|
12783
|
-
}(
|
|
12594
|
+
}(Chain);
|
|
12784
12595
|
|
|
12785
|
-
var Pendulum = /*#__PURE__*/function (
|
|
12596
|
+
var Pendulum = /*#__PURE__*/function (_Chain) {
|
|
12786
12597
|
function Pendulum() {
|
|
12787
12598
|
_classCallCheck(this, Pendulum);
|
|
12788
12599
|
return _callSuper(this, Pendulum, ['Pendulum', 'pendulum', 'Polkadot', Version.V3]);
|
|
12789
12600
|
}
|
|
12790
|
-
_inherits(Pendulum,
|
|
12601
|
+
_inherits(Pendulum, _Chain);
|
|
12791
12602
|
return _createClass(Pendulum, [{
|
|
12792
12603
|
key: "getCustomCurrencyId",
|
|
12793
12604
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -12809,7 +12620,7 @@ var Pendulum = /*#__PURE__*/function (_Parachain) {
|
|
|
12809
12620
|
}), currencySelection);
|
|
12810
12621
|
}
|
|
12811
12622
|
}]);
|
|
12812
|
-
}(
|
|
12623
|
+
}(Chain);
|
|
12813
12624
|
|
|
12814
12625
|
var Penpal = /*#__PURE__*/function (_Moonbeam) {
|
|
12815
12626
|
function Penpal() {
|
|
@@ -12825,12 +12636,12 @@ var Penpal = /*#__PURE__*/function (_Moonbeam) {
|
|
|
12825
12636
|
}]);
|
|
12826
12637
|
}(Moonbeam);
|
|
12827
12638
|
|
|
12828
|
-
var PeopleKusama = /*#__PURE__*/function (
|
|
12639
|
+
var PeopleKusama = /*#__PURE__*/function (_Chain) {
|
|
12829
12640
|
function PeopleKusama() {
|
|
12830
12641
|
_classCallCheck(this, PeopleKusama);
|
|
12831
12642
|
return _callSuper(this, PeopleKusama, ['PeopleKusama', 'kusamaPeople', 'Kusama', Version.V5]);
|
|
12832
12643
|
}
|
|
12833
|
-
_inherits(PeopleKusama,
|
|
12644
|
+
_inherits(PeopleKusama, _Chain);
|
|
12834
12645
|
return _createClass(PeopleKusama, [{
|
|
12835
12646
|
key: "transferPolkadotXCM",
|
|
12836
12647
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12844,7 +12655,7 @@ var PeopleKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
12844
12655
|
return transferPolkadotXcm(input);
|
|
12845
12656
|
}
|
|
12846
12657
|
}]);
|
|
12847
|
-
}(
|
|
12658
|
+
}(Chain);
|
|
12848
12659
|
|
|
12849
12660
|
var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
12850
12661
|
function PeoplePaseo() {
|
|
@@ -12921,12 +12732,12 @@ var transferXTransfer = function transferXTransfer(input) {
|
|
|
12921
12732
|
return api.deserializeExtrinsics(call);
|
|
12922
12733
|
};
|
|
12923
12734
|
|
|
12924
|
-
var Phala = /*#__PURE__*/function (
|
|
12735
|
+
var Phala = /*#__PURE__*/function (_Chain) {
|
|
12925
12736
|
function Phala() {
|
|
12926
12737
|
_classCallCheck(this, Phala);
|
|
12927
12738
|
return _callSuper(this, Phala, ['Phala', 'phala', 'Polkadot', Version.V3]);
|
|
12928
12739
|
}
|
|
12929
|
-
_inherits(Phala,
|
|
12740
|
+
_inherits(Phala, _Chain);
|
|
12930
12741
|
return _createClass(Phala, [{
|
|
12931
12742
|
key: "transferXTransfer",
|
|
12932
12743
|
value: function transferXTransfer$1(input) {
|
|
@@ -12960,14 +12771,14 @@ var Phala = /*#__PURE__*/function (_Parachain) {
|
|
|
12960
12771
|
});
|
|
12961
12772
|
}
|
|
12962
12773
|
}]);
|
|
12963
|
-
}(
|
|
12774
|
+
}(Chain);
|
|
12964
12775
|
|
|
12965
|
-
var Quartz = /*#__PURE__*/function (
|
|
12776
|
+
var Quartz = /*#__PURE__*/function (_Chain) {
|
|
12966
12777
|
function Quartz() {
|
|
12967
12778
|
_classCallCheck(this, Quartz);
|
|
12968
12779
|
return _callSuper(this, Quartz, ['Quartz', 'quartz', 'Kusama', Version.V5]);
|
|
12969
12780
|
}
|
|
12970
|
-
_inherits(Quartz,
|
|
12781
|
+
_inherits(Quartz, _Chain);
|
|
12971
12782
|
return _createClass(Quartz, [{
|
|
12972
12783
|
key: "transferPolkadotXCM",
|
|
12973
12784
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12979,14 +12790,14 @@ var Quartz = /*#__PURE__*/function (_Parachain) {
|
|
|
12979
12790
|
return true;
|
|
12980
12791
|
}
|
|
12981
12792
|
}]);
|
|
12982
|
-
}(
|
|
12793
|
+
}(Chain);
|
|
12983
12794
|
|
|
12984
|
-
var RobonomicsPolkadot = /*#__PURE__*/function (
|
|
12795
|
+
var RobonomicsPolkadot = /*#__PURE__*/function (_Chain) {
|
|
12985
12796
|
function RobonomicsPolkadot() {
|
|
12986
12797
|
_classCallCheck(this, RobonomicsPolkadot);
|
|
12987
12798
|
return _callSuper(this, RobonomicsPolkadot, ['RobonomicsPolkadot', 'robonomics', 'Polkadot', Version.V3]);
|
|
12988
12799
|
}
|
|
12989
|
-
_inherits(RobonomicsPolkadot,
|
|
12800
|
+
_inherits(RobonomicsPolkadot, _Chain);
|
|
12990
12801
|
return _createClass(RobonomicsPolkadot, [{
|
|
12991
12802
|
key: "transferPolkadotXCM",
|
|
12992
12803
|
value: function transferPolkadotXCM(input) {
|
|
@@ -13038,7 +12849,7 @@ var RobonomicsPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
13038
12849
|
});
|
|
13039
12850
|
}
|
|
13040
12851
|
}]);
|
|
13041
|
-
}(
|
|
12852
|
+
}(Chain);
|
|
13042
12853
|
|
|
13043
12854
|
var Shiden = /*#__PURE__*/function (_Astar) {
|
|
13044
12855
|
function Shiden() {
|
|
@@ -13049,12 +12860,12 @@ var Shiden = /*#__PURE__*/function (_Astar) {
|
|
|
13049
12860
|
return _createClass(Shiden);
|
|
13050
12861
|
}(Astar);
|
|
13051
12862
|
|
|
13052
|
-
var Unique = /*#__PURE__*/function (
|
|
12863
|
+
var Unique = /*#__PURE__*/function (_Chain) {
|
|
13053
12864
|
function Unique() {
|
|
13054
12865
|
_classCallCheck(this, Unique);
|
|
13055
12866
|
return _callSuper(this, Unique, ['Unique', 'unique', 'Polkadot', Version.V5]);
|
|
13056
12867
|
}
|
|
13057
|
-
_inherits(Unique,
|
|
12868
|
+
_inherits(Unique, _Chain);
|
|
13058
12869
|
return _createClass(Unique, [{
|
|
13059
12870
|
key: "transferPolkadotXCM",
|
|
13060
12871
|
value: function transferPolkadotXCM(input) {
|
|
@@ -13104,14 +12915,23 @@ var Unique = /*#__PURE__*/function (_Parachain) {
|
|
|
13104
12915
|
return getBalanceForeign;
|
|
13105
12916
|
}()
|
|
13106
12917
|
}]);
|
|
13107
|
-
}(
|
|
12918
|
+
}(Chain);
|
|
12919
|
+
|
|
12920
|
+
var Westend = /*#__PURE__*/function (_Polkadot) {
|
|
12921
|
+
function Westend() {
|
|
12922
|
+
_classCallCheck(this, Westend);
|
|
12923
|
+
return _callSuper(this, Westend, ['Westend', 'westend', 'Westend', Version.V5]);
|
|
12924
|
+
}
|
|
12925
|
+
_inherits(Westend, _Polkadot);
|
|
12926
|
+
return _createClass(Westend);
|
|
12927
|
+
}(Polkadot);
|
|
13108
12928
|
|
|
13109
|
-
var Xode = /*#__PURE__*/function (
|
|
12929
|
+
var Xode = /*#__PURE__*/function (_Chain) {
|
|
13110
12930
|
function Xode() {
|
|
13111
12931
|
_classCallCheck(this, Xode);
|
|
13112
12932
|
return _callSuper(this, Xode, ['Xode', 'xode', 'Polkadot', Version.V4]);
|
|
13113
12933
|
}
|
|
13114
|
-
_inherits(Xode,
|
|
12934
|
+
_inherits(Xode, _Chain);
|
|
13115
12935
|
return _createClass(Xode, [{
|
|
13116
12936
|
key: "transferPolkadotXCM",
|
|
13117
12937
|
value: function transferPolkadotXCM(options) {
|
|
@@ -13128,9 +12948,9 @@ var Xode = /*#__PURE__*/function (_Parachain) {
|
|
|
13128
12948
|
return origin === 'AssetHubPolkadot';
|
|
13129
12949
|
}
|
|
13130
12950
|
}]);
|
|
13131
|
-
}(
|
|
12951
|
+
}(Chain);
|
|
13132
12952
|
|
|
13133
|
-
var Zeitgeist = /*#__PURE__*/function (
|
|
12953
|
+
var Zeitgeist = /*#__PURE__*/function (_Chain) {
|
|
13134
12954
|
function Zeitgeist() {
|
|
13135
12955
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Zeitgeist';
|
|
13136
12956
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zeitgeist';
|
|
@@ -13139,7 +12959,7 @@ var Zeitgeist = /*#__PURE__*/function (_Parachain) {
|
|
|
13139
12959
|
_classCallCheck(this, Zeitgeist);
|
|
13140
12960
|
return _callSuper(this, Zeitgeist, [chain, info, ecosystem, version]);
|
|
13141
12961
|
}
|
|
13142
|
-
_inherits(Zeitgeist,
|
|
12962
|
+
_inherits(Zeitgeist, _Chain);
|
|
13143
12963
|
return _createClass(Zeitgeist, [{
|
|
13144
12964
|
key: "getCustomCurrencyId",
|
|
13145
12965
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -13182,7 +13002,7 @@ var Zeitgeist = /*#__PURE__*/function (_Parachain) {
|
|
|
13182
13002
|
});
|
|
13183
13003
|
}
|
|
13184
13004
|
}]);
|
|
13185
|
-
}(
|
|
13005
|
+
}(Chain);
|
|
13186
13006
|
|
|
13187
13007
|
var ZeitgeistPaseo = /*#__PURE__*/function (_Zeitgeist) {
|
|
13188
13008
|
function ZeitgeistPaseo() {
|
|
@@ -13196,6 +13016,7 @@ var ZeitgeistPaseo = /*#__PURE__*/function (_Zeitgeist) {
|
|
|
13196
13016
|
var chains = function chains() {
|
|
13197
13017
|
return {
|
|
13198
13018
|
// Polkadot chains
|
|
13019
|
+
Polkadot: new Polkadot(),
|
|
13199
13020
|
AssetHubPolkadot: new AssetHubPolkadot(),
|
|
13200
13021
|
Acala: new Acala(),
|
|
13201
13022
|
Ajuna: new Ajuna(),
|
|
@@ -13227,12 +13048,12 @@ var chains = function chains() {
|
|
|
13227
13048
|
Peaq: new Peaq(),
|
|
13228
13049
|
Xode: new Xode(),
|
|
13229
13050
|
// Kusama chains
|
|
13051
|
+
Kusama: new Kusama(),
|
|
13230
13052
|
AssetHubKusama: new AssetHubKusama(),
|
|
13231
13053
|
BridgeHubKusama: new BridgeHubKusama(),
|
|
13232
13054
|
CoretimeKusama: new CoretimeKusama(),
|
|
13233
13055
|
Encointer: new Encointer(),
|
|
13234
13056
|
Altair: new Altair(),
|
|
13235
|
-
Amplitude: new Amplitude(),
|
|
13236
13057
|
Basilisk: new Basilisk(),
|
|
13237
13058
|
BifrostKusama: new BifrostKusama(),
|
|
13238
13059
|
CrustShadow: new CrustShadow(),
|
|
@@ -13246,6 +13067,7 @@ var chains = function chains() {
|
|
|
13246
13067
|
Shiden: new Shiden(),
|
|
13247
13068
|
Zeitgeist: new Zeitgeist(),
|
|
13248
13069
|
// Westend chains
|
|
13070
|
+
Westend: new Westend(),
|
|
13249
13071
|
AssetHubWestend: new AssetHubWestend(),
|
|
13250
13072
|
BridgeHubWestend: new BridgeHubWestend(),
|
|
13251
13073
|
CollectivesWestend: new CollectivesWestend(),
|
|
@@ -13253,6 +13075,7 @@ var chains = function chains() {
|
|
|
13253
13075
|
PeopleWestend: new PeopleWestend(),
|
|
13254
13076
|
Penpal: new Penpal(),
|
|
13255
13077
|
// Paseo chains
|
|
13078
|
+
Paseo: new Paseo(),
|
|
13256
13079
|
AssetHubPaseo: new AssetHubPaseo(),
|
|
13257
13080
|
BridgeHubPaseo: new BridgeHubPaseo(),
|
|
13258
13081
|
CoretimePaseo: new CoretimePaseo(),
|
|
@@ -14242,4 +14065,4 @@ var getMoonbeamErc20Balance = /*#__PURE__*/function () {
|
|
|
14242
14065
|
};
|
|
14243
14066
|
}();
|
|
14244
14067
|
|
|
14245
|
-
export { AmountTooLowError, AssetClaimBuilder, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETH_MAINNET_CHAIN_ID, ETH_TESTNET_CHAIN_ID, FeatureTemporarilyDisabledError, GeneralBuilder, InvalidAddressError, MissingChainApiError, MissingParameterError, NoXCMSupportImplementedError, NumberFormatError, OverrideConflictError, PolkadotXcmError, PolkadotXcmExecutionError, ProviderUnavailableError, RELAY_LOCATION, RoutingResolutionError, RuntimeApiUnavailableError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertDerivationPath, assertHasId, assertHasLocation, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, constructTypeAndThenCall, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createClientCache, createClientPoolHelpers, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createId, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatAssetIdToERC20, formatUnits, getAssetBalanceInternal, getAssetReserveChain, getBalance, getBalanceInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getEthErc20Balance, getEvmPrivateKeyHex, getFailureInfo$1 as getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getMoonbeamErc20Balance, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, keyFromWs, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, throwUnsupportedCurrency, transferMoonbeamEvm, transferMoonbeamToEth,
|
|
14068
|
+
export { AmountTooLowError, AssetClaimBuilder, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETH_MAINNET_CHAIN_ID, ETH_TESTNET_CHAIN_ID, FeatureTemporarilyDisabledError, GeneralBuilder, InvalidAddressError, MissingChainApiError, MissingParameterError, NoXCMSupportImplementedError, NumberFormatError, OverrideConflictError, PolkadotXcmError, PolkadotXcmExecutionError, ProviderUnavailableError, RELAY_LOCATION, RoutingResolutionError, RuntimeApiUnavailableError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertDerivationPath, assertHasId, assertHasLocation, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, constructTypeAndThenCall, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createClientCache, createClientPoolHelpers, createDestination, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createId, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createVersionedDestination, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatAssetIdToERC20, formatUnits, getAssetBalanceInternal, getAssetReserveChain, getBalance, getBalanceInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getEthErc20Balance, getEvmPrivateKeyHex, getFailureInfo$1 as getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getMoonbeamErc20Balance, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, keyFromWs, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, throwUnsupportedCurrency, transferMoonbeamEvm, transferMoonbeamToEth, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, verifyEdOnDestination, wrapTxBypass };
|