oasis_runtime_sdk/modules/consensus/types.rs
1use oasis_core_runtime::common::namespace::Namespace;
2
3/// Kind of root.
4#[derive(Clone, Debug, cbor::Encode, cbor::Decode)]
5#[repr(u8)]
6pub enum RootKind {
7 State = 1,
8 IO = 2,
9}
10
11/// Internal round root call body.
12#[derive(Clone, Debug, cbor::Encode, cbor::Decode)]
13#[cbor(no_default)]
14pub struct RoundRootBody {
15 pub runtime_id: Namespace,
16 pub round: u64,
17 pub kind: RootKind,
18}