Type Definition evmc_sys::evmc_access_storage_fn[][src]

pub type evmc_access_storage_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, address: *const evmc_address, key: *const evmc_bytes32) -> evmc_access_status>;
Expand description

Access storage callback function.

This callback function is used by a VM to add the given account storage entry to accessed_storage_keys substate (EIP-2929).

@param context The Host execution context. @param address The address of the account. @param key The index of the account’s storage entry. @return EVMC_ACCESS_WARM if accessed_storage_keys already contained the key or EVMC_ACCESS_COLD otherwise.