@polkadot/types-known 10.10.1 → 10.11.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.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @polkadot/types-known
2
2
 
3
- Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specfic types.
3
+ Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specific types.
@@ -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: '10.10.1' };
4
+ exports.packageInfo = { name: '@polkadot/types-known', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.11.1' };
package/cjs/spec/index.js CHANGED
@@ -8,8 +8,10 @@ const node_template_js_1 = require("./node-template.js");
8
8
  const polkadot_js_1 = require("./polkadot.js");
9
9
  const rococo_js_1 = require("./rococo.js");
10
10
  const shell_js_1 = require("./shell.js");
11
+ const statemine_js_1 = require("./statemine.js");
11
12
  const statemint_js_1 = require("./statemint.js");
12
13
  const westend_js_1 = require("./westend.js");
14
+ const westmint_js_1 = require("./westmint.js");
13
15
  exports.typesSpec = {
14
16
  'centrifuge-chain': centrifuge_chain_js_1.versioned,
15
17
  kusama: kusama_js_1.versioned,
@@ -18,8 +20,8 @@ exports.typesSpec = {
18
20
  polkadot: polkadot_js_1.versioned,
19
21
  rococo: rococo_js_1.versioned,
20
22
  shell: shell_js_1.versioned,
21
- statemine: statemint_js_1.versioned,
23
+ statemine: statemine_js_1.versioned,
22
24
  statemint: statemint_js_1.versioned,
23
25
  westend: westend_js_1.versioned,
24
- westmint: statemint_js_1.versioned
26
+ westmint: westmint_js_1.versioned
25
27
  };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.versioned = void 0;
4
+ const types_create_1 = require("@polkadot/types-create");
5
+ const sharedTypes = {
6
+ DispatchErrorModule: 'DispatchErrorModuleU8',
7
+ TAssetBalance: 'u128',
8
+ ProxyType: {
9
+ _enum: [
10
+ 'Any',
11
+ 'NonTransfer',
12
+ 'CancelProxy',
13
+ 'Assets',
14
+ 'AssetOwner',
15
+ 'AssetManager',
16
+ 'Staking'
17
+ ]
18
+ },
19
+ Weight: 'WeightV1'
20
+ };
21
+ exports.versioned = [
22
+ {
23
+ minmax: [0, 3],
24
+ types: {
25
+ // Enum was modified mid-flight -
26
+ // https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
27
+ DispatchError: 'DispatchErrorPre6First',
28
+ ...sharedTypes,
29
+ ...(0, types_create_1.mapXcmTypes)('V0')
30
+ }
31
+ },
32
+ {
33
+ minmax: [4, 5],
34
+ types: {
35
+ // As above, see https://github.com/polkadot-js/api/issues/5301
36
+ DispatchError: 'DispatchErrorPre6First',
37
+ ...sharedTypes,
38
+ ...(0, types_create_1.mapXcmTypes)('V1')
39
+ }
40
+ },
41
+ {
42
+ // metadata V14
43
+ minmax: [500, 9999],
44
+ types: {
45
+ Weight: 'WeightV1',
46
+ TAssetConversion: 'Option<AssetId>'
47
+ }
48
+ },
49
+ {
50
+ minmax: [10000, undefined],
51
+ types: {
52
+ Weight: 'WeightV1'
53
+ }
54
+ }
55
+ ];
@@ -42,7 +42,8 @@ exports.versioned = [
42
42
  // metadata V14
43
43
  minmax: [500, undefined],
44
44
  types: {
45
- Weight: 'WeightV1'
45
+ Weight: 'WeightV1',
46
+ TAssetConversion: 'Option<AssetId>'
46
47
  }
47
48
  }
48
49
  // ,
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.versioned = void 0;
4
+ const types_create_1 = require("@polkadot/types-create");
5
+ const sharedTypes = {
6
+ DispatchErrorModule: 'DispatchErrorModuleU8',
7
+ TAssetBalance: 'u128',
8
+ ProxyType: {
9
+ _enum: [
10
+ 'Any',
11
+ 'NonTransfer',
12
+ 'CancelProxy',
13
+ 'Assets',
14
+ 'AssetOwner',
15
+ 'AssetManager',
16
+ 'Staking'
17
+ ]
18
+ },
19
+ Weight: 'WeightV1'
20
+ };
21
+ exports.versioned = [
22
+ {
23
+ minmax: [0, 3],
24
+ types: {
25
+ // Enum was modified mid-flight -
26
+ // https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
27
+ DispatchError: 'DispatchErrorPre6First',
28
+ ...sharedTypes,
29
+ ...(0, types_create_1.mapXcmTypes)('V0')
30
+ }
31
+ },
32
+ {
33
+ minmax: [4, 5],
34
+ types: {
35
+ // As above, see https://github.com/polkadot-js/api/issues/5301
36
+ DispatchError: 'DispatchErrorPre6First',
37
+ ...sharedTypes,
38
+ ...(0, types_create_1.mapXcmTypes)('V1')
39
+ }
40
+ },
41
+ {
42
+ // metadata V14
43
+ minmax: [500, 9434],
44
+ types: {
45
+ Weight: 'WeightV1',
46
+ TAssetConversion: 'Option<AssetId>'
47
+ }
48
+ },
49
+ {
50
+ minmax: [9435, undefined],
51
+ types: {
52
+ Weight: 'WeightV1'
53
+ }
54
+ }
55
+ ];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bugs": "https://github.com/polkadot-js/api/issues",
4
4
  "description": "Known type definitions",
5
5
  "engines": {
6
- "node": ">=16"
6
+ "node": ">=18"
7
7
  },
8
8
  "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
9
9
  "license": "Apache-2.0",
@@ -18,7 +18,7 @@
18
18
  "./cjs/detectPackage.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.10.1",
21
+ "version": "10.11.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -119,6 +119,12 @@
119
119
  "require": "./cjs/spec/shell.js",
120
120
  "default": "./spec/shell.js"
121
121
  },
122
+ "./spec/statemine": {
123
+ "types": "./spec/statemine.d.ts",
124
+ "module": "./spec/statemine.js",
125
+ "require": "./cjs/spec/statemine.js",
126
+ "default": "./spec/statemine.js"
127
+ },
122
128
  "./spec/statemint": {
123
129
  "types": "./spec/statemint.d.ts",
124
130
  "module": "./spec/statemint.js",
@@ -131,6 +137,12 @@
131
137
  "require": "./cjs/spec/westend.js",
132
138
  "default": "./spec/westend.js"
133
139
  },
140
+ "./spec/westmint": {
141
+ "types": "./spec/westmint.d.ts",
142
+ "module": "./spec/westmint.js",
143
+ "require": "./cjs/spec/westmint.js",
144
+ "default": "./spec/westmint.js"
145
+ },
134
146
  "./upgrades": {
135
147
  "types": "./upgrades/index.d.ts",
136
148
  "module": "./upgrades/index.js",
@@ -199,11 +211,11 @@
199
211
  }
200
212
  },
