diff --git a/src/types.ts b/src/types.ts index 53eeb92..8b87857 100644 --- a/src/types.ts +++ b/src/types.ts @@ -122,17 +122,22 @@ export interface SmartContract { // Block Types export interface BlockProof { - scheme: string; proof: string; + scheme?: string; // absent on trust-scheme chains; present on PoW nonce?: number; } +export interface BlockHeader { + blockId: string; + dcId: string; + prevId: string; + prevProof: string; + timestamp: string; +} + export interface Block { version: string; - block_id: string; - timestamp: string; - prev_id: string; - prev_proof: string; + header: BlockHeader; transactions: string[]; proof: BlockProof; }