evmc_access_storage_fn

Type Alias evmc_access_storage_fn 

Source
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.

Aliased Type§

pub enum evmc_access_storage_fn {
    None,
    Some(unsafe extern "C" fn(*mut evmc_host_context, *const evmc_address, *const evmc_bytes32) -> evmc_access_status),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut evmc_host_context, *const evmc_address, *const evmc_bytes32) -> evmc_access_status)

Some value of type T.