Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Upgrade pallet atomic swap to FRAME v2 #8452

Merged
2 commits merged into from
Mar 26, 2021
Merged

Upgrade pallet atomic swap to FRAME v2 #8452

2 commits merged into from
Mar 26, 2021

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Mar 25, 2021

Converts the atomic swap pallet to the new pallet attribute macro

Part of #7882.

Upgrade guidelines used.

⚠️ Breaking Change ⚠️

From https://crates.parity.io/frame_support/attr.pallet.html#checking-upgrade-guidelines

storages now use PalletInfo for module_prefix instead of the one given to decl_storage: use of this pallet in construct_runtime! needs careful updating of the name in order to not break storage or to upgrade storage (moreover for instantiable pallet). If pallet is published, make sure to warn about this breaking change.

So users of the atomic swap pallet must be careful about the name they used in construct_runtime!. Hence the runtime-migration label, which might not be needed depending on the configuration of the atomic swap pallet.

For polkadot and kusama atomic swap is not used, thus no migration needed there.

@gui1117 gui1117 added A0-please_review Pull request needs code review. B3-apinoteworthy C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Mar 25, 2021
@gui1117 gui1117 requested a review from ascjones March 25, 2021 10:27
Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

@gui1117 gui1117 requested a review from dvdplm March 25, 2021 11:21
@shawntabrizi
Copy link
Member

bot merge

@ghost
Copy link

ghost commented Mar 26, 2021

Trying merge.

@ghost ghost merged commit 06ac563 into master Mar 26, 2021
@ghost ghost deleted the gui-migrate-atomic-swap branch March 26, 2021 06:46
hirschenberger pushed a commit to hirschenberger/substrate that referenced this pull request Apr 14, 2021
* upgrade pallet atomic swap

* fix doc
@apopiak apopiak changed the title Upgrade pallet atomic swap Upgrade pallet atomic swap to FRAME v2 May 7, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants