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