Returns if _account
is a burner, i.e. has permission to burn tokens.
def isBurner(self, _account: Address) -> bool:
Returns the list of burners. It calls the internal function _burnersList
from roles.
def burnersList(self):
Adds _account
to the burners list. Then, the _account
has permission to burn the tokens. Can be called only by the owner of the SCORE.
def addBurner(self, _account: Address) -> bool:
Removes _account
from the burners list. Then, the _account
no longer has permission to burn the tokens. Can be called only by the owner of the SCORE.
def removeBurner(self, _account: Address) -> bool:
Can be called only by burners. Renounces the position of address who executes this method as a burner. Then, the address no longer has permission to burn the tokens.
def renounceBurner(self) -> bool:
Triggered when a new burner is added.
@eventlog(indexed=0)
def BurnerAdded(self, _account: Address):
Triggered when a burner is removed.
@eventlog(indexed=0)
def BurnerRemoved(self, _account: Address):
Adds _account
to the burners list and emits BurnerAdded event.
def _addBurner(self, _account: Address) -> None:
Removes _account
from the burners list and emits BurnerRemoved event.
def _removeBurner(self, _account: Address) -> None: