Skip to content

Commit

Permalink
update xcm benchmark config
Browse files Browse the repository at this point in the history
  • Loading branch information
enthusiastmartin committed May 9, 2024
1 parent 320c5c4 commit 1f5ae5c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions runtime/basilisk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ impl_runtime_apis! {
) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {
use frame_benchmarking::{BenchmarkError, Benchmarking, BenchmarkBatch};
use frame_support::traits::TrackedStorageKey;
use sp_core::Get;
use sp_std::sync::Arc;
use primitives::constants::chain::CORE_ASSET_ID;

use orml_benchmarking::add_benchmark as orml_add_benchmark;

Expand All @@ -474,7 +477,12 @@ impl_runtime_apis! {

parameter_types! {
pub const RandomParaId: ParaId = ParaId::new(22222222);
pub const ExistentialDeposit: u128= 0;
pub const ExistentialDeposit: u128= 1_000_000_000_000;
pub AssetLocation: Location = Location::new(1, cumulus_primitives_core::Junctions::X2(
Arc::new([cumulus_primitives_core::Junction::Parachain(ParachainInfo::get().into()),
cumulus_primitives_core::Junction::GeneralIndex(CORE_ASSET_ID.into())
])
));
}

use cumulus_primitives_core::ParaId;
Expand All @@ -489,7 +497,7 @@ impl_runtime_apis! {
Some((
Asset {
fun: Fungible(ExistentialDeposit::get()),
id: AssetId(Parent.into())
id: AssetId(AssetLocation::get())
},
Parent.into(),
))
Expand All @@ -499,7 +507,7 @@ impl_runtime_apis! {
Some((
Asset {
fun: Fungible(ExistentialDeposit::get()),
id: AssetId(Parent.into())
id: AssetId(AssetLocation::get())
},
ParentThen(Parachain(RandomParaId::get().into()).into()).into(),
))
Expand Down

0 comments on commit 1f5ae5c

Please sign in to comment.