@paraspell/sdk-core 11.12.7 → 11.12.9

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.mjs CHANGED
@@ -1636,10 +1636,6 @@ var Moonbeam$1 = {
1636
1636
  name: "Blast",
1637
1637
  endpoint: "wss://moonbeam.public.blastapi.io"
1638
1638
  },
1639
- {
1640
- name: "Dwellir",
1641
- endpoint: "wss://moonbeam-rpc.n.dwellir.com"
1642
- },
1643
1639
  {
1644
1640
  name: "IBP1",
1645
1641
  endpoint: "wss://moonbeam.ibp.network"
@@ -1838,17 +1834,6 @@ var Phala$1 = {
1838
1834
  }
1839
1835
  ]
1840
1836
  };
1841
- var Subsocial$1 = {
1842
- name: "Subsocial",
1843
- info: "subsocial",
1844
- paraId: 2101,
1845
- providers: [
1846
- {
1847
- name: "Dappforce",
1848
- endpoint: "wss://para.subsocial.network"
1849
- }
1850
- ]
1851
- };
1852
1837
  var KiltSpiritnet$1 = {
1853
1838
  name: "KILT Spiritnet",
1854
1839
  info: "kilt",
@@ -1913,33 +1898,6 @@ var Peaq$1 = {
1913
1898
  }
1914
1899
  ]
1915
1900
  };
1916
- var Polimec$1 = {
1917
- name: "Polimec",
1918
- info: "polimec",
1919
- paraId: 3344,
1920
- providers: [
1921
- {
1922
- name: "Amforc",
1923
- endpoint: "wss://polimec.rpc.amforc.com"
1924
- },
1925
- {
1926
- name: "Helikon",
1927
- endpoint: "wss://rpc.helikon.io/polimec"
1928
- },
1929
- {
1930
- name: "IBP1",
1931
- endpoint: "wss://polimec.ibp.network"
1932
- },
1933
- {
1934
- name: "IBP2",
1935
- endpoint: "wss://polimec.dotters.network"
1936
- },
1937
- {
1938
- name: "Polimec Foundation",
1939
- endpoint: "wss://rpc.polimec.org"
1940
- }
1941
- ]
1942
- };
1943
1901
  var RobonomicsPolkadot$1 = {
1944
1902
  name: "Robonomics",
1945
1903
  info: "robonomics",
@@ -2002,18 +1960,6 @@ var Unique$1 = {
2002
1960
  {
2003
1961
  name: "IBP2",
2004
1962
  endpoint: "wss://unique.dotters.network"
2005
- },
2006
- {
2007
- name: "Unique America",
2008
- endpoint: "wss://us-ws.unique.network"
2009
- },
2010
- {
2011
- name: "Unique Asia",
2012
- endpoint: "wss://asia-ws.unique.network"
2013
- },
2014
- {
2015
- name: "Unique Europe",
2016
- endpoint: "wss://eu-ws.unique.network"
2017
1963
  }
2018
1964
  ]
2019
1965
  };
@@ -2184,10 +2130,6 @@ var Moonriver$1 = {
2184
2130
  name: "Allnodes",
2185
2131
  endpoint: "wss://moonriver-rpc.publicnode.com"
2186
2132
  },
2187
- {
2188
- name: "Dwellir",
2189
- endpoint: "wss://moonriver-rpc.n.dwellir.com"
2190
- },
2191
2133
  {
2192
2134
  name: "Moonbeam Foundation",
2193
2135
  endpoint: "wss://wss.api.moonriver.moonbeam.network"
@@ -2377,10 +2319,6 @@ var Quartz$1 = {
2377
2319
  {
2378
2320
  name: "Geo Load Balancer",
2379
2321
  endpoint: "wss://ws-quartz.unique.network"
2380
- },
2381
- {
2382
- name: "Unique Europe",
2383
- endpoint: "wss://eu-ws-quartz.unique.network"
2384
2322
  }
2385
2323
  ]
2386
2324
  };
@@ -2979,12 +2917,10 @@ var configs = {
2979
2917
  NeuroWeb: NeuroWeb$1,
2980
2918
  Pendulum: Pendulum$1,
2981
2919
  Phala: Phala$1,
2982
- Subsocial: Subsocial$1,
2983
2920
  KiltSpiritnet: KiltSpiritnet$1,
2984
2921
  Curio: Curio$1,
2985
2922
  Mythos: Mythos$1,
2986
2923
  Peaq: Peaq$1,
2987
- Polimec: Polimec$1,
2988
2924
  RobonomicsPolkadot: RobonomicsPolkadot$1,
2989
2925
  PeoplePolkadot: PeoplePolkadot$1,
2990
2926
  Unique: Unique$1,
@@ -3900,27 +3836,20 @@ var getBalanceForeignPolkadotXcm = /*#__PURE__*/function () {
3900
3836
  return _context.a(2, api.getMythosForeignBalance(address));
3901
3837
  case 2:
3902
3838
  assertIsForeign(asset);
3903
- if (!(chain === 'Polimec')) {
3904
- _context.n = 3;
3905
- break;
3906
- }
3907
- assertHasLocation(asset);
3908
- return _context.a(2, api.getBalanceForeignAssetsPallet(address, asset.location));
3909
- case 3:
3910
3839
  if (!chain.startsWith('AssetHub')) {
3911
- _context.n = 5;
3840
+ _context.n = 4;
3912
3841
  break;
3913
3842
  }
3914
3843
  ASSETS_PALLET_ID = 50;
3915
3844
  hasRequiredJunctions = asset.location && hasJunction(asset.location, 'PalletInstance', ASSETS_PALLET_ID) && hasJunction(asset.location, 'GeneralIndex');
3916
3845
  if (!(!asset.location || hasRequiredJunctions)) {
3917
- _context.n = 4;
3846
+ _context.n = 3;
3918
3847
  break;
3919
3848
  }
3920
3849
  return _context.a(2, api.getBalanceAssetsPallet(address, Number(asset.assetId)));
3921
- case 4:
3850
+ case 3:
3922
3851
  return _context.a(2, api.getBalanceForeignAssetsPallet(address, asset.location));
3923
- case 5:
3852
+ case 4:
3924
3853
  return _context.a(2, api.getBalanceForeignPolkadotXcm(chain, address, asset));
3925
3854
  }
3926
3855
  }, _callee);
@@ -4542,8 +4471,7 @@ var resolveHopAsset = function resolveHopAsset(_ref) {
4542
4471
  hasPassedExchange = _ref.hasPassedExchange,
4543
4472
  currency = _ref.currency;
4544
4473
  var isRelayAssetIncluded = api.getTypeThenAssetCount(tx) === 2;
4545
- var isSubBridge = !isTLocation(destination) && isSubstrateBridge(originChain, destination);
4546
- var useRelayAssetAsFee = destination === 'Ethereum' || isSubBridge || isRelayAssetIncluded;
4474
+ var useRelayAssetAsFee = destination === 'Ethereum' || isRelayAssetIncluded;
4547
4475
  if (useRelayAssetAsFee) {
4548
4476
  return findNativeAssetInfoOrThrow(getRelayChainOf(currentChain));
4549
4477
  }
@@ -6462,37 +6390,31 @@ var Parachain = /*#__PURE__*/function () {
6462
6390
  api = sendOptions.api, asset = sendOptions.assetInfo, currency = sendOptions.currency, feeAsset = sendOptions.feeAsset, feeCurrency = sendOptions.feeCurrency, address = sendOptions.address, destination = sendOptions.to, paraIdTo = sendOptions.paraIdTo, overriddenAsset = sendOptions.overriddenAsset, version = sendOptions.version, senderAddress = sendOptions.senderAddress, ahAddress = sendOptions.ahAddress, pallet = sendOptions.pallet, method = sendOptions.method;
6463
6391
  scenario = resolveScenario(this.chain, destination);
6464
6392
  paraId = resolveParaId(paraIdTo, destination);
6465
- destChain = resolveDestChain(this.chain, paraId); // TODO: Use canReceiveFrom for this condition
6466
- if (!(destination === 'Polimec' && this.chain !== 'AssetHubPolkadot' && this.chain !== 'Hydration' && this.chain !== destination)) {
6467
- _context.n = 1;
6468
- break;
6469
- }
6470
- throw new InvalidParameterError('Sending assets to Polimec is supported only from AssetHubPolkadot and Hydration');
6471
- case 1:
6393
+ destChain = resolveDestChain(this.chain, paraId);
6472
6394
  isLocalTransfer = this.chain === destination;
6473
6395
  if (!isLocalTransfer) {
6474
- _context.n = 2;
6396
+ _context.n = 1;
6475
6397
  break;
6476
6398
  }
6477
6399
  return _context.a(2, this.transferLocal(sendOptions));
6478
- case 2:
6400
+ case 1:
6479
6401
  this.throwIfTempDisabled(sendOptions, destChain);
6480
6402
  this.throwIfCantReceive(destChain);
6481
6403
  isRelayAsset = deepEqual(asset.location, RELAY_LOCATION) && isSymbolMatch(getRelayChainSymbol(this.chain), asset.symbol);
6482
- _context.n = 3;
6404
+ _context.n = 2;
6483
6405
  return api.hasMethod('PolkadotXcm', 'transfer_assets_using_type_and_then');
6484
- case 3:
6406
+ case 2:
6485
6407
  supportsTypeThen = _context.v;
6486
6408
  if (!(isRelayAsset && !supportsTypeThen)) {
6487
- _context.n = 4;
6409
+ _context.n = 3;
6488
6410
  break;
6489
6411
  }
6490
6412
  throw new InvalidParameterError('Relaychain assets can only be transferred using the type-and-then method which is not supported by this chain');
6491
- case 4:
6413
+ case 3:
6492
6414
  isSubBridge = !isTLocation(destination) && isSubstrateBridge(this.chain, destination);
6493
6415
  useTypeAndThen = isRelayAsset && supportsTypeThen && destChain && !feeAsset && (!isTrustedChain(this.chain) || !isTrustedChain(destChain)) || isSubBridge;
6494
6416
  if (!(supportsXTokens(this) && this.canUseXTokens(sendOptions) && !useTypeAndThen)) {
6495
- _context.n = 6;
6417
+ _context.n = 5;
6496
6418
  break;
6497
6419
  }
6498
6420
  isBifrostOrigin = this.chain === 'BifrostPolkadot' || this.chain === 'BifrostKusama';
@@ -6513,15 +6435,15 @@ var Parachain = /*#__PURE__*/function () {
6513
6435
  method: method
6514
6436
  };
6515
6437
  if (!useMultiAssets) {
6516
- _context.n = 5;
6438
+ _context.n = 4;
6517
6439
  break;
6518
6440
  }
6519
6441
  return _context.a(2, transferXTokens(input, undefined));
6520
- case 5:
6442
+ case 4:
6521
6443
  return _context.a(2, this.transferXTokens(input));
6522
- case 6:
6444
+ case 5:
6523
6445
  if (!supportsXTransfer(this)) {
6524
- _context.n = 7;
6446
+ _context.n = 6;
6525
6447
  break;
6526
6448
  }
6527
6449
  return _context.a(2, this.transferXTransfer({
@@ -6535,9 +6457,9 @@ var Parachain = /*#__PURE__*/function () {
6535
6457
  pallet: pallet,
6536
6458
  method: method
6537
6459
  }));
6538
- case 7:
6460
+ case 6:
6539
6461
  if (!(supportsPolkadotXCM(this) || useTypeAndThen)) {
6540
- _context.n = 16;
6462
+ _context.n = 15;
6541
6463
  break;
6542
6464
  }
6543
6465
  options = {
@@ -6572,17 +6494,17 @@ var Parachain = /*#__PURE__*/function () {
6572
6494
  return chain === null || chain === void 0 ? void 0 : chain.startsWith('Integritee');
6573
6495
  };
6574
6496
  if (!((isAhToOtherPara || isOtherParaToAh) && shouldUseTeleport && !isAllowedAhTransfer(destChain) && !isAllowedAhTransfer(this.chain))) {
6575
- _context.n = 8;
6497
+ _context.n = 7;
6576
6498
  break;
6577
6499
  }
6578
6500
  throw new TransferToAhNotSupported('Native asset transfers to or from AssetHub are temporarily disabled');
6579
- case 8:
6501
+ case 7:
6580
6502
  if (!(this.chain === 'Astar' && isRelayAsset)) {
6581
- _context.n = 9;
6503
+ _context.n = 8;
6582
6504
  break;
6583
6505
  }
6584
6506
  throw new InvalidParameterError('Astar system asset transfers are temporarily disabled');
6585
- case 9:
6507
+ case 8:
6586
6508
  isAHOrigin = this.chain.includes('AssetHub');
6587
6509
  isAHDest = !isTLocation(destination) && destination.includes('AssetHub'); // Handle common cases
6588
6510
  isExternalAsset = ((_asset$location2 = asset.location) === null || _asset$location2 === void 0 ? void 0 : _asset$location2.parents) === Parents.TWO;
@@ -6590,43 +6512,43 @@ var Parachain = /*#__PURE__*/function () {
6590
6512
  isExternalAssetViaAh = isExternalAsset && !isAHOrigin && !isAHDest && !isEthDest && !feeAsset; // External asset - Any origin to AHP - DestinationReserve - one DepositAsset instruction
6591
6513
  isExternalAssetToAh = isExternalAsset && isAHDest && !isAHOrigin && !isEthDest && !feeAsset;
6592
6514
  if (!(isExternalAssetViaAh || isExternalAssetToAh || useTypeAndThen)) {
6593
- _context.n = 15;
6515
+ _context.n = 14;
6594
6516
  break;
6595
6517
  }
6596
6518
  if (!(useTypeAndThen && supportsPolkadotXCM(this) && !isSubBridge)) {
6597
- _context.n = 10;
6519
+ _context.n = 9;
6598
6520
  break;
6599
6521
  }
6600
- _context.n = 10;
6522
+ _context.n = 9;
6601
6523
  return this.transferPolkadotXCM(options);
6602
- case 10:
6524
+ case 9:
6603
6525
  if (!isRelayAsset) {
6604
- _context.n = 12;
6526
+ _context.n = 11;
6605
6527
  break;
6606
6528
  }
6607
- _context.n = 11;
6529
+ _context.n = 10;
6608
6530
  return createTypeThenAutoReserve(this.chain, options);
6609
- case 11:
6531
+ case 10:
6610
6532
  _t = _context.v;
6611
- _context.n = 14;
6612
- break;
6613
- case 12:
6614
6533
  _context.n = 13;
6534
+ break;
6535
+ case 11:
6536
+ _context.n = 12;
6615
6537
  return createTypeAndThenCall(this.chain, options);
6616
- case 13:
6538
+ case 12:
6617
6539
  _t = _context.v;
6618
- case 14:
6540
+ case 13:
6619
6541
  call = _t;
6620
6542
  return _context.a(2, api.callTxMethod(call));
6621
- case 15:
6543
+ case 14:
6622
6544
  if (!supportsPolkadotXCM(this)) {
6623
- _context.n = 16;
6545
+ _context.n = 15;
6624
6546
  break;
6625
6547
  }
6626
6548
  return _context.a(2, this.transferPolkadotXCM(options));
6627
- case 16:
6549
+ case 15:
6628
6550
  throw new NoXCMSupportImplementedError(this._chain);
6629
- case 17:
6551
+ case 16:
6630
6552
  return _context.a(2);
6631
6553
  }
6632
6554
  }, _callee, this);
@@ -7521,7 +7443,8 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
7521
7443
  var assetInfo = input.assetInfo,
7522
7444
  destination = input.destination,
7523
7445
  version = input.version;
7524
- if ((destination === 'Hydration' || destination === 'Polimec' || destination === 'Moonbeam' || destination === 'BifrostPolkadot') && assetInfo.symbol === this.getNativeAssetSymbol()) {
7446
+ // TODO: Refactor this
7447
+ if ((destination === 'Hydration' || destination === 'Moonbeam' || destination === 'BifrostPolkadot') && assetInfo.symbol === this.getNativeAssetSymbol()) {
7525
7448
  return _objectSpread2(_objectSpread2({}, input), {}, {
7526
7449
  asset: createAsset(version, assetInfo.amount, DOT_LOCATION)
7527
7450
  });
@@ -7532,7 +7455,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
7532
7455
  key: "getMethod",
7533
7456
  value: function getMethod(scenario, destination) {
7534
7457
  var isTrusted = !isTLocation(destination) && isTrustedChain(destination);
7535
- if (destination === 'Polimec' || destination === 'Moonbeam' || typeof destination === 'string' && destination.startsWith('Integritee')) return 'transfer_assets';
7458
+ if (destination === 'Moonbeam' || typeof destination === 'string' && destination.startsWith('Integritee')) return 'transfer_assets';
7536
7459
  return scenario === 'ParaToPara' && !isTrusted ? 'limited_reserve_transfer_assets' : 'limited_teleport_assets';
7537
7460
  }
7538
7461
  }, {
@@ -8589,198 +8512,6 @@ var HeimaPaseo = /*#__PURE__*/function (_Heima) {
8589
8512
  return _createClass(HeimaPaseo);
8590
8513
  }(Heima);
8591
8514
 
8592
- var GAS_LIMIT = 1000000000n;
8593
- var getAssetLocation = function getAssetLocation(asset) {
8594
- if (!isForeignAsset(asset) && asset.symbol === getNativeAssetSymbol('Polimec')) {
8595
- return {
8596
- parents: Parents.ZERO,
8597
- interior: 'Here'
8598
- };
8599
- }
8600
- if (isForeignAsset(asset) && asset.location !== undefined) {
8601
- return asset.location;
8602
- }
8603
- throw new InvalidCurrencyError("Transfer of asset ".concat(JSON.stringify(asset, replaceBigInt), " is not supported yet"));
8604
- };
8605
- var createTransferAssetsTransfer = function createTransferAssetsTransfer(options, version) {
8606
- var asset = options.assetInfo;
8607
- var location = getAssetLocation(asset);
8608
- return transferPolkadotXcm(_objectSpread2(_objectSpread2({}, options), {}, {
8609
- asset: createAsset(version, asset.amount, location)
8610
- }), 'transfer_assets', 'Unlimited');
8611
- };
8612
- var createTypeAndThenDest = function createTypeAndThenDest(destination, scenario, version) {
8613
- return isTLocation(destination) ? destination : {
8614
- parents: scenario === 'ParaToPara' ? Parents.ONE : Parents.ZERO,
8615
- interior: createX1Payload(version, {
8616
- Parachain: getParaId('AssetHubPolkadot')
8617
- })
8618
- };
8619
- };
8620
- var createTypeAndThenTransfer$1 = function createTypeAndThenTransfer(_ref, version) {
8621
- var api = _ref.api,
8622
- asset = _ref.assetInfo,
8623
- address = _ref.address,
8624
- scenario = _ref.scenario,
8625
- destination = _ref.destination,
8626
- paraIdTo = _ref.paraIdTo;
8627
- var transferType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'DestinationReserve';
8628
- return {
8629
- module: scenario === 'RelayToPara' ? 'XcmPallet' : 'PolkadotXcm',
8630
- method: 'transfer_assets_using_type_and_then',
8631
- parameters: {
8632
- dest: _defineProperty({}, version, createTypeAndThenDest(destination, scenario, version)),
8633
- assets: _defineProperty({}, version, [createAsset(version, asset.amount, {
8634
- parents: scenario === 'RelayToPara' ? Parents.ZERO : Parents.ONE,
8635
- interior: 'Here'
8636
- })]),
8637
- assets_transfer_type: transferType,
8638
- remote_fees_id: _defineProperty({}, version, {
8639
- parents: scenario === 'ParaToPara' ? Parents.ONE : Parents.ZERO,
8640
- interior: 'Here'
8641
- }),
8642
- fees_transfer_type: transferType,
8643
- custom_xcm_on_dest: createCustomXcmPolimec(api, address, destination, paraIdTo, version),
8644
- weight_limit: 'Unlimited'
8645
- }
8646
- };
8647
- };
8648
- var createCustomXcmPolimec = function createCustomXcmPolimec(api, address, destination, paraIdTo, version) {
8649
- var paraId = resolveParaId(paraIdTo, destination);
8650
- return _defineProperty({}, version, [{
8651
- DepositReserveAsset: {
8652
- assets: {
8653
- Wild: {
8654
- AllCounted: 1
8655
- }
8656
- },
8657
- dest: createDestination(version, 'Polimec', destination, paraId, undefined, Parents.ONE),
8658
- xcm: [{
8659
- BuyExecution: {
8660
- fees: {
8661
- id: {
8662
- parents: Parents.ONE,
8663
- interior: 'Here'
8664
- },
8665
- fun: {
8666
- Fungible: GAS_LIMIT
8667
- }
8668
- },
8669
- weight_limit: 'Unlimited'
8670
- }
8671
- }, {
8672
- DepositAsset: {
8673
- assets: {
8674
- Wild: {
8675
- AllCounted: 1
8676
- }
8677
- },
8678
- beneficiary: createBeneficiaryLocation({
8679
- api: api,
8680
- address: address,
8681
- version: version
8682
- })
8683
- }
8684
- }]
8685
- }
8686
- }]);
8687
- };
8688
- var Polimec = /*#__PURE__*/function (_Parachain) {
8689
- function Polimec() {
8690
- _classCallCheck(this, Polimec);
8691
- return _callSuper(this, Polimec, ['Polimec', 'polimec', 'Polkadot', Version.V5]);
8692
- }
8693
- _inherits(Polimec, _Parachain);
8694
- return _createClass(Polimec, [{
8695
- key: "transferPolkadotXCM",
8696
- value: function () {
8697
- var _transferPolkadotXCM = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(input) {
8698
- var api, version, assetInfo, destination, scenario, _call, call;
8699
- return _regenerator().w(function (_context) {
8700
- while (1) switch (_context.n) {
8701
- case 0:
8702
- api = input.api, version = input.version, assetInfo = input.assetInfo, destination = input.destination, scenario = input.scenario;
8703
- if (!(scenario === 'ParaToPara' && destination === 'Hydration' && assetInfo.symbol === 'DOT')) {
8704
- _context.n = 1;
8705
- break;
8706
- }
8707
- _call = createTypeAndThenTransfer$1(input, version);
8708
- return _context.a(2, api.callTxMethod(_call));
8709
- case 1:
8710
- if (!(scenario === 'ParaToPara' && (destination === 'AssetHubPolkadot' || destination === 'Hydration'))) {
8711
- _context.n = 2;
8712
- break;
8713
- }
8714
- return _context.a(2, createTransferAssetsTransfer(input, version));
8715
- case 2:
8716
- if (!(scenario !== 'ParaToRelay')) {
8717
- _context.n = 3;
8718
- break;
8719
- }
8720
- throw new ScenarioNotSupportedError(this.chain, scenario);
8721
- case 3:
8722
- call = createTypeAndThenTransfer$1(input, version, 'Teleport');
8723
- return _context.a(2, api.callTxMethod(call));
8724
- }
8725
- }, _callee, this);
8726
- }));
8727
- function transferPolkadotXCM(_x) {
8728
- return _transferPolkadotXCM.apply(this, arguments);
8729
- }
8730
- return transferPolkadotXCM;
8731
- }()
8732
- }, {
8733
- key: "isSendingTempDisabled",
8734
- value: function isSendingTempDisabled(_ref3) {
8735
- var assetInfo = _ref3.assetInfo;
8736
- return isSymbolMatch(assetInfo.symbol, this.getNativeAssetSymbol());
8737
- }
8738
- }, {
8739
- key: "transferRelayToPara",
8740
- value: function transferRelayToPara(options) {
8741
- var version = options.version;
8742
- var call = createTypeAndThenTransfer$1(_objectSpread2(_objectSpread2({}, options), {}, {
8743
- scenario: 'RelayToPara'
8744
- }), version, 'Teleport');
8745
- return Promise.resolve(call);
8746
- }
8747
- }, {
8748
- key: "transferLocalNonNativeAsset",
8749
- value: function transferLocalNonNativeAsset(options) {
8750
- var api = options.api,
8751
- asset = options.assetInfo,
8752
- address = options.address,
8753
- isAmountAll = options.isAmountAll;
8754
- assertIsForeign(asset);
8755
- assertHasLocation(asset);
8756
- if (isAmountAll) {
8757
- return api.callTxMethod({
8758
- module: 'ForeignAssets',
8759
- method: 'transfer_all',
8760
- parameters: {
8761
- id: asset.location,
8762
- target: {
8763
- Id: address
8764
- },
8765
- keep_alive: false
8766
- }
8767
- });
8768
- }
8769
- return api.callTxMethod({
8770
- module: 'ForeignAssets',
8771
- method: 'transfer',
8772
- parameters: {
8773
- id: asset.location,
8774
- target: {
8775
- Id: address
8776
- },
8777
- amount: asset.amount
8778
- }
8779
- });
8780
- }
8781
- }]);
8782
- }(Parachain);
8783
-
8784
8515
  var createCustomXcmAh = function createCustomXcmAh(_ref, version) {
8785
8516
  var api = _ref.api,
8786
8517
  address = _ref.address;
@@ -8834,23 +8565,6 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
8834
8565
  };
8835
8566
  return api.callTxMethod(call);
8836
8567
  }
8837
- }, {
8838
- key: "transferToPolimec",
8839
- value: function transferToPolimec(options) {
8840
- var api = options.api,
8841
- assetInfo = options.assetInfo,
8842
- _options$version = options.version,
8843
- version = _options$version === void 0 ? this.version : _options$version;
8844
- var symbol = assetInfo.symbol.toUpperCase();
8845
- if (symbol === 'DOT') {
8846
- var call = createTypeAndThenTransfer$1(options, version);
8847
- return Promise.resolve(api.callTxMethod(call));
8848
- }
8849
- if ((symbol === 'USDC' || symbol === 'USDT') && !hasJunction(assetInfo.location, 'Parachain', getParaId('AssetHubPolkadot'))) {
8850
- throw new InvalidCurrencyError('The selected asset is not supported for transfer to Polimec');
8851
- }
8852
- return createTransferAssetsTransfer(options, version);
8853
- }
8854
8568
  }, {
8855
8569
  key: "transferPolkadotXCM",
8856
8570
  value: function () {
@@ -8888,12 +8602,6 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
8888
8602
  case 3:
8889
8603
  return _context.a(2, _t.callTxMethod.call(_t, _context.v));
8890
8604
  case 4:
8891
- if (!(destination === 'Polimec')) {
8892
- _context.n = 5;
8893
- break;
8894
- }
8895
- return _context.a(2, this.transferToPolimec(input));
8896
- case 5:
8897
8605
  return _context.a(2, this.transferToAssetHub(input));
8898
8606
  }
8899
8607
  }, _callee, this);
@@ -8942,7 +8650,7 @@ var Hydration = /*#__PURE__*/function (_Parachain) {
8942
8650
  assetInfo = options.assetInfo,
8943
8651
  feeAsset = options.feeAsset;
8944
8652
  var baseCanUseXTokens = _superPropGet(Hydration, "canUseXTokens", this, 3)([options]);
8945
- return destination !== 'Ethereum' && destination !== 'Polimec' && !(destination === 'AssetHubPolkadot' && assetInfo.symbol === 'DOT') && baseCanUseXTokens && !feeAsset;
8653
+ return destination !== 'Ethereum' && !(destination === 'AssetHubPolkadot' && assetInfo.symbol === 'DOT') && baseCanUseXTokens && !feeAsset;
8946
8654
  }
8947
8655
  }, {
8948
8656
  key: "transferLocalNativeAsset",
@@ -10176,38 +9884,6 @@ var Shiden = /*#__PURE__*/function (_Parachain) {
10176
9884
  }]);
10177
9885
  }(Parachain);
10178
9886
 
10179
- var Subsocial = /*#__PURE__*/function (_Parachain) {
10180
- function Subsocial() {
10181
- _classCallCheck(this, Subsocial);
10182
- return _callSuper(this, Subsocial, ['Subsocial', 'subsocial', 'Polkadot', Version.V3]);
10183
- }
10184
- _inherits(Subsocial, _Parachain);
10185
- return _createClass(Subsocial, [{
10186
- key: "transferPolkadotXCM",
10187
- value: function transferPolkadotXCM(input) {
10188
- var scenario = input.scenario,
10189
- asset = input.assetInfo;
10190
- if (scenario !== 'ParaToPara') {
10191
- throw new ScenarioNotSupportedError(this.chain, scenario);
10192
- }
10193
- if (asset.symbol !== this.getNativeAssetSymbol()) {
10194
- throw new InvalidCurrencyError("Asset ".concat(asset.symbol, " is not supported by chain ").concat(this.chain, "."));
10195
- }
10196
- return transferPolkadotXcm(input, 'limited_reserve_transfer_assets', 'Unlimited');
10197
- }
10198
- }, {
10199
- key: "isSendingTempDisabled",
10200
- value: function isSendingTempDisabled(_options) {
10201
- return true;
10202
- }
10203
- }, {
10204
- key: "isReceivingTempDisabled",
10205
- value: function isReceivingTempDisabled(_scenario) {
10206
- return true;
10207
- }
10208
- }]);
10209
- }(Parachain);
10210
-
10211
9887
  var Unique = /*#__PURE__*/function (_Parachain) {
10212
9888
  function Unique() {
10213
9889
  _classCallCheck(this, Unique);
@@ -10356,12 +10032,10 @@ var chains = function chains() {
10356
10032
  Pendulum: new Pendulum(),
10357
10033
  Collectives: new Collectives(),
10358
10034
  Phala: new Phala(),
10359
- Subsocial: new Subsocial(),
10360
10035
  KiltSpiritnet: new KiltSpiritnet(),
10361
10036
  Curio: new Curio(),
10362
10037
  Mythos: new Mythos(),
10363
10038
  Peaq: new Peaq(),
10364
- Polimec: new Polimec(),
10365
10039
  Xode: new Xode(),
10366
10040
  // Kusama chains
10367
10041
  AssetHubKusama: new AssetHubKusama(),
@@ -10433,7 +10107,7 @@ var RELAY_LOCATION = {
10433
10107
  Here: null
10434
10108
  }
10435
10109
  };
10436
- var CHAINS_DOT_RESERVE_AH = new Set(['Acala', 'Karura', 'Polimec', 'Moonbeam', 'Hydration', 'HydrationPaseo', 'AssetHubPolkadot', 'AssetHubKusama', 'AssetHubWestend', 'AssetHubPaseo', 'BifrostPolkadot', 'BifrostKusama', 'PeoplePolkadot', 'PeopleKusama', 'Ajuna', 'IntegriteePolkadot', 'IntegriteeKusama', 'IntegriteePaseo']);
10110
+ var CHAINS_DOT_RESERVE_AH = new Set(['Acala', 'Karura', 'Moonbeam', 'Hydration', 'HydrationPaseo', 'AssetHubPolkadot', 'AssetHubKusama', 'AssetHubWestend', 'AssetHubPaseo', 'BifrostPolkadot', 'BifrostKusama', 'PeoplePolkadot', 'PeopleKusama', 'Ajuna', 'IntegriteePolkadot', 'IntegriteeKusama', 'IntegriteePaseo']);
10437
10111
  var ASSET_HUB_EXECUTION_FEE = 2200000000n; // 0.22 DOT
10438
10112
  var TX_CLIENT_TIMEOUT_MS = 20 * 60 * 1000; // 20 minutes
10439
10113
  var DRY_RUN_CLIENT_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-core",
3
- "version": "11.12.7",
3
+ "version": "11.12.9",
4
4
  "description": "SDK core for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,27 +25,27 @@
25
25
  "dependencies": {
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "@scure/base": "^2.0.0",
28
- "viem": "^2.37.9",
29
- "@paraspell/pallets": "11.12.7",
30
- "@paraspell/assets": "11.12.7",
31
- "@paraspell/sdk-common": "11.12.7"
28
+ "viem": "^2.38.5",
29
+ "@paraspell/pallets": "11.12.9",
30
+ "@paraspell/sdk-common": "11.12.9",
31
+ "@paraspell/assets": "11.12.9"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/plugin-syntax-import-attributes": "^7.27.1",
35
- "@babel/preset-env": "^7.28.3",
35
+ "@babel/preset-env": "^7.28.5",
36
36
  "@codecov/rollup-plugin": "^1.9.1",
37
- "@polkadot/api": "^16.4.8",
38
- "@polkadot/types": "^16.4.8",
39
- "@rollup/plugin-babel": "^6.0.4",
37
+ "@polkadot/api": "^16.4.9",
38
+ "@polkadot/types": "^16.4.9",
39
+ "@rollup/plugin-babel": "^6.1.0",
40
40
  "@rollup/plugin-json": "^6.1.0",
41
- "@rollup/plugin-typescript": "^12.1.4",
42
- "@vitest/coverage-v8": "^3.2.4",
43
- "axios": "^1.12.2",
41
+ "@rollup/plugin-typescript": "^12.3.0",
42
+ "@vitest/coverage-v8": "^4.0.6",
43
+ "axios": "^1.13.1",
44
44
  "dotenv": "^17.2.3",
45
45
  "prettier": "^3.6.2",
46
- "rollup": "^4.52.3",
46
+ "rollup": "^4.52.5",
47
47
  "rollup-plugin-dts": "^6.2.3",
48
- "ts-morph": "^27.0.0",
48
+ "ts-morph": "^27.0.2",
49
49
  "ts-node": "^10.9.2",
50
50
  "tslib": "^2.8.1"
51
51
  },