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