pub struct RuntimeFeesConfig {
pub action_receipt_creation_config: Fee,
pub data_receipt_creation_config: DataReceiptCreationConfig,
pub action_creation_config: ActionCreationConfig,
pub storage_usage_config: StorageUsageConfig,
pub burnt_gas_reward: Rational,
pub pessimistic_gas_price_inflation_ratio: Rational,
}Fields§
§action_receipt_creation_config: FeeDescribes the cost of creating an action receipt, ActionReceipt, excluding the actual cost
of actions.
sendcost is burned when a receipt is created usingpromise_createorpromise_batch_createexeccost is burned when the receipt is being executed.
data_receipt_creation_config: DataReceiptCreationConfigDescribes the cost of creating a data receipt, DataReceipt.
action_creation_config: ActionCreationConfigDescribes the cost of creating a certain action, Action. Includes all variants.
storage_usage_config: StorageUsageConfigDescribes fees for storage.
burnt_gas_reward: RationalFraction of the burnt gas to reward to the contract account for execution.
pessimistic_gas_price_inflation_ratio: RationalPessimistic gas price inflation ratio.
Implementations§
Source§impl RuntimeFeesConfig
impl RuntimeFeesConfig
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 duplicate 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 Default for RuntimeFeesConfig
impl Default for RuntimeFeesConfig
Source§impl<'de> Deserialize<'de> for RuntimeFeesConfig
impl<'de> Deserialize<'de> for RuntimeFeesConfig
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 Hash for RuntimeFeesConfig
impl Hash for RuntimeFeesConfig
Source§impl PartialEq for RuntimeFeesConfig
impl PartialEq for RuntimeFeesConfig
Source§impl Serialize for RuntimeFeesConfig
impl Serialize for RuntimeFeesConfig
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