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

feat: add zero balance accounts #8378

Merged
merged 4 commits into from
Jan 24, 2023
Merged

feat: add zero balance accounts #8378

merged 4 commits into from
Jan 24, 2023

Conversation

bowenwang1996
Copy link
Collaborator

Implements near/NEPs#448. Note: this pull request does not update account creation costs. If the NEP is approved, the costs will be updated separately.

@bowenwang1996 bowenwang1996 requested a review from a team as a code owner January 17, 2023 19:16
@bowenwang1996 bowenwang1996 requested review from mm-near and removed request for wacban January 17, 2023 19:18
runtime/runtime/src/verifier.rs Outdated Show resolved Hide resolved
runtime/runtime/src/verifier.rs Show resolved Hide resolved
runtime/runtime/src/verifier.rs Outdated Show resolved Hide resolved
runtime/runtime/src/verifier.rs Show resolved Hide resolved
1,
signer0.account_id.clone(),
new_account_id.clone(),
0,
Copy link
Contributor

Choose a reason for hiding this comment

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

consider enabling this whole test right now - and having the condition here -- if nightly -> pass 0 as balance, if not pass something else.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think this is necessary as 1) it would make the test more complex and harder to read and 2) we already test the current behavior in other runtime tests such as test_create_account_failure_no_funds and test_validate_transaction_invalid_low_balance (which were modified) to make sure that the zero balance account does not interfere with the stable version

@near-bulldozer near-bulldozer bot merged commit 6d2f3fc into master Jan 24, 2023
@near-bulldozer near-bulldozer bot deleted the zero-balance-account branch January 24, 2023 04:52
nikurt pushed a commit to nikurt/nearcore that referenced this pull request Jan 30, 2023
Implements near/NEPs#448. Note: this pull request does not update account creation costs. If the NEP is approved, the costs will be updated separately.
ppca pushed a commit to ppca/nearcore that referenced this pull request Jan 30, 2023
Implements near/NEPs#448. Note: this pull request does not update account creation costs. If the NEP is approved, the costs will be updated separately.
near-bulldozer bot pushed a commit that referenced this pull request Feb 16, 2023
# Feature to stabilize
Zero Balance Account that enables a more smooth onboarding experience where users don't have to first acquire NEAR tokens to pay for the storage of their accounts.

# Context

- NEP: near/NEPs#448
- Implementation: #8378

# Testing and QA
- unit tests in runtime/runtime/src/verifier.rs
- integration tests in integration-tests/src/tests/client/features/zero_balance_account.rs

# Checklist
- [x] [Link to nightly nayduck run](https://nayduck.near.org/#/run/2869)
- [x] Update CHANGELOG.md to include this protocol feature in the `Unreleased` section.
frol pushed a commit to near/NEPs that referenced this pull request Feb 20, 2023
NEP for #415. Implementation can be found in
near/nearcore#8378
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.

2 participants