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

The API to interact with contracts without using executive.

Provided Methods§

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

Returns the contracts searchable by name, author or metadata

Trait Implementations§

§

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

§

const ID: [u8; 8] = [185u8, 2u8, 70u8, 147u8, 93u8, 225u8, 160u8, 240u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§