Trait pallet_xcm_benchmarks::fungible::pallet::Config
source · pub trait Config<I: 'static = ()>: Config + Config {
type TransactAsset: Mutate<Self::AccountId>;
type CheckedAccount: Get<Option<(Self::AccountId, MintLocation)>>;
type TrustedTeleporter: Get<Option<(Location, Asset)>>;
type TrustedReserve: Get<Option<(Location, Asset)>>;
// Required method
fn get_asset() -> Asset;
}
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§
sourcetype TransactAsset: Mutate<Self::AccountId>
type TransactAsset: Mutate<Self::AccountId>
The type of fungible
that is being used under the hood.
This is useful for testing and checking.
sourcetype CheckedAccount: Get<Option<(Self::AccountId, MintLocation)>>
type CheckedAccount: Get<Option<(Self::AccountId, MintLocation)>>
The account used to check assets being teleported.
sourcetype TrustedTeleporter: Get<Option<(Location, Asset)>>
type TrustedTeleporter: Get<Option<(Location, Asset)>>
A trusted location which we allow teleports from, and the asset we allow to teleport.
sourcetype TrustedReserve: Get<Option<(Location, Asset)>>
type TrustedReserve: Get<Option<(Location, Asset)>>
A trusted location where reserve assets are stored, and the asset we allow to be reserves.
Required Methods§
Object Safety§
This trait is not object safe.