Trait pallet_xcm_benchmarks::Config
source · pub trait Config: Config {
type XcmConfig: XcmConfig;
type AccountIdConverter: ConvertLocation<Self::AccountId>;
type DeliveryHelper: EnsureDelivery;
// Required methods
fn valid_destination() -> Result<Location, BenchmarkError>;
fn worst_case_holding(depositable_count: u32) -> Assets;
}
Expand description
A base trait for all individual pallets
Required Associated Types§
sourcetype XcmConfig: XcmConfig
type XcmConfig: XcmConfig
The XCM configurations.
These might affect the execution of XCM messages, such as defining how the
TransactAsset
is implemented.
sourcetype AccountIdConverter: ConvertLocation<Self::AccountId>
type AccountIdConverter: ConvertLocation<Self::AccountId>
A converter between a location to a sovereign account.
sourcetype DeliveryHelper: EnsureDelivery
type DeliveryHelper: EnsureDelivery
Helper that ensures successful delivery for XCM instructions which need SendXcm
.
Required Methods§
sourcefn valid_destination() -> Result<Location, BenchmarkError>
fn valid_destination() -> Result<Location, BenchmarkError>
Does any necessary setup to create a valid destination for XCM messages. Returns that destination’s location to be used in benchmarks.
sourcefn worst_case_holding(depositable_count: u32) -> Assets
fn worst_case_holding(depositable_count: u32) -> Assets
Worst case scenario for a holding account in this runtime.
depositable_count
specifies the count of assets we plan to add to the holding on top of those generated by theworst_case_holding
implementation.
Object Safety§
This trait is not object safe.