Trait pallet_bridge_parachains::benchmarking::Config
source · pub trait Config<I: 'static>: Config<I> {
// Required methods
fn parachains() -> Vec<ParaId>;
fn prepare_parachain_heads_proof(
parachains: &[ParaId],
parachain_head_size: u32,
proof_params: UnverifiedStorageProofParams,
) -> (RelayBlockNumber, RelayBlockHash, ParaHeadsProof, Vec<(ParaId, ParaHash)>);
}
Expand description
Trait that must be implemented by runtime to benchmark the parachains finality pallet.
Required Methods§
sourcefn parachains() -> Vec<ParaId>
fn parachains() -> Vec<ParaId>
Returns vector of supported parachains.
sourcefn prepare_parachain_heads_proof(
parachains: &[ParaId],
parachain_head_size: u32,
proof_params: UnverifiedStorageProofParams,
) -> (RelayBlockNumber, RelayBlockHash, ParaHeadsProof, Vec<(ParaId, ParaHash)>)
fn prepare_parachain_heads_proof( parachains: &[ParaId], parachain_head_size: u32, proof_params: UnverifiedStorageProofParams, ) -> (RelayBlockNumber, RelayBlockHash, ParaHeadsProof, Vec<(ParaId, ParaHash)>)
Generate parachain heads proof and prepare environment for verifying this proof.
Object Safety§
This trait is not object safe.