@@ -324,7 +324,7 @@ impl<BlobDispatcher: DispatchBlob, Weights: pallet_bridge_messages::WeightInfoEx
324324pub type WithPeoplePolkadotMessagesInstance = ( ) ;
325325impl pallet_bridge_messages:: Config < WithPeoplePolkadotMessagesInstance > for Runtime {
326326 type RuntimeEvent = RuntimeEvent ;
327- type WeightInfo = crate :: weights:: bridge_polkadot_messages :: WeightInfo < Runtime > ;
327+ type WeightInfo = crate :: weights:: pallet_bridge_messages :: WeightInfo < Runtime > ;
328328
329329 type ThisChain = bp_polkadot_bulletin:: PolkadotBulletin ;
330330 type BridgedChain = bp_people_polkadot:: PeoplePolkadot ;
@@ -439,67 +439,24 @@ pub type ToBridgeHaulBlobExporter = HaulBlobExporter<
439439 ( ) ,
440440> ;
441441
442- // #[cfg(feature = "runtime-benchmarks")]
443- // pub mod benchmarking {
444- // use super::*;
445- //
446- // /// Proof of messages, coming from BridgeHubPolkadot.
447- // pub type FromBridgeHubPolkadotMessagesProof =
448- // bridge_runtime_common::messages::target::FromBridgedChainMessagesProof<
449- // bp_people_polkadot::Hash,
450- // >;
451- //
452- // /// Message delivery proof for `BridgeHubPolkadot` messages.
453- // pub type ToBridgeHubPolkadotMessagesDeliveryProof =
454- // bridge_runtime_common::messages::source::FromBridgedChainMessagesDeliveryProof<
455- // bp_people_polkadot::Hash,
456- // >;
457- //
458- // use bridge_runtime_common::messages_benchmarking::{
459- // generate_xcm_builder_bridge_message_sample, prepare_message_delivery_proof_from_parachain,
460- // prepare_message_proof_from_parachain,
461- // };
462- // use pallet_bridge_messages::benchmarking::{
463- // Config as BridgeMessagesConfig, MessageDeliveryProofParams, MessageProofParams,
464- // };
465- //
466- // impl BridgeMessagesConfig<WithBridgeHubPolkadotMessagesInstance> for Runtime {
467- // fn is_relayer_rewarded(_relayer: &Self::AccountId) -> bool {
468- // // no rewards, so we don't care
469- // true
470- // }
471- //
472- // fn prepare_message_proof(
473- // params: MessageProofParams,
474- // ) -> (FromBridgeHubPolkadotMessagesProof, Weight) {
475- // prepare_message_proof_from_parachain::<
476- // Runtime,
477- // WithPolkadotBridgeGrandpaInstance,
478- // WithBridgeHubPolkadotMessageBridge,
479- // >(
480- // params,
481- // generate_xcm_builder_bridge_message_sample(
482- // *crate::xcm_config::KawabungaLocation::get().interior(),
483- // ),
484- // )
485- // }
486- //
487- // fn prepare_message_delivery_proof(
488- // params: MessageDeliveryProofParams<AccountId>,
489- // ) -> ToBridgeHubPolkadotMessagesDeliveryProof {
490- // prepare_message_delivery_proof_from_parachain::<
491- // Runtime,
492- // WithPolkadotBridgeGrandpaInstance,
493- // WithBridgeHubPolkadotMessageBridge,
494- // >(params)
495- // }
496- //
497- // fn is_message_successfully_dispatched(_nonce: bp_messages::MessageNonce) -> bool {
498- // // currently we have no means to detect that
499- // true
500- // }
501- // }
502- // }
442+ #[ cfg( feature = "runtime-benchmarks" ) ]
443+ pub mod benchmarking {
444+ use super :: * ;
445+
446+ /// Proof of messages, coming from PeoplePolkadot.
447+ pub type FromPeoplePolkadotMessagesProof =
448+ bp_messages:: target_chain:: FromBridgedChainMessagesProof <
449+ bp_people_polkadot:: Hash ,
450+ pallet_bridge_messages:: LaneIdOf < Runtime , WithPeoplePolkadotMessagesInstance > ,
451+ > ;
452+
453+ /// Message delivery proof for `PeoplePolkadot` messages.
454+ pub type ToPeoplePolkadotMessagesDeliveryProof =
455+ bp_messages:: source_chain:: FromBridgedChainMessagesDeliveryProof <
456+ bp_people_polkadot:: Hash ,
457+ pallet_bridge_messages:: LaneIdOf < Runtime , WithPeoplePolkadotMessagesInstance > ,
458+ > ;
459+ }
503460//
504461// #[cfg(test)]
505462// pub(crate) mod tests {
0 commit comments