pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type AdminOrigin: EnsureOrigin<Self::RuntimeOrigin>;
    type Receiver: MessageReceiver<Middleware = Self::Middleware, Origin = DomainAddress, Message = Vec<u8>>;
    type Middleware: From<AxelarId>;
    type Transactor: EthereumTransactor;
    type EvmAccountCodeChecker: PreConditions<(H160, H256), Result = bool>;
}
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 AdminOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin that is allowed to set the gateway address we accept messages from

source

type Receiver: MessageReceiver<Middleware = Self::Middleware, Origin = DomainAddress, Message = Vec<u8>>

The target of the messages coming from other chains

source

type Middleware: From<AxelarId>

Middleware used by the gateway

source

type Transactor: EthereumTransactor

The target of the messages coming from this chain

source

type EvmAccountCodeChecker: PreConditions<(H160, H256), Result = bool>

Checker to ensure an evm account code is registered

Object Safety§

This trait is not object safe.

Implementors§