Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.11.3 #1886

Merged
merged 19 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
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
6 changes: 2 additions & 4 deletions pallets/investments/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2510,17 +2510,15 @@ fn collecting_fully_works() {
#[allow(non_snake_case)]
let SINGLE_REDEEM_AMOUNT_C = 50 * CURRENCY;
#[allow(non_snake_case)]
let TOTAL_REDEEM_AMOUNT =
SINGLE_REDEEM_AMOUNT_A + SINGLE_REDEEM_AMOUNT_B + SINGLE_REDEEM_AMOUNT_C;
let TOTAL_REDEEM_AMOUNT = SINGLE_REDEEM_AMOUNT_A + SINGLE_REDEEM_AMOUNT_B + SINGLE_REDEEM_AMOUNT_C;
#[allow(non_snake_case)]
let SINGLE_INVEST_AMOUNT_A = 50 * CURRENCY;
#[allow(non_snake_case)]
let SINGLE_INVEST_AMOUNT_B = 50 * CURRENCY;
#[allow(non_snake_case)]
let SINGLE_INVEST_AMOUNT_C = 50 * CURRENCY;
#[allow(non_snake_case)]
let TOTAL_INVEST_AMOUNT =
SINGLE_INVEST_AMOUNT_A + SINGLE_INVEST_AMOUNT_B + SINGLE_INVEST_AMOUNT_C;
let TOTAL_INVEST_AMOUNT = SINGLE_INVEST_AMOUNT_A + SINGLE_INVEST_AMOUNT_B + SINGLE_INVEST_AMOUNT_C;
#[allow(non_snake_case)]
let FULL_FULFILL = FulfillmentWithPrice {
of_amount: Perquintill::one(),
Expand Down
3 changes: 1 addition & 2 deletions pallets/pool-system/src/pool_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ impl<
TrancheId,
PoolId,
MaxTranches,
>
where
> where
Balance:
FixedPointOperand + BaseArithmetic + Unsigned + From<u64> + sp_arithmetic::MultiplyRational,
CurrencyId: Copy,
Expand Down
9 changes: 4 additions & 5 deletions pallets/pool-system/src/tranches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2908,11 +2908,10 @@ pub mod test {
mod rebalance {
use super::*;

const TOTAL_ASSETS: Balance =
DEBT_RES
+ RESERVE_RES + DEBT_NONRES_1
+ RESERVE_NONRES_1
+ DEBT_NONRES_2 + RESERVE_NONRES_2;
const TOTAL_ASSETS: Balance = DEBT_RES
+ RESERVE_RES + DEBT_NONRES_1
+ RESERVE_NONRES_1
+ DEBT_NONRES_2 + RESERVE_NONRES_2;
Copy link
Contributor

@lemunozm lemunozm Jun 24, 2024

Choose a reason for hiding this comment

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

Before you get crazy with this and the rustfmt. Upgrade your current nightly rust tooling, because they have made a major version in the rustfmt without upgrading the version number or waiting to the next rust version 🥲

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! That's exactly what I did an hour ago. I suppose you were there at some point as well. We should pinpoint the nightly version in the toolchain toml if possible or else the setup script.

const RATIO_NONRES_1: Balance = DEBT_NONRES_1 + RESERVE_NONRES_1;
const RATIO_NONRES_2: Balance = DEBT_NONRES_2 + RESERVE_NONRES_2;
const DEFAULT_NAV: Balance = 1_234_567_890;
Expand Down
30 changes: 15 additions & 15 deletions runtime/altair/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-06-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("altair-local")`, DB CACHE: 1024
Expand Down Expand Up @@ -37,8 +37,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
// Minimum execution time: 6_182_000 picoseconds.
Weight::from_parts(6_412_000, 0)
// Minimum execution time: 6_111_000 picoseconds.
Weight::from_parts(6_312_000, 0)
.saturating_add(Weight::from_parts(0, 1594))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -57,8 +57,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `115`
// Estimated: `3517`
// Minimum execution time: 17_342_000 picoseconds.
Weight::from_parts(17_753_000, 0)
// Minimum execution time: 15_910_000 picoseconds.
Weight::from_parts(16_451_000, 0)
.saturating_add(Weight::from_parts(0, 3517))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
Expand All @@ -69,8 +69,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
// Minimum execution time: 3_506_000 picoseconds.
Weight::from_parts(3_737_000, 0)
// Minimum execution time: 3_396_000 picoseconds.
Weight::from_parts(3_636_000, 0)
.saturating_add(Weight::from_parts(0, 1594))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -81,8 +81,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `1629`
// Minimum execution time: 4_809_000 picoseconds.
Weight::from_parts(5_009_000, 0)
// Minimum execution time: 4_669_000 picoseconds.
Weight::from_parts(4_849_000, 0)
.saturating_add(Weight::from_parts(0, 1629))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -91,8 +91,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 10_980_000 picoseconds.
Weight::from_parts(11_281_000, 0)
// Minimum execution time: 10_941_000 picoseconds.
Weight::from_parts(11_191_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
Expand All @@ -113,8 +113,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `65744`
// Estimated: `69209`
// Minimum execution time: 128_890_000 picoseconds.
Weight::from_parts(130_303_000, 0)
// Minimum execution time: 142_857_000 picoseconds.
Weight::from_parts(144_159_000, 0)
.saturating_add(Weight::from_parts(0, 69209))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(5))
Expand All @@ -127,8 +127,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `65743`
// Estimated: `69208`
// Minimum execution time: 56_836_000 picoseconds.
Weight::from_parts(60_172_000, 0)
// Minimum execution time: 66_163_000 picoseconds.
Weight::from_parts(67_566_000, 0)
.saturating_add(Weight::from_parts(0, 69208))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
Expand Down
50 changes: 35 additions & 15 deletions runtime/altair/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,30 +92,50 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Estimated: `0`
// Minimum execution time: 3_306 nanoseconds.
Weight::from_parts(3_357_000, 0)
// Standard Error: 868
.saturating_add(Weight::from_parts(650_497, 0).saturating_mul(i.into()))
// Standard Error: 1_425
.saturating_add(Weight::from_parts(662_473, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: Skipped Metadata (r:0 w:0)
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `178 + p * (69 ±0)`
// Estimated: `155 + p * (70 ±0)`
// Minimum execution time: 6_271 nanoseconds.
// Measured: `115 + p * (69 ±0)`
// Estimated: `128 + p * (70 ±0)`
// Minimum execution time: 4_189_000 picoseconds.
Weight::from_parts(6_522_000, 155)
// Standard Error: 1_372
.saturating_add(Weight::from_parts(1_296_943, 0).saturating_mul(p.into()))
// Standard Error: 2_296
.saturating_add(Weight::from_parts(1_389_650, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
}

fn authorize_upgrade() -> Weight {
Weight::zero()
}

fn apply_authorized_upgrade() -> Weight {
Weight::zero()
}
/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
fn authorize_upgrade() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 33_027_000 picoseconds.
Weight::from_parts(33_027_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
/// Storage: `System::Digest` (r:1 w:1)
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
fn apply_authorized_upgrade() -> Weight {
// Proof Size summary in bytes:
// Measured: `22`
// Estimated: `1518`
// Minimum execution time: 118_101_992_000 picoseconds.
Weight::from_parts(118_101_992_000, 0)
.saturating_add(Weight::from_parts(0, 1518))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
}
18 changes: 9 additions & 9 deletions runtime/altair/src/weights/pallet_anchors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_anchors`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-06-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("altair-local")`, DB CACHE: 1024
Expand Down Expand Up @@ -41,8 +41,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `301`
// Estimated: `3581`
// Minimum execution time: 38_802_000 picoseconds.
Weight::from_parts(39_623_000, 0)
// Minimum execution time: 36_118_000 picoseconds.
Weight::from_parts(36_839_000, 0)
.saturating_add(Weight::from_parts(0, 3581))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -69,8 +69,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `635`
// Estimated: `3581`
// Minimum execution time: 65_622_000 picoseconds.
Weight::from_parts(66_775_000, 0)
// Minimum execution time: 62_316_000 picoseconds.
Weight::from_parts(63_158_000, 0)
.saturating_add(Weight::from_parts(0, 3581))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(5))
Expand All @@ -81,8 +81,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `12450`
// Estimated: `260090`
// Minimum execution time: 1_940_047_000 picoseconds.
Weight::from_parts(1_960_465_000, 0)
// Minimum execution time: 1_774_000_000 picoseconds.
Weight::from_parts(1_790_681_000, 0)
.saturating_add(Weight::from_parts(0, 260090))
.saturating_add(T::DbWeight::get().reads(100))
.saturating_add(T::DbWeight::get().writes(100))
Expand Down Expand Up @@ -505,8 +505,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `18325`
// Estimated: `254990`
// Minimum execution time: 1_993_527_000 picoseconds.
Weight::from_parts(2_031_267_000, 0)
// Minimum execution time: 1_886_510_000 picoseconds.
Weight::from_parts(1_907_469_000, 0)
.saturating_add(Weight::from_parts(0, 254990))
.saturating_add(T::DbWeight::get().reads(504))
.saturating_add(T::DbWeight::get().writes(402))
Expand Down
42 changes: 21 additions & 21 deletions runtime/altair/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-06-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("altair-local")`, DB CACHE: 1024
Expand Down Expand Up @@ -37,8 +37,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 71_153_000 picoseconds.
Weight::from_parts(73_037_000, 0)
// Minimum execution time: 65_712_000 picoseconds.
Weight::from_parts(66_664_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -49,8 +49,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 57_367_000 picoseconds.
Weight::from_parts(58_438_000, 0)
// Minimum execution time: 52_067_000 picoseconds.
Weight::from_parts(53_059_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -61,8 +61,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `245`
// Estimated: `3593`
// Minimum execution time: 21_480_000 picoseconds.
Weight::from_parts(21_921_000, 0)
// Minimum execution time: 19_746_000 picoseconds.
Weight::from_parts(20_448_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -73,8 +73,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `245`
// Estimated: `3593`
// Minimum execution time: 28_934_000 picoseconds.
Weight::from_parts(29_585_000, 0)
// Minimum execution time: 26_961_000 picoseconds.
Weight::from_parts(27_501_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -85,8 +85,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `192`
// Estimated: `6196`
// Minimum execution time: 75_050_000 picoseconds.
Weight::from_parts(76_904_000, 0)
// Minimum execution time: 68_798_000 picoseconds.
Weight::from_parts(69_800_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
Expand All @@ -97,8 +97,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 72_455_000 picoseconds.
Weight::from_parts(73_347_000, 0)
// Minimum execution time: 65_091_000 picoseconds.
Weight::from_parts(66_023_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -109,8 +109,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `245`
// Estimated: `3593`
// Minimum execution time: 26_259_000 picoseconds.
Weight::from_parts(26_920_000, 0)
// Minimum execution time: 23_945_000 picoseconds.
Weight::from_parts(24_475_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -122,11 +122,11 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `143 + u * (136 ±0)`
// Estimated: `990 + u * (2603 ±0)`
// Minimum execution time: 24_366_000 picoseconds.
Weight::from_parts(24_646_000, 0)
// Minimum execution time: 22_222_000 picoseconds.
Weight::from_parts(22_592_000, 0)
.saturating_add(Weight::from_parts(0, 990))
// Standard Error: 13_626
.saturating_add(Weight::from_parts(20_193_487, 0).saturating_mul(u.into()))
// Standard Error: 12_698
.saturating_add(Weight::from_parts(18_225_214, 0).saturating_mul(u.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
Expand All @@ -135,8 +135,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 9_007_000 picoseconds.
Weight::from_parts(9_367_000, 0)
// Minimum execution time: 7_935_000 picoseconds.
Weight::from_parts(8_205_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
}
Loading
Loading