referrerpolicy=no-referrer-when-downgrade

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§