@polkadot/types-known 9.14.1 → 10.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.
Files changed (54) hide show
  1. package/bundle.js +2 -5
  2. package/chain/index.js +0 -4
  3. package/cjs/bundle.js +8 -34
  4. package/cjs/chain/index.js +2 -11
  5. package/cjs/detectOther.js +3 -10
  6. package/cjs/detectPackage.js +6 -11
  7. package/cjs/index.js +3 -15
  8. package/cjs/packageInfo.js +2 -16
  9. package/cjs/spec/centrifuge-chain.js +99 -93
  10. package/cjs/spec/index.js +23 -32
  11. package/cjs/spec/kusama.js +201 -195
  12. package/cjs/spec/node-template.js +12 -20
  13. package/cjs/spec/node.js +12 -20
  14. package/cjs/spec/polkadot.js +77 -82
  15. package/cjs/spec/rococo.js +52 -59
  16. package/cjs/spec/shell.js +10 -18
  17. package/cjs/spec/statemint.js +49 -50
  18. package/cjs/spec/westend.js +95 -96
  19. package/cjs/upgrades/e2e/index.js +11 -26
  20. package/cjs/upgrades/e2e/kusama.js +4176 -14
  21. package/cjs/upgrades/e2e/polkadot.js +2626 -14
  22. package/cjs/upgrades/e2e/westend.js +4014 -14
  23. package/cjs/upgrades/index.js +23 -40
  24. package/cjs/upgrades/manual/index.js +11 -26
  25. package/cjs/upgrades/manual/kusama.js +20 -13
  26. package/cjs/upgrades/manual/polkadot.js +13 -11
  27. package/cjs/upgrades/manual/westend.js +18 -11
  28. package/cjs/upgrades/types.js +2 -1
  29. package/cjs/util.js +55 -105
  30. package/detectOther.js +0 -3
  31. package/detectPackage.js +2 -7
  32. package/index.js +2 -5
  33. package/package.json +11 -8
  34. package/packageInfo.js +1 -11
  35. package/spec/centrifuge-chain.js +95 -84
  36. package/spec/index.js +20 -25
  37. package/spec/kusama.js +197 -187
  38. package/spec/node-template.js +10 -13
  39. package/spec/node.js +10 -13
  40. package/spec/polkadot.js +74 -75
  41. package/spec/rococo.js +48 -52
  42. package/spec/shell.js +8 -11
  43. package/spec/statemint.js +45 -42
  44. package/spec/westend.js +91 -88
  45. package/upgrades/e2e/index.js +3 -6
  46. package/upgrades/e2e/kusama.js +4174 -7
  47. package/upgrades/e2e/polkadot.js +2624 -7
  48. package/upgrades/e2e/westend.js +4012 -7
  49. package/upgrades/index.js +17 -25
  50. package/upgrades/manual/index.js +3 -6
  51. package/upgrades/manual/kusama.js +18 -6
  52. package/upgrades/manual/polkadot.js +11 -4
  53. package/upgrades/manual/westend.js +16 -4
  54. package/util.js +42 -77
@@ -1,64 +1,57 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _typesCreate = require("@polkadot/types-create");
8
- var _util = require("@polkadot/util");
9
- // Copyright 2017-2023 @polkadot/types-known authors & contributors
10
- // SPDX-License-Identifier: Apache-2.0
11
-
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_create_1 = require("@polkadot/types-create");
4
+ const util_1 = require("@polkadot/util");
12
5
  /* eslint-disable sort-keys */
