referrerpolicy=no-referrer-when-downgrade
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§