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§
sourcefn fetch_contracts(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
author: Option<AccountId>,
metadata: Option<Vec<u8>>
) -> Result<FetchContractsResult, ApiError>
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