@paraspell/sdk-core 11.12.10 → 11.12.11
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 +64 -6
- package/dist/index.d.ts +11 -0
- package/dist/index.mjs +64 -6
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -7287,6 +7287,11 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
7287
7287
|
value: function transferLocalNonNativeAsset(options) {
|
|
7288
7288
|
return getChain('AssetHubPolkadot').transferLocalNonNativeAsset(options);
|
|
7289
7289
|
}
|
|
7290
|
+
}, {
|
|
7291
|
+
key: "isSendingTempDisabled",
|
|
7292
|
+
value: function isSendingTempDisabled(_options) {
|
|
7293
|
+
return true;
|
|
7294
|
+
}
|
|
7290
7295
|
}]);
|
|
7291
7296
|
}(Parachain);
|
|
7292
7297
|
|
|
@@ -7564,6 +7569,16 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7564
7569
|
includeFee: true
|
|
7565
7570
|
};
|
|
7566
7571
|
}
|
|
7572
|
+
}, {
|
|
7573
|
+
key: "isSendingTempDisabled",
|
|
7574
|
+
value: function isSendingTempDisabled(_options) {
|
|
7575
|
+
return true;
|
|
7576
|
+
}
|
|
7577
|
+
}, {
|
|
7578
|
+
key: "isReceivingTempDisabled",
|
|
7579
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
7580
|
+
return true;
|
|
7581
|
+
}
|
|
7567
7582
|
}, {
|
|
7568
7583
|
key: "createCurrencySpec",
|
|
7569
7584
|
value: function createCurrencySpec(amount, scenario, version, asset, isOverriddenAsset) {
|
|
@@ -7852,9 +7867,12 @@ var BifrostPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7852
7867
|
}, {
|
|
7853
7868
|
key: "transferPolkadotXCM",
|
|
7854
7869
|
value: function transferPolkadotXCM(options) {
|
|
7855
|
-
var destination = options.destination
|
|
7870
|
+
var destination = options.destination,
|
|
7871
|
+
scenario = options.scenario;
|
|
7856
7872
|
if (destination === 'Ethereum') {
|
|
7857
|
-
|
|
7873
|
+
//Temporarily disabled
|
|
7874
|
+
//return this.transferToEthereum(options)
|
|
7875
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, 'Snowbridge is temporarily disabled.');
|
|
7858
7876
|
}
|
|
7859
7877
|
return this.transferToAssetHub(options);
|
|
7860
7878
|
}
|
|
@@ -7967,6 +7985,16 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7967
7985
|
includeFee: true
|
|
7968
7986
|
};
|
|
7969
7987
|
}
|
|
7988
|
+
}, {
|
|
7989
|
+
key: "isSendingTempDisabled",
|
|
7990
|
+
value: function isSendingTempDisabled(_options) {
|
|
7991
|
+
return true;
|
|
7992
|
+
}
|
|
7993
|
+
}, {
|
|
7994
|
+
key: "isReceivingTempDisabled",
|
|
7995
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
7996
|
+
return true;
|
|
7997
|
+
}
|
|
7970
7998
|
}]);
|
|
7971
7999
|
}(Parachain);
|
|
7972
8000
|
|
|
@@ -8073,6 +8101,16 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
8073
8101
|
includeFee: true
|
|
8074
8102
|
};
|
|
8075
8103
|
}
|
|
8104
|
+
}, {
|
|
8105
|
+
key: "isSendingTempDisabled",
|
|
8106
|
+
value: function isSendingTempDisabled(_options) {
|
|
8107
|
+
return true;
|
|
8108
|
+
}
|
|
8109
|
+
}, {
|
|
8110
|
+
key: "isReceivingTempDisabled",
|
|
8111
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8112
|
+
return true;
|
|
8113
|
+
}
|
|
8076
8114
|
}]);
|
|
8077
8115
|
}(Parachain);
|
|
8078
8116
|
|
|
@@ -8169,6 +8207,16 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
8169
8207
|
includeFee: true
|
|
8170
8208
|
};
|
|
8171
8209
|
}
|
|
8210
|
+
}, {
|
|
8211
|
+
key: "isSendingTempDisabled",
|
|
8212
|
+
value: function isSendingTempDisabled(_options) {
|
|
8213
|
+
return true;
|
|
8214
|
+
}
|
|
8215
|
+
}, {
|
|
8216
|
+
key: "isReceivingTempDisabled",
|
|
8217
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8218
|
+
return true;
|
|
8219
|
+
}
|
|
8172
8220
|
}]);
|
|
8173
8221
|
}(Parachain);
|
|
8174
8222
|
|
|
@@ -8576,16 +8624,16 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
|
|
|
8576
8624
|
key: "transferPolkadotXCM",
|
|
8577
8625
|
value: function () {
|
|
8578
8626
|
var _transferPolkadotXCM = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(input) {
|
|
8579
|
-
var api, destination, feeAsset, asset, overriddenAsset, isNativeAsset, isNativeFeeAsset, _t;
|
|
8627
|
+
var api, destination, scenario, feeAsset, asset, overriddenAsset, isNativeAsset, isNativeFeeAsset, _t;
|
|
8580
8628
|
return _regenerator().w(function (_context) {
|
|
8581
8629
|
while (1) switch (_context.n) {
|
|
8582
8630
|
case 0:
|
|
8583
|
-
api = input.api, destination = input.destination, feeAsset = input.feeAssetInfo, asset = input.assetInfo, overriddenAsset = input.overriddenAsset;
|
|
8631
|
+
api = input.api, destination = input.destination, scenario = input.scenario, feeAsset = input.feeAssetInfo, asset = input.assetInfo, overriddenAsset = input.overriddenAsset;
|
|
8584
8632
|
if (!(destination === 'Ethereum')) {
|
|
8585
8633
|
_context.n = 1;
|
|
8586
8634
|
break;
|
|
8587
8635
|
}
|
|
8588
|
-
|
|
8636
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, 'Snowbridge is temporarily disabled.');
|
|
8589
8637
|
case 1:
|
|
8590
8638
|
if (!feeAsset) {
|
|
8591
8639
|
_context.n = 4;
|
|
@@ -9158,7 +9206,7 @@ var Moonbeam = /*#__PURE__*/function (_Parachain) {
|
|
|
9158
9206
|
_context.n = 1;
|
|
9159
9207
|
break;
|
|
9160
9208
|
}
|
|
9161
|
-
|
|
9209
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, 'Snowbridge is temporarily disabled.');
|
|
9162
9210
|
case 1:
|
|
9163
9211
|
if (!assets.isSymbolMatch(assetInfo.symbol, assets.getRelayChainSymbol(this.chain))) {
|
|
9164
9212
|
_context.n = 3;
|
|
@@ -9489,6 +9537,16 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9489
9537
|
includeFee: true
|
|
9490
9538
|
};
|
|
9491
9539
|
}
|
|
9540
|
+
}, {
|
|
9541
|
+
key: "isSendingTempDisabled",
|
|
9542
|
+
value: function isSendingTempDisabled(_options) {
|
|
9543
|
+
return true;
|
|
9544
|
+
}
|
|
9545
|
+
}, {
|
|
9546
|
+
key: "isReceivingTempDisabled",
|
|
9547
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
9548
|
+
return true;
|
|
9549
|
+
}
|
|
9492
9550
|
}]);
|
|
9493
9551
|
}(Parachain);
|
|
9494
9552
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1582,6 +1582,7 @@ declare class AssetHubKusama<TApi, TRes> extends Parachain<TApi, TRes> implement
|
|
|
1582
1582
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1583
1583
|
createCurrencySpec(amount: bigint, scenario: TScenario, version: Version, asset?: TAssetInfo, isOverridenAsset?: boolean): _paraspell_assets.TAsset;
|
|
1584
1584
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1585
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1585
1586
|
}
|
|
1586
1587
|
|
|
1587
1588
|
declare class AssetHubPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
@@ -1593,6 +1594,8 @@ declare class AssetHubPolkadot<TApi, TRes> extends Parachain<TApi, TRes> impleme
|
|
|
1593
1594
|
private getMethod;
|
|
1594
1595
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1595
1596
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1597
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1598
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1596
1599
|
createCurrencySpec(amount: bigint, scenario: TScenario, version: Version, asset?: TAssetInfo, isOverriddenAsset?: boolean): _paraspell_assets.TAsset;
|
|
1597
1600
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1598
1601
|
}
|
|
@@ -1692,6 +1695,8 @@ declare class BridgeHubPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implem
|
|
|
1692
1695
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1693
1696
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1694
1697
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1698
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1699
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1695
1700
|
}
|
|
1696
1701
|
|
|
1697
1702
|
declare class BridgeHubPaseo<TApi, TRes> extends BridgeHubPolkadot<TApi, TRes> {
|
|
@@ -1713,6 +1718,8 @@ declare class Collectives<TApi, TRes> extends Parachain<TApi, TRes> implements I
|
|
|
1713
1718
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1714
1719
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1715
1720
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1721
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1722
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1716
1723
|
}
|
|
1717
1724
|
|
|
1718
1725
|
declare class CollectivesWestend<TApi, TRes> extends Collectives<TApi, TRes> {
|
|
@@ -1737,6 +1744,8 @@ declare class CoretimePolkadot<TApi, TRes> extends Parachain<TApi, TRes> impleme
|
|
|
1737
1744
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1738
1745
|
canReceiveFrom(origin: TChain): boolean;
|
|
1739
1746
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1747
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1748
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1740
1749
|
}
|
|
1741
1750
|
|
|
1742
1751
|
declare class CoretimePaseo<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
|
|
@@ -1941,6 +1950,8 @@ declare class PeoplePolkadot<TApi, TRes> extends Parachain<TApi, TRes> implement
|
|
|
1941
1950
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1942
1951
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1943
1952
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1953
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1954
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1944
1955
|
}
|
|
1945
1956
|
|
|
1946
1957
|
declare class PAssetHub<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
package/dist/index.mjs
CHANGED
|
@@ -7288,6 +7288,11 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
7288
7288
|
value: function transferLocalNonNativeAsset(options) {
|
|
7289
7289
|
return getChain('AssetHubPolkadot').transferLocalNonNativeAsset(options);
|
|
7290
7290
|
}
|
|
7291
|
+
}, {
|
|
7292
|
+
key: "isSendingTempDisabled",
|
|
7293
|
+
value: function isSendingTempDisabled(_options) {
|
|
7294
|
+
return true;
|
|
7295
|
+
}
|
|
7291
7296
|
}]);
|
|
7292
7297
|
}(Parachain);
|
|
7293
7298
|
|
|
@@ -7565,6 +7570,16 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7565
7570
|
includeFee: true
|
|
7566
7571
|
};
|
|
7567
7572
|
}
|
|
7573
|
+
}, {
|
|
7574
|
+
key: "isSendingTempDisabled",
|
|
7575
|
+
value: function isSendingTempDisabled(_options) {
|
|
7576
|
+
return true;
|
|
7577
|
+
}
|
|
7578
|
+
}, {
|
|
7579
|
+
key: "isReceivingTempDisabled",
|
|
7580
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
7581
|
+
return true;
|
|
7582
|
+
}
|
|
7568
7583
|
}, {
|
|
7569
7584
|
key: "createCurrencySpec",
|
|
7570
7585
|
value: function createCurrencySpec(amount, scenario, version, asset, isOverriddenAsset) {
|
|
@@ -7853,9 +7868,12 @@ var BifrostPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7853
7868
|
}, {
|
|
7854
7869
|
key: "transferPolkadotXCM",
|
|
7855
7870
|
value: function transferPolkadotXCM(options) {
|
|
7856
|
-
var destination = options.destination
|
|
7871
|
+
var destination = options.destination,
|
|
7872
|
+
scenario = options.scenario;
|
|
7857
7873
|
if (destination === 'Ethereum') {
|
|
7858
|
-
|
|
7874
|
+
//Temporarily disabled
|
|
7875
|
+
//return this.transferToEthereum(options)
|
|
7876
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, 'Snowbridge is temporarily disabled.');
|
|
7859
7877
|
}
|
|
7860
7878
|
return this.transferToAssetHub(options);
|
|
7861
7879
|
}
|
|
@@ -7968,6 +7986,16 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
7968
7986
|
includeFee: true
|
|
7969
7987
|
};
|
|
7970
7988
|
}
|
|
7989
|
+
}, {
|
|
7990
|
+
key: "isSendingTempDisabled",
|
|
7991
|
+
value: function isSendingTempDisabled(_options) {
|
|
7992
|
+
return true;
|
|
7993
|
+
}
|
|
7994
|
+
}, {
|
|
7995
|
+
key: "isReceivingTempDisabled",
|
|
7996
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
7997
|
+
return true;
|
|
7998
|
+
}
|
|
7971
7999
|
}]);
|
|
7972
8000
|
}(Parachain);
|
|
7973
8001
|
|
|
@@ -8074,6 +8102,16 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
8074
8102
|
includeFee: true
|
|
8075
8103
|
};
|
|
8076
8104
|
}
|
|
8105
|
+
}, {
|
|
8106
|
+
key: "isSendingTempDisabled",
|
|
8107
|
+
value: function isSendingTempDisabled(_options) {
|
|
8108
|
+
return true;
|
|
8109
|
+
}
|
|
8110
|
+
}, {
|
|
8111
|
+
key: "isReceivingTempDisabled",
|
|
8112
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8113
|
+
return true;
|
|
8114
|
+
}
|
|
8077
8115
|
}]);
|
|
8078
8116
|
}(Parachain);
|
|
8079
8117
|
|
|
@@ -8170,6 +8208,16 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
8170
8208
|
includeFee: true
|
|
8171
8209
|
};
|
|
8172
8210
|
}
|
|
8211
|
+
}, {
|
|
8212
|
+
key: "isSendingTempDisabled",
|
|
8213
|
+
value: function isSendingTempDisabled(_options) {
|
|
8214
|
+
return true;
|
|
8215
|
+
}
|
|
8216
|
+
}, {
|
|
8217
|
+
key: "isReceivingTempDisabled",
|
|
8218
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
8219
|
+
return true;
|
|
8220
|
+
}
|
|
8173
8221
|
}]);
|
|
8174
8222
|
}(Parachain);
|
|
8175
8223
|
|
|
@@ -8577,16 +8625,16 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
|
|
|
8577
8625
|
key: "transferPolkadotXCM",
|
|
8578
8626
|
value: function () {
|
|
8579
8627
|
var _transferPolkadotXCM = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(input) {
|
|
8580
|
-
var api, destination, feeAsset, asset, overriddenAsset, isNativeAsset, isNativeFeeAsset, _t;
|
|
8628
|
+
var api, destination, scenario, feeAsset, asset, overriddenAsset, isNativeAsset, isNativeFeeAsset, _t;
|
|
8581
8629
|
return _regenerator().w(function (_context) {
|
|
8582
8630
|
while (1) switch (_context.n) {
|
|
8583
8631
|
case 0:
|
|
8584
|
-
api = input.api, destination = input.destination, feeAsset = input.feeAssetInfo, asset = input.assetInfo, overriddenAsset = input.overriddenAsset;
|
|
8632
|
+
api = input.api, destination = input.destination, scenario = input.scenario, feeAsset = input.feeAssetInfo, asset = input.assetInfo, overriddenAsset = input.overriddenAsset;
|
|
8585
8633
|
if (!(destination === 'Ethereum')) {
|
|
8586
8634
|
_context.n = 1;
|
|
8587
8635
|
break;
|
|
8588
8636
|
}
|
|
8589
|
-
|
|
8637
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, 'Snowbridge is temporarily disabled.');
|
|
8590
8638
|
case 1:
|
|
8591
8639
|
if (!feeAsset) {
|
|
8592
8640
|
_context.n = 4;
|
|
@@ -9159,7 +9207,7 @@ var Moonbeam = /*#__PURE__*/function (_Parachain) {
|
|
|
9159
9207
|
_context.n = 1;
|
|
9160
9208
|
break;
|
|
9161
9209
|
}
|
|
9162
|
-
|
|
9210
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, 'Snowbridge is temporarily disabled.');
|
|
9163
9211
|
case 1:
|
|
9164
9212
|
if (!isSymbolMatch(assetInfo.symbol, getRelayChainSymbol(this.chain))) {
|
|
9165
9213
|
_context.n = 3;
|
|
@@ -9490,6 +9538,16 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9490
9538
|
includeFee: true
|
|
9491
9539
|
};
|
|
9492
9540
|
}
|
|
9541
|
+
}, {
|
|
9542
|
+
key: "isSendingTempDisabled",
|
|
9543
|
+
value: function isSendingTempDisabled(_options) {
|
|
9544
|
+
return true;
|
|
9545
|
+
}
|
|
9546
|
+
}, {
|
|
9547
|
+
key: "isReceivingTempDisabled",
|
|
9548
|
+
value: function isReceivingTempDisabled(_scenario) {
|
|
9549
|
+
return true;
|
|
9550
|
+
}
|
|
9493
9551
|
}]);
|
|
9494
9552
|
}(Parachain);
|
|
9495
9553
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-core",
|
|
3
|
-
"version": "11.12.
|
|
3
|
+
"version": "11.12.11",
|
|
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/
|
|
31
|
-
"@paraspell/
|
|
29
|
+
"@paraspell/assets": "11.12.11",
|
|
30
|
+
"@paraspell/pallets": "11.12.11",
|
|
31
|
+
"@paraspell/sdk-common": "11.12.11"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|