-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat: Polkadot v1.10 to v1.12 upgrade #452
base: feat/polkadot-v1.10.0-upgrade
Are you sure you want to change the base?
Feat: Polkadot v1.10 to v1.12 upgrade #452
Conversation
…nto feat/polkadot-v1.12.0-upgrade # Conflicts: # CHANGELOG.md # Cargo.lock # Cargo.toml # runtime/cere-dev/src/lib.rs # runtime/cere/src/lib.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aideepakchaudhary Please fix conflicts and CI
@@ -6,6 +6,7 @@ use sc_client_api::{ | |||
AuxStore, Backend as BackendT, BlockchainEvents, KeysIter, MerkleValue, PairsIter, | |||
UsageProvider, | |||
}; | |||
#[allow(deprecated)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aideepakchaudhary Are we going to handle this in future PRs? If yes, please add a todo with version number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have addressed these deprecates here in this PR: #456
@@ -18,6 +19,7 @@ use sp_runtime::{ | |||
use sp_storage::{ChildInfo, StorageData, StorageKey}; | |||
|
|||
pub type FullBackend = sc_service::TFullBackend<Block>; | |||
#[allow(deprecated)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aideepakchaudhary If we are handling this in future PRs, please add a todo with version number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for this
@@ -30,6 +30,7 @@ pub use cere_client::{ | |||
}; | |||
pub use chain_spec::{CereChainSpec, CereDevChainSpec}; | |||
pub use node_primitives::{Block, BlockNumber}; | |||
#[allow(deprecated)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aideepakchaudhary If we are handling this in future PRs, please add a todo with version number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aideepakchaudhary paritytech/polkadot-sdk#4177 was also merged in 1.12.0. Can you include corresponding changes?
Please take a look https://github.com/paritytech/polkadot-sdk/blob/polkadot-v1.12.0/templates/solochain/runtime/build.rs for example.
@ayushmishra2005 , we are addressing these changes here in this PR: #456 |
@Aideepakchaudhary Please tag corresponding polkadot upgrade PR. For example #456 instead of #460 |
Description
This PR is upgrading Runtime's and Node's dependencies from Polkadot-SDK release
v1.10.0
to1.12.0
Notes
Relevant upgrade's notes and comments.
Migration of pallet-staking and pallet-contract
Possible Breaking changes:
sc-service
paritytech/polkadot-sdk#4457]: sc-service: export all public functionspallet_staking
,pallet_session
, andpallet_balances
paritytech/polkadot-sdk#4346]: Allow for 0 existential deposit in benchmarks for pallet_staking, pallet_session, and pallet_balancesDeposited
andWithdrawn
paritytech/polkadot-sdk#4312]: Add Deposited/Withdrawn events for pallet-assetsKindly refer to the official Polkadot release report for further details: Polkadot v1.12.0
Process
spec_ver
for bothtestnet
andmainnet
Runtime.TBD
Codebase Upgrade Acceptance Criteria
cargo check
passescargo test
passescargo build
on-- release
profile correctly buildstry-runtime
andruntime-benchmarks
features compileblock-production
config file generates blocks.Runtime & Node Upgrade Acceptance Criteria
Runtime upgrade works on Zombienet
Node upgrade works on Zombienet
Runtime upgrade works on Chopsticks
Try-runtime passes with no pending migrations
<!--- PR TEMPLATE CONTENT STARTS HERE -->
Types of Changes
Please select the branch type you are merging and fill in the relevant template.
<!--- Check the following box with an x if the following applies: -->
Fix or Feature
<!--- Check the following box with an x if the following applies: -->
Types of Changes
<!--- What types of changes does your code introduce? -->
Migrations and Hooks
<!--- Check the following box with an x if the following applies: -->
on_initialize
on_finalize
Checklist for Fix or Feature
<!--- All boxes need to be checked. Follow this checklist before requiring PR review -->
spec_version
has been incremented.network-relayer
's events have been updated according to the blockchain events if applicable.Checklist for Hotfix
<!--- All boxes need to be checked. Follow this checklist before requiring PR review -->
spec_version
has been incremented.dev
has been created.staging
has been created.network-relayer
's events have been updated according to the blockchain events if applicable.Checklist for Release
<!--- All boxes need to be checked. Follow this checklist before requiring PR review -->