pub trait ContractsRegistryRuntimeApi<Block: BlockT, AccountId>: Core<Block>where
    AccountId: Codec,{
    // Provided method
    fn fetch_contracts(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        author: Option<AccountId>,
        metadata: Option<Vec<u8>>
    ) -> Result<FetchContractsResult, ApiError> { ... }
}
Expand description

The API to interact with contracts without using executive.

Provided Methods§

source

fn fetch_contracts( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, author: Option<AccountId>, metadata: Option<Vec<u8>> ) -> Result<FetchContractsResult, ApiError>

Returns the contracts searchable by name, author or metadata

Trait Implementations§

source§

impl<Block: BlockT, AccountId> RuntimeApiInfo for dyn ContractsRegistryRuntimeApi<Block, AccountId>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§