@polkadot/types-known 6.6.2-10 → 6.6.2-14
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 +26 -12
- package/bundle.js +24 -12
- package/package.json +4 -4
- 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/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,10 +47,8 @@ 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 */
|
|
@@ -68,7 +64,9 @@ function filterVersions() {
|
|
|
68
64
|
let {
|
|
69
65
|
types
|
|
70
66
|
} = _ref2;
|
|
71
|
-
return
|
|
67
|
+
return { ...result,
|
|
68
|
+
...types
|
|
69
|
+
};
|
|
72
70
|
}, {});
|
|
73
71
|
}
|
|
74
72
|
/**
|
|
@@ -82,7 +80,9 @@ function getModuleTypes(_ref3, section) {
|
|
|
82
80
|
let {
|
|
83
81
|
knownTypes
|
|
84
82
|
} = _ref3;
|
|
85
|
-
return
|
|
83
|
+
return { ...(_modules.default[section] || {}),
|
|
84
|
+
...(((_knownTypes$typesAlia = knownTypes.typesAlias) === null || _knownTypes$typesAlia === void 0 ? void 0 : _knownTypes$typesAlia[section]) || {})
|
|
85
|
+
};
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* @description Based on the chain and runtimeVersion, get the applicable signed extensions (ready for registration)
|
|
@@ -100,7 +100,9 @@ function getSpecExtensions(_ref4, chainName, specName) {
|
|
|
100
100
|
|
|
101
101
|
const _specName = specName.toString();
|
|
102
102
|
|
|
103
|
-
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
|
+
};
|
|
104
106
|
}
|
|
105
107
|
/**
|
|
106
108
|
* @description Based on the chain and runtimeVersion, get the applicable types (ready for registration)
|
|
@@ -124,7 +126,14 @@ function getSpecTypes(_ref5, chainName, specName, specVersion) {
|
|
|
124
126
|
// - types is the final catch-all override
|
|
125
127
|
|
|
126
128
|
|
|
127
|
-
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
|
+
};
|
|
128
137
|
}
|
|
129
138
|
|
|
130
139
|
function getSpecHasher(_ref6, chainName, specName) {
|
|
@@ -156,7 +165,9 @@ function getSpecRpc(_ref7, chainName, specName) {
|
|
|
156
165
|
|
|
157
166
|
const _specName = specName.toString();
|
|
158
167
|
|
|
159
|
-
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
|
+
};
|
|
160
171
|
}
|
|
161
172
|
/**
|
|
162
173
|
* @description Based on the chain and runtimeVersion, get the applicable alias definitions (ready for registration)
|
|
@@ -175,7 +186,10 @@ function getSpecAlias(_ref8, chainName, specName) {
|
|
|
175
186
|
const _specName = specName.toString(); // as per versions, first spec, then chain then finally non-versioned
|
|
176
187
|
|
|
177
188
|
|
|
178
|
-
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
|
+
};
|
|
179
193
|
}
|
|
180
194
|
/**
|
|
181
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-14",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.0",
|
|
27
|
-
"@polkadot/networks": "^7.7.
|
|
28
|
-
"@polkadot/types": "6.6.2-
|
|
29
|
-
"@polkadot/util": "^7.7.
|
|
27
|
+
"@polkadot/networks": "^7.7.2-5",
|
|
28
|
+
"@polkadot/types": "6.6.2-14",
|
|
29
|
+
"@polkadot/util": "^7.7.2-5"
|
|
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;
|
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;
|
package/spec/westend.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
|
|
|
@@ -30,7 +24,8 @@ const addrAccountIdTypes = {
|
|
|
30
24
|
};
|
|
31
25
|
const versioned = [{
|
|
32
26
|
minmax: [1, 2],
|
|
33
|
-
types:
|
|
27
|
+
types: { ...sharedTypes,
|
|
28
|
+
...addrAccountIdTypes,
|
|
34
29
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
35
30
|
DispatchInfo: 'DispatchInfoTo244',
|
|
36
31
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -38,48 +33,58 @@ const versioned = [{
|
|
|
38
33
|
OpenTip: 'OpenTipTo225',
|
|
39
34
|
RefCount: 'RefCountTo259',
|
|
40
35
|
Weight: 'u32'
|
|
41
|
-
}
|
|
36
|
+
}
|
|
42
37
|
}, {
|
|
43
38
|
minmax: [3, 22],
|
|
44
|
-
types:
|
|
39
|
+
types: { ...sharedTypes,
|
|
40
|
+
...addrAccountIdTypes,
|
|
45
41
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
46
42
|
DispatchInfo: 'DispatchInfoTo244',
|
|
47
43
|
Heartbeat: 'HeartbeatTo244',
|
|
48
44
|
OpenTip: 'OpenTipTo225',
|
|
49
45
|
RefCount: 'RefCountTo259'
|
|
50
|
-
}
|
|
46
|
+
}
|
|
51
47
|
}, {
|
|
52
48
|
minmax: [23, 42],
|
|
53
|
-
types:
|
|
49
|
+
types: { ...sharedTypes,
|
|
50
|
+
...addrAccountIdTypes,
|
|
54
51
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
55
52
|
DispatchInfo: 'DispatchInfoTo244',
|
|
56
53
|
Heartbeat: 'HeartbeatTo244',
|
|
57
54
|
RefCount: 'RefCountTo259'
|
|
58
|
-
}
|
|
55
|
+
}
|
|
59
56
|
}, {
|
|
60
57
|
minmax: [43, 44],
|
|
61
|
-
types:
|
|
58
|
+
types: { ...sharedTypes,
|
|
59
|
+
...addrAccountIdTypes,
|
|
62
60
|
DispatchInfo: 'DispatchInfoTo244',
|
|
63
61
|
Heartbeat: 'HeartbeatTo244',
|
|
64
62
|
RefCount: 'RefCountTo259'
|
|
65
|
-
}
|
|
63
|
+
}
|
|
66
64
|
}, {
|
|
67
65
|
minmax: [45, 47],
|
|
68
|
-
types:
|
|
66
|
+
types: { ...sharedTypes,
|
|
67
|
+
...addrAccountIdTypes
|
|
68
|
+
}
|
|
69
69
|
}, {
|
|
70
70
|
minmax: [48, 49],
|
|
71
|
-
types:
|
|
71
|
+
types: { ...sharedTypes,
|
|
72
72
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
73
|
-
}
|
|
73
|
+
}
|
|
74
74
|
}, {
|
|
75
75
|
minmax: [50, 9099],
|
|
76
|
-
types:
|
|
76
|
+
types: { ...sharedTypes,
|
|
77
|
+
...mapXcmTypes('V0')
|
|
78
|
+
}
|
|
77
79
|
}, {
|
|
78
80
|
minmax: [9100, 9105],
|
|
79
|
-
types:
|
|
81
|
+
types: { ...sharedTypes,
|
|
82
|
+
...mapXcmTypes('V1')
|
|
83
|
+
}
|
|
80
84
|
}, {
|
|
81
85
|
// metadata v14
|
|
82
86
|
minmax: [9106, undefined],
|
|
83
|
-
types:
|
|
87
|
+
types: { ...sharedTypes
|
|
88
|
+
}
|
|
84
89
|
}];
|
|
85
90
|
export default versioned;
|
package/xcm.cjs
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
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.XCM_MAPPINGS = void 0;
|
|
9
7
|
exports.mapXcmTypes = mapXcmTypes;
|
|
10
|
-
|
|
11
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
|
|
13
|
-
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; }
|
|
14
|
-
|
|
15
|
-
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; }
|
|
16
|
-
|
|
17
8
|
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
18
9
|
// SPDX-License-Identifier: Apache-2.0
|
|
19
10
|
const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
|
|
20
11
|
exports.XCM_MAPPINGS = XCM_MAPPINGS;
|
|
21
12
|
|
|
22
13
|
function mapXcmTypes(version) {
|
|
23
|
-
return XCM_MAPPINGS.reduce((all, key) =>
|
|
14
|
+
return XCM_MAPPINGS.reduce((all, key) => ({ ...all,
|
|
24
15
|
[key]: `${key}${version}`
|
|
25
16
|
}), {});
|
|
26
17
|
}
|
package/xcm.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
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
|
export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
|
|
10
4
|
export function mapXcmTypes(version) {
|
|
11
|
-
return XCM_MAPPINGS.reduce((all, key) =>
|
|
5
|
+
return XCM_MAPPINGS.reduce((all, key) => ({ ...all,
|
|
12
6
|
[key]: `${key}${version}`
|
|
13
7
|
}), {});
|
|
14
8
|
}
|