referrerpolicy=no-referrer-when-downgrade
snowbridge_outbound_queue_runtime_api

Trait OutboundQueueApi

Source
pub trait OutboundQueueApi<Block: BlockT, Balance>: Core<Block>
where Balance: BalanceT,
{ // Provided methods fn prove_message( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, leaf_index: u64, ) -> Result<Option<MerkleProof>, ApiError> { ... } fn calculate_fee( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, command: Command, parameters: Option<PricingParameters<Balance>>, ) -> Result<Fee<Balance>, ApiError> { ... } }

Provided Methods§

Source

fn prove_message( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, leaf_index: u64, ) -> Result<Option<MerkleProof>, ApiError>

Generate a merkle proof for a committed message identified by leaf_index. The merkle root is stored in the block header as a sp_runtime::generic::DigestItem::Other

Source

fn calculate_fee( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, command: Command, parameters: Option<PricingParameters<Balance>>, ) -> Result<Fee<Balance>, ApiError>

Calculate the delivery fee for command

Trait Implementations§

Source§

impl<Block: BlockT, Balance> RuntimeApiInfo for dyn OutboundQueueApi<Block, Balance>

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> OutboundQueueApi<__SrApiBlock__, u128> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send,

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