@paraspell/sdk-core 12.3.0 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +7 -5
- package/dist/index.d.ts +89 -114
- package/dist/index.mjs +347 -481
- package/package.json +5 -5
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';
|
|
@@ -2730,7 +2730,7 @@ var ZeitgeistPaseo$1 = {
|
|
|
2730
2730
|
}
|
|
2731
2731
|
]
|
|
2732
2732
|
};
|
|
2733
|
-
var Polkadot = {
|
|
2733
|
+
var Polkadot$1 = {
|
|
2734
2734
|
name: "Polkadot Relay",
|
|
2735
2735
|
info: "polkadot",
|
|
2736
2736
|
paraId: 0,
|
|
@@ -2789,7 +2789,7 @@ var Polkadot = {
|
|
|
2789
2789
|
}
|
|
2790
2790
|
]
|
|
2791
2791
|
};
|
|
2792
|
-
var Kusama = {
|
|
2792
|
+
var Kusama$1 = {
|
|
2793
2793
|
name: "Kusama Relay",
|
|
2794
2794
|
info: "kusama",
|
|
2795
2795
|
paraId: 0,
|
|
@@ -2840,7 +2840,7 @@ var Kusama = {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
]
|
|
2842
2842
|
};
|
|
2843
|
-
var Westend = {
|
|
2843
|
+
var Westend$1 = {
|
|
2844
2844
|
name: "Westend Relay",
|
|
2845
2845
|
info: "westend",
|
|
2846
2846
|
paraId: 0,
|
|
@@ -2867,7 +2867,7 @@ var Westend = {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
]
|
|
2869
2869
|
};
|
|
2870
|
-
var Paseo = {
|
|
2870
|
+
var Paseo$1 = {
|
|
2871
2871
|
name: "Paseo Relay",
|
|
2872
2872
|
info: "paseo",
|
|
2873
2873
|
paraId: 0,
|
|
@@ -2963,10 +2963,10 @@ var configs = {
|
|
|
2963
2963
|
PAssetHub: PAssetHub$1,
|
|
2964
2964
|
PeoplePaseo: PeoplePaseo$1,
|
|
2965
2965
|
ZeitgeistPaseo: ZeitgeistPaseo$1,
|
|
2966
|
-
Polkadot: Polkadot,
|
|
2967
|
-
Kusama: Kusama,
|
|
2968
|
-
Westend: Westend,
|
|
2969
|
-
Paseo: Paseo
|
|
2966
|
+
Polkadot: Polkadot$1,
|
|
2967
|
+
Kusama: Kusama$1,
|
|
2968
|
+
Westend: Westend$1,
|
|
2969
|
+
Paseo: Paseo$1
|
|
2970
2970
|
};
|
|
2971
2971
|
|
|
2972
2972
|
var configsMap = configs;
|
|
@@ -3468,10 +3468,6 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
3468
3468
|
}, {
|
|
3469
3469
|
key: "to",
|
|
3470
3470
|
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
3471
|
return new GeneralBuilder(this.api, this.batchManager, _objectSpread2(_objectSpread2({}, this._options), {}, {
|
|
3476
3472
|
to: chain,
|
|
3477
3473
|
paraIdTo: paraIdTo
|
|
@@ -4878,6 +4874,15 @@ var validateDestination = function validateDestination(origin, destination) {
|
|
|
4878
4874
|
throw new ScenarioNotSupportedError('Origin and destination must share the same relay chain unless using a bridge.');
|
|
4879
4875
|
}
|
|
4880
4876
|
}
|
|
4877
|
+
if (isRelayChain(origin) && typeof destination === 'string' && !isExternalChain(destination)) {
|
|
4878
|
+
var chain = getChain(destination);
|
|
4879
|
+
if (!chain.isRelayToParaEnabled()) {
|
|
4880
|
+
throw new ScenarioNotSupportedError({
|
|
4881
|
+
chain: destination,
|
|
4882
|
+
scenario: 'RelayToPara'
|
|
4883
|
+
});
|
|
4884
|
+
}
|
|
4885
|
+
}
|
|
4881
4886
|
};
|
|
4882
4887
|
var validateAssetSpecifiers = function validateAssetSpecifiers(assetCheckEnabled, currency) {
|
|
4883
4888
|
if (!assetCheckEnabled && 'symbol' in currency && isSymbolSpecifier(currency.symbol)) {
|
|
@@ -5269,6 +5274,45 @@ var createBeneficiaryLocation = function createBeneficiaryLocation(_ref2) {
|
|
|
5269
5274
|
};
|
|
5270
5275
|
};
|
|
5271
5276
|
|
|
5277
|
+
var createDestination = function createDestination(version, origin, destination, chainId, junction, parents) {
|
|
5278
|
+
var isLocDestination = isTLocation(destination);
|
|
5279
|
+
var isSubBridge = !isLocDestination && !isExternalChain(destination) && isSubstrateBridge(origin, destination);
|
|
5280
|
+
if (isSubBridge) {
|
|
5281
|
+
return {
|
|
5282
|
+
parents: Parents.TWO,
|
|
5283
|
+
interior: {
|
|
5284
|
+
X2: [{
|
|
5285
|
+
GlobalConsensus: getRelayChainOf(destination)
|
|
5286
|
+
}, {
|
|
5287
|
+
Parachain: chainId
|
|
5288
|
+
}]
|
|
5289
|
+
}
|
|
5290
|
+
};
|
|
5291
|
+
}
|
|
5292
|
+
var isSb = !isLocDestination && isSnowbridge(origin, destination);
|
|
5293
|
+
if (isSb) {
|
|
5294
|
+
return {
|
|
5295
|
+
parents: Parents.TWO,
|
|
5296
|
+
interior: {
|
|
5297
|
+
X1: [getEthereumJunction(origin)]
|
|
5298
|
+
}
|
|
5299
|
+
};
|
|
5300
|
+
}
|
|
5301
|
+
var scenario = resolveScenario(origin, destination);
|
|
5302
|
+
var parentsResolved = parents !== null && parents !== void 0 ? parents : scenario === 'RelayToPara' ? Parents.ZERO : Parents.ONE;
|
|
5303
|
+
var interior = scenario === 'ParaToRelay' ? 'Here' : createX1Payload(version, junction !== null && junction !== void 0 ? junction : {
|
|
5304
|
+
Parachain: chainId
|
|
5305
|
+
});
|
|
5306
|
+
return isLocDestination ? destination : {
|
|
5307
|
+
parents: parentsResolved,
|
|
5308
|
+
interior: interior
|
|
5309
|
+
};
|
|
5310
|
+
};
|
|
5311
|
+
var createVersionedDestination = function createVersionedDestination(version, origin, destination, chainId, junction, parents) {
|
|
5312
|
+
var plainDestination = createDestination(version, origin, destination, chainId, junction, parents);
|
|
5313
|
+
return addXcmVersionHeader(plainDestination, version);
|
|
5314
|
+
};
|
|
5315
|
+
|
|
5272
5316
|
var getChainLocation = function getChainLocation(chain, destChain) {
|
|
5273
5317
|
var fromRelay = isRelayChain(chain);
|
|
5274
5318
|
var toRelay = isRelayChain(destChain);
|
|
@@ -7342,92 +7386,9 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
|
|
|
7342
7386
|
};
|
|
7343
7387
|
}();
|
|
7344
7388
|
|
|
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
7389
|
var send = /*#__PURE__*/function () {
|
|
7429
7390
|
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,
|
|
7391
|
+
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
7392
|
return _regenerator().w(function (_context) {
|
|
7432
7393
|
while (1) switch (_context.n) {
|
|
7433
7394
|
case 0:
|
|
@@ -7446,77 +7407,10 @@ var send = /*#__PURE__*/function () {
|
|
|
7446
7407
|
finalAmount = !Array.isArray(currency) && amount < MIN_AMOUNT ? MIN_AMOUNT : amount;
|
|
7447
7408
|
originVersion = getChainVersion(origin);
|
|
7448
7409
|
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
7410
|
overriddenAsset = resolveOverriddenAsset(options, isBridge, assetCheckEnabled, resolvedFeeAsset);
|
|
7517
|
-
_context.n =
|
|
7411
|
+
_context.n = 1;
|
|
7518
7412
|
return api.init(origin, TX_CLIENT_TIMEOUT_MS);
|
|
7519
|
-
case
|
|
7413
|
+
case 1:
|
|
7520
7414
|
// In case asset check is disabled, we create asset object from currency symbol
|
|
7521
7415
|
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
7522
7416
|
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
@@ -9128,15 +9022,15 @@ var supportsXTransfer = function supportsXTransfer(obj) {
|
|
|
9128
9022
|
var supportsPolkadotXCM = function supportsPolkadotXCM(obj) {
|
|
9129
9023
|
return _typeof(obj) === 'object' && obj !== null && 'transferPolkadotXCM' in obj;
|
|
9130
9024
|
};
|
|
9131
|
-
var
|
|
9132
|
-
function
|
|
9133
|
-
_classCallCheck(this,
|
|
9025
|
+
var Chain = /*#__PURE__*/function () {
|
|
9026
|
+
function Chain(chain, info, ecosystem, version) {
|
|
9027
|
+
_classCallCheck(this, Chain);
|
|
9134
9028
|
this._info = info;
|
|
9135
9029
|
this._ecosystem = ecosystem;
|
|
9136
9030
|
this._chain = chain;
|
|
9137
9031
|
this._version = version;
|
|
9138
9032
|
}
|
|
9139
|
-
return _createClass(
|
|
9033
|
+
return _createClass(Chain, [{
|
|
9140
9034
|
key: "info",
|
|
9141
9035
|
get: function get() {
|
|
9142
9036
|
return this._info;
|
|
@@ -9165,6 +9059,11 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9165
9059
|
if (isExternalAsset) return false;
|
|
9166
9060
|
return !this.shouldUseNativeAssetTeleport(options) || !supportsPolkadotXCM(this);
|
|
9167
9061
|
}
|
|
9062
|
+
}, {
|
|
9063
|
+
key: "isRelayToParaEnabled",
|
|
9064
|
+
value: function isRelayToParaEnabled() {
|
|
9065
|
+
return true;
|
|
9066
|
+
}
|
|
9168
9067
|
}, {
|
|
9169
9068
|
key: "transfer",
|
|
9170
9069
|
value: function () {
|
|
@@ -9191,7 +9090,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9191
9090
|
isMythAsset = isAssetXcEqual(mythAsset, asset);
|
|
9192
9091
|
assetNeedsTypeThen = isRelayAsset || isMythAsset;
|
|
9193
9092
|
_context.n = 2;
|
|
9194
|
-
return api.hasMethod('PolkadotXcm', 'transfer_assets_using_type_and_then');
|
|
9093
|
+
return api.hasMethod(isRelayChain(this.chain) ? 'XcmPallet' : 'PolkadotXcm', 'transfer_assets_using_type_and_then');
|
|
9195
9094
|
case 2:
|
|
9196
9095
|
supportsTypeThen = _context.v;
|
|
9197
9096
|
if (!(assetNeedsTypeThen && !supportsTypeThen)) {
|
|
@@ -9248,7 +9147,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9248
9147
|
}));
|
|
9249
9148
|
case 6:
|
|
9250
9149
|
if (!(supportsPolkadotXCM(this) || useTypeAndThen)) {
|
|
9251
|
-
_context.n =
|
|
9150
|
+
_context.n = 11;
|
|
9252
9151
|
break;
|
|
9253
9152
|
}
|
|
9254
9153
|
options = {
|
|
@@ -9289,12 +9188,6 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9289
9188
|
}
|
|
9290
9189
|
throw new TransferToAhNotSupported('Native asset transfers to or from AssetHub are temporarily disabled');
|
|
9291
9190
|
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
9191
|
isAHOrigin = this.chain.includes('AssetHub');
|
|
9299
9192
|
isAHDest = !isTLocation(destination) && destination.includes('AssetHub'); // Handle common cases
|
|
9300
9193
|
isExternalAsset = ((_asset$location2 = asset.location) === null || _asset$location2 === void 0 ? void 0 : _asset$location2.parents) === Parents.TWO;
|
|
@@ -9302,30 +9195,30 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9302
9195
|
isExternalAssetViaAh = isExternalAsset && !isAHOrigin && !isAHDest && !isEthDest && !feeAsset; // External asset - Any origin to AHP - DestinationReserve - one DepositAsset instruction
|
|
9303
9196
|
isExternalAssetToAh = isExternalAsset && isAHDest && !isAHOrigin && !isEthDest && !feeAsset;
|
|
9304
9197
|
if (!(isExternalAssetViaAh || isExternalAssetToAh || useTypeAndThen)) {
|
|
9305
|
-
_context.n =
|
|
9198
|
+
_context.n = 10;
|
|
9306
9199
|
break;
|
|
9307
9200
|
}
|
|
9308
9201
|
if (!(useTypeAndThen && supportsPolkadotXCM(this) && !isSubBridge)) {
|
|
9309
|
-
_context.n =
|
|
9202
|
+
_context.n = 8;
|
|
9310
9203
|
break;
|
|
9311
9204
|
}
|
|
9312
|
-
_context.n =
|
|
9205
|
+
_context.n = 8;
|
|
9313
9206
|
return this.transferPolkadotXCM(options);
|
|
9314
|
-
case
|
|
9315
|
-
_context.n =
|
|
9207
|
+
case 8:
|
|
9208
|
+
_context.n = 9;
|
|
9316
9209
|
return createTypeAndThenCall(options);
|
|
9317
|
-
case
|
|
9210
|
+
case 9:
|
|
9318
9211
|
call = _context.v;
|
|
9319
9212
|
return _context.a(2, api.deserializeExtrinsics(call));
|
|
9320
|
-
case
|
|
9213
|
+
case 10:
|
|
9321
9214
|
if (!supportsPolkadotXCM(this)) {
|
|
9322
|
-
_context.n =
|
|
9215
|
+
_context.n = 11;
|
|
9323
9216
|
break;
|
|
9324
9217
|
}
|
|
9325
9218
|
return _context.a(2, this.transferPolkadotXCM(options));
|
|
9326
|
-
case
|
|
9219
|
+
case 11:
|
|
9327
9220
|
throw new NoXCMSupportImplementedError(this._chain);
|
|
9328
|
-
case
|
|
9221
|
+
case 12:
|
|
9329
9222
|
return _context.a(2);
|
|
9330
9223
|
}
|
|
9331
9224
|
}, _callee, this);
|
|
@@ -9398,52 +9291,6 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9398
9291
|
}, null);
|
|
9399
9292
|
return Boolean(isNativeAsset) && Boolean(isRegisteredOnAh) && (isAHPOrigin || isAHPDest);
|
|
9400
9293
|
}
|
|
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
9294
|
}, {
|
|
9448
9295
|
key: "createAsset",
|
|
9449
9296
|
value: function createAsset$1(asset, version) {
|
|
@@ -9460,20 +9307,20 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9460
9307
|
}, {
|
|
9461
9308
|
key: "transferLocal",
|
|
9462
9309
|
value: function () {
|
|
9463
|
-
var _transferLocal = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
9310
|
+
var _transferLocal = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
9464
9311
|
var api, asset, feeAsset, address, senderAddress, isAmountAll, validatedOptions, isNativeAsset, balance, localOptions;
|
|
9465
|
-
return _regenerator().w(function (
|
|
9466
|
-
while (1) switch (
|
|
9312
|
+
return _regenerator().w(function (_context2) {
|
|
9313
|
+
while (1) switch (_context2.n) {
|
|
9467
9314
|
case 0:
|
|
9468
9315
|
api = options.api, asset = options.assetInfo, feeAsset = options.feeAsset, address = options.address, senderAddress = options.senderAddress, isAmountAll = options.isAmountAll;
|
|
9469
9316
|
if (!isTLocation(address)) {
|
|
9470
|
-
|
|
9317
|
+
_context2.n = 1;
|
|
9471
9318
|
break;
|
|
9472
9319
|
}
|
|
9473
9320
|
throw new InvalidAddressError('Location address is not supported for local transfers');
|
|
9474
9321
|
case 1:
|
|
9475
9322
|
if (!feeAsset) {
|
|
9476
|
-
|
|
9323
|
+
_context2.n = 2;
|
|
9477
9324
|
break;
|
|
9478
9325
|
}
|
|
9479
9326
|
throw new UnsupportedOperationError('Fee asset is not supported for local transfers');
|
|
@@ -9483,11 +9330,11 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9483
9330
|
});
|
|
9484
9331
|
isNativeAsset = asset.symbol === this.getNativeAssetSymbol() && asset.isNative;
|
|
9485
9332
|
if (!isAmountAll) {
|
|
9486
|
-
|
|
9333
|
+
_context2.n = 4;
|
|
9487
9334
|
break;
|
|
9488
9335
|
}
|
|
9489
9336
|
assertSenderAddress(senderAddress);
|
|
9490
|
-
|
|
9337
|
+
_context2.n = 3;
|
|
9491
9338
|
return getAssetBalanceInternal({
|
|
9492
9339
|
api: api,
|
|
9493
9340
|
chain: this.chain,
|
|
@@ -9495,8 +9342,8 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9495
9342
|
asset: asset
|
|
9496
9343
|
});
|
|
9497
9344
|
case 3:
|
|
9498
|
-
balance =
|
|
9499
|
-
|
|
9345
|
+
balance = _context2.v;
|
|
9346
|
+
_context2.n = 5;
|
|
9500
9347
|
break;
|
|
9501
9348
|
case 4:
|
|
9502
9349
|
balance = MIN_AMOUNT;
|
|
@@ -9505,18 +9352,18 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9505
9352
|
balance: balance
|
|
9506
9353
|
});
|
|
9507
9354
|
if (!isNativeAsset) {
|
|
9508
|
-
|
|
9355
|
+
_context2.n = 6;
|
|
9509
9356
|
break;
|
|
9510
9357
|
}
|
|
9511
|
-
return
|
|
9358
|
+
return _context2.a(2, this.transferLocalNativeAsset(localOptions));
|
|
9512
9359
|
case 6:
|
|
9513
|
-
return
|
|
9360
|
+
return _context2.a(2, this.transferLocalNonNativeAsset(localOptions));
|
|
9514
9361
|
case 7:
|
|
9515
|
-
return
|
|
9362
|
+
return _context2.a(2);
|
|
9516
9363
|
}
|
|
9517
|
-
},
|
|
9364
|
+
}, _callee2, this);
|
|
9518
9365
|
}));
|
|
9519
|
-
function transferLocal(
|
|
9366
|
+
function transferLocal(_x2) {
|
|
9520
9367
|
return _transferLocal.apply(this, arguments);
|
|
9521
9368
|
}
|
|
9522
9369
|
return transferLocal;
|
|
@@ -9586,7 +9433,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9586
9433
|
}, {
|
|
9587
9434
|
key: "transferToEthereum",
|
|
9588
9435
|
value: function () {
|
|
9589
|
-
var _transferToEthereum = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
9436
|
+
var _transferToEthereum = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(input) {
|
|
9590
9437
|
var _feeAsset$location;
|
|
9591
9438
|
var useOnlyDepositInstruction,
|
|
9592
9439
|
api,
|
|
@@ -9611,18 +9458,18 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9611
9458
|
messageId,
|
|
9612
9459
|
hopDestination,
|
|
9613
9460
|
call,
|
|
9614
|
-
|
|
9615
|
-
return _regenerator().w(function (
|
|
9616
|
-
while (1) switch (
|
|
9461
|
+
_args3 = arguments;
|
|
9462
|
+
return _regenerator().w(function (_context3) {
|
|
9463
|
+
while (1) switch (_context3.n) {
|
|
9617
9464
|
case 0:
|
|
9618
|
-
useOnlyDepositInstruction =
|
|
9465
|
+
useOnlyDepositInstruction = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : false;
|
|
9619
9466
|
api = input.api, asset = input.assetInfo, version = input.version, address = input.address, senderAddress = input.senderAddress, feeAsset = input.feeAssetInfo;
|
|
9620
|
-
|
|
9467
|
+
_context3.n = 1;
|
|
9621
9468
|
return getBridgeStatus(api.clone());
|
|
9622
9469
|
case 1:
|
|
9623
|
-
bridgeStatus =
|
|
9470
|
+
bridgeStatus = _context3.v;
|
|
9624
9471
|
if (!(bridgeStatus !== 'Normal')) {
|
|
9625
|
-
|
|
9472
|
+
_context3.n = 2;
|
|
9626
9473
|
break;
|
|
9627
9474
|
}
|
|
9628
9475
|
throw new BridgeHaltedError();
|
|
@@ -9631,14 +9478,14 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9631
9478
|
assertAddressIsString(address);
|
|
9632
9479
|
assertSenderAddress(senderAddress);
|
|
9633
9480
|
ethAsset = createAsset(version, asset.amount, asset.location);
|
|
9634
|
-
|
|
9481
|
+
_context3.n = 3;
|
|
9635
9482
|
return api.createApiForChain('AssetHubPolkadot');
|
|
9636
9483
|
case 3:
|
|
9637
|
-
ahApi =
|
|
9638
|
-
|
|
9484
|
+
ahApi = _context3.v;
|
|
9485
|
+
_context3.n = 4;
|
|
9639
9486
|
return getParaEthTransferFees(ahApi);
|
|
9640
9487
|
case 4:
|
|
9641
|
-
_yield$getParaEthTran =
|
|
9488
|
+
_yield$getParaEthTran = _context3.v;
|
|
9642
9489
|
_yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
|
|
9643
9490
|
bridgeFee = _yield$getParaEthTran2[0];
|
|
9644
9491
|
executionFee = _yield$getParaEthTran2[1];
|
|
@@ -9650,7 +9497,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9650
9497
|
systemAssetInfo = findNativeAssetInfoOrThrow(getRelayChainOf(this.chain));
|
|
9651
9498
|
shouldIncludeFeeAsset = feeAsset && !isAssetEqual(feeAsset, asset) || !isAssetEqual(asset, systemAssetInfo);
|
|
9652
9499
|
if (!useOnlyDepositInstruction) {
|
|
9653
|
-
|
|
9500
|
+
_context3.n = 5;
|
|
9654
9501
|
break;
|
|
9655
9502
|
}
|
|
9656
9503
|
customXcmOnDest = addXcmVersionHeader([{
|
|
@@ -9667,14 +9514,14 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9667
9514
|
})
|
|
9668
9515
|
}
|
|
9669
9516
|
}], version);
|
|
9670
|
-
|
|
9517
|
+
_context3.n = 7;
|
|
9671
9518
|
break;
|
|
9672
9519
|
case 5:
|
|
9673
9520
|
assertHasId(ethAssetInfo);
|
|
9674
|
-
|
|
9521
|
+
_context3.n = 6;
|
|
9675
9522
|
return generateMessageId(api, senderAddress, getParaId(this.chain), ethAssetInfo.assetId, address, asset.amount);
|
|
9676
9523
|
case 6:
|
|
9677
|
-
messageId =
|
|
9524
|
+
messageId = _context3.v;
|
|
9678
9525
|
customXcmOnDest = createCustomXcmOnDest(input, this.chain, messageId, ethAssetInfo);
|
|
9679
9526
|
case 7:
|
|
9680
9527
|
hopDestination = 'AssetHubPolkadot';
|
|
@@ -9691,11 +9538,11 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9691
9538
|
weight_limit: 'Unlimited'
|
|
9692
9539
|
}
|
|
9693
9540
|
};
|
|
9694
|
-
return
|
|
9541
|
+
return _context3.a(2, api.deserializeExtrinsics(call));
|
|
9695
9542
|
}
|
|
9696
|
-
},
|
|
9543
|
+
}, _callee3, this);
|
|
9697
9544
|
}));
|
|
9698
|
-
function transferToEthereum(
|
|
9545
|
+
function transferToEthereum(_x3) {
|
|
9699
9546
|
return _transferToEthereum.apply(this, arguments);
|
|
9700
9547
|
}
|
|
9701
9548
|
return transferToEthereum;
|
|
@@ -9714,60 +9561,60 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9714
9561
|
}, {
|
|
9715
9562
|
key: "getBalanceForeign",
|
|
9716
9563
|
value: function () {
|
|
9717
|
-
var _getBalanceForeign = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
9564
|
+
var _getBalanceForeign = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(api, address, asset) {
|
|
9718
9565
|
var pallets, lastError, customCurrencyId, _iterator, _step, pallet, instance, _t, _t2;
|
|
9719
|
-
return _regenerator().w(function (
|
|
9720
|
-
while (1) switch (
|
|
9566
|
+
return _regenerator().w(function (_context4) {
|
|
9567
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
9721
9568
|
case 0:
|
|
9722
9569
|
pallets = getOtherAssetsPallets(this.chain);
|
|
9723
9570
|
if (!(pallets.length === 0)) {
|
|
9724
|
-
|
|
9571
|
+
_context4.n = 1;
|
|
9725
9572
|
break;
|
|
9726
9573
|
}
|
|
9727
9574
|
throw new RoutingResolutionError("No foreign asset pallets found for ".concat(this.chain));
|
|
9728
9575
|
case 1:
|
|
9729
9576
|
customCurrencyId = this.getCustomCurrencyId(asset);
|
|
9730
9577
|
_iterator = _createForOfIteratorHelper(pallets);
|
|
9731
|
-
|
|
9578
|
+
_context4.p = 2;
|
|
9732
9579
|
_iterator.s();
|
|
9733
9580
|
case 3:
|
|
9734
9581
|
if ((_step = _iterator.n()).done) {
|
|
9735
|
-
|
|
9582
|
+
_context4.n = 8;
|
|
9736
9583
|
break;
|
|
9737
9584
|
}
|
|
9738
9585
|
pallet = _step.value;
|
|
9739
9586
|
instance = getPalletInstance(pallet);
|
|
9740
|
-
|
|
9741
|
-
|
|
9587
|
+
_context4.p = 4;
|
|
9588
|
+
_context4.n = 5;
|
|
9742
9589
|
return instance.getBalance(api, address, asset, customCurrencyId);
|
|
9743
9590
|
case 5:
|
|
9744
|
-
return
|
|
9591
|
+
return _context4.a(2, _context4.v);
|
|
9745
9592
|
case 6:
|
|
9746
|
-
|
|
9747
|
-
_t =
|
|
9593
|
+
_context4.p = 6;
|
|
9594
|
+
_t = _context4.v;
|
|
9748
9595
|
lastError = _t;
|
|
9749
9596
|
case 7:
|
|
9750
|
-
|
|
9597
|
+
_context4.n = 3;
|
|
9751
9598
|
break;
|
|
9752
9599
|
case 8:
|
|
9753
|
-
|
|
9600
|
+
_context4.n = 10;
|
|
9754
9601
|
break;
|
|
9755
9602
|
case 9:
|
|
9756
|
-
|
|
9757
|
-
_t2 =
|
|
9603
|
+
_context4.p = 9;
|
|
9604
|
+
_t2 = _context4.v;
|
|
9758
9605
|
_iterator.e(_t2);
|
|
9759
9606
|
case 10:
|
|
9760
|
-
|
|
9607
|
+
_context4.p = 10;
|
|
9761
9608
|
_iterator.f();
|
|
9762
|
-
return
|
|
9609
|
+
return _context4.f(10);
|
|
9763
9610
|
case 11:
|
|
9764
9611
|
throw lastError;
|
|
9765
9612
|
case 12:
|
|
9766
|
-
return
|
|
9613
|
+
return _context4.a(2);
|
|
9767
9614
|
}
|
|
9768
|
-
},
|
|
9615
|
+
}, _callee4, this, [[4, 6], [2, 9, 10, 11]]);
|
|
9769
9616
|
}));
|
|
9770
|
-
function getBalanceForeign(_x5, _x6
|
|
9617
|
+
function getBalanceForeign(_x4, _x5, _x6) {
|
|
9771
9618
|
return _getBalanceForeign.apply(this, arguments);
|
|
9772
9619
|
}
|
|
9773
9620
|
return getBalanceForeign;
|
|
@@ -9782,7 +9629,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
9782
9629
|
}]);
|
|
9783
9630
|
}();
|
|
9784
9631
|
|
|
9785
|
-
var Acala = /*#__PURE__*/function (
|
|
9632
|
+
var Acala = /*#__PURE__*/function (_Chain) {
|
|
9786
9633
|
function Acala() {
|
|
9787
9634
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Acala';
|
|
9788
9635
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'acala';
|
|
@@ -9791,19 +9638,16 @@ var Acala = /*#__PURE__*/function (_Parachain) {
|
|
|
9791
9638
|
_classCallCheck(this, Acala);
|
|
9792
9639
|
return _callSuper(this, Acala, [chain, info, ecosystem, version]);
|
|
9793
9640
|
}
|
|
9794
|
-
_inherits(Acala,
|
|
9641
|
+
_inherits(Acala, _Chain);
|
|
9795
9642
|
return _createClass(Acala, [{
|
|
9796
9643
|
key: "transferPolkadotXCM",
|
|
9797
9644
|
value: function transferPolkadotXCM(input) {
|
|
9798
9645
|
return transferPolkadotXcm(input);
|
|
9799
9646
|
}
|
|
9800
9647
|
}, {
|
|
9801
|
-
key: "
|
|
9802
|
-
value: function
|
|
9803
|
-
|
|
9804
|
-
chain: this.chain,
|
|
9805
|
-
scenario: 'RelayToPara'
|
|
9806
|
-
});
|
|
9648
|
+
key: "isRelayToParaEnabled",
|
|
9649
|
+
value: function isRelayToParaEnabled() {
|
|
9650
|
+
return false;
|
|
9807
9651
|
}
|
|
9808
9652
|
}, {
|
|
9809
9653
|
key: "transferLocalNativeAsset",
|
|
@@ -9893,9 +9737,9 @@ var Acala = /*#__PURE__*/function (_Parachain) {
|
|
|
9893
9737
|
return _superPropGet(Acala, "getBalance", this, 3)([api, address, asset]);
|
|
9894
9738
|
}
|
|
9895
9739
|
}]);
|
|
9896
|
-
}(
|
|
9740
|
+
}(Chain);
|
|
9897
9741
|
|
|
9898
|
-
var Ajuna = /*#__PURE__*/function (
|
|
9742
|
+
var Ajuna = /*#__PURE__*/function (_Chain) {
|
|
9899
9743
|
function Ajuna() {
|
|
9900
9744
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Ajuna';
|
|
9901
9745
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ajuna';
|
|
@@ -9904,19 +9748,16 @@ var Ajuna = /*#__PURE__*/function (_Parachain) {
|
|
|
9904
9748
|
_classCallCheck(this, Ajuna);
|
|
9905
9749
|
return _callSuper(this, Ajuna, [chain, info, ecosystem, version]);
|
|
9906
9750
|
}
|
|
9907
|
-
_inherits(Ajuna,
|
|
9751
|
+
_inherits(Ajuna, _Chain);
|
|
9908
9752
|
return _createClass(Ajuna, [{
|
|
9909
9753
|
key: "transferPolkadotXCM",
|
|
9910
9754
|
value: function transferPolkadotXCM(input) {
|
|
9911
9755
|
return transferPolkadotXcm(input);
|
|
9912
9756
|
}
|
|
9913
9757
|
}, {
|
|
9914
|
-
key: "
|
|
9915
|
-
value: function
|
|
9916
|
-
|
|
9917
|
-
chain: this.chain,
|
|
9918
|
-
scenario: 'RelayToPara'
|
|
9919
|
-
});
|
|
9758
|
+
key: "isRelayToParaEnabled",
|
|
9759
|
+
value: function isRelayToParaEnabled() {
|
|
9760
|
+
return false;
|
|
9920
9761
|
}
|
|
9921
9762
|
}, {
|
|
9922
9763
|
key: "transferLocalNonNativeAsset",
|
|
@@ -9952,7 +9793,7 @@ var Ajuna = /*#__PURE__*/function (_Parachain) {
|
|
|
9952
9793
|
});
|
|
9953
9794
|
}
|
|
9954
9795
|
}]);
|
|
9955
|
-
}(
|
|
9796
|
+
}(Chain);
|
|
9956
9797
|
|
|
9957
9798
|
var AjunaPaseo = /*#__PURE__*/function (_Ajuna) {
|
|
9958
9799
|
function AjunaPaseo() {
|
|
@@ -9963,12 +9804,12 @@ var AjunaPaseo = /*#__PURE__*/function (_Ajuna) {
|
|
|
9963
9804
|
return _createClass(AjunaPaseo);
|
|
9964
9805
|
}(Ajuna);
|
|
9965
9806
|
|
|
9966
|
-
var Altair = /*#__PURE__*/function (
|
|
9807
|
+
var Altair = /*#__PURE__*/function (_Chain) {
|
|
9967
9808
|
function Altair() {
|
|
9968
9809
|
_classCallCheck(this, Altair);
|
|
9969
9810
|
return _callSuper(this, Altair, ['Altair', 'altair', 'Kusama', Version.V4]);
|
|
9970
9811
|
}
|
|
9971
|
-
_inherits(Altair,
|
|
9812
|
+
_inherits(Altair, _Chain);
|
|
9972
9813
|
return _createClass(Altair, [{
|
|
9973
9814
|
key: "getCustomCurrencyId",
|
|
9974
9815
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -10018,14 +9859,14 @@ var Altair = /*#__PURE__*/function (_Parachain) {
|
|
|
10018
9859
|
});
|
|
10019
9860
|
}
|
|
10020
9861
|
}]);
|
|
10021
|
-
}(
|
|
9862
|
+
}(Chain);
|
|
10022
9863
|
|
|
10023
|
-
var Amplitude = /*#__PURE__*/function (
|
|
9864
|
+
var Amplitude = /*#__PURE__*/function (_Chain) {
|
|
10024
9865
|
function Amplitude() {
|
|
10025
9866
|
_classCallCheck(this, Amplitude);
|
|
10026
9867
|
return _callSuper(this, Amplitude, ['Amplitude', 'amplitude', 'Kusama', Version.V3]);
|
|
10027
9868
|
}
|
|
10028
|
-
_inherits(Amplitude,
|
|
9869
|
+
_inherits(Amplitude, _Chain);
|
|
10029
9870
|
return _createClass(Amplitude, [{
|
|
10030
9871
|
key: "getCustomCurrencyId",
|
|
10031
9872
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -10048,14 +9889,14 @@ var Amplitude = /*#__PURE__*/function (_Parachain) {
|
|
|
10048
9889
|
return transferXTokens(input, currencySelection);
|
|
10049
9890
|
}
|
|
10050
9891
|
}]);
|
|
10051
|
-
}(
|
|
9892
|
+
}(Chain);
|
|
10052
9893
|
|
|
10053
|
-
var AssetHubKusama = /*#__PURE__*/function (
|
|
9894
|
+
var AssetHubKusama = /*#__PURE__*/function (_Chain) {
|
|
10054
9895
|
function AssetHubKusama() {
|
|
10055
9896
|
_classCallCheck(this, AssetHubKusama);
|
|
10056
9897
|
return _callSuper(this, AssetHubKusama, ['AssetHubKusama', 'KusamaAssetHub', 'Kusama', Version.V5]);
|
|
10057
9898
|
}
|
|
10058
|
-
_inherits(AssetHubKusama,
|
|
9899
|
+
_inherits(AssetHubKusama, _Chain);
|
|
10059
9900
|
return _createClass(AssetHubKusama, [{
|
|
10060
9901
|
key: "transferPolkadotXCM",
|
|
10061
9902
|
value: function transferPolkadotXCM(input) {
|
|
@@ -10077,7 +9918,7 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
10077
9918
|
return getChain('AssetHubPolkadot').getBalanceForeign(api, address, asset);
|
|
10078
9919
|
}
|
|
10079
9920
|
}]);
|
|
10080
|
-
}(
|
|
9921
|
+
}(Chain);
|
|
10081
9922
|
|
|
10082
9923
|
var abstractDecimals = function abstractDecimals(amount, decimals, api) {
|
|
10083
9924
|
var config = api.getConfig();
|
|
@@ -10980,7 +10821,7 @@ var throwUnsupportedCurrency = function throwUnsupportedCurrency(currency, chain
|
|
|
10980
10821
|
throw new InvalidCurrencyError("".concat(isDestination ? 'Destination' : 'Origin', " chain ").concat(chain, " does not support currency ").concat(JSON.stringify(currency, replaceBigInt), "."));
|
|
10981
10822
|
};
|
|
10982
10823
|
|
|
10983
|
-
var AssetHubPolkadot = /*#__PURE__*/function (
|
|
10824
|
+
var AssetHubPolkadot = /*#__PURE__*/function (_Chain) {
|
|
10984
10825
|
function AssetHubPolkadot() {
|
|
10985
10826
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'AssetHubPolkadot';
|
|
10986
10827
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'PolkadotAssetHub';
|
|
@@ -10989,7 +10830,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
10989
10830
|
_classCallCheck(this, AssetHubPolkadot);
|
|
10990
10831
|
return _callSuper(this, AssetHubPolkadot, [chain, info, ecosystem, version]);
|
|
10991
10832
|
}
|
|
10992
|
-
_inherits(AssetHubPolkadot,
|
|
10833
|
+
_inherits(AssetHubPolkadot, _Chain);
|
|
10993
10834
|
return _createClass(AssetHubPolkadot, [{
|
|
10994
10835
|
key: "handleEthBridgeNativeTransfer",
|
|
10995
10836
|
value: function () {
|
|
@@ -11158,7 +10999,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11158
10999
|
return getPalletInstance('ForeignAssets').getBalance(api, address, asset);
|
|
11159
11000
|
}
|
|
11160
11001
|
}]);
|
|
11161
|
-
}(
|
|
11002
|
+
}(Chain);
|
|
11162
11003
|
|
|
11163
11004
|
var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
11164
11005
|
function AssetHubPaseo() {
|
|
@@ -11178,7 +11019,7 @@ var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
11178
11019
|
return _createClass(AssetHubWestend);
|
|
11179
11020
|
}(AssetHubPolkadot);
|
|
11180
11021
|
|
|
11181
|
-
var Astar = /*#__PURE__*/function (
|
|
11022
|
+
var Astar = /*#__PURE__*/function (_Chain) {
|
|
11182
11023
|
function Astar() {
|
|
11183
11024
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Astar';
|
|
11184
11025
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'astar';
|
|
@@ -11187,19 +11028,16 @@ var Astar = /*#__PURE__*/function (_Parachain) {
|
|
|
11187
11028
|
_classCallCheck(this, Astar);
|
|
11188
11029
|
return _callSuper(this, Astar, [chain, info, ecosystem, version]);
|
|
11189
11030
|
}
|
|
11190
|
-
_inherits(Astar,
|
|
11031
|
+
_inherits(Astar, _Chain);
|
|
11191
11032
|
return _createClass(Astar, [{
|
|
11192
11033
|
key: "transferPolkadotXCM",
|
|
11193
11034
|
value: function transferPolkadotXCM(input) {
|
|
11194
11035
|
return transferPolkadotXcm(input, 'transfer_assets_using_type_and_then');
|
|
11195
11036
|
}
|
|
11196
11037
|
}, {
|
|
11197
|
-
key: "
|
|
11198
|
-
value: function
|
|
11199
|
-
|
|
11200
|
-
chain: this.chain,
|
|
11201
|
-
scenario: 'RelayToPara'
|
|
11202
|
-
});
|
|
11038
|
+
key: "isRelayToParaEnabled",
|
|
11039
|
+
value: function isRelayToParaEnabled() {
|
|
11040
|
+
return false;
|
|
11203
11041
|
}
|
|
11204
11042
|
}, {
|
|
11205
11043
|
key: "transferLocalNonNativeAsset",
|
|
@@ -11235,9 +11073,9 @@ var Astar = /*#__PURE__*/function (_Parachain) {
|
|
|
11235
11073
|
});
|
|
11236
11074
|
}
|
|
11237
11075
|
}]);
|
|
11238
|
-
}(
|
|
11076
|
+
}(Chain);
|
|
11239
11077
|
|
|
11240
|
-
var Hydration = /*#__PURE__*/function (
|
|
11078
|
+
var Hydration = /*#__PURE__*/function (_Chain) {
|
|
11241
11079
|
function Hydration() {
|
|
11242
11080
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Hydration';
|
|
11243
11081
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hydradx';
|
|
@@ -11246,7 +11084,7 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
|
|
|
11246
11084
|
_classCallCheck(this, Hydration);
|
|
11247
11085
|
return _callSuper(this, Hydration, [chain, info, ecosystem, version]);
|
|
11248
11086
|
}
|
|
11249
|
-
_inherits(Hydration,
|
|
11087
|
+
_inherits(Hydration, _Chain);
|
|
11250
11088
|
return _createClass(Hydration, [{
|
|
11251
11089
|
key: "transferPolkadotXCM",
|
|
11252
11090
|
value: function () {
|
|
@@ -11374,7 +11212,7 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
|
|
|
11374
11212
|
});
|
|
11375
11213
|
}
|
|
11376
11214
|
}]);
|
|
11377
|
-
}(
|
|
11215
|
+
}(Chain);
|
|
11378
11216
|
|
|
11379
11217
|
var Basilisk = /*#__PURE__*/function (_Hydration) {
|
|
11380
11218
|
function Basilisk() {
|
|
@@ -11390,7 +11228,7 @@ var Basilisk = /*#__PURE__*/function (_Hydration) {
|
|
|
11390
11228
|
}]);
|
|
11391
11229
|
}(Hydration);
|
|
11392
11230
|
|
|
11393
|
-
var BifrostPolkadot = /*#__PURE__*/function (
|
|
11231
|
+
var BifrostPolkadot = /*#__PURE__*/function (_Chain) {
|
|
11394
11232
|
function BifrostPolkadot() {
|
|
11395
11233
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BifrostPolkadot';
|
|
11396
11234
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'bifrost';
|
|
@@ -11399,7 +11237,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11399
11237
|
_classCallCheck(this, BifrostPolkadot);
|
|
11400
11238
|
return _callSuper(this, BifrostPolkadot, [chain, info, ecosystem, version]);
|
|
11401
11239
|
}
|
|
11402
|
-
_inherits(BifrostPolkadot,
|
|
11240
|
+
_inherits(BifrostPolkadot, _Chain);
|
|
11403
11241
|
return _createClass(BifrostPolkadot, [{
|
|
11404
11242
|
key: "getCustomCurrencyId",
|
|
11405
11243
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -11472,7 +11310,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11472
11310
|
});
|
|
11473
11311
|
}
|
|
11474
11312
|
}]);
|
|
11475
|
-
}(
|
|
11313
|
+
}(Chain);
|
|
11476
11314
|
|
|
11477
11315
|
var BifrostKusama = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
11478
11316
|
function BifrostKusama() {
|
|
@@ -11492,12 +11330,12 @@ var BifrostPaseo = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
|
11492
11330
|
return _createClass(BifrostPaseo);
|
|
11493
11331
|
}(BifrostPolkadot);
|
|
11494
11332
|
|
|
11495
|
-
var BridgeHubKusama = /*#__PURE__*/function (
|
|
11333
|
+
var BridgeHubKusama = /*#__PURE__*/function (_Chain) {
|
|
11496
11334
|
function BridgeHubKusama() {
|
|
11497
11335
|
_classCallCheck(this, BridgeHubKusama);
|
|
11498
11336
|
return _callSuper(this, BridgeHubKusama, ['BridgeHubKusama', 'kusamaBridgeHub', 'Kusama', Version.V5]);
|
|
11499
11337
|
}
|
|
11500
|
-
_inherits(BridgeHubKusama,
|
|
11338
|
+
_inherits(BridgeHubKusama, _Chain);
|
|
11501
11339
|
return _createClass(BridgeHubKusama, [{
|
|
11502
11340
|
key: "transferPolkadotXCM",
|
|
11503
11341
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11508,9 +11346,9 @@ var BridgeHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
11508
11346
|
return transferPolkadotXcm(input);
|
|
11509
11347
|
}
|
|
11510
11348
|
}]);
|
|
11511
|
-
}(
|
|
11349
|
+
}(Chain);
|
|
11512
11350
|
|
|
11513
|
-
var BridgeHubPolkadot = /*#__PURE__*/function (
|
|
11351
|
+
var BridgeHubPolkadot = /*#__PURE__*/function (_Chain) {
|
|
11514
11352
|
function BridgeHubPolkadot() {
|
|
11515
11353
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BridgeHubPolkadot';
|
|
11516
11354
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotBridgeHub';
|
|
@@ -11519,7 +11357,7 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11519
11357
|
_classCallCheck(this, BridgeHubPolkadot);
|
|
11520
11358
|
return _callSuper(this, BridgeHubPolkadot, [chain, info, ecosystem, version]);
|
|
11521
11359
|
}
|
|
11522
|
-
_inherits(BridgeHubPolkadot,
|
|
11360
|
+
_inherits(BridgeHubPolkadot, _Chain);
|
|
11523
11361
|
return _createClass(BridgeHubPolkadot, [{
|
|
11524
11362
|
key: "transferPolkadotXCM",
|
|
11525
11363
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11531,7 +11369,7 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11531
11369
|
return transferPolkadotXcm(input);
|
|
11532
11370
|
}
|
|
11533
11371
|
}]);
|
|
11534
|
-
}(
|
|
11372
|
+
}(Chain);
|
|
11535
11373
|
|
|
11536
11374
|
var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
11537
11375
|
function BridgeHubPaseo() {
|
|
@@ -11551,12 +11389,12 @@ var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
|
11551
11389
|
return _createClass(BridgeHubWestend);
|
|
11552
11390
|
}(BridgeHubPolkadot);
|
|
11553
11391
|
|
|
11554
|
-
var Centrifuge = /*#__PURE__*/function (
|
|
11392
|
+
var Centrifuge = /*#__PURE__*/function (_Chain) {
|
|
11555
11393
|
function Centrifuge() {
|
|
11556
11394
|
_classCallCheck(this, Centrifuge);
|
|
11557
11395
|
return _callSuper(this, Centrifuge, ['Centrifuge', 'centrifuge', 'Polkadot', Version.V4]);
|
|
11558
11396
|
}
|
|
11559
|
-
_inherits(Centrifuge,
|
|
11397
|
+
_inherits(Centrifuge, _Chain);
|
|
11560
11398
|
return _createClass(Centrifuge, [{
|
|
11561
11399
|
key: "getCustomCurrencyId",
|
|
11562
11400
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -11606,9 +11444,9 @@ var Centrifuge = /*#__PURE__*/function (_Parachain) {
|
|
|
11606
11444
|
});
|
|
11607
11445
|
}
|
|
11608
11446
|
}]);
|
|
11609
|
-
}(
|
|
11447
|
+
}(Chain);
|
|
11610
11448
|
|
|
11611
|
-
var Collectives = /*#__PURE__*/function (
|
|
11449
|
+
var Collectives = /*#__PURE__*/function (_Chain) {
|
|
11612
11450
|
function Collectives() {
|
|
11613
11451
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Collectives';
|
|
11614
11452
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCollectives';
|
|
@@ -11617,7 +11455,7 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
11617
11455
|
_classCallCheck(this, Collectives);
|
|
11618
11456
|
return _callSuper(this, Collectives, [chain, info, ecosystem, version]);
|
|
11619
11457
|
}
|
|
11620
|
-
_inherits(Collectives,
|
|
11458
|
+
_inherits(Collectives, _Chain);
|
|
11621
11459
|
return _createClass(Collectives, [{
|
|
11622
11460
|
key: "transferPolkadotXCM",
|
|
11623
11461
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11629,7 +11467,7 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
11629
11467
|
return transferPolkadotXcm(input);
|
|
11630
11468
|
}
|
|
11631
11469
|
}]);
|
|
11632
|
-
}(
|
|
11470
|
+
}(Chain);
|
|
11633
11471
|
|
|
11634
11472
|
var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
11635
11473
|
function CollectivesWestend() {
|
|
@@ -11640,12 +11478,12 @@ var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
|
11640
11478
|
return _createClass(CollectivesWestend);
|
|
11641
11479
|
}(Collectives);
|
|
11642
11480
|
|
|
11643
|
-
var CoretimeKusama = /*#__PURE__*/function (
|
|
11481
|
+
var CoretimeKusama = /*#__PURE__*/function (_Chain) {
|
|
11644
11482
|
function CoretimeKusama() {
|
|
11645
11483
|
_classCallCheck(this, CoretimeKusama);
|
|
11646
11484
|
return _callSuper(this, CoretimeKusama, ['CoretimeKusama', 'kusamaCoretime', 'Kusama', Version.V5]);
|
|
11647
11485
|
}
|
|
11648
|
-
_inherits(CoretimeKusama,
|
|
11486
|
+
_inherits(CoretimeKusama, _Chain);
|
|
11649
11487
|
return _createClass(CoretimeKusama, [{
|
|
11650
11488
|
key: "transferPolkadotXCM",
|
|
11651
11489
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11659,9 +11497,9 @@ var CoretimeKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
11659
11497
|
return transferPolkadotXcm(input);
|
|
11660
11498
|
}
|
|
11661
11499
|
}]);
|
|
11662
|
-
}(
|
|
11500
|
+
}(Chain);
|
|
11663
11501
|
|
|
11664
|
-
var CoretimePolkadot = /*#__PURE__*/function (
|
|
11502
|
+
var CoretimePolkadot = /*#__PURE__*/function (_Chain) {
|
|
11665
11503
|
function CoretimePolkadot() {
|
|
11666
11504
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'CoretimePolkadot';
|
|
11667
11505
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCoretime';
|
|
@@ -11670,7 +11508,7 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11670
11508
|
_classCallCheck(this, CoretimePolkadot);
|
|
11671
11509
|
return _callSuper(this, CoretimePolkadot, [chain, info, ecosystem, version]);
|
|
11672
11510
|
}
|
|
11673
|
-
_inherits(CoretimePolkadot,
|
|
11511
|
+
_inherits(CoretimePolkadot, _Chain);
|
|
11674
11512
|
return _createClass(CoretimePolkadot, [{
|
|
11675
11513
|
key: "transferPolkadotXCM",
|
|
11676
11514
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11689,7 +11527,7 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11689
11527
|
return origin !== 'Hydration' && origin !== 'Moonbeam';
|
|
11690
11528
|
}
|
|
11691
11529
|
}]);
|
|
11692
|
-
}(
|
|
11530
|
+
}(Chain);
|
|
11693
11531
|
|
|
11694
11532
|
var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
11695
11533
|
function CoretimePaseo() {
|
|
@@ -11709,12 +11547,12 @@ var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
|
11709
11547
|
return _createClass(CoretimeWestend);
|
|
11710
11548
|
}(CoretimePolkadot);
|
|
11711
11549
|
|
|
11712
|
-
var Crab = /*#__PURE__*/function (
|
|
11550
|
+
var Crab = /*#__PURE__*/function (_Chain) {
|
|
11713
11551
|
function Crab() {
|
|
11714
11552
|
_classCallCheck(this, Crab);
|
|
11715
11553
|
return _callSuper(this, Crab, ['Crab', 'crab', 'Kusama', Version.V4]);
|
|
11716
11554
|
}
|
|
11717
|
-
_inherits(Crab,
|
|
11555
|
+
_inherits(Crab, _Chain);
|
|
11718
11556
|
return _createClass(Crab, [{
|
|
11719
11557
|
key: "transferPolkadotXCM",
|
|
11720
11558
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11725,12 +11563,9 @@ var Crab = /*#__PURE__*/function (_Parachain) {
|
|
|
11725
11563
|
});
|
|
11726
11564
|
}
|
|
11727
11565
|
}, {
|
|
11728
|
-
key: "
|
|
11729
|
-
value: function
|
|
11730
|
-
|
|
11731
|
-
chain: this.chain,
|
|
11732
|
-
scenario: 'RelayToPara'
|
|
11733
|
-
});
|
|
11566
|
+
key: "isRelayToParaEnabled",
|
|
11567
|
+
value: function isRelayToParaEnabled() {
|
|
11568
|
+
return false;
|
|
11734
11569
|
}
|
|
11735
11570
|
}, {
|
|
11736
11571
|
key: "transferLocalNonNativeAsset",
|
|
@@ -11738,14 +11573,14 @@ var Crab = /*#__PURE__*/function (_Parachain) {
|
|
|
11738
11573
|
return getChain('Darwinia').transferLocalNonNativeAsset(options);
|
|
11739
11574
|
}
|
|
11740
11575
|
}]);
|
|
11741
|
-
}(
|
|
11576
|
+
}(Chain);
|
|
11742
11577
|
|
|
11743
|
-
var Crust = /*#__PURE__*/function (
|
|
11578
|
+
var Crust = /*#__PURE__*/function (_Chain) {
|
|
11744
11579
|
function Crust() {
|
|
11745
11580
|
_classCallCheck(this, Crust);
|
|
11746
11581
|
return _callSuper(this, Crust, ['Crust', 'crustParachain', 'Polkadot', Version.V3]);
|
|
11747
11582
|
}
|
|
11748
|
-
_inherits(Crust,
|
|
11583
|
+
_inherits(Crust, _Chain);
|
|
11749
11584
|
return _createClass(Crust, [{
|
|
11750
11585
|
key: "getCurrencySelection",
|
|
11751
11586
|
value: function getCurrencySelection(asset) {
|
|
@@ -11796,14 +11631,14 @@ var Crust = /*#__PURE__*/function (_Parachain) {
|
|
|
11796
11631
|
});
|
|
11797
11632
|
}
|
|
11798
11633
|
}]);
|
|
11799
|
-
}(
|
|
11634
|
+
}(Chain);
|
|
11800
11635
|
|
|
11801
|
-
var CrustShadow = /*#__PURE__*/function (
|
|
11636
|
+
var CrustShadow = /*#__PURE__*/function (_Chain) {
|
|
11802
11637
|
function CrustShadow() {
|
|
11803
11638
|
_classCallCheck(this, CrustShadow);
|
|
11804
11639
|
return _callSuper(this, CrustShadow, ['CrustShadow', 'shadow', 'Kusama', Version.V3]);
|
|
11805
11640
|
}
|
|
11806
|
-
_inherits(CrustShadow,
|
|
11641
|
+
_inherits(CrustShadow, _Chain);
|
|
11807
11642
|
return _createClass(CrustShadow, [{
|
|
11808
11643
|
key: "getCurrencySelection",
|
|
11809
11644
|
value: function getCurrencySelection(asset) {
|
|
@@ -11828,14 +11663,14 @@ var CrustShadow = /*#__PURE__*/function (_Parachain) {
|
|
|
11828
11663
|
return getChain('Crust').transferLocalNonNativeAsset(options);
|
|
11829
11664
|
}
|
|
11830
11665
|
}]);
|
|
11831
|
-
}(
|
|
11666
|
+
}(Chain);
|
|
11832
11667
|
|
|
11833
|
-
var Curio = /*#__PURE__*/function (
|
|
11668
|
+
var Curio = /*#__PURE__*/function (_Chain) {
|
|
11834
11669
|
function Curio() {
|
|
11835
11670
|
_classCallCheck(this, Curio);
|
|
11836
11671
|
return _callSuper(this, Curio, ['Curio', 'curio', 'Kusama', Version.V3]);
|
|
11837
11672
|
}
|
|
11838
|
-
_inherits(Curio,
|
|
11673
|
+
_inherits(Curio, _Chain);
|
|
11839
11674
|
return _createClass(Curio, [{
|
|
11840
11675
|
key: "getCustomCurrencyId",
|
|
11841
11676
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -11863,14 +11698,14 @@ var Curio = /*#__PURE__*/function (_Parachain) {
|
|
|
11863
11698
|
return true;
|
|
11864
11699
|
}
|
|
11865
11700
|
}]);
|
|
11866
|
-
}(
|
|
11701
|
+
}(Chain);
|
|
11867
11702
|
|
|
11868
|
-
var Darwinia = /*#__PURE__*/function (
|
|
11703
|
+
var Darwinia = /*#__PURE__*/function (_Chain) {
|
|
11869
11704
|
function Darwinia() {
|
|
11870
11705
|
_classCallCheck(this, Darwinia);
|
|
11871
11706
|
return _callSuper(this, Darwinia, ['Darwinia', 'darwinia', 'Polkadot', Version.V4]);
|
|
11872
11707
|
}
|
|
11873
|
-
_inherits(Darwinia,
|
|
11708
|
+
_inherits(Darwinia, _Chain);
|
|
11874
11709
|
return _createClass(Darwinia, [{
|
|
11875
11710
|
key: "transferPolkadotXCM",
|
|
11876
11711
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11915,14 +11750,14 @@ var Darwinia = /*#__PURE__*/function (_Parachain) {
|
|
|
11915
11750
|
});
|
|
11916
11751
|
}
|
|
11917
11752
|
}]);
|
|
11918
|
-
}(
|
|
11753
|
+
}(Chain);
|
|
11919
11754
|
|
|
11920
|
-
var Encointer = /*#__PURE__*/function (
|
|
11755
|
+
var Encointer = /*#__PURE__*/function (_Chain) {
|
|
11921
11756
|
function Encointer() {
|
|
11922
11757
|
_classCallCheck(this, Encointer);
|
|
11923
11758
|
return _callSuper(this, Encointer, ['Encointer', 'encointer', 'Kusama', Version.V5]);
|
|
11924
11759
|
}
|
|
11925
|
-
_inherits(Encointer,
|
|
11760
|
+
_inherits(Encointer, _Chain);
|
|
11926
11761
|
return _createClass(Encointer, [{
|
|
11927
11762
|
key: "transferPolkadotXCM",
|
|
11928
11763
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11936,9 +11771,9 @@ var Encointer = /*#__PURE__*/function (_Parachain) {
|
|
|
11936
11771
|
});
|
|
11937
11772
|
}
|
|
11938
11773
|
}]);
|
|
11939
|
-
}(
|
|
11774
|
+
}(Chain);
|
|
11940
11775
|
|
|
11941
|
-
var EnergyWebX = /*#__PURE__*/function (
|
|
11776
|
+
var EnergyWebX = /*#__PURE__*/function (_Chain) {
|
|
11942
11777
|
function EnergyWebX() {
|
|
11943
11778
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'EnergyWebX';
|
|
11944
11779
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ewx';
|
|
@@ -11947,7 +11782,7 @@ var EnergyWebX = /*#__PURE__*/function (_Parachain) {
|
|
|
11947
11782
|
_classCallCheck(this, EnergyWebX);
|
|
11948
11783
|
return _callSuper(this, EnergyWebX, [chain, info, ecosystem, version]);
|
|
11949
11784
|
}
|
|
11950
|
-
_inherits(EnergyWebX,
|
|
11785
|
+
_inherits(EnergyWebX, _Chain);
|
|
11951
11786
|
return _createClass(EnergyWebX, [{
|
|
11952
11787
|
key: "transferPolkadotXCM",
|
|
11953
11788
|
value: function transferPolkadotXCM(input) {
|
|
@@ -11961,12 +11796,9 @@ var EnergyWebX = /*#__PURE__*/function (_Parachain) {
|
|
|
11961
11796
|
return transferPolkadotXcm(input, 'reserve_transfer_assets');
|
|
11962
11797
|
}
|
|
11963
11798
|
}, {
|
|
11964
|
-
key: "
|
|
11965
|
-
value: function
|
|
11966
|
-
|
|
11967
|
-
chain: this.chain,
|
|
11968
|
-
scenario: 'RelayToPara'
|
|
11969
|
-
});
|
|
11799
|
+
key: "isRelayToParaEnabled",
|
|
11800
|
+
value: function isRelayToParaEnabled() {
|
|
11801
|
+
return false;
|
|
11970
11802
|
}
|
|
11971
11803
|
}, {
|
|
11972
11804
|
key: "getBalanceForeign",
|
|
@@ -11996,7 +11828,7 @@ var EnergyWebX = /*#__PURE__*/function (_Parachain) {
|
|
|
11996
11828
|
return getBalanceForeign;
|
|
11997
11829
|
}()
|
|
11998
11830
|
}]);
|
|
11999
|
-
}(
|
|
11831
|
+
}(Chain);
|
|
12000
11832
|
|
|
12001
11833
|
var EnergyWebXPaseo = /*#__PURE__*/function (_EnergyWebX) {
|
|
12002
11834
|
function EnergyWebXPaseo() {
|
|
@@ -12007,7 +11839,7 @@ var EnergyWebXPaseo = /*#__PURE__*/function (_EnergyWebX) {
|
|
|
12007
11839
|
return _createClass(EnergyWebXPaseo);
|
|
12008
11840
|
}(EnergyWebX);
|
|
12009
11841
|
|
|
12010
|
-
var Heima = /*#__PURE__*/function (
|
|
11842
|
+
var Heima = /*#__PURE__*/function (_Chain) {
|
|
12011
11843
|
function Heima() {
|
|
12012
11844
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Heima';
|
|
12013
11845
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'heima';
|
|
@@ -12016,7 +11848,7 @@ var Heima = /*#__PURE__*/function (_Parachain) {
|
|
|
12016
11848
|
_classCallCheck(this, Heima);
|
|
12017
11849
|
return _callSuper(this, Heima, [chain, info, ecosystem, version]);
|
|
12018
11850
|
}
|
|
12019
|
-
_inherits(Heima,
|
|
11851
|
+
_inherits(Heima, _Chain);
|
|
12020
11852
|
return _createClass(Heima, [{
|
|
12021
11853
|
key: "transferPolkadotXCM",
|
|
12022
11854
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12034,7 +11866,7 @@ var Heima = /*#__PURE__*/function (_Parachain) {
|
|
|
12034
11866
|
return transferPolkadotXcm(input);
|
|
12035
11867
|
}
|
|
12036
11868
|
}]);
|
|
12037
|
-
}(
|
|
11869
|
+
}(Chain);
|
|
12038
11870
|
|
|
12039
11871
|
var HeimaPaseo = /*#__PURE__*/function (_Heima) {
|
|
12040
11872
|
function HeimaPaseo() {
|
|
@@ -12054,12 +11886,12 @@ var HydrationPaseo = /*#__PURE__*/function (_Hydration) {
|
|
|
12054
11886
|
return _createClass(HydrationPaseo);
|
|
12055
11887
|
}(Hydration);
|
|
12056
11888
|
|
|
12057
|
-
var Interlay = /*#__PURE__*/function (
|
|
11889
|
+
var Interlay = /*#__PURE__*/function (_Chain) {
|
|
12058
11890
|
function Interlay() {
|
|
12059
11891
|
_classCallCheck(this, Interlay);
|
|
12060
11892
|
return _callSuper(this, Interlay, ['Interlay', 'interlay', 'Polkadot', Version.V3]);
|
|
12061
11893
|
}
|
|
12062
|
-
_inherits(Interlay,
|
|
11894
|
+
_inherits(Interlay, _Chain);
|
|
12063
11895
|
return _createClass(Interlay, [{
|
|
12064
11896
|
key: "getCustomCurrencyId",
|
|
12065
11897
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -12116,14 +11948,14 @@ var Interlay = /*#__PURE__*/function (_Parachain) {
|
|
|
12116
11948
|
return this.getBalanceForeign(api, address, asset);
|
|
12117
11949
|
}
|
|
12118
11950
|
}]);
|
|
12119
|
-
}(
|
|
11951
|
+
}(Chain);
|
|
12120
11952
|
|
|
12121
|
-
var Jamton = /*#__PURE__*/function (
|
|
11953
|
+
var Jamton = /*#__PURE__*/function (_Chain) {
|
|
12122
11954
|
function Jamton() {
|
|
12123
11955
|
_classCallCheck(this, Jamton);
|
|
12124
11956
|
return _callSuper(this, Jamton, ['Jamton', 'jamton', 'Polkadot', Version.V4]);
|
|
12125
11957
|
}
|
|
12126
|
-
_inherits(Jamton,
|
|
11958
|
+
_inherits(Jamton, _Chain);
|
|
12127
11959
|
return _createClass(Jamton, [{
|
|
12128
11960
|
key: "getCustomCurrencyId",
|
|
12129
11961
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -12161,7 +11993,7 @@ var Jamton = /*#__PURE__*/function (_Parachain) {
|
|
|
12161
11993
|
return transferPolkadotXcm(input);
|
|
12162
11994
|
}
|
|
12163
11995
|
}]);
|
|
12164
|
-
}(
|
|
11996
|
+
}(Chain);
|
|
12165
11997
|
|
|
12166
11998
|
var Karura = /*#__PURE__*/function (_Acala) {
|
|
12167
11999
|
function Karura() {
|
|
@@ -12172,7 +12004,7 @@ var Karura = /*#__PURE__*/function (_Acala) {
|
|
|
12172
12004
|
return _createClass(Karura);
|
|
12173
12005
|
}(Acala);
|
|
12174
12006
|
|
|
12175
|
-
var KiltSpiritnet = /*#__PURE__*/function (
|
|
12007
|
+
var KiltSpiritnet = /*#__PURE__*/function (_Chain) {
|
|
12176
12008
|
function KiltSpiritnet() {
|
|
12177
12009
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'KiltSpiritnet';
|
|
12178
12010
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'kilt';
|
|
@@ -12181,7 +12013,7 @@ var KiltSpiritnet = /*#__PURE__*/function (_Parachain) {
|
|
|
12181
12013
|
_classCallCheck(this, KiltSpiritnet);
|
|
12182
12014
|
return _callSuper(this, KiltSpiritnet, [chain, info, ecosystem, version]);
|
|
12183
12015
|
}
|
|
12184
|
-
_inherits(KiltSpiritnet,
|
|
12016
|
+
_inherits(KiltSpiritnet, _Chain);
|
|
12185
12017
|
return _createClass(KiltSpiritnet, [{
|
|
12186
12018
|
key: "transferPolkadotXCM",
|
|
12187
12019
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12193,15 +12025,12 @@ var KiltSpiritnet = /*#__PURE__*/function (_Parachain) {
|
|
|
12193
12025
|
return transferPolkadotXcm(input);
|
|
12194
12026
|
}
|
|
12195
12027
|
}, {
|
|
12196
|
-
key: "
|
|
12197
|
-
value: function
|
|
12198
|
-
|
|
12199
|
-
chain: this.chain,
|
|
12200
|
-
scenario: 'RelayToPara'
|
|
12201
|
-
});
|
|
12028
|
+
key: "isRelayToParaEnabled",
|
|
12029
|
+
value: function isRelayToParaEnabled() {
|
|
12030
|
+
return false;
|
|
12202
12031
|
}
|
|
12203
12032
|
}]);
|
|
12204
|
-
}(
|
|
12033
|
+
}(Chain);
|
|
12205
12034
|
|
|
12206
12035
|
var KiltPaseo = /*#__PURE__*/function (_KiltSpiritnet) {
|
|
12207
12036
|
function KiltPaseo() {
|
|
@@ -12222,12 +12051,12 @@ var KiltPaseo = /*#__PURE__*/function (_KiltSpiritnet) {
|
|
|
12222
12051
|
}]);
|
|
12223
12052
|
}(KiltSpiritnet);
|
|
12224
12053
|
|
|
12225
|
-
var Kintsugi = /*#__PURE__*/function (
|
|
12054
|
+
var Kintsugi = /*#__PURE__*/function (_Chain) {
|
|
12226
12055
|
function Kintsugi() {
|
|
12227
12056
|
_classCallCheck(this, Kintsugi);
|
|
12228
12057
|
return _callSuper(this, Kintsugi, ['Kintsugi', 'kintsugi', 'Kusama', Version.V3]);
|
|
12229
12058
|
}
|
|
12230
|
-
_inherits(Kintsugi,
|
|
12059
|
+
_inherits(Kintsugi, _Chain);
|
|
12231
12060
|
return _createClass(Kintsugi, [{
|
|
12232
12061
|
key: "getCustomCurrencyId",
|
|
12233
12062
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -12284,9 +12113,36 @@ var Kintsugi = /*#__PURE__*/function (_Parachain) {
|
|
|
12284
12113
|
return this.getBalanceForeign(api, address, asset);
|
|
12285
12114
|
}
|
|
12286
12115
|
}]);
|
|
12287
|
-
}(
|
|
12116
|
+
}(Chain);
|
|
12288
12117
|
|
|
12289
|
-
var
|
|
12118
|
+
var Polkadot = /*#__PURE__*/function (_Chain) {
|
|
12119
|
+
function Polkadot() {
|
|
12120
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Polkadot';
|
|
12121
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadot';
|
|
12122
|
+
var ecosystem = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Polkadot';
|
|
12123
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
12124
|
+
_classCallCheck(this, Polkadot);
|
|
12125
|
+
return _callSuper(this, Polkadot, [chain, info, ecosystem, version]);
|
|
12126
|
+
}
|
|
12127
|
+
_inherits(Polkadot, _Chain);
|
|
12128
|
+
return _createClass(Polkadot, [{
|
|
12129
|
+
key: "transferPolkadotXCM",
|
|
12130
|
+
value: function transferPolkadotXCM(input) {
|
|
12131
|
+
return transferPolkadotXcm(input);
|
|
12132
|
+
}
|
|
12133
|
+
}]);
|
|
12134
|
+
}(Chain);
|
|
12135
|
+
|
|
12136
|
+
var Kusama = /*#__PURE__*/function (_Polkadot) {
|
|
12137
|
+
function Kusama() {
|
|
12138
|
+
_classCallCheck(this, Kusama);
|
|
12139
|
+
return _callSuper(this, Kusama, ['Kusama', 'kusama', 'Kusama', Version.V5]);
|
|
12140
|
+
}
|
|
12141
|
+
_inherits(Kusama, _Polkadot);
|
|
12142
|
+
return _createClass(Kusama);
|
|
12143
|
+
}(Polkadot);
|
|
12144
|
+
|
|
12145
|
+
var Laos = /*#__PURE__*/function (_Chain) {
|
|
12290
12146
|
function Laos() {
|
|
12291
12147
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Laos';
|
|
12292
12148
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'laos';
|
|
@@ -12295,7 +12151,7 @@ var Laos = /*#__PURE__*/function (_Parachain) {
|
|
|
12295
12151
|
_classCallCheck(this, Laos);
|
|
12296
12152
|
return _callSuper(this, Laos, [chain, info, ecosystem, version]);
|
|
12297
12153
|
}
|
|
12298
|
-
_inherits(Laos,
|
|
12154
|
+
_inherits(Laos, _Chain);
|
|
12299
12155
|
return _createClass(Laos, [{
|
|
12300
12156
|
key: "transferPolkadotXCM",
|
|
12301
12157
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12317,15 +12173,12 @@ var Laos = /*#__PURE__*/function (_Parachain) {
|
|
|
12317
12173
|
return transferPolkadotXcm(input);
|
|
12318
12174
|
}
|
|
12319
12175
|
}, {
|
|
12320
|
-
key: "
|
|
12321
|
-
value: function
|
|
12322
|
-
|
|
12323
|
-
chain: this.chain,
|
|
12324
|
-
scenario: 'RelayToPara'
|
|
12325
|
-
});
|
|
12176
|
+
key: "isRelayToParaEnabled",
|
|
12177
|
+
value: function isRelayToParaEnabled() {
|
|
12178
|
+
return false;
|
|
12326
12179
|
}
|
|
12327
12180
|
}]);
|
|
12328
|
-
}(
|
|
12181
|
+
}(Chain);
|
|
12329
12182
|
|
|
12330
12183
|
var LaosPaseo = /*#__PURE__*/function (_Laos) {
|
|
12331
12184
|
function LaosPaseo() {
|
|
@@ -12336,12 +12189,12 @@ var LaosPaseo = /*#__PURE__*/function (_Laos) {
|
|
|
12336
12189
|
return _createClass(LaosPaseo);
|
|
12337
12190
|
}(Laos);
|
|
12338
12191
|
|
|
12339
|
-
var Manta = /*#__PURE__*/function (
|
|
12192
|
+
var Manta = /*#__PURE__*/function (_Chain) {
|
|
12340
12193
|
function Manta() {
|
|
12341
12194
|
_classCallCheck(this, Manta);
|
|
12342
12195
|
return _callSuper(this, Manta, ['Manta', 'manta', 'Polkadot', Version.V3]);
|
|
12343
12196
|
}
|
|
12344
|
-
_inherits(Manta,
|
|
12197
|
+
_inherits(Manta, _Chain);
|
|
12345
12198
|
return _createClass(Manta, [{
|
|
12346
12199
|
key: "getAssetId",
|
|
12347
12200
|
value: function getAssetId(asset) {
|
|
@@ -12382,10 +12235,10 @@ var Manta = /*#__PURE__*/function (_Parachain) {
|
|
|
12382
12235
|
});
|
|
12383
12236
|
}
|
|
12384
12237
|
}]);
|
|
12385
|
-
}(
|
|
12238
|
+
}(Chain);
|
|
12386
12239
|
Manta.NATIVE_ASSET_ID = 1n;
|
|
12387
12240
|
|
|
12388
|
-
var Moonbeam = /*#__PURE__*/function (
|
|
12241
|
+
var Moonbeam = /*#__PURE__*/function (_Chain) {
|
|
12389
12242
|
function Moonbeam() {
|
|
12390
12243
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Moonbeam';
|
|
12391
12244
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'moonbeam';
|
|
@@ -12394,7 +12247,7 @@ var Moonbeam = /*#__PURE__*/function (_Parachain) {
|
|
|
12394
12247
|
_classCallCheck(this, Moonbeam);
|
|
12395
12248
|
return _callSuper(this, Moonbeam, [chain, info, ecosystem, version]);
|
|
12396
12249
|
}
|
|
12397
|
-
_inherits(Moonbeam,
|
|
12250
|
+
_inherits(Moonbeam, _Chain);
|
|
12398
12251
|
return _createClass(Moonbeam, [{
|
|
12399
12252
|
key: "transferPolkadotXCM",
|
|
12400
12253
|
value: function () {
|
|
@@ -12431,14 +12284,14 @@ var Moonbeam = /*#__PURE__*/function (_Parachain) {
|
|
|
12431
12284
|
return getMoonbeamErc20Balance(this.chain, asset.assetId, address);
|
|
12432
12285
|
}
|
|
12433
12286
|
}]);
|
|
12434
|
-
}(
|
|
12287
|
+
}(Chain);
|
|
12435
12288
|
|
|
12436
|
-
var Moonriver = /*#__PURE__*/function (
|
|
12289
|
+
var Moonriver = /*#__PURE__*/function (_Chain) {
|
|
12437
12290
|
function Moonriver() {
|
|
12438
12291
|
_classCallCheck(this, Moonriver);
|
|
12439
12292
|
return _callSuper(this, Moonriver, ['Moonriver', 'moonriver', 'Kusama', Version.V5]);
|
|
12440
12293
|
}
|
|
12441
|
-
_inherits(Moonriver,
|
|
12294
|
+
_inherits(Moonriver, _Chain);
|
|
12442
12295
|
return _createClass(Moonriver, [{
|
|
12443
12296
|
key: "transferPolkadotXCM",
|
|
12444
12297
|
value: function transferPolkadotXCM(options) {
|
|
@@ -12450,7 +12303,7 @@ var Moonriver = /*#__PURE__*/function (_Parachain) {
|
|
|
12450
12303
|
return getChain('Moonbeam').transferLocalNonNativeAsset(options);
|
|
12451
12304
|
}
|
|
12452
12305
|
}]);
|
|
12453
|
-
}(
|
|
12306
|
+
}(Chain);
|
|
12454
12307
|
|
|
12455
12308
|
var createTypeAndThenTransfer = /*#__PURE__*/function () {
|
|
12456
12309
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options, chain, version) {
|
|
@@ -12501,12 +12354,12 @@ var createTypeAndThenTransfer = /*#__PURE__*/function () {
|
|
|
12501
12354
|
return _ref.apply(this, arguments);
|
|
12502
12355
|
};
|
|
12503
12356
|
}();
|
|
12504
|
-
var Mythos = /*#__PURE__*/function (
|
|
12357
|
+
var Mythos = /*#__PURE__*/function (_Chain) {
|
|
12505
12358
|
function Mythos() {
|
|
12506
12359
|
_classCallCheck(this, Mythos);
|
|
12507
12360
|
return _callSuper(this, Mythos, ['Mythos', 'mythos', 'Polkadot', Version.V5]);
|
|
12508
12361
|
}
|
|
12509
|
-
_inherits(Mythos,
|
|
12362
|
+
_inherits(Mythos, _Chain);
|
|
12510
12363
|
return _createClass(Mythos, [{
|
|
12511
12364
|
key: "transferPolkadotXCM",
|
|
12512
12365
|
value: function () {
|
|
@@ -12555,17 +12408,14 @@ var Mythos = /*#__PURE__*/function (_Parachain) {
|
|
|
12555
12408
|
return transferPolkadotXCM;
|
|
12556
12409
|
}()
|
|
12557
12410
|
}, {
|
|
12558
|
-
key: "
|
|
12559
|
-
value: function
|
|
12560
|
-
|
|
12561
|
-
chain: this.chain,
|
|
12562
|
-
scenario: 'RelayToPara'
|
|
12563
|
-
});
|
|
12411
|
+
key: "isRelayToParaEnabled",
|
|
12412
|
+
value: function isRelayToParaEnabled() {
|
|
12413
|
+
return false;
|
|
12564
12414
|
}
|
|
12565
12415
|
}]);
|
|
12566
|
-
}(
|
|
12416
|
+
}(Chain);
|
|
12567
12417
|
|
|
12568
|
-
var NeuroWeb = /*#__PURE__*/function (
|
|
12418
|
+
var NeuroWeb = /*#__PURE__*/function (_Chain) {
|
|
12569
12419
|
function NeuroWeb() {
|
|
12570
12420
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'NeuroWeb';
|
|
12571
12421
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'neuroweb';
|
|
@@ -12574,7 +12424,7 @@ var NeuroWeb = /*#__PURE__*/function (_Parachain) {
|
|
|
12574
12424
|
_classCallCheck(this, NeuroWeb);
|
|
12575
12425
|
return _callSuper(this, NeuroWeb, [chain, info, ecosystem, version]);
|
|
12576
12426
|
}
|
|
12577
|
-
_inherits(NeuroWeb,
|
|
12427
|
+
_inherits(NeuroWeb, _Chain);
|
|
12578
12428
|
return _createClass(NeuroWeb, [{
|
|
12579
12429
|
key: "transferPolkadotXCM",
|
|
12580
12430
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12628,7 +12478,7 @@ var NeuroWeb = /*#__PURE__*/function (_Parachain) {
|
|
|
12628
12478
|
});
|
|
12629
12479
|
}
|
|
12630
12480
|
}]);
|
|
12631
|
-
}(
|
|
12481
|
+
}(Chain);
|
|
12632
12482
|
|
|
12633
12483
|
var NeuroWebPaseo = /*#__PURE__*/function (_NeuroWeb) {
|
|
12634
12484
|
function NeuroWebPaseo() {
|
|
@@ -12639,7 +12489,7 @@ var NeuroWebPaseo = /*#__PURE__*/function (_NeuroWeb) {
|
|
|
12639
12489
|
return _createClass(NeuroWebPaseo);
|
|
12640
12490
|
}(NeuroWeb);
|
|
12641
12491
|
|
|
12642
|
-
var Nodle = /*#__PURE__*/function (
|
|
12492
|
+
var Nodle = /*#__PURE__*/function (_Chain) {
|
|
12643
12493
|
function Nodle() {
|
|
12644
12494
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Nodle';
|
|
12645
12495
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'nodle';
|
|
@@ -12648,7 +12498,7 @@ var Nodle = /*#__PURE__*/function (_Parachain) {
|
|
|
12648
12498
|
_classCallCheck(this, Nodle);
|
|
12649
12499
|
return _callSuper(this, Nodle, [chain, info, ecosystem, version]);
|
|
12650
12500
|
}
|
|
12651
|
-
_inherits(Nodle,
|
|
12501
|
+
_inherits(Nodle, _Chain);
|
|
12652
12502
|
return _createClass(Nodle, [{
|
|
12653
12503
|
key: "transferPolkadotXCM",
|
|
12654
12504
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12666,17 +12516,23 @@ var Nodle = /*#__PURE__*/function (_Parachain) {
|
|
|
12666
12516
|
return transferPolkadotXcm(input);
|
|
12667
12517
|
}
|
|
12668
12518
|
}, {
|
|
12669
|
-
key: "
|
|
12670
|
-
value: function
|
|
12671
|
-
|
|
12672
|
-
chain: this.chain,
|
|
12673
|
-
scenario: 'RelayToPara'
|
|
12674
|
-
});
|
|
12519
|
+
key: "isRelayToParaEnabled",
|
|
12520
|
+
value: function isRelayToParaEnabled() {
|
|
12521
|
+
return false;
|
|
12675
12522
|
}
|
|
12676
12523
|
}]);
|
|
12677
|
-
}(
|
|
12524
|
+
}(Chain);
|
|
12678
12525
|
|
|
12679
|
-
var
|
|
12526
|
+
var Paseo = /*#__PURE__*/function (_Polkadot) {
|
|
12527
|
+
function Paseo() {
|
|
12528
|
+
_classCallCheck(this, Paseo);
|
|
12529
|
+
return _callSuper(this, Paseo, ['Paseo', 'paseo', 'Paseo', Version.V5]);
|
|
12530
|
+
}
|
|
12531
|
+
_inherits(Paseo, _Polkadot);
|
|
12532
|
+
return _createClass(Paseo);
|
|
12533
|
+
}(Polkadot);
|
|
12534
|
+
|
|
12535
|
+
var PeoplePolkadot = /*#__PURE__*/function (_Chain) {
|
|
12680
12536
|
function PeoplePolkadot() {
|
|
12681
12537
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'PeoplePolkadot';
|
|
12682
12538
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotPeople';
|
|
@@ -12685,7 +12541,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
12685
12541
|
_classCallCheck(this, PeoplePolkadot);
|
|
12686
12542
|
return _callSuper(this, PeoplePolkadot, [chain, info, ecosystem, version]);
|
|
12687
12543
|
}
|
|
12688
|
-
_inherits(PeoplePolkadot,
|
|
12544
|
+
_inherits(PeoplePolkadot, _Chain);
|
|
12689
12545
|
return _createClass(PeoplePolkadot, [{
|
|
12690
12546
|
key: "transferPolkadotXCM",
|
|
12691
12547
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12697,7 +12553,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
12697
12553
|
return transferPolkadotXcm(input);
|
|
12698
12554
|
}
|
|
12699
12555
|
}]);
|
|
12700
|
-
}(
|
|
12556
|
+
}(Chain);
|
|
12701
12557
|
|
|
12702
12558
|
var PAssetHub = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
12703
12559
|
function PAssetHub() {
|
|
@@ -12718,12 +12574,12 @@ var PAssetHub = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
|
12718
12574
|
}]);
|
|
12719
12575
|
}(PeoplePolkadot);
|
|
12720
12576
|
|
|
12721
|
-
var Peaq = /*#__PURE__*/function (
|
|
12577
|
+
var Peaq = /*#__PURE__*/function (_Chain) {
|
|
12722
12578
|
function Peaq() {
|
|
12723
12579
|
_classCallCheck(this, Peaq);
|
|
12724
12580
|
return _callSuper(this, Peaq, ['Peaq', 'peaq', 'Polkadot', Version.V4]);
|
|
12725
12581
|
}
|
|
12726
|
-
_inherits(Peaq,
|
|
12582
|
+
_inherits(Peaq, _Chain);
|
|
12727
12583
|
return _createClass(Peaq, [{
|
|
12728
12584
|
key: "transferXTokens",
|
|
12729
12585
|
value: function transferXTokens$1(input) {
|
|
@@ -12739,12 +12595,9 @@ var Peaq = /*#__PURE__*/function (_Parachain) {
|
|
|
12739
12595
|
return transferXTokens(input, BigInt(asset.assetId));
|
|
12740
12596
|
}
|
|
12741
12597
|
}, {
|
|
12742
|
-
key: "
|
|
12743
|
-
value: function
|
|
12744
|
-
|
|
12745
|
-
chain: this.chain,
|
|
12746
|
-
scenario: 'RelayToPara'
|
|
12747
|
-
});
|
|
12598
|
+
key: "isRelayToParaEnabled",
|
|
12599
|
+
value: function isRelayToParaEnabled() {
|
|
12600
|
+
return false;
|
|
12748
12601
|
}
|
|
12749
12602
|
}, {
|
|
12750
12603
|
key: "transferLocalNonNativeAsset",
|
|
@@ -12780,14 +12633,14 @@ var Peaq = /*#__PURE__*/function (_Parachain) {
|
|
|
12780
12633
|
});
|
|
12781
12634
|
}
|
|
12782
12635
|
}]);
|
|
12783
|
-
}(
|
|
12636
|
+
}(Chain);
|
|
12784
12637
|
|
|
12785
|
-
var Pendulum = /*#__PURE__*/function (
|
|
12638
|
+
var Pendulum = /*#__PURE__*/function (_Chain) {
|
|
12786
12639
|
function Pendulum() {
|
|
12787
12640
|
_classCallCheck(this, Pendulum);
|
|
12788
12641
|
return _callSuper(this, Pendulum, ['Pendulum', 'pendulum', 'Polkadot', Version.V3]);
|
|
12789
12642
|
}
|
|
12790
|
-
_inherits(Pendulum,
|
|
12643
|
+
_inherits(Pendulum, _Chain);
|
|
12791
12644
|
return _createClass(Pendulum, [{
|
|
12792
12645
|
key: "getCustomCurrencyId",
|
|
12793
12646
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -12809,7 +12662,7 @@ var Pendulum = /*#__PURE__*/function (_Parachain) {
|
|
|
12809
12662
|
}), currencySelection);
|
|
12810
12663
|
}
|
|
12811
12664
|
}]);
|
|
12812
|
-
}(
|
|
12665
|
+
}(Chain);
|
|
12813
12666
|
|
|
12814
12667
|
var Penpal = /*#__PURE__*/function (_Moonbeam) {
|
|
12815
12668
|
function Penpal() {
|
|
@@ -12825,12 +12678,12 @@ var Penpal = /*#__PURE__*/function (_Moonbeam) {
|
|
|
12825
12678
|
}]);
|
|
12826
12679
|
}(Moonbeam);
|
|
12827
12680
|
|
|
12828
|
-
var PeopleKusama = /*#__PURE__*/function (
|
|
12681
|
+
var PeopleKusama = /*#__PURE__*/function (_Chain) {
|
|
12829
12682
|
function PeopleKusama() {
|
|
12830
12683
|
_classCallCheck(this, PeopleKusama);
|
|
12831
12684
|
return _callSuper(this, PeopleKusama, ['PeopleKusama', 'kusamaPeople', 'Kusama', Version.V5]);
|
|
12832
12685
|
}
|
|
12833
|
-
_inherits(PeopleKusama,
|
|
12686
|
+
_inherits(PeopleKusama, _Chain);
|
|
12834
12687
|
return _createClass(PeopleKusama, [{
|
|
12835
12688
|
key: "transferPolkadotXCM",
|
|
12836
12689
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12844,7 +12697,7 @@ var PeopleKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
12844
12697
|
return transferPolkadotXcm(input);
|
|
12845
12698
|
}
|
|
12846
12699
|
}]);
|
|
12847
|
-
}(
|
|
12700
|
+
}(Chain);
|
|
12848
12701
|
|
|
12849
12702
|
var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
12850
12703
|
function PeoplePaseo() {
|
|
@@ -12921,12 +12774,12 @@ var transferXTransfer = function transferXTransfer(input) {
|
|
|
12921
12774
|
return api.deserializeExtrinsics(call);
|
|
12922
12775
|
};
|
|
12923
12776
|
|
|
12924
|
-
var Phala = /*#__PURE__*/function (
|
|
12777
|
+
var Phala = /*#__PURE__*/function (_Chain) {
|
|
12925
12778
|
function Phala() {
|
|
12926
12779
|
_classCallCheck(this, Phala);
|
|
12927
12780
|
return _callSuper(this, Phala, ['Phala', 'phala', 'Polkadot', Version.V3]);
|
|
12928
12781
|
}
|
|
12929
|
-
_inherits(Phala,
|
|
12782
|
+
_inherits(Phala, _Chain);
|
|
12930
12783
|
return _createClass(Phala, [{
|
|
12931
12784
|
key: "transferXTransfer",
|
|
12932
12785
|
value: function transferXTransfer$1(input) {
|
|
@@ -12960,14 +12813,14 @@ var Phala = /*#__PURE__*/function (_Parachain) {
|
|
|
12960
12813
|
});
|
|
12961
12814
|
}
|
|
12962
12815
|
}]);
|
|
12963
|
-
}(
|
|
12816
|
+
}(Chain);
|
|
12964
12817
|
|
|
12965
|
-
var Quartz = /*#__PURE__*/function (
|
|
12818
|
+
var Quartz = /*#__PURE__*/function (_Chain) {
|
|
12966
12819
|
function Quartz() {
|
|
12967
12820
|
_classCallCheck(this, Quartz);
|
|
12968
12821
|
return _callSuper(this, Quartz, ['Quartz', 'quartz', 'Kusama', Version.V5]);
|
|
12969
12822
|
}
|
|
12970
|
-
_inherits(Quartz,
|
|
12823
|
+
_inherits(Quartz, _Chain);
|
|
12971
12824
|
return _createClass(Quartz, [{
|
|
12972
12825
|
key: "transferPolkadotXCM",
|
|
12973
12826
|
value: function transferPolkadotXCM(input) {
|
|
@@ -12979,14 +12832,14 @@ var Quartz = /*#__PURE__*/function (_Parachain) {
|
|
|
12979
12832
|
return true;
|
|
12980
12833
|
}
|
|
12981
12834
|
}]);
|
|
12982
|
-
}(
|
|
12835
|
+
}(Chain);
|
|
12983
12836
|
|
|
12984
|
-
var RobonomicsPolkadot = /*#__PURE__*/function (
|
|
12837
|
+
var RobonomicsPolkadot = /*#__PURE__*/function (_Chain) {
|
|
12985
12838
|
function RobonomicsPolkadot() {
|
|
12986
12839
|
_classCallCheck(this, RobonomicsPolkadot);
|
|
12987
12840
|
return _callSuper(this, RobonomicsPolkadot, ['RobonomicsPolkadot', 'robonomics', 'Polkadot', Version.V3]);
|
|
12988
12841
|
}
|
|
12989
|
-
_inherits(RobonomicsPolkadot,
|
|
12842
|
+
_inherits(RobonomicsPolkadot, _Chain);
|
|
12990
12843
|
return _createClass(RobonomicsPolkadot, [{
|
|
12991
12844
|
key: "transferPolkadotXCM",
|
|
12992
12845
|
value: function transferPolkadotXCM(input) {
|
|
@@ -13038,7 +12891,7 @@ var RobonomicsPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
13038
12891
|
});
|
|
13039
12892
|
}
|
|
13040
12893
|
}]);
|
|
13041
|
-
}(
|
|
12894
|
+
}(Chain);
|
|
13042
12895
|
|
|
13043
12896
|
var Shiden = /*#__PURE__*/function (_Astar) {
|
|
13044
12897
|
function Shiden() {
|
|
@@ -13049,12 +12902,12 @@ var Shiden = /*#__PURE__*/function (_Astar) {
|
|
|
13049
12902
|
return _createClass(Shiden);
|
|
13050
12903
|
}(Astar);
|
|
13051
12904
|
|
|
13052
|
-
var Unique = /*#__PURE__*/function (
|
|
12905
|
+
var Unique = /*#__PURE__*/function (_Chain) {
|
|
13053
12906
|
function Unique() {
|
|
13054
12907
|
_classCallCheck(this, Unique);
|
|
13055
12908
|
return _callSuper(this, Unique, ['Unique', 'unique', 'Polkadot', Version.V5]);
|
|
13056
12909
|
}
|
|
13057
|
-
_inherits(Unique,
|
|
12910
|
+
_inherits(Unique, _Chain);
|
|
13058
12911
|
return _createClass(Unique, [{
|
|
13059
12912
|
key: "transferPolkadotXCM",
|
|
13060
12913
|
value: function transferPolkadotXCM(input) {
|
|
@@ -13104,14 +12957,23 @@ var Unique = /*#__PURE__*/function (_Parachain) {
|
|
|
13104
12957
|
return getBalanceForeign;
|
|
13105
12958
|
}()
|
|
13106
12959
|
}]);
|
|
13107
|
-
}(
|
|
12960
|
+
}(Chain);
|
|
12961
|
+
|
|
12962
|
+
var Westend = /*#__PURE__*/function (_Polkadot) {
|
|
12963
|
+
function Westend() {
|
|
12964
|
+
_classCallCheck(this, Westend);
|
|
12965
|
+
return _callSuper(this, Westend, ['Westend', 'westend', 'Westend', Version.V5]);
|
|
12966
|
+
}
|
|
12967
|
+
_inherits(Westend, _Polkadot);
|
|
12968
|
+
return _createClass(Westend);
|
|
12969
|
+
}(Polkadot);
|
|
13108
12970
|
|
|
13109
|
-
var Xode = /*#__PURE__*/function (
|
|
12971
|
+
var Xode = /*#__PURE__*/function (_Chain) {
|
|
13110
12972
|
function Xode() {
|
|
13111
12973
|
_classCallCheck(this, Xode);
|
|
13112
12974
|
return _callSuper(this, Xode, ['Xode', 'xode', 'Polkadot', Version.V4]);
|
|
13113
12975
|
}
|
|
13114
|
-
_inherits(Xode,
|
|
12976
|
+
_inherits(Xode, _Chain);
|
|
13115
12977
|
return _createClass(Xode, [{
|
|
13116
12978
|
key: "transferPolkadotXCM",
|
|
13117
12979
|
value: function transferPolkadotXCM(options) {
|
|
@@ -13128,9 +12990,9 @@ var Xode = /*#__PURE__*/function (_Parachain) {
|
|
|
13128
12990
|
return origin === 'AssetHubPolkadot';
|
|
13129
12991
|
}
|
|
13130
12992
|
}]);
|
|
13131
|
-
}(
|
|
12993
|
+
}(Chain);
|
|
13132
12994
|
|
|
13133
|
-
var Zeitgeist = /*#__PURE__*/function (
|
|
12995
|
+
var Zeitgeist = /*#__PURE__*/function (_Chain) {
|
|
13134
12996
|
function Zeitgeist() {
|
|
13135
12997
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Zeitgeist';
|
|
13136
12998
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zeitgeist';
|
|
@@ -13139,7 +13001,7 @@ var Zeitgeist = /*#__PURE__*/function (_Parachain) {
|
|
|
13139
13001
|
_classCallCheck(this, Zeitgeist);
|
|
13140
13002
|
return _callSuper(this, Zeitgeist, [chain, info, ecosystem, version]);
|
|
13141
13003
|
}
|
|
13142
|
-
_inherits(Zeitgeist,
|
|
13004
|
+
_inherits(Zeitgeist, _Chain);
|
|
13143
13005
|
return _createClass(Zeitgeist, [{
|
|
13144
13006
|
key: "getCustomCurrencyId",
|
|
13145
13007
|
value: function getCustomCurrencyId(asset) {
|
|
@@ -13182,7 +13044,7 @@ var Zeitgeist = /*#__PURE__*/function (_Parachain) {
|
|
|
13182
13044
|
});
|
|
13183
13045
|
}
|
|
13184
13046
|
}]);
|
|
13185
|
-
}(
|
|
13047
|
+
}(Chain);
|
|
13186
13048
|
|
|
13187
13049
|
var ZeitgeistPaseo = /*#__PURE__*/function (_Zeitgeist) {
|
|
13188
13050
|
function ZeitgeistPaseo() {
|
|
@@ -13196,6 +13058,7 @@ var ZeitgeistPaseo = /*#__PURE__*/function (_Zeitgeist) {
|
|
|
13196
13058
|
var chains = function chains() {
|
|
13197
13059
|
return {
|
|
13198
13060
|
// Polkadot chains
|
|
13061
|
+
Polkadot: new Polkadot(),
|
|
13199
13062
|
AssetHubPolkadot: new AssetHubPolkadot(),
|
|
13200
13063
|
Acala: new Acala(),
|
|
13201
13064
|
Ajuna: new Ajuna(),
|
|
@@ -13227,6 +13090,7 @@ var chains = function chains() {
|
|
|
13227
13090
|
Peaq: new Peaq(),
|
|
13228
13091
|
Xode: new Xode(),
|
|
13229
13092
|
// Kusama chains
|
|
13093
|
+
Kusama: new Kusama(),
|
|
13230
13094
|
AssetHubKusama: new AssetHubKusama(),
|
|
13231
13095
|
BridgeHubKusama: new BridgeHubKusama(),
|
|
13232
13096
|
CoretimeKusama: new CoretimeKusama(),
|
|
@@ -13246,6 +13110,7 @@ var chains = function chains() {
|
|
|
13246
13110
|
Shiden: new Shiden(),
|
|
13247
13111
|
Zeitgeist: new Zeitgeist(),
|
|
13248
13112
|
// Westend chains
|
|
13113
|
+
Westend: new Westend(),
|
|
13249
13114
|
AssetHubWestend: new AssetHubWestend(),
|
|
13250
13115
|
BridgeHubWestend: new BridgeHubWestend(),
|
|
13251
13116
|
CollectivesWestend: new CollectivesWestend(),
|
|
@@ -13253,6 +13118,7 @@ var chains = function chains() {
|
|
|
13253
13118
|
PeopleWestend: new PeopleWestend(),
|
|
13254
13119
|
Penpal: new Penpal(),
|
|
13255
13120
|
// Paseo chains
|
|
13121
|
+
Paseo: new Paseo(),
|
|
13256
13122
|
AssetHubPaseo: new AssetHubPaseo(),
|
|
13257
13123
|
BridgeHubPaseo: new BridgeHubPaseo(),
|
|
13258
13124
|
CoretimePaseo: new CoretimePaseo(),
|
|
@@ -14242,4 +14108,4 @@ var getMoonbeamErc20Balance = /*#__PURE__*/function () {
|
|
|
14242
14108
|
};
|
|
14243
14109
|
}();
|
|
14244
14110
|
|
|
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,
|
|
14111
|
+
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 };
|