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

[Discussion] add Royalties and Payouts mechanism to Multi Token standard #453

Open
uncle-T0ny opened this issue Jan 27, 2023 · 0 comments
Open

Comments

@uncle-T0ny
Copy link

Problem

  • We have Royalties and Payouts interface for NFT, but not for Multi Token
  • In the Multi Token contract there is no way to receive current token holders, so it's nice to add a view method(through extension) to be able to distribute the royalties

Proposal
Add a Royalties and Payouts standard that is similar to NEP-199 and add a method with the next interface to be able to receive the current token holders with the positive balance.

    /// Get a list of all token holders (with pagination)
    ///
    /// # Arguments:
    /// * `token_id` - ID of the token
    /// * `from_index`: a string representing an unsigned 128-bit integer,
    ///    representing the starting index of accounts to return
    /// * `limit`: the maximum number of accounts to return
    /// returns: List of [AccountId]s.
    ///
    fn mt_token_holders(
        &self,
        token_id: TokenId,
        from_index: Option<U128>,
        limit: Option<u64>,
    ) -> Vec<AccountId>;
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

No branches or pull requests

1 participant