@paraspell/sdk-core 10.10.11 → 10.11.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/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.cjs
CHANGED
|
@@ -522,6 +522,26 @@ var InvalidParameterError = /*#__PURE__*/function (_Error) {
|
|
|
522
522
|
return _createClass(InvalidParameterError);
|
|
523
523
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
524
524
|
|
|
525
|
+
/**
|
|
526
|
+
* Error development mode is on and no API override is provided for a specific chain.
|
|
527
|
+
*/
|
|
528
|
+
var MissingChainApiError = /*#__PURE__*/function (_Error) {
|
|
529
|
+
/**
|
|
530
|
+
* Constructs a new MissingChainApiError.
|
|
531
|
+
*
|
|
532
|
+
* @param chain - The node for which the API is missing.
|
|
533
|
+
*/
|
|
534
|
+
function MissingChainApiError(chain) {
|
|
535
|
+
var _this;
|
|
536
|
+
_classCallCheck(this, MissingChainApiError);
|
|
537
|
+
_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."]);
|
|
538
|
+
_this.name = 'MissingChainApiError';
|
|
539
|
+
return _this;
|
|
540
|
+
}
|
|
541
|
+
_inherits(MissingChainApiError, _Error);
|
|
542
|
+
return _createClass(MissingChainApiError);
|
|
543
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
544
|
+
|
|
525
545
|
/**
|
|
526
546
|
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
527
547
|
*/
|
|
@@ -738,6 +758,13 @@ var assertIsForeign = function assertIsForeign(asset) {
|
|
|
738
758
|
}
|
|
739
759
|
};
|
|
740
760
|
|
|
761
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
762
|
+
var isConfig = function isConfig(value) {
|
|
763
|
+
return _typeof(value) === 'object' && value !== null && !Array.isArray(value) && (
|
|
764
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
765
|
+
Object.keys(value).length === 0 || 'apiOverrides' in value || 'development' in value);
|
|
766
|
+
};
|
|
767
|
+
|
|
741
768
|
/**
|
|
742
769
|
* Retrieves the node instance for a given node.
|
|
743
770
|
*
|
|
@@ -751,7 +778,7 @@ var getNode = function getNode(node) {
|
|
|
751
778
|
|
|
752
779
|
var getChainVersion = function getChainVersion(chain) {
|
|
753
780
|
if (sdkCommon.isRelayChain(chain) || chain === 'Ethereum') {
|
|
754
|
-
return sdkCommon.Version.
|
|
781
|
+
return sdkCommon.Version.V5;
|
|
755
782
|
}
|
|
756
783
|
return getNode(chain).version;
|
|
757
784
|
};
|
|
@@ -1066,6 +1093,28 @@ var Darwinia$1 = {
|
|
|
1066
1093
|
}
|
|
1067
1094
|
]
|
|
1068
1095
|
};
|
|
1096
|
+
var EnergyWebX$1 = {
|
|
1097
|
+
name: "Energy Web X",
|
|
1098
|
+
info: "ewx",
|
|
1099
|
+
paraId: 3345,
|
|
1100
|
+
providers: [
|
|
1101
|
+
{
|
|
1102
|
+
name: "Energy Web",
|
|
1103
|
+
endpoint: "wss://public-rpc.mainnet.energywebx.com/"
|
|
1104
|
+
}
|
|
1105
|
+
]
|
|
1106
|
+
};
|
|
1107
|
+
var EnergyWebXPaseo$1 = {
|
|
1108
|
+
name: "PEX",
|
|
1109
|
+
info: "paseoEwx",
|
|
1110
|
+
paraId: 3345,
|
|
1111
|
+
providers: [
|
|
1112
|
+
{
|
|
1113
|
+
name: "Energy Web",
|
|
1114
|
+
endpoint: "wss://public-rpc.testnet.energywebx.com/"
|
|
1115
|
+
}
|
|
1116
|
+
]
|
|
1117
|
+
};
|
|
1069
1118
|
var Hydration$1 = {
|
|
1070
1119
|
name: "Hydration",
|
|
1071
1120
|
info: "hydradx",
|
|
@@ -1089,6 +1138,32 @@ var Hydration$1 = {
|
|
|
1089
1138
|
}
|
|
1090
1139
|
]
|
|
1091
1140
|
};
|
|
1141
|
+
var IntegriteeKusama$1 = {
|
|
1142
|
+
name: "Integritee Network",
|
|
1143
|
+
info: "integritee",
|
|
1144
|
+
paraId: 2015,
|
|
1145
|
+
providers: [
|
|
1146
|
+
{
|
|
1147
|
+
name: "Integritee",
|
|
1148
|
+
endpoint: "wss://kusama.api.integritee.network"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
name: "OnFinality",
|
|
1152
|
+
endpoint: "wss://integritee-kusama.api.onfinality.io/public-ws"
|
|
1153
|
+
}
|
|
1154
|
+
]
|
|
1155
|
+
};
|
|
1156
|
+
var IntegriteePaseo$1 = {
|
|
1157
|
+
name: "Integritee Network (Paseo)",
|
|
1158
|
+
info: "integritee",
|
|
1159
|
+
paraId: 2039,
|
|
1160
|
+
providers: [
|
|
1161
|
+
{
|
|
1162
|
+
name: "Integritee",
|
|
1163
|
+
endpoint: "wss://paseo.api.integritee.network"
|
|
1164
|
+
}
|
|
1165
|
+
]
|
|
1166
|
+
};
|
|
1092
1167
|
var Interlay$1 = {
|
|
1093
1168
|
name: "Interlay",
|
|
1094
1169
|
info: "interlay",
|
|
@@ -1923,14 +1998,6 @@ var AssetHubWestend$1 = {
|
|
|
1923
1998
|
name: "Dwellir Tunisia",
|
|
1924
1999
|
endpoint: "wss://westmint-rpc-tn.dwellir.com"
|
|
1925
2000
|
},
|
|
1926
|
-
{
|
|
1927
|
-
name: "IBP1",
|
|
1928
|
-
endpoint: "wss://sys.ibp.network/asset-hub-westend"
|
|
1929
|
-
},
|
|
1930
|
-
{
|
|
1931
|
-
name: "IBP2",
|
|
1932
|
-
endpoint: "wss://asset-hub-westend.dotters.network"
|
|
1933
|
-
},
|
|
1934
2001
|
{
|
|
1935
2002
|
name: "Parity",
|
|
1936
2003
|
endpoint: "wss://westend-asset-hub-rpc.polkadot.io"
|
|
@@ -1954,14 +2021,6 @@ var BridgeHubWestend$1 = {
|
|
|
1954
2021
|
name: "Dwellir Tunisia",
|
|
1955
2022
|
endpoint: "wss://westend-bridge-hub-rpc-tn.dwellir.com"
|
|
1956
2023
|
},
|
|
1957
|
-
{
|
|
1958
|
-
name: "IBP1",
|
|
1959
|
-
endpoint: "wss://sys.ibp.network/bridgehub-westend"
|
|
1960
|
-
},
|
|
1961
|
-
{
|
|
1962
|
-
name: "IBP2",
|
|
1963
|
-
endpoint: "wss://bridge-hub-westend.dotters.network"
|
|
1964
|
-
},
|
|
1965
2024
|
{
|
|
1966
2025
|
name: "Parity",
|
|
1967
2026
|
endpoint: "wss://westend-bridge-hub-rpc.polkadot.io"
|
|
@@ -1981,14 +2040,6 @@ var CollectivesWestend$1 = {
|
|
|
1981
2040
|
name: "Dwellir Tunisia",
|
|
1982
2041
|
endpoint: "wss://westend-collectives-rpc-tn.dwellir.com"
|
|
1983
2042
|
},
|
|
1984
|
-
{
|
|
1985
|
-
name: "IBP1",
|
|
1986
|
-
endpoint: "wss://sys.ibp.network/collectives-westend"
|
|
1987
|
-
},
|
|
1988
|
-
{
|
|
1989
|
-
name: "IBP2",
|
|
1990
|
-
endpoint: "wss://collectives-westend.dotters.network"
|
|
1991
|
-
},
|
|
1992
2043
|
{
|
|
1993
2044
|
name: "Parity",
|
|
1994
2045
|
endpoint: "wss://westend-collectives-rpc.polkadot.io"
|
|
@@ -2004,14 +2055,6 @@ var CoretimeWestend$1 = {
|
|
|
2004
2055
|
name: "Dwellir",
|
|
2005
2056
|
endpoint: "wss://coretime-westend-rpc.n.dwellir.com"
|
|
2006
2057
|
},
|
|
2007
|
-
{
|
|
2008
|
-
name: "IBP1",
|
|
2009
|
-
endpoint: "wss://sys.ibp.network/coretime-westend"
|
|
2010
|
-
},
|
|
2011
|
-
{
|
|
2012
|
-
name: "IBP2",
|
|
2013
|
-
endpoint: "wss://coretime-westend.dotters.network"
|
|
2014
|
-
},
|
|
2015
2058
|
{
|
|
2016
2059
|
name: "Parity",
|
|
2017
2060
|
endpoint: "wss://westend-coretime-rpc.polkadot.io"
|
|
@@ -2027,14 +2070,6 @@ var PeopleWestend$1 = {
|
|
|
2027
2070
|
name: "Dwellir",
|
|
2028
2071
|
endpoint: "wss://people-westend-rpc.n.dwellir.com"
|
|
2029
2072
|
},
|
|
2030
|
-
{
|
|
2031
|
-
name: "IBP1",
|
|
2032
|
-
endpoint: "wss://sys.ibp.network/people-westend"
|
|
2033
|
-
},
|
|
2034
|
-
{
|
|
2035
|
-
name: "IBP2",
|
|
2036
|
-
endpoint: "wss://people-westend.dotters.network"
|
|
2037
|
-
},
|
|
2038
2073
|
{
|
|
2039
2074
|
name: "Parity",
|
|
2040
2075
|
endpoint: "wss://westend-people-rpc.polkadot.io"
|
|
@@ -2118,6 +2153,10 @@ var PAssetHub$1 = {
|
|
|
2118
2153
|
name: "IBP1",
|
|
2119
2154
|
endpoint: "wss://passet-hub-paseo.ibp.network"
|
|
2120
2155
|
},
|
|
2156
|
+
{
|
|
2157
|
+
name: "IBP2",
|
|
2158
|
+
endpoint: "wss://passet-hub-paseo.dotters.network"
|
|
2159
|
+
},
|
|
2121
2160
|
{
|
|
2122
2161
|
name: "Parity",
|
|
2123
2162
|
endpoint: "wss://testnet-passet-hub.polkadot.io"
|
|
@@ -2291,6 +2330,10 @@ var Polkadot = {
|
|
|
2291
2330
|
name: "RadiumBlock",
|
|
2292
2331
|
endpoint: "wss://polkadot.public.curie.radiumblock.co/ws"
|
|
2293
2332
|
},
|
|
2333
|
+
{
|
|
2334
|
+
name: "Simply Staking",
|
|
2335
|
+
endpoint: "wss://spectrum-01.simplystaking.xyz/cG9sa2Fkb3QtMDEtOTFkMmYwZGYtcG9sa2Fkb3Q/uj77qtNEPueW1w/polkadot/mainnet/"
|
|
2336
|
+
},
|
|
2294
2337
|
{
|
|
2295
2338
|
name: "Stakeworld",
|
|
2296
2339
|
endpoint: "wss://dot-rpc.stakeworld.io"
|
|
@@ -2361,14 +2404,6 @@ var Westend = {
|
|
|
2361
2404
|
name: "Dwellir Tunisia",
|
|
2362
2405
|
endpoint: "wss://westend-rpc-tn.dwellir.com"
|
|
2363
2406
|
},
|
|
2364
|
-
{
|
|
2365
|
-
name: "IBP1",
|
|
2366
|
-
endpoint: "wss://rpc.ibp.network/westend"
|
|
2367
|
-
},
|
|
2368
|
-
{
|
|
2369
|
-
name: "IBP2",
|
|
2370
|
-
endpoint: "wss://westend.dotters.network"
|
|
2371
|
-
},
|
|
2372
2407
|
{
|
|
2373
2408
|
name: "OnFinality",
|
|
2374
2409
|
endpoint: "wss://westend.api.onfinality.io/public-ws"
|
|
@@ -2421,7 +2456,11 @@ var configs = {
|
|
|
2421
2456
|
Centrifuge: Centrifuge$1,
|
|
2422
2457
|
ComposableFinance: ComposableFinance$1,
|
|
2423
2458
|
Darwinia: Darwinia$1,
|
|
2459
|
+
EnergyWebX: EnergyWebX$1,
|
|
2460
|
+
EnergyWebXPaseo: EnergyWebXPaseo$1,
|
|
2424
2461
|
Hydration: Hydration$1,
|
|
2462
|
+
IntegriteeKusama: IntegriteeKusama$1,
|
|
2463
|
+
IntegriteePaseo: IntegriteePaseo$1,
|
|
2425
2464
|
Interlay: Interlay$1,
|
|
2426
2465
|
Heima: Heima$1,
|
|
2427
2466
|
Jamton: Jamton$1,
|
|
@@ -3153,7 +3192,7 @@ var prepareExecuteContext = function prepareExecuteContext(_ref) {
|
|
|
3153
3192
|
version = _ref.version;
|
|
3154
3193
|
assertHasLocation(asset);
|
|
3155
3194
|
if (feeAsset) assertHasLocation(feeAsset);
|
|
3156
|
-
var amount =
|
|
3195
|
+
var amount = asset.amount;
|
|
3157
3196
|
var reserveChain = getAssetReserveChain(chain, destChain, asset.multiLocation);
|
|
3158
3197
|
var multiAsset = createMultiAsset(version, amount, asset.multiLocation);
|
|
3159
3198
|
var multiAssetLocalized = createMultiAsset(version, amount, localizeLocation(chain, asset.multiLocation));
|
|
@@ -3325,7 +3364,7 @@ var createExecuteExchangeXcm = function createExecuteExchangeXcm(input, origin,
|
|
|
3325
3364
|
WithdrawAsset: [{
|
|
3326
3365
|
id: transformedMultiLocation,
|
|
3327
3366
|
fun: {
|
|
3328
|
-
Fungible:
|
|
3367
|
+
Fungible: asset.amount
|
|
3329
3368
|
}
|
|
3330
3369
|
}]
|
|
3331
3370
|
}, {
|
|
@@ -3681,7 +3720,7 @@ var getBalanceForeign = /*#__PURE__*/function () {
|
|
|
3681
3720
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
3682
3721
|
var api;
|
|
3683
3722
|
return _regenerator().w(function (_context2) {
|
|
3684
|
-
while (1) switch (_context2.n) {
|
|
3723
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
3685
3724
|
case 0:
|
|
3686
3725
|
api = options.api;
|
|
3687
3726
|
_context2.p = 1;
|
|
@@ -3760,7 +3799,7 @@ var getBalanceNative = /*#__PURE__*/function () {
|
|
|
3760
3799
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
3761
3800
|
var api;
|
|
3762
3801
|
return _regenerator().w(function (_context2) {
|
|
3763
|
-
while (1) switch (_context2.n) {
|
|
3802
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
3764
3803
|
case 0:
|
|
3765
3804
|
api = options.api;
|
|
3766
3805
|
_context2.p = 1;
|
|
@@ -3852,7 +3891,7 @@ var getAssetBalance = /*#__PURE__*/function () {
|
|
|
3852
3891
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
3853
3892
|
var api;
|
|
3854
3893
|
return _regenerator().w(function (_context2) {
|
|
3855
|
-
while (1) switch (_context2.n) {
|
|
3894
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
3856
3895
|
case 0:
|
|
3857
3896
|
api = options.api;
|
|
3858
3897
|
_context2.p = 1;
|
|
@@ -3921,7 +3960,7 @@ var getOriginFeeDetails = /*#__PURE__*/function () {
|
|
|
3921
3960
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
3922
3961
|
var api;
|
|
3923
3962
|
return _regenerator().w(function (_context2) {
|
|
3924
|
-
while (1) switch (_context2.n) {
|
|
3963
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
3925
3964
|
case 0:
|
|
3926
3965
|
api = options.api;
|
|
3927
3966
|
api.setDisconnectAllowed(false);
|
|
@@ -4091,6 +4130,8 @@ var isSufficientOrigin = /*#__PURE__*/function () {
|
|
|
4091
4130
|
return _context.a(2, isSufficientNative && isSufficientAsset);
|
|
4092
4131
|
case 5:
|
|
4093
4132
|
return _context.a(2, balanceNative - edNative - feeNative - BigInt(currency.amount) > 0n);
|
|
4133
|
+
case 6:
|
|
4134
|
+
return _context.a(2);
|
|
4094
4135
|
}
|
|
4095
4136
|
}, _callee);
|
|
4096
4137
|
}));
|
|
@@ -4152,7 +4193,7 @@ var getDestXcmFee = /*#__PURE__*/function () {
|
|
|
4152
4193
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
4153
4194
|
var originAsset, _t;
|
|
4154
4195
|
return _regenerator().w(function (_context) {
|
|
4155
|
-
while (1) switch (_context.n) {
|
|
4196
|
+
while (1) switch (_context.p = _context.n) {
|
|
4156
4197
|
case 0:
|
|
4157
4198
|
if (!(destination === 'Ethereum')) {
|
|
4158
4199
|
_context.n = 1;
|
|
@@ -4639,7 +4680,7 @@ var generateMessageId = /*#__PURE__*/function () {
|
|
|
4639
4680
|
var getBridgeStatus = /*#__PURE__*/function () {
|
|
4640
4681
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(api) {
|
|
4641
4682
|
return _regenerator().w(function (_context) {
|
|
4642
|
-
while (1) switch (_context.n) {
|
|
4683
|
+
while (1) switch (_context.p = _context.n) {
|
|
4643
4684
|
case 0:
|
|
4644
4685
|
_context.n = 1;
|
|
4645
4686
|
return api.init('BridgeHubPolkadot');
|
|
@@ -4874,7 +4915,7 @@ function _traverseXcmHops() {
|
|
|
4874
4915
|
_traverseXcmHops = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(config) {
|
|
4875
4916
|
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;
|
|
4876
4917
|
return _regenerator().w(function (_context2) {
|
|
4877
|
-
while (1) switch (_context2.n) {
|
|
4918
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
4878
4919
|
case 0:
|
|
4879
4920
|
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;
|
|
4880
4921
|
assetHubNode = "AssetHub".concat(getRelayChainOf(origin));
|
|
@@ -5212,7 +5253,7 @@ var dryRun = /*#__PURE__*/function () {
|
|
|
5212
5253
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
5213
5254
|
var api, senderAddress, origin;
|
|
5214
5255
|
return _regenerator().w(function (_context) {
|
|
5215
|
-
while (1) switch (_context.n) {
|
|
5256
|
+
while (1) switch (_context.p = _context.n) {
|
|
5216
5257
|
case 0:
|
|
5217
5258
|
api = options.api, senderAddress = options.senderAddress, origin = options.origin;
|
|
5218
5259
|
validateAddress(senderAddress, origin, false);
|
|
@@ -5244,7 +5285,7 @@ var dryRunOrigin = /*#__PURE__*/function () {
|
|
|
5244
5285
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
5245
5286
|
var api, node, address, result;
|
|
5246
5287
|
return _regenerator().w(function (_context) {
|
|
5247
|
-
while (1) switch (_context.n) {
|
|
5288
|
+
while (1) switch (_context.p = _context.n) {
|
|
5248
5289
|
case 0:
|
|
5249
5290
|
api = options.api, node = options.node, address = options.address;
|
|
5250
5291
|
validateAddress(address, node, false);
|
|
@@ -5463,14 +5504,9 @@ var resolveOverriddenAsset = function resolveOverriddenAsset(options, isBridge,
|
|
|
5463
5504
|
};
|
|
5464
5505
|
|
|
5465
5506
|
var selectXcmVersion = function selectXcmVersion(forcedVersion, originVersion, destMaxVersion) {
|
|
5466
|
-
if (forcedVersion)
|
|
5467
|
-
return forcedVersion;
|
|
5468
|
-
}
|
|
5507
|
+
if (forcedVersion) return forcedVersion;
|
|
5469
5508
|
var destVersion = destMaxVersion !== null && destMaxVersion !== void 0 ? destMaxVersion : originVersion;
|
|
5470
|
-
|
|
5471
|
-
return sdkCommon.Version.V3;
|
|
5472
|
-
}
|
|
5473
|
-
return originVersion;
|
|
5509
|
+
return destVersion < originVersion ? destVersion : originVersion;
|
|
5474
5510
|
};
|
|
5475
5511
|
|
|
5476
5512
|
var shouldPerformAssetCheck = function shouldPerformAssetCheck(origin, currency) {
|
|
@@ -5603,7 +5639,7 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5603
5639
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
|
|
5604
5640
|
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;
|
|
5605
5641
|
return _regenerator().w(function (_context2) {
|
|
5606
|
-
while (1) switch (_context2.n) {
|
|
5642
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
5607
5643
|
case 0:
|
|
5608
5644
|
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;
|
|
5609
5645
|
asset = assets.findAssetForNodeOrThrow(origin, currency, destination);
|
|
@@ -6009,7 +6045,7 @@ var transferRelayToPara = /*#__PURE__*/function () {
|
|
|
6009
6045
|
case 0:
|
|
6010
6046
|
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;
|
|
6011
6047
|
isMultiLocationDestination = _typeof(destination) === 'object';
|
|
6012
|
-
if (!(api.
|
|
6048
|
+
if (!(api.getConfig() === undefined && isMultiLocationDestination)) {
|
|
6013
6049
|
_context.n = 1;
|
|
6014
6050
|
break;
|
|
6015
6051
|
}
|
|
@@ -6273,7 +6309,7 @@ var getTransferableAmount = /*#__PURE__*/function () {
|
|
|
6273
6309
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
|
|
6274
6310
|
var api;
|
|
6275
6311
|
return _regenerator().w(function (_context2) {
|
|
6276
|
-
while (1) switch (_context2.n) {
|
|
6312
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
6277
6313
|
case 0:
|
|
6278
6314
|
api = options.api;
|
|
6279
6315
|
api.setDisconnectAllowed(false);
|
|
@@ -6417,7 +6453,7 @@ var buildHopInfo = /*#__PURE__*/function () {
|
|
|
6417
6453
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
|
|
6418
6454
|
var api, node, feeData, originNode, currency, senderAddress, ahAddress, hopApi, resolvedAddress, nativeBalanceOnHop, nativeAssetSymbolOnHop, xcmFeeDetails, isBridgeHubNode, hopAsset, hopCurrencyPayload, balance, ed;
|
|
6419
6455
|
return _regenerator().w(function (_context) {
|
|
6420
|
-
while (1) switch (_context.n) {
|
|
6456
|
+
while (1) switch (_context.p = _context.n) {
|
|
6421
6457
|
case 0:
|
|
6422
6458
|
api = _ref.api, node = _ref.node, feeData = _ref.feeData, originNode = _ref.originNode, currency = _ref.currency, senderAddress = _ref.senderAddress, ahAddress = _ref.ahAddress;
|
|
6423
6459
|
hopApi = api.clone();
|
|
@@ -6500,7 +6536,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
6500
6536
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
|
|
6501
6537
|
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;
|
|
6502
6538
|
return _regenerator().w(function (_context2) {
|
|
6503
|
-
while (1) switch (_context2.n) {
|
|
6539
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
6504
6540
|
case 0:
|
|
6505
6541
|
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;
|
|
6506
6542
|
if (!(assets.isNodeEvm(origin) && !ahAddress)) {
|
|
@@ -6839,7 +6875,7 @@ var verifyEdOnDestination = /*#__PURE__*/function () {
|
|
|
6839
6875
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
6840
6876
|
var api;
|
|
6841
6877
|
return _regenerator().w(function (_context) {
|
|
6842
|
-
while (1) switch (_context.n) {
|
|
6878
|
+
while (1) switch (_context.p = _context.n) {
|
|
6843
6879
|
case 0:
|
|
6844
6880
|
api = options.api;
|
|
6845
6881
|
_context.p = 1;
|
|
@@ -6921,7 +6957,7 @@ var handleExecuteTransfer = /*#__PURE__*/function () {
|
|
|
6921
6957
|
case 4:
|
|
6922
6958
|
feeAssetBalance = _t;
|
|
6923
6959
|
checkAmount = function checkAmount(fee) {
|
|
6924
|
-
if (
|
|
6960
|
+
if (asset.amount <= fee) {
|
|
6925
6961
|
throw new InvalidParameterError("Asset amount is too low, please increase the amount or use a different fee asset.");
|
|
6926
6962
|
}
|
|
6927
6963
|
};
|
|
@@ -7007,7 +7043,7 @@ var createExchangeInstructions = /*#__PURE__*/function () {
|
|
|
7007
7043
|
nativeSymbol = assets.getNativeAssetSymbol(exchangeChain);
|
|
7008
7044
|
needsMultiHop = isMultiHopSwap(exchangeChain, assetFrom, assetTo);
|
|
7009
7045
|
nativeAsset = assets.findAssetForNodeOrThrow(exchangeChain, {
|
|
7010
|
-
symbol: nativeSymbol
|
|
7046
|
+
symbol: assets.Native(nativeSymbol)
|
|
7011
7047
|
}, null);
|
|
7012
7048
|
assertHasLocation(nativeAsset);
|
|
7013
7049
|
shouldUseMaximal = !chain || exchangeChain === 'Hydration' && exchangeFee === 0n;
|
|
@@ -7475,7 +7511,7 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
7475
7511
|
// If the default tx dry run failed, we need to create execute transaction
|
|
7476
7512
|
dummyTx = createExecuteExchangeXcm(input, origin, MAX_WEIGHT,
|
|
7477
7513
|
// Enter dummy fee values just to get the dry run to pass
|
|
7478
|
-
|
|
7514
|
+
asset.amount, asset.amount / 2n);
|
|
7479
7515
|
_context.n = 6;
|
|
7480
7516
|
return getXcmFee({
|
|
7481
7517
|
api: api,
|
|
@@ -7885,7 +7921,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
7885
7921
|
dest: assets.isNodeEvm(this.node) ? address : {
|
|
7886
7922
|
Id: address
|
|
7887
7923
|
},
|
|
7888
|
-
value:
|
|
7924
|
+
value: asset.amount
|
|
7889
7925
|
}
|
|
7890
7926
|
});
|
|
7891
7927
|
}
|
|
@@ -7904,7 +7940,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
7904
7940
|
Id: address
|
|
7905
7941
|
},
|
|
7906
7942
|
currency_id: BigInt(asset.assetId),
|
|
7907
|
-
amount:
|
|
7943
|
+
amount: asset.amount
|
|
7908
7944
|
}
|
|
7909
7945
|
});
|
|
7910
7946
|
}
|
|
@@ -7937,7 +7973,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
7937
7973
|
AH_EXECUTION_FEE_PADDED = ASSET_HUB_EXECUTION_FEE * 125n / 100n; // Perform a dry run AH -> dest to calculate the BuyExecution amount
|
|
7938
7974
|
_context2.n = 3;
|
|
7939
7975
|
return Builder(api.clone()).from('AssetHubPolkadot').to(destination).currency({
|
|
7940
|
-
symbol: 'DOT',
|
|
7976
|
+
symbol: assets.Native('DOT'),
|
|
7941
7977
|
amount: AH_EXECUTION_FEE_PADDED
|
|
7942
7978
|
}).address(address).senderAddress(senderAddress).dryRun();
|
|
7943
7979
|
case 3:
|
|
@@ -8180,7 +8216,7 @@ var Acala = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8180
8216
|
dest: {
|
|
8181
8217
|
Id: address
|
|
8182
8218
|
},
|
|
8183
|
-
amount:
|
|
8219
|
+
amount: asset.amount
|
|
8184
8220
|
}
|
|
8185
8221
|
});
|
|
8186
8222
|
}
|
|
@@ -8201,7 +8237,7 @@ var Acala = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8201
8237
|
Id: address
|
|
8202
8238
|
},
|
|
8203
8239
|
currency_id: this.getCurrencySelection(asset),
|
|
8204
|
-
amount:
|
|
8240
|
+
amount: asset.amount
|
|
8205
8241
|
}
|
|
8206
8242
|
});
|
|
8207
8243
|
}
|
|
@@ -8293,7 +8329,7 @@ var Ajuna = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8293
8329
|
target: {
|
|
8294
8330
|
Id: address
|
|
8295
8331
|
},
|
|
8296
|
-
amount:
|
|
8332
|
+
amount: asset.amount
|
|
8297
8333
|
}
|
|
8298
8334
|
});
|
|
8299
8335
|
}
|
|
@@ -8346,7 +8382,7 @@ var Altair = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8346
8382
|
Id: address
|
|
8347
8383
|
},
|
|
8348
8384
|
currency_id: this.getCurrencySelection(asset),
|
|
8349
|
-
amount:
|
|
8385
|
+
amount: asset.amount
|
|
8350
8386
|
}
|
|
8351
8387
|
});
|
|
8352
8388
|
}
|
|
@@ -8375,7 +8411,7 @@ var Amplitude = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8375
8411
|
var AssetHubKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
8376
8412
|
function AssetHubKusama() {
|
|
8377
8413
|
_classCallCheck(this, AssetHubKusama);
|
|
8378
|
-
return _callSuper(this, AssetHubKusama, ['AssetHubKusama', 'KusamaAssetHub', 'kusama', sdkCommon.Version.
|
|
8414
|
+
return _callSuper(this, AssetHubKusama, ['AssetHubKusama', 'KusamaAssetHub', 'kusama', sdkCommon.Version.V5]);
|
|
8379
8415
|
}
|
|
8380
8416
|
_inherits(AssetHubKusama, _ParachainNode);
|
|
8381
8417
|
return _createClass(AssetHubKusama, [{
|
|
@@ -8442,7 +8478,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8442
8478
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'AssetHubPolkadot';
|
|
8443
8479
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'PolkadotAssetHub';
|
|
8444
8480
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8445
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
8481
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
8446
8482
|
_classCallCheck(this, AssetHubPolkadot);
|
|
8447
8483
|
_this = _callSuper(this, AssetHubPolkadot, [chain, info, type, version]);
|
|
8448
8484
|
_this.handleLocalReserveTransfer = function (input) {
|
|
@@ -8811,7 +8847,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8811
8847
|
target: {
|
|
8812
8848
|
Id: address
|
|
8813
8849
|
},
|
|
8814
|
-
amount:
|
|
8850
|
+
amount: asset.amount
|
|
8815
8851
|
}
|
|
8816
8852
|
});
|
|
8817
8853
|
}
|
|
@@ -8823,7 +8859,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8823
8859
|
target: {
|
|
8824
8860
|
Id: address
|
|
8825
8861
|
},
|
|
8826
|
-
amount:
|
|
8862
|
+
amount: asset.amount
|
|
8827
8863
|
}
|
|
8828
8864
|
});
|
|
8829
8865
|
}
|
|
@@ -8833,7 +8869,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8833
8869
|
var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
8834
8870
|
function AssetHubPaseo() {
|
|
8835
8871
|
_classCallCheck(this, AssetHubPaseo);
|
|
8836
|
-
return _callSuper(this, AssetHubPaseo, ['AssetHubPaseo', 'PaseoAssetHub', 'paseo', sdkCommon.Version.
|
|
8872
|
+
return _callSuper(this, AssetHubPaseo, ['AssetHubPaseo', 'PaseoAssetHub', 'paseo', sdkCommon.Version.V5]);
|
|
8837
8873
|
}
|
|
8838
8874
|
_inherits(AssetHubPaseo, _AssetHubPolkadot);
|
|
8839
8875
|
return _createClass(AssetHubPaseo);
|
|
@@ -8842,7 +8878,7 @@ var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
8842
8878
|
var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
8843
8879
|
function AssetHubWestend() {
|
|
8844
8880
|
_classCallCheck(this, AssetHubWestend);
|
|
8845
|
-
return _callSuper(this, AssetHubWestend, ['AssetHubWestend', 'WestendAssetHub', 'westend', sdkCommon.Version.
|
|
8881
|
+
return _callSuper(this, AssetHubWestend, ['AssetHubWestend', 'WestendAssetHub', 'westend', sdkCommon.Version.V5]);
|
|
8846
8882
|
}
|
|
8847
8883
|
_inherits(AssetHubWestend, _AssetHubPolkadot);
|
|
8848
8884
|
return _createClass(AssetHubWestend);
|
|
@@ -8851,7 +8887,7 @@ var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
8851
8887
|
var Astar = /*#__PURE__*/function (_ParachainNode) {
|
|
8852
8888
|
function Astar() {
|
|
8853
8889
|
_classCallCheck(this, Astar);
|
|
8854
|
-
return _callSuper(this, Astar, ['Astar', 'astar', 'polkadot', sdkCommon.Version.
|
|
8890
|
+
return _callSuper(this, Astar, ['Astar', 'astar', 'polkadot', sdkCommon.Version.V5]);
|
|
8855
8891
|
}
|
|
8856
8892
|
_inherits(Astar, _ParachainNode);
|
|
8857
8893
|
return _createClass(Astar, [{
|
|
@@ -8889,7 +8925,7 @@ var Astar = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8889
8925
|
target: {
|
|
8890
8926
|
Id: address
|
|
8891
8927
|
},
|
|
8892
|
-
amount:
|
|
8928
|
+
amount: asset.amount
|
|
8893
8929
|
}
|
|
8894
8930
|
});
|
|
8895
8931
|
}
|
|
@@ -8925,7 +8961,7 @@ var Basilisk = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8925
8961
|
var BifrostKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
8926
8962
|
function BifrostKusama() {
|
|
8927
8963
|
_classCallCheck(this, BifrostKusama);
|
|
8928
|
-
return _callSuper(this, BifrostKusama, ['BifrostKusama', 'bifrost', 'kusama', sdkCommon.Version.
|
|
8964
|
+
return _callSuper(this, BifrostKusama, ['BifrostKusama', 'bifrost', 'kusama', sdkCommon.Version.V5]);
|
|
8929
8965
|
}
|
|
8930
8966
|
_inherits(BifrostKusama, _ParachainNode);
|
|
8931
8967
|
return _createClass(BifrostKusama, [{
|
|
@@ -8946,7 +8982,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8946
8982
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BifrostPolkadot';
|
|
8947
8983
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'bifrost';
|
|
8948
8984
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8949
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
8985
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
8950
8986
|
_classCallCheck(this, BifrostPolkadot);
|
|
8951
8987
|
return _callSuper(this, BifrostPolkadot, [chain, info, type, version]);
|
|
8952
8988
|
}
|
|
@@ -9040,7 +9076,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9040
9076
|
Id: address
|
|
9041
9077
|
},
|
|
9042
9078
|
currency_id: this.getCurrencySelection(asset),
|
|
9043
|
-
amount:
|
|
9079
|
+
amount: asset.amount
|
|
9044
9080
|
}
|
|
9045
9081
|
});
|
|
9046
9082
|
}
|
|
@@ -9050,7 +9086,7 @@ var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9050
9086
|
var BifrostPaseo = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
9051
9087
|
function BifrostPaseo() {
|
|
9052
9088
|
_classCallCheck(this, BifrostPaseo);
|
|
9053
|
-
return _callSuper(this, BifrostPaseo, ['BifrostPaseo', 'Bifrost(Paseo)', 'paseo', sdkCommon.Version.
|
|
9089
|
+
return _callSuper(this, BifrostPaseo, ['BifrostPaseo', 'Bifrost(Paseo)', 'paseo', sdkCommon.Version.V5]);
|
|
9054
9090
|
}
|
|
9055
9091
|
_inherits(BifrostPaseo, _BifrostPolkadot);
|
|
9056
9092
|
return _createClass(BifrostPaseo);
|
|
@@ -9059,7 +9095,7 @@ var BifrostPaseo = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
|
9059
9095
|
var BridgeHubKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
9060
9096
|
function BridgeHubKusama() {
|
|
9061
9097
|
_classCallCheck(this, BridgeHubKusama);
|
|
9062
|
-
return _callSuper(this, BridgeHubKusama, ['BridgeHubKusama', 'kusamaBridgeHub', 'kusama', sdkCommon.Version.
|
|
9098
|
+
return _callSuper(this, BridgeHubKusama, ['BridgeHubKusama', 'kusamaBridgeHub', 'kusama', sdkCommon.Version.V5]);
|
|
9063
9099
|
}
|
|
9064
9100
|
_inherits(BridgeHubKusama, _ParachainNode);
|
|
9065
9101
|
return _createClass(BridgeHubKusama, [{
|
|
@@ -9088,7 +9124,7 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9088
9124
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BridgeHubPolkadot';
|
|
9089
9125
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotBridgeHub';
|
|
9090
9126
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9091
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
9127
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
9092
9128
|
_classCallCheck(this, BridgeHubPolkadot);
|
|
9093
9129
|
return _callSuper(this, BridgeHubPolkadot, [chain, info, type, version]);
|
|
9094
9130
|
}
|
|
@@ -9117,7 +9153,7 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9117
9153
|
var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
9118
9154
|
function BridgeHubPaseo() {
|
|
9119
9155
|
_classCallCheck(this, BridgeHubPaseo);
|
|
9120
|
-
return _callSuper(this, BridgeHubPaseo, ['BridgeHubPaseo', 'PaseoBridgeHub', 'paseo', sdkCommon.Version.
|
|
9156
|
+
return _callSuper(this, BridgeHubPaseo, ['BridgeHubPaseo', 'PaseoBridgeHub', 'paseo', sdkCommon.Version.V5]);
|
|
9121
9157
|
}
|
|
9122
9158
|
_inherits(BridgeHubPaseo, _BridgeHubPolkadot);
|
|
9123
9159
|
return _createClass(BridgeHubPaseo);
|
|
@@ -9126,7 +9162,7 @@ var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
|
9126
9162
|
var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
9127
9163
|
function BridgeHubWestend() {
|
|
9128
9164
|
_classCallCheck(this, BridgeHubWestend);
|
|
9129
|
-
return _callSuper(this, BridgeHubWestend, ['BridgeHubWestend', 'westendBridgeHub', 'westend', sdkCommon.Version.
|
|
9165
|
+
return _callSuper(this, BridgeHubWestend, ['BridgeHubWestend', 'westendBridgeHub', 'westend', sdkCommon.Version.V5]);
|
|
9130
9166
|
}
|
|
9131
9167
|
_inherits(BridgeHubWestend, _BridgeHubPolkadot);
|
|
9132
9168
|
return _createClass(BridgeHubWestend);
|
|
@@ -9169,7 +9205,7 @@ var Centrifuge = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9169
9205
|
Id: address
|
|
9170
9206
|
},
|
|
9171
9207
|
currency_id: this.getCurrencySelection(asset),
|
|
9172
|
-
amount:
|
|
9208
|
+
amount: asset.amount
|
|
9173
9209
|
}
|
|
9174
9210
|
});
|
|
9175
9211
|
}
|
|
@@ -9181,7 +9217,7 @@ var Collectives = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9181
9217
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Collectives';
|
|
9182
9218
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCollectives';
|
|
9183
9219
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9184
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
9220
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
9185
9221
|
_classCallCheck(this, Collectives);
|
|
9186
9222
|
return _callSuper(this, Collectives, [chain, info, type, version]);
|
|
9187
9223
|
}
|
|
@@ -9209,7 +9245,7 @@ var Collectives = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9209
9245
|
var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
9210
9246
|
function CollectivesWestend() {
|
|
9211
9247
|
_classCallCheck(this, CollectivesWestend);
|
|
9212
|
-
return _callSuper(this, CollectivesWestend, ['CollectivesWestend', 'westendCollectives', 'westend', sdkCommon.Version.
|
|
9248
|
+
return _callSuper(this, CollectivesWestend, ['CollectivesWestend', 'westendCollectives', 'westend', sdkCommon.Version.V5]);
|
|
9213
9249
|
}
|
|
9214
9250
|
_inherits(CollectivesWestend, _Collectives);
|
|
9215
9251
|
return _createClass(CollectivesWestend);
|
|
@@ -9234,7 +9270,7 @@ var ComposableFinance = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9234
9270
|
var CoretimeKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
9235
9271
|
function CoretimeKusama() {
|
|
9236
9272
|
_classCallCheck(this, CoretimeKusama);
|
|
9237
|
-
return _callSuper(this, CoretimeKusama, ['CoretimeKusama', 'kusamaCoretime', 'kusama', sdkCommon.Version.
|
|
9273
|
+
return _callSuper(this, CoretimeKusama, ['CoretimeKusama', 'kusamaCoretime', 'kusama', sdkCommon.Version.V5]);
|
|
9238
9274
|
}
|
|
9239
9275
|
_inherits(CoretimeKusama, _ParachainNode);
|
|
9240
9276
|
return _createClass(CoretimeKusama, [{
|
|
@@ -9261,7 +9297,7 @@ var CoretimePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9261
9297
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'CoretimePolkadot';
|
|
9262
9298
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCoretime';
|
|
9263
9299
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9264
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
9300
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
9265
9301
|
_classCallCheck(this, CoretimePolkadot);
|
|
9266
9302
|
return _callSuper(this, CoretimePolkadot, [chain, info, type, version]);
|
|
9267
9303
|
}
|
|
@@ -9287,7 +9323,7 @@ var CoretimePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9287
9323
|
var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
9288
9324
|
function CoretimePaseo() {
|
|
9289
9325
|
_classCallCheck(this, CoretimePaseo);
|
|
9290
|
-
return _callSuper(this, CoretimePaseo, ['CoretimePaseo', 'PaseoCoretime', 'paseo', sdkCommon.Version.
|
|
9326
|
+
return _callSuper(this, CoretimePaseo, ['CoretimePaseo', 'PaseoCoretime', 'paseo', sdkCommon.Version.V5]);
|
|
9291
9327
|
}
|
|
9292
9328
|
_inherits(CoretimePaseo, _CoretimePolkadot);
|
|
9293
9329
|
return _createClass(CoretimePaseo);
|
|
@@ -9296,7 +9332,7 @@ var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
|
9296
9332
|
var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
9297
9333
|
function CoretimeWestend() {
|
|
9298
9334
|
_classCallCheck(this, CoretimeWestend);
|
|
9299
|
-
return _callSuper(this, CoretimeWestend, ['CoretimeWestend', 'westendCoretime', 'westend', sdkCommon.Version.
|
|
9335
|
+
return _callSuper(this, CoretimeWestend, ['CoretimeWestend', 'westendCoretime', 'westend', sdkCommon.Version.V5]);
|
|
9300
9336
|
}
|
|
9301
9337
|
_inherits(CoretimeWestend, _CoretimePolkadot);
|
|
9302
9338
|
return _createClass(CoretimeWestend);
|
|
@@ -9311,9 +9347,8 @@ var Crab = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9311
9347
|
return _createClass(Crab, [{
|
|
9312
9348
|
key: "transferPolkadotXCM",
|
|
9313
9349
|
value: function transferPolkadotXCM(input) {
|
|
9314
|
-
// TESTED https://kusama.subscan.io/xcm_message/kusama-ce7396ec470ba0c6516a50075046ee65464572dc
|
|
9315
9350
|
if (input.scenario === 'ParaToPara') {
|
|
9316
|
-
return transferPolkadotXcm(input, '
|
|
9351
|
+
return transferPolkadotXcm(input, 'limited_reserve_transfer_assets', 'Unlimited');
|
|
9317
9352
|
}
|
|
9318
9353
|
throw new ScenarioNotSupportedError(this.node, input.scenario);
|
|
9319
9354
|
}
|
|
@@ -9328,11 +9363,9 @@ var Crab = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9328
9363
|
if (scenario === 'ParaToPara') {
|
|
9329
9364
|
return createMultiAsset(version, amount, {
|
|
9330
9365
|
parents: sdkCommon.Parents.ZERO,
|
|
9331
|
-
interior: {
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
}
|
|
9335
|
-
}
|
|
9366
|
+
interior: createX1Payload(version, {
|
|
9367
|
+
PalletInstance: 5
|
|
9368
|
+
})
|
|
9336
9369
|
});
|
|
9337
9370
|
} else {
|
|
9338
9371
|
return _superPropGet(Crab, "createCurrencySpec", this, 3)([amount, scenario, version]);
|
|
@@ -9387,7 +9420,7 @@ var Crust = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9387
9420
|
target: {
|
|
9388
9421
|
Id: address
|
|
9389
9422
|
},
|
|
9390
|
-
amount:
|
|
9423
|
+
amount: asset.amount
|
|
9391
9424
|
}
|
|
9392
9425
|
});
|
|
9393
9426
|
}
|
|
@@ -9491,7 +9524,7 @@ var Darwinia = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9491
9524
|
parameters: {
|
|
9492
9525
|
id: BigInt(asset.assetId),
|
|
9493
9526
|
target: address,
|
|
9494
|
-
amount:
|
|
9527
|
+
amount: asset.amount
|
|
9495
9528
|
}
|
|
9496
9529
|
});
|
|
9497
9530
|
}
|
|
@@ -9501,7 +9534,7 @@ var Darwinia = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9501
9534
|
var Encointer = /*#__PURE__*/function (_ParachainNode) {
|
|
9502
9535
|
function Encointer() {
|
|
9503
9536
|
_classCallCheck(this, Encointer);
|
|
9504
|
-
return _callSuper(this, Encointer, ['Encointer', 'encointer', 'kusama', sdkCommon.Version.
|
|
9537
|
+
return _callSuper(this, Encointer, ['Encointer', 'encointer', 'kusama', sdkCommon.Version.V5]);
|
|
9505
9538
|
}
|
|
9506
9539
|
_inherits(Encointer, _ParachainNode);
|
|
9507
9540
|
return _createClass(Encointer, [{
|
|
@@ -9525,12 +9558,48 @@ var Encointer = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9525
9558
|
}]);
|
|
9526
9559
|
}(ParachainNode);
|
|
9527
9560
|
|
|
9561
|
+
var EnergyWebX = /*#__PURE__*/function (_ParachainNode) {
|
|
9562
|
+
function EnergyWebX() {
|
|
9563
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'EnergyWebX';
|
|
9564
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ewx';
|
|
9565
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9566
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V3;
|
|
9567
|
+
_classCallCheck(this, EnergyWebX);
|
|
9568
|
+
return _callSuper(this, EnergyWebX, [chain, info, type, version]);
|
|
9569
|
+
}
|
|
9570
|
+
_inherits(EnergyWebX, _ParachainNode);
|
|
9571
|
+
return _createClass(EnergyWebX, [{
|
|
9572
|
+
key: "transferPolkadotXCM",
|
|
9573
|
+
value: function transferPolkadotXCM(input) {
|
|
9574
|
+
var scenario = input.scenario;
|
|
9575
|
+
if (scenario !== 'ParaToPara') {
|
|
9576
|
+
throw new ScenarioNotSupportedError(this.node, scenario);
|
|
9577
|
+
}
|
|
9578
|
+
return transferPolkadotXcm(input, 'limited_reserve_transfer_assets', 'Unlimited');
|
|
9579
|
+
}
|
|
9580
|
+
}, {
|
|
9581
|
+
key: "transferRelayToPara",
|
|
9582
|
+
value: function transferRelayToPara() {
|
|
9583
|
+
throw new NodeNotSupportedError();
|
|
9584
|
+
}
|
|
9585
|
+
}]);
|
|
9586
|
+
}(ParachainNode);
|
|
9587
|
+
|
|
9588
|
+
var EnergyWebXPaseo = /*#__PURE__*/function (_EnergyWebX) {
|
|
9589
|
+
function EnergyWebXPaseo() {
|
|
9590
|
+
_classCallCheck(this, EnergyWebXPaseo);
|
|
9591
|
+
return _callSuper(this, EnergyWebXPaseo, ['EnergyWebXPaseo', 'paseoEwx', 'paseo', sdkCommon.Version.V3]);
|
|
9592
|
+
}
|
|
9593
|
+
_inherits(EnergyWebXPaseo, _EnergyWebX);
|
|
9594
|
+
return _createClass(EnergyWebXPaseo);
|
|
9595
|
+
}(EnergyWebX);
|
|
9596
|
+
|
|
9528
9597
|
var Heima = /*#__PURE__*/function (_ParachainNode) {
|
|
9529
9598
|
function Heima() {
|
|
9530
9599
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Heima';
|
|
9531
9600
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'litentry';
|
|
9532
9601
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9533
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
9602
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
9534
9603
|
_classCallCheck(this, Heima);
|
|
9535
9604
|
return _callSuper(this, Heima, [chain, info, type, version]);
|
|
9536
9605
|
}
|
|
@@ -9554,7 +9623,7 @@ var Heima = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9554
9623
|
var HeimaPaseo = /*#__PURE__*/function (_Heima) {
|
|
9555
9624
|
function HeimaPaseo() {
|
|
9556
9625
|
_classCallCheck(this, HeimaPaseo);
|
|
9557
|
-
return _callSuper(this, HeimaPaseo, ['HeimaPaseo', 'heima-paseo', 'paseo', sdkCommon.Version.
|
|
9626
|
+
return _callSuper(this, HeimaPaseo, ['HeimaPaseo', 'heima-paseo', 'paseo', sdkCommon.Version.V5]);
|
|
9558
9627
|
}
|
|
9559
9628
|
_inherits(HeimaPaseo, _Heima);
|
|
9560
9629
|
return _createClass(HeimaPaseo);
|
|
@@ -9659,7 +9728,7 @@ var createCustomXcmPolimec = function createCustomXcmPolimec(api, address, desti
|
|
|
9659
9728
|
var Polimec = /*#__PURE__*/function (_ParachainNode) {
|
|
9660
9729
|
function Polimec() {
|
|
9661
9730
|
_classCallCheck(this, Polimec);
|
|
9662
|
-
return _callSuper(this, Polimec, ['Polimec', 'polimec', 'polkadot', sdkCommon.Version.
|
|
9731
|
+
return _callSuper(this, Polimec, ['Polimec', 'polimec', 'polkadot', sdkCommon.Version.V5]);
|
|
9663
9732
|
}
|
|
9664
9733
|
_inherits(Polimec, _ParachainNode);
|
|
9665
9734
|
return _createClass(Polimec, [{
|
|
@@ -9726,7 +9795,7 @@ var Polimec = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9726
9795
|
target: {
|
|
9727
9796
|
Id: address
|
|
9728
9797
|
},
|
|
9729
|
-
amount:
|
|
9798
|
+
amount: asset.amount
|
|
9730
9799
|
}
|
|
9731
9800
|
});
|
|
9732
9801
|
}
|
|
@@ -9886,7 +9955,7 @@ var Hydration = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9886
9955
|
method: 'transfer_keep_alive',
|
|
9887
9956
|
parameters: {
|
|
9888
9957
|
dest: address,
|
|
9889
|
-
value:
|
|
9958
|
+
value: asset.amount
|
|
9890
9959
|
}
|
|
9891
9960
|
});
|
|
9892
9961
|
}
|
|
@@ -9903,7 +9972,7 @@ var Hydration = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9903
9972
|
parameters: {
|
|
9904
9973
|
dest: address,
|
|
9905
9974
|
currency_id: Number(asset.assetId),
|
|
9906
|
-
amount:
|
|
9975
|
+
amount: asset.amount
|
|
9907
9976
|
}
|
|
9908
9977
|
});
|
|
9909
9978
|
}
|
|
@@ -9920,6 +9989,65 @@ var HydrationPaseo = /*#__PURE__*/function (_Hydration) {
|
|
|
9920
9989
|
return _createClass(HydrationPaseo);
|
|
9921
9990
|
}(Hydration);
|
|
9922
9991
|
|
|
9992
|
+
var IntegriteeKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
9993
|
+
function IntegriteeKusama() {
|
|
9994
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'IntegriteeKusama';
|
|
9995
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'integritee';
|
|
9996
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'kusama';
|
|
9997
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
9998
|
+
_classCallCheck(this, IntegriteeKusama);
|
|
9999
|
+
return _callSuper(this, IntegriteeKusama, [chain, info, type, version]);
|
|
10000
|
+
}
|
|
10001
|
+
_inherits(IntegriteeKusama, _ParachainNode);
|
|
10002
|
+
return _createClass(IntegriteeKusama, [{
|
|
10003
|
+
key: "transferXTokens",
|
|
10004
|
+
value: function transferXTokens$1(input) {
|
|
10005
|
+
var asset = input.asset,
|
|
10006
|
+
scenario = input.scenario;
|
|
10007
|
+
if (scenario !== 'ParaToPara') {
|
|
10008
|
+
throw new ScenarioNotSupportedError(this.node, scenario);
|
|
10009
|
+
}
|
|
10010
|
+
if (asset.symbol !== this.getNativeAssetSymbol()) {
|
|
10011
|
+
throw new assets.InvalidCurrencyError("Asset ".concat(asset.symbol, " is not supported by chain ").concat(this.node, "."));
|
|
10012
|
+
}
|
|
10013
|
+
return transferXTokens(input, asset.symbol);
|
|
10014
|
+
}
|
|
10015
|
+
}, {
|
|
10016
|
+
key: "transferRelayToPara",
|
|
10017
|
+
value: function transferRelayToPara() {
|
|
10018
|
+
throw new NodeNotSupportedError();
|
|
10019
|
+
}
|
|
10020
|
+
}, {
|
|
10021
|
+
key: "transferLocalNonNativeAsset",
|
|
10022
|
+
value: function transferLocalNonNativeAsset(options) {
|
|
10023
|
+
var api = options.api,
|
|
10024
|
+
asset = options.asset,
|
|
10025
|
+
address = options.address;
|
|
10026
|
+
assertHasId(asset);
|
|
10027
|
+
return api.callTxMethod({
|
|
10028
|
+
module: 'Assets',
|
|
10029
|
+
method: 'transfer',
|
|
10030
|
+
parameters: {
|
|
10031
|
+
id: Number(asset.assetId),
|
|
10032
|
+
target: {
|
|
10033
|
+
Id: address
|
|
10034
|
+
},
|
|
10035
|
+
amount: asset.amount
|
|
10036
|
+
}
|
|
10037
|
+
});
|
|
10038
|
+
}
|
|
10039
|
+
}]);
|
|
10040
|
+
}(ParachainNode);
|
|
10041
|
+
|
|
10042
|
+
var IntegriteePaseo = /*#__PURE__*/function (_IntegriteeKusama) {
|
|
10043
|
+
function IntegriteePaseo() {
|
|
10044
|
+
_classCallCheck(this, IntegriteePaseo);
|
|
10045
|
+
return _callSuper(this, IntegriteePaseo, ['IntegriteePaseo', 'integritee', 'paseo', sdkCommon.Version.V4]);
|
|
10046
|
+
}
|
|
10047
|
+
_inherits(IntegriteePaseo, _IntegriteeKusama);
|
|
10048
|
+
return _createClass(IntegriteePaseo);
|
|
10049
|
+
}(IntegriteeKusama);
|
|
10050
|
+
|
|
9923
10051
|
var Interlay = /*#__PURE__*/function (_ParachainNode) {
|
|
9924
10052
|
function Interlay() {
|
|
9925
10053
|
_classCallCheck(this, Interlay);
|
|
@@ -9959,7 +10087,7 @@ var Interlay = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9959
10087
|
parameters: {
|
|
9960
10088
|
dest: address,
|
|
9961
10089
|
currency_id: this.getCurrencySelection(asset),
|
|
9962
|
-
value:
|
|
10090
|
+
value: asset.amount
|
|
9963
10091
|
}
|
|
9964
10092
|
});
|
|
9965
10093
|
}
|
|
@@ -10113,7 +10241,7 @@ var Kintsugi = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10113
10241
|
parameters: {
|
|
10114
10242
|
dest: address,
|
|
10115
10243
|
currency_id: this.getCurrencySelection(asset),
|
|
10116
|
-
value:
|
|
10244
|
+
value: asset.amount
|
|
10117
10245
|
}
|
|
10118
10246
|
});
|
|
10119
10247
|
}
|
|
@@ -10201,7 +10329,7 @@ var Manta = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10201
10329
|
target: {
|
|
10202
10330
|
Id: address
|
|
10203
10331
|
},
|
|
10204
|
-
amount:
|
|
10332
|
+
amount: asset.amount
|
|
10205
10333
|
}
|
|
10206
10334
|
});
|
|
10207
10335
|
}
|
|
@@ -10214,7 +10342,7 @@ var Moonbeam = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10214
10342
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Moonbeam';
|
|
10215
10343
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'moonbeam';
|
|
10216
10344
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10217
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
10345
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
10218
10346
|
_classCallCheck(this, Moonbeam);
|
|
10219
10347
|
return _callSuper(this, Moonbeam, [chain, info, type, version]);
|
|
10220
10348
|
}
|
|
@@ -10271,7 +10399,7 @@ var Moonbeam = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10271
10399
|
parameters: {
|
|
10272
10400
|
id: BigInt(asset.assetId),
|
|
10273
10401
|
target: address,
|
|
10274
|
-
amount:
|
|
10402
|
+
amount: asset.amount
|
|
10275
10403
|
}
|
|
10276
10404
|
});
|
|
10277
10405
|
}
|
|
@@ -10281,7 +10409,7 @@ var Moonbeam = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10281
10409
|
var Moonriver = /*#__PURE__*/function (_ParachainNode) {
|
|
10282
10410
|
function Moonriver() {
|
|
10283
10411
|
_classCallCheck(this, Moonriver);
|
|
10284
|
-
return _callSuper(this, Moonriver, ['Moonriver', 'moonriver', 'kusama', sdkCommon.Version.
|
|
10412
|
+
return _callSuper(this, Moonriver, ['Moonriver', 'moonriver', 'kusama', sdkCommon.Version.V5]);
|
|
10285
10413
|
}
|
|
10286
10414
|
_inherits(Moonriver, _ParachainNode);
|
|
10287
10415
|
return _createClass(Moonriver, [{
|
|
@@ -10403,7 +10531,7 @@ var createTypeAndThenTransfer = /*#__PURE__*/function () {
|
|
|
10403
10531
|
var Mythos = /*#__PURE__*/function (_ParachainNode) {
|
|
10404
10532
|
function Mythos() {
|
|
10405
10533
|
_classCallCheck(this, Mythos);
|
|
10406
|
-
return _callSuper(this, Mythos, ['Mythos', 'mythos', 'polkadot', sdkCommon.Version.
|
|
10534
|
+
return _callSuper(this, Mythos, ['Mythos', 'mythos', 'polkadot', sdkCommon.Version.V5]);
|
|
10407
10535
|
}
|
|
10408
10536
|
_inherits(Mythos, _ParachainNode);
|
|
10409
10537
|
return _createClass(Mythos, [{
|
|
@@ -10540,7 +10668,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10540
10668
|
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'PeoplePolkadot';
|
|
10541
10669
|
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotPeople';
|
|
10542
10670
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10543
|
-
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.
|
|
10671
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V5;
|
|
10544
10672
|
_classCallCheck(this, PeoplePolkadot);
|
|
10545
10673
|
return _callSuper(this, PeoplePolkadot, [chain, info, type, version]);
|
|
10546
10674
|
}
|
|
@@ -10568,7 +10696,7 @@ var PeoplePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10568
10696
|
var PAssetHub = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10569
10697
|
function PAssetHub() {
|
|
10570
10698
|
_classCallCheck(this, PAssetHub);
|
|
10571
|
-
return _callSuper(this, PAssetHub, ['PAssetHub', 'PAssetHub - Contracts', 'paseo', sdkCommon.Version.
|
|
10699
|
+
return _callSuper(this, PAssetHub, ['PAssetHub', 'PAssetHub - Contracts', 'paseo', sdkCommon.Version.V5]);
|
|
10572
10700
|
}
|
|
10573
10701
|
_inherits(PAssetHub, _PeoplePolkadot);
|
|
10574
10702
|
return _createClass(PAssetHub);
|
|
@@ -10611,7 +10739,7 @@ var Peaq = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10611
10739
|
target: {
|
|
10612
10740
|
Id: address
|
|
10613
10741
|
},
|
|
10614
|
-
amount:
|
|
10742
|
+
amount: asset.amount
|
|
10615
10743
|
}
|
|
10616
10744
|
});
|
|
10617
10745
|
}
|
|
@@ -10663,7 +10791,7 @@ var Penpal = /*#__PURE__*/function (_Moonbeam) {
|
|
|
10663
10791
|
var PeopleKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
10664
10792
|
function PeopleKusama() {
|
|
10665
10793
|
_classCallCheck(this, PeopleKusama);
|
|
10666
|
-
return _callSuper(this, PeopleKusama, ['PeopleKusama', 'kusamaPeople', 'kusama', sdkCommon.Version.
|
|
10794
|
+
return _callSuper(this, PeopleKusama, ['PeopleKusama', 'kusamaPeople', 'kusama', sdkCommon.Version.V5]);
|
|
10667
10795
|
}
|
|
10668
10796
|
_inherits(PeopleKusama, _ParachainNode);
|
|
10669
10797
|
return _createClass(PeopleKusama, [{
|
|
@@ -10690,7 +10818,7 @@ var PeopleKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10690
10818
|
var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10691
10819
|
function PeoplePaseo() {
|
|
10692
10820
|
_classCallCheck(this, PeoplePaseo);
|
|
10693
|
-
return _callSuper(this, PeoplePaseo, ['PeoplePaseo', 'PaseoPeopleChain', 'paseo', sdkCommon.Version.
|
|
10821
|
+
return _callSuper(this, PeoplePaseo, ['PeoplePaseo', 'PaseoPeopleChain', 'paseo', sdkCommon.Version.V5]);
|
|
10694
10822
|
}
|
|
10695
10823
|
_inherits(PeoplePaseo, _PeoplePolkadot);
|
|
10696
10824
|
return _createClass(PeoplePaseo);
|
|
@@ -10699,7 +10827,7 @@ var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
|
10699
10827
|
var PeopleWestend = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10700
10828
|
function PeopleWestend() {
|
|
10701
10829
|
_classCallCheck(this, PeopleWestend);
|
|
10702
|
-
return _callSuper(this, PeopleWestend, ['PeopleWestend', 'westendPeople', 'westend', sdkCommon.Version.
|
|
10830
|
+
return _callSuper(this, PeopleWestend, ['PeopleWestend', 'westendPeople', 'westend', sdkCommon.Version.V5]);
|
|
10703
10831
|
}
|
|
10704
10832
|
_inherits(PeopleWestend, _PeoplePolkadot);
|
|
10705
10833
|
return _createClass(PeopleWestend);
|
|
@@ -10792,7 +10920,7 @@ var Phala = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10792
10920
|
target: {
|
|
10793
10921
|
Id: address
|
|
10794
10922
|
},
|
|
10795
|
-
amount:
|
|
10923
|
+
amount: asset.amount
|
|
10796
10924
|
}
|
|
10797
10925
|
});
|
|
10798
10926
|
}
|
|
@@ -10802,7 +10930,7 @@ var Phala = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10802
10930
|
var Quartz = /*#__PURE__*/function (_ParachainNode) {
|
|
10803
10931
|
function Quartz() {
|
|
10804
10932
|
_classCallCheck(this, Quartz);
|
|
10805
|
-
return _callSuper(this, Quartz, ['Quartz', 'quartz', 'kusama', sdkCommon.Version.
|
|
10933
|
+
return _callSuper(this, Quartz, ['Quartz', 'quartz', 'kusama', sdkCommon.Version.V5]);
|
|
10806
10934
|
}
|
|
10807
10935
|
_inherits(Quartz, _ParachainNode);
|
|
10808
10936
|
return _createClass(Quartz, [{
|
|
@@ -10864,7 +10992,7 @@ var RobonomicsPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10864
10992
|
target: {
|
|
10865
10993
|
Id: address
|
|
10866
10994
|
},
|
|
10867
|
-
amount:
|
|
10995
|
+
amount: asset.amount
|
|
10868
10996
|
}
|
|
10869
10997
|
});
|
|
10870
10998
|
}
|
|
@@ -10874,7 +11002,7 @@ var RobonomicsPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10874
11002
|
var Shiden = /*#__PURE__*/function (_ParachainNode) {
|
|
10875
11003
|
function Shiden() {
|
|
10876
11004
|
_classCallCheck(this, Shiden);
|
|
10877
|
-
return _callSuper(this, Shiden, ['Shiden', 'shiden', 'kusama', sdkCommon.Version.
|
|
11005
|
+
return _callSuper(this, Shiden, ['Shiden', 'shiden', 'kusama', sdkCommon.Version.V5]);
|
|
10878
11006
|
}
|
|
10879
11007
|
_inherits(Shiden, _ParachainNode);
|
|
10880
11008
|
return _createClass(Shiden, [{
|
|
@@ -10928,7 +11056,7 @@ var Subsocial = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10928
11056
|
var Unique = /*#__PURE__*/function (_ParachainNode) {
|
|
10929
11057
|
function Unique() {
|
|
10930
11058
|
_classCallCheck(this, Unique);
|
|
10931
|
-
return _callSuper(this, Unique, ['Unique', 'unique', 'polkadot', sdkCommon.Version.
|
|
11059
|
+
return _callSuper(this, Unique, ['Unique', 'unique', 'polkadot', sdkCommon.Version.V5]);
|
|
10932
11060
|
}
|
|
10933
11061
|
_inherits(Unique, _ParachainNode);
|
|
10934
11062
|
return _createClass(Unique, [{
|
|
@@ -10991,7 +11119,7 @@ var Zeitgeist = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10991
11119
|
Id: address
|
|
10992
11120
|
},
|
|
10993
11121
|
currency_id: this.getCurrencySelection(asset),
|
|
10994
|
-
amount:
|
|
11122
|
+
amount: asset.amount
|
|
10995
11123
|
}
|
|
10996
11124
|
});
|
|
10997
11125
|
}
|
|
@@ -11001,7 +11129,7 @@ var Zeitgeist = /*#__PURE__*/function (_ParachainNode) {
|
|
|
11001
11129
|
var ZeitgeistPaseo = /*#__PURE__*/function (_Zeitgeist) {
|
|
11002
11130
|
function ZeitgeistPaseo() {
|
|
11003
11131
|
_classCallCheck(this, ZeitgeistPaseo);
|
|
11004
|
-
return _callSuper(this, ZeitgeistPaseo, ['ZeitgeistPaseo', 'ZeitgeistBatteryStation', 'paseo', sdkCommon.Version.
|
|
11132
|
+
return _callSuper(this, ZeitgeistPaseo, ['ZeitgeistPaseo', 'ZeitgeistBatteryStation', 'paseo', sdkCommon.Version.V4]);
|
|
11005
11133
|
}
|
|
11006
11134
|
_inherits(ZeitgeistPaseo, _Zeitgeist);
|
|
11007
11135
|
return _createClass(ZeitgeistPaseo);
|
|
@@ -11021,7 +11149,9 @@ var nodes = function nodes() {
|
|
|
11021
11149
|
Centrifuge: new Centrifuge(),
|
|
11022
11150
|
ComposableFinance: new ComposableFinance(),
|
|
11023
11151
|
Darwinia: new Darwinia(),
|
|
11152
|
+
EnergyWebX: new EnergyWebX(),
|
|
11024
11153
|
Hydration: new Hydration(),
|
|
11154
|
+
IntegriteeKusama: new IntegriteeKusama(),
|
|
11025
11155
|
Interlay: new Interlay(),
|
|
11026
11156
|
Heima: new Heima(),
|
|
11027
11157
|
Jamton: new Jamton(),
|
|
@@ -11070,13 +11200,15 @@ var nodes = function nodes() {
|
|
|
11070
11200
|
AssetHubPaseo: new AssetHubPaseo(),
|
|
11071
11201
|
BridgeHubPaseo: new BridgeHubPaseo(),
|
|
11072
11202
|
CoretimePaseo: new CoretimePaseo(),
|
|
11203
|
+
EnergyWebXPaseo: new EnergyWebXPaseo(),
|
|
11204
|
+
IntegriteePaseo: new IntegriteePaseo(),
|
|
11205
|
+
KiltPaseo: new KiltPaseo(),
|
|
11073
11206
|
PAssetHub: new PAssetHub(),
|
|
11074
11207
|
PeoplePaseo: new PeoplePaseo(),
|
|
11075
11208
|
AjunaPaseo: new AjunaPaseo(),
|
|
11076
11209
|
BifrostPaseo: new BifrostPaseo(),
|
|
11077
11210
|
HeimaPaseo: new HeimaPaseo(),
|
|
11078
11211
|
HydrationPaseo: new HydrationPaseo(),
|
|
11079
|
-
KiltPaseo: new KiltPaseo(),
|
|
11080
11212
|
LaosPaseo: new LaosPaseo(),
|
|
11081
11213
|
NeuroWebPaseo: new NeuroWebPaseo(),
|
|
11082
11214
|
NodlePaseo: new NodlePaseo(),
|
|
@@ -11572,7 +11704,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
11572
11704
|
var _options$disableFallb;
|
|
11573
11705
|
var _this$_options3, from, to, address, senderAddress, feeAsset, currency, tx, disableFallback;
|
|
11574
11706
|
return _regenerator().w(function (_context4) {
|
|
11575
|
-
while (1) switch (_context4.n) {
|
|
11707
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
11576
11708
|
case 0:
|
|
11577
11709
|
_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;
|
|
11578
11710
|
assertToIsString(to);
|
|
@@ -11634,7 +11766,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
11634
11766
|
tx,
|
|
11635
11767
|
_args5 = arguments;
|
|
11636
11768
|
return _regenerator().w(function (_context5) {
|
|
11637
|
-
while (1) switch (_context5.n) {
|
|
11769
|
+
while (1) switch (_context5.p = _context5.n) {
|
|
11638
11770
|
case 0:
|
|
11639
11771
|
_ref = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {
|
|
11640
11772
|
disableFallback: false
|
|
@@ -11687,7 +11819,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
11687
11819
|
var _getXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
11688
11820
|
var _this$_options5, from, to, address, senderAddress, currency, tx;
|
|
11689
11821
|
return _regenerator().w(function (_context6) {
|
|
11690
|
-
while (1) switch (_context6.n) {
|
|
11822
|
+
while (1) switch (_context6.p = _context6.n) {
|
|
11691
11823
|
case 0:
|
|
11692
11824
|
_this$_options5 = this._options, from = _this$_options5.from, to = _this$_options5.to, address = _this$_options5.address, senderAddress = _this$_options5.senderAddress, currency = _this$_options5.currency;
|
|
11693
11825
|
assertToIsString(to);
|
|
@@ -11737,7 +11869,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
11737
11869
|
var _getOriginXcmFeeEstimate2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
11738
11870
|
var _this$_options6, from, to, senderAddress, currency, tx;
|
|
11739
11871
|
return _regenerator().w(function (_context7) {
|
|
11740
|
-
while (1) switch (_context7.n) {
|
|
11872
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
11741
11873
|
case 0:
|
|
11742
11874
|
_this$_options6 = this._options, from = _this$_options6.from, to = _this$_options6.to, senderAddress = _this$_options6.senderAddress, currency = _this$_options6.currency;
|
|
11743
11875
|
assertToIsString(to);
|
|
@@ -11932,6 +12064,7 @@ exports.GeneralBuilder = GeneralBuilder;
|
|
|
11932
12064
|
exports.IncompatibleNodesError = IncompatibleNodesError;
|
|
11933
12065
|
exports.InvalidAddressError = InvalidAddressError;
|
|
11934
12066
|
exports.InvalidParameterError = InvalidParameterError;
|
|
12067
|
+
exports.MissingChainApiError = MissingChainApiError;
|
|
11935
12068
|
exports.NoXCMSupportImplementedError = NoXCMSupportImplementedError;
|
|
11936
12069
|
exports.NodeNotSupportedError = NodeNotSupportedError;
|
|
11937
12070
|
exports.ScenarioNotSupportedError = ScenarioNotSupportedError;
|
|
@@ -11994,6 +12127,7 @@ exports.getXcmFeeEstimate = getXcmFeeEstimate;
|
|
|
11994
12127
|
exports.handleExecuteTransfer = handleExecuteTransfer;
|
|
11995
12128
|
exports.handleSwapExecuteTransfer = handleSwapExecuteTransfer;
|
|
11996
12129
|
exports.handleToAhTeleport = handleToAhTeleport;
|
|
12130
|
+
exports.isConfig = isConfig;
|
|
11997
12131
|
exports.localizeLocation = localizeLocation;
|
|
11998
12132
|
exports.maybeOverrideMultiAsset = maybeOverrideMultiAsset;
|
|
11999
12133
|
exports.maybeOverrideMultiAssets = maybeOverrideMultiAssets;
|