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(near-contract-standards): export ext_storage_management #1208

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions near-contract-standards/src/storage_management/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use near_sdk::{near, AccountId, NearToken};
use near_sdk::{ext_contract, near, AccountId, NearToken};

#[near(serializers=[borsh, json])]
pub struct StorageBalance {
Expand Down Expand Up @@ -75,6 +75,7 @@ pub struct StorageBalanceBounds {
///
/// ```
///
#[ext_contract(ext_storage_management)]
pub trait StorageManagement {
// if `registration_only=true` MUST refund above the minimum balance if the account didn't exist and
// refund full deposit if the account exists.
Expand Down Expand Up @@ -106,7 +107,7 @@ pub trait StorageManagement {
///
/// If `force=true` the function SHOULD ignore account balances (burn them) and close the account.
/// Otherwise, MUST panic if caller has a positive registered balance (eg token holdings) or
/// the contract doesn't support force unregistration.
/// the contract doesn't support force deregistration.
/// MUST require exactly 1 yoctoNEAR attached balance to prevent restricted function-call access-key call
/// (UX wallet security)
/// Returns `true` iff the account was unregistered.
Expand Down
Loading