use crate::ByteString;
pub struct BlockMessage {
pub block_hash: Vec<u8>,
pub header: Header,
pub body: Body,
pub justifications: Vec<Justification>,
pub sender: Vec<u8>,
pub seq_num: i32,
pub sig: Vec<u8>,
pub sig_algorithm: String,
pub shard_id: String,
pub extra_bytes: Vec<u8>,
}
pub struct Header {
pub parents_hash_list: Vec<ByteString>,
pub timestamp: i64,
pub version: i64,
pub extra_bytes: ByteString,
}
pub struct Body {
pub state: F1r3flyState,
}
pub struct Justification {
}
pub struct F1r3flyState {
pub pre_state_hash: ByteString,
pub post_state_hash: ByteString,
pub bonds: Vec<Bond>,
pub block_number: i64,
}
pub struct ProcessedDeploy {
}
pub struct DeployData {
}
pub struct Peek {
}
pub enum Event {
Produce(ProduceEvent),
Consume(ConsumeEvent),
Comm(CommEvent),
}
pub struct ProduceEvent {
pub channels_hash: ByteString,
pub hash: ByteString,
pub persistent: bool,
pub times_repeated: i32,
}
pub struct ConsumeEvent {
pub channels_hashes: Vec<ByteString>,
pub hash: ByteString,
pub persistent: bool,
}
pub struct CommEvent {
pub consume: ConsumeEvent,
pub produces: Vec<ProduceEvent>,
pub peeks: Vec<Peek>,
}
pub struct Bond {
}