diff --git a/pallas-configs/src/alonzo.rs b/pallas-configs/src/alonzo.rs index 46549140..9cf6d49b 100644 --- a/pallas-configs/src/alonzo.rs +++ b/pallas-configs/src/alonzo.rs @@ -85,7 +85,7 @@ impl From for pallas_primitives::alonzo::CostModels { } } -#[derive(Deserialize)] +#[derive(Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct GenesisFile { #[serde(rename = "lovelacePerUTxOWord")] diff --git a/pallas-configs/src/byron.rs b/pallas-configs/src/byron.rs index 5460de9e..1391851f 100644 --- a/pallas-configs/src/byron.rs +++ b/pallas-configs/src/byron.rs @@ -7,7 +7,7 @@ use serde_with::serde_as; use serde_with::DisplayFromStr; use std::collections::HashMap; -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct GenesisFile { pub avvm_distr: HashMap, @@ -64,7 +64,7 @@ pub struct BlockVersionData { pub update_vote_thd: u64, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct ProtocolConsts { pub k: usize, @@ -77,7 +77,7 @@ pub struct ProtocolConsts { pub type BootStakeWeight = u16; -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct HeavyDelegation { pub issuer_pk: String, @@ -85,7 +85,7 @@ pub struct HeavyDelegation { pub cert: String, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct VssCert { pub vss_key: String, diff --git a/pallas-configs/src/conway.rs b/pallas-configs/src/conway.rs index 924cd562..bab2aff1 100644 --- a/pallas-configs/src/conway.rs +++ b/pallas-configs/src/conway.rs @@ -1,7 +1,7 @@ use serde::Deserialize; use std::collections::HashMap; -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct GenesisFile { pub pool_voting_thresholds: PoolVotingThresholds, @@ -43,20 +43,20 @@ pub struct DRepVotingThresholds { pub treasury_withdrawal: f32, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] pub struct Constitution { pub anchor: Anchor, pub script: String, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct Anchor { pub data_hash: String, pub url: String, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] pub struct Committee { pub members: HashMap, pub threshold: Fraction, diff --git a/pallas-configs/src/shelley.rs b/pallas-configs/src/shelley.rs index e10e6d84..0200af18 100644 --- a/pallas-configs/src/shelley.rs +++ b/pallas-configs/src/shelley.rs @@ -22,7 +22,7 @@ where Ok(r) } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct GenDelegs { pub delegate: Option, @@ -75,7 +75,7 @@ impl From for pallas_primitives::alonzo::Nonce { } } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct ProtocolParams { pub protocol_version: ProtocolVersion, @@ -106,14 +106,14 @@ pub struct ProtocolParams { pub a0: pallas_primitives::alonzo::RationalNumber, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct Staking { pub pools: Option>, pub stake: Option>, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct GenesisFile { pub active_slots_coeff: Option,