pub trait Config: Config {
    type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
    type WeightInfo: WeightInfo;
    type MaxAuthorities: Get<u32>;
    type ChainId: Get<&'static [u8]>;
    type SignThreshold: Get<Perbill>;
    type MessageRoot: Get<Option<H256>>;
    type SyncInterval: Get<Self::BlockNumber>;
    type MaxPendingPeriod: Get<Self::BlockNumber>;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types

The maximum number of authorities.

Chain’s ID, which is using for constructing the message. (follow EIP-712 SPEC)

The signing threshold.

Once signatures_count / authorities_count >= threshold, we say the message is trusted.

The Darwinia message root.

If it changed, it means there are some new messages which are waiting for relaying.

The interval of checking the message root.

How long should we wait for the message root to be signed.

If the collecting new message root signatures process takes more than MaxPendingPeriod, we will drop the root. And update the root with a new one.

Implementors