@polkadot/types-known 6.6.2-13 → 6.6.2-17

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/bundle.cjs CHANGED
@@ -64,9 +64,7 @@ function filterVersions() {
64
64
  let {
65
65
  types
66
66
  } = _ref2;
67
- return { ...result,
68
- ...types
69
- };
67
+ return (0, _util.objectSpread)(result, types);
70
68
  }, {});
71
69
  }
72
70
  /**
@@ -80,9 +78,7 @@ function getModuleTypes(_ref3, section) {
80
78
  let {
81
79
  knownTypes
82
80
  } = _ref3;
83
- return { ...(_modules.default[section] || {}),
84
- ...(((_knownTypes$typesAlia = knownTypes.typesAlias) === null || _knownTypes$typesAlia === void 0 ? void 0 : _knownTypes$typesAlia[section]) || {})
85
- };
81
+ return (0, _util.objectSpread)({}, _modules.default[section], (_knownTypes$typesAlia = knownTypes.typesAlias) === null || _knownTypes$typesAlia === void 0 ? void 0 : _knownTypes$typesAlia[section]);
86
82
  }
87
83
  /**
88
84
  * @description Based on the chain and runtimeVersion, get the applicable signed extensions (ready for registration)
@@ -100,9 +96,7 @@ function getSpecExtensions(_ref4, chainName, specName) {
100
96
 
101
97
  const _specName = specName.toString();
102
98
 
103
- return { ...(((_knownTypes$typesBund = knownTypes.typesBundle) === null || _knownTypes$typesBund === void 0 ? void 0 : (_knownTypes$typesBund2 = _knownTypes$typesBund.spec) === null || _knownTypes$typesBund2 === void 0 ? void 0 : (_knownTypes$typesBund3 = _knownTypes$typesBund2[_specName]) === null || _knownTypes$typesBund3 === void 0 ? void 0 : _knownTypes$typesBund3.signedExtensions) || {}),
104
- ...(((_knownTypes$typesBund4 = knownTypes.typesBundle) === null || _knownTypes$typesBund4 === void 0 ? void 0 : (_knownTypes$typesBund5 = _knownTypes$typesBund4.chain) === null || _knownTypes$typesBund5 === void 0 ? void 0 : (_knownTypes$typesBund6 = _knownTypes$typesBund5[_chainName]) === null || _knownTypes$typesBund6 === void 0 ? void 0 : _knownTypes$typesBund6.signedExtensions) || {})
105
- };
99
+ return (0, _util.objectSpread)({}, (_knownTypes$typesBund = knownTypes.typesBundle) === null || _knownTypes$typesBund === void 0 ? void 0 : (_knownTypes$typesBund2 = _knownTypes$typesBund.spec) === null || _knownTypes$typesBund2 === void 0 ? void 0 : (_knownTypes$typesBund3 = _knownTypes$typesBund2[_specName]) === null || _knownTypes$typesBund3 === void 0 ? void 0 : _knownTypes$typesBund3.signedExtensions, (_knownTypes$typesBund4 = knownTypes.typesBundle) === null || _knownTypes$typesBund4 === void 0 ? void 0 : (_knownTypes$typesBund5 = _knownTypes$typesBund4.chain) === null || _knownTypes$typesBund5 === void 0 ? void 0 : (_knownTypes$typesBund6 = _knownTypes$typesBund5[_chainName]) === null || _knownTypes$typesBund6 === void 0 ? void 0 : _knownTypes$typesBund6.signedExtensions);
106
100
  }
107
101
  /**
108
102
  * @description Based on the chain and runtimeVersion, get the applicable types (ready for registration)
@@ -126,14 +120,7 @@ function getSpecTypes(_ref5, chainName, specName, specVersion) {
126
120
  // - types is the final catch-all override
127
121
 
128
122
 
129
- return { ...filterVersions(_index2.default[_specName], _specVersion),
130
- ...filterVersions(_index.default[_chainName], _specVersion),
131
- ...filterVersions((_knownTypes$typesBund7 = knownTypes.typesBundle) === null || _knownTypes$typesBund7 === void 0 ? void 0 : (_knownTypes$typesBund8 = _knownTypes$typesBund7.spec) === null || _knownTypes$typesBund8 === void 0 ? void 0 : (_knownTypes$typesBund9 = _knownTypes$typesBund8[_specName]) === null || _knownTypes$typesBund9 === void 0 ? void 0 : _knownTypes$typesBund9.types, _specVersion),
132
- ...filterVersions((_knownTypes$typesBund10 = knownTypes.typesBundle) === null || _knownTypes$typesBund10 === void 0 ? void 0 : (_knownTypes$typesBund11 = _knownTypes$typesBund10.chain) === null || _knownTypes$typesBund11 === void 0 ? void 0 : (_knownTypes$typesBund12 = _knownTypes$typesBund11[_chainName]) === null || _knownTypes$typesBund12 === void 0 ? void 0 : _knownTypes$typesBund12.types, _specVersion),
133
- ...(((_knownTypes$typesSpec = knownTypes.typesSpec) === null || _knownTypes$typesSpec === void 0 ? void 0 : _knownTypes$typesSpec[_specName]) || {}),
134
- ...(((_knownTypes$typesChai = knownTypes.typesChain) === null || _knownTypes$typesChai === void 0 ? void 0 : _knownTypes$typesChai[_chainName]) || {}),
135
- ...(knownTypes.types || {})
136
- };
123
+ return (0, _util.objectSpread)({}, filterVersions(_index2.default[_specName], _specVersion), filterVersions(_index.default[_chainName], _specVersion), filterVersions((_knownTypes$typesBund7 = knownTypes.typesBundle) === null || _knownTypes$typesBund7 === void 0 ? void 0 : (_knownTypes$typesBund8 = _knownTypes$typesBund7.spec) === null || _knownTypes$typesBund8 === void 0 ? void 0 : (_knownTypes$typesBund9 = _knownTypes$typesBund8[_specName]) === null || _knownTypes$typesBund9 === void 0 ? void 0 : _knownTypes$typesBund9.types, _specVersion), filterVersions((_knownTypes$typesBund10 = knownTypes.typesBundle) === null || _knownTypes$typesBund10 === void 0 ? void 0 : (_knownTypes$typesBund11 = _knownTypes$typesBund10.chain) === null || _knownTypes$typesBund11 === void 0 ? void 0 : (_knownTypes$typesBund12 = _knownTypes$typesBund11[_chainName]) === null || _knownTypes$typesBund12 === void 0 ? void 0 : _knownTypes$typesBund12.types, _specVersion), (_knownTypes$typesSpec = knownTypes.typesSpec) === null || _knownTypes$typesSpec === void 0 ? void 0 : _knownTypes$typesSpec[_specName], (_knownTypes$typesChai = knownTypes.typesChain) === null || _knownTypes$typesChai === void 0 ? void 0 : _knownTypes$typesChai[_chainName], knownTypes.types);
137
124
  }
138
125
 
139
126
  function getSpecHasher(_ref6, chainName, specName) {
@@ -165,9 +152,7 @@ function getSpecRpc(_ref7, chainName, specName) {
165
152
 
166
153
  const _specName = specName.toString();
167
154
 
168
- return { ...(((_knownTypes$typesBund19 = knownTypes.typesBundle) === null || _knownTypes$typesBund19 === void 0 ? void 0 : (_knownTypes$typesBund20 = _knownTypes$typesBund19.spec) === null || _knownTypes$typesBund20 === void 0 ? void 0 : (_knownTypes$typesBund21 = _knownTypes$typesBund20[_specName]) === null || _knownTypes$typesBund21 === void 0 ? void 0 : _knownTypes$typesBund21.rpc) || {}),
169
- ...(((_knownTypes$typesBund22 = knownTypes.typesBundle) === null || _knownTypes$typesBund22 === void 0 ? void 0 : (_knownTypes$typesBund23 = _knownTypes$typesBund22.chain) === null || _knownTypes$typesBund23 === void 0 ? void 0 : (_knownTypes$typesBund24 = _knownTypes$typesBund23[_chainName]) === null || _knownTypes$typesBund24 === void 0 ? void 0 : _knownTypes$typesBund24.rpc) || {})
170
- };
155
+ return (0, _util.objectSpread)({}, (_knownTypes$typesBund19 = knownTypes.typesBundle) === null || _knownTypes$typesBund19 === void 0 ? void 0 : (_knownTypes$typesBund20 = _knownTypes$typesBund19.spec) === null || _knownTypes$typesBund20 === void 0 ? void 0 : (_knownTypes$typesBund21 = _knownTypes$typesBund20[_specName]) === null || _knownTypes$typesBund21 === void 0 ? void 0 : _knownTypes$typesBund21.rpc, (_knownTypes$typesBund22 = knownTypes.typesBundle) === null || _knownTypes$typesBund22 === void 0 ? void 0 : (_knownTypes$typesBund23 = _knownTypes$typesBund22.chain) === null || _knownTypes$typesBund23 === void 0 ? void 0 : (_knownTypes$typesBund24 = _knownTypes$typesBund23[_chainName]) === null || _knownTypes$typesBund24 === void 0 ? void 0 : _knownTypes$typesBund24.rpc);
171
156
  }
172
157
  /**
173
158
  * @description Based on the chain and runtimeVersion, get the applicable alias definitions (ready for registration)
@@ -186,10 +171,7 @@ function getSpecAlias(_ref8, chainName, specName) {
186
171
  const _specName = specName.toString(); // as per versions, first spec, then chain then finally non-versioned
187
172
 
188
173
 
189
- return { ...(((_knownTypes$typesBund25 = knownTypes.typesBundle) === null || _knownTypes$typesBund25 === void 0 ? void 0 : (_knownTypes$typesBund26 = _knownTypes$typesBund25.spec) === null || _knownTypes$typesBund26 === void 0 ? void 0 : (_knownTypes$typesBund27 = _knownTypes$typesBund26[_specName]) === null || _knownTypes$typesBund27 === void 0 ? void 0 : _knownTypes$typesBund27.alias) || {}),
190
- ...(((_knownTypes$typesBund28 = knownTypes.typesBundle) === null || _knownTypes$typesBund28 === void 0 ? void 0 : (_knownTypes$typesBund29 = _knownTypes$typesBund28.chain) === null || _knownTypes$typesBund29 === void 0 ? void 0 : (_knownTypes$typesBund30 = _knownTypes$typesBund29[_chainName]) === null || _knownTypes$typesBund30 === void 0 ? void 0 : _knownTypes$typesBund30.alias) || {}),
191
- ...(knownTypes.typesAlias || {})
192
- };
174
+ return (0, _util.objectSpread)({}, (_knownTypes$typesBund25 = knownTypes.typesBundle) === null || _knownTypes$typesBund25 === void 0 ? void 0 : (_knownTypes$typesBund26 = _knownTypes$typesBund25.spec) === null || _knownTypes$typesBund26 === void 0 ? void 0 : (_knownTypes$typesBund27 = _knownTypes$typesBund26[_specName]) === null || _knownTypes$typesBund27 === void 0 ? void 0 : _knownTypes$typesBund27.alias, (_knownTypes$typesBund28 = knownTypes.typesBundle) === null || _knownTypes$typesBund28 === void 0 ? void 0 : (_knownTypes$typesBund29 = _knownTypes$typesBund28.chain) === null || _knownTypes$typesBund29 === void 0 ? void 0 : (_knownTypes$typesBund30 = _knownTypes$typesBund29[_chainName]) === null || _knownTypes$typesBund30 === void 0 ? void 0 : _knownTypes$typesBund30.alias, knownTypes.typesAlias);
193
175
  }
194
176
  /**
195
177
  * @description Returns a version record for known chains where upgrades are being tracked
package/bundle.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import { bnToBn, isNull, isUndefined } from '@polkadot/util';
3
+ import { bnToBn, isNull, isUndefined, objectSpread } from '@polkadot/util';
4
4
  import typesChain from "./chain/index.js";
5
5
  import typesModules from "./modules.js";
6
6
  import typesSpec from "./spec/index.js";
@@ -16,9 +16,7 @@ function filterVersions(versions = [], specVersion) {
16
16
  minmax: [min, max]
17
17
  }) => (isUndefined(min) || isNull(min) || specVersion >= min) && (isUndefined(max) || isNull(max) || specVersion <= max)).reduce((result, {
18
18
  types
19
- }) => ({ ...result,
20
- ...types
21
- }), {});
19
+ }) => objectSpread(result, types), {});
22
20
  }
23
21
  /**
24
22
  * @description Get types for specific modules (metadata override)
@@ -30,9 +28,7 @@ export function getModuleTypes({
30
28
  }, section) {
31
29
  var _knownTypes$typesAlia;
32
30
 
33
- return { ...(typesModules[section] || {}),
34
- ...(((_knownTypes$typesAlia = knownTypes.typesAlias) === null || _knownTypes$typesAlia === void 0 ? void 0 : _knownTypes$typesAlia[section]) || {})
35
- };
31
+ return objectSpread({}, typesModules[section], (_knownTypes$typesAlia = knownTypes.typesAlias) === null || _knownTypes$typesAlia === void 0 ? void 0 : _knownTypes$typesAlia[section]);
36
32
  }
37
33
  /**
38
34
  * @description Based on the chain and runtimeVersion, get the applicable signed extensions (ready for registration)
@@ -47,9 +43,7 @@ export function getSpecExtensions({
47
43
 
48
44
  const _specName = specName.toString();
49
45
 
50
- return { ...(((_knownTypes$typesBund = knownTypes.typesBundle) === null || _knownTypes$typesBund === void 0 ? void 0 : (_knownTypes$typesBund2 = _knownTypes$typesBund.spec) === null || _knownTypes$typesBund2 === void 0 ? void 0 : (_knownTypes$typesBund3 = _knownTypes$typesBund2[_specName]) === null || _knownTypes$typesBund3 === void 0 ? void 0 : _knownTypes$typesBund3.signedExtensions) || {}),
51
- ...(((_knownTypes$typesBund4 = knownTypes.typesBundle) === null || _knownTypes$typesBund4 === void 0 ? void 0 : (_knownTypes$typesBund5 = _knownTypes$typesBund4.chain) === null || _knownTypes$typesBund5 === void 0 ? void 0 : (_knownTypes$typesBund6 = _knownTypes$typesBund5[_chainName]) === null || _knownTypes$typesBund6 === void 0 ? void 0 : _knownTypes$typesBund6.signedExtensions) || {})
52
- };
46
+ return objectSpread({}, (_knownTypes$typesBund = knownTypes.typesBundle) === null || _knownTypes$typesBund === void 0 ? void 0 : (_knownTypes$typesBund2 = _knownTypes$typesBund.spec) === null || _knownTypes$typesBund2 === void 0 ? void 0 : (_knownTypes$typesBund3 = _knownTypes$typesBund2[_specName]) === null || _knownTypes$typesBund3 === void 0 ? void 0 : _knownTypes$typesBund3.signedExtensions, (_knownTypes$typesBund4 = knownTypes.typesBundle) === null || _knownTypes$typesBund4 === void 0 ? void 0 : (_knownTypes$typesBund5 = _knownTypes$typesBund4.chain) === null || _knownTypes$typesBund5 === void 0 ? void 0 : (_knownTypes$typesBund6 = _knownTypes$typesBund5[_chainName]) === null || _knownTypes$typesBund6 === void 0 ? void 0 : _knownTypes$typesBund6.signedExtensions);
53
47
  }
54
48
  /**
55
49
  * @description Based on the chain and runtimeVersion, get the applicable types (ready for registration)
@@ -70,14 +64,7 @@ export function getSpecTypes({
70
64
  // - types is the final catch-all override
71
65
 
72
66
 
73
- return { ...filterVersions(typesSpec[_specName], _specVersion),
74
- ...filterVersions(typesChain[_chainName], _specVersion),
75
- ...filterVersions((_knownTypes$typesBund7 = knownTypes.typesBundle) === null || _knownTypes$typesBund7 === void 0 ? void 0 : (_knownTypes$typesBund8 = _knownTypes$typesBund7.spec) === null || _knownTypes$typesBund8 === void 0 ? void 0 : (_knownTypes$typesBund9 = _knownTypes$typesBund8[_specName]) === null || _knownTypes$typesBund9 === void 0 ? void 0 : _knownTypes$typesBund9.types, _specVersion),
76
- ...filterVersions((_knownTypes$typesBund10 = knownTypes.typesBundle) === null || _knownTypes$typesBund10 === void 0 ? void 0 : (_knownTypes$typesBund11 = _knownTypes$typesBund10.chain) === null || _knownTypes$typesBund11 === void 0 ? void 0 : (_knownTypes$typesBund12 = _knownTypes$typesBund11[_chainName]) === null || _knownTypes$typesBund12 === void 0 ? void 0 : _knownTypes$typesBund12.types, _specVersion),
77
- ...(((_knownTypes$typesSpec = knownTypes.typesSpec) === null || _knownTypes$typesSpec === void 0 ? void 0 : _knownTypes$typesSpec[_specName]) || {}),
78
- ...(((_knownTypes$typesChai = knownTypes.typesChain) === null || _knownTypes$typesChai === void 0 ? void 0 : _knownTypes$typesChai[_chainName]) || {}),
79
- ...(knownTypes.types || {})
80
- };
67
+ return objectSpread({}, filterVersions(typesSpec[_specName], _specVersion), filterVersions(typesChain[_chainName], _specVersion), filterVersions((_knownTypes$typesBund7 = knownTypes.typesBundle) === null || _knownTypes$typesBund7 === void 0 ? void 0 : (_knownTypes$typesBund8 = _knownTypes$typesBund7.spec) === null || _knownTypes$typesBund8 === void 0 ? void 0 : (_knownTypes$typesBund9 = _knownTypes$typesBund8[_specName]) === null || _knownTypes$typesBund9 === void 0 ? void 0 : _knownTypes$typesBund9.types, _specVersion), filterVersions((_knownTypes$typesBund10 = knownTypes.typesBundle) === null || _knownTypes$typesBund10 === void 0 ? void 0 : (_knownTypes$typesBund11 = _knownTypes$typesBund10.chain) === null || _knownTypes$typesBund11 === void 0 ? void 0 : (_knownTypes$typesBund12 = _knownTypes$typesBund11[_chainName]) === null || _knownTypes$typesBund12 === void 0 ? void 0 : _knownTypes$typesBund12.types, _specVersion), (_knownTypes$typesSpec = knownTypes.typesSpec) === null || _knownTypes$typesSpec === void 0 ? void 0 : _knownTypes$typesSpec[_specName], (_knownTypes$typesChai = knownTypes.typesChain) === null || _knownTypes$typesChai === void 0 ? void 0 : _knownTypes$typesChai[_chainName], knownTypes.types);
81
68
  }
82
69
  export function getSpecHasher({
83
70
  knownTypes
@@ -103,9 +90,7 @@ export function getSpecRpc({
103
90
 
104
91
  const _specName = specName.toString();
105
92
 
106
- return { ...(((_knownTypes$typesBund19 = knownTypes.typesBundle) === null || _knownTypes$typesBund19 === void 0 ? void 0 : (_knownTypes$typesBund20 = _knownTypes$typesBund19.spec) === null || _knownTypes$typesBund20 === void 0 ? void 0 : (_knownTypes$typesBund21 = _knownTypes$typesBund20[_specName]) === null || _knownTypes$typesBund21 === void 0 ? void 0 : _knownTypes$typesBund21.rpc) || {}),
107
- ...(((_knownTypes$typesBund22 = knownTypes.typesBundle) === null || _knownTypes$typesBund22 === void 0 ? void 0 : (_knownTypes$typesBund23 = _knownTypes$typesBund22.chain) === null || _knownTypes$typesBund23 === void 0 ? void 0 : (_knownTypes$typesBund24 = _knownTypes$typesBund23[_chainName]) === null || _knownTypes$typesBund24 === void 0 ? void 0 : _knownTypes$typesBund24.rpc) || {})
108
- };
93
+ return objectSpread({}, (_knownTypes$typesBund19 = knownTypes.typesBundle) === null || _knownTypes$typesBund19 === void 0 ? void 0 : (_knownTypes$typesBund20 = _knownTypes$typesBund19.spec) === null || _knownTypes$typesBund20 === void 0 ? void 0 : (_knownTypes$typesBund21 = _knownTypes$typesBund20[_specName]) === null || _knownTypes$typesBund21 === void 0 ? void 0 : _knownTypes$typesBund21.rpc, (_knownTypes$typesBund22 = knownTypes.typesBundle) === null || _knownTypes$typesBund22 === void 0 ? void 0 : (_knownTypes$typesBund23 = _knownTypes$typesBund22.chain) === null || _knownTypes$typesBund23 === void 0 ? void 0 : (_knownTypes$typesBund24 = _knownTypes$typesBund23[_chainName]) === null || _knownTypes$typesBund24 === void 0 ? void 0 : _knownTypes$typesBund24.rpc);
109
94
  }
110
95
  /**
111
96
  * @description Based on the chain and runtimeVersion, get the applicable alias definitions (ready for registration)
@@ -121,10 +106,7 @@ export function getSpecAlias({
121
106
  const _specName = specName.toString(); // as per versions, first spec, then chain then finally non-versioned
122
107
 
123
108
 
124
- return { ...(((_knownTypes$typesBund25 = knownTypes.typesBundle) === null || _knownTypes$typesBund25 === void 0 ? void 0 : (_knownTypes$typesBund26 = _knownTypes$typesBund25.spec) === null || _knownTypes$typesBund26 === void 0 ? void 0 : (_knownTypes$typesBund27 = _knownTypes$typesBund26[_specName]) === null || _knownTypes$typesBund27 === void 0 ? void 0 : _knownTypes$typesBund27.alias) || {}),
125
- ...(((_knownTypes$typesBund28 = knownTypes.typesBundle) === null || _knownTypes$typesBund28 === void 0 ? void 0 : (_knownTypes$typesBund29 = _knownTypes$typesBund28.chain) === null || _knownTypes$typesBund29 === void 0 ? void 0 : (_knownTypes$typesBund30 = _knownTypes$typesBund29[_chainName]) === null || _knownTypes$typesBund30 === void 0 ? void 0 : _knownTypes$typesBund30.alias) || {}),
126
- ...(knownTypes.typesAlias || {})
127
- };
109
+ return objectSpread({}, (_knownTypes$typesBund25 = knownTypes.typesBundle) === null || _knownTypes$typesBund25 === void 0 ? void 0 : (_knownTypes$typesBund26 = _knownTypes$typesBund25.spec) === null || _knownTypes$typesBund26 === void 0 ? void 0 : (_knownTypes$typesBund27 = _knownTypes$typesBund26[_specName]) === null || _knownTypes$typesBund27 === void 0 ? void 0 : _knownTypes$typesBund27.alias, (_knownTypes$typesBund28 = knownTypes.typesBundle) === null || _knownTypes$typesBund28 === void 0 ? void 0 : (_knownTypes$typesBund29 = _knownTypes$typesBund28.chain) === null || _knownTypes$typesBund29 === void 0 ? void 0 : (_knownTypes$typesBund30 = _knownTypes$typesBund29[_chainName]) === null || _knownTypes$typesBund30 === void 0 ? void 0 : _knownTypes$typesBund30.alias, knownTypes.typesAlias);
128
110
  }
129
111
  /**
130
112
  * @description Returns a version record for known chains where upgrades are being tracked
package/package.json CHANGED
@@ -20,13 +20,13 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "6.6.2-13",
23
+ "version": "6.6.2-17",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.0",
27
- "@polkadot/networks": "^7.7.2-5",
28
- "@polkadot/types": "6.6.2-13",
29
- "@polkadot/util": "^7.7.2-5"
27
+ "@polkadot/networks": "^7.7.2-6",
28
+ "@polkadot/types": "6.6.2-17",
29
+ "@polkadot/util": "^7.7.2-6"
30
30
  },
31
31
  "exports": {
32
32
  ".": {
package/packageInfo.cjs CHANGED
@@ -9,6 +9,6 @@ exports.packageInfo = void 0;
9
9
  // Auto-generated by @polkadot/dev, do not edit
10
10
  const packageInfo = {
11
11
  name: '@polkadot/types-known',
12
- version: '6.6.2-13'
12
+ version: '6.6.2-17'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -3,5 +3,5 @@
3
3
  // Auto-generated by @polkadot/dev, do not edit
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/types-known',
6
- version: '6.6.2-13'
6
+ version: '6.6.2-17'
7
7
  };
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+
8
+ var _util = require("@polkadot/util");
9
+
7
10
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
8
11
  // SPDX-License-Identifier: Apache-2.0
9
12
 
@@ -70,28 +73,26 @@ const sharedTypes = {
70
73
  _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'NonProxy']
71
74
  }
72
75
  };
73
- const standaloneTypes = { ...sharedTypes,
76
+ const standaloneTypes = (0, _util.objectSpread)({}, sharedTypes, {
74
77
  AccountInfo: 'AccountInfoWithRefCount',
75
78
  Address: 'LookupSource',
76
79
  LookupSource: 'IndicesLookupSource',
77
80
  Multiplier: 'Fixed64',
78
81
  RefCount: 'RefCountTo259'
79
- };
82
+ });
80
83
  const versioned = [{
81
84
  minmax: [240, 243],
82
- types: { ...standaloneTypes,
85
+ types: (0, _util.objectSpread)({}, standaloneTypes, {
83
86
  ProxyType: {
84
87
  _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'Vesting']
85
88
  }
86
- }
89
+ })
87
90
  }, {
88
91
  minmax: [244, 999],
89
- types: { ...standaloneTypes
90
- }
92
+ types: (0, _util.objectSpread)({}, standaloneTypes)
91
93
  }, {
92
94
  minmax: [1000, undefined],
93
- types: { ...sharedTypes
94
- }
95
+ types: (0, _util.objectSpread)({}, sharedTypes)
95
96
  }];
96
97
  var _default = versioned;
97
98
  exports.default = _default;
@@ -2,6 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  /* eslint-disable sort-keys */
5
+ import { objectSpread } from '@polkadot/util';
5
6
  const sharedTypes = {
6
7
  // Anchor
7
8
  AnchorData: {
@@ -64,27 +65,25 @@ const sharedTypes = {
64
65
  _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'NonProxy']
65
66
  }
66
67
  };
67
- const standaloneTypes = { ...sharedTypes,
68
+ const standaloneTypes = objectSpread({}, sharedTypes, {
68
69
  AccountInfo: 'AccountInfoWithRefCount',
69
70
  Address: 'LookupSource',
70
71
  LookupSource: 'IndicesLookupSource',
71
72
  Multiplier: 'Fixed64',
72
73
  RefCount: 'RefCountTo259'
73
- };
74
+ });
74
75
  const versioned = [{
75
76
  minmax: [240, 243],
76
- types: { ...standaloneTypes,
77
+ types: objectSpread({}, standaloneTypes, {
77
78
  ProxyType: {
78
79
  _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'Vesting']
79
80
  }
80
- }
81
+ })
81
82
  }, {
82
83
  minmax: [244, 999],
83
- types: { ...standaloneTypes
84
- }
84
+ types: objectSpread({}, standaloneTypes)
85
85
  }, {
86
86
  minmax: [1000, undefined],
87
- types: { ...sharedTypes
88
- }
87
+ types: objectSpread({}, sharedTypes)
89
88
  }];
90
89
  export default versioned;
package/spec/kusama.cjs CHANGED
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _util = require("@polkadot/util");
9
+
8
10
  var _xcm = require("../xcm.cjs");
9
11
 
