pub trait ParachainHost<Block, H = H256, N = u32>: Core<Block>where
Block: Block,
H: Encode + Decode,
N: Encode + Decode,{
Show 40 methods
fn validators(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<Public, Global>, ApiError> { ... }
fn validators_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<Public, Global>, ApiError> { ... }
fn validator_groups(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError> { ... }
fn validator_groups_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError> { ... }
fn availability_cores(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CoreState<H, N>, Global>, ApiError> { ... }
fn availability_cores_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CoreState<H, N>, Global>, ApiError> { ... }
fn persisted_validation_data(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError> { ... }
fn persisted_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError> { ... }
fn assumed_validation_data(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError> { ... }
fn assumed_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError> { ... }
fn check_validation_outputs(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError> { ... }
fn check_validation_outputs_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError> { ... }
fn session_index_for_child(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u32, ApiError> { ... }
fn session_index_for_child_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u32, ApiError> { ... }
fn validation_code(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError> { ... }
fn validation_code_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError> { ... }
fn candidate_pending_availability(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError> { ... }
fn candidate_pending_availability_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError> { ... }
fn candidate_events(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError> { ... }
fn candidate_events_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError> { ... }
fn dmq_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError> { ... }
fn dmq_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError> { ... }
fn inbound_hrmp_channels_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError> { ... }
fn inbound_hrmp_channels_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError> { ... }
fn validation_code_by_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError> { ... }
fn validation_code_by_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError> { ... }
fn on_chain_votes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError> { ... }
fn on_chain_votes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError> { ... }
fn session_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<SessionInfo>, ApiError> { ... }
fn session_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<SessionInfo>, ApiError> { ... }
fn submit_pvf_check_statement(
&self,
__runtime_api_at_param__: &BlockId<Block>,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError> { ... }
fn submit_pvf_check_statement_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError> { ... }
fn pvfs_require_precheck(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<ValidationCodeHash, Global>, ApiError> { ... }
fn pvfs_require_precheck_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<ValidationCodeHash, Global>, ApiError> { ... }
fn validation_code_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError> { ... }
fn validation_code_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError> { ... }
fn session_info_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError> { ... }
fn session_info_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError> { ... }
fn staging_get_disputes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError> { ... }
fn staging_get_disputes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError> { ... }
}
Expand description
The API for querying the state of parachains on-chain.
Provided Methods§
sourcefn validators(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<Public, Global>, ApiError>
fn validators(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<Public, Global>, ApiError>
Get the current validators.
sourcefn validators_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<Public, Global>, ApiError>
fn validators_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<Public, Global>, ApiError>
Get the current validators.
sourcefn validator_groups(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError>
fn validator_groups(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError>
Returns the validator groups and rotation info localized based on the hypothetical child
of a block whose state this is invoked on. Note that now
in the GroupRotationInfo
should be the successor of the number of the block.
sourcefn validator_groups_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError>
fn validator_groups_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<(Vec<Vec<ValidatorIndex, Global>, Global>, GroupRotationInfo<N>), ApiError>
Returns the validator groups and rotation info localized based on the hypothetical child
of a block whose state this is invoked on. Note that now
in the GroupRotationInfo
should be the successor of the number of the block.
sourcefn availability_cores(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CoreState<H, N>, Global>, ApiError>
fn availability_cores(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CoreState<H, N>, Global>, ApiError>
Yields information on all availability cores as relevant to the child block. Cores are either free or occupied. Free cores can have paras assigned to them.
sourcefn availability_cores_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CoreState<H, N>, Global>, ApiError>
fn availability_cores_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CoreState<H, N>, Global>, ApiError>
Yields information on all availability cores as relevant to the child block. Cores are either free or occupied. Free cores can have paras assigned to them.
sourcefn persisted_validation_data(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError>
fn persisted_validation_data(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError>
Yields the persisted validation data for the given ParaId
along with an assumption that
should be used if the para currently occupies a core.
Returns None
if either the para is not registered or the assumption is Freed
and the para already occupies a core.
sourcefn persisted_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError>
fn persisted_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<PersistedValidationData<H, N>>, ApiError>
Yields the persisted validation data for the given ParaId
along with an assumption that
should be used if the para currently occupies a core.
Returns None
if either the para is not registered or the assumption is Freed
and the para already occupies a core.
sourcefn assumed_validation_data(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError>
fn assumed_validation_data(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError>
Returns the persisted validation data for the given ParaId
along with the corresponding
validation code hash. Instead of accepting assumption about the para, matches the validation
data hash against an expected one and yields None
if they’re not equal.
sourcefn assumed_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError>
fn assumed_validation_data_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
expected_persisted_validation_data_hash: H256
) -> Result<Option<(PersistedValidationData<H, N>, ValidationCodeHash)>, ApiError>
Returns the persisted validation data for the given ParaId
along with the corresponding
validation code hash. Instead of accepting assumption about the para, matches the validation
data hash against an expected one and yields None
if they’re not equal.
sourcefn check_validation_outputs(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError>
fn check_validation_outputs(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError>
Checks if the given validation outputs pass the acceptance criteria.
sourcefn check_validation_outputs_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError>
fn check_validation_outputs_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
outputs: CandidateCommitments<u32>
) -> Result<bool, ApiError>
Checks if the given validation outputs pass the acceptance criteria.
sourcefn session_index_for_child(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u32, ApiError>
fn session_index_for_child(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<u32, ApiError>
Returns the session index expected at a child of the block.
This can be used to instantiate a SigningContext
.
sourcefn session_index_for_child_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u32, ApiError>
fn session_index_for_child_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<u32, ApiError>
Returns the session index expected at a child of the block.
This can be used to instantiate a SigningContext
.
sourcefn validation_code(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError>
fn validation_code(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError>
Fetch the validation code used by a para, making the given OccupiedCoreAssumption
.
Returns None
if either the para is not registered or the assumption is Freed
and the para already occupies a core.
sourcefn validation_code_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError>
fn validation_code_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCode>, ApiError>
Fetch the validation code used by a para, making the given OccupiedCoreAssumption
.
Returns None
if either the para is not registered or the assumption is Freed
and the para already occupies a core.
sourcefn candidate_pending_availability(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError>
fn candidate_pending_availability(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError>
Get the receipt of a candidate pending availability. This returns Some
for any paras
assigned to occupied cores in availability_cores
and None
otherwise.
sourcefn candidate_pending_availability_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError>
fn candidate_pending_availability_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id
) -> Result<Option<CommittedCandidateReceipt<H>>, ApiError>
Get the receipt of a candidate pending availability. This returns Some
for any paras
assigned to occupied cores in availability_cores
and None
otherwise.
sourcefn candidate_events(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError>
fn candidate_events(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError>
Get a vector of events concerning candidates that occurred within a block.
sourcefn candidate_events_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError>
fn candidate_events_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<CandidateEvent<H>, Global>, ApiError>
Get a vector of events concerning candidates that occurred within a block.
sourcefn dmq_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError>
fn dmq_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError>
Get all the pending inbound messages in the downward message queue for a para.
sourcefn dmq_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError>
fn dmq_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<Vec<InboundDownwardMessage<N>, Global>, ApiError>
Get all the pending inbound messages in the downward message queue for a para.
sourcefn inbound_hrmp_channels_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError>
fn inbound_hrmp_channels_contents(
&self,
__runtime_api_at_param__: &BlockId<Block>,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError>
Get the contents of all channels addressed to the given recipient. Channels that have no messages in them are also included.
sourcefn inbound_hrmp_channels_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError>
fn inbound_hrmp_channels_contents_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
recipient: Id
) -> Result<BTreeMap<Id, Vec<InboundHrmpMessage<N>, Global>, Global>, ApiError>
Get the contents of all channels addressed to the given recipient. Channels that have no messages in them are also included.
sourcefn validation_code_by_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError>
fn validation_code_by_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError>
Get the validation code from its hash.
sourcefn validation_code_by_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError>
fn validation_code_by_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
hash: ValidationCodeHash
) -> Result<Option<ValidationCode>, ApiError>
Get the validation code from its hash.
sourcefn on_chain_votes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError>
fn on_chain_votes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError>
Scrape dispute relevant from on-chain, backing votes and resolved disputes.
sourcefn on_chain_votes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError>
fn on_chain_votes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<ScrapedOnChainVotes<H>>, ApiError>
Scrape dispute relevant from on-chain, backing votes and resolved disputes.
sourcefn session_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<SessionInfo>, ApiError>
fn session_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<SessionInfo>, ApiError>
Get the session info for the given session, if stored.
NOTE: This function is only available since parachain host version 2.
sourcefn session_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<SessionInfo>, ApiError>
fn session_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<SessionInfo>, ApiError>
Get the session info for the given session, if stored.
NOTE: This function is only available since parachain host version 2.
sourcefn submit_pvf_check_statement(
&self,
__runtime_api_at_param__: &BlockId<Block>,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError>
fn submit_pvf_check_statement(
&self,
__runtime_api_at_param__: &BlockId<Block>,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError>
Submits a PVF pre-checking statement into the transaction pool.
NOTE: This function is only available since parachain host version 2.
sourcefn submit_pvf_check_statement_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError>
fn submit_pvf_check_statement_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
stmt: PvfCheckStatement,
signature: Signature
) -> Result<(), ApiError>
Submits a PVF pre-checking statement into the transaction pool.
NOTE: This function is only available since parachain host version 2.
sourcefn pvfs_require_precheck(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<ValidationCodeHash, Global>, ApiError>
fn pvfs_require_precheck(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<ValidationCodeHash, Global>, ApiError>
Returns code hashes of PVFs that require pre-checking by validators in the active set.
NOTE: This function is only available since parachain host version 2.
sourcefn pvfs_require_precheck_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<ValidationCodeHash, Global>, ApiError>
fn pvfs_require_precheck_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<ValidationCodeHash, Global>, ApiError>
Returns code hashes of PVFs that require pre-checking by validators in the active set.
NOTE: This function is only available since parachain host version 2.
sourcefn validation_code_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError>
fn validation_code_hash(
&self,
__runtime_api_at_param__: &BlockId<Block>,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError>
Fetch the hash of the validation code used by a para, making the given OccupiedCoreAssumption
.
NOTE: This function is only available since parachain host version 2.
sourcefn validation_code_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError>
fn validation_code_hash_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
para_id: Id,
assumption: OccupiedCoreAssumption
) -> Result<Option<ValidationCodeHash>, ApiError>
Fetch the hash of the validation code used by a para, making the given OccupiedCoreAssumption
.
NOTE: This function is only available since parachain host version 2.
sourcefn session_info_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError>
fn session_info_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError>
Old method to fetch v1 session info.
sourcefn session_info_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError>
fn session_info_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
index: u32
) -> Result<Option<OldV1SessionInfo>, ApiError>
Old method to fetch v1 session info.
sourcefn staging_get_disputes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError>
fn staging_get_disputes(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError>
Returns all onchain disputes. This is a staging method! Do not use on production runtimes!
sourcefn staging_get_disputes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError>
fn staging_get_disputes_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Vec<(u32, CandidateHash, DisputeState<u32>), Global>, ApiError>
Returns all onchain disputes. This is a staging method! Do not use on production runtimes!