EVMC
|
Mocked account. More...
#include <mocked_host.hpp>
Public Member Functions | |
void | set_balance (uint64_t x) noexcept |
Helper method for setting balance by numeric type. | |
Public Attributes | |
int | nonce = 0 |
The account nonce. | |
bytes | code |
The account code. | |
bytes32 | codehash |
The code hash. Can be a value not related to the actual code. | |
uint256be | balance |
The account balance. | |
std::unordered_map< bytes32, StorageValue > | storage |
The account storage map. | |
std::unordered_map< bytes32, bytes32 > | transient_storage |
The account transient storage. | |
Mocked account.
Definition at line 45 of file mocked_host.hpp.
|
inlinenoexcept |
Helper method for setting balance by numeric type.
Definition at line 66 of file mocked_host.hpp.
uint256be evmc::MockedAccount::balance |
The account balance.
Definition at line 57 of file mocked_host.hpp.
bytes evmc::MockedAccount::code |
The account code.
Definition at line 51 of file mocked_host.hpp.
bytes32 evmc::MockedAccount::codehash |
The code hash. Can be a value not related to the actual code.
Definition at line 54 of file mocked_host.hpp.
int evmc::MockedAccount::nonce = 0 |
The account nonce.
Definition at line 48 of file mocked_host.hpp.
std::unordered_map<bytes32, StorageValue> evmc::MockedAccount::storage |
The account storage map.
Definition at line 60 of file mocked_host.hpp.
The account transient storage.
Definition at line 63 of file mocked_host.hpp.