Skip to content

Commit

Permalink
bump version (#2627)
Browse files Browse the repository at this point in the history
* bump version

* /bench module module_liquid_crowdloan

* /bench module module_earning

* /bench module module_incentives

* fix benchmark

* fix

* fix

* /bench module module_incentives

* /bench runtime karura *

* fix

* fix

* /bench runtime karura *

* /bench runtime acala *

* trigger CI

---------

Co-authored-by: Acala Github Action Bot <[email protected]>
  • Loading branch information
xlc and Acala Github Action Bot authored Oct 6, 2023
1 parent a24170f commit 37d9e36
Show file tree
Hide file tree
Showing 112 changed files with 1,780 additions and 1,443 deletions.
92 changes: 46 additions & 46 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,15 @@ endif

.PHONY: benchmark-mandala
benchmark-mandala:
cargo run $(options) --profile production --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 '--pallet=$(or $(pallet),*)' '--extrinsic=*' --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/
cargo run $(options) --bin=acala --profile production --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 '--pallet=$(or $(pallet),*)' '--extrinsic=*' --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

.PHONY: benchmark-karura
benchmark-karura:
cargo run $(options) --profile production --features=runtime-benchmarks --features=with-karura-runtime -- benchmark pallet --chain=karura-dev --steps=50 --repeat=20 '--pallet=$(or $(pallet),*)' '--extrinsic=*' --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/
cargo run $(options) --bin=acala --profile production --features=runtime-benchmarks --features=with-karura-runtime -- benchmark pallet --chain=karura-dev --steps=50 --repeat=20 '--pallet=$(or $(pallet),*)' '--extrinsic=*' --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

.PHONY: benchmark-acala
benchmark-acala:
cargo run $(options) --profile production --features=runtime-benchmarks --features=with-acala-runtime -- benchmark pallet --chain=acala-dev --steps=50 --repeat=20 '--pallet=$(or $(pallet),*)' '--extrinsic=*' --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/
cargo run $(options) --bin=acala --profile production --features=runtime-benchmarks --features=with-acala-runtime -- benchmark pallet --chain=acala-dev --steps=50 --repeat=20 '--pallet=$(or $(pallet),*)' '--extrinsic=*' --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

.PHONY: benchmark-machine
benchmark-machine:
Expand Down
2 changes: 1 addition & 1 deletion inspect/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "acala-inspect"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/aggregated-dex/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-aggregated-dex"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/asset-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-asset-registry"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/auction-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-auction-manager"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/cdp-engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-cdp-engine"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/cdp-treasury/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-cdp-treasury"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/collator-selection/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'module-collator-selection'
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/currencies/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-currencies"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/dex-oracle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-dex-oracle"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/dex/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-dex"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/earning/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-earning"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
214 changes: 170 additions & 44 deletions modules/earning/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,19 @@
//! Autogenerated weights for module_earning
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
//! DATE: 2023-10-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `ip-172-31-34-148`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
// target/release/acala
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=module_earning
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./modules/earning/src/weights.rs
Expand All @@ -39,7 +40,6 @@
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(clippy::unnecessary_cast)]

use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use sp_std::marker::PhantomData;
Expand All @@ -56,68 +56,194 @@ pub trait WeightInfo {
/// Weights for module_earning using the Acala node and recommended hardware.
pub struct AcalaWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for AcalaWeight<T> {
// Storage: Earning Ledger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
// Storage: `Rewards::PoolInfos` (r:1 w:1)
// Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
// Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn bond() -> Weight {
Weight::from_parts(28_562_000, 0)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2293`
// Estimated: `5758`
// Minimum execution time: 73_725 nanoseconds.
Weight::from_parts(75_235_000, 5758)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
// Storage: Earning Ledger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: `Parameters::Parameters` (r:1 w:0)
// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
// Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
// Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Rewards::PoolInfos` (r:1 w:1)
// Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn unbond_instant() -> Weight {
Weight::from_parts(37_276_000, 0)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2989`
// Estimated: `6454`
// Minimum execution time: 122_163 nanoseconds.
Weight::from_parts(124_799_000, 6454)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(4))
}
// Storage: Earning Ledger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
// Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
// Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Rewards::PoolInfos` (r:1 w:1)
// Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn unbond() -> Weight {
Weight::from_parts(26_976_000, 0)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2630`
// Estimated: `6095`
// Minimum execution time: 75_334 nanoseconds.
Weight::from_parts(77_218_000, 6095)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
// Storage: Earning Ledger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
// Storage: `Rewards::PoolInfos` (r:1 w:1)
// Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
// Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn rebond() -> Weight {
Weight::from_parts(28_003_000, 0)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2882`
// Estimated: `6347`
// Minimum execution time: 72_979 nanoseconds.
Weight::from_parts(74_162_000, 6347)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
// Storage: Earning Ledger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn withdraw_unbonded() -> Weight {
Weight::from_parts(28_656_000, 0)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2532`
// Estimated: `5997`
// Minimum execution time: 66_969 nanoseconds.
Weight::from_parts(68_841_000, 5997)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
// Storage: `Rewards::PoolInfos` (r:1 w:1)
// Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
// Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn bond() -> Weight {
Weight::from_parts(28_562_000, 0)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2293`
// Estimated: `5758`
// Minimum execution time: 73_725 nanoseconds.
Weight::from_parts(75_235_000, 5758)
.saturating_add(RocksDbWeight::get().reads(5))
.saturating_add(RocksDbWeight::get().writes(4))
}
// Storage: `Parameters::Parameters` (r:1 w:0)
// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
// Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
// Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Rewards::PoolInfos` (r:1 w:1)
// Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn unbond_instant() -> Weight {
Weight::from_parts(37_276_000, 0)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2989`
// Estimated: `6454`
// Minimum execution time: 122_163 nanoseconds.
Weight::from_parts(124_799_000, 6454)
.saturating_add(RocksDbWeight::get().reads(6))
.saturating_add(RocksDbWeight::get().writes(4))
}
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
// Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
// Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Rewards::PoolInfos` (r:1 w:1)
// Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn unbond() -> Weight {
Weight::from_parts(26_976_000, 0)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2630`
// Estimated: `6095`
// Minimum execution time: 75_334 nanoseconds.
Weight::from_parts(77_218_000, 6095)
.saturating_add(RocksDbWeight::get().reads(5))
.saturating_add(RocksDbWeight::get().writes(4))
}
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
// Storage: `Rewards::PoolInfos` (r:1 w:1)
// Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1)
// Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn rebond() -> Weight {
Weight::from_parts(28_003_000, 0)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2882`
// Estimated: `6347`
// Minimum execution time: 72_979 nanoseconds.
Weight::from_parts(74_162_000, 6347)
.saturating_add(RocksDbWeight::get().reads(5))
.saturating_add(RocksDbWeight::get().writes(4))
}
// Storage: `Earning::Ledger` (r:1 w:1)
// Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`)
// Storage: `Balances::Locks` (r:1 w:1)
// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
// Storage: `Balances::Freezes` (r:1 w:0)
// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn withdraw_unbonded() -> Weight {
Weight::from_parts(28_656_000, 0)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
// Proof Size summary in bytes:
// Measured: `2532`
// Estimated: `5997`
// Minimum execution time: 66_969 nanoseconds.
Weight::from_parts(68_841_000, 5997)
.saturating_add(RocksDbWeight::get().reads(3))
.saturating_add(RocksDbWeight::get().writes(2))
}
}
2 changes: 1 addition & 1 deletion modules/emergency-shutdown/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-emergency-shutdown"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/evm-accounts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-evm-accounts"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion modules/evm-bridge/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "module-evm-bridge"
version = "2.21.0"
version = "2.22.0"
authors = ["Acala Developers"]
edition = "2021"

Expand Down
Loading

0 comments on commit 37d9e36

Please sign in to comment.