Struct tx_bakery::chain_query::ProtocolParameters
source · pub struct ProtocolParameters {
pub min_fee_coefficient: Coin,
pub min_fee_constant: Coin,
pub min_fee_reference_scripts: Option<UnitInterval>,
pub min_utxo_deposit_coefficient: Coin,
pub min_utxo_deposit_constant: Coin,
pub max_transaction_size: Option<u32>,
pub max_value_size: Option<u32>,
pub stake_credential_deposit: Coin,
pub stake_pool_deposit: Coin,
pub plutus_cost_models: Option<Costmdls>,
pub script_execution_prices: Option<ExUnitPrices>,
}
Expand description
A subset of Cardano protocol parameters, only handling values that we use for transaction building
Fields§
§min_fee_coefficient: Coin
§min_fee_constant: Coin
§min_fee_reference_scripts: Option<UnitInterval>
§min_utxo_deposit_coefficient: Coin
§min_utxo_deposit_constant: Coin
§max_transaction_size: Option<u32>
§max_value_size: Option<u32>
§stake_credential_deposit: Coin
§stake_pool_deposit: Coin
§plutus_cost_models: Option<Costmdls>
§script_execution_prices: Option<ExUnitPrices>
Trait Implementations§
source§impl Clone for ProtocolParameters
impl Clone for ProtocolParameters
source§fn clone(&self) -> ProtocolParameters
fn clone(&self) -> ProtocolParameters
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 moreAuto Trait Implementations§
impl Freeze for ProtocolParameters
impl RefUnwindSafe for ProtocolParameters
impl Send for ProtocolParameters
impl Sync for ProtocolParameters
impl Unpin 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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