referrerpolicy=no-referrer-when-downgrade

Trait WithRemoteGrandpaChainHelper

Source
pub trait WithRemoteGrandpaChainHelper {
    type Runtime: BasicParachainRuntime + Config + BridgeGrandpaConfig<Self::GPI, BridgedChain = BridgedChainOf<Self::Runtime, Self::MPI>> + 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 MPI: 'static;
    type RPI: 'static;
    type RelayerReward: From<RewardsAccountParams<LaneIdOf<Self::Runtime, Self::MPI>>>;
}
Expand description

Helper trait to test bridges with remote GRANDPA chain.

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

Required Associated Types§

Source

type Runtime: BasicParachainRuntime + Config + BridgeGrandpaConfig<Self::GPI, BridgedChain = BridgedChainOf<Self::Runtime, Self::MPI>> + 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 GRANDPA chain.

Source

type MPI: 'static

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

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, MPI, RPI> WithRemoteGrandpaChainHelper for WithRemoteGrandpaChainHelperAdapter<Runtime, AllPalletsWithoutSystem, GPI, MPI, RPI>
where Runtime: BasicParachainRuntime + Config + BridgeGrandpaConfig<GPI, BridgedChain = BridgedChainOf<Runtime, MPI>> + 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, MPI: 'static, RPI: 'static,

Source§

type Runtime = Runtime

Source§

type AllPalletsWithoutSystem = AllPalletsWithoutSystem

Source§

type GPI = GPI

Source§

type MPI = MPI

Source§

type RPI = RPI

Source§

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