Returns if _account
is a pauser, i.e. has permission to pause and unpause tokens.
def isPauser(self, _account: Address) -> bool:
Returns the list of pausers. It calls the internal function _pausersList
from roles.
def pausersList(self):
Adds _account
to the pausers list. Then, the _account
has permission to pause and unpause the tokens. Can be called only by the owner of the SCORE.
def addPauser(self, _account: Address) -> bool:
Removes _account
from the pausers list. Then, the _account
no longer has permission to pause and unpause the tokens. Can be called only by the owner of the SCORE.
def removePauser(self, _account: Address) -> bool:
Can be called only by the pausers. Renounces the position of address who executes this method as a pauser. Then, the _account
no longer has permission to pause and unpause the tokens..
def renouncePauser(self) -> bool:
Triggered when a new pauser is added.
@eventlog(indexed=0)
def PauserAdded(self, _account: Address):
Triggered when a pauser is removed.
@eventlog(indexed=0)
def PauserRemoved(self, _account: Address):
Adds _account
to the pausers list and emits PauserAdded event.
def _addPauser(self, _account: Address) -> None:
Removes _account
from the pausers list and emits PauserRemoved event.
def _removePauser(self, _account: Address) -> None: