Main Contract
  • Introduction
  • Money on Chain platform
    • Main concepts
    • System states
    • Public actions
      • User actions
      • Process actions
    • Contracts architecture
      • MoC
      • CommissionSplitter
      • MoCState
      • MoCBucketContainer
      • MoCSettlement
      • MoCHelperLib
      • MoCLibConnection
      • MoCConverter
      • MoCExchange
      • MoCConnector
      • MoCBProxManager
      • MoCInrate
      • MoCVendors
      • MoCWhitelist
      • MoCBase
      • OwnerBurnableToken
      • BProToken
      • DocToken
      • MoCToken
      • PriceProvider
    • Contract mocks
    • Relevant patterns and choices
    • Data dictionary
    • Getting started
  • Integration with MoC platform
    • Introduction to MoC
      • The MoC Contract
      • MoC Precisions
      • MoC State Contracts
    • Getting BPros
      • Minting BitPros
      • Redeeming BitPros
    • Getting DoCs
      • Minting DoCs
      • Redeeming DoCs
        • On Settlement: redeemDocRequest
        • On Settlement: alterRedeemRequestAmount
        • Outside Settlement: redeemFreeDocVendors
        • On Liquidation State: redeemAllDoc
        • How-to
    • Commission fees values
    • Vendors
    • Fees calculation
    • From outside the blockchain
      • Using RSK nodes
      • Using web3
      • Official Money on Chain ABIs
      • Events
      • Example code minting BPros
      • Example code minting BPros without Truffle
      • Example code redeeming BPros
      • Example code redeeming BPros without Truffle
      • Example code minting DOC
      • Example code redeeming free DOC
      • Example code redeeming DOC Request
      • Example code redeeming all DOC
  • Smart contracts
    • Contracts verification
    • ABIs documentation
      • BProToken
      • BtcPriceProviderMock
      • DocToken
      • ERC20Mintable
      • Governed
      • Initializable
      • MakeStoppable
      • MakeUnstoppable
      • MoC
      • MoCBProxManager
      • MoCBucketContainer
      • MoCConnector
      • MoCConverter
      • MoCEMACalculator
      • MoCExchange
      • MoCHelperLib
      • MoCHelperLibMock
      • MoCInrate
      • MoCLibConnection
      • MoCPriceProviderMock
      • MoCSettlement
      • MoCSettlementMock
      • MoCState
      • MoCStateMock
      • MoCToken
      • MoCVendors
      • MoCWhitelist
      • MockMakeStoppable
      • MockMakeUnstoppable
      • MockStopper
      • MockUpgradeDelegator
      • MockUpgraderTemplate
      • OwnerBurnableToken
      • Pausable
      • PriceFeed
      • PriceFeederAdder
      • PriceFeederRemover
      • PriceProvider
      • RevertingOnSend
      • Stoppable
      • Stopper
      • UpgradeDelegator
      • UpgraderTemplate
Powered by GitBook
On this page
  • Contract Members
  • Paused
  • Unpaused
  • Modifiers
  • whenNotPaused
  • whenPaused
  • Functions
  • paused
  • pause
  • unpause
  1. Smart contracts
  2. ABIs documentation

Pausable

PreviousOwnerBurnableTokenNextPriceFeed

Last updated 3 years ago

View Source:

↗ Extends: ↘ Derived Contracts:

Pausable - version: 0.1.12

Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account.

  • This module is used through inheritance. It will make available the modifiers whenNotPaused and whenPaused, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.

Contract Members

Constants & Variables

bool private _paused;

Paused

Emitted when the pause is triggered by a pauser (account).

Parameters

Name
Type
Description

account

address

Unpaused

Emitted when the pause is lifted by a pauser (account).

Parameters

Name
Type
Description

account

address

Modifiers

whenNotPaused

Modifier to make a function callable only when the contract is not paused.

modifier whenNotPaused() internal

Arguments

whenPaused

Modifier to make a function callable only when the contract is paused.

modifier whenPaused() internal

Arguments

Functions

Initializes the contract in unpaused state. Assigns the Pauser role to the deployer.

function () internal nonpayable

Arguments

paused

Returns true if the contract is paused, and false otherwise.

function paused() public view
returns(bool)

Arguments

pause

Called by a pauser to pause, triggers stopped state.

function pause() public nonpayable onlyPauser whenNotPaused 

Arguments

unpause

Called by a pauser to unpause, returns to normal state.

function unpause() public nonpayable onlyPauser whenPaused 

Arguments

openzeppelin-solidity/contracts/lifecycle/Pausable.sol
PauserRole
ERC20Pausable
whenNotPaused
whenPaused
()
paused()
pause()
unpause()