pub trait Config:
Config
+ Config
+ Config {
type RuntimeOrigin: From<<Self as Config>::RuntimeOrigin> + Into<Result<Origin, <Self as Config>::RuntimeOrigin>>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type BrokerId: Get<u32>;
type BrokerPotLocation: Get<InteriorLocation>;
type WeightInfo: WeightInfo;
type SendXcm: SendXcm;
type AssetTransactor: TransactAsset;
type AccountToLocation: for<'a> TryConvert<&'a Self::AccountId, Location>;
type MaxXcmTransactWeight: Get<Weight>;
}
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 RuntimeOrigin: From<<Self as Config>::RuntimeOrigin> + Into<Result<Origin, <Self as Config>::RuntimeOrigin>>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Sourcetype BrokerPotLocation: Get<InteriorLocation>
type BrokerPotLocation: Get<InteriorLocation>
The coretime chain pot location.
Sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Something that provides the weight of this pallet.
Sourcetype AssetTransactor: TransactAsset
type AssetTransactor: TransactAsset
The asset transactor.
Sourcetype AccountToLocation: for<'a> TryConvert<&'a Self::AccountId, Location>
type AccountToLocation: for<'a> TryConvert<&'a Self::AccountId, Location>
AccountId to Location converter
Sourcetype MaxXcmTransactWeight: Get<Weight>
type MaxXcmTransactWeight: Get<Weight>
Maximum weight for any XCM transact call that should be executed on the coretime chain.
Basically should be max_weight(set_leases, reserve, notify_core_count)
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.