Skip to content

Commit

Permalink
add doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Nov 27, 2024
1 parent ec38f23 commit f961c84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions primitives/bridge/src/symbiotic_message_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ use sp_std::vec::Vec;
/// indeed send a message intended for this processor.
pub const MAGIC_BYTES: [u8; 4] = [112, 21, 0, 56];

/// Payload is the whole data we expect to receive from the relayer
#[derive(Encode, Decode)]
pub struct Payload<T>
where
Expand All @@ -38,6 +39,7 @@ where
pub message: Message<T>,
}

/// Actual message inside the payload
#[derive(Encode, Decode)]
pub enum Message<T>
where
Expand All @@ -46,6 +48,7 @@ where
V1(InboundCommand<T>),
}

/// Command to be executed by this message processor
#[derive(Encode, Decode)]
pub enum InboundCommand<T>
where
Expand Down

0 comments on commit f961c84

Please sign in to comment.