Skip to content
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

Upgrade to polkadot-stable2412-1 #448

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

dastansam
Copy link

@dastansam dastansam commented Feb 5, 2025

What?

Work in progress upgrade to new stable version.

closes #446

Tasks

  • Review release notes for stable2412 for breaking changes. Also check the release notes of the versions before (with a focus on stable2409 and 1.14.0).
  • Update Polkadot SDK dependencies to stable2412.
  • Update ORML dependencies to the according version.
  • Test node and runtime compatibility (e.g., compile-time errors, runtime APIs, storage migrations).
  • Audit custom pallets for deprecated or changed SDK interfaces.
  • Update benchmarks (if applicable) for weight calculations.

Additional Context

  • The Treasury::propose_spend(...) integrations tests needs a rework, since that extrinsic is now deprecated, and it should be replaced by Treasury::sped_local(...). We can ignore these tests for now and re-add them in a later PR.

Why?

Release analysis posts here.

Some notable PRs:

How?

Testing?

  • Pallet Unit Testing (e.g. cargo t -p pallet-funding)
  • Integration Tests (e.g. cargo t -p integration-tests)
  • Try Runtime CLI, to test if we have to run any migration in this upgrade.

Screenshots (optional)

Syncing with mainnet `polimec` Screenshot 2025-02-06 at 1 16 29
`try-runtime` fails for `pallet-identity`

Screenshot 2025-02-06 at 3 51 46

Anything Else?

  • Due to the blockers listed in the issue above, currently orml crates are pointing to a fork
  • Fixed some crates that are still not using workspace dependencies

Follow ups

  • Fix integration tests errors
  • Remove SignedExtension deprecation warnings, by replacing it with TxExtension
  • Depend on crates.io versions for orml crates once new release is pushed
  • Introduce pallet-migrations for multi block migrations support. pallet_identity::V1ToV2 migrations is a lazy migration which needs pallet-migrations (see 2 in screenshots)

@dastansam dastansam marked this pull request as ready for review February 5, 2025 21:55
Copy link

graphite-app bot commented Feb 5, 2025

Graphite Automations

"Auto-assign PRs to author" took an action on this PR • (02/05/25)

1 assignee was added to this PR based on Juan Ignacio Rios's automation.

@lrazovic lrazovic self-requested a review February 6, 2025 07:50
type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote;
type DisapproveOrigin = EitherOfDiverse<
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied from ApproveOrigin above

@@ -239,7 +239,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
state_version: 1,
system_version: 1,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably be bumped to system_version: 2 (?)


parameter_types! {
/// The basic deposit to create an identity.
pub const BasicDeposit: Balance = 20 * PLMC;
/// Deposit for each additional field.
pub const ByteDeposit: Balance = deposit(0, 1);
/// Username deposit for identity
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be reviewed as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Polkadot SDK from 1.13.0 to stable2412
1 participant