Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
e170f4c
Add statemine like runtime for xcm tests
girazoki Jan 10, 2022
ef6ae21
Be able to receive both prefixes from statemine, while add an extrins…
girazoki Jan 10, 2022
32cdb42
Add statemine/statemint tests
girazoki Jan 10, 2022
a15613b
add statemine runtime test
girazoki Jan 10, 2022
9d44c8f
refactor
girazoki Jan 10, 2022
bf39e2e
More rust and typescript tests
girazoki Jan 11, 2022
aeef2b3
NPX
girazoki Jan 11, 2022
306bb0e
Document tests
girazoki Jan 11, 2022
6bc863c
editorconfig
girazoki Jan 11, 2022
01b0618
Merge remote-tracking branch 'upstream/master' into girazoki-avoid-st…
girazoki Jan 11, 2022
bdeaebf
Update benchmark
girazoki Jan 11, 2022
14c2599
Update weights
girazoki Jan 11, 2022
8b4dcbb
Update message
girazoki Jan 11, 2022
8aa9b70
Merge remote-tracking branch 'upstream/master' into girazoki-avoid-st…
girazoki Jan 12, 2022
c7112a7
Update estamite for assets transfer
girazoki Jan 13, 2022
1895e6c
Adapt test and package-lock to run all tests correctly
girazoki Jan 13, 2022
723dd97
Prettier
girazoki Jan 13, 2022
1b4e8e0
Merge remote-tracking branch 'upstream/master' into girazoki-avoid-st…
girazoki Jan 17, 2022
5ec2c1f
Update test with AssetDoesNotExist
girazoki Jan 17, 2022
2667fef
Update to 3 in alphanet
girazoki Jan 17, 2022
982b6ec
New storage item with mapping from assetType -> AssetId
girazoki Jan 18, 2022
fd2e0dc
Migration referencing units per second by assetType and not by assetId
girazoki Jan 18, 2022
34344aa
Add migrations
girazoki Jan 18, 2022
82f30eb
Add test for new migration
girazoki Jan 18, 2022
67b0aae
adapt traits to new storage item in pallet-asset-amanger
girazoki Jan 18, 2022
13852c4
Remove AsserId bound in FirstAssetTrader
girazoki Jan 18, 2022
5c82ee9
Update all tests to new design
girazoki Jan 18, 2022
c0fc100
Test third migration: migrate prefixes from previous statemine to new…
girazoki Jan 18, 2022
d2694d0
Integration tests change
girazoki Jan 18, 2022
e0cb77f
Update moonriver integration tests
girazoki Jan 18, 2022
e31d450
Merge remote-tracking branch 'upstream/master' into girazoki-avoid-st…
girazoki Jan 19, 2022
cdc8f42
Adapt moonbeam to migrations and statemint
girazoki Jan 19, 2022
42399ad
Make all migrations be independent from each other, and thus they can…
girazoki Jan 19, 2022
fff3b82
Define how we are going to pass statemine info to migration
girazoki Jan 19, 2022
94dbdfa
Update names of migrations
girazoki Jan 19, 2022
eccdb27
Include migration to all runtimes
girazoki Jan 19, 2022
555d0bf
Adapt tests to changes in set assets units per second plus statemint …
girazoki Jan 19, 2022
b23dcf7
Toml sort
girazoki Jan 19, 2022
437d089
Add statemine like to moonbeam
girazoki Jan 19, 2022
f7ef5c0
Prettier
girazoki Jan 19, 2022
a8e899c
EditorConfig
girazoki Jan 19, 2022
ee85d85
Fmt
girazoki Jan 19, 2022
c025e17
Editorconfig
girazoki Jan 19, 2022
c7cdf07
EditorCOnfig too
girazoki Jan 19, 2022
988eb26
Update benchmarks too
girazoki Jan 19, 2022
c7650bd
Editorconfig third try
girazoki Jan 19, 2022
90a2026
Update weights
girazoki Jan 19, 2022
8392853
Remove unused variable
girazoki Jan 19, 2022
9a97266
Remove silly comment
girazoki Jan 19, 2022
239964b
Tests for regular users cannot call root extrinsics
girazoki Jan 19, 2022
4b8faef
Add PR suggestions
girazoki Jan 20, 2022
08452c5
Documentation about migrations
girazoki Jan 20, 2022
5086d17
Merge remote-tracking branch 'upstream/master' into girazoki-avoid-st…
girazoki Jan 20, 2022
fc91d87
Comments in storage items
girazoki Jan 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update weights
  • Loading branch information
girazoki committed Jan 11, 2022
commit 14c2599f85efdd602876136210548c56bf9dad4a
21 changes: 16 additions & 5 deletions pallets/asset-manager/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Autogenerated weights for pallet_asset_manager
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2021-11-15, STEPS: `32`, REPEAT: 64, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-01-11, STEPS: `32`, REPEAT: 64, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128

// Executed Command:
Expand Down Expand Up @@ -54,18 +54,24 @@ use sp_std::marker::PhantomData;
pub trait WeightInfo {
fn register_asset() -> Weight;
fn set_asset_units_per_second() -> Weight;
fn change_existing_asset_type() -> Weight;
}

/// Weights for pallet_asset_manager using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn register_asset() -> Weight {
(52_572_000 as Weight)
(50_651_000 as Weight)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs proper benchmark. Let me know when you want me to run this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually run it on the target machine, but feel free to redo it

.saturating_add(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
fn set_asset_units_per_second() -> Weight {
(22_860_000 as Weight)
(22_655_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn change_existing_asset_type() -> Weight {
(24_165_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand All @@ -74,12 +80,17 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// For backwards compatibility and tests
impl WeightInfo for () {
fn register_asset() -> Weight {
(52_572_000 as Weight)
(50_651_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(7 as Weight))
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
}
fn set_asset_units_per_second() -> Weight {
(22_860_000 as Weight)
(22_655_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn change_existing_asset_type() -> Weight {
(24_165_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
Expand Down