Trait orml_xtokens::module::Config [−][src]
pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128>;
type CurrencyId: Parameter + Member + Clone;
type CurrencyIdConvert: Convert<Self::CurrencyId, Option<MultiLocation>>;
type AccountIdToMultiLocation: Convert<Self::AccountId, MultiLocation>;
type SelfLocation: Get<MultiLocation>;
type XcmExecutor: ExecuteXcm<Self::Call>;
type Weigher: WeightBounds<Self::Call>;
type BaseXcmWeight: Get<Weight>;
type LocationInverter: InvertLocation;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Associated Types
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128>
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128>
The balance type.
type CurrencyId: Parameter + Member + Clone
type CurrencyId: Parameter + Member + Clone
Currency Id.
type CurrencyIdConvert: Convert<Self::CurrencyId, Option<MultiLocation>>
type CurrencyIdConvert: Convert<Self::CurrencyId, Option<MultiLocation>>
Convert T::CurrencyId
to MultiLocation
.
type AccountIdToMultiLocation: Convert<Self::AccountId, MultiLocation>
type AccountIdToMultiLocation: Convert<Self::AccountId, MultiLocation>
Convert T::AccountId
to MultiLocation
.
type SelfLocation: Get<MultiLocation>
type SelfLocation: Get<MultiLocation>
Self chain location.
type XcmExecutor: ExecuteXcm<Self::Call>
type XcmExecutor: ExecuteXcm<Self::Call>
XCM executor.
type Weigher: WeightBounds<Self::Call>
type Weigher: WeightBounds<Self::Call>
Means of measuring the weight consumed by an XCM message locally.
type BaseXcmWeight: Get<Weight>
type BaseXcmWeight: Get<Weight>
Base XCM weight.
The actually weight for an XCM message is T::BaseXcmWeight + T::Weigher::weight(&msg)
.
Means of inverting a location.