pub trait AnchorRuntimeApi<Block, Hash, BlockNumber>: Core<Block>
where Block: Block, Hash: Codec, BlockNumber: Codec,
{ // Provided method fn get_anchor_by_id( &self, __runtime_api_at_param__: <Block as Block>::Hash, id: Hash ) -> Result<Option<AnchorData<Hash, BlockNumber>>, ApiError> { ... } }
Expand description

Runtime Api for the pallet-anchors, to be implemented by and for a specific runtime that uses that pallet.

Provided Methods§

fn get_anchor_by_id( &self, __runtime_api_at_param__: <Block as Block>::Hash, id: Hash ) -> Result<Option<AnchorData<Hash, BlockNumber>>, ApiError>

Trait Implementations§

§

impl<Block, Hash, BlockNumber> RuntimeApiInfo for dyn AnchorApi<Block, Hash, BlockNumber>
where Block: Block,

§

const ID: [u8; 8] = _

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementations on Foreign Types§

§

impl<__SrApiBlock__, RuntimeApiImplCall> AnchorApi<__SrApiBlock__, <BlakeTwo256 as Hash>::Output, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where __SrApiBlock__: Block + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static, <RuntimeApiImplCall as CallApiAt<__SrApiBlock__>>::StateBackend: Backend<<<__SrApiBlock__ as Block>::Header as Header>::Hashing>, &'static RuntimeApiImplCall: Send, <BlakeTwo256 as Hash>::Output: UnwindSafe + RefUnwindSafe, Option<AnchorData<<BlakeTwo256 as Hash>::Output, u32>>: UnwindSafe + RefUnwindSafe, <__SrApiBlock__ as Block>::Header: UnwindSafe + RefUnwindSafe,

§

impl<__SrApiBlock__, RuntimeApiImplCall> AnchorApi<__SrApiBlock__, <BlakeTwo256 as Hash>::Output, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where __SrApiBlock__: Block + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static, <RuntimeApiImplCall as CallApiAt<__SrApiBlock__>>::StateBackend: Backend<<<__SrApiBlock__ as Block>::Header as Header>::Hashing>, &'static RuntimeApiImplCall: Send, <BlakeTwo256 as Hash>::Output: UnwindSafe + RefUnwindSafe, Option<AnchorData<<BlakeTwo256 as Hash>::Output, u32>>: UnwindSafe + RefUnwindSafe, <__SrApiBlock__ as Block>::Header: UnwindSafe + RefUnwindSafe,

§

impl<__SrApiBlock__, RuntimeApiImplCall> AnchorApi<__SrApiBlock__, <BlakeTwo256 as Hash>::Output, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where __SrApiBlock__: Block + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static, <RuntimeApiImplCall as CallApiAt<__SrApiBlock__>>::StateBackend: Backend<<<__SrApiBlock__ as Block>::Header as Header>::Hashing>, &'static RuntimeApiImplCall: Send, <BlakeTwo256 as Hash>::Output: UnwindSafe + RefUnwindSafe, Option<AnchorData<<BlakeTwo256 as Hash>::Output, u32>>: UnwindSafe + RefUnwindSafe, <__SrApiBlock__ as Block>::Header: UnwindSafe + RefUnwindSafe,

Implementors§