Struct near_primitives_core::runtime::fees::DataReceiptCreationConfig [−][src]
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
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DataReceiptCreationConfig
impl Send for DataReceiptCreationConfig
impl Sync for DataReceiptCreationConfig
impl Unpin for DataReceiptCreationConfig
impl UnwindSafe for DataReceiptCreationConfig
Blanket Implementations
Mutably borrows from an owned value. Read more