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

Create a unbounded permission type #2

Open
dysbulic opened this issue Jun 21, 2022 · 0 comments
Open

Create a unbounded permission type #2

dysbulic opened this issue Jun 21, 2022 · 0 comments
Labels
permissions Issues with the token gating system

Comments

@dysbulic
Copy link
Member

There is a desire to create tokens that are transferable by their owners without creating individual permission tokens for each owner.

A solution for this would be to create a new type of permission token. Currently there are two types: universal tokens that give a user a permission for all token types and specific tokens that give a permission only for a particular type. The new permission type will disable that particular permission type, so creating one for transfer for a token type would allow any user to transfer without a check.

The token ids are bit fields. There is a flag that represents a token is a gating token. An additional field represents the type of gating. Another option could be added to that field for the new type.

With the current token types, a check is made if the requesting user holds the pertinent token. For this new type it is sufficient simply that the type exists. This is possible because we maintain a mapping between token ids and their index in the all types array.

@dysbulic dysbulic added the permissions Issues with the token gating system label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
permissions Issues with the token gating system
Projects
None yet
Development

No branches or pull requests

1 participant