Trait pallet_axelar_router::pallet::Config
source · 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§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
sourcetype AdminOrigin: EnsureOrigin<Self::RuntimeOrigin>
type AdminOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin that is allowed to set the gateway address we accept messages from
sourcetype Receiver: MessageReceiver<Middleware = Self::Middleware, Origin = DomainAddress, Message = Vec<u8>>
type Receiver: MessageReceiver<Middleware = Self::Middleware, Origin = DomainAddress, Message = Vec<u8>>
The target of the messages coming from other chains
sourcetype Middleware: From<AxelarId>
type Middleware: From<AxelarId>
Middleware used by the gateway
sourcetype Transactor: EthereumTransactor
type Transactor: EthereumTransactor
The target of the messages coming from this chain
sourcetype EvmAccountCodeChecker: PreConditions<(H160, H256), Result = bool>
type EvmAccountCodeChecker: PreConditions<(H160, H256), Result = bool>
Checker to ensure an evm account code is registered
Object Safety§
This trait is not object safe.