evm 1.1.1

Ethereum Virtual Machine
Documentation
1
2
3
4
5
6
7
8
9
10
//! EVM gasometer.

use evm_interpreter::uint::U256;
use evm_interpreter::{ExitError, runtime::GasState};

/// Mutable [GasState]. This simply allows recording an arbitrary gas.
pub trait GasMutState: GasState {
	/// Record an arbitrary gas into the current gasometer.
	fn record_gas(&mut self, gas: U256) -> Result<(), ExitError>;
}