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
10
11namespace bb::avm2::simulation {
12
13class GasTracker final : public GasTrackerInterface {
14 public:
20
21 void consume_gas(const Gas& dynamic_gas_factor = { 0, 0 }) override;
22 Gas compute_gas_limit_for_call(const Gas& allocated_gas) override;
23
24 private:
29};
30
31} // namespace bb::avm2::simulation
Gas compute_gas_limit_for_call(const Gas &allocated_gas) override
GreaterThanInterface & greater_than
const ExecInstructionSpec & spec
void consume_gas(const Gas &dynamic_gas_factor={ 0, 0 }) override
InstructionInfoDB instruction_info_db
Instruction instruction