PermissionsEnumerable extension provides role-based access control: you can create roles and write custom logic in your smart contract that depends on whether a given wallet holds a given role.
Enumerable part provides the capability to view all the addresses holding a specific role.
This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.
Base Contracts Implementing This Extension
None of the base contracts implement this extension.
Full API Reference
PermissionsEnumerable inherits from the
Permissions extension so includes
all of the functions in that extension. It also includes the following functions: