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

Roles feature #5

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Roles feature #5

wants to merge 7 commits into from

Conversation

lilelrain
Copy link
Contributor

Replace one main "systemOwner" role in the protocol with a variety of different roles for each contract.
There is a RoleManager contract which stores constants containing those roles' names used accross the protocol, functions to check whether a user has a particular role, functions to grant & revoke roles.
Contracts which implement the roles mechanics have the modifiers which call the RolesManager contract inside the internal functions to check whether a caller has a particular role

…at do the updateUserStatsForPRT and transferOwnershipAndInject functions do
…e roles, add calls to such functions in dependant contract
…the internal function in the contracts with a role mechanism, add comments to IRoleManager, replace 'only system owner can call...' comments with the corresponding role names, change string formating in tests
@lilelrain lilelrain requested a review from Hrom131 March 20, 2023 22:38
@lilelrain lilelrain self-assigned this Mar 20, 2023
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

Successfully merging this pull request may close these issues.

1 participant