@polkadot/types-known 6.12.2-22 → 6.12.2-26
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 -4
- 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.d.ts +3 -0
- 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,13 +20,14 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "6.12.2-
|
|
23
|
+
"version": "6.12.2-26",
|
|
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-
|
|
29
|
-
"@polkadot/types-
|
|
28
|
+
"@polkadot/types": "6.12.2-26",
|
|
29
|
+
"@polkadot/types-codec": "6.12.2-26",
|
|
30
|
+
"@polkadot/types-create": "6.12.2-26",
|
|
30
31
|
"@polkadot/util": "^8.2.2"
|
|
31
32
|
},
|
|
32
33
|
"exports": {
|
|
@@ -38,19 +39,24 @@
|
|
|
38
39
|
"require": "./bundle.cjs",
|
|
39
40
|
"default": "./bundle.js"
|
|
40
41
|
},
|
|
42
|
+
"./bundle.d.ts": "./bundle.d.ts",
|
|
41
43
|
"./chain": {
|
|
42
44
|
"require": "./chain/index.cjs",
|
|
43
45
|
"default": "./chain/index.js"
|
|
44
46
|
},
|
|
47
|
+
"./chain/index.d.ts": "./chain/index.d.ts",
|
|
45
48
|
"./detectPackage": {
|
|
46
49
|
"require": "./detectPackage.cjs",
|
|
47
50
|
"default": "./detectPackage.js"
|
|
48
51
|
},
|
|
52
|
+
"./detectPackage.d.ts": "./detectPackage.d.ts",
|
|
53
|
+
"./index.d.ts": "./index.d.ts",
|
|
49
54
|
"./package.json": "./package.json",
|
|
50
55
|
"./packageInfo": {
|
|
51
56
|
"require": "./packageInfo.cjs",
|
|
52
57
|
"default": "./packageInfo.js"
|
|
53
58
|
},
|
|
59
|
+
"./packageInfo.d.ts": "./packageInfo.d.ts",
|
|
54
60
|
"./README.md": "./README.md",
|
|
55
61
|
"./spec": {
|
|
56
62
|
"require": "./spec/index.cjs",
|
|
@@ -60,10 +66,13 @@
|
|
|
60
66
|
"require": "./spec/centrifuge-chain.cjs",
|
|
61
67
|
"default": "./spec/centrifuge-chain.js"
|
|
62
68
|
},
|
|
69
|
+
"./spec/centrifuge-chain.d.ts": "./spec/centrifuge-chain.d.ts",
|
|
70
|
+
"./spec/index.d.ts": "./spec/index.d.ts",
|
|
63
71
|
"./spec/kusama": {
|
|
64
72
|
"require": "./spec/kusama.cjs",
|
|
65
73
|
"default": "./spec/kusama.js"
|
|
66
74
|
},
|
|
75
|
+
"./spec/kusama.d.ts": "./spec/kusama.d.ts",
|
|
67
76
|
"./spec/node": {
|
|
68
77
|
"require": "./spec/node.cjs",
|
|
69
78
|
"default": "./spec/node.js"
|
|
@@ -72,49 +81,62 @@
|
|
|
72
81
|
"require": "./spec/node-template.cjs",
|
|
73
82
|
"default": "./spec/node-template.js"
|
|
74
83
|
},
|
|
84
|
+
"./spec/node-template.d.ts": "./spec/node-template.d.ts",
|
|
85
|
+
"./spec/node.d.ts": "./spec/node.d.ts",
|
|
75
86
|
"./spec/polkadot": {
|
|
76
87
|
"require": "./spec/polkadot.cjs",
|
|
77
88
|
"default": "./spec/polkadot.js"
|
|
78
89
|
},
|
|
90
|
+
"./spec/polkadot.d.ts": "./spec/polkadot.d.ts",
|
|
79
91
|
"./spec/rococo": {
|
|
80
92
|
"require": "./spec/rococo.cjs",
|
|
81
93
|
"default": "./spec/rococo.js"
|
|
82
94
|
},
|
|
95
|
+
"./spec/rococo.d.ts": "./spec/rococo.d.ts",
|
|
83
96
|
"./spec/shell": {
|
|
84
97
|
"require": "./spec/shell.cjs",
|
|
85
98
|
"default": "./spec/shell.js"
|
|
86
99
|
},
|
|
100
|
+
"./spec/shell.d.ts": "./spec/shell.d.ts",
|
|
87
101
|
"./spec/statemint": {
|
|
88
102
|
"require": "./spec/statemint.cjs",
|
|
89
103
|
"default": "./spec/statemint.js"
|
|
90
104
|
},
|
|
105
|
+
"./spec/statemint.d.ts": "./spec/statemint.d.ts",
|
|
91
106
|
"./spec/westend": {
|
|
92
107
|
"require": "./spec/westend.cjs",
|
|
93
108
|
"default": "./spec/westend.js"
|
|
94
109
|
},
|
|
110
|
+
"./spec/westend.d.ts": "./spec/westend.d.ts",
|
|
95
111
|
"./upgrades": {
|
|
96
112
|
"require": "./upgrades/index.cjs",
|
|
97
113
|
"default": "./upgrades/index.js"
|
|
98
114
|
},
|
|
115
|
+
"./upgrades/index.d.ts": "./upgrades/index.d.ts",
|
|
99
116
|
"./upgrades/kusama": {
|
|
100
117
|
"require": "./upgrades/kusama.cjs",
|
|
101
118
|
"default": "./upgrades/kusama.js"
|
|
102
119
|
},
|
|
120
|
+
"./upgrades/kusama.d.ts": "./upgrades/kusama.d.ts",
|
|
103
121
|
"./upgrades/polkadot": {
|
|
104
122
|
"require": "./upgrades/polkadot.cjs",
|
|
105
123
|
"default": "./upgrades/polkadot.js"
|
|
106
124
|
},
|
|
125
|
+
"./upgrades/polkadot.d.ts": "./upgrades/polkadot.d.ts",
|
|
107
126
|
"./upgrades/types": {
|
|
108
127
|
"require": "./upgrades/types.cjs",
|
|
109
128
|
"default": "./upgrades/types.js"
|
|
110
129
|
},
|
|
130
|
+
"./upgrades/types.d.ts": "./upgrades/types.d.ts",
|
|
111
131
|
"./upgrades/westend": {
|
|
112
132
|
"require": "./upgrades/westend.cjs",
|
|
113
133
|
"default": "./upgrades/westend.js"
|
|
114
134
|
},
|
|
135
|
+
"./upgrades/westend.d.ts": "./upgrades/westend.d.ts",
|
|
115
136
|
"./util": {
|
|
116
137
|
"require": "./util.cjs",
|
|
117
138
|
"default": "./util.js"
|
|
118
|
-
}
|
|
139
|
+
},
|
|
140
|
+
"./util.d.ts": "./util.d.ts"
|
|
119
141
|
}
|
|
120
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
|
@@ -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];
|