13
-
14
- // structs need to be in order
15
- /* eslint-disable sort-keys */
16
-
17
6
  const sharedTypes = {
18
- DispatchErrorModule: 'DispatchErrorModuleU8',
19
- FullIdentification: '()',
20
- // No staking, only session (as per config)
21
- Keys: 'SessionKeys7B',
22
- Weight: 'WeightV1'
23
- };
24
- const versioned = [{
25
- minmax: [0, 200],
26
- types: (0, _util.objectSpread)({}, sharedTypes, {
27
- AccountInfo: 'AccountInfoWithDualRefCount',
28
- Address: 'AccountId',
29
- LookupSource: 'AccountId'
30
- })
31
- }, {
32
- minmax: [201, 214],
33
- types: (0, _util.objectSpread)({}, sharedTypes, {
34
- AccountInfo: 'AccountInfoWithDualRefCount'
35
- })
36
- }, {
37
- minmax: [215, 228],
38
- types: (0, _util.objectSpread)({}, sharedTypes, {
39
- Keys: 'SessionKeys6'
40
- })
41
- }, {
42
- minmax: [229, 9099],
43
- types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V0'))
44
- }, {
45
- minmax: [9100, 9105],
46
- types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V1'))
47
- }, {
48
- // metadata v14
49
- minmax: [9106, undefined],
50
- types: {
7
+ DispatchErrorModule: 'DispatchErrorModuleU8',
8
+ FullIdentification: '()',
9
+ Keys: 'SessionKeys7B',
51
10
  Weight: 'WeightV1'
52
- }
53
- }
54
- // ,
55
- // {
56
- // // weight v2 introduction
57
- // minmax: [9300, undefined],
58
- // types: {
59
- // Weight: 'WeightV2'
60
- // }
61
- // }
11
+ };
12
+ const versioned = [
13
+ {
14
+ minmax: [0, 200],
15
+ types: (0, util_1.objectSpread)({}, sharedTypes, {
16
+ AccountInfo: 'AccountInfoWithDualRefCount',
17
+ Address: 'AccountId',
18
+ LookupSource: 'AccountId'
19
+ })
20
+ },
21
+ {
22
+ minmax: [201, 214],
23
+ types: (0, util_1.objectSpread)({}, sharedTypes, {
24
+ AccountInfo: 'AccountInfoWithDualRefCount'
25
+ })
26
+ },
27
+ {
28
+ minmax: [215, 228],
29
+ types: (0, util_1.objectSpread)({}, sharedTypes, {
30
+ Keys: 'SessionKeys6'
31
+ })
32
+ },
33
+ {
34
+ minmax: [229, 9099],
35
+ types: (0, util_1.objectSpread)({}, sharedTypes, (0, types_create_1.mapXcmTypes)('V0'))
36
+ },
37
+ {
38
+ minmax: [9100, 9105],
39
+ types: (0, util_1.objectSpread)({}, sharedTypes, (0, types_create_1.mapXcmTypes)('V1'))
40
+ },
41
+ {
42
+ // metadata v14
43
+ minmax: [9106, undefined],
44
+ types: {
45
+ Weight: 'WeightV1'
46
+ }
47
+ }
48
+ // ,
49
+ // {
50
+ // // weight v2 introduction
51
+ // minmax: [9300, undefined],
52
+ // types: {
53
+ // Weight: 'WeightV2'
54
+ // }
55
+ // }
62
56
  ];
