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§
Sourcetype 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 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.
Sourcetype AllPalletsWithoutSystem: OnInitialize<BlockNumberFor<Self::Runtime>> + OnFinalize<BlockNumberFor<Self::Runtime>>
type AllPalletsWithoutSystem: OnInitialize<BlockNumberFor<Self::Runtime>> + OnFinalize<BlockNumberFor<Self::Runtime>>
All pallets of this chain, excluding system pallet.
Sourcetype GPI: 'static
type GPI: 'static
Instance of the pallet-bridge-grandpa
, used to bridge with remote relay chain.
Sourcetype PPI: 'static
type PPI: 'static
Instance of the pallet-bridge-parachains
, used to bridge with remote parachain.
Sourcetype MPI: 'static
type MPI: 'static
Instance of the pallet-bridge-messages
, used to bridge with remote parachain.
Sourcetype RPI: 'static
type RPI: 'static
Instance of the pallet-bridge-relayers
, used to collect rewards from messages MPI
instance.
Sourcetype RelayerReward: From<RewardsAccountParams<LaneIdOf<Self::Runtime, Self::MPI>>>
type RelayerReward: From<RewardsAccountParams<LaneIdOf<Self::Runtime, Self::MPI>>>
Relayer reward type.