pub struct ProtocolParamUpdate(/* private fields */);
Implementations§
Source§impl ProtocolParamUpdate
impl ProtocolParamUpdate
Sourcepub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
Sourcepub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes using canonical CBOR encodings
Sourcepub fn from_cbor_bytes(
cbor_bytes: &[u8],
) -> Result<ProtocolParamUpdate, JsError>
pub fn from_cbor_bytes( cbor_bytes: &[u8], ) -> Result<ProtocolParamUpdate, JsError>
- Create this type from CBOR bytes
Sourcepub fn to_cbor_hex(&self) -> String
pub fn to_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
Sourcepub fn to_canonical_cbor_hex(&self) -> String
pub fn to_canonical_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
Sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<ProtocolParamUpdate, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<ProtocolParamUpdate, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
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: u64)
pub fn max_block_body_size(&self) -> Option<u64>
pub fn set_max_transaction_size(&mut self, max_transaction_size: u64)
pub fn max_transaction_size(&self) -> Option<u64>
pub fn set_max_block_header_size(&mut self, max_block_header_size: u64)
pub fn max_block_header_size(&self) -> Option<u64>
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_maximum_epoch(&mut self, maximum_epoch: Epoch)
pub fn maximum_epoch(&self) -> Option<Epoch>
pub fn set_n_opt(&mut self, n_opt: u64)
pub fn n_opt(&self) -> Option<u64>
pub fn set_pool_pledge_influence(&mut self, pool_pledge_influence: &Rational)
pub fn pool_pledge_influence(&self) -> Option<Rational>
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>
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_for_script_languages( &mut self, cost_models_for_script_languages: &CostModels, )
pub fn cost_models_for_script_languages(&self) -> Option<CostModels>
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: u64)
pub fn max_value_size(&self) -> Option<u64>
pub fn set_collateral_percentage(&mut self, collateral_percentage: u64)
pub fn collateral_percentage(&self) -> Option<u64>
pub fn set_max_collateral_inputs(&mut self, max_collateral_inputs: u64)
pub fn max_collateral_inputs(&self) -> Option<u64>
pub fn set_pool_voting_thresholds( &mut self, pool_voting_thresholds: &PoolVotingThresholds, )
pub fn pool_voting_thresholds(&self) -> Option<PoolVotingThresholds>
pub fn set_d_rep_voting_thresholds( &mut self, d_rep_voting_thresholds: &DRepVotingThresholds, )
pub fn d_rep_voting_thresholds(&self) -> Option<DRepVotingThresholds>
pub fn set_min_committee_size(&mut self, min_committee_size: u64)
pub fn min_committee_size(&self) -> Option<u64>
pub fn set_committee_term_limit(&mut self, committee_term_limit: Epoch)
pub fn committee_term_limit(&self) -> Option<Epoch>
pub fn set_governance_action_validity_period( &mut self, governance_action_validity_period: Epoch, )
pub fn governance_action_validity_period(&self) -> Option<Epoch>
pub fn set_governance_action_deposit(&mut self, governance_action_deposit: Coin)
pub fn governance_action_deposit(&self) -> Option<Coin>
pub fn set_d_rep_deposit(&mut self, d_rep_deposit: Coin)
pub fn d_rep_deposit(&self) -> Option<Coin>
pub fn set_d_rep_inactivity_period(&mut self, d_rep_inactivity_period: Epoch)
pub fn d_rep_inactivity_period(&self) -> Option<Epoch>
pub fn set_min_fee_ref_script_cost_per_byte( &mut self, min_fee_ref_script_cost_per_byte: &Rational, )
pub fn min_fee_ref_script_cost_per_byte(&self) -> Option<Rational>
pub fn new() -> Self
Trait Implementations§
Source§impl AsRef<ProtocolParamUpdate> for ProtocolParamUpdate
impl AsRef<ProtocolParamUpdate> for ProtocolParamUpdate
Source§fn as_ref(&self) -> &ProtocolParamUpdate
fn as_ref(&self) -> &ProtocolParamUpdate
Converts this type into a shared reference of the (usually inferred) input type.
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 From<ProtocolParamUpdate> for JsValue
impl From<ProtocolParamUpdate> for JsValue
Source§fn from(value: ProtocolParamUpdate) -> Self
fn from(value: ProtocolParamUpdate) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolParamUpdate> for ProtocolParamUpdate
impl From<ProtocolParamUpdate> for ProtocolParamUpdate
Source§fn from(native: ProtocolParamUpdate) -> Self
fn from(native: ProtocolParamUpdate) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ProtocolParamUpdate
impl FromWasmAbi for ProtocolParamUpdate
Source§impl Into<ProtocolParamUpdate> for ProtocolParamUpdate
impl Into<ProtocolParamUpdate> for ProtocolParamUpdate
Source§fn into(self) -> ProtocolParamUpdate
fn into(self) -> ProtocolParamUpdate
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for ProtocolParamUpdate
impl IntoWasmAbi for ProtocolParamUpdate
Source§impl RefFromWasmAbi for ProtocolParamUpdate
impl RefFromWasmAbi for ProtocolParamUpdate
Source§type Anchor = RcRef<ProtocolParamUpdate>
type Anchor = RcRef<ProtocolParamUpdate>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for ProtocolParamUpdate
impl TryFromJsValue for ProtocolParamUpdate
Source§impl VectorFromWasmAbi for ProtocolParamUpdate
impl VectorFromWasmAbi for ProtocolParamUpdate
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ProtocolParamUpdate]>
Source§impl VectorIntoJsValue for ProtocolParamUpdate
impl VectorIntoJsValue for ProtocolParamUpdate
fn vector_into_jsvalue(vector: Box<[ProtocolParamUpdate]>) -> JsValue
Source§impl VectorIntoWasmAbi for ProtocolParamUpdate
impl VectorIntoWasmAbi for ProtocolParamUpdate
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ProtocolParamUpdate]>) -> Self::Abi
Source§impl WasmDescribeVector for ProtocolParamUpdate
impl WasmDescribeVector for ProtocolParamUpdate
impl SupportsConstructor for ProtocolParamUpdate
impl SupportsInstanceProperty for ProtocolParamUpdate
impl SupportsStaticProperty for ProtocolParamUpdate
Auto Trait Implementations§
impl Freeze for ProtocolParamUpdate
impl RefUnwindSafe for ProtocolParamUpdate
impl Send for ProtocolParamUpdate
impl Sync for ProtocolParamUpdate
impl Unpin for ProtocolParamUpdate
impl UnwindSafe for ProtocolParamUpdate
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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.