From 723f529659a46c66aa102dfa9f63739568ecdd4e Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 11 Sep 2024 08:57:57 -0400 Subject: [PATCH] Note better message structure in messages --- processor/messages/src/lib.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/processor/messages/src/lib.rs b/processor/messages/src/lib.rs index ae1ab6d5..080864dc 100644 --- a/processor/messages/src/lib.rs +++ b/processor/messages/src/lib.rs @@ -181,6 +181,24 @@ pub mod coordinator { pub mod substrate { use super::*; + /* TODO + #[derive(Clone, PartialEq, Eq, Debug, BorshSerialize, BorshDeserialize)] + pub enum InInstructionResult { + Succeeded, + Failed, + } + #[derive(Clone, PartialEq, Eq, Debug, BorshSerialize, BorshDeserialize)] + pub struct ExecutedBatch { + batch_id: u32, + in_instructions: Vec, + } + Block { + block: u64, + batches: Vec, + burns: Vec, + } + */ + #[derive(Clone, PartialEq, Eq, Debug, BorshSerialize, BorshDeserialize)] pub enum CoordinatorMessage { /// Keys set on the Serai blockchain. @@ -193,7 +211,6 @@ pub mod substrate { batch_id: u32, in_instruction_succeededs: Vec, burns: Vec, - key_to_activate: Option, }, /// The data from a block which didn't acknowledge a Batch. BlockWithoutBatchAcknowledgement { block: u64, burns: Vec },