10
12
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
@@ -40,7 +42,7 @@ const addrAccountIdTypes = {
40
42
  const versioned = [{
41
43
  // 1020 is first CC3
42
44
  minmax: [1019, 1031],
43
- types: { ...addrIndicesTypes,
45
+ types: (0, _util.objectSpread)({}, addrIndicesTypes, {
44
46
  BalanceLock: 'BalanceLockTo212',
45
47
  CompactAssignments: 'CompactAssignmentsTo257',
46
48
  DispatchError: 'DispatchErrorTo198',
@@ -56,10 +58,10 @@ const versioned = [{
56
58
  StakingLedger: 'StakingLedgerTo223',
57
59
  Votes: 'VotesTo230',
58
60
  Weight: 'u32'
59
- }
61
+ })
60
62
  }, {
61
63
  minmax: [1032, 1042],
62
- types: { ...addrIndicesTypes,
64
+ types: (0, _util.objectSpread)({}, addrIndicesTypes, {
63
65
  BalanceLock: 'BalanceLockTo212',
64
66
  CompactAssignments: 'CompactAssignmentsTo257',
65
67
  DispatchInfo: 'DispatchInfoTo244',
@@ -73,11 +75,11 @@ const versioned = [{
73
75
  StakingLedger: 'StakingLedgerTo223',
74
76
  Votes: 'VotesTo230',
75
77
  Weight: 'u32'
76
- }
78
+ })
77
79
  }, {
78
80
  // actual at 1045 (1043-1044 is dev)
79
81
  minmax: [1043, 1045],
80
- types: { ...addrIndicesTypes,
82
+ types: (0, _util.objectSpread)({}, addrIndicesTypes, {
81
83
  BalanceLock: 'BalanceLockTo212',
82
84
  CompactAssignments: 'CompactAssignmentsTo257',
83
85
  DispatchInfo: 'DispatchInfoTo244',
@@ -90,12 +92,10 @@ const versioned = [{
90
92
  StakingLedger: 'StakingLedgerTo223',
91
93
  Votes: 'VotesTo230',
92
94
  Weight: 'u32'
93
- }
95
+ })
94
96
  }, {
95
97
  minmax: [1046, 1054],
96
- types: { // Indices optional, not in transaction
97
- ...sharedTypes,
98
- ...addrAccountIdTypes,
98
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
99
99
  CompactAssignments: 'CompactAssignmentsTo257',
100
100
  DispatchInfo: 'DispatchInfoTo244',
101
101
  Heartbeat: 'HeartbeatTo244',
@@ -105,11 +105,10 @@ const versioned = [{
105
105
  ReferendumInfo: 'ReferendumInfoTo239',
106
106
  StakingLedger: 'StakingLedgerTo240',
107
107
  Weight: 'u32'
108
- }
108
+ })
109
109
  }, {
110
110
  minmax: [1055, 1056],
111
- types: { ...sharedTypes,
112
- ...addrAccountIdTypes,
111
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
113
112
  CompactAssignments: 'CompactAssignmentsTo257',
114
113
  DispatchInfo: 'DispatchInfoTo244',
115
114
  Heartbeat: 'HeartbeatTo244',
@@ -118,72 +117,61 @@ const versioned = [{
118
117
  RefCount: 'RefCountTo259',
119
118
  StakingLedger: 'StakingLedgerTo240',
120
119
  Weight: 'u32'
121
- }
120
+ })
122
121
  }, {
123
122
  minmax: [1057, 1061],
124
- types: { ...sharedTypes,
125
- ...addrAccountIdTypes,
123
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
126
124
  CompactAssignments: 'CompactAssignmentsTo257',
127
125
  DispatchInfo: 'DispatchInfoTo244',
128
126
  Heartbeat: 'HeartbeatTo244',
129
127
  OpenTip: 'OpenTipTo225',
130
128
  RefCount: 'RefCountTo259'
131
- }
129
+ })
132
130
  }, {
133
131
  minmax: [1062, 2012],
134
- types: { ...sharedTypes,
135
- ...addrAccountIdTypes,
132
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
136
133
  CompactAssignments: 'CompactAssignmentsTo257',
137
134
  OpenTip: 'OpenTipTo225',
138
135
  RefCount: 'RefCountTo259'
139
- }
136
+ })
140
137
  }, {
141
138
  minmax: [2013, 2022],
142
- types: { ...sharedTypes,
143
- ...addrAccountIdTypes,
139
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
144
140
  CompactAssignments: 'CompactAssignmentsTo257',
145
141
  RefCount: 'RefCountTo259'
146
- }
142
+ })
147
143
  }, {
148
144
  minmax: [2023, 2024],
149
- types: { ...sharedTypes,
150
- ...addrAccountIdTypes,
145
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
151
146
  RefCount: 'RefCountTo259'
152
- }
147
+ })
153
148
  }, {
154
149
  minmax: [2025, 2027],
155
- types: { ...sharedTypes,
156
- ...addrAccountIdTypes
157
- }
150
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
158
151
  }, {
159
152
  minmax: [2028, 2029],
160
- types: { ...sharedTypes,
153
+ types: (0, _util.objectSpread)({}, sharedTypes, {
161
154
  AccountInfo: 'AccountInfoWithDualRefCount',
162
155
  CompactAssignments: 'CompactAssignmentsWith16',
163
156
  RawSolution: 'RawSolutionWith16'
164
- }
157
+ })
165
158
  }, {
166
159
  minmax: [2030, 9000],
167
- types: { ...sharedTypes,
160
+ types: (0, _util.objectSpread)({}, sharedTypes, {
168
161
  CompactAssignments: 'CompactAssignmentsWith16',
169
162
  RawSolution: 'RawSolutionWith16'
170
- }
163
+ })
171
164
  }, {
172
165
  minmax: [9010, 9099],
173
- types: { ...sharedTypes,
174
- ...(0, _xcm.mapXcmTypes)('V0')
175
- }
166
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V0'))
176
167
  }, {
177
168
  // jump from 9100 to 9110, however align with Rococo
178
169
  minmax: [9100, 9105],
179
- types: { ...sharedTypes,
180
- ...(0, _xcm.mapXcmTypes)('V1')
181
- }
170
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V1'))
182
171
  }, {
183
172
  // metadata v14
184
173
  minmax: [9106, undefined],
185
- types: { ...sharedTypes
186
- }
174
+ types: (0, _util.objectSpread)({}, sharedTypes)
187
175
  }];
188
176
  var _default = versioned;
189
177
  exports.default = _default;
package/spec/kusama.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  /* eslint-disable sort-keys */
5
+ import { objectSpread } from '@polkadot/util';
5
6
  import { mapXcmTypes } from "../xcm.js";
6
7
  const sharedTypes = {
7
8
  CompactAssignments: 'CompactAssignmentsWith24',
@@ -32,7 +33,7 @@ const addrAccountIdTypes = {
32
33
  const versioned = [{
33
34
  // 1020 is first CC3
34
35
  minmax: [1019, 1031],
35
- types: { ...addrIndicesTypes,
36
+ types: objectSpread({}, addrIndicesTypes, {
36
37
  BalanceLock: 'BalanceLockTo212',
37
38
  CompactAssignments: 'CompactAssignmentsTo257',
38
39
  DispatchError: 'DispatchErrorTo198',
@@ -48,10 +49,10 @@ const versioned = [{
48
49
  StakingLedger: 'StakingLedgerTo223',
49
50
  Votes: 'VotesTo230',
50
51
  Weight: 'u32'
51
- }
52
+ })
52
53
  }, {
53
54
  minmax: [1032, 1042],
54
- types: { ...addrIndicesTypes,
55
+ types: objectSpread({}, addrIndicesTypes, {
55
56
  BalanceLock: 'BalanceLockTo212',
56
57
  CompactAssignments: 'CompactAssignmentsTo257',
57
58
  DispatchInfo: 'DispatchInfoTo244',
@@ -65,11 +66,11 @@ const versioned = [{
65
66
  StakingLedger: 'StakingLedgerTo223',
66
67
  Votes: 'VotesTo230',
67
68
  Weight: 'u32'
68
- }
69
+ })
69
70
  }, {
70
71
  // actual at 1045 (1043-1044 is dev)
71
72
  minmax: [1043, 1045],
72
- types: { ...addrIndicesTypes,
73
+ types: objectSpread({}, addrIndicesTypes, {
73
74
  BalanceLock: 'BalanceLockTo212',
74
75
  CompactAssignments: 'CompactAssignmentsTo257',
75
76
  DispatchInfo: 'DispatchInfoTo244',
@@ -82,12 +83,10 @@ const versioned = [{
82
83
  StakingLedger: 'StakingLedgerTo223',
83
84
  Votes: 'VotesTo230',
84
85
  Weight: 'u32'
85
- }
86
+ })
86
87
  }, {
87
88
  minmax: [1046, 1054],
88
- types: { // Indices optional, not in transaction
89
- ...sharedTypes,
90
- ...addrAccountIdTypes,
89
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
91
90
  CompactAssignments: 'CompactAssignmentsTo257',
92
91
  DispatchInfo: 'DispatchInfoTo244',
93
92
  Heartbeat: 'HeartbeatTo244',
@@ -97,11 +96,10 @@ const versioned = [{
97
96
  ReferendumInfo: 'ReferendumInfoTo239',
98
97
  StakingLedger: 'StakingLedgerTo240',
99
98
  Weight: 'u32'
100
- }
99
+ })
101
100
  }, {
102
101
  minmax: [1055, 1056],
103
- types: { ...sharedTypes,
104
- ...addrAccountIdTypes,
102
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
105
103
  CompactAssignments: 'CompactAssignmentsTo257',
106
104
  DispatchInfo: 'DispatchInfoTo244',
107
105
  Heartbeat: 'HeartbeatTo244',
@@ -110,71 +108,60 @@ const versioned = [{
110
108
  RefCount: 'RefCountTo259',
111
109
  StakingLedger: 'StakingLedgerTo240',
112
110
  Weight: 'u32'
113
- }
111
+ })
114
112
  }, {
115
113
  minmax: [1057, 1061],
116
- types: { ...sharedTypes,
117
- ...addrAccountIdTypes,
114
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
118
115
  CompactAssignments: 'CompactAssignmentsTo257',
119
116
  DispatchInfo: 'DispatchInfoTo244',
120
117
  Heartbeat: 'HeartbeatTo244',
121
118
  OpenTip: 'OpenTipTo225',
122
119
  RefCount: 'RefCountTo259'
123
- }
120
+ })
124
121
  }, {
125
122
  minmax: [1062, 2012],
126
- types: { ...sharedTypes,
127
- ...addrAccountIdTypes,
123
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
128
124
  CompactAssignments: 'CompactAssignmentsTo257',
129
125
  OpenTip: 'OpenTipTo225',
130
126
  RefCount: 'RefCountTo259'
131
- }
127
+ })
132
128
  }, {
133
129
  minmax: [2013, 2022],
134
- types: { ...sharedTypes,
135
- ...addrAccountIdTypes,
130
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
136
131
  CompactAssignments: 'CompactAssignmentsTo257',
137
132
  RefCount: 'RefCountTo259'
138
- }
133
+ })
139
134
  }, {
140
135
  minmax: [2023, 2024],
141
- types: { ...sharedTypes,
142
- ...addrAccountIdTypes,
136
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
143
137
  RefCount: 'RefCountTo259'
144
- }
138
+ })
145
139
  }, {
146
140
  minmax: [2025, 2027],
147
- types: { ...sharedTypes,
148
- ...addrAccountIdTypes
149
- }
141
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes)
150
142
  }, {
151
143
  minmax: [2028, 2029],
152
- types: { ...sharedTypes,
144
+ types: objectSpread({}, sharedTypes, {
153
145
  AccountInfo: 'AccountInfoWithDualRefCount',
154
146
  CompactAssignments: 'CompactAssignmentsWith16',
155
147
  RawSolution: 'RawSolutionWith16'
156
- }
148
+ })
157
149
  }, {
158
150
  minmax: [2030, 9000],
159
- types: { ...sharedTypes,
151
+ types: objectSpread({}, sharedTypes, {
160
152
  CompactAssignments: 'CompactAssignmentsWith16',
161
153
  RawSolution: 'RawSolutionWith16'
162
- }
154
+ })
163
155
  }, {
164
156
  minmax: [9010, 9099],
165
- types: { ...sharedTypes,
166
- ...mapXcmTypes('V0')
167
- }
157
+ types: objectSpread({}, sharedTypes, mapXcmTypes('V0'))
168
158
  }, {
169
159
  // jump from 9100 to 9110, however align with Rococo
170
160
  minmax: [9100, 9105],
171
- types: { ...sharedTypes,
172
- ...mapXcmTypes('V1')
173
- }
161
+ types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
174
162
  }, {
175
163
  // metadata v14
176
164
  minmax: [9106, undefined],
177
- types: { ...sharedTypes
178
- }
165
+ types: objectSpread({}, sharedTypes)
179
166
  }];
