Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
gas_tracker.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace bb::avm2::simulation {
6
8 public:
9 virtual ~GasTrackerInterface() = default;
10 // @throws OutOfGasException.
11 virtual void consume_gas(const Gas& dynamic_gas_factor = { 0, 0 }) = 0;
12
13 virtual Gas compute_gas_limit_for_call(const Gas& allocated_gas) = 0;
14};
15
16} // namespace bb::avm2::simulation
virtual void consume_gas(const Gas &dynamic_gas_factor={ 0, 0 })=0
virtual Gas compute_gas_limit_for_call(const Gas &allocated_gas)=0