referrerpolicy=no-referrer-when-downgrade

Trait WithRemoteParachainHelper

Source
pub trait WithRemoteParachainHelper {
    type Runtime: BasicParachainRuntime + Config + BridgeGrandpaConfig<Self::GPI> + BridgeParachainsConfig<Self::PPI> + BridgeMessagesConfig<Self::MPI, InboundPayload = Vec<u8>, OutboundPayload = Vec<u8>> + Config<Self::RPI, Reward = Self::RelayerReward>;
    type AllPalletsWithoutSystem: OnInitialize<BlockNumberFor<Self::Runtime>> + OnFinalize<BlockNumberFor<Self::Runtime>>;
    type GPI: 'static;
    type PPI: 'static;
    type MPI: 'static;
    type RPI: 'static;
    type RelayerReward: From<RewardsAccountParams<LaneIdOf<Self::Runtime, Self::MPI>>>;
}
Expand description

Helper trait to test bridges with remote parachain.

This is only used to decrease amount of lines, dedicated to bounds.

Required Associated Types§

Source

type Runtime: BasicParachainRuntime + Config + BridgeGrandpaConfig<Self::GPI> + BridgeParachainsConfig<Self::PPI> + BridgeMessagesConfig<Self::MPI, InboundPayload = Vec<u8>, OutboundPayload = Vec<u8>> + Config<Self::RPI, Reward = Self::RelayerReward>

This chain runtime.

Source

type AllPalletsWithoutSystem: OnInitialize<BlockNumberFor<Self::Runtime>> + OnFinalize<BlockNumberFor<Self::Runtime>>

All pallets of this chain, excluding system pallet.

Source

type GPI: 'static

Instance of the pallet-bridge-grandpa, used to bridge with remote relay chain.

Source

type PPI: 'static

Instance of the pallet-bridge-parachains, used to bridge with remote parachain.

Source

type MPI: 'static

Instance of the pallet-bridge-messages, used to bridge with remote parachain.

Source

type RPI: 'static

Instance of the pallet-bridge-relayers, used to collect rewards from messages MPI instance.

Source

type RelayerReward: From<RewardsAccountParams<LaneIdOf<Self::Runtime, Self::MPI>>>

Relayer reward type.

Implementors§

Source§

impl<Runtime, AllPalletsWithoutSystem, GPI, PPI, MPI, RPI> WithRemoteParachainHelper for WithRemoteParachainHelperAdapter<Runtime, AllPalletsWithoutSystem, GPI, PPI, MPI, RPI>
where Runtime: BasicParachainRuntime + Config + BridgeGrandpaConfig<GPI> + BridgeParachainsConfig<PPI> + BridgeMessagesConfig<MPI, InboundPayload = Vec<u8>, OutboundPayload = Vec<u8>> + Config<RPI>, AllPalletsWithoutSystem: OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>, <Runtime as Config<RPI>>::Reward: From<RewardsAccountParams<LaneIdOf<Runtime, MPI>>>, GPI: 'static, PPI: 'static, MPI: 'static, RPI: 'static,

Source§

type Runtime = Runtime

Source§

type AllPalletsWithoutSystem = AllPalletsWithoutSystem

Source§

type GPI = GPI

Source§

type PPI = PPI

Source§

type MPI = MPI

Source§

type RPI = RPI

Source§

type RelayerReward = <Runtime as Config<RPI>>::Reward