referrerpolicy=no-referrer-when-downgrade
pub trait Config: Config {
Show 16 associated items type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type Hashing: Hash<Output = H256>; type MessageQueue: EnqueueMessage<AggregateMessageOrigin>; type GasMeter: GasMeter; type Balance: Balance + From<u128>; type MaxMessagePayloadSize: Get<u32>; type MaxMessagesPerBlock: Get<u32>; type WeightToFee: WeightToFee<Balance = Self::Balance>; type WeightInfo: WeightInfo; type Verifier: Verifier; type GatewayAddress: Get<H160>; type RewardKind: Parameter + MaxEncodedLen + Send + Sync + Copy + Clone; type DefaultRewardKind: Get<Self::RewardKind>; type RewardPayment: RewardLedger<Self::AccountId, Self::RewardKind, u128>; type EthereumNetwork: Get<NetworkId>; type Helper: BenchmarkHelper<Self>;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait.

Required Associated Types§

Source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

Source

type Hashing: Hash<Output = H256>

Source

type MessageQueue: EnqueueMessage<AggregateMessageOrigin>

Source

type GasMeter: GasMeter

Measures the maximum gas used to execute a command on Ethereum

Source

type Balance: Balance + From<u128>

Source

type MaxMessagePayloadSize: Get<u32>

Max bytes in a message payload

Source

type MaxMessagesPerBlock: Get<u32>

Max number of messages processed per block

Source

type WeightToFee: WeightToFee<Balance = Self::Balance>

Convert a weight value into a deductible fee based.

Source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet

Source

type Verifier: Verifier

The verifier for delivery proof from Ethereum

Source

type GatewayAddress: Get<H160>

Address of the Gateway contract

Source

type RewardKind: Parameter + MaxEncodedLen + Send + Sync + Copy + Clone

Reward discriminator type.

Source

type DefaultRewardKind: Get<Self::RewardKind>

The default RewardKind discriminator for rewards allocated to relayers from this pallet.

Source

type RewardPayment: RewardLedger<Self::AccountId, Self::RewardKind, u128>

Relayer reward payment.

Source

type EthereumNetwork: Get<NetworkId>

Ethereum NetworkId

Source

type Helper: BenchmarkHelper<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl Config for Runtime