fedimint_empty_common/
config.rs1use fedimint_core::core::ModuleKind;
2use fedimint_core::encoding::{Decodable, Encodable};
3use fedimint_core::plugin_types_trait_impl_config;
4use serde::{Deserialize, Serialize};
5
6use crate::EmptyCommonInit;
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct EmptyGenParams {
11 pub local: EmptyGenParamsLocal,
12 pub consensus: EmptyGenParamsConsensus,
13}
14
15#[derive(Debug, Clone, Serialize, Deserialize)]
17pub struct EmptyGenParamsLocal {}
18
19#[derive(Debug, Clone, Serialize, Deserialize)]
21pub struct EmptyGenParamsConsensus {}
22
23impl Default for EmptyGenParams {
24 fn default() -> Self {
25 Self {
26 local: EmptyGenParamsLocal {},
27 consensus: EmptyGenParamsConsensus {},
28 }
29 }
30}
31
32#[derive(Clone, Debug, Serialize, Deserialize)]
34pub struct EmptyConfig {
35 pub local: EmptyConfigLocal,
36 pub private: EmptyConfigPrivate,
37 pub consensus: EmptyConfigConsensus,
38}
39
40#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize, Encodable, Decodable, Hash)]
42pub struct EmptyClientConfig {}
43
44#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
46pub struct EmptyConfigLocal {}
47
48#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
50pub struct EmptyConfigConsensus {}
51
52#[derive(Clone, Debug, Serialize, Deserialize)]
54pub struct EmptyConfigPrivate;
55
56plugin_types_trait_impl_config!(
58 EmptyCommonInit,
59 EmptyGenParams,
60 EmptyGenParamsLocal,
61 EmptyGenParamsConsensus,
62 EmptyConfig,
63 EmptyConfigLocal,
64 EmptyConfigPrivate,
65 EmptyConfigConsensus,
66 EmptyClientConfig
67);