fedimint_empty_common/
config.rsuse fedimint_core::core::ModuleKind;
use fedimint_core::encoding::{Decodable, Encodable};
use fedimint_core::plugin_types_trait_impl_config;
use serde::{Deserialize, Serialize};
use crate::EmptyCommonInit;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EmptyGenParams {
pub local: EmptyGenParamsLocal,
pub consensus: EmptyGenParamsConsensus,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EmptyGenParamsLocal {}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EmptyGenParamsConsensus {}
impl Default for EmptyGenParams {
fn default() -> Self {
Self {
local: EmptyGenParamsLocal {},
consensus: EmptyGenParamsConsensus {},
}
}
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct EmptyConfig {
pub local: EmptyConfigLocal,
pub private: EmptyConfigPrivate,
pub consensus: EmptyConfigConsensus,
}
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize, Encodable, Decodable, Hash)]
pub struct EmptyClientConfig {}
#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
pub struct EmptyConfigLocal {}
#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
pub struct EmptyConfigConsensus {}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct EmptyConfigPrivate;
plugin_types_trait_impl_config!(
EmptyCommonInit,
EmptyGenParams,
EmptyGenParamsLocal,
EmptyGenParamsConsensus,
EmptyConfig,
EmptyConfigLocal,
EmptyConfigPrivate,
EmptyConfigConsensus,
EmptyClientConfig
);