Skip to content

Commit

Permalink
Release centrifuge 1024 client 1035 (#1607)
Browse files Browse the repository at this point in the history
* feat: new weights altair

* feat: new weights centrifuge

* wip

* migrations: Add migration for account data

* migrations: Adjust pre upgrade logic for accounts

* migrations: Log total count for accounts

* migrations: Log total count for accounts with frozen and reserved balance

* deps: Remove double orml-tokens dep

* migrations: Add test account data for balances

* fix: account info checks

* fix: local docker setup

* CI release bug fixes  (#1611)

* Fix main branch detection for docker build

* Try out GHA for Pages deployment

* Docker build clean up workflow

* publish docker in all non-PR events

* fix docs cache (github token)

* Deploy docs only from main branch

* revert docker build machine size

* Fix: Transfer debt (#1615)

* fix: blocking transfer debt by epoch and redemptions.

* feat: make change_id deterministic

* fix: build

* chore(deps): bump google-github-actions/auth from 1.1.1 to 1.2.0 (#1614)

Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](google-github-actions/auth@35b0e87...f105ef0)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Guillermo Perez <gpmayorga@users.noreply.github.com>

* fix: minor stuff balances migration

* chore: bump development version, rm dummy migration

* chore: bump MaxFeedValues from 10 to 500

* fix: toml versions

* fix: remove balance migration from runtimes

* refactor: remove balance migration from codebase

* chore: update dev weights

* chore: update cfg weights

* chore: altair weights

* fix: enable XCM benches for dev

* chore: bump dev to 1035

chore: bump lock

* fix: missed renaming

fix: weights

fix: allowlist weights

* chore: bump client to 0.10.35

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: cdamian <17934949+cdamian@users.noreply.github.com>
Co-authored-by: William Freudenberger <w.freude@icloud.com>
Co-authored-by: Guillermo Perez <gpmayorga@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed Dec 7, 2023
1 parent f131108 commit ccbc3a1
Show file tree
Hide file tree
Showing 124 changed files with 3,553 additions and 3,189 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4
with:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 #v3
- name: DockerHub Login
Expand Down Expand Up @@ -83,4 +82,4 @@ jobs:
name: Check available space after build failed
run: |
docker volume ls
df -h
df -h
4 changes: 2 additions & 2 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
package: [altair-runtime, centrifuge-runtime, development-runtime]
name: ${{ matrix.target }}-${{ matrix.package }}
steps:
# PREP
# PREP
- name: Check out code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #3.5.2

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 #v3.1.3
with:
name: srtool-wasm-report.txt
path: ./${{ matrix.package }}-srtool-wasm-report.json
path: ./${{ matrix.package }}-srtool-wasm-report.json

- id: 'auth'
if: github.event_name != 'pull_request'
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "centrifuge-chain"
version = "0.10.34"
version = "0.10.35"
authors = ["Centrifuge <admin@centrifuge.io>"]
description = "Centrifuge chain implementation in Rust."
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion pallets/transfer-allowlist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ pub mod pallet {
/// - either the current block + delay if a delay is set
/// - or the current block if no delay is set
#[pallet::call_index(1)]
#[pallet::weight(T::WeightInfo::remove_transfer_allowance_missing_allowance().max(T::WeightInfo::remove_transfer_allowance_delay_present()))]
#[pallet::weight(T::WeightInfo::remove_transfer_allowance_delay_present().max(T::WeightInfo::remove_transfer_allowance_no_delay()))]
pub fn remove_transfer_allowance(
origin: OriginFor<T>,
currency_id: T::CurrencyId,
Expand Down
491 changes: 340 additions & 151 deletions pallets/transfer-allowlist/src/weights.rs

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions runtime/altair/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -38,8 +38,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1627`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(6_000_000, 0)
// Minimum execution time: 8_516_000 picoseconds.
Weight::from_parts(9_027_000, 0)
.saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -50,8 +50,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1627`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(6_000_000, 0)
// Minimum execution time: 8_436_000 picoseconds.
Weight::from_parts(8_787_000, 0)
.saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
3 changes: 1 addition & 2 deletions runtime/altair/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ pub mod pallet_restricted_tokens;
pub mod pallet_scheduler;
pub mod pallet_session;
pub mod pallet_timestamp;
pub mod pallet_transfer_allowlist;
pub mod pallet_treasury;
pub mod pallet_uniques;
pub mod pallet_utility;
pub mod pallet_vesting;
pub mod pallet_xcm;

pub mod pallet_transfer_allowlist;
20 changes: 10 additions & 10 deletions runtime/altair/src/weights/pallet_anchors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_anchors`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -42,8 +42,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `301`
// Estimated: `3581`
// Minimum execution time: 27_000_000 picoseconds.
Weight::from_parts(27_000_000, 0)
// Minimum execution time: 40_516_000 picoseconds.
Weight::from_parts(41_698_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 @@ -70,8 +70,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `668`
// Estimated: `3581`
// Minimum execution time: 47_000_000 picoseconds.
Weight::from_parts(48_000_000, 0)
// Minimum execution time: 70_522_000 picoseconds.
Weight::from_parts(72_225_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 @@ -82,8 +82,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_539_000_000 picoseconds.
Weight::from_parts(1_546_000_000, 0)
// Minimum execution time: 2_122_828_000 picoseconds.
Weight::from_parts(2_149_347_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 @@ -506,8 +506,8 @@ impl<T: frame_system::Config> pallet_anchors::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `18357`
// Estimated: `254990`
// Minimum execution time: 1_428_000_000 picoseconds.
Weight::from_parts(1_433_000_000, 0)
// Minimum execution time: 1_937_882_000 picoseconds.
Weight::from_parts(1_967_587_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
40 changes: 20 additions & 20 deletions runtime/altair/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -38,8 +38,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 58_000_000 picoseconds.
Weight::from_parts(59_000_000, 0)
// Minimum execution time: 83_116_000 picoseconds.
Weight::from_parts(84_969_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 @@ -50,8 +50,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 44_000_000 picoseconds.
Weight::from_parts(45_000_000, 0)
// Minimum execution time: 63_118_000 picoseconds.
Weight::from_parts(64_100_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 @@ -62,8 +62,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 15_000_000 picoseconds.
Weight::from_parts(16_000_000, 0)
// Minimum execution time: 23_524_000 picoseconds.
Weight::from_parts(24_365_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 @@ -74,8 +74,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 23_000_000 picoseconds.
Weight::from_parts(24_000_000, 0)
// Minimum execution time: 34_354_000 picoseconds.
Weight::from_parts(35_467_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 @@ -86,8 +86,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `192`
// Estimated: `6196`
// Minimum execution time: 61_000_000 picoseconds.
Weight::from_parts(62_000_000, 0)
// Minimum execution time: 87_484_000 picoseconds.
Weight::from_parts(89_137_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 @@ -98,8 +98,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 56_000_000 picoseconds.
Weight::from_parts(57_000_000, 0)
// Minimum execution time: 79_338_000 picoseconds.
Weight::from_parts(80_360_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 @@ -110,8 +110,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 18_000_000 picoseconds.
Weight::from_parts(19_000_000, 0)
// Minimum execution time: 27_772_000 picoseconds.
Weight::from_parts(28_583_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 @@ -123,11 +123,11 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `145 + u * (136 ±0)`
// Estimated: `990 + u * (2603 ±0)`
// Minimum execution time: 18_000_000 picoseconds.
Weight::from_parts(18_000_000, 0)
// Minimum execution time: 26_750_000 picoseconds.
Weight::from_parts(27_221_000, 0)
.saturating_add(Weight::from_parts(0, 990))
// Standard Error: 24_499
.saturating_add(Weight::from_parts(15_471_614, 0).saturating_mul(u.into()))
// Standard Error: 11_703
.saturating_add(Weight::from_parts(21_250_615, 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 Down
16 changes: 8 additions & 8 deletions runtime/altair/src/weights/pallet_block_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_block_rewards`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -44,8 +44,8 @@ impl<T: frame_system::Config> pallet_block_rewards::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `583`
// Estimated: `6196`
// Minimum execution time: 61_000_000 picoseconds.
Weight::from_parts(62_000_000, 0)
// Minimum execution time: 86_001_000 picoseconds.
Weight::from_parts(88_175_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
Expand All @@ -58,8 +58,8 @@ impl<T: frame_system::Config> pallet_block_rewards::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3574`
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
// Minimum execution time: 12_073_000 picoseconds.
Weight::from_parts(12_514_000, 0)
.saturating_add(Weight::from_parts(0, 3574))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -72,8 +72,8 @@ impl<T: frame_system::Config> pallet_block_rewards::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `65`
// Estimated: `3574`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
// Minimum execution time: 10_921_000 picoseconds.
Weight::from_parts(11_461_000, 0)
.saturating_add(Weight::from_parts(0, 3574))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
12 changes: 6 additions & 6 deletions runtime/altair/src/weights/pallet_collator_allowlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_collator_allowlist`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-12-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("altair-dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -40,8 +40,8 @@ impl<T: frame_system::Config> pallet_collator_allowlist::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `491`
// Estimated: `3956`
// Minimum execution time: 15_000_000 picoseconds.
Weight::from_parts(16_000_000, 0)
// Minimum execution time: 25_318_000 picoseconds.
Weight::from_parts(25_979_000, 0)
.saturating_add(Weight::from_parts(0, 3956))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -52,8 +52,8 @@ impl<T: frame_system::Config> pallet_collator_allowlist::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `199`
// Estimated: `3497`
// Minimum execution time: 12_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
// Minimum execution time: 18_965_000 picoseconds.
Weight::from_parts(19_727_000, 0)
.saturating_add(Weight::from_parts(0, 3497))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
Loading

0 comments on commit ccbc3a1

Please sign in to comment.