Trait snowbridge_pallet_system::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type OutboundQueue: SendMessage<Balance = BalanceOf<Self>>;
type SiblingOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Location>;
type AgentIdOf: ConvertLocation<AgentId>;
type Token: Mutate<Self::AccountId>;
type TreasuryAccount: Get<Self::AccountId>;
type DefaultPricingParameters: Get<PricingParametersOf<Self>>;
type InboundDeliveryCost: Get<BalanceOf<Self>>;
type WeightInfo: WeightInfo;
type UniversalLocation: Get<InteriorLocation>;
type EthereumLocation: Get<Location>;
type Helper: BenchmarkHelper<Self::RuntimeOrigin>;
}
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 OutboundQueue: SendMessage<Balance = BalanceOf<Self>>
type OutboundQueue: SendMessage<Balance = BalanceOf<Self>>
Send messages to Ethereum
sourcetype SiblingOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Location>
type SiblingOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Location>
Origin check for XCM locations that can create agents
sourcetype TreasuryAccount: Get<Self::AccountId>
type TreasuryAccount: Get<Self::AccountId>
TreasuryAccount to collect fees
sourcetype DefaultPricingParameters: Get<PricingParametersOf<Self>>
type DefaultPricingParameters: Get<PricingParametersOf<Self>>
Number of decimal places of local currency
sourcetype InboundDeliveryCost: Get<BalanceOf<Self>>
type InboundDeliveryCost: Get<BalanceOf<Self>>
Cost of delivering a message from Ethereum
type WeightInfo: WeightInfo
sourcetype UniversalLocation: Get<InteriorLocation>
type UniversalLocation: Get<InteriorLocation>
This chain’s Universal Location.
type EthereumLocation: Get<Location>
type Helper: BenchmarkHelper<Self::RuntimeOrigin>
Object Safety§
This trait is not object safe.