Trait sp_domains::BundleProducerElectionApi

source ·
pub trait BundleProducerElectionApi<Block: BlockT, Balance: Encode + Decode>: Core<Block> {
    // Provided methods
    fn bundle_producer_election_params(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        domain_id: DomainId,
    ) -> Result<Option<BundleProducerElectionParams<Balance>>, ApiError> { ... }
    fn operator(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        operator_id: OperatorId,
    ) -> Result<Option<(OperatorPublicKey, Balance)>, ApiError> { ... }
}

Provided Methods§

source

fn bundle_producer_election_params( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, domain_id: DomainId, ) -> Result<Option<BundleProducerElectionParams<Balance>>, ApiError>

source

fn operator( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, operator_id: OperatorId, ) -> Result<Option<(OperatorPublicKey, Balance)>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, Balance: Encode + Decode> RuntimeApiInfo for dyn BundleProducerElectionApi<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§