HQ20 / contracts

A set of reusable smart-contracts

Home Page:https://hq20-contracts.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Whitelist contract inside access

alcueca opened this issue · comments

Branch new/whitelist

This is a stripped down version of RBAC.sol, with just one Role.

An Ownable contract that keeps a mapping of address => bool

Methods:
isMember: returns mapping(address)
addMember: sets mapping(address) = true
removeMember: delete mapping(address)

There is no listing of members, that will be done in a separate issue and contract.

I've noticed this is a copy of OpenZeppelin's Roles.sol. I need to work on it a little bit to see how we reference their work.