Skip to content

Commit

Permalink
add default weights
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzamontiel committed Dec 12, 2024
1 parent a50448e commit 942bf9c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pallets/moonbeam-foreign-assets/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ use sp_std::marker::PhantomData;
/// Weight functions needed for pallet_foreign_asset_creator.
pub trait WeightInfo {
fn create_foreign_asset() -> Weight;
fn create_foreign_asset_reserve() -> Weight;
fn change_xcm_location() -> Weight;
fn freeze_foreign_asset() -> Weight;
fn unfreeze_foreign_asset() -> Weight;
Expand All @@ -75,6 +76,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}

fn create_foreign_asset_reserve() -> Weight {
Weight::default()
}

/// Storage: `ForeignAssetsCreator::AssetIdToForeignAsset` (r:1 w:1)
/// Proof: `ForeignAssetsCreator::AssetIdToForeignAsset` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `ForeignAssetsCreator::ForeignAssetToAssetId` (r:0 w:2)
Expand Down Expand Up @@ -176,4 +182,8 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}

fn create_foreign_asset_reserve() -> Weight {
Weight::default()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,8 @@ impl<T: frame_system::Config> pallet_moonbeam_foreign_assets::WeightInfo for Wei
.saturating_add(T::DbWeight::get().reads(15_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}

fn create_foreign_asset_reserve() -> Weight {
Weight::default()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,8 @@ impl<T: frame_system::Config> pallet_moonbeam_foreign_assets::WeightInfo for Wei
.saturating_add(T::DbWeight::get().reads(15_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}

fn create_foreign_asset_reserve() -> Weight {
Weight::default()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,8 @@ impl<T: frame_system::Config> pallet_moonbeam_foreign_assets::WeightInfo for Wei
.saturating_add(T::DbWeight::get().reads(15_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}

fn create_foreign_asset_reserve() -> Weight {
Weight::default()
}
}

0 comments on commit 942bf9c

Please sign in to comment.