201
213
  "dependencies": {
202
- "@polkadot/networks": "^12.5.1",
203
- "@polkadot/types": "10.10.1",
204
- "@polkadot/types-codec": "10.10.1",
205
- "@polkadot/types-create": "10.10.1",
206
- "@polkadot/util": "^12.5.1",
214
+ "@polkadot/networks": "^12.6.1",
215
+ "@polkadot/types": "10.11.1",
216
+ "@polkadot/types-codec": "10.11.1",
217
+ "@polkadot/types-create": "10.11.1",
218
+ "@polkadot/util": "^12.6.1",
207
219
  "tslib": "^2.6.2"
208
220
  }
209
221
  }
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: '10.10.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: '10.11.1' };
package/spec/index.js CHANGED
@@ -5,8 +5,10 @@ import { versioned as nodeTemplate } from './node-template.js';
5
5
  import { versioned as polkadot } from './polkadot.js';
6
6
  import { versioned as rococo } from './rococo.js';
7
7
  import { versioned as shell } from './shell.js';
8
+ import { versioned as statemine } from './statemine.js';
8
9
  import { versioned as statemint } from './statemint.js';
9
10
  import { versioned as westend } from './westend.js';
11
+ import { versioned as westmint } from './westmint.js';
10
12
  export const typesSpec = {
11
13
  'centrifuge-chain': centrifugeChain,
12
14
  kusama,
@@ -15,8 +17,8 @@ export const typesSpec = {
15
17
  polkadot,
16
18
  rococo,
17
19
  shell,
18
- statemine: statemint,
20
+ statemine,
19
21
  statemint,
20
22
  westend,
21
- westmint: statemint
23
+ westmint
22
24
  };
@@ -0,0 +1,2 @@
1
+ import type { OverrideVersionedType } from '@polkadot/types/types';
2
+ export declare const versioned: OverrideVersionedType[];
@@ -0,0 +1,52 @@
1
+ import { mapXcmTypes } from '@polkadot/types-create';
2
+ const sharedTypes = {
3
+ DispatchErrorModule: 'DispatchErrorModuleU8',
4
+ TAssetBalance: 'u128',
5
+ ProxyType: {
6
+ _enum: [
7
+ 'Any',
8
+ 'NonTransfer',
9
+ 'CancelProxy',
10
+ 'Assets',
11
+ 'AssetOwner',
12
+ 'AssetManager',
13
+ 'Staking'
14
+ ]
15
+ },
16
+ Weight: 'WeightV1'
17
+ };
18
+ export const versioned = [
19
+ {
20
+ minmax: [0, 3],
21
+ types: {
22
+ // Enum was modified mid-flight -
23
+ // https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
24
+ DispatchError: 'DispatchErrorPre6First',
25
+ ...sharedTypes,
26
+ ...mapXcmTypes('V0')
27
+ }
28
+ },
29
+ {
30
+ minmax: [4, 5],
31
+ types: {
32
+ // As above, see https://github.com/polkadot-js/api/issues/5301
33
+ DispatchError: 'DispatchErrorPre6First',
34
+ ...sharedTypes,
35
+ ...mapXcmTypes('V1')
36
+ }
37
+ },
38
+ {
39
+ // metadata V14
40
+ minmax: [500, 9999],
41
+ types: {
42
+ Weight: 'WeightV1',
43
+ TAssetConversion: 'Option<AssetId>'
44
+ }
45
+ },
46
+ {
47
+ minmax: [10000, undefined],
48
+ types: {
49
+ Weight: 'WeightV1'
50
+ }
51
+ }
52
+ ];
package/spec/statemint.js CHANGED
@@ -39,7 +39,8 @@ export const versioned = [
39
39
  // metadata V14
40
40
  minmax: [500, undefined],
41
41
  types: {
42
- Weight: 'WeightV1'
42
+ Weight: 'WeightV1',
43
+ TAssetConversion: 'Option<AssetId>'
43
44
  }
44
45
  }
45
46
  // ,
@@ -0,0 +1,2 @@
1
+ import type { OverrideVersionedType } from '@polkadot/types/types';
2
+ export declare const versioned: OverrideVersionedType[];
@@ -0,0 +1,52 @@
1
+ import { mapXcmTypes } from '@polkadot/types-create';
2
+ const sharedTypes = {
3
+ DispatchErrorModule: 'DispatchErrorModuleU8',
4
+ TAssetBalance: 'u128',
5
+ ProxyType: {
6
+ _enum: [
7
+ 'Any',
8
+ 'NonTransfer',
9
+ 'CancelProxy',
10
+ 'Assets',
11
+ 'AssetOwner',
12
+ 'AssetManager',
13
+ 'Staking'
14
+ ]
15
+ },
16
+ Weight: 'WeightV1'
17
+ };
18
+ export const versioned = [
19
+ {
20
+ minmax: [0, 3],
21
+ types: {
22
+ // Enum was modified mid-flight -
23
+ // https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
24
+ DispatchError: 'DispatchErrorPre6First',
25
+ ...sharedTypes,
26
+ ...mapXcmTypes('V0')
27
+ }
28
+ },
29
+ {
30
+ minmax: [4, 5],
31
+ types: {
32
+ // As above, see https://github.com/polkadot-js/api/issues/5301
33
+ DispatchError: 'DispatchErrorPre6First',
34
+ ...sharedTypes,
35
+ ...mapXcmTypes('V1')
36
+ }
37
+ },
38
+ {
39
+ // metadata V14
40
+ minmax: [500, 9434],
41
+ types: {
42
+ Weight: 'WeightV1',
43
+ TAssetConversion: 'Option<AssetId>'
44
+ }
45
+ },
46
+ {
47
+ minmax: [9435, undefined],
48
+ types: {
49
+ Weight: 'WeightV1'
50
+ }
51
+ }
52
+ ];