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
8
9namespace bb::avm2::simulation {
10
11struct OutOfGasException : public std::runtime_error {
12 explicit OutOfGasException(const std::string& message)
13 : std::runtime_error(message)
14 {}
15};
16
17struct GasEvent {
18 uint32_t addressing_gas = 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
STL namespace.
bool operator==(const GasEvent &other) const =default
OutOfGasException(const std::string &message)
Definition gas_event.hpp:12