Trait pallet_xcm_benchmarks::Config
source · pub trait Config: Config {
type XcmConfig: Config;
type AccountIdConverter: Convert<MultiLocation, Self::AccountId>;
fn valid_destination() -> Result<MultiLocation, BenchmarkError>;
fn worst_case_holding() -> MultiAssets;
}
Expand description
A base trait for all individual pallets
Required Associated Types§
sourcetype XcmConfig: Config
type XcmConfig: Config
The XCM configurations.
These might affect the execution of XCM messages, such as defining how the
TransactAsset
is implemented.
sourcetype AccountIdConverter: Convert<MultiLocation, Self::AccountId>
type AccountIdConverter: Convert<MultiLocation, Self::AccountId>
A converter between a multi-location to a sovereign account.
Required Methods§
sourcefn valid_destination() -> Result<MultiLocation, BenchmarkError>
fn valid_destination() -> Result<MultiLocation, BenchmarkError>
Does any necessary setup to create a valid destination for XCM messages. Returns that destination’s multi-location to be used in benchmarks.
sourcefn worst_case_holding() -> MultiAssets
fn worst_case_holding() -> MultiAssets
Worst case scenario for a holding account in this runtime.