Frame v2 upgrade part3#1773
Merged
Neopallium merged 2 commits intoframe_v2_upgrade_part2from Jan 29, 2025
Merged
Conversation
5023104 to
45f613c
Compare
690303d to
fe791f0
Compare
f00038f to
9f696f6
Compare
fe791f0 to
deec5ec
Compare
9f696f6 to
5114790
Compare
deec5ec to
6403141
Compare
5114790 to
8c09228
Compare
6403141 to
50d73c3
Compare
8c09228 to
bebdf7f
Compare
50d73c3 to
c632363
Compare
HenriqueNogara
approved these changes
Jan 2, 2025
bebdf7f to
9b46523
Compare
c632363 to
2a4148e
Compare
9b46523 to
c031047
Compare
2a4148e to
fda6237
Compare
c031047 to
4fba416
Compare
fda6237 to
d4f3df6
Compare
Closed
23dcb3b to
1de9718
Compare
4fba416 to
6e846c1
Compare
bb847e0 to
8023a64
Compare
adamdossa
approved these changes
Jan 24, 2025
6e846c1 to
3260e83
Compare
Add 'try-runtime' feature to all pallets. Update Base pallet. Update Bridge pallet. Update Permissions pallet. Update Treasury pallet. Upgrade Group pallet. Use 'Pallet' instead of 'Module' for FRAME v1 pallets too. Add Frame v2 migration helper. Support loading chain spec with dev/testnet runtime. Add v7.0 chain spec for ci-runtime. Add CLI tool to upgrade the ci-chain. Run the integration tests before and after a chain upgrade. Bump Rust integration resource class. Update check_storage_version script for new Frame v2 version.
8023a64 to
933523d
Compare
Update External Agents pallet. Update Corporate Actions pallet. Update Capital Distribution pallet. Update Corporate Ballot pallet. Update Committee pallet. Update PolymeshContracts pallet. Update NFT pallet. Updated Balances pallet. Update ComplianceManager pallet. Cargo fmt Update Asset pallet. Update Checkpoint pallet. Update Statistics pallet. (#1779) Update Portfolio pallet. Update Settlement pallet. Update Identity pallet.
Neopallium
added a commit
that referenced
this pull request
Feb 6, 2025
* Fix issue with missing assimilate_storage on Sudo GenesisConfig. Use workspace deps. Copy Sudo pallet code from Substrate monthly 2023-03. cargo fmt Sudo code. Readd the MIN_WEIGHT support to Sudo. Update Relayer pallet. Updated ProtocolFee pallet. Add missing Rust docs and other cleanup. Fixup Relayer Fixup Protocol Fee pallet. * Frame v2 upgrade part3 (#1773) Update Sto pallet. Add 'try-runtime' feature to all pallets. Update Base pallet. Update Bridge pallet. Update Permissions pallet. Update Treasury pallet. Upgrade Group pallet. Use 'Pallet' instead of 'Module' for FRAME v1 pallets too. Add Frame v2 migration helper. Support loading chain spec with dev/testnet runtime. Add v7.0 chain spec for ci-runtime. Add CLI tool to upgrade the ci-chain. Run the integration tests before and after a chain upgrade. Bump Rust integration resource class. Update check_storage_version script for new Frame v2 version. Update External Agents pallet. Update Corporate Actions pallet. Update Capital Distribution pallet. Update Corporate Ballot pallet. Update Committee pallet. Update PolymeshContracts pallet. Update NFT pallet. Updated Balances pallet. Update ComplianceManager pallet. Cargo fmt Update Asset pallet. Update Checkpoint pallet. Update Statistics pallet. (#1779) Update Portfolio pallet. Update Settlement pallet. Update Identity pallet. * Pips docs (#1781) * Improve docs - part 1 * Improve extrinsic documentation * Add bound to pips (#1784) * Solve merge conflicts - import path * Improve insert_live_queue function * Add unit test; Improve weight calculation (return max between refunds and votes) * Prune and refund only on_idle * Remove const and error --------- Co-authored-by: Henrique Nogara <nogara.henrique@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FRAME v1 -> v2:
For all pallets:
try-runtimefeature to the palletCargo.toml, this is needed for FRAME v2 pallets.decl_modulemacro also defines typePalletwhich is the same asModule. In FRAME v2Moduleis deprecated, so I changed all references to all pallets to usePalletinstead ofModule. This will make upgrading the other pallets easier.CI Pipeline changes:
Use a chain spec snapshot of v7.0.0 (from the ci-runtime build) to start the dev chain used in the Rust integration tests. Then run the integration tests again that older version before upgrading it to the current version built in the PR before running the tests again.
changelog
new features
devandtestnetruntimes, by usingdev:<spec.json>ortestnet:<spec.json>with the--chainoption.