180
167
  export default versioned;
package/spec/polkadot.cjs CHANGED
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+
8
+ var _util = require("@polkadot/util");
9
+
7
10
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
8
11
  // SPDX-License-Identifier: Apache-2.0
9
12
 
@@ -35,44 +38,37 @@ const addrAccountIdTypes = {
35
38
 
36
39
  const versioned = [{
37
40
  minmax: [0, 12],
38
- types: { ...sharedTypes,
39
- ...addrAccountIdTypes,
41
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
40
42
  CompactAssignments: 'CompactAssignmentsTo257',
41
43
  OpenTip: 'OpenTipTo225',
42
44
  RefCount: 'RefCountTo259'
43
- }
45
+ })
44
46
  }, {
45
47
  minmax: [13, 22],
46
- types: { ...sharedTypes,
47
- ...addrAccountIdTypes,
48
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
48
49
  CompactAssignments: 'CompactAssignmentsTo257',
49
50
  RefCount: 'RefCountTo259'
50
- }
51
+ })
51
52
  }, {
52
53
  minmax: [23, 24],
53
- types: { ...sharedTypes,
54
- ...addrAccountIdTypes,
54
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
55
55
  RefCount: 'RefCountTo259'
56
- }
56
+ })
57
57
  }, {
58
58
  minmax: [25, 27],
59
- types: { ...sharedTypes,
60
- ...addrAccountIdTypes
61
- }
59
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
62
60
  }, {
63
61
  minmax: [28, 29],
64
- types: { ...sharedTypes,
62
+ types: (0, _util.objectSpread)({}, sharedTypes, {
65
63
  AccountInfo: 'AccountInfoWithDualRefCount'
66
- }
64
+ })
67
65
  }, {
68
66
  minmax: [30, 9109],
69
- types: { ...sharedTypes
70
- }
67
+ types: (0, _util.objectSpread)({}, sharedTypes)
71
68
  }, {
72
69
  // metadata v14
73
70
  minmax: [9110, undefined],
74
- types: { ...sharedTypes
75
- }
71
+ types: (0, _util.objectSpread)({}, sharedTypes)
76
72
  }];
77
73
  var _default = versioned;
78
74
  exports.default = _default;
package/spec/polkadot.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  /* eslint-disable sort-keys */
5
+ import { objectSpread } from '@polkadot/util';
5
6
  const sharedTypes = {
6
7
  CompactAssignments: 'CompactAssignmentsWith16',
7
8
  RawSolution: 'RawSolutionWith16',
@@ -29,43 +30,36 @@ const addrAccountIdTypes = {
29
30
 
30
31
  const versioned = [{
31
32
  minmax: [0, 12],
32
- types: { ...sharedTypes,
33
- ...addrAccountIdTypes,
33
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
34
34
  CompactAssignments: 'CompactAssignmentsTo257',
35
35
  OpenTip: 'OpenTipTo225',
36
36
  RefCount: 'RefCountTo259'
37
- }
37
+ })
38
38
  }, {
39
39
  minmax: [13, 22],
40
- types: { ...sharedTypes,
41
- ...addrAccountIdTypes,
40
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
42
41
  CompactAssignments: 'CompactAssignmentsTo257',
43
42
  RefCount: 'RefCountTo259'
44
- }
43
+ })
45
44
  }, {
46
45
  minmax: [23, 24],
47
- types: { ...sharedTypes,
48
- ...addrAccountIdTypes,
46
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
49
47
  RefCount: 'RefCountTo259'
50
- }
48
+ })
51
49
  }, {
52
50
  minmax: [25, 27],
53
- types: { ...sharedTypes,
54
- ...addrAccountIdTypes
55
- }
51
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes)
56
52
  }, {
57
53
  minmax: [28, 29],
58
- types: { ...sharedTypes,
54
+ types: objectSpread({}, sharedTypes, {
59
55
  AccountInfo: 'AccountInfoWithDualRefCount'
60
- }
56
+ })
61
57
  }, {
62
58
  minmax: [30, 9109],
63
- types: { ...sharedTypes
64
- }
59
+ types: objectSpread({}, sharedTypes)
65
60
  }, {
66
61
  // metadata v14
67
62
  minmax: [9110, undefined],
68
- types: { ...sharedTypes
69
- }
63
+ types: objectSpread({}, sharedTypes)
70
64
  }];
71
65
  export default versioned;
package/spec/rococo.cjs CHANGED
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _util = require("@polkadot/util");
9
+
8
10
  var _xcm = require("../xcm.cjs");
9
11
 
10
12
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
@@ -21,36 +23,31 @@ const sharedTypes = {
21
23
  };
22
24
  const versioned = [{
23
25
  minmax: [0, 200],
24
- types: { ...sharedTypes,
26
+ types: (0, _util.objectSpread)({}, sharedTypes, {
25
27
  AccountInfo: 'AccountInfoWithDualRefCount',
26
28
  Address: 'AccountId',
27
29
  LookupSource: 'AccountId'
28
- }
30
+ })
29
31
  }, {
30
32
  minmax: [201, 214],
31
- types: { ...sharedTypes,
33
+ types: (0, _util.objectSpread)({}, sharedTypes, {
32
34
  AccountInfo: 'AccountInfoWithDualRefCount'
33
- }
35
+ })
34
36
  }, {
35
37
  minmax: [215, 228],
36
- types: { ...sharedTypes,
38
+ types: (0, _util.objectSpread)({}, sharedTypes, {
37
39
  Keys: 'SessionKeys6'
38
- }
40
+ })
39
41
  }, {
40
42
  minmax: [229, 9099],
41
- types: { ...sharedTypes,
42
- ...(0, _xcm.mapXcmTypes)('V0')
43
- }
43
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V0'))
44
44
  }, {
45
45
  minmax: [9100, 9105],
46
- types: { ...sharedTypes,
47
- ...(0, _xcm.mapXcmTypes)('V1')
48
- }
46
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V1'))
49
47
  }, {
50
48
  // metadata v14
51
49
  minmax: [9106, undefined],
52
- types: { ...sharedTypes
53
- }
50
+ types: (0, _util.objectSpread)({}, sharedTypes)
54
51
  }];
55
52
  var _default = versioned;
56
53
  exports.default = _default;
package/spec/rococo.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  /* eslint-disable sort-keys */
5
+ import { objectSpread } from '@polkadot/util';
5
6
  import { mapXcmTypes } from "../xcm.js"; // structs need to be in order
6
7
 
7
8
  /* eslint-disable sort-keys */
@@ -13,35 +14,30 @@ const sharedTypes = {
13
14
  };
14
15
  const versioned = [{
15
16
  minmax: [0, 200],
16
- types: { ...sharedTypes,
17
+ types: objectSpread({}, sharedTypes, {
17
18
  AccountInfo: 'AccountInfoWithDualRefCount',
18
19
  Address: 'AccountId',
19
20
  LookupSource: 'AccountId'
20
- }
21
+ })
21
22
  }, {
22
23
  minmax: [201, 214],
23
- types: { ...sharedTypes,
24
+ types: objectSpread({}, sharedTypes, {
24
25
  AccountInfo: 'AccountInfoWithDualRefCount'
25
- }
26
+ })
26
27
  }, {
27
28
  minmax: [215, 228],
28
- types: { ...sharedTypes,
29
+ types: objectSpread({}, sharedTypes, {
29
30
  Keys: 'SessionKeys6'
30
- }
31
+ })
31
32
  }, {
32
33
  minmax: [229, 9099],
33
- types: { ...sharedTypes,
34
- ...mapXcmTypes('V0')
35
- }
34
+ types: objectSpread({}, sharedTypes, mapXcmTypes('V0'))
36
35
  }, {
37
36
  minmax: [9100, 9105],
38
- types: { ...sharedTypes,
39
- ...mapXcmTypes('V1')
40
- }
37
+ types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
41
38
  }, {
42
39
  // metadata v14
43
40
  minmax: [9106, undefined],
44
- types: { ...sharedTypes
45
- }
41
+ types: objectSpread({}, sharedTypes)
46
42
  }];
47
43
  export default versioned;
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _util = require("@polkadot/util");
9
+
8
10
  var _xcm = require("../xcm.cjs");
9
11
 
10
12
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
@@ -20,19 +22,14 @@ const sharedTypes = {
20
22
 
21
23
  const versioned = [{
22
24
  minmax: [0, 3],
23
- types: { ...sharedTypes,
24
- ...(0, _xcm.mapXcmTypes)('V0')
25
- }
25
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V0'))
26
26
  }, {
27
27
  minmax: [4, 5],
28
- types: { ...sharedTypes,
29
- ...(0, _xcm.mapXcmTypes)('V1')
30
- }
28
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V1'))
31
29
  }, {
32
30
  // metadata V14
33
31
  minmax: [500, undefined],
34
- types: { ...sharedTypes
35
- }
32
+ types: (0, _util.objectSpread)({}, sharedTypes)
36
33
  }];
37
34
  var _default = versioned;
38
35
  exports.default = _default;
package/spec/statemint.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  /* eslint-disable sort-keys */
5
+ import { objectSpread } from '@polkadot/util';
5
6
  import { mapXcmTypes } from "../xcm.js";
6
7
  const sharedTypes = {
7
8
  TAssetBalance: 'u128',
@@ -12,18 +13,13 @@ const sharedTypes = {
12
13
 
13
14
  const versioned = [{
14
15
  minmax: [0, 3],
15
- types: { ...sharedTypes,
16
- ...mapXcmTypes('V0')
17
- }
16
+ types: objectSpread({}, sharedTypes, mapXcmTypes('V0'))
18
17
  }, {
19
18
  minmax: [4, 5],
20
- types: { ...sharedTypes,
21
- ...mapXcmTypes('V1')
22
- }
19
+ types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
23
20
  }, {
24
21
  // metadata V14
25
22
  minmax: [500, undefined],
26
- types: { ...sharedTypes
27
- }
23
+ types: objectSpread({}, sharedTypes)
28
24
  }];
29
25
  export default versioned;
package/spec/westend.cjs CHANGED
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _util = require("@polkadot/util");
9
+
8
10
  var _xcm = require("../xcm.cjs");
9
11
 
10
12
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
@@ -32,8 +34,7 @@ const addrAccountIdTypes = {
32
34
  };
33
35
  const versioned = [{
34
36
  minmax: [1, 2],
35
- types: { ...sharedTypes,
36
- ...addrAccountIdTypes,
37
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
37
38
  CompactAssignments: 'CompactAssignmentsTo257',
38
39
  DispatchInfo: 'DispatchInfoTo244',
39
40
  Heartbeat: 'HeartbeatTo244',
@@ -41,59 +42,49 @@ const versioned = [{
41
42
  OpenTip: 'OpenTipTo225',
42
43
  RefCount: 'RefCountTo259',
43
44
  Weight: 'u32'
44
- }
45
+ })
45
46
  }, {
46
47
  minmax: [3, 22],
47
- types: { ...sharedTypes,
48
- ...addrAccountIdTypes,
48
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
49
49
  CompactAssignments: 'CompactAssignmentsTo257',
50
50
  DispatchInfo: 'DispatchInfoTo244',
51
51
  Heartbeat: 'HeartbeatTo244',
52
52
  OpenTip: 'OpenTipTo225',
53
53
  RefCount: 'RefCountTo259'
54
- }
54
+ })
55
55
  }, {
56
56
  minmax: [23, 42],
57
- types: { ...sharedTypes,
58
- ...addrAccountIdTypes,
57
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
59
58
  CompactAssignments: 'CompactAssignmentsTo257',
60
59
  DispatchInfo: 'DispatchInfoTo244',
61
60
  Heartbeat: 'HeartbeatTo244',
62
61
  RefCount: 'RefCountTo259'
63
- }
62
+ })
64
63
  }, {
65
64
  minmax: [43, 44],
66
- types: { ...sharedTypes,
67
- ...addrAccountIdTypes,
65
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
68
66
  DispatchInfo: 'DispatchInfoTo244',
69
67
  Heartbeat: 'HeartbeatTo244',
70
68
  RefCount: 'RefCountTo259'
71
- }
69
+ })
72
70
  }, {
73
71
  minmax: [45, 47],
74
- types: { ...sharedTypes,
75
- ...addrAccountIdTypes
76
- }
72
+ types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
77
73
  }, {
78
74
  minmax: [48, 49],
79
- types: { ...sharedTypes,
75
+ types: (0, _util.objectSpread)({}, sharedTypes, {
80
76
  AccountInfo: 'AccountInfoWithDualRefCount'
81
- }
77
+ })
82
78
  }, {
83
79
  minmax: [50, 9099],
84
- types: { ...sharedTypes,
85
- ...(0, _xcm.mapXcmTypes)('V0')
86
- }
80
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V0'))
87
81
  }, {
88
82
  minmax: [9100, 9105],
89
- types: { ...sharedTypes,
90
- ...(0, _xcm.mapXcmTypes)('V1')
91
- }
83
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V1'))
92
84
  }, {
93
85
  // metadata v14
94
86
  minmax: [9106, undefined],
95
- types: { ...sharedTypes
96
- }
87
+ types: (0, _util.objectSpread)({}, sharedTypes)
97
88
  }];
98
89
  var _default = versioned;
99
90
  exports.default = _default;
package/spec/westend.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  /* eslint-disable sort-keys */
5
+ import { objectSpread } from '@polkadot/util';
5
6
  import { mapXcmTypes } from "../xcm.js";
6
7
  const sharedTypes = {
7
8
  // 16 validators
@@ -24,8 +25,7 @@ const addrAccountIdTypes = {
24
25
  };
25
26
  const versioned = [{
26
27
  minmax: [1, 2],
27
- types: { ...sharedTypes,
28
- ...addrAccountIdTypes,
28
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
29
29
  CompactAssignments: 'CompactAssignmentsTo257',
30
30
  DispatchInfo: 'DispatchInfoTo244',
31
31
  Heartbeat: 'HeartbeatTo244',
@@ -33,58 +33,48 @@ const versioned = [{
33
33
  OpenTip: 'OpenTipTo225',
34
34
  RefCount: 'RefCountTo259',
35
35
  Weight: 'u32'
36
- }
36
+ })
37
37
  }, {
38
38
  minmax: [3, 22],
39
- types: { ...sharedTypes,
40
- ...addrAccountIdTypes,
39
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
41
40
  CompactAssignments: 'CompactAssignmentsTo257',
42
41
  DispatchInfo: 'DispatchInfoTo244',
43
42
  Heartbeat: 'HeartbeatTo244',
44
43
  OpenTip: 'OpenTipTo225',
45
44
  RefCount: 'RefCountTo259'
46
- }
45
+ })
47
46
  }, {
48
47
  minmax: [23, 42],
49
- types: { ...sharedTypes,
50
- ...addrAccountIdTypes,
48
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
51
49
  CompactAssignments: 'CompactAssignmentsTo257',
52
50
  DispatchInfo: 'DispatchInfoTo244',
53
51
  Heartbeat: 'HeartbeatTo244',
54
52
  RefCount: 'RefCountTo259'
55
- }
53
+ })
56
54
  }, {
57
55
  minmax: [43, 44],
58
- types: { ...sharedTypes,
59
- ...addrAccountIdTypes,
56
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
60
57
  DispatchInfo: 'DispatchInfoTo244',
61
58
  Heartbeat: 'HeartbeatTo244',
62
59
  RefCount: 'RefCountTo259'
63
- }
60
+ })
64
61
  }, {
65
62
  minmax: [45, 47],
66
- types: { ...sharedTypes,
67
- ...addrAccountIdTypes
68
- }
63
+ types: objectSpread({}, sharedTypes, addrAccountIdTypes)
69
64
  }, {
70
65
  minmax: [48, 49],
71
- types: { ...sharedTypes,
66
+ types: objectSpread({}, sharedTypes, {
72
67
  AccountInfo: 'AccountInfoWithDualRefCount'
73
- }
68
+ })
74
69
  }, {
75
70
  minmax: [50, 9099],
76
- types: { ...sharedTypes,
77
- ...mapXcmTypes('V0')
78
- }
71
+ types: objectSpread({}, sharedTypes, mapXcmTypes('V0'))
79
72
  }, {
80
73
  minmax: [9100, 9105],
81
- types: { ...sharedTypes,
82
- ...mapXcmTypes('V1')
83
- }
74
+ types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
84
75
  }, {
85
76
  // metadata v14
86
77
  minmax: [9106, undefined],
87
- types: { ...sharedTypes
88
- }
78
+ types: objectSpread({}, sharedTypes)
89
79
  }];
90
80
  export default versioned;
package/xcm.cjs CHANGED
@@ -5,13 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.XCM_MAPPINGS = void 0;
7
7
  exports.mapXcmTypes = mapXcmTypes;
8
+
9
+ var _util = require("@polkadot/util");
10
+
8
11
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
9
12
  // SPDX-License-Identifier: Apache-2.0
10
13
  const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
11
14
  exports.XCM_MAPPINGS = XCM_MAPPINGS;
12
15
 
13
16
  function mapXcmTypes(version) {
14
- return XCM_MAPPINGS.reduce((all, key) => ({ ...all,
17
+ return XCM_MAPPINGS.reduce((all, key) => (0, _util.objectSpread)(all, {
15
18
  [key]: `${key}${version}`
16
19
  }), {});
17
20
  }
package/xcm.js CHANGED
@@ -1,8 +1,9 @@
1
1
  // Copyright 2017-2021 @polkadot/types-known authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+ import { objectSpread } from '@polkadot/util';
3
4
  export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
4
5
  export function mapXcmTypes(version) {
5
- return XCM_MAPPINGS.reduce((all, key) => ({ ...all,
6
+ return XCM_MAPPINGS.reduce((all, key) => objectSpread(all, {
6
7
  [key]: `${key}${version}`
7
8
  }), {});
8
9
  }