pub struct ProtocolParamUpdate { /* private fields */ }
Implementations§
source§impl ProtocolParamUpdate
impl ProtocolParamUpdate
pub fn from_bytes(
bytes: Vec<u8>
) -> Result<ProtocolParamUpdate, DeserializeError>
source§impl ProtocolParamUpdate
impl ProtocolParamUpdate
pub fn from_hex(hex_str: &str) -> Result<ProtocolParamUpdate, DeserializeError>
source§impl ProtocolParamUpdate
impl ProtocolParamUpdate
pub fn set_minfee_a(&mut self, minfee_a: &Coin)
pub fn minfee_a(&self) -> Option<Coin>
pub fn set_minfee_b(&mut self, minfee_b: &Coin)
pub fn minfee_b(&self) -> Option<Coin>
pub fn set_max_block_body_size(&mut self, max_block_body_size: u32)
pub fn max_block_body_size(&self) -> Option<u32>
pub fn set_max_tx_size(&mut self, max_tx_size: u32)
pub fn max_tx_size(&self) -> Option<u32>
pub fn set_max_block_header_size(&mut self, max_block_header_size: u32)
pub fn max_block_header_size(&self) -> Option<u32>
pub fn set_key_deposit(&mut self, key_deposit: &Coin)
pub fn key_deposit(&self) -> Option<Coin>
pub fn set_pool_deposit(&mut self, pool_deposit: &Coin)
pub fn pool_deposit(&self) -> Option<Coin>
pub fn set_max_epoch(&mut self, max_epoch: u32)
pub fn max_epoch(&self) -> Option<u32>
pub fn set_n_opt(&mut self, n_opt: u32)
pub fn n_opt(&self) -> Option<u32>
pub fn set_pool_pledge_influence(&mut self, pool_pledge_influence: &UnitInterval)
pub fn pool_pledge_influence(&self) -> Option<UnitInterval>
pub fn set_expansion_rate(&mut self, expansion_rate: &UnitInterval)
pub fn expansion_rate(&self) -> Option<UnitInterval>
pub fn set_treasury_growth_rate(&mut self, treasury_growth_rate: &UnitInterval)
pub fn treasury_growth_rate(&self) -> Option<UnitInterval>
sourcepub fn d(&self) -> Option<UnitInterval>
👎Deprecated since 11.0.0: Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
pub fn d(&self) -> Option<UnitInterval>
!!! DEPRECATED !!! Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
sourcepub fn extra_entropy(&self) -> Option<Nonce>
👎Deprecated since 11.0.0: Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
pub fn extra_entropy(&self) -> Option<Nonce>
!!! DEPRECATED !!! Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
pub fn set_protocol_version(&mut self, protocol_version: &ProtocolVersion)
pub fn protocol_version(&self) -> Option<ProtocolVersion>
pub fn set_min_pool_cost(&mut self, min_pool_cost: &Coin)
pub fn min_pool_cost(&self) -> Option<Coin>
pub fn set_ada_per_utxo_byte(&mut self, ada_per_utxo_byte: &Coin)
pub fn ada_per_utxo_byte(&self) -> Option<Coin>
pub fn set_cost_models(&mut self, cost_models: &Costmdls)
pub fn cost_models(&self) -> Option<Costmdls>
pub fn set_execution_costs(&mut self, execution_costs: &ExUnitPrices)
pub fn execution_costs(&self) -> Option<ExUnitPrices>
pub fn set_max_tx_ex_units(&mut self, max_tx_ex_units: &ExUnits)
pub fn max_tx_ex_units(&self) -> Option<ExUnits>
pub fn set_max_block_ex_units(&mut self, max_block_ex_units: &ExUnits)
pub fn max_block_ex_units(&self) -> Option<ExUnits>
pub fn set_max_value_size(&mut self, max_value_size: u32)
pub fn max_value_size(&self) -> Option<u32>
pub fn set_collateral_percentage(&mut self, collateral_percentage: u32)
pub fn collateral_percentage(&self) -> Option<u32>
pub fn set_max_collateral_inputs(&mut self, max_collateral_inputs: u32)
pub fn max_collateral_inputs(&self) -> Option<u32>
pub fn new() -> Self
Trait Implementations§
source§impl Clone for ProtocolParamUpdate
impl Clone for ProtocolParamUpdate
source§fn clone(&self) -> ProtocolParamUpdate
fn clone(&self) -> ProtocolParamUpdate
Returns a copy 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 ProtocolParamUpdate
impl Debug for ProtocolParamUpdate
source§impl<'de> Deserialize<'de> for ProtocolParamUpdate
impl<'de> Deserialize<'de> for ProtocolParamUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Deserialize for ProtocolParamUpdate
impl Deserialize for ProtocolParamUpdate
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
source§impl JsonSchema for ProtocolParamUpdate
impl JsonSchema for ProtocolParamUpdate
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Ord for ProtocolParamUpdate
impl Ord for ProtocolParamUpdate
source§fn cmp(&self, other: &ProtocolParamUpdate) -> Ordering
fn cmp(&self, other: &ProtocolParamUpdate) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ProtocolParamUpdate> for ProtocolParamUpdate
impl PartialEq<ProtocolParamUpdate> for ProtocolParamUpdate
source§fn eq(&self, other: &ProtocolParamUpdate) -> bool
fn eq(&self, other: &ProtocolParamUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ProtocolParamUpdate> for ProtocolParamUpdate
impl PartialOrd<ProtocolParamUpdate> for ProtocolParamUpdate
source§fn partial_cmp(&self, other: &ProtocolParamUpdate) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtocolParamUpdate) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more