63
- var _default = versioned;
64
- exports.default = _default;
57
+ exports.default = versioned;
package/cjs/spec/shell.js CHANGED
@@ -1,19 +1,11 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- // Copyright 2017-2023 @polkadot/types-known authors & contributors
8
- // SPDX-License-Identifier: Apache-2.0
9
-
10
- /* eslint-disable sort-keys */
11
-
12
- const versioned = [{
13
- minmax: [0, undefined],
14
- types: {
15
- // nothing, limited runtime
16
- }
17
- }];
18
- var _default = versioned;
19
- exports.default = _default;
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const versioned = [
4
+ {
5
+ minmax: [0, undefined],
6
+ types: {
7
+ // nothing, limited runtime
8
+ }
9
+ }
10
+ ];
11
+ exports.default = versioned;
@@ -1,54 +1,53 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _typesCreate = require("@polkadot/types-create");
8
- var _util = require("@polkadot/util");
9
- // Copyright 2017-2023 @polkadot/types-known authors & contributors
10
- // SPDX-License-Identifier: Apache-2.0
11
-
12
- /* eslint-disable sort-keys */
13
-
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_create_1 = require("@polkadot/types-create");
4
+ const util_1 = require("@polkadot/util");
14
5
  const sharedTypes = {
15
- DispatchErrorModule: 'DispatchErrorModuleU8',
16
- TAssetBalance: 'u128',
17
- ProxyType: {
18
- _enum: ['Any', 'NonTransfer', 'CancelProxy', 'Assets', 'AssetOwner', 'AssetManager', 'Staking']
19
- },
20
- Weight: 'WeightV1'
21
- };
22
-
23
- // these are override types for Statemine, Statemint, Westmint
24
- const versioned = [{
25
- minmax: [0, 3],
26
- types: (0, _util.objectSpread)({
27
- // Enum was modified mid-flight -
28
- // https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
29
- DispatchError: 'DispatchErrorPre6First'
30
- }, sharedTypes, (0, _typesCreate.mapXcmTypes)('V0'))
31
- }, {
32
- minmax: [4, 5],
33
- types: (0, _util.objectSpread)({
34
- // As above, see https://github.com/polkadot-js/api/issues/5301
35
- DispatchError: 'DispatchErrorPre6First'
36
- }, sharedTypes, (0, _typesCreate.mapXcmTypes)('V1'))
37
- }, {
38
- // metadata V14
39
- minmax: [500, undefined],
40
- types: {
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
+ },
41
19
  Weight: 'WeightV1'
42
- }
43
- }
44
- // ,
45
- // {
46
- // // weight v2 introduction
47
- // minmax: [9300, undefined],
48
- // types: {
49
- // Weight: 'WeightV2'
50
- // }
51
- // }
20
+ };
21
+ const versioned = [
22
+ {
23
+ minmax: [0, 3],
24
+ types: (0, util_1.objectSpread)({
25
+ // Enum was modified mid-flight -
26
+ // https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
27
+ DispatchError: 'DispatchErrorPre6First'
28
+ }, sharedTypes, (0, types_create_1.mapXcmTypes)('V0'))
29
+ },
30
+ {
31
+ minmax: [4, 5],
32
+ types: (0, util_1.objectSpread)({
33
+ // As above, see https://github.com/polkadot-js/api/issues/5301
34
+ DispatchError: 'DispatchErrorPre6First'
35
+ }, sharedTypes, (0, types_create_1.mapXcmTypes)('V1'))
36
+ },
37
+ {
38
+ // metadata V14
39
+ minmax: [500, undefined],
40
+ types: {
41
+ Weight: 'WeightV1'
42
+ }
43
+ }
44
+ // ,
45
+ // {
46
+ // // weight v2 introduction
47
+ // minmax: [9300, undefined],
48
+ // types: {
49
+ // Weight: 'WeightV2'
50
+ // }
51
+ // }
52
52
  ];
53
- var _default = versioned;
54
- exports.default = _default;
53
+ exports.default = versioned;
@@ -1,102 +1,101 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _typesCreate = require("@polkadot/types-create");
8
- var _util = require("@polkadot/util");
9
- // Copyright 2017-2023 @polkadot/types-known authors & contributors
10
- // SPDX-License-Identifier: Apache-2.0
11
-
12
- /* eslint-disable sort-keys */
13
-
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_create_1 = require("@polkadot/types-create");
4
+ const util_1 = require("@polkadot/util");
14
5
  const sharedTypes = {
15
- // 16 validators
16
- CompactAssignments: 'CompactAssignmentsWith16',
17
- DispatchErrorModule: 'DispatchErrorModuleU8',
18
- RawSolution: 'RawSolutionWith16',
19
- // general
20
- Keys: 'SessionKeys6',
21
- ProxyType: {
22
- _enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy']
23
- },
24
- Weight: 'WeightV1'
6
+ // 16 validators
7
+ CompactAssignments: 'CompactAssignmentsWith16',
8
+ DispatchErrorModule: 'DispatchErrorModuleU8',
9
+ RawSolution: 'RawSolutionWith16',
10
+ // general
11
+ Keys: 'SessionKeys6',
12
+ ProxyType: {
13
+ _enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy']
14
+ },
15
+ Weight: 'WeightV1'
25
16
  };
