referrerpolicy=no-referrer-when-downgrade

Trait staging_xcm_builder::DispatchBlob

source ·
pub trait DispatchBlob {
    // Required method
    fn dispatch_blob(blob: Vec<u8>) -> Result<(), DispatchBlobError>;
}

Required Methods§

source

fn dispatch_blob(blob: Vec<u8>) -> Result<(), DispatchBlobError>

Takes an incoming blob from over some point-to-point link (usually from some sort of inter-consensus bridge) and then does what needs to be done with it. Usually this means forwarding it on into some other location sharing our consensus or possibly just enqueuing it for execution locally if it is destined for the local chain.

NOTE: The API does not provide for any kind of weight or fee management; the size of the blob is known to the caller and so the operation must have a linear weight relative to blob’s length. This means that you will generally only want to enqueue the blob, not enact it. Fees must be handled by the caller.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Router: SendXcm, OurPlace: Get<InteriorLocation>, OurPlaceBridgeInstance: Get<Option<InteriorLocation>>> DispatchBlob for BridgeBlobDispatcher<Router, OurPlace, OurPlaceBridgeInstance>