mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
XCM ExportMessage benchmark support (#6923)
* XCM ExportMessage benchmark support * include inner-xcm in ExportMessage benchmark --------- Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
@@ -28,7 +28,10 @@ pub mod pallet {
|
||||
dispatch::{Dispatchable, GetDispatchInfo},
|
||||
pallet_prelude::Encode,
|
||||
};
|
||||
use xcm::latest::{Junction, MultiAsset, MultiAssets, MultiLocation, Response};
|
||||
use xcm::latest::{
|
||||
InteriorMultiLocation, Junction, MultiAsset, MultiAssets, MultiLocation, NetworkId,
|
||||
Response,
|
||||
};
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config<I: 'static = ()>: frame_system::Config + crate::Config {
|
||||
@@ -71,6 +74,12 @@ pub mod pallet {
|
||||
|
||||
/// Return an unlocker, owner and assets that can be locked and unlocked.
|
||||
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError>;
|
||||
|
||||
/// A `(MultiLocation, NetworkId, InteriorMultiLocation)` we can successfully export message to.
|
||||
///
|
||||
/// If set to `Err`, benchmarks which rely on `export_message` will be skipped.
|
||||
fn export_message_origin_and_destination(
|
||||
) -> Result<(MultiLocation, NetworkId, InteriorMultiLocation), BenchmarkError>;
|
||||
}
|
||||
|
||||
#[pallet::pallet]
|
||||
|
||||
Reference in New Issue
Block a user