A Solidity package to Manage role permissions.
In order to install the library, just run the following commands on your root solidity directory
npm init -y
npm i -E @frontier-token-research/role-registries
In order to use it from a Smart Contract, just import it from npm package:
import "@frontier-token-research/role-registries/contracts/OwnedRegistry.sol";
Now you can just use it by creating a new instance of your preferred registry
OwnedRegistry reg = new OwnedRegistry();
The repo has a comprehensive test suite. You can run it with:
npm run test
In order to get the ABI and bytecode, it is opened a npm command
npm run compile
Registries and TRL are deployed by calling the migrate command
npm run migrate