referrerpolicy=no-referrer-when-downgrade

Trait bp_relayers::BatchCallUnpacker

source ·
pub trait BatchCallUnpacker<Runtime: Config> {
    // Required method
    fn unpack(
        call: &Runtime::RuntimeCall,
        max_packed_calls: u32,
    ) -> Vec<&Runtime::RuntimeCall>;
}
Expand description

Something that can unpack batch calls (all-or-nothing flavor) of given size.

Required Methods§

source

fn unpack( call: &Runtime::RuntimeCall, max_packed_calls: u32, ) -> Vec<&Runtime::RuntimeCall>

Unpack batch call with no more than max_packed_calls calls.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<Runtime: Config> BatchCallUnpacker<Runtime> for ()

source§

fn unpack( call: &Runtime::RuntimeCall, _max_packed_calls: u32, ) -> Vec<&Runtime::RuntimeCall>

Implementors§

source§

impl<Runtime> BatchCallUnpacker<Runtime> for RuntimeWithUtilityPallet<Runtime>
where Runtime: Config<RuntimeCall = <Runtime as SystemConfig>::RuntimeCall>, <Runtime as SystemConfig>::RuntimeCall: IsSubType<CallableCallFor<Pallet<Runtime>, Runtime>>,