@paraspell/sdk-core 12.0.3 → 12.0.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -25
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -8255,25 +8255,6 @@ var createCustomXcm = function createCustomXcm(context, assetCount, isForFeeCalc
8255
8255
  return [depositInstruction];
8256
8256
  };
8257
8257
 
8258
- var createRefundInstruction = function createRefundInstruction(api, senderAddress, version, assetCount) {
8259
- return {
8260
- SetAppendix: [{
8261
- DepositAsset: {
8262
- assets: {
8263
- Wild: {
8264
- AllCounted: assetCount
8265
- }
8266
- },
8267
- beneficiary: createBeneficiaryLocation({
8268
- api: api,
8269
- address: senderAddress,
8270
- version: version
8271
- })
8272
- }
8273
- }]
8274
- };
8275
- };
8276
-
8277
8258
  var buildAssets = function buildAssets(chain, asset, feeAmount, isDotAsset, version) {
8278
8259
  var assets = [];
8279
8260
  var shouldLocalizeAndSort = isRelayChain(chain) || chain.startsWith('AssetHub');
@@ -8295,15 +8276,10 @@ var constructTypeAndThenCall = function constructTypeAndThenCall(context) {
8295
8276
  var fees = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
8296
8277
  var origin = context.origin,
8297
8278
  assetInfo = context.assetInfo,
8298
- isSubBridge = context.isSubBridge,
8299
8279
  isRelayAsset = context.isRelayAsset,
8300
- _context$options = context.options,
8301
- senderAddress = _context$options.senderAddress,
8302
- version = _context$options.version;
8280
+ version = context.options.version;
8303
8281
  var assetCount = isRelayAsset ? 1 : 2;
8304
- var refundInstruction = senderAddress ? createRefundInstruction(origin.api, senderAddress, version, assetCount) : null;
8305
8282
  var finalCustomXcm = [];
8306
- if (refundInstruction && !isSubBridge) finalCustomXcm.push(refundInstruction);
8307
8283
  var resolvedFees = fees !== null && fees !== void 0 ? fees : {
8308
8284
  hopFees: 0n,
8309
8285
  destFee: 0n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-core",
3
- "version": "12.0.3",
3
+ "version": "12.0.4",
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": "^2.0.1",
27
27
  "@scure/base": "^2.0.0",
28
28
  "viem": "^2.40.3",
29
- "@paraspell/assets": "12.0.3",
30
- "@paraspell/pallets": "12.0.3",
31
- "@paraspell/sdk-common": "12.0.3"
29
+ "@paraspell/assets": "12.0.4",
30
+ "@paraspell/sdk-common": "12.0.4",
31
+ "@paraspell/pallets": "12.0.4"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/plugin-syntax-import-attributes": "^7.27.1",