Skip to main content

ProtocolParameters

Struct ProtocolParameters 

Source
pub struct ProtocolParameters {
Show 33 fields pub min_fee_coefficient: u64, pub min_fee_constant: AdaValue, pub min_fee_reference_scripts: Option<MinFeeReferenceScripts>, pub max_block_body_size: BlockSize, pub max_block_header_size: BlockSize, pub max_transaction_size: BlockSize, pub stake_credential_deposit: AdaValue, pub stake_pool_deposit: AdaValue, pub stake_pool_retirement_epoch_bound: u64, pub desired_number_of_stake_pools: u64, pub stake_pool_pledge_influence: Ratio, pub monetary_expansion: Ratio, pub treasury_expansion: Ratio, pub version: ProtocolVersion, pub min_stake_pool_cost: AdaValue, pub extra_entropy: Option<Nonce>, pub min_utxo_deposit_coefficient: Option<u64>, pub min_utxo_deposit_constant: Option<AdaValue>, pub plutus_cost_models: Option<CostModels>, pub script_execution_prices: Option<ScriptExecutionPrices>, pub max_execution_units_per_transaction: Option<ExUnits>, pub max_execution_units_per_block: Option<ExUnits>, pub max_collateral_inputs: Option<u64>, pub collateral_percentage: Option<u64>, pub max_value_size: Option<BlockSize>, pub delegate_representative_deposit: Option<AdaValue>, pub delegate_representative_max_idle_time: Option<u64>, pub governance_action_deposit: Option<AdaValue>, pub governance_action_lifetime: Option<u64>, pub constitutional_committee_min_size: Option<u64>, pub constitutional_committee_max_term_length: Option<u64>, pub stake_pool_voting_thresholds: Option<StakePoolVotingThresholds>, pub delegate_representative_voting_thresholds: Option<DelegateRepresentativeVotingThresholds>,
}
Expand description

Protocol parameters for Cardano.

Fields§

§min_fee_coefficient: u64

Minimum fee coefficient (per byte).

§min_fee_constant: AdaValue

Minimum fee constant.

§min_fee_reference_scripts: Option<MinFeeReferenceScripts>

Minimum fee for reference scripts.

§max_block_body_size: BlockSize

Maximum block body size in bytes.

§max_block_header_size: BlockSize

Maximum block header size in bytes.

§max_transaction_size: BlockSize

Maximum transaction size in bytes.

§stake_credential_deposit: AdaValue

Stake key deposit.

§stake_pool_deposit: AdaValue

Pool registration deposit.

§stake_pool_retirement_epoch_bound: u64

Pool retirement epoch bound.

§desired_number_of_stake_pools: u64

Desired number of stake pools.

§stake_pool_pledge_influence: Ratio

Stake pool pledge influence (a0).

§monetary_expansion: Ratio

Monetary expansion (rho).

§treasury_expansion: Ratio

Treasury expansion (tau).

§version: ProtocolVersion

Protocol version.

§min_stake_pool_cost: AdaValue

Minimum stake pool cost.

§extra_entropy: Option<Nonce>

Extra entropy (deprecated, always neutral).

§min_utxo_deposit_coefficient: Option<u64>

Minimum UTXO deposit coefficient (lovelace per byte).

§min_utxo_deposit_constant: Option<AdaValue>

Minimum UTXO deposit constant.

§plutus_cost_models: Option<CostModels>

Plutus cost models.

§script_execution_prices: Option<ScriptExecutionPrices>

Script execution prices.

§max_execution_units_per_transaction: Option<ExUnits>

Maximum execution units per transaction.

§max_execution_units_per_block: Option<ExUnits>

Maximum execution units per block.

§max_collateral_inputs: Option<u64>

Maximum collateral inputs.

§collateral_percentage: Option<u64>

Collateral percentage.

§max_value_size: Option<BlockSize>

Maximum value size in bytes.

§delegate_representative_deposit: Option<AdaValue>

DRep deposit (Conway).

§delegate_representative_max_idle_time: Option<u64>

DRep max idle time (Conway).

§governance_action_deposit: Option<AdaValue>

Governance action deposit (Conway).

§governance_action_lifetime: Option<u64>

Governance action lifetime (Conway).

§constitutional_committee_min_size: Option<u64>

Constitutional committee min size (Conway).

§constitutional_committee_max_term_length: Option<u64>

Constitutional committee max term length (Conway).

§stake_pool_voting_thresholds: Option<StakePoolVotingThresholds>

Stake pool voting thresholds (Conway).

§delegate_representative_voting_thresholds: Option<DelegateRepresentativeVotingThresholds>

DRep voting thresholds (Conway).

Trait Implementations§

Source§

impl Clone for ProtocolParameters

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProtocolParameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ProtocolParameters

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ProtocolParameters

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ProtocolParameters

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ProtocolParameters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more