#include <fuzzer_context.hpp>
Definition at line 15 of file fuzzer_context.hpp.
◆ FuzzerContext()
| bb::avm2::fuzzer::FuzzerContext::FuzzerContext |
( |
| ) |
|
|
inline |
◆ add_contract_address()
| void bb::avm2::fuzzer::FuzzerContext::add_contract_address |
( |
FF |
address | ) |
|
|
inline |
Add a contract address to the context (without registering a contract)
Definition at line 30 of file fuzzer_context.hpp.
◆ contract_count()
| size_t bb::avm2::fuzzer::FuzzerContext::contract_count |
( |
| ) |
const |
|
inline |
◆ get_contract_address()
| FF bb::avm2::fuzzer::FuzzerContext::get_contract_address |
( |
size_t |
index | ) |
const |
|
inline |
Get a contract address by index (wraps around using modulo)
- Returns
- The contract address, or FF::zero() if no contracts registered
Definition at line 39 of file fuzzer_context.hpp.
◆ get_contract_db()
◆ has_contracts()
| bool bb::avm2::fuzzer::FuzzerContext::has_contracts |
( |
| ) |
const |
|
inline |
◆ register_contract_from_bytecode()
| FF bb::avm2::fuzzer::FuzzerContext::register_contract_from_bytecode |
( |
const std::vector< uint8_t > & |
bytecode | ) |
|
Register a contract from its bytecode.
- Parameters
-
| bytecode | The bytecode of the contract |
- Returns
- The address of the registered contract
- Note
- This function will also register the contract address in the world state
Definition at line 51 of file fuzzer_context.cpp.
◆ reset()
| void bb::avm2::fuzzer::FuzzerContext::reset |
( |
| ) |
|
Clear all contract addresses and reset the contract DB.
Definition at line 74 of file fuzzer_context.cpp.
◆ contract_addresses_
| std::vector<FF> bb::avm2::fuzzer::FuzzerContext::contract_addresses_ |
|
private |
◆ contract_db_
The documentation for this class was generated from the following files: