Module near_primitives_core::runtime::fees [−][src]
Expand description
Describes the various costs incurred by creating receipts. We use the following abbreviation for readability:
- sir – sender is receiver. Receipts that are directed by an account to itself are guaranteed to not be cross-shard which is cheaper than cross-shard. Conversely, when sender is not a receiver it might or might not be a cross-shard communication.
Modules
Serde serializer for u128 to integer. This is copy from core/primitives/src/serialize.rs It is required as this module doesn’t depend on primitives. TODO(3384): move basic primitives into a separate module and use in runtime.
Structs
Describes the cost of creating an access key.
Describes the cost of creating a specific action, Action
. Includes all variants.
Describes the cost of creating a data receipt, DataReceipt
.
Costs associated with an object that can only be sent over the network (and executed
by the receiver).
NOTE: send_sir
or send_not_sir
fees are usually burned when the item is being created.
And execution
fee is burned when the item is being executed.
Describes cost of storage per block
Functions
Helper functions for computing Transfer fees. In case of implicit account creation they always include extra fees for the CreateAccount and AddFullAccessKey actions that are implicit. We can assume that no overflow will happen here.