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 <optional>
5#include <stdexcept>
6#include <string>
7#include <vector>
8
13
14namespace bb::avm2::simulation {
15
16struct OutOfGasException : public std::runtime_error {
17 explicit OutOfGasException(const std::string& message)
18 : std::runtime_error(message)
19 {}
20};
21
22struct GasEvent {
23 uint32_t addressing_gas = 0;
25
28
29 bool oog_l2 = false;
30 bool oog_da = false;
31
32 bool operator==(const GasEvent& other) const = default;
33};
34
35} // namespace bb::avm2::simulation
STL namespace.
bool operator==(const GasEvent &other) const =default
OutOfGasException(const std::string &message)
Definition gas_event.hpp:17