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

Add lazy migration to set evm contract metadata #2919

Merged
merged 9 commits into from
Sep 11, 2024

Conversation

librelois
Copy link
Collaborator

@librelois librelois commented Aug 29, 2024

What does it do?

This PR add a lazy migration call to set evm contract metadata for old contracts created before introduction of the metadata storage item.

The migration will be executed only on demand, as unmigrated contracts are only contracts that where deployed more than 2 years ago and never called after the introduction of metadata storage item.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

moonbeam-foundation/frontier#224

What value does it bring to the blockchain users?

@librelois librelois added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes labels Aug 29, 2024
@noandrea noandrea added D9-needsaudit👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited and removed D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Aug 29, 2024
Copy link
Contributor

github-actions bot commented Aug 29, 2024

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2184 KB (no changes) ✅

Moonbeam runtime: 2140 KB (no changes) ✅

Moonriver runtime: 2132 KB (no changes) ✅

Compared to latest release (runtime-3102)

Moonbase runtime: 2184 KB (+244 KB compared to latest release) ⚠️

Moonbeam runtime: 2140 KB (+240 KB compared to latest release) ⚠️

Moonriver runtime: 2132 KB (+232 KB compared to latest release) ⚠️

@librelois librelois marked this pull request as ready for review September 2, 2024 12:02
TarekkMA
TarekkMA previously approved these changes Sep 3, 2024
Copy link
Contributor

github-actions bot commented Sep 5, 2024

Coverage Report

@@                      Coverage Diff                       @@
##           master   elois-migrate-coe-metadata      +/-   ##
==============================================================
+ Coverage   80.93%                       80.94%   +0.01%     
  Files         286                          286              
+ Lines       81965                        82038      +73     
==============================================================
+ Hits        66331                        66402      +71     
+ Misses      15634                        15636       +2     
Files Changed Coverage
/pallets/moonbeam-lazy-migrations/src/lib.rs 92.31% (+2.07%) 🔼

Coverage generated Tue Sep 10 15:20:28 UTC 2024

@noandrea noandrea added the A8-mergeoncegreen Pull request is reviewed well. label Sep 5, 2024
RomarQ
RomarQ previously approved these changes Sep 6, 2024
@noandrea noandrea merged commit 9c821e2 into master Sep 11, 2024
38 checks passed
@noandrea noandrea deleted the elois-migrate-coe-metadata branch September 11, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A8-mergeoncegreen Pull request is reviewed well. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D9-needsaudit👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants