gear_wasm_instrument

Module gas_metering

Source
Expand description

This module is used to instrument a Wasm module with gas metering code.

The primary public interface is the inject function which transforms a given module into one that charges gas for code to be executed. See function documentation for usage and details.

Structs§

Enums§

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.