EVMC
evmc_host_interface Struct Reference

The Host interface. More...

#include <evmc.h>

Public Attributes

evmc_account_exists_fn account_exists
 Check account existence callback function. More...
 
evmc_get_storage_fn get_storage
 Get storage callback function. More...
 
evmc_set_storage_fn set_storage
 Set storage callback function. More...
 
evmc_get_balance_fn get_balance
 Get balance callback function. More...
 
evmc_get_code_size_fn get_code_size
 Get code size callback function. More...
 
evmc_get_code_hash_fn get_code_hash
 Get code hash callback function. More...
 
evmc_copy_code_fn copy_code
 Copy code callback function. More...
 
evmc_selfdestruct_fn selfdestruct
 Selfdestruct callback function. More...
 
evmc_call_fn call
 Call callback function. More...
 
evmc_get_tx_context_fn get_tx_context
 Get transaction context callback function. More...
 
evmc_get_block_hash_fn get_block_hash
 Get block hash callback function. More...
 
evmc_emit_log_fn emit_log
 Emit log callback function. More...
 

Detailed Description

The Host interface.

The set of all callback functions expected by VM instances. This is C realisation of vtable for OOP interface (only virtual methods, no data). Host implementations SHOULD create constant singletons of this (similarly to vtables) to lower the maintenance and memory management cost.

Definition at line 621 of file evmc.h.

Member Data Documentation

◆ account_exists

evmc_account_exists_fn evmc_host_interface::account_exists

Check account existence callback function.

Definition at line 624 of file evmc.h.

◆ call

evmc_call_fn evmc_host_interface::call

Call callback function.

Definition at line 648 of file evmc.h.

◆ copy_code

evmc_copy_code_fn evmc_host_interface::copy_code

Copy code callback function.

Definition at line 642 of file evmc.h.

◆ emit_log

evmc_emit_log_fn evmc_host_interface::emit_log

Emit log callback function.

Definition at line 657 of file evmc.h.

◆ get_balance

evmc_get_balance_fn evmc_host_interface::get_balance

Get balance callback function.

Definition at line 633 of file evmc.h.

◆ get_block_hash

evmc_get_block_hash_fn evmc_host_interface::get_block_hash

Get block hash callback function.

Definition at line 654 of file evmc.h.

◆ get_code_hash

evmc_get_code_hash_fn evmc_host_interface::get_code_hash

Get code hash callback function.

Definition at line 639 of file evmc.h.

◆ get_code_size

evmc_get_code_size_fn evmc_host_interface::get_code_size

Get code size callback function.

Definition at line 636 of file evmc.h.

◆ get_storage

evmc_get_storage_fn evmc_host_interface::get_storage

Get storage callback function.

Definition at line 627 of file evmc.h.

◆ get_tx_context

evmc_get_tx_context_fn evmc_host_interface::get_tx_context

Get transaction context callback function.

Definition at line 651 of file evmc.h.

◆ selfdestruct

evmc_selfdestruct_fn evmc_host_interface::selfdestruct

Selfdestruct callback function.

Definition at line 645 of file evmc.h.

◆ set_storage

evmc_set_storage_fn evmc_host_interface::set_storage

Set storage callback function.

Definition at line 630 of file evmc.h.


The documentation for this struct was generated from the following file: