IRC2 Pausable tokens are IRC2-compatible tokens with one added feature: token transfers can be paused and unpaused as per the requirement. Standard IRC2 tokens don't have this feature.
Only owner of SCORE and pausers can pause and unpause token transfers. When paused, no token transfers can take place - this also includes minting, burning.
Returns True if the token transfer has been paused.
def paused(self) -> bool:
Pauses the token transfers. This method can be executed only by the owner of SCORE and pausers when the SCORE is not in paused state. It emits Paused event.
Unpauses the token transfers. This method can be executed only by the owner of SCORE when the SCORE and pausers is already in paused state. It emits Unpaused event.
def Paused(self, status:bool):
Checks if the SCORE is is paused state before transferring tokens.
def _beforeTokenTransfer(self, _from:Address, _to:Address, _value:int) -> None:
This exception is raised when the SCORE is already in paused state and token transfers calls are called. It is also raised when the pause method is called even though the SCORE is already in paused state.
This exception is raised when unpause method is called when the SCORE is already in unpaused state.