fedimint_meta_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::MetaCommonInit;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MetaGenParams {
pub local: MetaGenParamsLocal,
pub consensus: MetaGenParamsConsensus,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct MetaGenParamsLocal;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MetaGenParamsConsensus;
impl Default for MetaGenParams {
fn default() -> Self {
Self {
local: MetaGenParamsLocal,
consensus: MetaGenParamsConsensus,
}
}
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct MetaConfig {
pub local: MetaConfigLocal,
pub private: MetaConfigPrivate,
pub consensus: MetaConfigConsensus,
}
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize, Encodable, Decodable, Hash)]
pub struct MetaClientConfig;
#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
pub struct MetaConfigLocal;
#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
pub struct MetaConfigConsensus;
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct MetaConfigPrivate;
plugin_types_trait_impl_config!(
MetaCommonInit,
MetaGenParams,
MetaGenParamsLocal,
MetaGenParamsConsensus,
MetaConfig,
MetaConfigLocal,
MetaConfigPrivate,
MetaConfigConsensus,
MetaClientConfig
);