issues
search
BitGuildPlatform
/
Contracts
Various BitGuild public contracts
4
stars
2
forks
source link
Admin and Operator management contract
#4
Closed
calvinmd
closed
6 years ago
calvinmd
commented
6 years ago
BitGuildAccessAdmin.sol
Based on Ownable
Operators can add or remove other operators
Only the owner can transfer ownership, remove all operators, reset MAX_OPS
Modifiers: onlyOwner, onlyOperator (owner has all ops rights. implied)
Public variable/functions: operators (address []), owner, MAX, opsCount()
Public functions onlyOwner: transferOwnership(_newOwner), removeAllOps(), updateMax()
Public functions onlyOwnerOrOperator: addOperator(address), removeOperator(address), getAllOps()
BitGuildWhitelist.sol
Based on the Crowdsale whitelist contract
Added add and remove whitelist functions
Updated the old bulk update to work with arrays
Added getter for count and entire whitelist
Didn't add remove all since we may not want to have zero game contracts
All functions are tested on Rinkeby and worked as expected.
calvinmd
commented
6 years ago
Fee oracle removed.
BitGuildAccessAdmin.sol
BitGuildWhitelist.sol
All functions are tested on Rinkeby and worked as expected.