Skip to content

Commit 21a07b5

Browse files
committed
chore(upgrade): v1.8.0 to v1.9.0
- Upgrade Polkadot-sdk to v.1.8.0. - Update weights to reflect the new version. Notable Changes: - [System Callabacks](paritytech/polkadot-sdk#1781) - [Remove of pallet pallet::getter](paritytech/polkadot-sdk#3456) - [Add storage_proof_size host function](paritytech/polkadot-sdk#3002) For more details, please refer to: [Release Notes](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.9.0)
1 parent 2676db8 commit 21a07b5

23 files changed

Lines changed: 826 additions & 702 deletions

File tree

Cargo.lock

Lines changed: 613 additions & 560 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 99 additions & 98 deletions
Large diffs are not rendered by default.

node/service/src/service.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ pub mod frequency_executor {
6868

6969
impl sc_executor::NativeExecutionDispatch for FrequencyExecutorDispatch {
7070
#[cfg(feature = "runtime-benchmarks")]
71-
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
71+
type ExtendHostFunctions = (
72+
frame_benchmarking::benchmarking::HostFunctions,
73+
cumulus_client_service::storage_proof_size::HostFunctions,
74+
);
7275

7376
#[cfg(not(feature = "runtime-benchmarks"))]
74-
type ExtendHostFunctions = ();
77+
type ExtendHostFunctions = cumulus_client_service::storage_proof_size::HostFunctions;
7578

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

pallets/capacity/src/tests/mock.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ impl frame_system::Config for Test {
5353
type SS58Prefix = ConstU16<42>;
5454
type OnSetCode = ();
5555
type MaxConsumers = frame_support::traits::ConstU32<16>;
56+
type SingleBlockMigrations = ();
57+
type MultiBlockMigrator = ();
58+
type PreInherents = ();
59+
type PostInherents = ();
60+
type PostTransactions = ();
5661
}
5762

5863
impl pallet_balances::Config for Test {

pallets/frequency-tx-payment/src/tests/mock.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ impl frame_system::Config for Test {
8080
type SS58Prefix = ConstU16<42>;
8181
type OnSetCode = ();
8282
type MaxConsumers = frame_support::traits::ConstU32<16>;
83+
type SingleBlockMigrations = ();
84+
type MultiBlockMigrator = ();
85+
type PreInherents = ();
86+
type PostInherents = ();
87+
type PostTransactions = ();
8388
}
8489

8590
impl pallet_balances::Config for Test {

pallets/handles/src/tests/mock.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ impl frame_system::Config for Test {
8080
type SS58Prefix = ConstU16<42>;
8181
type OnSetCode = ();
8282
type MaxConsumers = frame_support::traits::ConstU32<16>;
83+
type SingleBlockMigrations = ();
84+
type MultiBlockMigrator = ();
85+
type PreInherents = ();
86+
type PostInherents = ();
87+
type PostTransactions = ();
8388
}
8489

8590
impl pallet_handles::Config for Test {

pallets/messages/src/migration/v2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateToV2<T> {
105105
pub fn migrate_to_v2<T: Config>() -> Weight {
106106
log::info!(target: LOG_TARGET, "Running storage migration...");
107107
let onchain_version = Pallet::<T>::on_chain_storage_version();
108-
let current_version = Pallet::<T>::current_storage_version();
108+
let current_version = Pallet::<T>::in_code_storage_version();
109109
log::info!(target: LOG_TARGET, "onchain_version= {:?}, current_version={:?}", onchain_version, current_version);
110110

111111
if onchain_version < 2 {

pallets/messages/src/tests/mock.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ impl system::Config for Test {
6666
type SS58Prefix = ConstU16<42>;
6767
type OnSetCode = ();
6868
type MaxConsumers = ConstU32<16>;
69+
type SingleBlockMigrations = ();
70+
type MultiBlockMigrator = ();
71+
type PreInherents = ();
72+
type PostInherents = ();
73+
type PostTransactions = ();
6974
}
7075

7176
pub type MaxSchemaGrantsPerDelegation = ConstU32<30>;

pallets/messages/src/tests/other_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ fn migration_to_v2_should_work_as_expected() {
668668

669669
let old_count = v2::old::Messages::<Test>::iter().count();
670670
let new_count = MessagesV2::<Test>::iter().count();
671-
let current_version = MessagesPallet::current_storage_version();
671+
let current_version = MessagesPallet::in_code_storage_version();
672672

673673
assert_eq!(old_count, 0);
674674
assert_eq!(new_count, message_per_block.iter().sum::<usize>());

pallets/msa/src/tests/governance_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use frame_support::{assert_noop, assert_ok, traits::ChangeMembers};
22

3+
use pallet_collective::ProposalOf;
34
use sp_weights::Weight;
45

56
use pretty_assertions::assert_eq;
@@ -52,7 +53,7 @@ fn propose_to_be_provider_happy_path() {
5253

5354
let proposal_index = proposed_events[0].0;
5455
let proposal_hash = proposed_events[0].1;
55-
let proposal = Council::proposal_of(proposal_hash).unwrap();
56+
let proposal = ProposalOf::<Test, CouncilCollective>::get(proposal_hash).unwrap();
5657
let proposal_len: u32 = proposal.encoded_size() as u32;
5758

5859
// Set up the council members

0 commit comments

Comments
 (0)