Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <gas_tracker.hpp>
Public Member Functions | |
GasTracker (GasEvent &gas_event, const Instruction &instruction, const InstructionInfoDBInterface &instruction_info_db, ContextInterface &context, RangeCheckInterface &range_check) | |
void | consume_gas (const Gas &dynamic_gas_factor={ 0, 0 }) override |
Gas | compute_gas_limit_for_call (const Gas &allocated_gas) override |
![]() | |
virtual | ~GasTrackerInterface ()=default |
Private Attributes | |
ContextInterface & | context |
const ExecInstructionSpec & | spec |
RangeCheckInterface & | range_check |
GasEvent & | gas_event |
Definition at line 21 of file gas_tracker.hpp.
bb::avm2::simulation::GasTracker::GasTracker | ( | GasEvent & | gas_event, |
const Instruction & | instruction, | ||
const InstructionInfoDBInterface & | instruction_info_db, | ||
ContextInterface & | context, | ||
RangeCheckInterface & | range_check | ||
) |
Definition at line 41 of file gas_tracker.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::GasTrackerInterface.
Definition at line 121 of file gas_tracker.cpp.
|
overridevirtual |
Implements bb::avm2::simulation::GasTrackerInterface.
Definition at line 54 of file gas_tracker.cpp.
|
private |
Definition at line 33 of file gas_tracker.hpp.
|
private |
Definition at line 36 of file gas_tracker.hpp.
|
private |
Definition at line 35 of file gas_tracker.hpp.
|
private |
Definition at line 34 of file gas_tracker.hpp.