@autonomys/auto-consensus 1.4.3 → 1.4.4
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/dist/types/block.d.ts +3 -42
- package/dist/types/block.d.ts.map +1 -1
- package/dist/types/block.js +13 -0
- package/package.json +3 -3
package/dist/types/block.d.ts
CHANGED
|
@@ -1,45 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Block, Header } from '@autonomys/auto-utils';
|
|
2
2
|
export type RawBlock = {
|
|
3
|
-
block:
|
|
4
|
-
header: {
|
|
5
|
-
parentHash: string;
|
|
6
|
-
number: BN;
|
|
7
|
-
stateRoot: string;
|
|
8
|
-
extrinsicsRoot: string;
|
|
9
|
-
digest: {
|
|
10
|
-
logs: string[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
extrinsics: Codec[];
|
|
14
|
-
};
|
|
3
|
+
block: Block;
|
|
15
4
|
};
|
|
16
|
-
type
|
|
17
|
-
preRuntime?: string[];
|
|
18
|
-
consensus?: string[];
|
|
19
|
-
other?: string;
|
|
20
|
-
seal?: string[];
|
|
21
|
-
};
|
|
22
|
-
export type RawBlockHeader = {
|
|
23
|
-
parentHash: string;
|
|
24
|
-
number: number;
|
|
25
|
-
stateRoot: string;
|
|
26
|
-
extrinsicsRoot: string;
|
|
27
|
-
digest: {
|
|
28
|
-
logs: DigestLog[];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export type Block = {
|
|
32
|
-
block: {
|
|
33
|
-
header: {
|
|
34
|
-
parentHash: string;
|
|
35
|
-
number: number;
|
|
36
|
-
stateRoot: string;
|
|
37
|
-
extrinsicsRoot: string;
|
|
38
|
-
digest: {
|
|
39
|
-
logs: string[];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export {};
|
|
5
|
+
export type RawBlockHeader = Header;
|
|
45
6
|
//# sourceMappingURL=block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../src/types/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../src/types/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAqB,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAE7E,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAID,MAAM,MAAM,cAAc,GAAG,MAAM,CAAA"}
|
package/dist/types/block.js
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// export type Block = {
|
|
4
|
+
// block: {
|
|
5
|
+
// header: {
|
|
6
|
+
// parentHash: string
|
|
7
|
+
// number: number
|
|
8
|
+
// stateRoot: string
|
|
9
|
+
// extrinsicsRoot: string
|
|
10
|
+
// digest: {
|
|
11
|
+
// logs: string[]
|
|
12
|
+
// }
|
|
13
|
+
// }
|
|
14
|
+
// }
|
|
15
|
+
// }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autonomys/auto-consensus",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"README.md"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@autonomys/auto-utils": "^1.4.
|
|
28
|
+
"@autonomys/auto-utils": "^1.4.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/jest": "^29.5.14",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"ts-jest": "^29.2.6",
|
|
36
36
|
"typescript": "^5.4.5"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "93f124f601a292d88221a164b393819586dcb01b"
|
|
39
39
|
}
|