[][src]Struct near_sdk::RuntimeFeesConfig

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: Ratio<isize>,
    pub pessimistic_gas_price_inflation_ratio: Ratio<isize>,
}

Fields

action_receipt_creation_config: Fee

Describes the cost of creating an action receipt, ActionReceipt, excluding the actual cost of actions.

data_receipt_creation_config: DataReceiptCreationConfig

Describes the cost of creating a data receipt, DataReceipt.

action_creation_config: ActionCreationConfig

Describes the cost of creating a certain action, Action. Includes all variants.

storage_usage_config: StorageUsageConfig

Describes fees for storage.

burnt_gas_reward: Ratio<isize>

Fraction of the burnt gas to reward to the contract account for execution.

pessimistic_gas_price_inflation_ratio: Ratio<isize>

Pessimistic gas price inflation ratio.

Implementations

impl RuntimeFeesConfig[src]

pub fn free() -> RuntimeFeesConfig[src]

pub fn min_receipt_with_function_call_gas(&self) -> u64[src]

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

impl Clone for RuntimeFeesConfig[src]

impl Debug for RuntimeFeesConfig[src]

impl Default for RuntimeFeesConfig[src]

impl<'de> Deserialize<'de> for RuntimeFeesConfig[src]

impl Eq for RuntimeFeesConfig[src]

impl Hash for RuntimeFeesConfig[src]

impl PartialEq<RuntimeFeesConfig> for RuntimeFeesConfig[src]

impl Serialize for RuntimeFeesConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.