Skip to content

Commit

Permalink
add sbts method
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Jul 24, 2023
1 parent 1149e98 commit 66c794f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neps/nep-0393.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ trait SBTRegistry {
/// Get the information about specific token ID issued by `issuer` SBT contract.
fn sbt(&self, issuer: AccountId, token: TokenId) -> Option<Token>;

/// Get the information about list of token IDs issued by the `issuer` SBT contract.
/// If token ID is not found `None` is set in the specific return index.
fn sbts(&self, issuer: AccountId, token: Vec<TokenId>) -> Vec<Option<Token>>;

/// Returns total amount of tokens issued by `issuer` SBT contract, including expired
/// tokens. If a revoke removes a token, it must not be included in the supply.
fn sbt_supply(&self, issuer: AccountId) -> u64;
Expand Down

0 comments on commit 66c794f

Please sign in to comment.