Skip to content

Commit

Permalink
Merge pull request #326 from mangata-finance/release/v0.24.0
Browse files Browse the repository at this point in the history
Release/v0.24.0
  • Loading branch information
iStrike7 authored Sep 19, 2022
2 parents 2b4faff + e10760d commit a7a83fc
Show file tree
Hide file tree
Showing 38 changed files with 841 additions and 837 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions runtime/mangata-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ impl_opaque_keys! {
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("mangata-parachain"),
impl_name: create_runtime_str!("mangata-parachain"),
authoring_version: 8,
spec_version: 8,
authoring_version: 9,
spec_version: 9,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 8,
transaction_version: 9,
state_version: 0,
};

Expand Down Expand Up @@ -1108,7 +1108,7 @@ impl orml_asset_registry::Config for Runtime {
type AuthorityOrigin = AssetAuthority;
type AssetProcessor = SequentialIdWithCreation<Runtime>;
type Balance = Balance;
type WeightInfo = weights::xcm_asset_registry_weights::ModuleWeight<Runtime>;
type WeightInfo = weights::orml_asset_registry_weights::ModuleWeight<Runtime>;
}

// Create the runtime by composing the FRAME pallets that were previously configured.
Expand Down
18 changes: 9 additions & 9 deletions runtime/mangata-kusama/src/weights/frame_system_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for frame_system
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-07-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-09-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -77,15 +77,15 @@ impl<T: frame_system::Config> frame_system::WeightInfo for ModuleWeight<T> {
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
(4_228_000 as Weight)
(4_333_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Skipped Metadata (r:0 w:0)
fn set_storage(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 0
.saturating_add((603_000 as Weight).saturating_mul(i as Weight))
.saturating_add((604_000 as Weight).saturating_mul(i as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
// Storage: Skipped Metadata (r:0 w:0)
Expand All @@ -97,9 +97,9 @@ impl<T: frame_system::Config> frame_system::WeightInfo for ModuleWeight<T> {
}
// Storage: Skipped Metadata (r:0 w:0)
fn kill_prefix(p: u32, ) -> Weight {
(2_493_000 as Weight)
(861_000 as Weight)
// Standard Error: 0
.saturating_add((874_000 as Weight).saturating_mul(p as Weight))
.saturating_add((818_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
}
Expand All @@ -115,14 +115,14 @@ impl WeightInfo for () {
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
}
fn set_heap_pages() -> Weight {
(4_228_000 as Weight)
(4_333_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn set_storage(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 0
.saturating_add((603_000 as Weight).saturating_mul(i as Weight))
.saturating_add((604_000 as Weight).saturating_mul(i as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
fn kill_storage(i: u32, ) -> Weight {
Expand All @@ -132,9 +132,9 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
fn kill_prefix(p: u32, ) -> Weight {
(2_493_000 as Weight)
(861_000 as Weight)
// Standard Error: 0
.saturating_add((874_000 as Weight).saturating_mul(p as Weight))
.saturating_add((818_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
}
2 changes: 1 addition & 1 deletion runtime/mangata-kusama/src/weights/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(clippy::unnecessary_cast)]

pub mod frame_system_weights;
pub mod orml_asset_registry_weights;
pub mod orml_tokens_weights;
pub mod pallet_bootstrap_weights;
pub mod pallet_collective_weights;
Expand All @@ -15,4 +16,3 @@ pub mod pallet_utility_weights;
pub mod pallet_vesting_mangata_weights;
pub mod pallet_xyk_weights;
pub mod parachain_staking_weights;
pub mod xcm_asset_registry_weights;
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

//! Autogenerated weights for xcm_asset_registry
//! Autogenerated weights for orml_asset_registry
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-07-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-09-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
Expand All @@ -33,15 +33,15 @@
// --wasm-execution
// compiled
// --pallet
// xcm_asset_registry
// orml_asset_registry
// --extrinsic
// *
// --steps
// 50
// --repeat
// 20
// --output
// ./benchmarks/xcm_asset_registry_weights.rs
// ./benchmarks/orml_asset_registry_weights.rs
// --template
// ./templates/module-weight-template.hbs

Expand All @@ -53,27 +53,28 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use sp_std::marker::PhantomData;

/// Weight functions needed for xcm_asset_registry.
/// Weight functions needed for orml_asset_registry.
pub trait WeightInfo {
fn register_asset() -> Weight;
fn update_asset() -> Weight;
}

/// Weights for xcm_asset_registry using the Mangata node and recommended hardware.
/// Weights for orml_asset_registry using the Mangata node and recommended hardware.
pub struct ModuleWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> orml_asset_registry::WeightInfo for ModuleWeight<T> {
// Storage: Tokens NextCurrencyId (r:1 w:1)
// Storage: Tokens Accounts (r:1 w:0)
// Storage: AssetRegistry Metadata (r:1 w:1)
// Storage: AssetRegistry LocationToAssetId (r:1 w:1)
fn register_asset() -> Weight {
(34_624_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
(41_275_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: AssetRegistry Metadata (r:1 w:1)
// Storage: AssetRegistry LocationToAssetId (r:1 w:1)
fn update_asset() -> Weight {
(28_712_000 as Weight)
(29_857_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -82,13 +83,13 @@ impl<T: frame_system::Config> orml_asset_registry::WeightInfo for ModuleWeight<T
// For backwards compatibility and tests
impl WeightInfo for () {
fn register_asset() -> Weight {
(34_624_000 as Weight)
(41_275_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn update_asset() -> Weight {
(28_712_000 as Weight)
(29_857_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
}
30 changes: 15 additions & 15 deletions runtime/mangata-kusama/src/weights/orml_tokens_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for orml_tokens
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-07-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-09-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -70,35 +70,35 @@ impl<T: frame_system::Config> orml_tokens::WeightInfo for ModuleWeight<T> {
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer() -> Weight {
(47_667_000 as Weight)
(47_244_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_all() -> Weight {
(49_312_000 as Weight)
(49_010_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_keep_alive() -> Weight {
(43_327_000 as Weight)
(43_617_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:2 w:1)
fn force_transfer() -> Weight {
(46_240_000 as Weight)
(46_382_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: Tokens Accounts (r:1 w:1)
// Storage: Tokens TotalIssuance (r:1 w:1)
fn set_balance() -> Weight {
(24_242_000 as Weight)
(24_719_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -107,7 +107,7 @@ impl<T: frame_system::Config> orml_tokens::WeightInfo for ModuleWeight<T> {
// Storage: Tokens TotalIssuance (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn create() -> Weight {
(43_187_000 as Weight)
(42_794_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
Expand All @@ -116,7 +116,7 @@ impl<T: frame_system::Config> orml_tokens::WeightInfo for ModuleWeight<T> {
// Storage: Tokens TotalIssuance (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn mint() -> Weight {
(42_682_000 as Weight)
(42_599_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand All @@ -125,37 +125,37 @@ impl<T: frame_system::Config> orml_tokens::WeightInfo for ModuleWeight<T> {
// For backwards compatibility and tests
impl WeightInfo for () {
fn transfer() -> Weight {
(47_667_000 as Weight)
(47_244_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn transfer_all() -> Weight {
(49_312_000 as Weight)
(49_010_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn transfer_keep_alive() -> Weight {
(43_327_000 as Weight)
(43_617_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn force_transfer() -> Weight {
(46_240_000 as Weight)
(46_382_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn set_balance() -> Weight {
(24_242_000 as Weight)
(24_719_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn create() -> Weight {
(43_187_000 as Weight)
(42_794_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
fn mint() -> Weight {
(42_682_000 as Weight)
(42_599_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
Expand Down
Loading

0 comments on commit a7a83fc

Please sign in to comment.