Skip to content

Commit

Permalink
chore(upgrade): v1.9.0 to v1.10.0
Browse files Browse the repository at this point in the history
- Upgrade Polkadot-sdk to v.1.10.0.
- Update weights to reflect the new version.

Notable Changes:
- [Remove experimental flag](https://github.com/paritytech/polkadot-sdk/pull/3654/files)
- [Remove pallet::getter macr](paritytech/polkadot-sdk#3350)
- [Refactor APIs](https://github.com/paritytech/polkadot-sdk/pull/3817/files#diff-b02373af4015a8ebdf3a3f5be9ea0ce555b6e45331872e0465fd2f488177d383)

For more details, please refer to:

[Release Notes](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.10.0)

issue-1928
  • Loading branch information
enddynayn committed Jul 30, 2024
1 parent cbf4c85 commit 0e84494
Show file tree
Hide file tree
Showing 7 changed files with 970 additions and 929 deletions.
968 changes: 483 additions & 485 deletions Cargo.lock

Large diffs are not rendered by default.

197 changes: 98 additions & 99 deletions Cargo.toml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions node/service/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use sc_client_api::Backend;
use std::{sync::Arc, time::Duration};

use cumulus_client_cli::CollatorOptions;
use frequency_runtime::RuntimeApi;
use frequency_runtime::apis::RuntimeApi;

// RPC
use common_primitives::node::{AccountId, Balance, Block, Hash, Index as Nonce};
Expand Down Expand Up @@ -77,7 +77,7 @@ pub mod frequency_executor {
type ExtendHostFunctions = cumulus_client_service::storage_proof_size::HostFunctions;

fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
frequency_runtime::api::dispatch(method, data)
frequency_runtime::apis::api::dispatch(method, data)
}

fn native_version() -> sc_executor::NativeVersion {
Expand Down
16 changes: 8 additions & 8 deletions runtime/common/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
///
/// Stats nanoseconds:
/// Min, Max: 240_263, 260_853
/// Average: 245_079
/// Median: 243_534
/// Std-Dev: 4690.52
/// Min, Max: 236_708, 264_767
/// Average: 243_018
/// Median: 241_321
/// Std-Dev: 5140.31
///
/// Percentiles nanoseconds:
/// 99th: 260_552
/// 95th: 256_706
/// 75th: 246_329
/// 99th: 258_049
/// 95th: 256_462
/// 75th: 244_523
pub const BlockExecutionWeight: Weight =
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(245_079), 0);
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(243_018), 0);
}

#[cfg(test)]
Expand Down
16 changes: 8 additions & 8 deletions runtime/common/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
///
/// Stats nanoseconds:
/// Min, Max: 62_949, 64_130
/// Average: 63_309
/// Median: 63_277
/// Std-Dev: 228.35
/// Min, Max: 60_501, 61_280
/// Average: 60_721
/// Median: 60_690
/// Std-Dev: 149.79
///
/// Percentiles nanoseconds:
/// 99th: 63_842
/// 95th: 63_716
/// 75th: 63_452
/// 99th: 61_102
/// 95th: 60_987
/// 75th: 60_795
pub const ExtrinsicBaseWeight: Weight =
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(63_309), 0);
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(60_721), 0);
}

#[cfg(test)]
Expand Down
Loading

0 comments on commit 0e84494

Please sign in to comment.