Decode JSON justifications for blocks (#137)

This commit is contained in:
Jaco Greeff
2018-08-16 21:44:03 +02:00
committed by GitHub
parent ae6b8ee4d5
commit 4594989fc7
4 changed files with 40 additions and 6 deletions
+10 -1
View File
@@ -33,10 +33,19 @@ export type BlockExtrinsicDecoded = {
signature: Uint8Array
}
export type BlockJustificationDecoded = {
hash: Uint8Array,
round: BN,
signatures: Array<{
address: string,
signature: Uint8Array
}>
}
export type BlockDecoded = {
header: Header,
extrinsics: Array<BlockExtrinsicDecoded>,
justification: any
justification: BlockJustificationDecoded
};
export type KeyValue = {