referrerpolicy=no-referrer-when-downgrade
snowbridge_system_v2_runtime_api

Trait ControlV2Api

Source
pub trait ControlV2Api<Block: BlockT>: Core<Block> {
    // Provided method
    fn agent_id(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        location: VersionedLocation,
    ) -> Result<Option<AgentId>, ApiError> { ... }
}

Provided Methods§

Source

fn agent_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, location: VersionedLocation, ) -> Result<Option<AgentId>, ApiError>

Provides the Agent ID on Ethereum for the specified location.

Trait Implementations§

Source§

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

Source§

const ID: [u8; 8] = _

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§

impl<__SrApiBlock__: BlockT, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> ControlV2Api<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send,