From c58e78a2f5874f09ae2ef8baec15bae9b4d4836a Mon Sep 17 00:00:00 2001 From: Yahor Tsaryk Date: Thu, 28 Mar 2024 20:31:40 +0100 Subject: [PATCH] Release 5.1.2 (#299) ### Description ### Types of Changes - [x] Tech Debt (Code improvements) - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Dependency upgrade (A change in substrate or any 3rd party crate version) ### Migrations and Hooks - [x] This change requires a runtime migration. - [ ] Modifies `on_initialize` - [ ] Modifies `on_finalize` ### Checklist - [ ] Change has been tested locally. - [ ] Change adds / updates tests. - [ ] Changelog doc updated. --------- Co-authored-by: rakanalh Co-authored-by: Maksim Ramanenkau --- CHANGELOG.md | 6 ++++++ Cargo.lock | 32 ++++++++++++++++---------------- Cargo.toml | 2 +- runtime/cere-dev/src/lib.rs | 12 ++++++------ runtime/cere/src/lib.rs | 8 ++++---- 5 files changed, 33 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1909a9a11..ca4e083fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - ... +## [5.1.2] + +### Changed + +- [C,D] Inflation parameters for the staking reward curve are doubled to temporarily increase validators payouts +- [C,D] Daily burning is set to 0.058% ## [5.1.1] diff --git a/Cargo.lock b/Cargo.lock index e276dfcf2..2eb9ef1e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -683,7 +683,7 @@ dependencies = [ [[package]] name = "cere-cli" -version = "5.1.1" +version = "5.1.2" dependencies = [ "cere-client", "cere-service", @@ -700,7 +700,7 @@ dependencies = [ [[package]] name = "cere-client" -version = "5.1.1" +version = "5.1.2" dependencies = [ "cere-dev-runtime", "cere-runtime", @@ -732,7 +732,7 @@ dependencies = [ [[package]] name = "cere-dev-runtime" -version = "5.1.1" +version = "5.1.2" dependencies = [ "cere-runtime-common", "ddc-primitives", @@ -821,7 +821,7 @@ dependencies = [ [[package]] name = "cere-rpc" -version = "5.1.1" +version = "5.1.2" dependencies = [ "jsonrpsee", "node-primitives", @@ -850,7 +850,7 @@ dependencies = [ [[package]] name = "cere-runtime" -version = "5.1.1" +version = "5.1.2" dependencies = [ "cere-runtime-common", "ddc-primitives", @@ -939,7 +939,7 @@ dependencies = [ [[package]] name = "cere-runtime-common" -version = "5.1.1" +version = "5.1.2" dependencies = [ "frame-support", "frame-system", @@ -958,7 +958,7 @@ dependencies = [ [[package]] name = "cere-service" -version = "5.1.1" +version = "5.1.2" dependencies = [ "cere-client", "cere-dev-runtime", @@ -1591,7 +1591,7 @@ dependencies = [ [[package]] name = "ddc-primitives" -version = "5.1.1" +version = "5.1.2" dependencies = [ "frame-support", "frame-system", @@ -4714,7 +4714,7 @@ dependencies = [ [[package]] name = "pallet-chainbridge" -version = "5.1.1" +version = "5.1.2" dependencies = [ "frame-support", "frame-system", @@ -4817,7 +4817,7 @@ dependencies = [ [[package]] name = "pallet-ddc-clusters" -version = "5.1.1" +version = "5.1.2" dependencies = [ "ddc-primitives", "frame-benchmarking", @@ -4843,7 +4843,7 @@ dependencies = [ [[package]] name = "pallet-ddc-customers" -version = "5.1.1" +version = "5.1.2" dependencies = [ "ddc-primitives", "frame-benchmarking", @@ -4866,7 +4866,7 @@ dependencies = [ [[package]] name = "pallet-ddc-nodes" -version = "5.1.1" +version = "5.1.2" dependencies = [ "ddc-primitives", "frame-benchmarking", @@ -4887,7 +4887,7 @@ dependencies = [ [[package]] name = "pallet-ddc-payouts" -version = "5.1.1" +version = "5.1.2" dependencies = [ "byte-unit", "chrono", @@ -4911,7 +4911,7 @@ dependencies = [ [[package]] name = "pallet-ddc-staking" -version = "5.1.1" +version = "5.1.2" dependencies = [ "ddc-primitives", "frame-benchmarking", @@ -5006,7 +5006,7 @@ dependencies = [ [[package]] name = "pallet-erc20" -version = "5.1.1" +version = "5.1.2" dependencies = [ "frame-benchmarking", "frame-support", @@ -5025,7 +5025,7 @@ dependencies = [ [[package]] name = "pallet-erc721" -version = "5.1.1" +version = "5.1.2" dependencies = [ "frame-benchmarking", "frame-support", diff --git a/Cargo.toml b/Cargo.toml index c79c69fee..3ce06f478 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "5.1.1" +version = "5.1.2" authors = ["Cerebellum-Network"] edition = "2021" homepage = "https://cere.network/" diff --git a/runtime/cere-dev/src/lib.rs b/runtime/cere-dev/src/lib.rs index 3e8c33df2..88f6c3a1f 100644 --- a/runtime/cere-dev/src/lib.rs +++ b/runtime/cere-dev/src/lib.rs @@ -133,7 +133,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // and set impl_version to 0. If only runtime // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. - spec_version: 51100, + spec_version: 51200, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 15, @@ -375,7 +375,7 @@ impl pallet_scheduler::Config for Runtime { type MaxScheduledPerBlock = ConstU32<512>; type WeightInfo = pallet_scheduler::weights::SubstrateWeight; type OriginPrivilegeCmp = EqualPrivilegeOnly; - type Preimages = (); + type Preimages = Preimage; } parameter_types! { @@ -507,8 +507,8 @@ impl pallet_session::historical::Config for Runtime { pallet_staking_reward_curve::build! { const REWARD_CURVE: PiecewiseLinear<'static> = curve!( - min_inflation: 0_000_100, - max_inflation: 0_050_000, + min_inflation: 0_000_200, + max_inflation: 0_100_000, ideal_stake: 0_200_000, falloff: 0_050_000, max_piece_count: 100, @@ -803,7 +803,7 @@ impl pallet_democracy::Config for Runtime { type MaxVotes = ConstU32<100>; type WeightInfo = pallet_democracy::weights::SubstrateWeight; type MaxProposals = MaxProposals; - type Preimages = (); + type Preimages = Preimage; type MaxDeposits = ConstU32<100>; type MaxBlacklisted = ConstU32<100>; } @@ -909,7 +909,7 @@ parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(5); pub const ProposalBondMinimum: Balance = 50_000 * DOLLARS; pub const SpendPeriod: BlockNumber = DAYS; - pub const Burn: Permill = Permill::from_parts(0); + pub const Burn: Permill = Permill::from_parts(580); pub const TipCountdown: BlockNumber = DAYS; pub const TipFindersFee: Percent = Percent::from_percent(20); pub const TipReportDepositBase: Balance = 50_000 * DOLLARS; diff --git a/runtime/cere/src/lib.rs b/runtime/cere/src/lib.rs index 462c717af..cc5bdeaec 100644 --- a/runtime/cere/src/lib.rs +++ b/runtime/cere/src/lib.rs @@ -128,7 +128,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // and set impl_version to 0. If only runtime // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. - spec_version: 51100, + spec_version: 51200, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 15, @@ -502,8 +502,8 @@ impl pallet_session::historical::Config for Runtime { pallet_staking_reward_curve::build! { const REWARD_CURVE: PiecewiseLinear<'static> = curve!( - min_inflation: 0_000_100, - max_inflation: 0_050_000, + min_inflation: 0_000_200, + max_inflation: 0_100_000, ideal_stake: 0_200_000, falloff: 0_050_000, max_piece_count: 100, @@ -913,7 +913,7 @@ parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(5); pub const ProposalBondMinimum: Balance = 50_000 * DOLLARS; pub const SpendPeriod: BlockNumber = DAYS; - pub const Burn: Permill = Permill::from_parts(0); + pub const Burn: Permill = Permill::from_parts(580); pub const TipCountdown: BlockNumber = DAYS; pub const TipFindersFee: Percent = Percent::from_percent(20); pub const TipReportDepositBase: Balance = 50_000 * DOLLARS;