Skip to content

Commit

Permalink
refactor(blockmodel) update block model to include block type
Browse files Browse the repository at this point in the history
will-break-it committed Aug 8, 2024
1 parent e0aac02 commit 1d2acbd
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -492,6 +492,7 @@ export const mapBlock = (
: Cardano.SlotLeader(blockModel.slot_leader_hash.toString('hex')),
totalOutput: BigInt(blockOutputModel?.output ?? 0),
txCount: Number(blockModel.tx_count),
type: blockModel.type,
vrf: blockModel.vrf as unknown as Cardano.VrfVkBech32
});

Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ export interface BlockModel {
slot_no: string;
time: string;
tx_count: string;
type: Cardano.BlockType;
vrf: string;
}

0 comments on commit 1d2acbd

Please sign in to comment.