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

Update to SDK 1.13 #322

Merged
merged 100 commits into from
Jul 11, 2024
Merged

Update to SDK 1.13 #322

merged 100 commits into from
Jul 11, 2024

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented May 22, 2024

Updates the runtimes from 1.7 to 1.13.

TODO:

  •  Wait for 1.13 crates release and integrate them.
  • Fix all FAIL-CI @name.
  • Enable Encointer runtimes and pallets once they are on 1.13 as well @brenzi.
  • Unrevert #337

brenzi and others added 17 commits May 21, 2024 13:20
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
ggwpez added 11 commits May 22, 2024 12:34
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
AccountId,
Self::AssetKind,
PoolIdToAccountId,
>; // FAIL-CI @muharem does this make sense or do we need the AccountIdConverter?
Copy link
Member Author

Choose a reason for hiding this comment

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

@muharem i copied this from the SDK, please check.

Copy link
Contributor

Choose a reason for hiding this comment

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

for Kusama we need to leave it with no seed for now (AccountIdConverterNoSeed) to keep the same derivation as now. to migrate to new derivation, we need to include the migration pallet. I can do it in separate PR, this is not critical.

Copy link
Contributor

Choose a reason for hiding this comment

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

in Polkadot Asset Hub, for the same type parameter we can use this setup, and remove the imps::pool module. this is because for the pallet for Polkadot was launched with the new derivation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if i understood this correctly, but i could not get it to compile with the changes.
Can you please just push a commit here to fix it?

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@acatangiu acatangiu left a comment

Choose a reason for hiding this comment

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

Everything looks good (modulo some config where @muharem is tagged to check, where I did not verify in-depth).

Thank you @ggwpez ! 🚀

relay/kusama/src/weights/pallet_xcm.rs Outdated Show resolved Hide resolved
relay/kusama/src/xcm_config.rs Outdated Show resolved Hide resolved
relay/polkadot/src/weights/pallet_xcm.rs Outdated Show resolved Hide resolved
relay/polkadot/src/xcm_config.rs Outdated Show resolved Hide resolved
system-parachains/encointer/src/xcm_config.rs Outdated Show resolved Hide resolved
system-parachains/people/people-kusama/src/xcm_config.rs Outdated Show resolved Hide resolved
system-parachains/people/people-polkadot/src/xcm_config.rs Outdated Show resolved Hide resolved
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Copy link
Contributor

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

IdleMaxServiceWeight is set everywhere to nothing. Was this done on purpose?

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
@@ -6,9 +6,90 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Added

- [[#322](https://github.com/polkadot-fellows/runtimes/pull/322)] Add `claim_assets` extrinsic to `pallet-xcm` ([SDK v1.9 #3403](https://github.com/paritytech/polkadot-sdk/pull/3403)).
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about the formatting. Maybe having the pr only once and then mention all these changes in a sublist?

Copy link
Member Author

Choose a reason for hiding this comment

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

Grouped them now.

CHANGELOG.md Outdated
- [[#322](https://github.com/polkadot-fellows/runtimes/pull/322)] Im-online pallet offchain storage cleanup ([SDK v1.8 #2290](https://github.com/paritytech/polkadot-sdk/pull/2290)).
- [[#322](https://github.com/polkadot-fellows/runtimes/pull/322)] Implements a percentage cap on staking rewards from era inflation ([SDK v1.8 #1660](https://github.com/paritytech/polkadot-sdk/pull/1660)).
- [[#322](https://github.com/polkadot-fellows/runtimes/pull/322)] Introduce submit_finality_proof_ex call to bridges GRANDPA pallet ([SDK v1.8 #3225](https://github.com/paritytech/polkadot-sdk/pull/3225)).
- [[#322](https://github.com/polkadot-fellows/runtimes/pull/322)] Multi-Block-Migrations, `poll` hook and new System Callbacks ([SDK v1.9 #1781](https://github.com/paritytech/polkadot-sdk/pull/1781)).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- [[#322](https://github.com/polkadot-fellows/runtimes/pull/322)] Multi-Block-Migrations, `poll` hook and new System Callbacks ([SDK v1.9 #1781](https://github.com/paritytech/polkadot-sdk/pull/1781)).

Not exactly sure how you have compiled this list, however these are not changes that are relevant to the upstream users.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried out a script and the deleted uninteresting ones manually, but looks like i have to delete some more.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can just directly include this script in the release process?

Copy link
Member Author

@ggwpez ggwpez Jul 4, 2024

Choose a reason for hiding this comment

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

The script only helps only when updating to a new SDK version.
But in theory we could also copy the relevant prdoc files from the SDK into the runtimes repo and then aggregate them on release.

CHANGELOG.md Outdated Show resolved Hide resolved
relay/kusama/src/lib.rs Outdated Show resolved Hide resolved
@@ -1929,6 +1941,9 @@ pub mod migrations {
ImOnlinePalletName,
<Runtime as frame_system::Config>::DbWeight,
>,
parachains_configuration::migration::v12::MigrateToV12<Runtime>,
Copy link
Contributor

Choose a reason for hiding this comment

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

We should clean up the migrations.

Copy link
Member Author

@ggwpez ggwpez Jul 4, 2024

Choose a reason for hiding this comment

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

Removed all the old ones from Kusama and Polkadot now here: 515b383
There are probably still some in the SPs, but can do afterwards.

Comment on lines +781 to +782
// Most on-chain HRMP channels are configured to use 102400 bytes of max message size, so we
// need to set the page size larger than that until we reduce the channel size on-chain.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a proposal for this or when will this be done?

Copy link
Member Author

Choose a reason for hiding this comment

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

No proposal yet, probably need to do paritytech/polkadot-sdk#3145 first.

system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs Outdated Show resolved Hide resolved
ggwpez and others added 14 commits July 4, 2024 22:48
Co-authored-by: Adrian Catangiu <adrian@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <git@kchr.de>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
…polkadot_config.rs

Co-authored-by: Adrian Catangiu <adrian@parity.io>
…o_kusama_config.rs

Co-authored-by: Adrian Catangiu <adrian@parity.io>
…rc/lib.rs

Co-authored-by: Adrian Catangiu <adrian@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Kusama pool address locator has no pallet id seed in it.
Polkadot pool locator uses type from sdk.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez merged commit c5080e4 into main Jul 11, 2024
45 checks passed
@ggwpez ggwpez deleted the oty-update-sdk branch July 11, 2024 14:07
@seadanda seadanda mentioned this pull request Aug 3, 2024
2 tasks
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.