referrerpolicy=no-referrer-when-downgrade

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§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

source

type OutboundQueue: SendMessage<Balance = BalanceOf<Self>>

Send messages to Ethereum

source

type SiblingOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Location>

Origin check for XCM locations that can create agents

source

type AgentIdOf: ConvertLocation<AgentId>

Converts Location to AgentId

source

type Token: Mutate<Self::AccountId>

Token reserved for control operations

source

type TreasuryAccount: Get<Self::AccountId>

TreasuryAccount to collect fees

source

type DefaultPricingParameters: Get<PricingParametersOf<Self>>

Number of decimal places of local currency

source

type InboundDeliveryCost: Get<BalanceOf<Self>>

Cost of delivering a message from Ethereum

source

type WeightInfo: WeightInfo

source

type UniversalLocation: Get<InteriorLocation>

This chain’s Universal Location.

source

type EthereumLocation: Get<Location>

source

type Helper: BenchmarkHelper<Self::RuntimeOrigin>

Object Safety§

This trait is not object safe.

Implementors§