use mx_proto::{Message, generated::proto::OutportBlock};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let block = OutportBlock::default();
    let encoded = block.encode_to_vec();
    let decoded = OutportBlock::decode(encoded.as_slice())?;

    println!("shard_id={}", decoded.shard_id);
    println!("num_shards={}", decoded.number_of_shards);
    println!("altered_accounts={}", decoded.altered_accounts.len());

    Ok(())
}
