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

pub struct DataReceiptCreationConfig {
    pub base_cost: Fee,
    pub cost_per_byte: Fee,
}
Expand description

Describes the cost of creating a data receipt, DataReceipt.

Fields

base_cost: Fee

Base cost of creating a data receipt. Both send and exec costs are burned when a new receipt has input dependencies. The gas is charged for each input dependency. The dependencies are specified when a receipt is created using promise_then and promise_batch_then. NOTE: Any receipt with output dependencies will produce data receipts. Even if it fails. Even if the last action is not a function call (in case of success it will return empty value).

cost_per_byte: Fee

Additional cost per byte sent. Both send and exec costs are burned when a function call finishes execution and returns N bytes of data to every output dependency. For each output dependency the cost is (send(sir) + exec()) * N.

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.