Skip to content

Latest commit

 

History

History
115 lines (69 loc) · 3.39 KB

pause.md

File metadata and controls

115 lines (69 loc) · 3.39 KB

Pause Module

This document defines the Pause Module for the CMTA Token specification.

[TOC]

Rationale

The issuer must be able to “pause” the smart contract, to prevent execution of transactions on the distributed ledger until the issuer puts an end to the pause. This function can be used to block transactions in case of a “hard fork” of the distributed ledger, pending a decision of the issuer as to which version of the distributed ledger it will support.

Schema

Inheritance

surya_inheritance_PauseModule.sol

UML

PauseModule

Graph

surya_graph_PauseModule.sol

Sūrya's Description Report

Files Description Table

File Name SHA-1 Hash
./modules/wrapper/mandatory/PauseModule.sol 0350e2f17f517c70804304a8cf24d3337f951f59

Contracts Description Table

Contract Type Bases
Function Name Visibility Mutability Modifiers
PauseModule Implementation PausableUpgradeable, AuthorizationModule
__PauseModule_init Internal 🔒 🛑 onlyInitializing
__PauseModule_init_unchained Internal 🔒 🛑 onlyInitializing
pause Public ❗️ 🛑 onlyRole
unpause Public ❗️ 🛑 onlyRole

Legend

Symbol Meaning
🛑 Function can modify state
💵 Function is payable

API for Ethereum

This section describes the Ethereum API of the Pause Module.

Functions

pause()

Definition:
function pause() 
public onlyRole(PAUSER_ROLE)
Description:

Pause all the token transfers. This function doesn't affect issuance, redemption, and approves. Only authorized users are allowed to call this function.

unpause()

Definition:
function unpause() 
public onlyRole(PAUSER_ROLE)

Unpause token transfers. Only authorized users are allowed to call this function.

Events

Paused(address)

Origin: OpenZeppelin (PausableUpgradeable)

Definition:
event Paused(address account)
Description:

Emitted when token transfers were paused.

Unpaused(address)

Definition:
event Unpaused(address account)
Description:

Emitted when token transfers were unpaused.