@paraspell/sdk-core 10.10.11 → 10.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.cjs +281 -147
- package/dist/index.d.ts +50 -7
- package/dist/index.mjs +281 -149
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { blake2b } from '@noble/hashes/blake2';
|
|
2
|
-
import { isNodeEvm, getAssetsObject, InvalidCurrencyError, isForeignAsset, getNativeAssetSymbol, getOtherAssets, extractMultiAssetLoc, isAssetEqual, findAssetForNodeOrThrow, getExistentialDeposit, findAsset, isTMultiAsset, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, isOverrideMultiLocationSpecifier, findAssetByMultiLocation, findAssetOnDestOrThrow, hasSupportForAsset, getRelayChainSymbol, isSymbolSpecifier, normalizeMultiLocation, normalizeSymbol, hasXcmPaymentApiSupport, getAssetId, getNativeAssets } from '@paraspell/assets';
|
|
2
|
+
import { isNodeEvm, getAssetsObject, InvalidCurrencyError, isForeignAsset, getNativeAssetSymbol, getOtherAssets, extractMultiAssetLoc, isAssetEqual, findAssetForNodeOrThrow, getExistentialDeposit, findAsset, isTMultiAsset, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, isOverrideMultiLocationSpecifier, findAssetByMultiLocation, findAssetOnDestOrThrow, hasSupportForAsset, getRelayChainSymbol, isSymbolSpecifier, normalizeMultiLocation, normalizeSymbol, Native, hasXcmPaymentApiSupport, getAssetId, getNativeAssets } from '@paraspell/assets';
|
|
3
3
|
export * from '@paraspell/assets';
|
|
4
4
|
import { base58 } from '@scure/base';
|
|
5
5
|
import { isAddress, createPublicClient, http, getContract } from 'viem';
|
|
@@ -523,6 +523,26 @@ var InvalidParameterError = /*#__PURE__*/function (_Error) {
|
|
|
523
523
|
return _createClass(InvalidParameterError);
|
|
524
524
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
525
525
|
|
|
526
|
+
/**
|
|
527
|
+
* Error development mode is on and no API override is provided for a specific chain.
|
|
528
|
+
*/
|
|
529
|
+
var MissingChainApiError = /*#__PURE__*/function (_Error) {
|
|
530
|
+
/**
|
|
531
|
+
* Constructs a new MissingChainApiError.
|
|
532
|
+
*
|
|
533
|
+
* @param chain - The node for which the API is missing.
|
|
534
|
+
*/
|
|
535
|
+
function MissingChainApiError(chain) {
|
|
536
|
+
var _this;
|
|
537
|
+
_classCallCheck(this, MissingChainApiError);
|
|
538
|
+
_this = _callSuper(this, MissingChainApiError, ["Development mode requires an API override for ".concat(chain, ". ") + "Please provide an API client or WebSocket URL in the apiOverrides configuration."]);
|
|
539
|
+
_this.name = 'MissingChainApiError';
|
|
540
|
+
return _this;
|
|
541
|
+
}
|
|
542
|
+
_inherits(MissingChainApiError, _Error);
|
|
543
|
+
return _createClass(MissingChainApiError);
|
|
544
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
545
|
+
|
|
526
546
|
/**
|
|
527
547
|
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
528
548
|
*/
|
|
@@ -739,6 +759,13 @@ var assertIsForeign = function assertIsForeign(asset) {
|
|
|
739
759
|
}
|
|
740
760
|
};
|
|
741
761
|
|
|
762
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
763
|
+
var isConfig = function isConfig(value) {
|
|
764
|
+
return _typeof(value) === 'object' && value !== null && !Array.isArray(value) && (
|
|
765
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
766
|
+
Object.keys(value).length === 0 || 'apiOverrides' in value || 'development' in value);
|
|
767
|
+
};
|
|
768
|
+
|
|
742
769
|
/**
|
|
743
770
|
* Retrieves the node instance for a given node.
|
|
744
771
|
*
|
|
@@ -752,7 +779,7 @@ var getNode = function getNode(node) {
|
|
|
752
779
|
|
|
753
780
|
var getChainVersion = function getChainVersion(chain) {
|
|
754
781
|
if (isRelayChain(chain) || chain === 'Ethereum') {
|
|
755
|
-
return Version.
|
|
782
|
+
return Version.V5;
|
|
756
783
|
}
|
|
757
784
|
return getNode(chain).version;
|
|
758
785
|
};
|
|
@@ -1067,6 +1094,28 @@ var Darwinia$1 = {
|
|
|
1067
1094
|
}
|
|
1068
1095
|
]
|
|
1069
1096
|
};
|
|
1097
|
+
var EnergyWebX$1 = {
|
|
1098
|
+
name: "Energy Web X",
|
|
1099
|
+
info: "ewx",
|
|
1100
|
+
paraId: 3345,
|
|
1101
|
+
providers: [
|
|
1102
|
+
{
|
|
1103
|
+
name: "Energy Web",
|
|
1104
|
+
endpoint: "wss://public-rpc.mainnet.energywebx.com/"
|
|
1105
|
+
}
|
|
1106
|
+
]
|
|
1107
|
+
};
|
|
1108
|
+
var EnergyWebXPaseo$1 = {
|
|
1109
|
+
name: "PEX",
|
|
1110
|
+
info: "paseoEwx",
|
|
1111
|
+
paraId: 3345,
|
|
1112
|
+
providers: [
|
|
1113
|
+
{
|
|
1114
|
+
name: "Energy Web",
|
|
1115
|
+
endpoint: "wss://public-rpc.testnet.energywebx.com/"
|
|
1116
|
+
}
|
|
1117
|
+
]
|
|
1118
|
+
};
|
|
1070
1119
|
var Hydration$1 = {
|
|
1071
1120
|
name: "Hydration",
|
|
1072
1121
|
info: "hydradx",
|
|
@@ -1090,6 +1139,32 @@ var Hydration$1 = {
|
|
|
1090
1139
|
}
|
|
1091
1140
|
]
|
|
1092
1141
|
};
|
|
1142
|
+
var IntegriteeKusama$1 = {
|
|
1143
|
+
name: "Integritee Network",
|
|
1144
|
+
info: "integritee",
|
|
1145
|
+
paraId: 2015,
|
|
1146
|
+
providers: [
|
|
1147
|
+
{
|
|
1148
|
+
name: "Integritee",
|
|
1149
|
+
endpoint: "wss://kusama.api.integritee.network"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
name: "OnFinality",
|
|
1153
|
+
endpoint: "wss://integritee-kusama.api.onfinality.io/public-ws"
|
|
1154
|
+
}
|
|
1155
|
+
]
|
|
1156
|
+
};
|
|
1157
|
+
var IntegriteePaseo$1 = {
|
|
1158
|
+
name: "Integritee Network (Paseo)",
|
|
1159
|
+
info: "integritee",
|
|
1160
|
+
paraId: 2039,
|
|
1161
|
+
providers: [
|
|
1162
|
+
{
|
|
1163
|
+
name: "Integritee",
|
|
1164
|
+
endpoint: "wss://paseo.api.integritee.network"
|
|
1165
|
+
}
|
|
1166
|
+
]
|
|
1167
|
+
};
|
|
1093
1168
|
var Interlay$1 = {
|
|
1094
1169
|
name: "Interlay",
|
|
1095
1170
|
info: "interlay",
|
|
@@ -1924,14 +1999,6 @@ var AssetHubWestend$1 = {
|
|
|
1924
1999
|
name: "Dwellir Tunisia",
|
|
1925
2000
|
endpoint: "wss://westmint-rpc-tn.dwellir.com"
|
|
1926
2001
|
},
|
|
1927
|
-
{
|
|
1928
|
-
name: "IBP1",
|
|
1929
|
-
endpoint: "wss://sys.ibp.network/asset-hub-westend"
|
|
1930
|
-
},
|
|
1931
|
-
{
|
|
1932
|
-
name: "IBP2",
|
|
1933
|
-
endpoint: "wss://asset-hub-westend.dotters.network"
|
|
1934
|
-
},
|
|
1935
2002
|
{
|
|
1936
2003
|
name: "Parity",
|
|
1937
2004
|
endpoint: "wss://westend-asset-hub-rpc.polkadot.io"
|
|
@@ -1955,14 +2022,6 @@ var BridgeHubWestend$1 = {
|
|
|
1955
2022
|
name: "Dwellir Tunisia",
|
|
1956
2023
|
endpoint: "wss://westend-bridge-hub-rpc-tn.dwellir.com"
|
|
1957
2024
|
},
|
|
1958
|
-
{
|
|
1959
|
-
name: "IBP1",
|
|
1960
|
-
endpoint: "wss://sys.ibp.network/bridgehub-westend"
|
|
1961
|
-
},
|
|
1962
|
-
{
|
|
1963
|
-
name: "IBP2",
|
|
1964
|
-
endpoint: "wss://bridge-hub-westend.dotters.network"
|
|
1965
|
-
},
|
|
1966
2025
|
{
|
|
1967
2026
|
name: "Parity",
|
|
1968
2027
|
endpoint: "wss://westend-bridge-hub-rpc.polkadot.io"
|
|
@@ -1982,14 +2041,6 @@ var CollectivesWestend$1 = {
|
|
|
1982
2041
|
name: "Dwellir Tunisia",
|
|
1983
2042
|
endpoint: "wss://westend-collectives-rpc-tn.dwellir.com"
|
|
1984
2043
|
},
|
|
1985
|
-
{
|
|
1986
|
-
name: "IBP1",
|
|
1987
|
-
endpoint: "wss://sys.ibp.network/collectives-westend"
|
|
1988
|
-
},
|
|
1989
|
-
{
|
|
1990
|
-
name: "IBP2",
|
|
1991
|
-
endpoint: "wss://collectives-westend.dotters.network"
|
|
1992
|
-
},
|
|
1993
2044
|
{
|
|
1994
2045
|
name: "Parity",
|
|
1995
2046
|
endpoint: "wss://westend-collectives-rpc.polkadot.io"
|
|
@@ -2005,14 +2056,6 @@ var CoretimeWestend$1 = {
|
|
|
2005
2056
|
name: "Dwellir",
|
|
2006
2057
|
endpoint: "wss://coretime-westend-rpc.n.dwellir.com"
|
|
2007
2058
|
},
|
|
2008
|
-
{
|
|
2009
|
-
name: "IBP1",
|
|
2010
|
-
endpoint: "wss://sys.ibp.network/coretime-westend"
|
|
2011
|
-
},
|
|
2012
|
-
{
|
|
2013
|
-
name: "IBP2",
|
|
2014
|
-
endpoint: "wss://coretime-westend.dotters.network"
|
|
2015
|
-
},
|
|
2016
2059
|
{
|
|
2017
2060
|
name: "Parity",
|
|
2018
2061
|
endpoint: "wss://westend-coretime-rpc.polkadot.io"
|
|
@@ -2028,14 +2071,6 @@ var PeopleWestend$1 = {
|
|
|
2028
2071
|
name: "Dwellir",
|
|
2029
2072
|
endpoint: "wss://people-westend-rpc.n.dwellir.com"
|
|
2030
2073
|
},
|
|
2031
|
-
{
|
|
2032
|
-
name: "IBP1",
|
|
2033
|
-
endpoint: "wss://sys.ibp.network/people-westend"
|
|
2034
|
-
},
|
|
2035
|
-
{
|
|
2036
|
-
name: "IBP2",
|
|
2037
|
-
endpoint: "wss://people-westend.dotters.network"
|
|
2038
|
-
},
|
|
2039
2074
|
{
|
|
2040
2075
|
name: "Parity",
|
|
2041
2076
|
endpoint: "wss://westend-people-rpc.polkadot.io"
|
|
@@ -2119,6 +2154,10 @@ var PAssetHub$1 = {
|
|
|
2119
2154
|
name: "IBP1",
|
|
2120
2155
|
endpoint: "wss://passet-hub-paseo.ibp.network"
|
|
2121
2156
|
},
|
|
2157
|
+
{
|
|
2158
|
+
name: "IBP2",
|
|
2159
|
+
endpoint: "wss://passet-hub-paseo.dotters.network"
|
|
2160
|
+
},
|
|
2122
2161
|
{
|
|
2123
2162
|
name: "Parity",
|
|
2124
2163
|
endpoint: "wss://testnet-passet-hub.polkadot.io"
|
|
@@ -2292,6 +2331,10 @@ var Polkadot = {
|
|
|
2292
2331
|
name: "RadiumBlock",
|
|
2293
2332
|
endpoint: "wss://polkadot.public.curie.radiumblock.co/ws"
|
|
2294
2333
|
},
|
|
2334
|
+
{
|
|
2335
|
+
name: "Simply Staking",
|
|
2336
|
+
endpoint: "wss://spectrum-01.simplystaking.xyz/cG9sa2Fkb3QtMDEtOTFkMmYwZGYtcG9sa2Fkb3Q/uj77qtNEPueW1w/polkadot/mainnet/"
|
|
2337
|
+
},
|
|
2295
2338
|
{
|
|
2296
2339
|
name: "Stakeworld",
|
|
2297
2340
|
endpoint: "wss://dot-rpc.stakeworld.io"
|
|
@@ -2362,14 +2405,6 @@ var Westend = {
|
|
|
2362
2405
|
name: "Dwellir Tunisia",
|
|
2363
2406
|
endpoint: "wss://westend-rpc-tn.dwellir.com"
|
|
2364
2407
|
},
|
|
2365
|
-
{
|
|
2366
|
-
name: "IBP1",
|
|
2367
|
-
endpoint: "wss://rpc.ibp.network/westend"
|
|
2368
|
-
},
|
|
2369
|
-
{
|
|
2370
|
-
name: "IBP2",
|
|
2371
|
-
endpoint: "wss://westend.dotters.network"
|
|
2372
|
-
},
|
|
2373
2408
|
{
|
|
2374
2409
|
name: "OnFinality",
|
|
2375
2410
|
endpoint: "wss://westend.api.onfinality.io/public-ws"
|
|
@@ -2422,7 +2457,11 @@ var configs = {
|
|
|
2422
2457
|
Centrifuge: Centrifuge$1,
|
|
2423
2458
|
ComposableFinance: ComposableFinance$1,
|
|
2424
2459
|
Darwinia: Darwinia$1,
|
|
2460
|
+
EnergyWebX: EnergyWebX$1,
|
|
2461
|
+
EnergyWebXPaseo: EnergyWebXPaseo$1,
|
|
2425
2462
|
Hydration: Hydration$1,
|
|
2463
|
+
IntegriteeKusama: IntegriteeKusama$1,
|
|
2464
|
+
IntegriteePaseo: IntegriteePaseo$1,
|
|
2426
2465
|
Interlay: Interlay$1,
|
|
2427
2466
|
Heima: Heima$1,
|
|
2428
2467
|
Jamton: Jamton$1,
|
|
@@ -3154,7 +3193,7 @@ var prepareExecuteContext = function prepareExecuteContext(_ref) {
|
|
|
3154
3193
|
version = _ref.version;
|
|
3155
3194
|
assertHasLocation(asset);
|
|
3156
3195
|
if (feeAsset) assertHasLocation(feeAsset);
|
|
3157
|
-
var amount =
|
|
3196
|
+
var amount = asset.amount;
|
|
3158
3197
|
var reserveChain = getAssetReserveChain(chain, destChain, asset.multiLocation);
|
|
3159
3198
|
var multiAsset = createMultiAsset(version, amount, asset.multiLocation);
|
|
3160
3199
|
var multiAssetLocalized = createMultiAsset(version, amount, localizeLocation(chain, asset.multiLocation));
|
|
@@ -3326,7 +3365,7 @@ var createExecuteExchangeXcm = function createExecuteExchangeXcm(input, origin,
|
|
|
3326
3365
|
WithdrawAsset: [{
|
|
3327
3366
|
id: transformedMultiLocation,
|
|
3328
3367
|
fun: {
|
|
3329
|
-
Fungible:
|
|
3368
|
+
Fungible: asset.amount
|
|
3330
3369
|
}
|
|
3331
3370
|
}]
|
|
3332
3371
|
}, {
|
|
@@ -3682,7 +3721,7 @@ var getBalanceForeign = /*#__PURE__*/function () {
|
|
|
3682
3721
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
3683
3722
|
var api;
|
|
3684
3723
|
return _regenerator().w(function (_context2) {
|
|
3685
|
-
while (1) switch (_context2.n) {
|
|
3724
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
3686
3725
|
case 0:
|
|
3687
3726
|
api = options.api;
|
|
3688
3727
|
_context2.p = 1;
|
|
@@ -3761,7 +3800,7 @@ var getBalanceNative = /*#__PURE__*/function () {
|
|
|
3761
3800
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
3762
3801
|
var api;
|
|
3763
3802
|
return _regenerator().w(function (_context2) {
|
|
3764
|
-
while (1) switch (_context2.n) {
|
|
3803
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
3765
3804
|
case 0:
|
|
3766
3805
|
api = options.api;
|
|
3767
3806
|
_context2.p = 1;
|
|
@@ -3853,7 +3892,7 @@ var getAssetBalance = /*#__PURE__*/function () {
|
|
|
3853
3892
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
3854
3893
|
var api;
|
|
3855
3894
|
return _regenerator().w(function (_context2) {
|
|
3856
|
-
while (1) switch (_context2.n) {
|
|
3895
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
3857
3896
|
case 0:
|
|
3858
3897
|
api = options.api;
|
|
3859
3898
|
_context2.p = 1;
|
|
@@ -3922,7 +3961,7 @@ var getOriginFeeDetails = /*#__PURE__*/function () {
|
|
|
3922
3961
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
3923
3962
|
var api;
|
|
3924
3963
|
return _regenerator().w(function (_context2) {
|
|
3925
|
-
while (1) switch (_context2.n) {
|
|
3964
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
3926
3965
|
case 0:
|
|
3927
3966
|
api = options.api;
|
|
3928
3967
|
api.setDisconnectAllowed(false);
|
|
@@ -4092,6 +4131,8 @@ var isSufficientOrigin = /*#__PURE__*/function () {
|
|
|
4092
4131
|
return _context.a(2, isSufficientNative && isSufficientAsset);
|
|
4093
4132
|
case 5:
|
|
4094
4133
|
return _context.a(2, balanceNative - edNative - feeNative - BigInt(currency.amount) > 0n);
|
|
4134
|
+
case 6:
|
|
4135
|
+
return _context.a(2);
|
|
4095
4136
|
}
|
|
4096
4137
|
}, _callee);
|
|
4097
4138
|
}));
|
|
@@ -4153,7 +4194,7 @@ var getDestXcmFee = /*#__PURE__*/function () {
|
|
|
4153
4194
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
4154
4195
|
var originAsset, _t;
|
|
4155
4196
|
return _regenerator().w(function (_context) {
|
|
4156
|
-
while (1) switch (_context.n) {
|
|
4197
|
+
while (1) switch (_context.p = _context.n) {
|
|
4157
4198
|
case 0:
|
|
4158
4199
|
if (!(destination === 'Ethereum')) {
|
|
4159
4200
|
_context.n = 1;
|
|
@@ -4640,7 +4681,7 @@ var generateMessageId = /*#__PURE__*/function () {
|
|
|
4640
4681
|
var getBridgeStatus = /*#__PURE__*/function () {
|
|
4641
4682
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(api) {
|
|
4642
4683
|
return _regenerator().w(function (_context) {
|
|
4643
|
-
while (1) switch (_context.n) {
|
|
4684
|
+
while (1) switch (_context.p = _context.n) {
|
|
4644
4685
|
case 0:
|
|
4645
4686
|
_context.n = 1;
|
|
4646
4687
|
return api.init('BridgeHubPolkadot');
|
|
@@ -4875,7 +4916,7 @@ function _traverseXcmHops() {
|
|
|
4875
4916
|
_traverseXcmHops = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(config) {
|
|
4876
4917
|
var api, origin, destination, currency, initialForwardedXcms, initialDestParaId, swapConfig, processHop, shouldContinue, extractNextHopData, assetHubNode, bridgeHubNode, currentOrigin, forwardedXcms, nextParaId, asset, currentAsset, hasPassedExchange, hops, intermediateResults, destinationResult, nextChain, hopApi, isDestination, isAssetHub, isBridgeHub, hopResult, _extractNextHopData, newXcms, destParaId;
|
|
4877
4918
|
return _regenerator().w(function (_context2) {
|
|
4878
|
-
while (1) switch (_context2.n) {
|
|
4919
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
4879
4920
|
case 0:
|
|
4880
4921
|
api = config.api, origin = config.origin, destination = config.destination, currency = config.currency, initialForwardedXcms = config.initialForwardedXcms, initialDestParaId = config.initialDestParaId, swapConfig = config.swapConfig, processHop = config.processHop, shouldContinue = config.shouldContinue, extractNextHopData = config.extractNextHopData;
|
|
4881
4922
|
assetHubNode = "AssetHub".concat(getRelayChainOf(origin));
|
|
@@ -5213,7 +5254,7 @@ var dryRun = /*#__PURE__*/function () {
|
|
|
5213
5254
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
5214
5255
|
var api, senderAddress, origin;
|
|
5215
5256
|
return _regenerator().w(function (_context) {
|
|
5216
|
-
while (1) switch (_context.n) {
|
|
5257
|
+
while (1) switch (_context.p = _context.n) {
|
|
5217
5258
|
case 0:
|
|
5218
5259
|
api = options.api, senderAddress = options.senderAddress, origin = options.origin;
|
|
5219
5260
|
validateAddress(senderAddress, origin, false);
|
|
@@ -5245,7 +5286,7 @@ var dryRunOrigin = /*#__PURE__*/function () {
|
|
|
5245
5286
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
5246
5287
|
var api, node, address, result;
|
|
5247
5288
|
return _regenerator().w(function (_context) {
|
|
5248
|
-
while (1) switch (_context.n) {
|
|
5289
|
+
while (1) switch (_context.p = _context.n) {
|
|
5249
5290
|
case 0:
|
|
5250
5291
|
api = options.api, node = options.node, address = options.address;
|
|
5251
5292
|
validateAddress(address, node, false);
|
|
@@ -5464,14 +5505,9 @@ var resolveOverriddenAsset = function resolveOverriddenAsset(options, isBridge,
|
|
|
5464
5505
|
};
|
|
5465
5506
|
|
|
5466
5507
|
var selectXcmVersion = function selectXcmVersion(forcedVersion, originVersion, destMaxVersion) {
|
|
5467
|
-
if (forcedVersion)
|
|
5468
|
-
return forcedVersion;
|
|
5469
|
-
}
|
|
5508
|
+
if (forcedVersion) return forcedVersion;
|
|
5470
5509
|
var destVersion = destMaxVersion !== null && destMaxVersion !== void 0 ? destMaxVersion : originVersion;
|
|
5471
|
-
|
|
5472
|
-
return Version.V3;
|
|
5473
|
-
}
|
|
5474
|
-
return originVersion;
|
|
5510
|
+
return destVersion < originVersion ? destVersion : originVersion;
|
|
5475
5511
|
};
|
|
5476
5512
|
|
|
5477
5513
|
var shouldPerformAssetCheck = function shouldPerformAssetCheck(origin, currency) {
|
|
@@ -5604,7 +5640,7 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5604
5640
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
|
|
5605
5641
|
var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, asset, _yield$getOriginXcmFe, originFee, originCurrency, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubNode, processedBridgeHub, bridgeHubNode, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
|
|
5606
5642
|
return _regenerator().w(function (_context2) {
|
|
5607
|
-
while (1) switch (_context2.n) {
|
|
5643
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
5608
5644
|
case 0:
|
|
5609
5645
|
api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset, disableFallback = _ref.disableFallback, swapConfig = _ref.swapConfig;
|
|
5610
5646
|
asset = findAssetForNodeOrThrow(origin, currency, destination);
|
|
@@ -6010,7 +6046,7 @@ var transferRelayToPara = /*#__PURE__*/function () {
|
|
|
6010
6046
|
case 0:
|
|
6011
6047
|
api = options.api, origin = options.origin, destination = options.destination, asset = options.asset, address = options.address, paraIdTo = options.paraIdTo, version = options.version, pallet = options.pallet, method = options.method;
|
|
6012
6048
|
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
6013
|
-
if (!(api.
|
|
6049
|
+
if (!(api.getConfig() === undefined && isMultiLocationDestination)) {
|
|
6014
6050
|
_context.n = 1;
|
|
6015
6051
|
break;
|
|
6016
6052
|
}
|
|
@@ -6274,7 +6310,7 @@ var getTransferableAmount = /*#__PURE__*/function () {
|
|
|
6274
6310
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
6275
6311
|
var api;
|
|
6276
6312
|
return _regenerator().w(function (_context2) {
|
|
6277
|
-
while (1) switch (_context2.n) {
|
|
6313
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
6278
6314
|
case 0:
|
|
6279
6315
|
api = options.api;
|
|
6280
6316
|
api.setDisconnectAllowed(false);
|
|
@@ -6418,7 +6454,7 @@ var buildHopInfo = /*#__PURE__*/function () {
|
|
|
6418
6454
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
|
|
6419
6455
|
var api, node, feeData, originNode, currency, senderAddress, ahAddress, hopApi, resolvedAddress, nativeBalanceOnHop, nativeAssetSymbolOnHop, xcmFeeDetails, isBridgeHubNode, hopAsset, hopCurrencyPayload, balance, ed;
|
|
6420
6456
|
return _regenerator().w(function (_context) {
|
|
6421
|
-
while (1) switch (_context.n) {
|
|
6457
|
+
while (1) switch (_context.p = _context.n) {
|
|
6422
6458
|
case 0:
|
|
6423
6459
|
api = _ref.api, node = _ref.node, feeData = _ref.feeData, originNode = _ref.originNode, currency = _ref.currency, senderAddress = _ref.senderAddress, ahAddress = _ref.ahAddress;
|
|
6424
6460
|
hopApi = api.clone();
|
|
@@ -6501,7 +6537,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
6501
6537
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
|
|
6502
6538
|
var api, tx, origin, destination, senderAddress, ahAddress, address, currency, feeAsset, resolvedFeeAsset, originAsset, originBalanceFee, originBalance, edOrigin, _yield$getXcmFee, _yield$getXcmFee$orig, originFee, originFeeCurrency, assetHubFeeResult, bridgeHubFeeResult, destFeeDetail, hops, isFeeAssetAh, originBalanceAfter, originBalanceFeeAfter, originBalanceNativeSufficient, originBalanceSufficient, assetHub, bridgeHub, bridgeHubNode, builtHops, destinationInfo, _t;
|
|
6503
6539
|
return _regenerator().w(function (_context2) {
|
|
6504
|
-
while (1) switch (_context2.n) {
|
|
6540
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
6505
6541
|
case 0:
|
|
6506
6542
|
api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, ahAddress = _ref.ahAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset;
|
|
6507
6543
|
if (!(isNodeEvm(origin) && !ahAddress)) {
|
|
@@ -6840,7 +6876,7 @@ var verifyEdOnDestination = /*#__PURE__*/function () {
|
|
|
6840
6876
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
6841
6877
|
var api;
|
|
6842
6878
|
return _regenerator().w(function (_context) {
|
|
6843
|
-
while (1) switch (_context.n) {
|
|
6879
|
+
while (1) switch (_context.p = _context.n) {
|
|
6844
6880
|
case 0:
|
|
6845
6881
|
api = options.api;
|
|
6846
6882
|
_context.p = 1;
|
|
@@ -6922,7 +6958,7 @@ var handleExecuteTransfer = /*#__PURE__*/function () {
|
|
|
6922
6958
|
case 4:
|
|
6923
6959
|
feeAssetBalance = _t;
|
|
6924
6960
|
checkAmount = function checkAmount(fee) {
|
|
6925
|
-
if (
|
|
6961
|
+
if (asset.amount <= fee) {
|
|
6926
6962
|
throw new InvalidParameterError("Asset amount is too low, please increase the amount or use a different fee asset.");
|
|
6927
6963
|
}
|
|
6928
6964
|
};
|
|
@@ -7008,7 +7044,7 @@ var createExchangeInstructions = /*#__PURE__*/function () {
|
|
|
7008
7044
|
nativeSymbol = getNativeAssetSymbol(exchangeChain);
|
|
7009
7045
|
needsMultiHop = isMultiHopSwap(exchangeChain, assetFrom, assetTo);
|
|
7010
7046
|
nativeAsset = findAssetForNodeOrThrow(exchangeChain, {
|
|
7011
|
-
symbol: nativeSymbol
|
|
7047
|
+
symbol: Native(nativeSymbol)
|
|
7012
7048
|
}, null);
|
|
7013
7049
|
assertHasLocation(nativeAsset);
|
|
7014
7050
|
shouldUseMaximal = !chain || exchangeChain === 'Hydration' && exchangeFee === 0n;
|
|
@@ -7476,7 +7512,7 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
7476
7512
|
// If the default tx dry run failed, we need to create execute transaction
|
|
7477
7513
|
dummyTx = createExecuteExchangeXcm(input, origin, MAX_WEIGHT,
|
|
7478
7514
|
// Enter dummy fee values just to get the dry run to pass
|
|
7479
|
-
|
|
7515
|
+
asset.amount, asset.amount / 2n);
|
|
7480
7516
|
_context.n = 6;
|
|
7481
7517
|
return getXcmFee({
|
|
7482
7518
|
api: api,
|
|
@@ -7886,7 +7922,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
7886
7922
|
dest: isNodeEvm(this.node) ? address : {
|
|
7887
7923
|
Id: address
|
|
7888
7924
|
},
|
|
7889
|
-
value:
|
|
7925
|
+
value: asset.amount
|
|
7890
7926
|
}
|
|
7891
7927
|
});
|
|
7892
7928
|
}
|
|
@@ -7905,7 +7941,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
7905
7941
|
Id: address
|
|
7906
7942
|
},
|
|
7907
7943
|
currency_id: BigInt(asset.assetId),
|
|
7908
|
-
amount:
|
|
7944
|
+
amount: asset.amount
|
|
7909
7945
|
}
|
|
7910
7946
|
});
|
|
7911
7947
|
}
|
|
@@ -7938,7 +7974,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
7938
7974
|
AH_EXECUTION_FEE_PADDED = ASSET_HUB_EXECUTION_FEE * 125n / 100n; // Perform a dry run AH -> dest to calculate the BuyExecution amount
|
|
7939
7975
|
_context2.n = 3;
|
|
7940
7976
|
return Builder(api.clone()).from('AssetHubPolkadot').to(destination).currency({
|
|
7941
|
-
symbol: 'DOT',
|
|
7977
|
+
symbol: Native('DOT'),
|
|
7942
7978
|
amount: AH_EXECUTION_FEE_PADDED
|
|
7943
7979
|
}).address(address).senderAddress(senderAddress).dryRun();
|
|
7944
7980
|
case 3:
|
|
@@ -8181,7 +8217,7 @@ var Acala = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8181
8217
|
dest: {
|
|
8182
8218
|
Id: address
|
|
8183
8219
|
},
|
|
8184
|
-
amount:
|
|
8220
|
+
amount: asset.amount
|
|
8185
8221
|
}
|
|
8186
8222
|
});
|
|
8187
8223
|
}
|
|
@@ -8202,7 +8238,7 @@ var Acala = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8202
8238
|
Id: address
|
|
8203
8239
|
},
|
|
8204
8240
|
currency_id: this.getCurrencySelection(asset),
|
|
8205
|
-
amount:
|
|
8241
|
+
amount: asset.amount
|
|
8206
8242
|
}
|
|
8207
8243
|
});
|
|
8208
8244
|
}
|
|
@@ -8294,7 +8330,7 @@ var Ajuna = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8294
8330
|
target: {
|
|
8295
8331
|
Id: address
|
|
8296
8332
|
},
|
|
8297
|
-
amount:
|
|
8333
|
+
amount: asset.amount
|
|
8298
8334
|
}
|
|
8299
8335
|
});
|
|
8300
8336
|
}
|
|
@@ -8347,7 +8383,7 @@ var Altair = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8347
8383
|
Id: address
|
|
8348
8384
|
},
|
|
8349
8385
|
currency_id: this.getCurrencySelection(asset),
|
|
8350
|
-
amount:
|
|
8386
|
+
amount: asset.amount
|
|
8351
8387
|
}
|
|
8352
8388
|
});
|
|
8353
8389
|
}
|
|
@@ -8376,7 +8412,7 @@ var Amplitude = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8376
8412
|
var AssetHubKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
8377
8413
|
function AssetHubKusama() {
|
|
8378
8414
|
_classCallCheck(this, AssetHubKusama);
|
|
8379
|
-
return _callSuper(this, AssetHubKusama, ['AssetHubKusama', 'KusamaAssetHub', 'kusama', Version.
|
|
8415
|
+
return _callSuper(this, AssetHubKusama, ['AssetHubKusama', 'KusamaAssetHub', 'kusama', Version.V5]);
|
|
8380
8416
|
}
|
|
8381
8417
|
_inherits(AssetHubKusama, _ParachainNode);
|
|
8382
8418
|
return _createClass(AssetHubKusama, [{
|
|
@@ -8443,7 +8479,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8443
8479
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'AssetHubPolkadot';
|
|
8444
8480
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'PolkadotAssetHub';
|
|
8445
8481
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8446
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.
|
|
8482
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
8447
8483
|
_classCallCheck(this, AssetHubPolkadot);
|
|
8448
8484
|
_this = _callSuper(this, AssetHubPolkadot, [chain, info, type, version]);
|
|
8449
8485
|
_this.handleLocalReserveTransfer = function (input) {
|
|
@@ -8812,7 +8848,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8812
8848
|
target: {
|
|
8813
8849
|
Id: address
|
|
8814
8850
|
},
|
|
8815
|
-
amount:
|
|
8851
|
+
amount: asset.amount
|
|
8816
8852
|
}
|
|
8817
8853
|
});
|
|
8818
8854
|
}
|
|
@@ -8824,7 +8860,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8824
8860
|
target: {
|
|
8825
8861
|
Id: address
|
|
8826
8862
|
},
|
|
8827
|
-
amount:
|
|
8863
|
+
amount: asset.amount
|
|
8828
8864
|
}
|
|
8829
8865
|
});
|
|
8830
8866
|
}
|
|
@@ -8834,7 +8870,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8834
8870
|
var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
8835
8871
|
function AssetHubPaseo() {
|
|
8836
8872
|
_classCallCheck(this, AssetHubPaseo);
|
|
8837
|
-
return _callSuper(this, AssetHubPaseo, ['AssetHubPaseo', 'PaseoAssetHub', 'paseo', Version.
|
|
8873
|
+
return _callSuper(this, AssetHubPaseo, ['AssetHubPaseo', 'PaseoAssetHub', 'paseo', Version.V5]);
|
|
8838
8874
|
}
|
|
8839
8875
|
_inherits(AssetHubPaseo, _AssetHubPolkadot);
|
|
8840
8876
|
return _createClass(AssetHubPaseo);
|
|
@@ -8843,7 +8879,7 @@ var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
8843
8879
|
var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
8844
8880
|
function AssetHubWestend() {
|
|
8845
8881
|
_classCallCheck(this, AssetHubWestend);
|
|
8846
|
-
return _callSuper(this, AssetHubWestend, ['AssetHubWestend', 'WestendAssetHub', 'westend', Version.
|
|
8882
|
+
return _callSuper(this, AssetHubWestend, ['AssetHubWestend', 'WestendAssetHub', 'westend', Version.V5]);
|
|
8847
8883
|
}
|
|
8848
8884
|
_inherits(AssetHubWestend, _AssetHubPolkadot);
|
|
8849
8885
|
return _createClass(AssetHubWestend);
|
|
@@ -8852,7 +8888,7 @@ var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
8852
8888
|
var Astar = /*#__PURE__*/function (_ParachainNode) {
|
|
8853
8889
|
function Astar() {
|
|
8854
8890
|
_classCallCheck(this, Astar);
|
|
8855
|
-
return _callSuper(this, Astar, ['Astar', 'astar', 'polkadot', Version.
|
|
8891
|
+
return _callSuper(this, Astar, ['Astar', 'astar', 'polkadot', Version.V5]);
|
|
8856
8892
|
}
|
|
8857
8893
|
_inherits(Astar, _ParachainNode);
|
|
8858
8894
|
return _createClass(Astar, [{
|
|
@@ -8890,7 +8926,7 @@ var Astar = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8890
8926
|
target: {
|
|
8891
8927
|
Id: address
|
|
8892
8928
|
},
|
|
8893
|
-
amount:
|
|
8929
|
+
amount: asset.amount
|
|
8894
8930
|
}
|
|
8895
8931
|
});
|
|
8896
8932
|
}
|
|
@@ -8926,7 +8962,7 @@ var Basilisk = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8926
8962
|
var BifrostKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
8927
8963
|
function BifrostKusama() {
|
|
8928
8964
|
_classCallCheck(this, BifrostKusama);
|
|
8929
|
-
return _callSuper(this, BifrostKusama, ['BifrostKusama', 'bifrost', 'kusama', Version.
|
|
8965
|
+
return _callSuper(this, BifrostKusama, ['BifrostKusama', 'bifrost', 'kusama', Version.V5]);
|
|
8930
8966
|
}
|
|
8931
8967
|
_inherits(BifrostKusama, _ParachainNode);
|
|
8932
8968
|
return _createClass(BifrostKusama, [{
|
|
@@ -8947,7 +8983,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8947
8983
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BifrostPolkadot';
|
|
8948
8984
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'bifrost';
|
|
8949
8985
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8950
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.
|
|
8986
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
8951
8987
|
_classCallCheck(this, BifrostPolkadot);
|
|
8952
8988
|
return _callSuper(this, BifrostPolkadot, [chain, info, type, version]);
|
|
8953
8989
|
}
|
|
@@ -9041,7 +9077,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9041
9077
|
Id: address
|
|
9042
9078
|
},
|
|
9043
9079
|
currency_id: this.getCurrencySelection(asset),
|
|
9044
|
-
amount:
|
|
9080
|
+
amount: asset.amount
|
|
9045
9081
|
}
|
|
9046
9082
|
});
|
|
9047
9083
|
}
|
|
@@ -9051,7 +9087,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9051
9087
|
var BifrostPaseo = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
9052
9088
|
function BifrostPaseo() {
|
|
9053
9089
|
_classCallCheck(this, BifrostPaseo);
|
|
9054
|
-
return _callSuper(this, BifrostPaseo, ['BifrostPaseo', 'Bifrost(Paseo)', 'paseo', Version.
|
|
9090
|
+
return _callSuper(this, BifrostPaseo, ['BifrostPaseo', 'Bifrost(Paseo)', 'paseo', Version.V5]);
|
|
9055
9091
|
}
|
|
9056
9092
|
_inherits(BifrostPaseo, _BifrostPolkadot);
|
|
9057
9093
|
return _createClass(BifrostPaseo);
|
|
@@ -9060,7 +9096,7 @@ var BifrostPaseo = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
|
9060
9096
|
var BridgeHubKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
9061
9097
|
function BridgeHubKusama() {
|
|
9062
9098
|
_classCallCheck(this, BridgeHubKusama);
|
|
9063
|
-
return _callSuper(this, BridgeHubKusama, ['BridgeHubKusama', 'kusamaBridgeHub', 'kusama', Version.
|
|
9099
|
+
return _callSuper(this, BridgeHubKusama, ['BridgeHubKusama', 'kusamaBridgeHub', 'kusama', Version.V5]);
|
|
9064
9100
|
}
|
|
9065
9101
|
_inherits(BridgeHubKusama, _ParachainNode);
|
|
9066
9102
|
return _createClass(BridgeHubKusama, [{
|
|
@@ -9089,7 +9125,7 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9089
9125
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BridgeHubPolkadot';
|
|
9090
9126
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotBridgeHub';
|
|
9091
9127
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9092
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.
|
|
9128
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
9093
9129
|
_classCallCheck(this, BridgeHubPolkadot);
|
|
9094
9130
|
return _callSuper(this, BridgeHubPolkadot, [chain, info, type, version]);
|
|
9095
9131
|
}
|
|
@@ -9118,7 +9154,7 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9118
9154
|
var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
9119
9155
|
function BridgeHubPaseo() {
|
|
9120
9156
|
_classCallCheck(this, BridgeHubPaseo);
|
|
9121
|
-
return _callSuper(this, BridgeHubPaseo, ['BridgeHubPaseo', 'PaseoBridgeHub', 'paseo', Version.
|
|
9157
|
+
return _callSuper(this, BridgeHubPaseo, ['BridgeHubPaseo', 'PaseoBridgeHub', 'paseo', Version.V5]);
|
|
9122
9158
|
}
|
|
9123
9159
|
_inherits(BridgeHubPaseo, _BridgeHubPolkadot);
|
|
9124
9160
|
return _createClass(BridgeHubPaseo);
|
|
@@ -9127,7 +9163,7 @@ var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
|
9127
9163
|
var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
9128
9164
|
function BridgeHubWestend() {
|
|
9129
9165
|
_classCallCheck(this, BridgeHubWestend);
|
|
9130
|
-
return _callSuper(this, BridgeHubWestend, ['BridgeHubWestend', 'westendBridgeHub', 'westend', Version.
|
|
9166
|
+
return _callSuper(this, BridgeHubWestend, ['BridgeHubWestend', 'westendBridgeHub', 'westend', Version.V5]);
|
|
9131
9167
|
}
|
|
9132
9168
|
_inherits(BridgeHubWestend, _BridgeHubPolkadot);
|
|
9133
9169
|
return _createClass(BridgeHubWestend);
|
|
@@ -9170,7 +9206,7 @@ var Centrifuge = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9170
9206
|
Id: address
|
|
9171
9207
|
},
|
|
9172
9208
|
currency_id: this.getCurrencySelection(asset),
|
|
9173
|
-
amount:
|
|
9209
|
+
amount: asset.amount
|
|
9174
9210
|
}
|
|
9175
9211
|
});
|
|
9176
9212
|
}
|
|
@@ -9182,7 +9218,7 @@ var Collectives = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9182
9218
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Collectives';
|
|
9183
9219
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCollectives';
|
|
9184
9220
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9185
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.
|
|
9221
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
9186
9222
|
_classCallCheck(this, Collectives);
|
|
9187
9223
|
return _callSuper(this, Collectives, [chain, info, type, version]);
|
|
9188
9224
|
}
|
|
@@ -9210,7 +9246,7 @@ var Collectives = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9210
9246
|
var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
9211
9247
|
function CollectivesWestend() {
|
|
9212
9248
|
_classCallCheck(this, CollectivesWestend);
|
|
9213
|
-
return _callSuper(this, CollectivesWestend, ['CollectivesWestend', 'westendCollectives', 'westend', Version.
|
|
9249
|
+
return _callSuper(this, CollectivesWestend, ['CollectivesWestend', 'westendCollectives', 'westend', Version.V5]);
|
|
9214
9250
|
}
|
|
9215
9251
|
_inherits(CollectivesWestend, _Collectives);
|
|
9216
9252
|
return _createClass(CollectivesWestend);
|
|
@@ -9235,7 +9271,7 @@ var ComposableFinance = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9235
9271
|
var CoretimeKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
9236
9272
|
function CoretimeKusama() {
|
|
9237
9273
|
_classCallCheck(this, CoretimeKusama);
|
|
9238
|
-
return _callSuper(this, CoretimeKusama, ['CoretimeKusama', 'kusamaCoretime', 'kusama', Version.
|
|
9274
|
+
return _callSuper(this, CoretimeKusama, ['CoretimeKusama', 'kusamaCoretime', 'kusama', Version.V5]);
|
|
9239
9275
|
}
|
|
9240
9276
|
_inherits(CoretimeKusama, _ParachainNode);
|
|
9241
9277
|
return _createClass(CoretimeKusama, [{
|
|
@@ -9262,7 +9298,7 @@ var CoretimePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9262
9298
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'CoretimePolkadot';
|
|
9263
9299
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCoretime';
|
|
9264
9300
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9265
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.
|
|
9301
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
9266
9302
|
_classCallCheck(this, CoretimePolkadot);
|
|
9267
9303
|
return _callSuper(this, CoretimePolkadot, [chain, info, type, version]);
|
|
9268
9304
|
}
|
|
@@ -9288,7 +9324,7 @@ var CoretimePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9288
9324
|
var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
9289
9325
|
function CoretimePaseo() {
|
|
9290
9326
|
_classCallCheck(this, CoretimePaseo);
|
|
9291
|
-
return _callSuper(this, CoretimePaseo, ['CoretimePaseo', 'PaseoCoretime', 'paseo', Version.
|
|
9327
|
+
return _callSuper(this, CoretimePaseo, ['CoretimePaseo', 'PaseoCoretime', 'paseo', Version.V5]);
|
|
9292
9328
|
}
|
|
9293
9329
|
_inherits(CoretimePaseo, _CoretimePolkadot);
|
|
9294
9330
|
return _createClass(CoretimePaseo);
|
|
@@ -9297,7 +9333,7 @@ var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
|
9297
9333
|
var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
9298
9334
|
function CoretimeWestend() {
|
|
9299
9335
|
_classCallCheck(this, CoretimeWestend);
|
|
9300
|
-
return _callSuper(this, CoretimeWestend, ['CoretimeWestend', 'westendCoretime', 'westend', Version.
|
|
9336
|
+
return _callSuper(this, CoretimeWestend, ['CoretimeWestend', 'westendCoretime', 'westend', Version.V5]);
|
|
9301
9337
|
}
|
|
9302
9338
|
_inherits(CoretimeWestend, _CoretimePolkadot);
|
|
9303
9339
|
return _createClass(CoretimeWestend);
|
|
@@ -9312,9 +9348,8 @@ var Crab = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9312
9348
|
return _createClass(Crab, [{
|
|
9313
9349
|
key: "transferPolkadotXCM",
|
|
9314
9350
|
value: function transferPolkadotXCM(input) {
|
|
9315
|
-
// TESTED https://kusama.subscan.io/xcm_message/kusama-ce7396ec470ba0c6516a50075046ee65464572dc
|
|
9316
9351
|
if (input.scenario === 'ParaToPara') {
|
|
9317
|
-
return transferPolkadotXcm(input, '
|
|
9352
|
+
return transferPolkadotXcm(input, 'limited_reserve_transfer_assets', 'Unlimited');
|
|
9318
9353
|
}
|
|
9319
9354
|
throw new ScenarioNotSupportedError(this.node, input.scenario);
|
|
9320
9355
|
}
|
|
@@ -9329,11 +9364,9 @@ var Crab = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9329
9364
|
if (scenario === 'ParaToPara') {
|
|
9330
9365
|
return createMultiAsset(version, amount, {
|
|
9331
9366
|
parents: Parents.ZERO,
|
|
9332
|
-
interior: {
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
}
|
|
9336
|
-
}
|
|
9367
|
+
interior: createX1Payload(version, {
|
|
9368
|
+
PalletInstance: 5
|
|
9369
|
+
})
|
|
9337
9370
|
});
|
|
9338
9371
|
} else {
|
|
9339
9372
|
return _superPropGet(Crab, "createCurrencySpec", this, 3)([amount, scenario, version]);
|
|
@@ -9388,7 +9421,7 @@ var Crust = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9388
9421
|
target: {
|
|
9389
9422
|
Id: address
|
|
9390
9423
|
},
|
|
9391
|
-
amount:
|
|
9424
|
+
amount: asset.amount
|
|
9392
9425
|
}
|
|
9393
9426
|
});
|
|
9394
9427
|
}
|
|
@@ -9492,7 +9525,7 @@ var Darwinia = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9492
9525
|
parameters: {
|
|
9493
9526
|
id: BigInt(asset.assetId),
|
|
9494
9527
|
target: address,
|
|
9495
|
-
amount:
|
|
9528
|
+
amount: asset.amount
|
|
9496
9529
|
}
|
|
9497
9530
|
});
|
|
9498
9531
|
}
|
|
@@ -9502,7 +9535,7 @@ var Darwinia = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9502
9535
|
var Encointer = /*#__PURE__*/function (_ParachainNode) {
|
|
9503
9536
|
function Encointer() {
|
|
9504
9537
|
_classCallCheck(this, Encointer);
|
|
9505
|
-
return _callSuper(this, Encointer, ['Encointer', 'encointer', 'kusama', Version.
|
|
9538
|
+
return _callSuper(this, Encointer, ['Encointer', 'encointer', 'kusama', Version.V5]);
|
|
9506
9539
|
}
|
|
9507
9540
|
_inherits(Encointer, _ParachainNode);
|
|
9508
9541
|
return _createClass(Encointer, [{
|
|
@@ -9526,12 +9559,48 @@ var Encointer = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9526
9559
|
}]);
|
|
9527
9560
|
}(ParachainNode);
|
|
9528
9561
|
|
|
9562
|
+
var EnergyWebX = /*#__PURE__*/function (_ParachainNode) {
|
|
9563
|
+
function EnergyWebX() {
|
|
9564
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'EnergyWebX';
|
|
9565
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ewx';
|
|
9566
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9567
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V3;
|
|
9568
|
+
_classCallCheck(this, EnergyWebX);
|
|
9569
|
+
return _callSuper(this, EnergyWebX, [chain, info, type, version]);
|
|
9570
|
+
}
|
|
9571
|
+
_inherits(EnergyWebX, _ParachainNode);
|
|
9572
|
+
return _createClass(EnergyWebX, [{
|
|
9573
|
+
key: "transferPolkadotXCM",
|
|
9574
|
+
value: function transferPolkadotXCM(input) {
|
|
9575
|
+
var scenario = input.scenario;
|
|
9576
|
+
if (scenario !== 'ParaToPara') {
|
|
9577
|
+
throw new ScenarioNotSupportedError(this.node, scenario);
|
|
9578
|
+
}
|
|
9579
|
+
return transferPolkadotXcm(input, 'limited_reserve_transfer_assets', 'Unlimited');
|
|
9580
|
+
}
|
|
9581
|
+
}, {
|
|
9582
|
+
key: "transferRelayToPara",
|
|
9583
|
+
value: function transferRelayToPara() {
|
|
9584
|
+
throw new NodeNotSupportedError();
|
|
9585
|
+
}
|
|
9586
|
+
}]);
|
|
9587
|
+
}(ParachainNode);
|
|
9588
|
+
|
|
9589
|
+
var EnergyWebXPaseo = /*#__PURE__*/function (_EnergyWebX) {
|
|
9590
|
+
function EnergyWebXPaseo() {
|
|
9591
|
+
_classCallCheck(this, EnergyWebXPaseo);
|
|
9592
|
+
return _callSuper(this, EnergyWebXPaseo, ['EnergyWebXPaseo', 'paseoEwx', 'paseo', Version.V3]);
|
|
9593
|
+
}
|
|
9594
|
+
_inherits(EnergyWebXPaseo, _EnergyWebX);
|
|
9595
|
+
return _createClass(EnergyWebXPaseo);
|
|
9596
|
+
}(EnergyWebX);
|
|
9597
|
+
|
|
9529
9598
|
var Heima = /*#__PURE__*/function (_ParachainNode) {
|
|
9530
9599
|
function Heima() {
|
|
9531
9600
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Heima';
|
|
9532
9601
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'litentry';
|
|
9533
9602
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9534
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.
|
|
9603
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
9535
9604
|
_classCallCheck(this, Heima);
|
|
9536
9605
|
return _callSuper(this, Heima, [chain, info, type, version]);
|
|
9537
9606
|
}
|
|
@@ -9555,7 +9624,7 @@ var Heima = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9555
9624
|
var HeimaPaseo = /*#__PURE__*/function (_Heima) {
|
|
9556
9625
|
function HeimaPaseo() {
|
|
9557
9626
|
_classCallCheck(this, HeimaPaseo);
|
|
9558
|
-
return _callSuper(this, HeimaPaseo, ['HeimaPaseo', 'heima-paseo', 'paseo', Version.
|
|
9627
|
+
return _callSuper(this, HeimaPaseo, ['HeimaPaseo', 'heima-paseo', 'paseo', Version.V5]);
|
|
9559
9628
|
}
|
|
9560
9629
|
_inherits(HeimaPaseo, _Heima);
|
|
9561
9630
|
return _createClass(HeimaPaseo);
|
|
@@ -9660,7 +9729,7 @@ var createCustomXcmPolimec = function createCustomXcmPolimec(api, address, desti
|
|
|
9660
9729
|
var Polimec = /*#__PURE__*/function (_ParachainNode) {
|
|
9661
9730
|
function Polimec() {
|
|
9662
9731
|
_classCallCheck(this, Polimec);
|
|
9663
|
-
return _callSuper(this, Polimec, ['Polimec', 'polimec', 'polkadot', Version.
|
|
9732
|
+
return _callSuper(this, Polimec, ['Polimec', 'polimec', 'polkadot', Version.V5]);
|
|
9664
9733
|
}
|
|
9665
9734
|
_inherits(Polimec, _ParachainNode);
|
|
9666
9735
|
return _createClass(Polimec, [{
|
|
@@ -9727,7 +9796,7 @@ var Polimec = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9727
9796
|
target: {
|
|
9728
9797
|
Id: address
|
|
9729
9798
|
},
|
|
9730
|
-
amount:
|
|
9799
|
+
amount: asset.amount
|
|
9731
9800
|
}
|
|
9732
9801
|
});
|
|
9733
9802
|
}
|
|
@@ -9887,7 +9956,7 @@ var Hydration = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9887
9956
|
method: 'transfer_keep_alive',
|
|
9888
9957
|
parameters: {
|
|
9889
9958
|
dest: address,
|
|
9890
|
-
value:
|
|
9959
|
+
value: asset.amount
|
|
9891
9960
|
}
|
|
9892
9961
|
});
|
|
9893
9962
|
}
|
|
@@ -9904,7 +9973,7 @@ var Hydration = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9904
9973
|
parameters: {
|
|
9905
9974
|
dest: address,
|
|
9906
9975
|
currency_id: Number(asset.assetId),
|
|
9907
|
-
amount:
|
|
9976
|
+
amount: asset.amount
|
|
9908
9977
|
}
|
|
9909
9978
|
});
|
|
9910
9979
|
}
|
|
@@ -9921,6 +9990,65 @@ var HydrationPaseo = /*#__PURE__*/function (_Hydration) {
|
|
|
9921
9990
|
return _createClass(HydrationPaseo);
|
|
9922
9991
|
}(Hydration);
|
|
9923
9992
|
|
|
9993
|
+
var IntegriteeKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
9994
|
+
function IntegriteeKusama() {
|
|
9995
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'IntegriteeKusama';
|
|
9996
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'integritee';
|
|
9997
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'kusama';
|
|
9998
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
9999
|
+
_classCallCheck(this, IntegriteeKusama);
|
|
10000
|
+
return _callSuper(this, IntegriteeKusama, [chain, info, type, version]);
|
|
10001
|
+
}
|
|
10002
|
+
_inherits(IntegriteeKusama, _ParachainNode);
|
|
10003
|
+
return _createClass(IntegriteeKusama, [{
|
|
10004
|
+
key: "transferXTokens",
|
|
10005
|
+
value: function transferXTokens$1(input) {
|
|
10006
|
+
var asset = input.asset,
|
|
10007
|
+
scenario = input.scenario;
|
|
10008
|
+
if (scenario !== 'ParaToPara') {
|
|
10009
|
+
throw new ScenarioNotSupportedError(this.node, scenario);
|
|
10010
|
+
}
|
|
10011
|
+
if (asset.symbol !== this.getNativeAssetSymbol()) {
|
|
10012
|
+
throw new InvalidCurrencyError("Asset ".concat(asset.symbol, " is not supported by chain ").concat(this.node, "."));
|
|
10013
|
+
}
|
|
10014
|
+
return transferXTokens(input, asset.symbol);
|
|
10015
|
+
}
|
|
10016
|
+
}, {
|
|
10017
|
+
key: "transferRelayToPara",
|
|
10018
|
+
value: function transferRelayToPara() {
|
|
10019
|
+
throw new NodeNotSupportedError();
|
|
10020
|
+
}
|
|
10021
|
+
}, {
|
|
10022
|
+
key: "transferLocalNonNativeAsset",
|
|
10023
|
+
value: function transferLocalNonNativeAsset(options) {
|
|
10024
|
+
var api = options.api,
|
|
10025
|
+
asset = options.asset,
|
|
10026
|
+
address = options.address;
|
|
10027
|
+
assertHasId(asset);
|
|
10028
|
+
return api.callTxMethod({
|
|
10029
|
+
module: 'Assets',
|
|
10030
|
+
method: 'transfer',
|
|
10031
|
+
parameters: {
|
|
10032
|
+
id: Number(asset.assetId),
|
|
10033
|
+
target: {
|
|
10034
|
+
Id: address
|
|
10035
|
+
},
|
|
10036
|
+
amount: asset.amount
|
|
10037
|
+
}
|
|
10038
|
+
});
|
|
10039
|
+
}
|
|
10040
|
+
}]);
|
|
10041
|
+
}(ParachainNode);
|
|
10042
|
+
|
|
10043
|
+
var IntegriteePaseo = /*#__PURE__*/function (_IntegriteeKusama) {
|
|
10044
|
+
function IntegriteePaseo() {
|
|
10045
|
+
_classCallCheck(this, IntegriteePaseo);
|
|
10046
|
+
return _callSuper(this, IntegriteePaseo, ['IntegriteePaseo', 'integritee', 'paseo', Version.V4]);
|
|
10047
|
+
}
|
|
10048
|
+
_inherits(IntegriteePaseo, _IntegriteeKusama);
|
|
10049
|
+
return _createClass(IntegriteePaseo);
|
|
10050
|
+
}(IntegriteeKusama);
|
|
10051
|
+
|
|
9924
10052
|
var Interlay = /*#__PURE__*/function (_ParachainNode) {
|
|
9925
10053
|
function Interlay() {
|
|
9926
10054
|
_classCallCheck(this, Interlay);
|
|
@@ -9960,7 +10088,7 @@ var Interlay = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9960
10088
|
parameters: {
|
|
9961
10089
|
dest: address,
|
|
9962
10090
|
currency_id: this.getCurrencySelection(asset),
|
|
9963
|
-
value:
|
|
10091
|
+
value: asset.amount
|
|
9964
10092
|
}
|
|
9965
10093
|
});
|
|
9966
10094
|
}
|
|
@@ -10114,7 +10242,7 @@ var Kintsugi = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10114
10242
|
parameters: {
|
|
10115
10243
|
dest: address,
|
|
10116
10244
|
currency_id: this.getCurrencySelection(asset),
|
|
10117
|
-
value:
|
|
10245
|
+
value: asset.amount
|
|
10118
10246
|
}
|
|
10119
10247
|
});
|
|
10120
10248
|
}
|
|
@@ -10202,7 +10330,7 @@ var Manta = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10202
10330
|
target: {
|
|
10203
10331
|
Id: address
|
|
10204
10332
|
},
|
|
10205
|
-
amount:
|
|
10333
|
+
amount: asset.amount
|
|
10206
10334
|
}
|
|
10207
10335
|
});
|
|
10208
10336
|
}
|
|
@@ -10215,7 +10343,7 @@ var Moonbeam = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10215
10343
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Moonbeam';
|
|
10216
10344
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'moonbeam';
|
|
10217
10345
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10218
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.
|
|
10346
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
10219
10347
|
_classCallCheck(this, Moonbeam);
|
|
10220
10348
|
return _callSuper(this, Moonbeam, [chain, info, type, version]);
|
|
10221
10349
|
}
|
|
@@ -10272,7 +10400,7 @@ var Moonbeam = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10272
10400
|
parameters: {
|
|
10273
10401
|
id: BigInt(asset.assetId),
|
|
10274
10402
|
target: address,
|
|
10275
|
-
amount:
|
|
10403
|
+
amount: asset.amount
|
|
10276
10404
|
}
|
|
10277
10405
|
});
|
|
10278
10406
|
}
|
|
@@ -10282,7 +10410,7 @@ var Moonbeam = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10282
10410
|
var Moonriver = /*#__PURE__*/function (_ParachainNode) {
|
|
10283
10411
|
function Moonriver() {
|
|
10284
10412
|
_classCallCheck(this, Moonriver);
|
|
10285
|
-
return _callSuper(this, Moonriver, ['Moonriver', 'moonriver', 'kusama', Version.
|
|
10413
|
+
return _callSuper(this, Moonriver, ['Moonriver', 'moonriver', 'kusama', Version.V5]);
|
|
10286
10414
|
}
|
|
10287
10415
|
_inherits(Moonriver, _ParachainNode);
|
|
10288
10416
|
return _createClass(Moonriver, [{
|
|
@@ -10404,7 +10532,7 @@ var createTypeAndThenTransfer = /*#__PURE__*/function () {
|
|
|
10404
10532
|
var Mythos = /*#__PURE__*/function (_ParachainNode) {
|
|
10405
10533
|
function Mythos() {
|
|
10406
10534
|
_classCallCheck(this, Mythos);
|
|
10407
|
-
return _callSuper(this, Mythos, ['Mythos', 'mythos', 'polkadot', Version.
|
|
10535
|
+
return _callSuper(this, Mythos, ['Mythos', 'mythos', 'polkadot', Version.V5]);
|
|
10408
10536
|
}
|
|
10409
10537
|
_inherits(Mythos, _ParachainNode);
|
|
10410
10538
|
return _createClass(Mythos, [{
|
|
@@ -10541,7 +10669,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10541
10669
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'PeoplePolkadot';
|
|
10542
10670
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotPeople';
|
|
10543
10671
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10544
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.
|
|
10672
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V5;
|
|
10545
10673
|
_classCallCheck(this, PeoplePolkadot);
|
|
10546
10674
|
return _callSuper(this, PeoplePolkadot, [chain, info, type, version]);
|
|
10547
10675
|
}
|
|
@@ -10569,7 +10697,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10569
10697
|
var PAssetHub = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10570
10698
|
function PAssetHub() {
|
|
10571
10699
|
_classCallCheck(this, PAssetHub);
|
|
10572
|
-
return _callSuper(this, PAssetHub, ['PAssetHub', 'PAssetHub - Contracts', 'paseo', Version.
|
|
10700
|
+
return _callSuper(this, PAssetHub, ['PAssetHub', 'PAssetHub - Contracts', 'paseo', Version.V5]);
|
|
10573
10701
|
}
|
|
10574
10702
|
_inherits(PAssetHub, _PeoplePolkadot);
|
|
10575
10703
|
return _createClass(PAssetHub);
|
|
@@ -10612,7 +10740,7 @@ var Peaq = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10612
10740
|
target: {
|
|
10613
10741
|
Id: address
|
|
10614
10742
|
},
|
|
10615
|
-
amount:
|
|
10743
|
+
amount: asset.amount
|
|
10616
10744
|
}
|
|
10617
10745
|
});
|
|
10618
10746
|
}
|
|
@@ -10664,7 +10792,7 @@ var Penpal = /*#__PURE__*/function (_Moonbeam) {
|
|
|
10664
10792
|
var PeopleKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
10665
10793
|
function PeopleKusama() {
|
|
10666
10794
|
_classCallCheck(this, PeopleKusama);
|
|
10667
|
-
return _callSuper(this, PeopleKusama, ['PeopleKusama', 'kusamaPeople', 'kusama', Version.
|
|
10795
|
+
return _callSuper(this, PeopleKusama, ['PeopleKusama', 'kusamaPeople', 'kusama', Version.V5]);
|
|
10668
10796
|
}
|
|
10669
10797
|
_inherits(PeopleKusama, _ParachainNode);
|
|
10670
10798
|
return _createClass(PeopleKusama, [{
|
|
@@ -10691,7 +10819,7 @@ var PeopleKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10691
10819
|
var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10692
10820
|
function PeoplePaseo() {
|
|
10693
10821
|
_classCallCheck(this, PeoplePaseo);
|
|
10694
|
-
return _callSuper(this, PeoplePaseo, ['PeoplePaseo', 'PaseoPeopleChain', 'paseo', Version.
|
|
10822
|
+
return _callSuper(this, PeoplePaseo, ['PeoplePaseo', 'PaseoPeopleChain', 'paseo', Version.V5]);
|
|
10695
10823
|
}
|
|
10696
10824
|
_inherits(PeoplePaseo, _PeoplePolkadot);
|
|
10697
10825
|
return _createClass(PeoplePaseo);
|
|
@@ -10700,7 +10828,7 @@ var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
|
10700
10828
|
var PeopleWestend = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10701
10829
|
function PeopleWestend() {
|
|
10702
10830
|
_classCallCheck(this, PeopleWestend);
|
|
10703
|
-
return _callSuper(this, PeopleWestend, ['PeopleWestend', 'westendPeople', 'westend', Version.
|
|
10831
|
+
return _callSuper(this, PeopleWestend, ['PeopleWestend', 'westendPeople', 'westend', Version.V5]);
|
|
10704
10832
|
}
|
|
10705
10833
|
_inherits(PeopleWestend, _PeoplePolkadot);
|
|
10706
10834
|
return _createClass(PeopleWestend);
|
|
@@ -10793,7 +10921,7 @@ var Phala = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10793
10921
|
target: {
|
|
10794
10922
|
Id: address
|
|
10795
10923
|
},
|
|
10796
|
-
amount:
|
|
10924
|
+
amount: asset.amount
|
|
10797
10925
|
}
|
|
10798
10926
|
});
|
|
10799
10927
|
}
|
|
@@ -10803,7 +10931,7 @@ var Phala = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10803
10931
|
var Quartz = /*#__PURE__*/function (_ParachainNode) {
|
|
10804
10932
|
function Quartz() {
|
|
10805
10933
|
_classCallCheck(this, Quartz);
|
|
10806
|
-
return _callSuper(this, Quartz, ['Quartz', 'quartz', 'kusama', Version.
|
|
10934
|
+
return _callSuper(this, Quartz, ['Quartz', 'quartz', 'kusama', Version.V5]);
|
|
10807
10935
|
}
|
|
10808
10936
|
_inherits(Quartz, _ParachainNode);
|
|
10809
10937
|
return _createClass(Quartz, [{
|
|
@@ -10865,7 +10993,7 @@ var RobonomicsPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10865
10993
|
target: {
|
|
10866
10994
|
Id: address
|
|
10867
10995
|
},
|
|
10868
|
-
amount:
|
|
10996
|
+
amount: asset.amount
|
|
10869
10997
|
}
|
|
10870
10998
|
});
|
|
10871
10999
|
}
|
|
@@ -10875,7 +11003,7 @@ var RobonomicsPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10875
11003
|
var Shiden = /*#__PURE__*/function (_ParachainNode) {
|
|
10876
11004
|
function Shiden() {
|
|
10877
11005
|
_classCallCheck(this, Shiden);
|
|
10878
|
-
return _callSuper(this, Shiden, ['Shiden', 'shiden', 'kusama', Version.
|
|
11006
|
+
return _callSuper(this, Shiden, ['Shiden', 'shiden', 'kusama', Version.V5]);
|
|
10879
11007
|
}
|
|
10880
11008
|
_inherits(Shiden, _ParachainNode);
|
|
10881
11009
|
return _createClass(Shiden, [{
|
|
@@ -10929,7 +11057,7 @@ var Subsocial = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10929
11057
|
var Unique = /*#__PURE__*/function (_ParachainNode) {
|
|
10930
11058
|
function Unique() {
|
|
10931
11059
|
_classCallCheck(this, Unique);
|
|
10932
|
-
return _callSuper(this, Unique, ['Unique', 'unique', 'polkadot', Version.
|
|
11060
|
+
return _callSuper(this, Unique, ['Unique', 'unique', 'polkadot', Version.V5]);
|
|
10933
11061
|
}
|
|
10934
11062
|
_inherits(Unique, _ParachainNode);
|
|
10935
11063
|
return _createClass(Unique, [{
|
|
@@ -10992,7 +11120,7 @@ var Zeitgeist = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10992
11120
|
Id: address
|
|
10993
11121
|
},
|
|
10994
11122
|
currency_id: this.getCurrencySelection(asset),
|
|
10995
|
-
amount:
|
|
11123
|
+
amount: asset.amount
|
|
10996
11124
|
}
|
|
10997
11125
|
});
|
|
10998
11126
|
}
|
|
@@ -11002,7 +11130,7 @@ var Zeitgeist = /*#__PURE__*/function (_ParachainNode) {
|
|
|
11002
11130
|
var ZeitgeistPaseo = /*#__PURE__*/function (_Zeitgeist) {
|
|
11003
11131
|
function ZeitgeistPaseo() {
|
|
11004
11132
|
_classCallCheck(this, ZeitgeistPaseo);
|
|
11005
|
-
return _callSuper(this, ZeitgeistPaseo, ['ZeitgeistPaseo', 'ZeitgeistBatteryStation', 'paseo', Version.
|
|
11133
|
+
return _callSuper(this, ZeitgeistPaseo, ['ZeitgeistPaseo', 'ZeitgeistBatteryStation', 'paseo', Version.V4]);
|
|
11006
11134
|
}
|
|
11007
11135
|
_inherits(ZeitgeistPaseo, _Zeitgeist);
|
|
11008
11136
|
return _createClass(ZeitgeistPaseo);
|
|
@@ -11022,7 +11150,9 @@ var nodes = function nodes() {
|
|
|
11022
11150
|
Centrifuge: new Centrifuge(),
|
|
11023
11151
|
ComposableFinance: new ComposableFinance(),
|
|
11024
11152
|
Darwinia: new Darwinia(),
|
|
11153
|
+
EnergyWebX: new EnergyWebX(),
|
|
11025
11154
|
Hydration: new Hydration(),
|
|
11155
|
+
IntegriteeKusama: new IntegriteeKusama(),
|
|
11026
11156
|
Interlay: new Interlay(),
|
|
11027
11157
|
Heima: new Heima(),
|
|
11028
11158
|
Jamton: new Jamton(),
|
|
@@ -11071,13 +11201,15 @@ var nodes = function nodes() {
|
|
|
11071
11201
|
AssetHubPaseo: new AssetHubPaseo(),
|
|
11072
11202
|
BridgeHubPaseo: new BridgeHubPaseo(),
|
|
11073
11203
|
CoretimePaseo: new CoretimePaseo(),
|
|
11204
|
+
EnergyWebXPaseo: new EnergyWebXPaseo(),
|
|
11205
|
+
IntegriteePaseo: new IntegriteePaseo(),
|
|
11206
|
+
KiltPaseo: new KiltPaseo(),
|
|
11074
11207
|
PAssetHub: new PAssetHub(),
|
|
11075
11208
|
PeoplePaseo: new PeoplePaseo(),
|
|
11076
11209
|
AjunaPaseo: new AjunaPaseo(),
|
|
11077
11210
|
BifrostPaseo: new BifrostPaseo(),
|
|
11078
11211
|
HeimaPaseo: new HeimaPaseo(),
|
|
11079
11212
|
HydrationPaseo: new HydrationPaseo(),
|
|
11080
|
-
KiltPaseo: new KiltPaseo(),
|
|
11081
11213
|
LaosPaseo: new LaosPaseo(),
|
|
11082
11214
|
NeuroWebPaseo: new NeuroWebPaseo(),
|
|
11083
11215
|
NodlePaseo: new NodlePaseo(),
|
|
@@ -11573,7 +11705,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
11573
11705
|
var _options$disableFallb;
|
|
11574
11706
|
var _this$_options3, from, to, address, senderAddress, feeAsset, currency, tx, disableFallback;
|
|
11575
11707
|
return _regenerator().w(function (_context4) {
|
|
11576
|
-
while (1) switch (_context4.n) {
|
|
11708
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
11577
11709
|
case 0:
|
|
11578
11710
|
_this$_options3 = this._options, from = _this$_options3.from, to = _this$_options3.to, address = _this$_options3.address, senderAddress = _this$_options3.senderAddress, feeAsset = _this$_options3.feeAsset, currency = _this$_options3.currency;
|
|
11579
11711
|
assertToIsString(to);
|
|
@@ -11635,7 +11767,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
11635
11767
|
tx,
|
|
11636
11768
|
_args5 = arguments;
|
|
11637
11769
|
return _regenerator().w(function (_context5) {
|
|
11638
|
-
while (1) switch (_context5.n) {
|
|
11770
|
+
while (1) switch (_context5.p = _context5.n) {
|
|
11639
11771
|
case 0:
|
|
11640
11772
|
_ref = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {
|
|
11641
11773
|
disableFallback: false
|
|
@@ -11688,7 +11820,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
11688
11820
|
var _getXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
11689
11821
|
var _this$_options5, from, to, address, senderAddress, currency, tx;
|
|
11690
11822
|
return _regenerator().w(function (_context6) {
|
|
11691
|
-
while (1) switch (_context6.n) {
|
|
11823
|
+
while (1) switch (_context6.p = _context6.n) {
|
|
11692
11824
|
case 0:
|
|
11693
11825
|
_this$_options5 = this._options, from = _this$_options5.from, to = _this$_options5.to, address = _this$_options5.address, senderAddress = _this$_options5.senderAddress, currency = _this$_options5.currency;
|
|
11694
11826
|
assertToIsString(to);
|
|
@@ -11738,7 +11870,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
11738
11870
|
var _getOriginXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
11739
11871
|
var _this$_options6, from, to, senderAddress, currency, tx;
|
|
11740
11872
|
return _regenerator().w(function (_context7) {
|
|
11741
|
-
while (1) switch (_context7.n) {
|
|
11873
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
11742
11874
|
case 0:
|
|
11743
11875
|
_this$_options6 = this._options, from = _this$_options6.from, to = _this$_options6.to, senderAddress = _this$_options6.senderAddress, currency = _this$_options6.currency;
|
|
11744
11876
|
assertToIsString(to);
|
|
@@ -11922,4 +12054,4 @@ var Builder = function Builder(api) {
|
|
|
11922
12054
|
return new GeneralBuilder(api, new BatchTransactionManager());
|
|
11923
12055
|
};
|
|
11924
12056
|
|
|
11925
|
-
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, addEthereumBridgeFees, addXcmVersionHeader, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createMultiAsset, createVersionedMultiAssets, createX1Payload, deriveAccountId, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChainLocation, getChainVersion, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getRelayChainOf, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, localizeLocation, maybeOverrideMultiAsset, maybeOverrideMultiAssets, padFee, padFeeBy, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, sortMultiAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination };
|
|
12057
|
+
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, addEthereumBridgeFees, addXcmVersionHeader, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createMultiAsset, createVersionedMultiAssets, createX1Payload, deriveAccountId, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChainLocation, getChainVersion, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getRelayChainOf, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideMultiAsset, maybeOverrideMultiAssets, padFee, padFeeBy, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, sortMultiAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination };
|