@polkadot/types-known 16.5.4 → 17.0.1

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.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/types-known', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.4' };
4
+ exports.packageInfo = { name: '@polkadot/types-known', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '17.0.1' };
@@ -46,10 +46,15 @@ exports.versioned = [
46
46
  TAssetConversion: 'Option<AssetId>'
47
47
  }
48
48
  },
49
+ // ref: https://github.com/polkadot-js/api/issues/6239 (see also #6206 / #6208)
50
+ // Foreign-asset `ChargeAssetTxPayment` uses an XCM v4 `Location` as its assetId; the
51
+ // default (latest) XCM mapping decodes it as v5 and misaligns the extrinsic stream.
52
+ // Pin the XCM types to v4, matching the Statemint (Polkadot Asset Hub) patch.
49
53
  {
50
54
  minmax: [9435, undefined],
51
55
  types: {
52
- Weight: 'WeightV1'
56
+ Weight: 'WeightV1',
57
+ ...(0, types_create_1.mapXcmTypes)('V4')
53
58
  }
54
59
  }
55
60
  ];
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "16.5.4",
21
+ "version": "17.0.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -437,11 +437,11 @@
437
437
  }
438
438
  },
439
439
  "dependencies": {
440
- "@polkadot/networks": "^14.0.1",
441
- "@polkadot/types": "16.5.4",
442
- "@polkadot/types-codec": "16.5.4",
443
- "@polkadot/types-create": "16.5.4",
444
- "@polkadot/util": "^14.0.1",
440
+ "@polkadot/networks": "^14.0.3",
441
+ "@polkadot/types": "17.0.1",
442
+ "@polkadot/types-codec": "17.0.1",
443
+ "@polkadot/types-create": "17.0.1",
444
+ "@polkadot/util": "^14.0.3",
445
445
  "tslib": "^2.8.1"
446
446
  }
447
447
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/types-known', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.4' };
1
+ export const packageInfo = { name: '@polkadot/types-known', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '17.0.1' };
package/spec/westmint.js CHANGED
@@ -43,10 +43,15 @@ export const versioned = [
43
43
  TAssetConversion: 'Option<AssetId>'
44
44
  }
45
45
  },
46
+ // ref: https://github.com/polkadot-js/api/issues/6239 (see also #6206 / #6208)
47
+ // Foreign-asset `ChargeAssetTxPayment` uses an XCM v4 `Location` as its assetId; the
48
+ // default (latest) XCM mapping decodes it as v5 and misaligns the extrinsic stream.
49
+ // Pin the XCM types to v4, matching the Statemint (Polkadot Asset Hub) patch.
46
50
  {
47
51
  minmax: [9435, undefined],
48
52
  types: {
49
- Weight: 'WeightV1'
53
+ Weight: 'WeightV1',
54
+ ...mapXcmTypes('V4')
50
55
  }
51
56
  }
52
57
  ];