domain_test_primitives

Trait EvmOnchainStateApi

Source
pub trait EvmOnchainStateApi<Block: BlockT>: Core<Block> {
    // Provided method
    fn evm_contract_creation_allowed_by(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<Option<PermissionedActionAllowedBy<EthereumAccountId>>, ApiError> { ... }
}
Expand description

Api for querying onchain EVM state in tests

Provided Methods§

Source

fn evm_contract_creation_allowed_by( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Option<PermissionedActionAllowedBy<EthereumAccountId>>, ApiError>

Returns the current EVM contract creation allow list. Returns None if this is not an EVM domain.

Trait Implementations§

Source§

impl<Block: BlockT> RuntimeApiInfo for dyn EvmOnchainStateApi<Block>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§