@polkadot/types-known 6.12.2-21 → 6.12.2-25
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.d.ts +3 -0
- package/chain/index.d.ts +3 -0
- package/detectPackage.d.ts +1 -0
- package/index.d.ts +2 -0
- package/package.json +26 -3
- package/packageInfo.cjs +1 -1
- package/packageInfo.d.ts +4 -0
- package/packageInfo.js +1 -1
- package/spec/centrifuge-chain.d.ts +3 -0
- package/spec/index.d.ts +3 -0
- package/spec/kusama.d.ts +3 -0
- package/spec/node-template.d.ts +3 -0
- package/spec/node.d.ts +3 -0
- package/spec/polkadot.d.ts +3 -0
- package/spec/rococo.d.ts +3 -0
- package/spec/shell.d.ts +3 -0
- package/spec/statemint.d.ts +3 -0
- package/spec/westend.d.ts +3 -0
- package/upgrades/index.d.ts +3 -0
- package/upgrades/kusama.d.ts +3 -0
- package/upgrades/polkadot.cjs +1 -1
- package/upgrades/polkadot.d.ts +3 -0
- package/upgrades/polkadot.js +1 -1
- package/upgrades/types.d.ts +1 -0
- package/upgrades/westend.d.ts +3 -0
- package/util.d.ts +27 -0
package/bundle.d.ts
ADDED
package/chain/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -20,12 +20,14 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "6.12.2-
|
|
23
|
+
"version": "6.12.2-25",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
27
|
"@polkadot/networks": "^8.2.2",
|
|
28
|
-
"@polkadot/types": "6.12.2-
|
|
28
|
+
"@polkadot/types": "6.12.2-25",
|
|
29
|
+
"@polkadot/types-codec": "6.12.2-25",
|
|
30
|
+
"@polkadot/types-create": "6.12.2-25",
|
|
29
31
|
"@polkadot/util": "^8.2.2"
|
|
30
32
|
},
|
|
31
33
|
"exports": {
|
|
@@ -37,19 +39,24 @@
|
|
|
37
39
|
"require": "./bundle.cjs",
|
|
38
40
|
"default": "./bundle.js"
|
|
39
41
|
},
|
|
42
|
+
"./bundle.d.ts": "./bundle.d.ts",
|
|
40
43
|
"./chain": {
|
|
41
44
|
"require": "./chain/index.cjs",
|
|
42
45
|
"default": "./chain/index.js"
|
|
43
46
|
},
|
|
47
|
+
"./chain/index.d.ts": "./chain/index.d.ts",
|
|
44
48
|
"./detectPackage": {
|
|
45
49
|
"require": "./detectPackage.cjs",
|
|
46
50
|
"default": "./detectPackage.js"
|
|
47
51
|
},
|
|
52
|
+
"./detectPackage.d.ts": "./detectPackage.d.ts",
|
|
53
|
+
"./index.d.ts": "./index.d.ts",
|
|
48
54
|
"./package.json": "./package.json",
|
|
49
55
|
"./packageInfo": {
|
|
50
56
|
"require": "./packageInfo.cjs",
|
|
51
57
|
"default": "./packageInfo.js"
|
|
52
58
|
},
|
|
59
|
+
"./packageInfo.d.ts": "./packageInfo.d.ts",
|
|
53
60
|
"./README.md": "./README.md",
|
|
54
61
|
"./spec": {
|
|
55
62
|
"require": "./spec/index.cjs",
|
|
@@ -59,10 +66,13 @@
|
|
|
59
66
|
"require": "./spec/centrifuge-chain.cjs",
|
|
60
67
|
"default": "./spec/centrifuge-chain.js"
|
|
61
68
|
},
|
|
69
|
+
"./spec/centrifuge-chain.d.ts": "./spec/centrifuge-chain.d.ts",
|
|
70
|
+
"./spec/index.d.ts": "./spec/index.d.ts",
|
|
62
71
|
"./spec/kusama": {
|
|
63
72
|
"require": "./spec/kusama.cjs",
|
|
64
73
|
"default": "./spec/kusama.js"
|
|
65
74
|
},
|
|
75
|
+
"./spec/kusama.d.ts": "./spec/kusama.d.ts",
|
|
66
76
|
"./spec/node": {
|
|
67
77
|
"require": "./spec/node.cjs",
|
|
68
78
|
"default": "./spec/node.js"
|
|
@@ -71,49 +81,62 @@
|
|
|
71
81
|
"require": "./spec/node-template.cjs",
|
|
72
82
|
"default": "./spec/node-template.js"
|
|
73
83
|
},
|
|
84
|
+
"./spec/node-template.d.ts": "./spec/node-template.d.ts",
|
|
85
|
+
"./spec/node.d.ts": "./spec/node.d.ts",
|
|
74
86
|
"./spec/polkadot": {
|
|
75
87
|
"require": "./spec/polkadot.cjs",
|
|
76
88
|
"default": "./spec/polkadot.js"
|
|
77
89
|
},
|
|
90
|
+
"./spec/polkadot.d.ts": "./spec/polkadot.d.ts",
|
|
78
91
|
"./spec/rococo": {
|
|
79
92
|
"require": "./spec/rococo.cjs",
|
|
80
93
|
"default": "./spec/rococo.js"
|
|
81
94
|
},
|
|
95
|
+
"./spec/rococo.d.ts": "./spec/rococo.d.ts",
|
|
82
96
|
"./spec/shell": {
|
|
83
97
|
"require": "./spec/shell.cjs",
|
|
84
98
|
"default": "./spec/shell.js"
|
|
85
99
|
},
|
|
100
|
+
"./spec/shell.d.ts": "./spec/shell.d.ts",
|
|
86
101
|
"./spec/statemint": {
|
|
87
102
|
"require": "./spec/statemint.cjs",
|
|
88
103
|
"default": "./spec/statemint.js"
|
|
89
104
|
},
|
|
105
|
+
"./spec/statemint.d.ts": "./spec/statemint.d.ts",
|
|
90
106
|
"./spec/westend": {
|
|
91
107
|
"require": "./spec/westend.cjs",
|
|
92
108
|
"default": "./spec/westend.js"
|
|
93
109
|
},
|
|
110
|
+
"./spec/westend.d.ts": "./spec/westend.d.ts",
|
|
94
111
|
"./upgrades": {
|
|
95
112
|
"require": "./upgrades/index.cjs",
|
|
96
113
|
"default": "./upgrades/index.js"
|
|
97
114
|
},
|
|
115
|
+
"./upgrades/index.d.ts": "./upgrades/index.d.ts",
|
|
98
116
|
"./upgrades/kusama": {
|
|
99
117
|
"require": "./upgrades/kusama.cjs",
|
|
100
118
|
"default": "./upgrades/kusama.js"
|
|
101
119
|
},
|
|
120
|
+
"./upgrades/kusama.d.ts": "./upgrades/kusama.d.ts",
|
|
102
121
|
"./upgrades/polkadot": {
|
|
103
122
|
"require": "./upgrades/polkadot.cjs",
|
|
104
123
|
"default": "./upgrades/polkadot.js"
|
|
105
124
|
},
|
|
125
|
+
"./upgrades/polkadot.d.ts": "./upgrades/polkadot.d.ts",
|
|
106
126
|
"./upgrades/types": {
|
|
107
127
|
"require": "./upgrades/types.cjs",
|
|
108
128
|
"default": "./upgrades/types.js"
|
|
109
129
|
},
|
|
130
|
+
"./upgrades/types.d.ts": "./upgrades/types.d.ts",
|
|
110
131
|
"./upgrades/westend": {
|
|
111
132
|
"require": "./upgrades/westend.cjs",
|
|
112
133
|
"default": "./upgrades/westend.js"
|
|
113
134
|
},
|
|
135
|
+
"./upgrades/westend.d.ts": "./upgrades/westend.d.ts",
|
|
114
136
|
"./util": {
|
|
115
137
|
"require": "./util.cjs",
|
|
116
138
|
"default": "./util.js"
|
|
117
|
-
}
|
|
139
|
+
},
|
|
140
|
+
"./util.d.ts": "./util.d.ts"
|
|
118
141
|
}
|
|
119
142
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.d.ts
ADDED
package/packageInfo.js
CHANGED
package/spec/index.d.ts
ADDED
package/spec/kusama.d.ts
ADDED
package/spec/node.d.ts
ADDED
package/spec/rococo.d.ts
ADDED
package/spec/shell.d.ts
ADDED
package/upgrades/polkadot.cjs
CHANGED
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
-
const upgrades = [[0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7], [244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12], [528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17], [1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26], [3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050], [6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122]];
|
|
9
|
+
const upgrades = [[0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7], [244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12], [528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17], [1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26], [3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050], [6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122], [8115869, 9140]];
|
|
10
10
|
var _default = upgrades;
|
|
11
11
|
exports.default = _default;
|
package/upgrades/polkadot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
const upgrades = [[0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7], [244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12], [528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17], [1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26], [3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050], [6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122]];
|
|
3
|
+
const upgrades = [[0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7], [244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12], [528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17], [1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26], [3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050], [6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122], [8115869, 9140]];
|
|
4
4
|
export default upgrades;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ChainUpgradesRaw = [number, number][];
|
package/util.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="bn.js" />
|
|
2
|
+
import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types';
|
|
3
|
+
import type { Hash } from '@polkadot/types/interfaces';
|
|
4
|
+
import type { ChainUpgradeVersion, CodecHasher, DefinitionRpc, DefinitionRpcSub, OverrideModuleType, Registry, RegistryTypes } from '@polkadot/types/types';
|
|
5
|
+
import type { Text } from '@polkadot/types-codec';
|
|
6
|
+
import type { BN } from '@polkadot/util';
|
|
7
|
+
/**
|
|
8
|
+
* @description Based on the chain and runtimeVersion, get the applicable signed extensions (ready for registration)
|
|
9
|
+
*/
|
|
10
|
+
export declare function getSpecExtensions({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): ExtDef;
|
|
11
|
+
/**
|
|
12
|
+
* @description Based on the chain and runtimeVersion, get the applicable types (ready for registration)
|
|
13
|
+
*/
|
|
14
|
+
export declare function getSpecTypes({ knownTypes }: Registry, chainName: Text | string, specName: Text | string, specVersion: bigint | BN | number): RegistryTypes;
|
|
15
|
+
export declare function getSpecHasher({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): CodecHasher | null;
|
|
16
|
+
/**
|
|
17
|
+
* @description Based on the chain and runtimeVersion, get the applicable rpc definitions (ready for registration)
|
|
18
|
+
*/
|
|
19
|
+
export declare function getSpecRpc({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
|
|
20
|
+
/**
|
|
21
|
+
* @description Based on the chain and runtimeVersion, get the applicable alias definitions (ready for registration)
|
|
22
|
+
*/
|
|
23
|
+
export declare function getSpecAlias({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): Record<string, OverrideModuleType>;
|
|
24
|
+
/**
|
|
25
|
+
* @description Returns a version record for known chains where upgrades are being tracked
|
|
26
|
+
*/
|
|
27
|
+
export declare function getUpgradeVersion(genesisHash: Hash, blockNumber: BN): [ChainUpgradeVersion | undefined, ChainUpgradeVersion | undefined];
|