Trait pallet_xcm_benchmarks::generic::pallet::Config
source · pub trait Config<I: 'static = ()>: Config + Config {
type Call: Dispatchable<Origin = Self::Origin> + GetDispatchInfo + From<Call<Self>> + Encode;
fn worst_case_response() -> (u64, Response);
fn transact_origin() -> Result<MultiLocation, BenchmarkError>;
fn subscribe_origin() -> Result<MultiLocation, BenchmarkError>;
fn claimable_asset(
) -> Result<(MultiLocation, MultiLocation, MultiAssets), BenchmarkError>;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
type Call: Dispatchable<Origin = Self::Origin> + GetDispatchInfo + From<Call<Self>> + Encode
Required Methods§
sourcefn worst_case_response() -> (u64, Response)
fn worst_case_response() -> (u64, Response)
The response which causes the most runtime weight.
sourcefn transact_origin() -> Result<MultiLocation, BenchmarkError>
fn transact_origin() -> Result<MultiLocation, BenchmarkError>
The MultiLocation
used for successful transaction XCMs.
If set to None
, benchmarks which rely on a transact_origin
will be skipped.
sourcefn subscribe_origin() -> Result<MultiLocation, BenchmarkError>
fn subscribe_origin() -> Result<MultiLocation, BenchmarkError>
A valid MultiLocation
we can successfully subscribe to.
If set to None
, benchmarks which rely on a subscribe_origin
will be skipped.
sourcefn claimable_asset(
) -> Result<(MultiLocation, MultiLocation, MultiAssets), BenchmarkError>
fn claimable_asset(
) -> Result<(MultiLocation, MultiLocation, MultiAssets), BenchmarkError>
Return an origin, ticket, and assets that can be trapped and claimed.