fedimint_dummy_common/
config.rs

1use 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::DummyCommonInit;
7
8/// Contains all the configuration for the server
9#[derive(Clone, Debug, Serialize, Deserialize)]
10pub struct DummyConfig {
11    pub private: DummyConfigPrivate,
12    pub consensus: DummyConfigConsensus,
13}
14
15/// Contains all the configuration for the client
16#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize, Encodable, Decodable, Hash)]
17pub struct DummyClientConfig;
18
19/// Will be the same for every federation member
20#[derive(Clone, Debug, Serialize, Deserialize, Decodable, Encodable)]
21pub struct DummyConfigConsensus;
22
23/// Will be encrypted and not shared such as private key material
24#[derive(Clone, Debug, Serialize, Deserialize)]
25pub struct DummyConfigPrivate;
26
27// Wire together the configs for this module
28plugin_types_trait_impl_config!(
29    DummyCommonInit,
30    DummyConfig,
31    DummyConfigPrivate,
32    DummyConfigConsensus,
33    DummyClientConfig
34);