RoC Stable Platform - Collateral RIF Token
  • Introduction
  • RIF 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
      • MoCRiskProxManager
      • MoCInrate
      • MoCVendors
      • MoCWhitelist
      • MoCBase
      • OwnerBurnableToken
      • RiskProToken
      • StableToken
      • MoCToken
      • PriceProvider
    • Contract mocks
    • Relevant patterns and choices
    • Data dictionary
    • Getting started
  • Integration with RoC platform
    • Introduction to RoC
      • The MoC Contract
      • RoC Precisions
      • RoC State Contracts
    • Getting RIFPros
      • Minting RIFPros
      • Redeeming RIFPros
    • Getting USDRIF
      • Minting USDRIF
      • Redeeming USDRIF
        • On Settlement: redeemStableTokenRequest
        • On Settlement: alterRedeemRequestAmount
        • Outside Settlement: redeemFreeStableToken
        • On Liquidation State: redeemAllStableToken
        • How-to
    • Commission fees values
    • Vendors
    • Fees calculation
    • From outside the blockchain
      • Using RSK nodes
      • Using web3
      • Official RIF On Chain ABIs
      • Events
      • Example code minting RIFPros
      • Example code minting RIFPros without Truffle
      • Example code redeeming RIFPros
      • Example code redeeming RIFPros without Truffle
      • Example code minting USDRIF
      • Example code redeeming free USDRIF
      • Example code redeeming USDRIF Request
      • Example code redeeming all USDRIF
  • Smart contracts
    • Contracts verification
    • ABIs documentation
      • Blockable
      • Blocker
      • ERC20Mintable
      • Governed
      • Initializable
      • MakeStoppable
      • MakeUnstoppable
      • MoC
      • MoCBucketContainer
      • MoCConnector
      • MoCConverter
      • MoCEMACalculator
      • MoCExchange
      • MoCHelperLib
      • MoCHelperLibMock
      • MoCInrate
      • MoCInrateRiskproxChanger
      • MoCLibConnection
      • MoCPriceProviderMock
      • MoCReserve
      • MoCRiskProxManager
      • MoCSettlement
      • MoCSettlementMock
      • MoCState
      • MoCStateMock
      • MoCToken
      • MoCVendors
      • MoCWhitelist
      • MocInrateStableChanger
      • MockBlocker
      • MockMakeStoppable
      • MockMakeUnstoppable
      • MockStopper
      • MockUpgradeDelegator
      • MockUpgraderTemplate
      • OwnerBurnableToken
      • Pausable
      • PriceFeed
      • PriceFeederAdder
      • PriceFeederRemover
      • PriceProvider
      • PriceProviderChanger
      • PriceProviderMock
      • ReserveToken
      • RiskProToken
      • StableToken
      • 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.10

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()