@paraspell/sdk-core 11.14.11 → 11.14.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 CHANGED
@@ -8372,25 +8372,6 @@ var createCustomXcm = function createCustomXcm(context, assetCount, isForFeeCalc
8372
8372
  return [depositInstruction];
8373
8373
  };
8374
8374
 
8375
- var createRefundInstruction = function createRefundInstruction(api, senderAddress, version, assetCount) {
8376
- return {
8377
- SetAppendix: [{
8378
- DepositAsset: {
8379
- assets: {
8380
- Wild: {
8381
- AllCounted: assetCount
8382
- }
8383
- },
8384
- beneficiary: createBeneficiaryLocation({
8385
- api: api,
8386
- address: senderAddress,
8387
- version: version
8388
- })
8389
- }
8390
- }]
8391
- };
8392
- };
8393
-
8394
8375
  var buildAssets = function buildAssets(chain, asset, feeAmount, isDotAsset, version) {
8395
8376
  var assets = [];
8396
8377
  var shouldLocalizeAndSort = sdkCommon.isRelayChain(chain) || chain.startsWith('AssetHub');
@@ -8412,15 +8393,10 @@ var constructTypeAndThenCall = function constructTypeAndThenCall(context) {
8412
8393
  var fees = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
8413
8394
  var origin = context.origin,
8414
8395
  assetInfo = context.assetInfo,
8415
- isSubBridge = context.isSubBridge,
8416
8396
  isRelayAsset = context.isRelayAsset,
8417
- _context$options = context.options,
8418
- senderAddress = _context$options.senderAddress,
8419
- version = _context$options.version;
8397
+ version = context.options.version;
8420
8398
  var assetCount = isRelayAsset ? 1 : 2;
8421
- var refundInstruction = senderAddress ? createRefundInstruction(origin.api, senderAddress, version, assetCount) : null;
8422
8399
  var finalCustomXcm = [];
8423
- if (refundInstruction && !isSubBridge) finalCustomXcm.push(refundInstruction);
8424
8400
  var resolvedFees = fees !== null && fees !== void 0 ? fees : {
8425
8401
  hopFees: 0n,
8426
8402
  destFee: 0n
package/dist/index.mjs CHANGED
@@ -8373,25 +8373,6 @@ var createCustomXcm = function createCustomXcm(context, assetCount, isForFeeCalc
8373
8373
  return [depositInstruction];
8374
8374
  };
8375
8375
 
8376
- var createRefundInstruction = function createRefundInstruction(api, senderAddress, version, assetCount) {
8377
- return {
8378
- SetAppendix: [{
8379
- DepositAsset: {
8380
- assets: {
8381
- Wild: {
8382
- AllCounted: assetCount
8383
- }
8384
- },
8385
- beneficiary: createBeneficiaryLocation({
8386
- api: api,
8387
- address: senderAddress,
8388
- version: version
8389
- })
8390
- }
8391
- }]
8392
- };
8393
- };
8394
-
8395
8376
  var buildAssets = function buildAssets(chain, asset, feeAmount, isDotAsset, version) {
8396
8377
  var assets = [];
8397
8378
  var shouldLocalizeAndSort = isRelayChain(chain) || chain.startsWith('AssetHub');
@@ -8413,15 +8394,10 @@ var constructTypeAndThenCall = function constructTypeAndThenCall(context) {
8413
8394
  var fees = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
8414
8395
  var origin = context.origin,
8415
8396
  assetInfo = context.assetInfo,
8416
- isSubBridge = context.isSubBridge,
8417
8397
  isRelayAsset = context.isRelayAsset,
8418
- _context$options = context.options,
8419
- senderAddress = _context$options.senderAddress,
8420
- version = _context$options.version;
8398
+ version = context.options.version;
8421
8399
  var assetCount = isRelayAsset ? 1 : 2;
8422
- var refundInstruction = senderAddress ? createRefundInstruction(origin.api, senderAddress, version, assetCount) : null;
8423
8400
  var finalCustomXcm = [];
8424
- if (refundInstruction && !isSubBridge) finalCustomXcm.push(refundInstruction);
8425
8401
  var resolvedFees = fees !== null && fees !== void 0 ? fees : {
8426
8402
  hopFees: 0n,
8427
8403
  destFee: 0n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-core",
3
- "version": "11.14.11",
3
+ "version": "11.14.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.40.3",
29
- "@paraspell/pallets": "11.14.11",
30
- "@paraspell/assets": "11.14.11",
31
- "@paraspell/sdk-common": "11.14.11"
29
+ "@paraspell/assets": "11.14.12",
30
+ "@paraspell/pallets": "11.14.12",
31
+ "@paraspell/sdk-common": "11.14.12"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/plugin-syntax-import-attributes": "^7.27.1",