referrerpolicy=no-referrer-when-downgrade

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§

source

type XcmConfig: XcmConfig

The XCM configurations.

These might affect the execution of XCM messages, such as defining how the TransactAsset is implemented.

source

type AccountIdConverter: ConvertLocation<Self::AccountId>

A converter between a location to a sovereign account.

source

type DeliveryHelper: EnsureDelivery

Helper that ensures successful delivery for XCM instructions which need SendXcm.

Required Methods§

source

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.

source

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 the worst_case_holding implementation.

Object Safety§

This trait is not object safe.

Implementors§