EVMC
|
Wrapper around EVMC host context / host interface. More...
#include <evmc.hpp>
Inherits evmc::HostInterface.
Public Member Functions | |
HostContext ()=default | |
Default constructor for null Host context. | |
HostContext (const evmc_host_interface &interface, evmc_host_context *ctx) noexcept | |
Constructor from the EVMC Host primitives. More... | |
bool | account_exists (const address &address) const noexcept final |
Check account existence callback function. More... | |
bytes32 | get_storage (const address &address, const bytes32 &key) const noexcept final |
Get storage callback function. More... | |
evmc_storage_status | set_storage (const address &address, const bytes32 &key, const bytes32 &value) noexcept final |
Set storage callback function. More... | |
uint256be | get_balance (const address &address) const noexcept final |
Get balance callback function. More... | |
size_t | get_code_size (const address &address) const noexcept final |
Get code size callback function. More... | |
bytes32 | get_code_hash (const address &address) const noexcept final |
Get code hash callback function. More... | |
size_t | copy_code (const address &address, size_t code_offset, uint8_t *buffer_data, size_t buffer_size) const noexcept final |
Copy code callback function. More... | |
void | selfdestruct (const address &addr, const address &beneficiary) noexcept final |
Selfdestruct callback function. More... | |
result | call (const evmc_message &message) noexcept final |
Call callback function. More... | |
evmc_tx_context | get_tx_context () const noexcept final |
Get transaction context callback function. More... | |
bytes32 | get_block_hash (int64_t number) const noexcept final |
Get block hash callback function. More... | |
void | emit_log (const address &addr, const uint8_t *data, size_t data_size, const bytes32 topics[], size_t topics_count) noexcept final |
Emit log callback function. More... | |
Wrapper around EVMC host context / host interface.
To be used by VM implementations as better alternative to using evmc_host_context directly.
|
inlinenoexcept |
|
inlinefinalvirtualnoexcept |
Check account existence callback function.
Implements evmc::HostInterface.
Definition at line 476 of file evmc.hpp.
|
inlinefinalvirtualnoexcept |
|
inlinefinalvirtualnoexcept |
Copy code callback function.
Implements evmc::HostInterface.
Definition at line 508 of file evmc.hpp.
|
inlinefinalvirtualnoexcept |
Emit log callback function.
Implements evmc::HostInterface.
Definition at line 544 of file evmc.hpp.
Get balance callback function.
Implements evmc::HostInterface.
Definition at line 493 of file evmc.hpp.
|
inlinefinalvirtualnoexcept |
Get block hash callback function.
Implements evmc::HostInterface.
Definition at line 539 of file evmc.hpp.
Get code hash callback function.
Implements evmc::HostInterface.
Definition at line 503 of file evmc.hpp.
|
inlinefinalvirtualnoexcept |
Get code size callback function.
Implements evmc::HostInterface.
Definition at line 498 of file evmc.hpp.
|
inlinefinalvirtualnoexcept |
Get storage callback function.
Implements evmc::HostInterface.
Definition at line 481 of file evmc.hpp.
|
inlinefinalvirtualnoexcept |
Get transaction context callback function.
The implementation caches the received transaction context by assuming that the block timestamp should never be zero.
Implements evmc::HostInterface.
Definition at line 532 of file evmc.hpp.
|
inlinefinalvirtualnoexcept |
Selfdestruct callback function.
Implements evmc::HostInterface.
Definition at line 516 of file evmc.hpp.
|
inlinefinalvirtualnoexcept |
Set storage callback function.
Implements evmc::HostInterface.
Definition at line 486 of file evmc.hpp.