Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
gas_event.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <stdexcept>
5
#include <string>
6
7
#include "
barretenberg/vm2/common/aztec_types.hpp
"
8
9
namespace
bb::avm2::simulation
{
10
11
struct
OutOfGasException
:
public
std::runtime_error {
12
explicit
OutOfGasException
(
const
std::string& message)
13
:
std
::runtime_error(message)
14
{}
15
};
16
17
struct
GasEvent
{
18
uint32_t
addressing_gas
= 0;
19
Gas
dynamic_gas_factor
= { 0, 0 };
20
21
uint64_t
total_gas_used_l2
= 0;
22
uint64_t
total_gas_used_da
= 0;
23
24
bool
oog_l2
=
false
;
25
bool
oog_da
=
false
;
26
27
bool
operator==
(
const
GasEvent
& other)
const
=
default
;
28
};
29
30
}
// namespace bb::avm2::simulation
aztec_types.hpp
bb::avm2::simulation
Definition
address_derivation_event.hpp:6
std
STL namespace.
bb::avm2::Gas
Definition
aztec_types.hpp:317
bb::avm2::simulation::GasEvent
Definition
gas_event.hpp:17
bb::avm2::simulation::GasEvent::addressing_gas
uint32_t addressing_gas
Definition
gas_event.hpp:18
bb::avm2::simulation::GasEvent::operator==
bool operator==(const GasEvent &other) const =default
bb::avm2::simulation::GasEvent::dynamic_gas_factor
Gas dynamic_gas_factor
Definition
gas_event.hpp:19
bb::avm2::simulation::GasEvent::total_gas_used_l2
uint64_t total_gas_used_l2
Definition
gas_event.hpp:21
bb::avm2::simulation::GasEvent::total_gas_used_da
uint64_t total_gas_used_da
Definition
gas_event.hpp:22
bb::avm2::simulation::GasEvent::oog_da
bool oog_da
Definition
gas_event.hpp:25
bb::avm2::simulation::GasEvent::oog_l2
bool oog_l2
Definition
gas_event.hpp:24
bb::avm2::simulation::OutOfGasException
Definition
gas_event.hpp:11
bb::avm2::simulation::OutOfGasException::OutOfGasException
OutOfGasException(const std::string &message)
Definition
gas_event.hpp:12
src
barretenberg
vm2
simulation
events
gas_event.hpp
Generated by
1.9.8