@paraspell/sdk-core 11.12.11 → 11.12.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +157 -25
- package/dist/index.d.ts +24 -0
- package/dist/index.mjs +157 -25
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -6637,26 +6637,32 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
6637
6637
|
case 0:
|
|
6638
6638
|
api = options.api, version = options.version, pallet = options.pallet, assetInfo = options.assetInfo, address = options.address, senderAddress = options.senderAddress, destination = options.destination, paraIdTo = options.paraIdTo, methodOverride = options.method;
|
|
6639
6639
|
_this$getRelayToParaO = this.getRelayToParaOverrides(), method = _this$getRelayToParaO.method, includeFee = _this$getRelayToParaO.includeFee;
|
|
6640
|
-
if (!this.
|
|
6640
|
+
if (!(getRelayChainOf(this.chain) === 'Polkadot')) {
|
|
6641
6641
|
_context2.n = 1;
|
|
6642
6642
|
break;
|
|
6643
6643
|
}
|
|
6644
|
-
throw new InvalidParameterError("
|
|
6644
|
+
throw new InvalidParameterError("Sending from Polkadot relaychain is temporarily disabled");
|
|
6645
6645
|
case 1:
|
|
6646
|
+
if (!this.isReceivingTempDisabled('RelayToPara')) {
|
|
6647
|
+
_context2.n = 2;
|
|
6648
|
+
break;
|
|
6649
|
+
}
|
|
6650
|
+
throw new InvalidParameterError("Receiving on ".concat(this.chain, " is temporarily disabled"));
|
|
6651
|
+
case 2:
|
|
6646
6652
|
customMethod = methodOverride !== null && methodOverride !== void 0 ? methodOverride : method;
|
|
6647
6653
|
if (!(customMethod === 'transfer_assets_using_type_and_then')) {
|
|
6648
|
-
_context2.n =
|
|
6654
|
+
_context2.n = 4;
|
|
6649
6655
|
break;
|
|
6650
6656
|
}
|
|
6651
6657
|
paraId = resolveParaId(paraIdTo, destination);
|
|
6652
6658
|
destChain = resolveDestChain(this.chain, paraId);
|
|
6653
6659
|
scenario = 'RelayToPara';
|
|
6654
6660
|
if (destChain) {
|
|
6655
|
-
_context2.n =
|
|
6661
|
+
_context2.n = 3;
|
|
6656
6662
|
break;
|
|
6657
6663
|
}
|
|
6658
6664
|
throw new InvalidParameterError('Cannot override destination when using type and then transfer.');
|
|
6659
|
-
case
|
|
6665
|
+
case 3:
|
|
6660
6666
|
return _context2.a(2, createTypeThenAutoReserve(getRelayChainOf(destChain), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
6661
6667
|
beneficiaryLocation: createBeneficiaryLocation({
|
|
6662
6668
|
api: api,
|
|
@@ -6670,7 +6676,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
6670
6676
|
destChain: destChain,
|
|
6671
6677
|
paraIdTo: paraId
|
|
6672
6678
|
})));
|
|
6673
|
-
case
|
|
6679
|
+
case 4:
|
|
6674
6680
|
return _context2.a(2, {
|
|
6675
6681
|
module: pallet !== null && pallet !== void 0 ? pallet : 'XcmPallet',
|
|
6676
6682
|
method: customMethod,
|
|
@@ -7282,6 +7288,11 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
7282
7288
|
value: function createCurrencySpec(amount, scenario, version, asset, isOverridenAsset) {
|
|
7283
7289
|
return getChain('AssetHubPolkadot').createCurrencySpec(amount, scenario, version, asset, isOverridenAsset);
|
|
7284
7290
|
}
|
|
7291
|
+
}, {
|
|
7292
|
+
key: "transferLocal",
|
|
7293
|
+
value: function transferLocal(_options) {
|
|
7294
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
7295
|
+
}
|
|
7285
7296
|
}, {
|
|
7286
7297
|
key: "transferLocalNonNativeAsset",
|
|
7287
7298
|
value: function transferLocalNonNativeAsset(options) {
|
|
@@ -7579,6 +7590,11 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7579
7590
|
value: function isReceivingTempDisabled(_scenario) {
|
|
7580
7591
|
return true;
|
|
7581
7592
|
}
|
|
7593
|
+
}, {
|
|
7594
|
+
key: "transferLocal",
|
|
7595
|
+
value: function transferLocal(_options) {
|
|
7596
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
7597
|
+
}
|
|
7582
7598
|
}, {
|
|
7583
7599
|
key: "createCurrencySpec",
|
|
7584
7600
|
value: function createCurrencySpec(amount, scenario, version, asset, isOverriddenAsset) {
|
|
@@ -7666,7 +7682,17 @@ var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
7666
7682
|
return _callSuper(this, AssetHubPaseo, ['AssetHubPaseo', 'PaseoAssetHub', 'Paseo', sdkCommon.Version.V5]);
|
|
7667
7683
|
}
|
|
7668
7684
|
_inherits(AssetHubPaseo, _AssetHubPolkadot);
|
|
7669
|
-
return _createClass(AssetHubPaseo
|
|
7685
|
+
return _createClass(AssetHubPaseo, [{
|
|
7686
|
+
key: "isSendingTempDisabled",
|
|
7687
|
+
value: function isSendingTempDisabled(_options) {
|
|
7688
|
+
return false;
|
|
7689
|
+
}
|
|
7690
|
+
}, {
|
|
7691
|
+
key: "isReceivingTempDisabled",
|
|
7692
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
7693
|
+
return false;
|
|
7694
|
+
}
|
|
7695
|
+
}]);
|
|
7670
7696
|
}(AssetHubPolkadot);
|
|
7671
7697
|
|
|
7672
7698
|
var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
@@ -7675,7 +7701,17 @@ var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
7675
7701
|
return _callSuper(this, AssetHubWestend, ['AssetHubWestend', 'WestendAssetHub', 'Westend', sdkCommon.Version.V5]);
|
|
7676
7702
|
}
|
|
7677
7703
|
_inherits(AssetHubWestend, _AssetHubPolkadot);
|
|
7678
|
-
return _createClass(AssetHubWestend
|
|
7704
|
+
return _createClass(AssetHubWestend, [{
|
|
7705
|
+
key: "isSendingTempDisabled",
|
|
7706
|
+
value: function isSendingTempDisabled(_options) {
|
|
7707
|
+
return false;
|
|
7708
|
+
}
|
|
7709
|
+
}, {
|
|
7710
|
+
key: "isReceivingTempDisabled",
|
|
7711
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
7712
|
+
return false;
|
|
7713
|
+
}
|
|
7714
|
+
}]);
|
|
7679
7715
|
}(AssetHubPolkadot);
|
|
7680
7716
|
|
|
7681
7717
|
var Astar = /*#__PURE__*/function (_Parachain) {
|
|
@@ -7985,6 +8021,11 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7985
8021
|
includeFee: true
|
|
7986
8022
|
};
|
|
7987
8023
|
}
|
|
8024
|
+
}, {
|
|
8025
|
+
key: "transferLocal",
|
|
8026
|
+
value: function transferLocal(_options) {
|
|
8027
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
8028
|
+
}
|
|
7988
8029
|
}, {
|
|
7989
8030
|
key: "isSendingTempDisabled",
|
|
7990
8031
|
value: function isSendingTempDisabled(_options) {
|
|
@@ -8004,7 +8045,17 @@ var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
|
8004
8045
|
return _callSuper(this, BridgeHubPaseo, ['BridgeHubPaseo', 'PaseoBridgeHub', 'Paseo', sdkCommon.Version.V5]);
|
|
8005
8046
|
}
|
|
8006
8047
|
_inherits(BridgeHubPaseo, _BridgeHubPolkadot);
|
|
8007
|
-
return _createClass(BridgeHubPaseo
|
|
8048
|
+
return _createClass(BridgeHubPaseo, [{
|
|
8049
|
+
key: "isSendingTempDisabled",
|
|
8050
|
+
value: function isSendingTempDisabled(_options) {
|
|
8051
|
+
return false;
|
|
8052
|
+
}
|
|
8053
|
+
}, {
|
|
8054
|
+
key: "isReceivingTempDisabled",
|
|
8055
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8056
|
+
return false;
|
|
8057
|
+
}
|
|
8058
|
+
}]);
|
|
8008
8059
|
}(BridgeHubPolkadot);
|
|
8009
8060
|
|
|
8010
8061
|
var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
@@ -8013,7 +8064,17 @@ var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
|
8013
8064
|
return _callSuper(this, BridgeHubWestend, ['BridgeHubWestend', 'westendBridgeHub', 'Westend', sdkCommon.Version.V5]);
|
|
8014
8065
|
}
|
|
8015
8066
|
_inherits(BridgeHubWestend, _BridgeHubPolkadot);
|
|
8016
|
-
return _createClass(BridgeHubWestend
|
|
8067
|
+
return _createClass(BridgeHubWestend, [{
|
|
8068
|
+
key: "isSendingTempDisabled",
|
|
8069
|
+
value: function isSendingTempDisabled(_options) {
|
|
8070
|
+
return false;
|
|
8071
|
+
}
|
|
8072
|
+
}, {
|
|
8073
|
+
key: "isReceivingTempDisabled",
|
|
8074
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8075
|
+
return false;
|
|
8076
|
+
}
|
|
8077
|
+
}]);
|
|
8017
8078
|
}(BridgeHubPolkadot);
|
|
8018
8079
|
|
|
8019
8080
|
var Centrifuge = /*#__PURE__*/function (_Parachain) {
|
|
@@ -8093,6 +8154,11 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
8093
8154
|
}
|
|
8094
8155
|
return transferPolkadotXcm(input, 'limited_teleport_assets', 'Unlimited');
|
|
8095
8156
|
}
|
|
8157
|
+
}, {
|
|
8158
|
+
key: "transferLocal",
|
|
8159
|
+
value: function transferLocal(_options) {
|
|
8160
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
8161
|
+
}
|
|
8096
8162
|
}, {
|
|
8097
8163
|
key: "getRelayToParaOverrides",
|
|
8098
8164
|
value: function getRelayToParaOverrides() {
|
|
@@ -8120,7 +8186,17 @@ var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
|
8120
8186
|
return _callSuper(this, CollectivesWestend, ['CollectivesWestend', 'westendCollectives', 'Westend', sdkCommon.Version.V5]);
|
|
8121
8187
|
}
|
|
8122
8188
|
_inherits(CollectivesWestend, _Collectives);
|
|
8123
|
-
return _createClass(CollectivesWestend
|
|
8189
|
+
return _createClass(CollectivesWestend, [{
|
|
8190
|
+
key: "isSendingTempDisabled",
|
|
8191
|
+
value: function isSendingTempDisabled(_options) {
|
|
8192
|
+
return false;
|
|
8193
|
+
}
|
|
8194
|
+
}, {
|
|
8195
|
+
key: "isReceivingTempDisabled",
|
|
8196
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8197
|
+
return false;
|
|
8198
|
+
}
|
|
8199
|
+
}]);
|
|
8124
8200
|
}(Collectives);
|
|
8125
8201
|
|
|
8126
8202
|
var ComposableFinance = /*#__PURE__*/function (_Parachain) {
|
|
@@ -8207,6 +8283,11 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
8207
8283
|
includeFee: true
|
|
8208
8284
|
};
|
|
8209
8285
|
}
|
|
8286
|
+
}, {
|
|
8287
|
+
key: "transferLocal",
|
|
8288
|
+
value: function transferLocal(_options) {
|
|
8289
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
8290
|
+
}
|
|
8210
8291
|
}, {
|
|
8211
8292
|
key: "isSendingTempDisabled",
|
|
8212
8293
|
value: function isSendingTempDisabled(_options) {
|
|
@@ -8226,7 +8307,17 @@ var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
|
8226
8307
|
return _callSuper(this, CoretimePaseo, ['CoretimePaseo', 'PaseoCoretime', 'Paseo', sdkCommon.Version.V5]);
|
|
8227
8308
|
}
|
|
8228
8309
|
_inherits(CoretimePaseo, _CoretimePolkadot);
|
|
8229
|
-
return _createClass(CoretimePaseo
|
|
8310
|
+
return _createClass(CoretimePaseo, [{
|
|
8311
|
+
key: "isSendingTempDisabled",
|
|
8312
|
+
value: function isSendingTempDisabled(_options) {
|
|
8313
|
+
return false;
|
|
8314
|
+
}
|
|
8315
|
+
}, {
|
|
8316
|
+
key: "isReceivingTempDisabled",
|
|
8317
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8318
|
+
return false;
|
|
8319
|
+
}
|
|
8320
|
+
}]);
|
|
8230
8321
|
}(CoretimePolkadot);
|
|
8231
8322
|
|
|
8232
8323
|
var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
@@ -8235,7 +8326,17 @@ var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
|
8235
8326
|
return _callSuper(this, CoretimeWestend, ['CoretimeWestend', 'westendCoretime', 'Westend', sdkCommon.Version.V5]);
|
|
8236
8327
|
}
|
|
8237
8328
|
_inherits(CoretimeWestend, _CoretimePolkadot);
|
|
8238
|
-
return _createClass(CoretimeWestend
|
|
8329
|
+
return _createClass(CoretimeWestend, [{
|
|
8330
|
+
key: "isSendingTempDisabled",
|
|
8331
|
+
value: function isSendingTempDisabled(_options) {
|
|
8332
|
+
return false;
|
|
8333
|
+
}
|
|
8334
|
+
}, {
|
|
8335
|
+
key: "isReceivingTempDisabled",
|
|
8336
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8337
|
+
return false;
|
|
8338
|
+
}
|
|
8339
|
+
}]);
|
|
8239
8340
|
}(CoretimePolkadot);
|
|
8240
8341
|
|
|
8241
8342
|
var Crab = /*#__PURE__*/function (_Parachain) {
|
|
@@ -9537,6 +9638,11 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9537
9638
|
includeFee: true
|
|
9538
9639
|
};
|
|
9539
9640
|
}
|
|
9641
|
+
}, {
|
|
9642
|
+
key: "transferLocal",
|
|
9643
|
+
value: function transferLocal(_options) {
|
|
9644
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
9645
|
+
}
|
|
9540
9646
|
}, {
|
|
9541
9647
|
key: "isSendingTempDisabled",
|
|
9542
9648
|
value: function isSendingTempDisabled(_options) {
|
|
@@ -9712,7 +9818,17 @@ var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
|
9712
9818
|
return _callSuper(this, PeoplePaseo, ['PeoplePaseo', 'PaseoPeopleChain', 'Paseo', sdkCommon.Version.V5]);
|
|
9713
9819
|
}
|
|
9714
9820
|
_inherits(PeoplePaseo, _PeoplePolkadot);
|
|
9715
|
-
return _createClass(PeoplePaseo
|
|
9821
|
+
return _createClass(PeoplePaseo, [{
|
|
9822
|
+
key: "isSendingTempDisabled",
|
|
9823
|
+
value: function isSendingTempDisabled(_options) {
|
|
9824
|
+
return false;
|
|
9825
|
+
}
|
|
9826
|
+
}, {
|
|
9827
|
+
key: "isReceivingTempDisabled",
|
|
9828
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
9829
|
+
return false;
|
|
9830
|
+
}
|
|
9831
|
+
}]);
|
|
9716
9832
|
}(PeoplePolkadot);
|
|
9717
9833
|
|
|
9718
9834
|
var PeopleWestend = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
@@ -9721,7 +9837,17 @@ var PeopleWestend = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
|
9721
9837
|
return _callSuper(this, PeopleWestend, ['PeopleWestend', 'westendPeople', 'Westend', sdkCommon.Version.V5]);
|
|
9722
9838
|
}
|
|
9723
9839
|
_inherits(PeopleWestend, _PeoplePolkadot);
|
|
9724
|
-
return _createClass(PeopleWestend
|
|
9840
|
+
return _createClass(PeopleWestend, [{
|
|
9841
|
+
key: "isSendingTempDisabled",
|
|
9842
|
+
value: function isSendingTempDisabled(_options) {
|
|
9843
|
+
return false;
|
|
9844
|
+
}
|
|
9845
|
+
}, {
|
|
9846
|
+
key: "isReceivingTempDisabled",
|
|
9847
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
9848
|
+
return false;
|
|
9849
|
+
}
|
|
9850
|
+
}]);
|
|
9725
9851
|
}(PeoplePolkadot);
|
|
9726
9852
|
|
|
9727
9853
|
var determineDestWeight = function determineDestWeight(destChain) {
|
|
@@ -11844,7 +11970,7 @@ var send = /*#__PURE__*/function () {
|
|
|
11844
11970
|
destVersion = !sdkCommon.isTLocation(destination) ? getChainVersion(destination) : undefined;
|
|
11845
11971
|
resolvedVersion = selectXcmVersion(version, originVersion, destVersion);
|
|
11846
11972
|
if (!sdkCommon.isRelayChain(origin)) {
|
|
11847
|
-
_context.n =
|
|
11973
|
+
_context.n = 7;
|
|
11848
11974
|
break;
|
|
11849
11975
|
}
|
|
11850
11976
|
if (!(destination === 'Ethereum')) {
|
|
@@ -11861,18 +11987,24 @@ var send = /*#__PURE__*/function () {
|
|
|
11861
11987
|
case 2:
|
|
11862
11988
|
isLocalTransfer = origin === destination;
|
|
11863
11989
|
if (!isLocalTransfer) {
|
|
11864
|
-
_context.n =
|
|
11990
|
+
_context.n = 6;
|
|
11865
11991
|
break;
|
|
11866
11992
|
}
|
|
11867
|
-
if (!
|
|
11993
|
+
if (!(origin === 'Polkadot')) {
|
|
11868
11994
|
_context.n = 3;
|
|
11869
11995
|
break;
|
|
11870
11996
|
}
|
|
11871
|
-
throw new
|
|
11997
|
+
throw new InvalidParameterError('Local transfers on Polkadot relay chain are temporarily disabled.');
|
|
11872
11998
|
case 3:
|
|
11873
|
-
|
|
11874
|
-
|
|
11999
|
+
if (!sdkCommon.isTLocation(address)) {
|
|
12000
|
+
_context.n = 4;
|
|
12001
|
+
break;
|
|
12002
|
+
}
|
|
12003
|
+
throw new InvalidAddressError('Location address is not supported for local transfers.');
|
|
11875
12004
|
case 4:
|
|
12005
|
+
_context.n = 5;
|
|
12006
|
+
return api.init(origin, TX_CLIENT_TIMEOUT_MS);
|
|
12007
|
+
case 5:
|
|
11876
12008
|
return _context.a(2, api.callTxMethod(isAmountAll ? {
|
|
11877
12009
|
module: 'Balances',
|
|
11878
12010
|
method: 'transfer_all',
|
|
@@ -11892,7 +12024,7 @@ var send = /*#__PURE__*/function () {
|
|
|
11892
12024
|
value: finalAmount
|
|
11893
12025
|
}
|
|
11894
12026
|
}));
|
|
11895
|
-
case
|
|
12027
|
+
case 6:
|
|
11896
12028
|
return _context.a(2, transferRelayToPara({
|
|
11897
12029
|
api: api,
|
|
11898
12030
|
origin: origin,
|
|
@@ -11908,11 +12040,11 @@ var send = /*#__PURE__*/function () {
|
|
|
11908
12040
|
pallet: pallet,
|
|
11909
12041
|
method: method
|
|
11910
12042
|
}));
|
|
11911
|
-
case
|
|
12043
|
+
case 7:
|
|
11912
12044
|
overriddenAsset = resolveOverriddenAsset(options, isBridge, assetCheckEnabled, resolvedFeeAsset);
|
|
11913
|
-
_context.n =
|
|
12045
|
+
_context.n = 8;
|
|
11914
12046
|
return api.init(origin, TX_CLIENT_TIMEOUT_MS);
|
|
11915
|
-
case
|
|
12047
|
+
case 8:
|
|
11916
12048
|
// In case asset check is disabled, we create asset object from currency symbol
|
|
11917
12049
|
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
11918
12050
|
symbol: 'symbol' in currency ? currency.symbol : undefined
|
package/dist/index.d.ts
CHANGED
|
@@ -1581,6 +1581,7 @@ declare class AssetHubKusama<TApi, TRes> extends Parachain<TApi, TRes> implement
|
|
|
1581
1581
|
getMethod(scenario: TScenario, destination: TDestination): TPolkadotXcmMethod;
|
|
1582
1582
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1583
1583
|
createCurrencySpec(amount: bigint, scenario: TScenario, version: Version, asset?: TAssetInfo, isOverridenAsset?: boolean): _paraspell_assets.TAsset;
|
|
1584
|
+
transferLocal(_options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1584
1585
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1585
1586
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1586
1587
|
}
|
|
@@ -1596,16 +1597,21 @@ declare class AssetHubPolkadot<TApi, TRes> extends Parachain<TApi, TRes> impleme
|
|
|
1596
1597
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1597
1598
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1598
1599
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1600
|
+
transferLocal(_options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1599
1601
|
createCurrencySpec(amount: bigint, scenario: TScenario, version: Version, asset?: TAssetInfo, isOverriddenAsset?: boolean): _paraspell_assets.TAsset;
|
|
1600
1602
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1601
1603
|
}
|
|
1602
1604
|
|
|
1603
1605
|
declare class AssetHubPaseo<TApi, TRes> extends AssetHubPolkadot<TApi, TRes> {
|
|
1604
1606
|
constructor();
|
|
1607
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1608
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1605
1609
|
}
|
|
1606
1610
|
|
|
1607
1611
|
declare class AssetHubWestend<TApi, TRes> extends AssetHubPolkadot<TApi, TRes> {
|
|
1608
1612
|
constructor();
|
|
1613
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1614
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1609
1615
|
}
|
|
1610
1616
|
|
|
1611
1617
|
declare class Astar<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer, IXTokensTransfer {
|
|
@@ -1695,16 +1701,21 @@ declare class BridgeHubPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implem
|
|
|
1695
1701
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1696
1702
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1697
1703
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1704
|
+
transferLocal(_options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1698
1705
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1699
1706
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1700
1707
|
}
|
|
1701
1708
|
|
|
1702
1709
|
declare class BridgeHubPaseo<TApi, TRes> extends BridgeHubPolkadot<TApi, TRes> {
|
|
1703
1710
|
constructor();
|
|
1711
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1712
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1704
1713
|
}
|
|
1705
1714
|
|
|
1706
1715
|
declare class BridgeHubWestend<TApi, TRes> extends BridgeHubPolkadot<TApi, TRes> {
|
|
1707
1716
|
constructor();
|
|
1717
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1718
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1708
1719
|
}
|
|
1709
1720
|
|
|
1710
1721
|
declare class Centrifuge<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
@@ -1717,6 +1728,7 @@ declare class Centrifuge<TApi, TRes> extends Parachain<TApi, TRes> implements IX
|
|
|
1717
1728
|
declare class Collectives<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1718
1729
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1719
1730
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1731
|
+
transferLocal(_options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1720
1732
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1721
1733
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1722
1734
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
@@ -1724,6 +1736,8 @@ declare class Collectives<TApi, TRes> extends Parachain<TApi, TRes> implements I
|
|
|
1724
1736
|
|
|
1725
1737
|
declare class CollectivesWestend<TApi, TRes> extends Collectives<TApi, TRes> {
|
|
1726
1738
|
constructor();
|
|
1739
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1740
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1727
1741
|
}
|
|
1728
1742
|
|
|
1729
1743
|
declare class ComposableFinance<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
@@ -1744,16 +1758,21 @@ declare class CoretimePolkadot<TApi, TRes> extends Parachain<TApi, TRes> impleme
|
|
|
1744
1758
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1745
1759
|
canReceiveFrom(origin: TChain): boolean;
|
|
1746
1760
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1761
|
+
transferLocal(_options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1747
1762
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1748
1763
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1749
1764
|
}
|
|
1750
1765
|
|
|
1751
1766
|
declare class CoretimePaseo<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
|
|
1752
1767
|
constructor();
|
|
1768
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1769
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1753
1770
|
}
|
|
1754
1771
|
|
|
1755
1772
|
declare class CoretimeWestend<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
|
|
1756
1773
|
constructor();
|
|
1774
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1775
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1757
1776
|
}
|
|
1758
1777
|
|
|
1759
1778
|
declare class Crab<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
@@ -1950,6 +1969,7 @@ declare class PeoplePolkadot<TApi, TRes> extends Parachain<TApi, TRes> implement
|
|
|
1950
1969
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1951
1970
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1952
1971
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1972
|
+
transferLocal(_options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1953
1973
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1954
1974
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1955
1975
|
}
|
|
@@ -1987,10 +2007,14 @@ declare class PeopleKusama<TApi, TRes> extends Parachain<TApi, TRes> implements
|
|
|
1987
2007
|
|
|
1988
2008
|
declare class PeoplePaseo<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
1989
2009
|
constructor();
|
|
2010
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
2011
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1990
2012
|
}
|
|
1991
2013
|
|
|
1992
2014
|
declare class PeopleWestend<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
1993
2015
|
constructor();
|
|
2016
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
2017
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1994
2018
|
}
|
|
1995
2019
|
|
|
1996
2020
|
declare class Phala<TApi, TRes> extends Parachain<TApi, TRes> implements IXTransferTransfer {
|
package/dist/index.mjs
CHANGED
|
@@ -6638,26 +6638,32 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
6638
6638
|
case 0:
|
|
6639
6639
|
api = options.api, version = options.version, pallet = options.pallet, assetInfo = options.assetInfo, address = options.address, senderAddress = options.senderAddress, destination = options.destination, paraIdTo = options.paraIdTo, methodOverride = options.method;
|
|
6640
6640
|
_this$getRelayToParaO = this.getRelayToParaOverrides(), method = _this$getRelayToParaO.method, includeFee = _this$getRelayToParaO.includeFee;
|
|
6641
|
-
if (!this.
|
|
6641
|
+
if (!(getRelayChainOf(this.chain) === 'Polkadot')) {
|
|
6642
6642
|
_context2.n = 1;
|
|
6643
6643
|
break;
|
|
6644
6644
|
}
|
|
6645
|
-
throw new InvalidParameterError("
|
|
6645
|
+
throw new InvalidParameterError("Sending from Polkadot relaychain is temporarily disabled");
|
|
6646
6646
|
case 1:
|
|
6647
|
+
if (!this.isReceivingTempDisabled('RelayToPara')) {
|
|
6648
|
+
_context2.n = 2;
|
|
6649
|
+
break;
|
|
6650
|
+
}
|
|
6651
|
+
throw new InvalidParameterError("Receiving on ".concat(this.chain, " is temporarily disabled"));
|
|
6652
|
+
case 2:
|
|
6647
6653
|
customMethod = methodOverride !== null && methodOverride !== void 0 ? methodOverride : method;
|
|
6648
6654
|
if (!(customMethod === 'transfer_assets_using_type_and_then')) {
|
|
6649
|
-
_context2.n =
|
|
6655
|
+
_context2.n = 4;
|
|
6650
6656
|
break;
|
|
6651
6657
|
}
|
|
6652
6658
|
paraId = resolveParaId(paraIdTo, destination);
|
|
6653
6659
|
destChain = resolveDestChain(this.chain, paraId);
|
|
6654
6660
|
scenario = 'RelayToPara';
|
|
6655
6661
|
if (destChain) {
|
|
6656
|
-
_context2.n =
|
|
6662
|
+
_context2.n = 3;
|
|
6657
6663
|
break;
|
|
6658
6664
|
}
|
|
6659
6665
|
throw new InvalidParameterError('Cannot override destination when using type and then transfer.');
|
|
6660
|
-
case
|
|
6666
|
+
case 3:
|
|
6661
6667
|
return _context2.a(2, createTypeThenAutoReserve(getRelayChainOf(destChain), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
6662
6668
|
beneficiaryLocation: createBeneficiaryLocation({
|
|
6663
6669
|
api: api,
|
|
@@ -6671,7 +6677,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
6671
6677
|
destChain: destChain,
|
|
6672
6678
|
paraIdTo: paraId
|
|
6673
6679
|
})));
|
|
6674
|
-
case
|
|
6680
|
+
case 4:
|
|
6675
6681
|
return _context2.a(2, {
|
|
6676
6682
|
module: pallet !== null && pallet !== void 0 ? pallet : 'XcmPallet',
|
|
6677
6683
|
method: customMethod,
|
|
@@ -7283,6 +7289,11 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
7283
7289
|
value: function createCurrencySpec(amount, scenario, version, asset, isOverridenAsset) {
|
|
7284
7290
|
return getChain('AssetHubPolkadot').createCurrencySpec(amount, scenario, version, asset, isOverridenAsset);
|
|
7285
7291
|
}
|
|
7292
|
+
}, {
|
|
7293
|
+
key: "transferLocal",
|
|
7294
|
+
value: function transferLocal(_options) {
|
|
7295
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
7296
|
+
}
|
|
7286
7297
|
}, {
|
|
7287
7298
|
key: "transferLocalNonNativeAsset",
|
|
7288
7299
|
value: function transferLocalNonNativeAsset(options) {
|
|
@@ -7580,6 +7591,11 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7580
7591
|
value: function isReceivingTempDisabled(_scenario) {
|
|
7581
7592
|
return true;
|
|
7582
7593
|
}
|
|
7594
|
+
}, {
|
|
7595
|
+
key: "transferLocal",
|
|
7596
|
+
value: function transferLocal(_options) {
|
|
7597
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
7598
|
+
}
|
|
7583
7599
|
}, {
|
|
7584
7600
|
key: "createCurrencySpec",
|
|
7585
7601
|
value: function createCurrencySpec(amount, scenario, version, asset, isOverriddenAsset) {
|
|
@@ -7667,7 +7683,17 @@ var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
7667
7683
|
return _callSuper(this, AssetHubPaseo, ['AssetHubPaseo', 'PaseoAssetHub', 'Paseo', Version.V5]);
|
|
7668
7684
|
}
|
|
7669
7685
|
_inherits(AssetHubPaseo, _AssetHubPolkadot);
|
|
7670
|
-
return _createClass(AssetHubPaseo
|
|
7686
|
+
return _createClass(AssetHubPaseo, [{
|
|
7687
|
+
key: "isSendingTempDisabled",
|
|
7688
|
+
value: function isSendingTempDisabled(_options) {
|
|
7689
|
+
return false;
|
|
7690
|
+
}
|
|
7691
|
+
}, {
|
|
7692
|
+
key: "isReceivingTempDisabled",
|
|
7693
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
7694
|
+
return false;
|
|
7695
|
+
}
|
|
7696
|
+
}]);
|
|
7671
7697
|
}(AssetHubPolkadot);
|
|
7672
7698
|
|
|
7673
7699
|
var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
@@ -7676,7 +7702,17 @@ var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
|
7676
7702
|
return _callSuper(this, AssetHubWestend, ['AssetHubWestend', 'WestendAssetHub', 'Westend', Version.V5]);
|
|
7677
7703
|
}
|
|
7678
7704
|
_inherits(AssetHubWestend, _AssetHubPolkadot);
|
|
7679
|
-
return _createClass(AssetHubWestend
|
|
7705
|
+
return _createClass(AssetHubWestend, [{
|
|
7706
|
+
key: "isSendingTempDisabled",
|
|
7707
|
+
value: function isSendingTempDisabled(_options) {
|
|
7708
|
+
return false;
|
|
7709
|
+
}
|
|
7710
|
+
}, {
|
|
7711
|
+
key: "isReceivingTempDisabled",
|
|
7712
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
7713
|
+
return false;
|
|
7714
|
+
}
|
|
7715
|
+
}]);
|
|
7680
7716
|
}(AssetHubPolkadot);
|
|
7681
7717
|
|
|
7682
7718
|
var Astar = /*#__PURE__*/function (_Parachain) {
|
|
@@ -7986,6 +8022,11 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7986
8022
|
includeFee: true
|
|
7987
8023
|
};
|
|
7988
8024
|
}
|
|
8025
|
+
}, {
|
|
8026
|
+
key: "transferLocal",
|
|
8027
|
+
value: function transferLocal(_options) {
|
|
8028
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
8029
|
+
}
|
|
7989
8030
|
}, {
|
|
7990
8031
|
key: "isSendingTempDisabled",
|
|
7991
8032
|
value: function isSendingTempDisabled(_options) {
|
|
@@ -8005,7 +8046,17 @@ var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
|
8005
8046
|
return _callSuper(this, BridgeHubPaseo, ['BridgeHubPaseo', 'PaseoBridgeHub', 'Paseo', Version.V5]);
|
|
8006
8047
|
}
|
|
8007
8048
|
_inherits(BridgeHubPaseo, _BridgeHubPolkadot);
|
|
8008
|
-
return _createClass(BridgeHubPaseo
|
|
8049
|
+
return _createClass(BridgeHubPaseo, [{
|
|
8050
|
+
key: "isSendingTempDisabled",
|
|
8051
|
+
value: function isSendingTempDisabled(_options) {
|
|
8052
|
+
return false;
|
|
8053
|
+
}
|
|
8054
|
+
}, {
|
|
8055
|
+
key: "isReceivingTempDisabled",
|
|
8056
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8057
|
+
return false;
|
|
8058
|
+
}
|
|
8059
|
+
}]);
|
|
8009
8060
|
}(BridgeHubPolkadot);
|
|
8010
8061
|
|
|
8011
8062
|
var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
@@ -8014,7 +8065,17 @@ var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
|
8014
8065
|
return _callSuper(this, BridgeHubWestend, ['BridgeHubWestend', 'westendBridgeHub', 'Westend', Version.V5]);
|
|
8015
8066
|
}
|
|
8016
8067
|
_inherits(BridgeHubWestend, _BridgeHubPolkadot);
|
|
8017
|
-
return _createClass(BridgeHubWestend
|
|
8068
|
+
return _createClass(BridgeHubWestend, [{
|
|
8069
|
+
key: "isSendingTempDisabled",
|
|
8070
|
+
value: function isSendingTempDisabled(_options) {
|
|
8071
|
+
return false;
|
|
8072
|
+
}
|
|
8073
|
+
}, {
|
|
8074
|
+
key: "isReceivingTempDisabled",
|
|
8075
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8076
|
+
return false;
|
|
8077
|
+
}
|
|
8078
|
+
}]);
|
|
8018
8079
|
}(BridgeHubPolkadot);
|
|
8019
8080
|
|
|
8020
8081
|
var Centrifuge = /*#__PURE__*/function (_Parachain) {
|
|
@@ -8094,6 +8155,11 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
8094
8155
|
}
|
|
8095
8156
|
return transferPolkadotXcm(input, 'limited_teleport_assets', 'Unlimited');
|
|
8096
8157
|
}
|
|
8158
|
+
}, {
|
|
8159
|
+
key: "transferLocal",
|
|
8160
|
+
value: function transferLocal(_options) {
|
|
8161
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
8162
|
+
}
|
|
8097
8163
|
}, {
|
|
8098
8164
|
key: "getRelayToParaOverrides",
|
|
8099
8165
|
value: function getRelayToParaOverrides() {
|
|
@@ -8121,7 +8187,17 @@ var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
|
8121
8187
|
return _callSuper(this, CollectivesWestend, ['CollectivesWestend', 'westendCollectives', 'Westend', Version.V5]);
|
|
8122
8188
|
}
|
|
8123
8189
|
_inherits(CollectivesWestend, _Collectives);
|
|
8124
|
-
return _createClass(CollectivesWestend
|
|
8190
|
+
return _createClass(CollectivesWestend, [{
|
|
8191
|
+
key: "isSendingTempDisabled",
|
|
8192
|
+
value: function isSendingTempDisabled(_options) {
|
|
8193
|
+
return false;
|
|
8194
|
+
}
|
|
8195
|
+
}, {
|
|
8196
|
+
key: "isReceivingTempDisabled",
|
|
8197
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8198
|
+
return false;
|
|
8199
|
+
}
|
|
8200
|
+
}]);
|
|
8125
8201
|
}(Collectives);
|
|
8126
8202
|
|
|
8127
8203
|
var ComposableFinance = /*#__PURE__*/function (_Parachain) {
|
|
@@ -8208,6 +8284,11 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
8208
8284
|
includeFee: true
|
|
8209
8285
|
};
|
|
8210
8286
|
}
|
|
8287
|
+
}, {
|
|
8288
|
+
key: "transferLocal",
|
|
8289
|
+
value: function transferLocal(_options) {
|
|
8290
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
8291
|
+
}
|
|
8211
8292
|
}, {
|
|
8212
8293
|
key: "isSendingTempDisabled",
|
|
8213
8294
|
value: function isSendingTempDisabled(_options) {
|
|
@@ -8227,7 +8308,17 @@ var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
|
8227
8308
|
return _callSuper(this, CoretimePaseo, ['CoretimePaseo', 'PaseoCoretime', 'Paseo', Version.V5]);
|
|
8228
8309
|
}
|
|
8229
8310
|
_inherits(CoretimePaseo, _CoretimePolkadot);
|
|
8230
|
-
return _createClass(CoretimePaseo
|
|
8311
|
+
return _createClass(CoretimePaseo, [{
|
|
8312
|
+
key: "isSendingTempDisabled",
|
|
8313
|
+
value: function isSendingTempDisabled(_options) {
|
|
8314
|
+
return false;
|
|
8315
|
+
}
|
|
8316
|
+
}, {
|
|
8317
|
+
key: "isReceivingTempDisabled",
|
|
8318
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8319
|
+
return false;
|
|
8320
|
+
}
|
|
8321
|
+
}]);
|
|
8231
8322
|
}(CoretimePolkadot);
|
|
8232
8323
|
|
|
8233
8324
|
var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
@@ -8236,7 +8327,17 @@ var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
|
8236
8327
|
return _callSuper(this, CoretimeWestend, ['CoretimeWestend', 'westendCoretime', 'Westend', Version.V5]);
|
|
8237
8328
|
}
|
|
8238
8329
|
_inherits(CoretimeWestend, _CoretimePolkadot);
|
|
8239
|
-
return _createClass(CoretimeWestend
|
|
8330
|
+
return _createClass(CoretimeWestend, [{
|
|
8331
|
+
key: "isSendingTempDisabled",
|
|
8332
|
+
value: function isSendingTempDisabled(_options) {
|
|
8333
|
+
return false;
|
|
8334
|
+
}
|
|
8335
|
+
}, {
|
|
8336
|
+
key: "isReceivingTempDisabled",
|
|
8337
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8338
|
+
return false;
|
|
8339
|
+
}
|
|
8340
|
+
}]);
|
|
8240
8341
|
}(CoretimePolkadot);
|
|
8241
8342
|
|
|
8242
8343
|
var Crab = /*#__PURE__*/function (_Parachain) {
|
|
@@ -9538,6 +9639,11 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9538
9639
|
includeFee: true
|
|
9539
9640
|
};
|
|
9540
9641
|
}
|
|
9642
|
+
}, {
|
|
9643
|
+
key: "transferLocal",
|
|
9644
|
+
value: function transferLocal(_options) {
|
|
9645
|
+
throw new InvalidParameterError("Local transfers on ".concat(this.chain, " are temporarily disabled."));
|
|
9646
|
+
}
|
|
9541
9647
|
}, {
|
|
9542
9648
|
key: "isSendingTempDisabled",
|
|
9543
9649
|
value: function isSendingTempDisabled(_options) {
|
|
@@ -9713,7 +9819,17 @@ var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
|
9713
9819
|
return _callSuper(this, PeoplePaseo, ['PeoplePaseo', 'PaseoPeopleChain', 'Paseo', Version.V5]);
|
|
9714
9820
|
}
|
|
9715
9821
|
_inherits(PeoplePaseo, _PeoplePolkadot);
|
|
9716
|
-
return _createClass(PeoplePaseo
|
|
9822
|
+
return _createClass(PeoplePaseo, [{
|
|
9823
|
+
key: "isSendingTempDisabled",
|
|
9824
|
+
value: function isSendingTempDisabled(_options) {
|
|
9825
|
+
return false;
|
|
9826
|
+
}
|
|
9827
|
+
}, {
|
|
9828
|
+
key: "isReceivingTempDisabled",
|
|
9829
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
9830
|
+
return false;
|
|
9831
|
+
}
|
|
9832
|
+
}]);
|
|
9717
9833
|
}(PeoplePolkadot);
|
|
9718
9834
|
|
|
9719
9835
|
var PeopleWestend = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
@@ -9722,7 +9838,17 @@ var PeopleWestend = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
|
9722
9838
|
return _callSuper(this, PeopleWestend, ['PeopleWestend', 'westendPeople', 'Westend', Version.V5]);
|
|
9723
9839
|
}
|
|
9724
9840
|
_inherits(PeopleWestend, _PeoplePolkadot);
|
|
9725
|
-
return _createClass(PeopleWestend
|
|
9841
|
+
return _createClass(PeopleWestend, [{
|
|
9842
|
+
key: "isSendingTempDisabled",
|
|
9843
|
+
value: function isSendingTempDisabled(_options) {
|
|
9844
|
+
return false;
|
|
9845
|
+
}
|
|
9846
|
+
}, {
|
|
9847
|
+
key: "isReceivingTempDisabled",
|
|
9848
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
9849
|
+
return false;
|
|
9850
|
+
}
|
|
9851
|
+
}]);
|
|
9726
9852
|
}(PeoplePolkadot);
|
|
9727
9853
|
|
|
9728
9854
|
var determineDestWeight = function determineDestWeight(destChain) {
|
|
@@ -11845,7 +11971,7 @@ var send = /*#__PURE__*/function () {
|
|
|
11845
11971
|
destVersion = !isTLocation(destination) ? getChainVersion(destination) : undefined;
|
|
11846
11972
|
resolvedVersion = selectXcmVersion(version, originVersion, destVersion);
|
|
11847
11973
|
if (!isRelayChain(origin)) {
|
|
11848
|
-
_context.n =
|
|
11974
|
+
_context.n = 7;
|
|
11849
11975
|
break;
|
|
11850
11976
|
}
|
|
11851
11977
|
if (!(destination === 'Ethereum')) {
|
|
@@ -11862,18 +11988,24 @@ var send = /*#__PURE__*/function () {
|
|
|
11862
11988
|
case 2:
|
|
11863
11989
|
isLocalTransfer = origin === destination;
|
|
11864
11990
|
if (!isLocalTransfer) {
|
|
11865
|
-
_context.n =
|
|
11991
|
+
_context.n = 6;
|
|
11866
11992
|
break;
|
|
11867
11993
|
}
|
|
11868
|
-
if (!
|
|
11994
|
+
if (!(origin === 'Polkadot')) {
|
|
11869
11995
|
_context.n = 3;
|
|
11870
11996
|
break;
|
|
11871
11997
|
}
|
|
11872
|
-
throw new
|
|
11998
|
+
throw new InvalidParameterError('Local transfers on Polkadot relay chain are temporarily disabled.');
|
|
11873
11999
|
case 3:
|
|
11874
|
-
|
|
11875
|
-
|
|
12000
|
+
if (!isTLocation(address)) {
|
|
12001
|
+
_context.n = 4;
|
|
12002
|
+
break;
|
|
12003
|
+
}
|
|
12004
|
+
throw new InvalidAddressError('Location address is not supported for local transfers.');
|
|
11876
12005
|
case 4:
|
|
12006
|
+
_context.n = 5;
|
|
12007
|
+
return api.init(origin, TX_CLIENT_TIMEOUT_MS);
|
|
12008
|
+
case 5:
|
|
11877
12009
|
return _context.a(2, api.callTxMethod(isAmountAll ? {
|
|
11878
12010
|
module: 'Balances',
|
|
11879
12011
|
method: 'transfer_all',
|
|
@@ -11893,7 +12025,7 @@ var send = /*#__PURE__*/function () {
|
|
|
11893
12025
|
value: finalAmount
|
|
11894
12026
|
}
|
|
11895
12027
|
}));
|
|
11896
|
-
case
|
|
12028
|
+
case 6:
|
|
11897
12029
|
return _context.a(2, transferRelayToPara({
|
|
11898
12030
|
api: api,
|
|
11899
12031
|
origin: origin,
|
|
@@ -11909,11 +12041,11 @@ var send = /*#__PURE__*/function () {
|
|
|
11909
12041
|
pallet: pallet,
|
|
11910
12042
|
method: method
|
|
11911
12043
|
}));
|
|
11912
|
-
case
|
|
12044
|
+
case 7:
|
|
11913
12045
|
overriddenAsset = resolveOverriddenAsset(options, isBridge, assetCheckEnabled, resolvedFeeAsset);
|
|
11914
|
-
_context.n =
|
|
12046
|
+
_context.n = 8;
|
|
11915
12047
|
return api.init(origin, TX_CLIENT_TIMEOUT_MS);
|
|
11916
|
-
case
|
|
12048
|
+
case 8:
|
|
11917
12049
|
// In case asset check is disabled, we create asset object from currency symbol
|
|
11918
12050
|
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
11919
12051
|
symbol: 'symbol' in currency ? currency.symbol : undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-core",
|
|
3
|
-
"version": "11.12.
|
|
3
|
+
"version": "11.12.12",
|
|
4
4
|
"description": "SDK core for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@noble/hashes": "^1.8.0",
|
|
27
27
|
"@scure/base": "^2.0.0",
|
|
28
28
|
"viem": "^2.38.5",
|
|
29
|
-
"@paraspell/assets": "11.12.
|
|
30
|
-
"@paraspell/pallets": "11.12.
|
|
31
|
-
"@paraspell/sdk-common": "11.12.
|
|
29
|
+
"@paraspell/assets": "11.12.12",
|
|
30
|
+
"@paraspell/pallets": "11.12.12",
|
|
31
|
+
"@paraspell/sdk-common": "11.12.12"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|