Skip to content

helena-network/RoleRegistries

Repository files navigation

Role Registries

Build Status codecov

About

A Solidity package to Manage role permissions.

Install

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

Usage

In order to use it from a Smart Contract, just import it from npm package:

Import

import "@frontier-token-research/role-registries/contracts/OwnedRegistry.sol"; 

Usage

Now you can just use it by creating a new instance of your preferred registry

OwnedRegistry reg = new OwnedRegistry();

Test

The repo has a comprehensive test suite. You can run it with:

npm run test

Compile

In order to get the ABI and bytecode, it is opened a npm command

npm run compile

Deploy

Registries and TRL are deployed by calling the migrate command

npm run migrate