@paraspell/sdk-core 11.12.15 → 11.13.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/dist/index.cjs CHANGED
@@ -1506,17 +1506,6 @@ var Centrifuge$1 = {
1506
1506
  }
1507
1507
  ]
1508
1508
  };
1509
- var ComposableFinance$1 = {
1510
- name: "Composable Finance",
1511
- info: "composable",
1512
- paraId: 2019,
1513
- providers: [
1514
- {
1515
- name: "Composable",
1516
- endpoint: "wss://rpc.composable.finance"
1517
- }
1518
- ]
1519
- };
1520
1509
  var Darwinia$1 = {
1521
1510
  name: "Darwinia",
1522
1511
  info: "darwinia",
@@ -2899,7 +2888,6 @@ var configs = {
2899
2888
  BifrostPolkadot: BifrostPolkadot$1,
2900
2889
  BridgeHubPolkadot: BridgeHubPolkadot$1,
2901
2890
  Centrifuge: Centrifuge$1,
2902
- ComposableFinance: ComposableFinance$1,
2903
2891
  Darwinia: Darwinia$1,
2904
2892
  EnergyWebX: EnergyWebX$1,
2905
2893
  Hydration: Hydration$1,
@@ -3268,6 +3256,7 @@ var getAssetReserveChain = function getAssetReserveChain(chain, assetLocation) {
3268
3256
  }
3269
3257
  return resolvedChain;
3270
3258
  }
3259
+ if (sdkCommon.isRelayChain(chain)) return chain;
3271
3260
  var relaychain = getRelayChainOf(chain);
3272
3261
  var ahChain = "AssetHub".concat(relaychain);
3273
3262
  if (hasGlobalConsensusJunction) {
@@ -8013,32 +8002,6 @@ var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
8013
8002
  return _createClass(CollectivesWestend);
8014
8003
  }(Collectives);
8015
8004
 
8016
- var ComposableFinance = /*#__PURE__*/function (_Parachain) {
8017
- function ComposableFinance() {
8018
- _classCallCheck(this, ComposableFinance);
8019
- return _callSuper(this, ComposableFinance, ['ComposableFinance', 'composable', 'Polkadot', sdkCommon.Version.V3]);
8020
- }
8021
- _inherits(ComposableFinance, _Parachain);
8022
- return _createClass(ComposableFinance, [{
8023
- key: "transferXTokens",
8024
- value: function transferXTokens$1(input) {
8025
- var asset = input.asset;
8026
- assertHasId(asset);
8027
- return transferXTokens(input, BigInt(asset.assetId));
8028
- }
8029
- }, {
8030
- key: "isSendingTempDisabled",
8031
- value: function isSendingTempDisabled(_options) {
8032
- return true;
8033
- }
8034
- }, {
8035
- key: "isReceivingTempDisabled",
8036
- value: function isReceivingTempDisabled(_scenario) {
8037
- return true;
8038
- }
8039
- }]);
8040
- }(Parachain);
8041
-
8042
8005
  var CoretimeKusama = /*#__PURE__*/function (_Parachain) {
8043
8006
  function CoretimeKusama() {
8044
8007
  _classCallCheck(this, CoretimeKusama);
@@ -9868,7 +9831,6 @@ var chains = function chains() {
9868
9831
  BifrostPolkadot: new BifrostPolkadot(),
9869
9832
  BridgeHubPolkadot: new BridgeHubPolkadot(),
9870
9833
  Centrifuge: new Centrifuge(),
9871
- ComposableFinance: new ComposableFinance(),
9872
9834
  Darwinia: new Darwinia(),
9873
9835
  EnergyWebX: new EnergyWebX(),
9874
9836
  Hydration: new Hydration(),
package/dist/index.d.ts CHANGED
@@ -1715,13 +1715,6 @@ declare class CollectivesWestend<TApi, TRes> extends Collectives<TApi, TRes> {
1715
1715
  constructor();
1716
1716
  }
1717
1717
 
1718
- declare class ComposableFinance<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1719
- constructor();
1720
- transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1721
- isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
1722
- isReceivingTempDisabled(_scenario: TScenario): boolean;
1723
- }
1724
-
1725
1718
  declare class CoretimeKusama<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1726
1719
  constructor();
1727
1720
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
@@ -2042,7 +2035,6 @@ declare const chains: <TApi, TRes>() => {
2042
2035
  BifrostPolkadot: BifrostPolkadot<TApi, TRes>;
2043
2036
  BridgeHubPolkadot: BridgeHubPolkadot<TApi, TRes>;
2044
2037
  Centrifuge: Centrifuge<TApi, TRes>;
2045
- ComposableFinance: ComposableFinance<TApi, TRes>;
2046
2038
  Darwinia: Darwinia<TApi, TRes>;
2047
2039
  EnergyWebX: EnergyWebX<TApi, TRes>;
2048
2040
  Hydration: Hydration<TApi, TRes>;
@@ -2283,7 +2275,7 @@ declare const reverseTransformLocation: (location: TLocation) => TLocation;
2283
2275
 
2284
2276
  declare const normalizeAmount: (amount: bigint) => bigint;
2285
2277
 
2286
- declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "ComposableFinance" | "Darwinia" | "EnergyWebX" | "Hydration" | "IntegriteePolkadot" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "Xode" | "AssetHubKusama" | "BridgeHubKusama" | "IntegriteeKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Altair" | "Amplitude" | "Basilisk" | "BifrostKusama" | "CrustShadow" | "Crab" | "Laos" | "Quartz" | "RobonomicsKusama" | "PeopleKusama" | "Shiden" | "Zeitgeist" | "AssetHubWestend" | "BridgeHubWestend" | "CollectivesWestend" | "CoretimeWestend" | "Penpal" | "PeopleWestend" | "AjunaPaseo" | "AssetHubPaseo" | "BifrostPaseo" | "BridgeHubPaseo" | "CoretimePaseo" | "EnergyWebXPaseo" | "HeimaPaseo" | "HydrationPaseo" | "IntegriteePaseo" | "KiltPaseo" | "LaosPaseo" | "NeuroWebPaseo" | "NodlePaseo" | "PAssetHub" | "PeoplePaseo" | "ZeitgeistPaseo" | undefined;
2278
+ declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "Darwinia" | "EnergyWebX" | "Hydration" | "IntegriteePolkadot" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "Xode" | "AssetHubKusama" | "BridgeHubKusama" | "IntegriteeKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Altair" | "Amplitude" | "Basilisk" | "BifrostKusama" | "CrustShadow" | "Crab" | "Laos" | "Quartz" | "RobonomicsKusama" | "PeopleKusama" | "Shiden" | "Zeitgeist" | "AssetHubWestend" | "BridgeHubWestend" | "CollectivesWestend" | "CoretimeWestend" | "Penpal" | "PeopleWestend" | "AjunaPaseo" | "AssetHubPaseo" | "BifrostPaseo" | "BridgeHubPaseo" | "CoretimePaseo" | "EnergyWebXPaseo" | "HeimaPaseo" | "HydrationPaseo" | "IntegriteePaseo" | "KiltPaseo" | "LaosPaseo" | "NeuroWebPaseo" | "NodlePaseo" | "PAssetHub" | "PeoplePaseo" | "ZeitgeistPaseo" | undefined;
2287
2279
 
2288
2280
  declare const resolveParaId: (paraId: number | undefined, destination: TDestination) => number | undefined;
2289
2281
 
package/dist/index.mjs CHANGED
@@ -1507,17 +1507,6 @@ var Centrifuge$1 = {
1507
1507
  }
1508
1508
  ]
1509
1509
  };
1510
- var ComposableFinance$1 = {
1511
- name: "Composable Finance",
1512
- info: "composable",
1513
- paraId: 2019,
1514
- providers: [
1515
- {
1516
- name: "Composable",
1517
- endpoint: "wss://rpc.composable.finance"
1518
- }
1519
- ]
1520
- };
1521
1510
  var Darwinia$1 = {
1522
1511
  name: "Darwinia",
1523
1512
  info: "darwinia",
@@ -2900,7 +2889,6 @@ var configs = {
2900
2889
  BifrostPolkadot: BifrostPolkadot$1,
2901
2890
  BridgeHubPolkadot: BridgeHubPolkadot$1,
2902
2891
  Centrifuge: Centrifuge$1,
2903
- ComposableFinance: ComposableFinance$1,
2904
2892
  Darwinia: Darwinia$1,
2905
2893
  EnergyWebX: EnergyWebX$1,
2906
2894
  Hydration: Hydration$1,
@@ -3269,6 +3257,7 @@ var getAssetReserveChain = function getAssetReserveChain(chain, assetLocation) {
3269
3257
  }
3270
3258
  return resolvedChain;
3271
3259
  }
3260
+ if (isRelayChain(chain)) return chain;
3272
3261
  var relaychain = getRelayChainOf(chain);
3273
3262
  var ahChain = "AssetHub".concat(relaychain);
3274
3263
  if (hasGlobalConsensusJunction) {
@@ -8014,32 +8003,6 @@ var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
8014
8003
  return _createClass(CollectivesWestend);
8015
8004
  }(Collectives);
8016
8005
 
8017
- var ComposableFinance = /*#__PURE__*/function (_Parachain) {
8018
- function ComposableFinance() {
8019
- _classCallCheck(this, ComposableFinance);
8020
- return _callSuper(this, ComposableFinance, ['ComposableFinance', 'composable', 'Polkadot', Version.V3]);
8021
- }
8022
- _inherits(ComposableFinance, _Parachain);
8023
- return _createClass(ComposableFinance, [{
8024
- key: "transferXTokens",
8025
- value: function transferXTokens$1(input) {
8026
- var asset = input.asset;
8027
- assertHasId(asset);
8028
- return transferXTokens(input, BigInt(asset.assetId));
8029
- }
8030
- }, {
8031
- key: "isSendingTempDisabled",
8032
- value: function isSendingTempDisabled(_options) {
8033
- return true;
8034
- }
8035
- }, {
8036
- key: "isReceivingTempDisabled",
8037
- value: function isReceivingTempDisabled(_scenario) {
8038
- return true;
8039
- }
8040
- }]);
8041
- }(Parachain);
8042
-
8043
8006
  var CoretimeKusama = /*#__PURE__*/function (_Parachain) {
8044
8007
  function CoretimeKusama() {
8045
8008
  _classCallCheck(this, CoretimeKusama);
@@ -9869,7 +9832,6 @@ var chains = function chains() {
9869
9832
  BifrostPolkadot: new BifrostPolkadot(),
9870
9833
  BridgeHubPolkadot: new BridgeHubPolkadot(),
9871
9834
  Centrifuge: new Centrifuge(),
9872
- ComposableFinance: new ComposableFinance(),
9873
9835
  Darwinia: new Darwinia(),
9874
9836
  EnergyWebX: new EnergyWebX(),
9875
9837
  Hydration: new Hydration(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-core",
3
- "version": "11.12.15",
3
+ "version": "11.13.0",
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.15",
30
- "@paraspell/sdk-common": "11.12.15",
31
- "@paraspell/pallets": "11.12.15"
29
+ "@paraspell/assets": "11.13.0",
30
+ "@paraspell/sdk-common": "11.13.0",
31
+ "@paraspell/pallets": "11.13.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/plugin-syntax-import-attributes": "^7.27.1",