Struct near_primitives_core::runtime::fees::RuntimeFeesConfig[][src]

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: Fee

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

  • send cost is burned when a receipt is created using promise_create or promise_batch_create
  • exec cost is burned when the receipt is being executed.
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: Rational

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

pessimistic_gas_price_inflation_ratio: Rational

Pessimistic gas price inflation ratio.

Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.