Generic asset manager (#341)

Co-authored-by: Nikita Khateev <nikita.khateev@gmail.com>
This commit is contained in:
Özgün Özerk
2024-10-25 13:27:39 +03:00
committed by GitHub
parent 033cf12f34
commit 46a9a3f4e8
10 changed files with 483 additions and 40 deletions
+5
View File
@@ -234,6 +234,7 @@ impl_runtime_apis! {
use super::{*, types::*, configs::*, constants::currency::CENTS};
#[allow(non_local_definitions)]
impl frame_system_benchmarking::Config for Runtime {
fn setup_set_code_requirements(code: &sp_std::vec::Vec<u8>) -> Result<(), BenchmarkError> {
ParachainSystem::initialize_for_set_code_benchmark(code.len() as u32);
@@ -262,6 +263,8 @@ impl_runtime_apis! {
>;
use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
use xcm::latest::prelude::{Asset, AssetId, Assets as AssetList, Fungible, Location, Parachain, Parent, ParentThen, PalletInstance, GeneralIndex};
#[allow(non_local_definitions)]
impl pallet_xcm::benchmarking::Config for Runtime {
type DeliveryHelper = cumulus_primitives_utility::ToParentDeliveryHelper<
xcm_config::XcmConfig,
@@ -363,6 +366,8 @@ impl_runtime_apis! {
}
use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
#[allow(non_local_definitions)]
impl cumulus_pallet_session_benchmarking::Config for Runtime {}
use frame_support::traits::WhitelistedStorageKeys;