@gooddollar/goodcontracts
Version:
GoodDollar Contracts
1,342 lines • 74.6 kB
JSON
{
"contractName": "Pausable",
"abi": [
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "PauserAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "PauserRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Unpaused",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "addPauser",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "isPauser",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "renouncePauser",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "paused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "pause",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "unpause",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PauserAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"PauserRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addPauser\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isPauser\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renouncePauser\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Base contract which allows children to implement an emergency stop mechanism.\",\"methods\":{\"pause()\":{\"details\":\"called by the owner to pause, triggers stopped state\"},\"paused()\":{\"return\":\"true if the contract is paused, false otherwise.\"},\"unpause()\":{\"details\":\"called by the owner to unpause, returns to normal state\"}},\"title\":\"Pausable\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"openzeppelin-solidity/contracts/lifecycle/Pausable.sol\":\"Pausable\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"openzeppelin-solidity/contracts/access/Roles.sol\":{\"keccak256\":\"0x659ba0f9a3392cd50a8a5fafaf5dfd8c6a0878f6a4613bceff4e90dceddcd865\",\"urls\":[\"bzz-raw://4ca6617349a9b36fd82e9442a8e445ce9021a174e4399d1457ddc894ee3f5df3\",\"dweb:/ipfs/QmcmyB4cNazZ1sw963Afaijt67M9bDgwmGXCgQajGTD4tm\"]},\"openzeppelin-solidity/contracts/access/roles/PauserRole.sol\":{\"keccak256\":\"0x6506133e295a7199df2ac5dfc52853d9d767f68450b6d0193e9d8056b164ce86\",\"urls\":[\"bzz-raw://9c03592a9e6b1377e401b74eccf175a250232b5a341347d3fc5cb50e9bc86ba2\",\"dweb:/ipfs/QmYAr1yXT89hNUMJ37aiBpD9HtYfBDqmueVCzphRuuU7oZ\"]},\"openzeppelin-solidity/contracts/lifecycle/Pausable.sol\":{\"keccak256\":\"0x3b0ed31deeba7e3c6cfbbe8092a6b427084ee390800a06acdea5c17c8185d606\",\"urls\":[\"bzz-raw://bbdbf9d3754fcdcc85aec0432fabcec914317b1c2081b43753442ed53853a34a\",\"dweb:/ipfs/QmVHWQBn5xQkQEHhyGNEeS5gjjALZEk5ZfcjFt7kL6MoLy\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.5.0;\n\nimport \"../access/roles/PauserRole.sol\";\n\n/**\n * @title Pausable\n * @dev Base contract which allows children to implement an emergency stop mechanism.\n */\ncontract Pausable is PauserRole {\n event Paused(address account);\n event Unpaused(address account);\n\n bool private _paused;\n\n constructor () internal {\n _paused = false;\n }\n\n /**\n * @return true if the contract is paused, false otherwise.\n */\n function paused() public view returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n */\n modifier whenNotPaused() {\n require(!_paused);\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n */\n modifier whenPaused() {\n require(_paused);\n _;\n }\n\n /**\n * @dev called by the owner to pause, triggers stopped state\n */\n function pause() public onlyPauser whenNotPaused {\n _paused = true;\n emit Paused(msg.sender);\n }\n\n /**\n * @dev called by the owner to unpause, returns to normal state\n */\n function unpause() public onlyPauser whenPaused {\n _paused = false;\n emit Unpaused(msg.sender);\n }\n}\n",
"sourcePath": "openzeppelin-solidity/contracts/lifecycle/Pausable.sol",
"ast": {
"absolutePath": "openzeppelin-solidity/contracts/lifecycle/Pausable.sol",
"exportedSymbols": {
"Pausable": [
21111
]
},
"id": 21112,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 21030,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:74"
},
{
"absolutePath": "openzeppelin-solidity/contracts/access/roles/PauserRole.sol",
"file": "../access/roles/PauserRole.sol",
"id": 21031,
"nodeType": "ImportDirective",
"scope": 21112,
"sourceUnit": 20948,
"src": "25:40:74",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 21032,
"name": "PauserRole",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 20947,
"src": "201:10:74",
"typeDescriptions": {
"typeIdentifier": "t_contract$_PauserRole_$20947",
"typeString": "contract PauserRole"
}
},
"id": 21033,
"nodeType": "InheritanceSpecifier",
"src": "201:10:74"
}
],
"contractDependencies": [
20947
],
"contractKind": "contract",
"documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.",
"fullyImplemented": true,
"id": 21111,
"linearizedBaseContracts": [
21111,
20947
],
"name": "Pausable",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 21037,
"name": "Paused",
"nodeType": "EventDefinition",
"parameters": {
"id": 21036,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 21035,
"indexed": false,
"name": "account",
"nodeType": "VariableDeclaration",
"scope": 21037,
"src": "231:15:74",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 21034,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "231:7:74",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "230:17:74"
},
"src": "218:30:74"
},
{
"anonymous": false,
"documentation": null,
"id": 21041,
"name": "Unpaused",
"nodeType": "EventDefinition",
"parameters": {
"id": 21040,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 21039,
"indexed": false,
"name": "account",
"nodeType": "VariableDeclaration",
"scope": 21041,
"src": "268:15:74",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 21038,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "268:7:74",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "267:17:74"
},
"src": "253:32:74"
},
{
"constant": false,
"id": 21043,
"name": "_paused",
"nodeType": "VariableDeclaration",
"scope": 21111,
"src": "291:20:74",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 21042,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "291:4:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 21050,
"nodeType": "Block",
"src": "342:32:74",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 21048,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 21046,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21043,
"src": "352:7:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 21047,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "362:5:74",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "352:15:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 21049,
"nodeType": "ExpressionStatement",
"src": "352:15:74"
}
]
},
"documentation": null,
"id": 21051,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 21044,
"nodeType": "ParameterList",
"parameters": [],
"src": "330:2:74"
},
"returnParameters": {
"id": 21045,
"nodeType": "ParameterList",
"parameters": [],
"src": "342:0:74"
},
"scope": 21111,
"src": "318:56:74",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 21058,
"nodeType": "Block",
"src": "505:31:74",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 21056,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21043,
"src": "522:7:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 21055,
"id": 21057,
"nodeType": "Return",
"src": "515:14:74"
}
]
},
"documentation": "@return true if the contract is paused, false otherwise.",
"id": 21059,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "paused",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 21052,
"nodeType": "ParameterList",
"parameters": [],
"src": "475:2:74"
},
"returnParameters": {
"id": 21055,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 21054,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 21059,
"src": "499:4:74",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 21053,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "499:4:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "498:6:74"
},
"scope": 21111,
"src": "460:76:74",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 21067,
"nodeType": "Block",
"src": "670:45:74",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 21063,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "688:8:74",
"subExpression": {
"argumentTypes": null,
"id": 21062,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21043,
"src": "689:7:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 21061,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
22174,
22175
],
"referencedDeclaration": 22174,
"src": "680:7:74",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 21064,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "680:17:74",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 21065,
"nodeType": "ExpressionStatement",
"src": "680:17:74"
},
{
"id": 21066,
"nodeType": "PlaceholderStatement",
"src": "707:1:74"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is not paused.",
"id": 21068,
"name": "whenNotPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 21060,
"nodeType": "ParameterList",
"parameters": [],
"src": "667:2:74"
},
"src": "645:70:74",
"visibility": "internal"
},
{
"body": {
"id": 21075,
"nodeType": "Block",
"src": "842:44:74",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 21071,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21043,
"src": "860:7:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 21070,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
22174,
22175
],
"referencedDeclaration": 22174,
"src": "852:7:74",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 21072,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "852:16:74",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 21073,
"nodeType": "ExpressionStatement",
"src": "852:16:74"
},
{
"id": 21074,
"nodeType": "PlaceholderStatement",
"src": "878:1:74"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is paused.",
"id": 21076,
"name": "whenPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 21069,
"nodeType": "ParameterList",
"parameters": [],
"src": "839:2:74"
},
"src": "820:66:74",
"visibility": "internal"
},
{
"body": {
"id": 21092,
"nodeType": "Block",
"src": "1022:64:74",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 21085,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 21083,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21043,
"src": "1032:7:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 21084,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1042:4:74",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "1032:14:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 21086,
"nodeType": "ExpressionStatement",
"src": "1032:14:74"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 21088,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 22171,
"src": "1068:3:74",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 21089,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1068:10:74",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 21087,
"name": "Paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21037,
"src": "1061:6:74",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 21090,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1061:18:74",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 21091,
"nodeType": "EmitStatement",
"src": "1056:23:74"
}
]
},
"documentation": "@dev called by the owner to pause, triggers stopped state",
"id": 21093,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 21079,
"modifierName": {
"argumentTypes": null,
"id": 21078,
"name": "onlyPauser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 20880,
"src": "997:10:74",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "997:10:74"
},
{
"arguments": null,
"id": 21081,
"modifierName": {
"argumentTypes": null,
"id": 21080,
"name": "whenNotPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21068,
"src": "1008:13:74",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1008:13:74"
}
],
"name": "pause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 21077,
"nodeType": "ParameterList",
"parameters": [],
"src": "987:2:74"
},
"returnParameters": {
"id": 21082,
"nodeType": "ParameterList",
"parameters": [],
"src": "1022:0:74"
},
"scope": 21111,
"src": "973:113:74",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 21109,
"nodeType": "Block",
"src": "1224:67:74",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 21102,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 21100,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21043,
"src": "1234:7:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 21101,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1244:5:74",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "1234:15:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 21103,
"nodeType": "ExpressionStatement",
"src": "1234:15:74"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 21105,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 22171,
"src": "1273:3:74",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 21106,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1273:10:74",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
],
"id": 21104,
"name": "Unpaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21041,
"src": "1264:8:74",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 21107,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1264:20:74",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 21108,
"nodeType": "EmitStatement",
"src": "1259:25:74"
}
]
},
"documentation": "@dev called by the owner to unpause, returns to normal state",
"id": 21110,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 21096,
"modifierName": {
"argumentTypes": null,
"id": 21095,
"name": "onlyPauser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 20880,
"src": "1202:10:74",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1202:10:74"
},
{
"arguments": null,
"id": 21098,
"modifierName": {
"argumentTypes": null,
"id": 21097,
"name": "whenPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21076,
"src": "1213:10:74",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1213:10:74"
}
],
"name": "unpause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 21094,
"nodeType": "ParameterList",
"parameters": [],
"src": "1192:2:74"
},
"returnParameters": {
"id": 21099,
"nodeType": "ParameterList",
"parameters": [],
"src": "1224:0:74"
},
"scope": 21111,
"src": "1176:115:74",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 21112,
"src": "180:1113:74"
}
],
"src": "0:1294:74"
},
"legacyAST": {
"absolutePath": "openzeppelin-solidity/contracts/lifecycle/Pausable.sol",
"exportedSymbols": {
"Pausable": [
21111
]
},
"id": 21112,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 21030,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:74"
},
{
"absolutePath": "openzeppelin-solidity/contracts/access/roles/PauserRole.sol",
"file": "../access/roles/PauserRole.sol",
"id": 21031,
"nodeType": "ImportDirective",
"scope": 21112,
"sourceUnit": 20948,
"src": "25:40:74",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 21032,
"name": "PauserRole",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 20947,
"src": "201:10:74",
"typeDescriptions": {
"typeIdentifier": "t_contract$_PauserRole_$20947",
"typeString": "contract PauserRole"
}
},
"id": 21033,
"nodeType": "InheritanceSpecifier",
"src": "201:10:74"
}
],
"contractDependencies": [
20947
],
"contractKind": "contract",
"documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.",
"fullyImplemented": true,
"id": 21111,
"linearizedBaseContracts": [
21111,
20947
],
"name": "Pausable",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 21037,
"name": "Paused",
"nodeType": "EventDefinition",
"parameters": {
"id": 21036,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 21035,
"indexed": false,
"name": "account",
"nodeType": "VariableDeclaration",
"scope": 21037,
"src": "231:15:74",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 21034,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "231:7:74",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "230:17:74"
},
"src": "218:30:74"
},
{
"anonymous": false,
"documentation": null,
"id": 21041,
"name": "Unpaused",
"nodeType": "EventDefinition",
"parameters": {
"id": 21040,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 21039,
"indexed": false,
"name": "account",
"nodeType": "VariableDeclaration",
"scope": 21041,
"src": "268:15:74",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 21038,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "268:7:74",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "267:17:74"
},
"src": "253:32:74"
},
{
"constant": false,
"id": 21043,
"name": "_paused",
"nodeType": "VariableDeclaration",
"scope": 21111,
"src": "291:20:74",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 21042,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "291:4:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 21050,
"nodeType": "Block",
"src": "342:32:74",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 21048,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 21046,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21043,
"src": "352:7:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 21047,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "362:5:74",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "352:15:74",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 21049,
"nodeType": "ExpressionStatement",
"src": "352:15:74"
}
]
},
"documentation": null,
"id": 21051,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 21044,
"nodeType": "ParameterList",
"parameters": [],
"src": "330:2:74"
},
"returnParameters": {
"id": 21045,
"nodeType": "ParameterList",
"parameters": [],
"src": "342:0:74"
},
"scope": 21111,
"src": "318:56:74",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 21058,
"nodeType": "Block",
"src": "505:31:74",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 21056,
"name": "_paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21043,
"src": "522: