fix indexer service types

This commit is contained in:
Sergio Chouhy 2026-01-29 09:51:11 -03:00
parent d6df9a7796
commit fb1221d985
2 changed files with 6 additions and 0 deletions

View File

@ -599,12 +599,14 @@ impl TryFrom<common::block::Block> for Block {
header,
body,
bedrock_status,
bedrock_parent_id,
} = value;
Ok(Self {
header: header.into(),
body: body.try_into()?,
bedrock_status: bedrock_status.into(),
bedrock_parent_id: bedrock_parent_id.into(),
})
}
}
@ -617,12 +619,14 @@ impl TryFrom<Block> for common::block::Block {
header,
body,
bedrock_status,
bedrock_parent_id,
} = value;
Ok(Self {
header: header.try_into()?,
body: body.try_into()?,
bedrock_status: bedrock_status.into(),
bedrock_parent_id: bedrock_parent_id.into(),
})
}
}

View File

@ -30,12 +30,14 @@ pub struct Account {
pub type BlockId = u64;
pub type TimeStamp = u64;
pub type MsgId = [u8; 32];
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize, JsonSchema)]
pub struct Block {
pub header: BlockHeader,
pub body: BlockBody,
pub bedrock_status: BedrockStatus,
pub bedrock_parent_id: MsgId,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize, JsonSchema)]