Expand description
This module is used to instrument a Wasm module with gas metering code.
Structs§
- A type that implements
Rules
so that every instruction costs the same. - This type provides the functionality of
ConstantCostRules
. - Describes DB access weights.
- Describes the weight for instantiation of the module.
- Describes the weight for all categories of supported wasm instructions.
- Describes the upper limits on various metrics.
- Describes the weight for memory interaction.
- Describes the weight for renting.
- Definition of the cost schedule and other parameterization for the wasm vm.
- This type provides real gas cost of instructions on pallet-gear.
- Describes the weight for each imported function that a program is allowed to call.
- Describes weights for running tasks.
- Represents the computational time and storage space required for an operation.
Enums§
- Dynamic costs for memory growth.
Traits§
- An interface that describes instruction costs.
Functions§
- Transforms a given module into one that charges gas for code to be executed by proxy of an imported gas metering function.
- Helper procedure that makes adjustments after gas metering function injected.