Struct unc_parameters::cost::RuntimeFeesConfig
source · pub struct RuntimeFeesConfig {
pub action_fees: EnumMap<ActionCosts, Fee>,
pub storage_usage_config: StorageUsageConfig,
pub burnt_gas_reward: Rational32,
pub pessimistic_gas_price_inflation_ratio: Rational32,
}
Fields§
§action_fees: EnumMap<ActionCosts, Fee>
Gas fees for sending and executing actions.
storage_usage_config: StorageUsageConfig
Describes fees for storage.
burnt_gas_reward: Rational32
Fraction of the burnt gas to reward to the contract account for execution.
pessimistic_gas_price_inflation_ratio: Rational32
Pessimistic gas price inflation ratio.
Implementations§
source§impl RuntimeFeesConfig
impl RuntimeFeesConfig
sourcepub fn fee(&self, cost: ActionCosts) -> &Fee
pub fn fee(&self, cost: ActionCosts) -> &Fee
Access action fee by ActionCosts
.
pub fn test() -> Self
pub fn free() -> Self
sourcepub fn min_receipt_with_function_call_gas(&self) -> Gas
pub fn min_receipt_with_function_call_gas(&self) -> Gas
The minimum amount of gas required to create and execute a new receipt with a function call action. This amount is used to determine how many receipts can be created, send and executed for some amount of prepaid gas using function calls.
Trait Implementations§
source§impl Clone for RuntimeFeesConfig
impl Clone for RuntimeFeesConfig
source§fn clone(&self) -> RuntimeFeesConfig
fn clone(&self) -> RuntimeFeesConfig
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 RuntimeFeesConfig
impl Debug for RuntimeFeesConfig
source§impl Hash for RuntimeFeesConfig
impl Hash for RuntimeFeesConfig
source§impl PartialEq for RuntimeFeesConfig
impl PartialEq for RuntimeFeesConfig
source§fn eq(&self, other: &RuntimeFeesConfig) -> bool
fn eq(&self, other: &RuntimeFeesConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RuntimeFeesConfig
impl StructuralPartialEq for RuntimeFeesConfig
Auto Trait Implementations§
impl Freeze for RuntimeFeesConfig
impl RefUnwindSafe for RuntimeFeesConfig
impl Send for RuntimeFeesConfig
impl Sync for RuntimeFeesConfig
impl Unpin for RuntimeFeesConfig
impl UnwindSafe for RuntimeFeesConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.