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

nep-393: add bool return to sbt_revoke_by_owner #510

Merged
merged 2 commits into from
Oct 22, 2023
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
11 changes: 9 additions & 2 deletions neps/nep-0393.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,15 @@ trait SBTRegistry {
/// Must also emit `Burn` event if the SBT tokens are burned (removed).
fn sbt_revoke(&mut self, tokens: Vec<TokenId>, burn: bool);

/// Similar to `sbt_revoke`, but revokes all `owner`s tokens issued by the caller.
fn sbt_revoke_by_owner(&mut self, owner: AccountId, burn: bool);
/// Similar to `sbt_revoke`. Allows SBT issuer to revoke all tokens by holder either by
/// burning or updating their expire time. When an owner has many tokens from the issuer,
/// the issuer may need to call this function multiple times, until all tokens are revoked.
/// Retuns true if all the tokens were revoked, false otherwise.
/// If false is returned issuer must call the method until true is returned
/// Must be called by an SBT contract.
/// Must emit `Revoke` event.
/// Must also emit `Burn` event if the SBT tokens are burned (removed).
fn sbt_revoke_by_owner(&mut self, owner: AccountId, burn: bool) -> bool;

/// Allows issuer to update token metadata reference and reference_hash.
/// * `updates` is a list of triples: (token ID, reference, reference base64-encoded sha256 hash).
Expand Down
Loading