-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mempool_infra): wrap serde operations with generic custom struc…
…t towards binary serde commit-id:325d0501
- Loading branch information
1 parent
192301f
commit cc2530b
Showing
14 changed files
with
115 additions
and
82 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
crates/consensus_manager_types/src/consensus_manager_types.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
use std::fmt::Debug; | ||
|
||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::errors::ConsensusManagerError; | ||
|
||
// TODO(Tsabary/Matan): Populate the data structure used to invoke the consensus manager. | ||
#[derive(Debug, Serialize, Deserialize)] | ||
#[derive(Debug, Serialize, Deserialize, Clone)] | ||
pub struct ConsensusManagerFnOneInput {} | ||
|
||
// TODO(Tsabary/Matan): Populate the data structure used to invoke the consensus manager. | ||
#[derive(Debug, Serialize, Deserialize)] | ||
#[derive(Debug, Serialize, Deserialize, Clone)] | ||
pub struct ConsensusManagerFnTwoInput {} | ||
|
||
// TODO(Tsabary/Matan): Replace with the actual return type of the consensus manager function. | ||
#[derive(Debug, Serialize, Deserialize)] | ||
#[derive(Debug, Serialize, Deserialize, Clone)] | ||
pub struct ConsensusManagerFnOneReturnValue {} | ||
|
||
// TODO(Tsabary/Matan): Replace with the actual return type of the consensus manager function. | ||
#[derive(Debug, Serialize, Deserialize)] | ||
#[derive(Debug, Serialize, Deserialize, Clone)] | ||
pub struct ConsensusManagerFnTwoReturnValue {} | ||
|
||
pub type ConsensusManagerResult<T> = Result<T, ConsensusManagerError>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.