Basically, the source can dry run some scenario, which results as a xcm with ExportMessage instruction, so we should be able to dry run this XCM on BridgeHub.
Some hints:
implement InspectMessageQueues for pallet_xcm_bridge_hub or pallet-bridge-messages to get messages from OutboundLanes where the OutboundPayload is encoded BridgeMessage
then add the instance to the tuple with xcm_config::Router on the bridge hub:
Basically, the source can dry run some scenario, which results as a xcm with
ExportMessage
instruction, so we should be able to dry run this XCM on BridgeHub.Some hints:
InspectMessageQueues
forpallet_xcm_bridge_hub
orpallet-bridge-messages
to get messages fromOutboundLanes
where theOutboundPayload
is encodedBridgeMessage
then add the instance to the tuple with
xcm_config::Router
on the bridge hub:dry_xcm_run
on the bridged BridgeHub is quesionable how to do, because there could possibly beDescendOrigin
added here when dispatching