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§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type Hashing: Hash<Output = H256>
type MessageQueue: EnqueueMessage<AggregateMessageOrigin>
type Balance: Balance + From<u128>
Sourcetype MaxMessagePayloadSize: Get<u32>
type MaxMessagePayloadSize: Get<u32>
Max bytes in a message payload
Sourcetype MaxMessagesPerBlock: Get<u32>
type MaxMessagesPerBlock: Get<u32>
Max number of messages processed per block
Sourcetype WeightToFee: WeightToFee<Balance = Self::Balance>
type WeightToFee: WeightToFee<Balance = Self::Balance>
Convert a weight value into a deductible fee based.
Sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet
Sourcetype GatewayAddress: Get<H160>
type GatewayAddress: Get<H160>
Address of the Gateway contract
Sourcetype RewardKind: Parameter + MaxEncodedLen + Send + Sync + Copy + Clone
type RewardKind: Parameter + MaxEncodedLen + Send + Sync + Copy + Clone
Reward discriminator type.
Sourcetype DefaultRewardKind: Get<Self::RewardKind>
type DefaultRewardKind: Get<Self::RewardKind>
The default RewardKind discriminator for rewards allocated to relayers from this pallet.
Sourcetype RewardPayment: RewardLedger<Self::AccountId, Self::RewardKind, u128>
type RewardPayment: RewardLedger<Self::AccountId, Self::RewardKind, u128>
Relayer reward payment.
Sourcetype EthereumNetwork: Get<NetworkId>
type EthereumNetwork: Get<NetworkId>
Ethereum NetworkId
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.