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

chore: Remove NEP-491 #12818

Merged
merged 5 commits into from
Jan 30, 2025
Merged

chore: Remove NEP-491 #12818

merged 5 commits into from
Jan 30, 2025

Conversation

staffik
Copy link
Contributor

@staffik staffik commented Jan 28, 2025

There is ongoing work on global contracts that addresses the problem near/NEPs#491 was originally designed to solve. NEP-491 code is quite messy and has been around for about a year. We no longer see external interest in this feature, but if the need arises in the future, we can always restore the code.

Reverts most of (because some part is used by #12794):

Also, #11005 can be closed.

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 86.48649% with 5 lines in your changes missing coverage. Please review.

Project coverage is 70.36%. Comparing base (94abfca) to head (9ef6c3d).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
chain/rosetta-rpc/src/lib.rs 0.00% 1 Missing ⚠️
core/primitives-core/src/account.rs 92.85% 1 Missing ⚠️
core/primitives/src/views.rs 0.00% 1 Missing ⚠️
runtime/runtime/src/lib.rs 0.00% 0 Missing and 1 partial ⚠️
tools/amend-genesis/src/lib.rs 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12818      +/-   ##
==========================================
- Coverage   70.37%   70.36%   -0.01%     
==========================================
  Files         848      848              
  Lines      174870   174513     -357     
  Branches   174870   174513     -357     
==========================================
- Hits       123064   122800     -264     
+ Misses      46547    46468      -79     
+ Partials     5259     5245      -14     
Flag Coverage Δ
backward-compatibility 0.16% <0.00%> (+<0.01%) ⬆️
db-migration 0.16% <0.00%> (+<0.01%) ⬆️
genesis-check 1.41% <7.14%> (-0.01%) ⬇️
linux 70.02% <86.48%> (+0.04%) ⬆️
linux-nightly 70.01% <83.78%> (-0.01%) ⬇️
pytests 1.70% <7.14%> (-0.01%) ⬇️
sanity-checks 1.52% <7.14%> (-0.01%) ⬇️
unittests 70.19% <86.48%> (-0.02%) ⬇️
upgradability 0.20% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@staffik staffik marked this pull request as ready for review January 28, 2025 13:58
@staffik staffik requested a review from a team as a code owner January 28, 2025 13:58
@staffik staffik requested a review from akhi3030 January 28, 2025 13:58
@staffik staffik requested review from pugachAG and removed request for akhi3030 January 28, 2025 14:00
Copy link
Contributor

@pugachAG pugachAG left a comment

Choose a reason for hiding this comment

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

awesome, thanks!

@@ -62,19 +61,7 @@ pub struct AccountV1 {
storage_usage: StorageUsage,
}

impl AccountV1 {
Copy link
Contributor

@pugachAG pugachAG Jan 28, 2025

Choose a reason for hiding this comment

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

could you please keep this, just remove permanent_storage_bytes field, later I will update it

Copy link
Contributor

@shreyan-gupta shreyan-gupta left a comment

Choose a reason for hiding this comment

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

🎉 🎉 🎉 🎉

@staffik staffik enabled auto-merge January 30, 2025 10:27
@staffik staffik added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@Longarithm Longarithm added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@Longarithm Longarithm added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@staffik staffik added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@Longarithm Longarithm added this pull request to the merge queue Jan 30, 2025
Merged via the queue into master with commit 9a4504c Jan 30, 2025
28 of 29 checks passed
@Longarithm Longarithm deleted the stafik/remove-nep-491 branch January 30, 2025 20:46
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.

4 participants