pub struct ProtocolParameters {Show 35 fields
pub protocol_version: ProtocolVersion,
pub max_block_body_size: u64,
pub max_transaction_size: u64,
pub max_block_header_size: u16,
pub max_tx_ex_units: ExUnits,
pub max_block_ex_units: ExUnits,
pub max_value_size: u64,
pub max_collateral_inputs: u16,
pub min_fee_a: Lovelace,
pub min_fee_b: u64,
pub stake_credential_deposit: Lovelace,
pub stake_pool_deposit: Lovelace,
pub monetary_expansion_rate: RationalNumber,
pub treasury_expansion_rate: RationalNumber,
pub min_pool_cost: u64,
pub lovelace_per_utxo_byte: Lovelace,
pub prices: ExUnitPrices,
pub min_fee_ref_script_lovelace_per_byte: RationalNumber,
pub max_ref_script_size_per_tx: u32,
pub max_ref_script_size_per_block: u32,
pub ref_script_cost_stride: u32,
pub ref_script_cost_multiplier: RationalNumber,
pub stake_pool_max_retirement_epoch: u64,
pub optimal_stake_pools_count: u16,
pub pledge_influence: RationalNumber,
pub collateral_percentage: u16,
pub cost_models: CostModels,
pub pool_voting_thresholds: PoolVotingThresholds,
pub drep_voting_thresholds: DRepVotingThresholds,
pub min_committee_size: u16,
pub max_committee_term_length: u64,
pub gov_action_lifetime: u64,
pub gov_action_deposit: Lovelace,
pub drep_deposit: Lovelace,
pub drep_expiry: u64,
}Expand description
Model from https://github.com/IntersectMBO/formal-ledger-specifications/blob/master/src/Ledger/PParams.lagda Some of the names have been adapted to improve readability. Also see https://github.com/IntersectMBO/cardano-ledger/blob/d90eb4df4651970972d860e95f1a3697a3de8977/eras/conway/impl/cddl-files/conway.cddl#L324
Fields§
§protocol_version: ProtocolVersion§max_block_body_size: u64§max_transaction_size: u64§max_block_header_size: u16§max_tx_ex_units: ExUnits§max_block_ex_units: ExUnits§max_value_size: u64§max_collateral_inputs: u16§min_fee_a: Lovelace§min_fee_b: u64§stake_credential_deposit: Lovelace§stake_pool_deposit: Lovelace§monetary_expansion_rate: RationalNumber§treasury_expansion_rate: RationalNumber§min_pool_cost: u64§lovelace_per_utxo_byte: Lovelace§prices: ExUnitPrices§min_fee_ref_script_lovelace_per_byte: RationalNumber§max_ref_script_size_per_tx: u32§max_ref_script_size_per_block: u32§ref_script_cost_stride: u32§ref_script_cost_multiplier: RationalNumber§stake_pool_max_retirement_epoch: u64§optimal_stake_pools_count: u16§pledge_influence: RationalNumber§collateral_percentage: u16§cost_models: CostModels§pool_voting_thresholds: PoolVotingThresholds§drep_voting_thresholds: DRepVotingThresholds§min_committee_size: u16§max_committee_term_length: u64§gov_action_lifetime: u64§gov_action_deposit: Lovelace§drep_deposit: Lovelace§drep_expiry: u64Implementations§
Source§impl ProtocolParameters
impl ProtocolParameters
pub fn update(&mut self, u: ProtocolParamUpdate)
Trait Implementations§
Source§impl Clone for ProtocolParameters
impl Clone for ProtocolParameters
Source§fn clone(&self) -> ProtocolParameters
fn clone(&self) -> ProtocolParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtocolParameters
impl Debug for ProtocolParameters
Source§impl<'b, C> Decode<'b, C> for ProtocolParameters
impl<'b, C> Decode<'b, C> for ProtocolParameters
Source§impl<C> Encode<C> for ProtocolParameters
impl<C> Encode<C> for ProtocolParameters
Source§impl PartialEq for ProtocolParameters
impl PartialEq for ProtocolParameters
Source§impl TryFrom<NetworkName> for &ProtocolParameters
impl TryFrom<NetworkName> for &ProtocolParameters
impl Eq for ProtocolParameters
impl StructuralPartialEq for ProtocolParameters
Auto Trait Implementations§
impl Freeze for ProtocolParameters
impl RefUnwindSafe for ProtocolParameters
impl Send for ProtocolParameters
impl Sync for ProtocolParameters
impl Unpin for ProtocolParameters
impl UnsafeUnpin for ProtocolParameters
impl UnwindSafe for ProtocolParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more