26
17
  const addrAccountIdTypes = {
27
- AccountInfo: 'AccountInfoWithRefCount',
28
- Address: 'AccountId',
29
- CompactAssignments: 'CompactAssignmentsWith16',
30
- DispatchErrorModule: 'DispatchErrorModuleU8',
31
- LookupSource: 'AccountId',
32
- Keys: 'SessionKeys5',
33
- RawSolution: 'RawSolutionWith16',
34
- ValidatorPrefs: 'ValidatorPrefsWithCommission'
18
+ AccountInfo: 'AccountInfoWithRefCount',
19
+ Address: 'AccountId',
20
+ CompactAssignments: 'CompactAssignmentsWith16',
21
+ DispatchErrorModule: 'DispatchErrorModuleU8',
22
+ LookupSource: 'AccountId',
23
+ Keys: 'SessionKeys5',
24
+ RawSolution: 'RawSolutionWith16',
25
+ ValidatorPrefs: 'ValidatorPrefsWithCommission'
35
26
  };
36
- const versioned = [{
37
- minmax: [1, 2],
38
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
39
- CompactAssignments: 'CompactAssignmentsTo257',
40
- DispatchInfo: 'DispatchInfoTo244',
41
- Heartbeat: 'HeartbeatTo244',
42
- Multiplier: 'Fixed64',
43
- OpenTip: 'OpenTipTo225',
44
- RefCount: 'RefCountTo259',
45
- Weight: 'u32'
46
- })
47
- }, {
48
- minmax: [3, 22],
49
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
50
- CompactAssignments: 'CompactAssignmentsTo257',
51
- DispatchInfo: 'DispatchInfoTo244',
52
- Heartbeat: 'HeartbeatTo244',
53
- OpenTip: 'OpenTipTo225',
54
- RefCount: 'RefCountTo259'
55
- })
56
- }, {
57
- minmax: [23, 42],
58
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
59
- CompactAssignments: 'CompactAssignmentsTo257',
60
- DispatchInfo: 'DispatchInfoTo244',
61
- Heartbeat: 'HeartbeatTo244',
62
- RefCount: 'RefCountTo259'
63
- })
64
- }, {
65
- minmax: [43, 44],
66
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
67
- DispatchInfo: 'DispatchInfoTo244',
68
- Heartbeat: 'HeartbeatTo244',
69
- RefCount: 'RefCountTo259'
70
- })
71
- }, {
72
- minmax: [45, 47],
73
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
74
- }, {
75
- minmax: [48, 49],
76
- types: (0, _util.objectSpread)({}, sharedTypes, {
77
- AccountInfo: 'AccountInfoWithDualRefCount'
78
- })
79
- }, {
80
- minmax: [50, 9099],
81
- types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V0'))
82
- }, {
83
- minmax: [9100, 9105],
84
- types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V1'))
85
- }, {
86
- // metadata v14
87
- minmax: [9106, undefined],
88
- types: {
89
- Weight: 'WeightV1'
90
- }
91
- }
92
- // ,
93
- // {
94
- // // weight v2 introduction
95
- // minmax: [9300, undefined],
96
- // types: {
97
- // Weight: 'WeightV2'
98
- // }
99
- // }
27
+ const versioned = [
28
+ {
29
+ minmax: [1, 2],
30
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
31
+ CompactAssignments: 'CompactAssignmentsTo257',
32
+ DispatchInfo: 'DispatchInfoTo244',
33
+ Heartbeat: 'HeartbeatTo244',
34
+ Multiplier: 'Fixed64',
35
+ OpenTip: 'OpenTipTo225',
36
+ RefCount: 'RefCountTo259',
37
+ Weight: 'u32'
38
+ })
39
+ },
40
+ {
41
+ minmax: [3, 22],
42
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
43
+ CompactAssignments: 'CompactAssignmentsTo257',
44
+ DispatchInfo: 'DispatchInfoTo244',
45
+ Heartbeat: 'HeartbeatTo244',
46
+ OpenTip: 'OpenTipTo225',
47
+ RefCount: 'RefCountTo259'
48
+ })
49
+ },
50
+ {
51
+ minmax: [23, 42],
52
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
53
+ CompactAssignments: 'CompactAssignmentsTo257',
54
+ DispatchInfo: 'DispatchInfoTo244',
55
+ Heartbeat: 'HeartbeatTo244',
56
+ RefCount: 'RefCountTo259'
57
+ })
58
+ },
59
+ {
60
+ minmax: [43, 44],
61
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
62
+ DispatchInfo: 'DispatchInfoTo244',
63
+ Heartbeat: 'HeartbeatTo244',
64
+ RefCount: 'RefCountTo259'
65
+ })
66
+ },
67
+ {
68
+ minmax: [45, 47],
69
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes)
70
+ },
71
+ {
72
+ minmax: [48, 49],
73
+ types: (0, util_1.objectSpread)({}, sharedTypes, {
74
+ AccountInfo: 'AccountInfoWithDualRefCount'
75
+ })
76
+ },
77
+ {
78
+ minmax: [50, 9099],
79
+ types: (0, util_1.objectSpread)({}, sharedTypes, (0, types_create_1.mapXcmTypes)('V0'))
80
+ },
81
+ {
82
+ minmax: [9100, 9105],
83
+ types: (0, util_1.objectSpread)({}, sharedTypes, (0, types_create_1.mapXcmTypes)('V1'))
84
+ },
85
+ {
86
+ // metadata v14
87
+ minmax: [9106, undefined],
88
+ types: {
89
+ Weight: 'WeightV1'
90
+ }
91
+ }
92
+ // ,
93
+ // {
94
+ // // weight v2 introduction
95
+ // minmax: [9300, undefined],
96
+ // types: {
97
+ // Weight: 'WeightV2'
98
+ // }
99
+ // }
100
100
  ];
101
- var _default = versioned;
102
- exports.default = _default;
101
+ exports.default = versioned;
@@ -1,27 +1,12 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "kusama", {
8
- enumerable: true,
9
- get: function () {
10
- return _kusama.default;
11
- }
12
- });
13
- Object.defineProperty(exports, "polkadot", {
14
- enumerable: true,
15
- get: function () {
16
- return _polkadot.default;
17
- }
18
- });
19
- Object.defineProperty(exports, "westend", {
20
- enumerable: true,
21
- get: function () {
22
- return _westend.default;
23
- }
24
- });
25
- var _kusama = _interopRequireDefault(require("./kusama"));
26
- var _polkadot = _interopRequireDefault(require("./polkadot"));
27
- var _westend = _interopRequireDefault(require("./westend"));
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.westend = exports.polkadot = exports.kusama = void 0;
7
+ var kusama_1 = require("./kusama");
8
+ Object.defineProperty(exports, "kusama", { enumerable: true, get: function () { return __importDefault(kusama_1).default; } });
9
+ var polkadot_1 = require("./polkadot");
10
+ Object.defineProperty(exports, "polkadot", { enumerable: true, get: function () { return __importDefault(polkadot_1).default; } });
11
+ var westend_1 = require("./westend");
12
+ Object.defineProperty(exports, "westend", { enumerable: true, get: function () { return __importDefault(westend_1).default; } });