Trait polkadot_primitives::v0::ParachainHost[][src]

pub trait ParachainHost<Block: BlockT>: Core<Block> {
Show 18 methods fn validators(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<ValidatorId>, ApiError> { ... }
fn validators_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<ValidatorId>, ApiError> { ... }
fn duty_roster(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<DutyRoster, ApiError> { ... }
fn duty_roster_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<DutyRoster, ApiError> { ... }
fn active_parachains(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<(Id, Option<(CollatorId, Retriable)>)>, ApiError> { ... }
fn active_parachains_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<(Id, Option<(CollatorId, Retriable)>)>, ApiError> { ... }
fn global_validation_data(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<GlobalValidationData, ApiError> { ... }
fn global_validation_data_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<GlobalValidationData, ApiError> { ... }
fn local_validation_data(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        id: Id
    ) -> Result<Option<LocalValidationData>, ApiError> { ... }
fn local_validation_data_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        id: Id
    ) -> Result<Option<LocalValidationData>, ApiError> { ... }
fn parachain_code(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        id: Id
    ) -> Result<Option<ValidationCode>, ApiError> { ... }
fn parachain_code_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        id: Id
    ) -> Result<Option<ValidationCode>, ApiError> { ... }
fn get_heads(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        extrinsics: Vec<<Block as BlockT>::Extrinsic>
    ) -> Result<Option<Vec<AbridgedCandidateReceipt>>, ApiError> { ... }
fn get_heads_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        extrinsics: Vec<<Block as BlockT>::Extrinsic>
    ) -> Result<Option<Vec<AbridgedCandidateReceipt>>, ApiError> { ... }
fn signing_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<SigningContext, ApiError> { ... }
fn signing_context_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<SigningContext, ApiError> { ... }
fn downward_messages(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        id: Id
    ) -> Result<Vec<DownwardMessage>, ApiError> { ... }
fn downward_messages_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        id: Id
    ) -> Result<Vec<DownwardMessage>, ApiError> { ... }
}
Expand description

The API for querying the state of parachains on-chain.

Provided methods

Get the current validators.

Get the current validators.

Get the current duty roster.

Get the current duty roster.

Get the currently active parachains.

Get the currently active parachains.

Get the global validation schedule that all parachains should be validated under.

Get the global validation schedule that all parachains should be validated under.

Get the local validation data for a particular parachain.

Get the local validation data for a particular parachain.

Get the given parachain’s head code blob.

Get the given parachain’s head code blob.

Extract the abridged head that was set in the extrinsics.

Extract the abridged head that was set in the extrinsics.

Get a SigningContext with current SessionIndex and parent hash.

Get a SigningContext with current SessionIndex and parent hash.

Get the DownwardMessage’s for the given parachain.

Get the DownwardMessage’s for the given parachain.

Trait Implementations

The identifier of the runtime api.

The version of the runtime api.

Implementors