Returns if _account
is a minter, i.e. has permission to mint tokens.
def isMinter(self, _account: Address) -> bool:
Returns the list of minters. It calls the internal function _mintersList
from roles.
def mintersList(self):
Adds _account
to the minters list. Then, the _account
has permission to mint the tokens. Can be called only by the owner of the SCORE.
def addMinter(self, _account: Address) -> bool:
Removes _account
from the minters list. Then, the _account
no longer has permission to mint the tokens. Can be called only by the owner of the SCORE.
def removeMinter(self, _account: Address) -> bool:
Can be called only by the minters. Renounces the position of address who executes this method as a minter. Then, the _account
no longer has permission to mint the tokens.
def renounceMinter(self) -> bool:
Triggered when a new minter is added.
@eventlog(indexed=0)
def MinterAdded(self, _account: Address):
Triggered when a minter is removed.
@eventlog(indexed=0)
def MinterRemoved(self, _account: Address):
Adds _account
to the minters list and emits MinterAdded event.
def _addMinter(self, _account: Address) -> None:
Removes _account
from the minters list and emits MinterRemoved event.
def _removeMinter(self, _account: Address) -> None: