@polkadot/types-known 6.6.1 → 6.6.2-11
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/spec/kusama.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
|
|
|
@@ -38,7 +32,7 @@ const addrAccountIdTypes = {
|
|
|
38
32
|
const versioned = [{
|
|
39
33
|
// 1020 is first CC3
|
|
40
34
|
minmax: [1019, 1031],
|
|
41
|
-
types:
|
|
35
|
+
types: { ...addrIndicesTypes,
|
|
42
36
|
BalanceLock: 'BalanceLockTo212',
|
|
43
37
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
44
38
|
DispatchError: 'DispatchErrorTo198',
|
|
@@ -54,10 +48,10 @@ const versioned = [{
|
|
|
54
48
|
StakingLedger: 'StakingLedgerTo223',
|
|
55
49
|
Votes: 'VotesTo230',
|
|
56
50
|
Weight: 'u32'
|
|
57
|
-
}
|
|
51
|
+
}
|
|
58
52
|
}, {
|
|
59
53
|
minmax: [1032, 1042],
|
|
60
|
-
types:
|
|
54
|
+
types: { ...addrIndicesTypes,
|
|
61
55
|
BalanceLock: 'BalanceLockTo212',
|
|
62
56
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
63
57
|
DispatchInfo: 'DispatchInfoTo244',
|
|
@@ -71,11 +65,11 @@ const versioned = [{
|
|
|
71
65
|
StakingLedger: 'StakingLedgerTo223',
|
|
72
66
|
Votes: 'VotesTo230',
|
|
73
67
|
Weight: 'u32'
|
|
74
|
-
}
|
|
68
|
+
}
|
|
75
69
|
}, {
|
|
76
70
|
// actual at 1045 (1043-1044 is dev)
|
|
77
71
|
minmax: [1043, 1045],
|
|
78
|
-
types:
|
|
72
|
+
types: { ...addrIndicesTypes,
|
|
79
73
|
BalanceLock: 'BalanceLockTo212',
|
|
80
74
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
81
75
|
DispatchInfo: 'DispatchInfoTo244',
|
|
@@ -88,10 +82,12 @@ const versioned = [{
|
|
|
88
82
|
StakingLedger: 'StakingLedgerTo223',
|
|
89
83
|
Votes: 'VotesTo230',
|
|
90
84
|
Weight: 'u32'
|
|
91
|
-
}
|
|
85
|
+
}
|
|
92
86
|
}, {
|
|
93
87
|
minmax: [1046, 1054],
|
|
94
|
-
types:
|
|
88
|
+
types: { // Indices optional, not in transaction
|
|
89
|
+
...sharedTypes,
|
|
90
|
+
...addrAccountIdTypes,
|
|
95
91
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
96
92
|
DispatchInfo: 'DispatchInfoTo244',
|
|
97
93
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -101,10 +97,11 @@ const versioned = [{
|
|
|
101
97
|
ReferendumInfo: 'ReferendumInfoTo239',
|
|
102
98
|
StakingLedger: 'StakingLedgerTo240',
|
|
103
99
|
Weight: 'u32'
|
|
104
|
-
}
|
|
100
|
+
}
|
|
105
101
|
}, {
|
|
106
102
|
minmax: [1055, 1056],
|
|
107
|
-
types:
|
|
103
|
+
types: { ...sharedTypes,
|
|
104
|
+
...addrAccountIdTypes,
|
|
108
105
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
109
106
|
DispatchInfo: 'DispatchInfoTo244',
|
|
110
107
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -113,60 +110,71 @@ const versioned = [{
|
|
|
113
110
|
RefCount: 'RefCountTo259',
|
|
114
111
|
StakingLedger: 'StakingLedgerTo240',
|
|
115
112
|
Weight: 'u32'
|
|
116
|
-
}
|
|
113
|
+
}
|
|
117
114
|
}, {
|
|
118
115
|
minmax: [1057, 1061],
|
|
119
|
-
types:
|
|
116
|
+
types: { ...sharedTypes,
|
|
117
|
+
...addrAccountIdTypes,
|
|
120
118
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
121
119
|
DispatchInfo: 'DispatchInfoTo244',
|
|
122
120
|
Heartbeat: 'HeartbeatTo244',
|
|
123
121
|
OpenTip: 'OpenTipTo225',
|
|
124
122
|
RefCount: 'RefCountTo259'
|
|
125
|
-
}
|
|
123
|
+
}
|
|
126
124
|
}, {
|
|
127
125
|
minmax: [1062, 2012],
|
|
128
|
-
types:
|
|
126
|
+
types: { ...sharedTypes,
|
|
127
|
+
...addrAccountIdTypes,
|
|
129
128
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
130
129
|
OpenTip: 'OpenTipTo225',
|
|
131
130
|
RefCount: 'RefCountTo259'
|
|
132
|
-
}
|
|
131
|
+
}
|
|
133
132
|
}, {
|
|
134
133
|
minmax: [2013, 2022],
|
|
135
|
-
types:
|
|
134
|
+
types: { ...sharedTypes,
|
|
135
|
+
...addrAccountIdTypes,
|
|
136
136
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
137
137
|
RefCount: 'RefCountTo259'
|
|
138
|
-
}
|
|
138
|
+
}
|
|
139
139
|
}, {
|
|
140
140
|
minmax: [2023, 2024],
|
|
141
|
-
types:
|
|
141
|
+
types: { ...sharedTypes,
|
|
142
|
+
...addrAccountIdTypes,
|
|
142
143
|
RefCount: 'RefCountTo259'
|
|
143
|
-
}
|
|
144
|
+
}
|
|
144
145
|
}, {
|
|
145
146
|
minmax: [2025, 2027],
|
|
146
|
-
types:
|
|
147
|
+
types: { ...sharedTypes,
|
|
148
|
+
...addrAccountIdTypes
|
|
149
|
+
}
|
|
147
150
|
}, {
|
|
148
151
|
minmax: [2028, 2029],
|
|
149
|
-
types:
|
|
152
|
+
types: { ...sharedTypes,
|
|
150
153
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
151
154
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
152
155
|
RawSolution: 'RawSolutionWith16'
|
|
153
|
-
}
|
|
156
|
+
}
|
|
154
157
|
}, {
|
|
155
158
|
minmax: [2030, 9000],
|
|
156
|
-
types:
|
|
159
|
+
types: { ...sharedTypes,
|
|
157
160
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
158
161
|
RawSolution: 'RawSolutionWith16'
|
|
159
|
-
}
|
|
162
|
+
}
|
|
160
163
|
}, {
|
|
161
164
|
minmax: [9010, 9099],
|
|
162
|
-
types:
|
|
165
|
+
types: { ...sharedTypes,
|
|
166
|
+
...mapXcmTypes('V0')
|
|
167
|
+
}
|
|
163
168
|
}, {
|
|
164
169
|
// jump from 9100 to 9110, however align with Rococo
|
|
165
170
|
minmax: [9100, 9105],
|
|
166
|
-
types:
|
|
171
|
+
types: { ...sharedTypes,
|
|
172
|
+
...mapXcmTypes('V1')
|
|
173
|
+
}
|
|
167
174
|
}, {
|
|
168
175
|
// metadata v14
|
|
169
176
|
minmax: [9106, undefined],
|
|
170
|
-
types:
|
|
177
|
+
types: { ...sharedTypes
|
|
178
|
+
}
|
|
171
179
|
}];
|
|
172
180
|
export default versioned;
|
package/spec/polkadot.cjs
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
|
|
|
@@ -44,37 +35,44 @@ const addrAccountIdTypes = {
|
|
|
44
35
|
|
|
45
36
|
const versioned = [{
|
|
46
37
|
minmax: [0, 12],
|
|
47
|
-
types:
|
|
38
|
+
types: { ...sharedTypes,
|
|
39
|
+
...addrAccountIdTypes,
|
|
48
40
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
49
41
|
OpenTip: 'OpenTipTo225',
|
|
50
42
|
RefCount: 'RefCountTo259'
|
|
51
|
-
}
|
|
43
|
+
}
|
|
52
44
|
}, {
|
|
53
45
|
minmax: [13, 22],
|
|
54
|
-
types:
|
|
46
|
+
types: { ...sharedTypes,
|
|
47
|
+
...addrAccountIdTypes,
|
|
55
48
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
56
49
|
RefCount: 'RefCountTo259'
|
|
57
|
-
}
|
|
50
|
+
}
|
|
58
51
|
}, {
|
|
59
52
|
minmax: [23, 24],
|
|
60
|
-
types:
|
|
53
|
+
types: { ...sharedTypes,
|
|
54
|
+
...addrAccountIdTypes,
|
|
61
55
|
RefCount: 'RefCountTo259'
|
|
62
|
-
}
|
|
56
|
+
}
|
|
63
57
|
}, {
|
|
64
58
|
minmax: [25, 27],
|
|
65
|
-
types:
|
|
59
|
+
types: { ...sharedTypes,
|
|
60
|
+
...addrAccountIdTypes
|
|
61
|
+
}
|
|
66
62
|
}, {
|
|
67
63
|
minmax: [28, 29],
|
|
68
|
-
types:
|
|
64
|
+
types: { ...sharedTypes,
|
|
69
65
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
70
|
-
}
|
|
66
|
+
}
|
|
71
67
|
}, {
|
|
72
68
|
minmax: [30, 9109],
|
|
73
|
-
types:
|
|
69
|
+
types: { ...sharedTypes
|
|
70
|
+
}
|
|
74
71
|
}, {
|
|
75
72
|
// metadata v14
|
|
76
73
|
minmax: [9110, undefined],
|
|
77
|
-
types:
|
|
74
|
+
types: { ...sharedTypes
|
|
75
|
+
}
|
|
78
76
|
}];
|
|
79
77
|
var _default = versioned;
|
|
80
78
|
exports.default = _default;
|
package/spec/polkadot.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
|
|
|
@@ -35,36 +29,43 @@ const addrAccountIdTypes = {
|
|
|
35
29
|
|
|
36
30
|
const versioned = [{
|
|
37
31
|
minmax: [0, 12],
|
|
38
|
-
types:
|
|
32
|
+
types: { ...sharedTypes,
|
|
33
|
+
...addrAccountIdTypes,
|
|
39
34
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
40
35
|
OpenTip: 'OpenTipTo225',
|
|
41
36
|
RefCount: 'RefCountTo259'
|
|
42
|
-
}
|
|
37
|
+
}
|
|
43
38
|
}, {
|
|
44
39
|
minmax: [13, 22],
|
|
45
|
-
types:
|
|
40
|
+
types: { ...sharedTypes,
|
|
41
|
+
...addrAccountIdTypes,
|
|
46
42
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
47
43
|
RefCount: 'RefCountTo259'
|
|
48
|
-
}
|
|
44
|
+
}
|
|
49
45
|
}, {
|
|
50
46
|
minmax: [23, 24],
|
|
51
|
-
types:
|
|
47
|
+
types: { ...sharedTypes,
|
|
48
|
+
...addrAccountIdTypes,
|
|
52
49
|
RefCount: 'RefCountTo259'
|
|
53
|
-
}
|
|
50
|
+
}
|
|
54
51
|
}, {
|
|
55
52
|
minmax: [25, 27],
|
|
56
|
-
types:
|
|
53
|
+
types: { ...sharedTypes,
|
|
54
|
+
...addrAccountIdTypes
|
|
55
|
+
}
|
|
57
56
|
}, {
|
|
58
57
|
minmax: [28, 29],
|
|
59
|
-
types:
|
|
58
|
+
types: { ...sharedTypes,
|
|
60
59
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
61
|
-
}
|
|
60
|
+
}
|
|
62
61
|
}, {
|
|
63
62
|
minmax: [30, 9109],
|
|
64
|
-
types:
|
|
63
|
+
types: { ...sharedTypes
|
|
64
|
+
}
|
|
65
65
|
}, {
|
|
66
66
|
// metadata v14
|
|
67
67
|
minmax: [9110, undefined],
|
|
68
|
-
types:
|
|
68
|
+
types: { ...sharedTypes
|
|
69
|
+
}
|
|
69
70
|
}];
|
|
70
71
|
export default versioned;
|
package/spec/rococo.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
|
// structs need to be in order
|
|
19
15
|
|
|
20
16
|
/* eslint-disable sort-keys */
|
|
@@ -25,31 +21,36 @@ const sharedTypes = {
|
|
|
25
21
|
};
|
|
26
22
|
const versioned = [{
|
|
27
23
|
minmax: [0, 200],
|
|
28
|
-
types:
|
|
24
|
+
types: { ...sharedTypes,
|
|
29
25
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
30
26
|
Address: 'AccountId',
|
|
31
27
|
LookupSource: 'AccountId'
|
|
32
|
-
}
|
|
28
|
+
}
|
|
33
29
|
}, {
|
|
34
30
|
minmax: [201, 214],
|
|
35
|
-
types:
|
|
31
|
+
types: { ...sharedTypes,
|
|
36
32
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
37
|
-
}
|
|
33
|
+
}
|
|
38
34
|
}, {
|
|
39
35
|
minmax: [215, 228],
|
|
40
|
-
types:
|
|
36
|
+
types: { ...sharedTypes,
|
|
41
37
|
Keys: 'SessionKeys6'
|
|
42
|
-
}
|
|
38
|
+
}
|
|
43
39
|
}, {
|
|
44
40
|
minmax: [229, 9099],
|
|
45
|
-
types:
|
|
41
|
+
types: { ...sharedTypes,
|
|
42
|
+
...(0, _xcm.mapXcmTypes)('V0')
|
|
43
|
+
}
|
|
46
44
|
}, {
|
|
47
45
|
minmax: [9100, 9105],
|
|
48
|
-
types:
|
|
46
|
+
types: { ...sharedTypes,
|
|
47
|
+
...(0, _xcm.mapXcmTypes)('V1')
|
|
48
|
+
}
|
|
49
49
|
}, {
|
|
50
50
|
// metadata v14
|
|
51
51
|
minmax: [9106, undefined],
|
|
52
|
-
types:
|
|
52
|
+
types: { ...sharedTypes
|
|
53
|
+
}
|
|
53
54
|
}];
|
|
54
55
|
var _default = versioned;
|
|
55
56
|
exports.default = _default;
|
package/spec/rococo.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
|
|
|
@@ -19,30 +13,35 @@ const sharedTypes = {
|
|
|
19
13
|
};
|
|
20
14
|
const versioned = [{
|
|
21
15
|
minmax: [0, 200],
|
|
22
|
-
types:
|
|
16
|
+
types: { ...sharedTypes,
|
|
23
17
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
24
18
|
Address: 'AccountId',
|
|
25
19
|
LookupSource: 'AccountId'
|
|
26
|
-
}
|
|
20
|
+
}
|
|
27
21
|
}, {
|
|
28
22
|
minmax: [201, 214],
|
|
29
|
-
types:
|
|
23
|
+
types: { ...sharedTypes,
|
|
30
24
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
31
|
-
}
|
|
25
|
+
}
|
|
32
26
|
}, {
|
|
33
27
|
minmax: [215, 228],
|
|
34
|
-
types:
|
|
28
|
+
types: { ...sharedTypes,
|
|
35
29
|
Keys: 'SessionKeys6'
|
|
36
|
-
}
|
|
30
|
+
}
|
|
37
31
|
}, {
|
|
38
32
|
minmax: [229, 9099],
|
|
39
|
-
types:
|
|
33
|
+
types: { ...sharedTypes,
|
|
34
|
+
...mapXcmTypes('V0')
|
|
35
|
+
}
|
|
40
36
|
}, {
|
|
41
37
|
minmax: [9100, 9105],
|
|
42
|
-
types:
|
|
38
|
+
types: { ...sharedTypes,
|
|
39
|
+
...mapXcmTypes('V1')
|
|
40
|
+
}
|
|
43
41
|
}, {
|
|
44
42
|
// metadata v14
|
|
45
43
|
minmax: [9106, undefined],
|
|
46
|
-
types:
|
|
44
|
+
types: { ...sharedTypes
|
|
45
|
+
}
|
|
47
46
|
}];
|
|
48
47
|
export default versioned;
|
package/spec/statemint.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
|
TAssetBalance: 'u128',
|
|
20
16
|
ProxyType: {
|
|
@@ -24,14 +20,19 @@ const sharedTypes = {
|
|
|
24
20
|
|
|
25
21
|
const versioned = [{
|
|
26
22
|
minmax: [0, 3],
|
|
27
|
-
types:
|
|
23
|
+
types: { ...sharedTypes,
|
|
24
|
+
...(0, _xcm.mapXcmTypes)('V0')
|
|
25
|
+
}
|
|
28
26
|
}, {
|
|
29
27
|
minmax: [4, 5],
|
|
30
|
-
types:
|
|
28
|
+
types: { ...sharedTypes,
|
|
29
|
+
...(0, _xcm.mapXcmTypes)('V1')
|
|
30
|
+
}
|
|
31
31
|
}, {
|
|
32
32
|
// metadata V14
|
|
33
33
|
minmax: [500, undefined],
|
|
34
|
-
types:
|
|
34
|
+
types: { ...sharedTypes
|
|
35
|
+
}
|
|
35
36
|
}];
|
|
36
37
|
var _default = versioned;
|
|
37
38
|
exports.default = _default;
|
package/spec/statemint.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
|
|
|
@@ -18,13 +12,18 @@ const sharedTypes = {
|
|
|
18
12
|
|
|
19
13
|
const versioned = [{
|
|
20
14
|
minmax: [0, 3],
|
|
21
|
-
types:
|
|
15
|
+
types: { ...sharedTypes,
|
|
16
|
+
...mapXcmTypes('V0')
|
|
17
|
+
}
|
|
22
18
|
}, {
|
|
23
19
|
minmax: [4, 5],
|
|
24
|
-
types:
|
|
20
|
+
types: { ...sharedTypes,
|
|
21
|
+
...mapXcmTypes('V1')
|
|
22
|
+
}
|
|
25
23
|
}, {
|
|
26
24
|
// metadata V14
|
|
27
25
|
minmax: [500, undefined],
|
|
28
|
-
types:
|
|
26
|
+
types: { ...sharedTypes
|
|
27
|
+
}
|
|
29
28
|
}];
|
|
30
29
|
export default versioned;
|
package/spec/westend.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
|
// 16 validators
|
|
20
16
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
@@ -36,7 +32,8 @@ const addrAccountIdTypes = {
|
|
|
36
32
|
};
|
|
37
33
|
const versioned = [{
|
|
38
34
|
minmax: [1, 2],
|
|
39
|
-
types:
|
|
35
|
+
types: { ...sharedTypes,
|
|
36
|
+
...addrAccountIdTypes,
|
|
40
37
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
41
38
|
DispatchInfo: 'DispatchInfoTo244',
|
|
42
39
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -44,49 +41,59 @@ const versioned = [{
|
|
|
44
41
|
OpenTip: 'OpenTipTo225',
|
|
45
42
|
RefCount: 'RefCountTo259',
|
|
46
43
|
Weight: 'u32'
|
|
47
|
-
}
|
|
44
|
+
}
|
|
48
45
|
}, {
|
|
49
46
|
minmax: [3, 22],
|
|
50
|
-
types:
|
|
47
|
+
types: { ...sharedTypes,
|
|
48
|
+
...addrAccountIdTypes,
|
|
51
49
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
52
50
|
DispatchInfo: 'DispatchInfoTo244',
|
|
53
51
|
Heartbeat: 'HeartbeatTo244',
|
|
54
52
|
OpenTip: 'OpenTipTo225',
|
|
55
53
|
RefCount: 'RefCountTo259'
|
|
56
|
-
}
|
|
54
|
+
}
|
|
57
55
|
}, {
|
|
58
56
|
minmax: [23, 42],
|
|
59
|
-
types:
|
|
57
|
+
types: { ...sharedTypes,
|
|
58
|
+
...addrAccountIdTypes,
|
|
60
59
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
61
60
|
DispatchInfo: 'DispatchInfoTo244',
|
|
62
61
|
Heartbeat: 'HeartbeatTo244',
|
|
63
62
|
RefCount: 'RefCountTo259'
|
|
64
|
-
}
|
|
63
|
+
}
|
|
65
64
|
}, {
|
|
66
65
|
minmax: [43, 44],
|
|
67
|
-
types:
|
|
66
|
+
types: { ...sharedTypes,
|
|
67
|
+
...addrAccountIdTypes,
|
|
68
68
|
DispatchInfo: 'DispatchInfoTo244',
|
|
69
69
|
Heartbeat: 'HeartbeatTo244',
|
|
70
70
|
RefCount: 'RefCountTo259'
|
|
71
|
-
}
|
|
71
|
+
}
|
|
72
72
|
}, {
|
|
73
73
|
minmax: [45, 47],
|
|
74
|
-
types:
|
|
74
|
+
types: { ...sharedTypes,
|
|
75
|
+
...addrAccountIdTypes
|
|
76
|
+
}
|
|
75
77
|
}, {
|
|
76
78
|
minmax: [48, 49],
|
|
77
|
-
types:
|
|
79
|
+
types: { ...sharedTypes,
|
|
78
80
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
79
|
-
}
|
|
81
|
+
}
|
|
80
82
|
}, {
|
|
81
83
|
minmax: [50, 9099],
|
|
82
|
-
types:
|
|
84
|
+
types: { ...sharedTypes,
|
|
85
|
+
...(0, _xcm.mapXcmTypes)('V0')
|
|
86
|
+
}
|
|
83
87
|
}, {
|
|
84
88
|
minmax: [9100, 9105],
|
|
85
|
-
types:
|
|
89
|
+
types: { ...sharedTypes,
|
|
90
|
+
...(0, _xcm.mapXcmTypes)('V1')
|
|
91
|
+
}
|
|
86
92
|
}, {
|
|
87
93
|
// metadata v14
|
|
88
94
|
minmax: [9106, undefined],
|
|
89
|
-
types:
|
|
95
|
+
types: { ...sharedTypes
|
|
96
|
+
}
|
|
90
97
|
}];
|
|
91
98
|
var _default = versioned;
|
|
92
99
|
exports.default = _default;
|