UNPKG

@gooddollar/goodcontracts

Version:
1,442 lines (1,441 loc) 70.7 kB
{ "contractName": "Pausable", "abi": [ { "constant": true, "inputs": [ { "name": "account", "type": "address" } ], "name": "isPauser", "outputs": [ { "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": "account", "type": "address" } ], "name": "addPauser", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "account", "type": "address" } ], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "account", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "account", "type": "address" } ], "name": "PauserAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "account", "type": "address" } ], "name": "PauserRemoved", "type": "event" }, { "constant": true, "inputs": [], "name": "paused", "outputs": [ { "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": "", "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": [ 15722 ] }, "id": 15723, "nodeType": "SourceUnit", "nodes": [ { "id": 15641, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:65" }, { "absolutePath": "openzeppelin-solidity/contracts/access/roles/PauserRole.sol", "file": "../access/roles/PauserRole.sol", "id": 15642, "nodeType": "ImportDirective", "scope": 15723, "sourceUnit": 15559, "src": "25:40:65", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 15643, "name": "PauserRole", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 15558, "src": "201:10:65", "typeDescriptions": { "typeIdentifier": "t_contract$_PauserRole_$15558", "typeString": "contract PauserRole" } }, "id": 15644, "nodeType": "InheritanceSpecifier", "src": "201:10:65" } ], "contractDependencies": [ 15558 ], "contractKind": "contract", "documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.", "fullyImplemented": true, "id": 15722, "linearizedBaseContracts": [ 15722, 15558 ], "name": "Pausable", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 15648, "name": "Paused", "nodeType": "EventDefinition", "parameters": { "id": 15647, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15646, "indexed": false, "name": "account", "nodeType": "VariableDeclaration", "scope": 15648, "src": "231:15:65", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 15645, "name": "address", "nodeType": "ElementaryTypeName", "src": "231:7:65", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "230:17:65" }, "src": "218:30:65" }, { "anonymous": false, "documentation": null, "id": 15652, "name": "Unpaused", "nodeType": "EventDefinition", "parameters": { "id": 15651, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15650, "indexed": false, "name": "account", "nodeType": "VariableDeclaration", "scope": 15652, "src": "268:15:65", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 15649, "name": "address", "nodeType": "ElementaryTypeName", "src": "268:7:65", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "267:17:65" }, "src": "253:32:65" }, { "constant": false, "id": 15654, "name": "_paused", "nodeType": "VariableDeclaration", "scope": 15722, "src": "291:20:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 15653, "name": "bool", "nodeType": "ElementaryTypeName", "src": "291:4:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "private" }, { "body": { "id": 15661, "nodeType": "Block", "src": "342:32:65", "statements": [ { "expression": { "argumentTypes": null, "id": 15659, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 15657, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "352:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "66616c7365", "id": 15658, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "362:5:65", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "352:15:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 15660, "nodeType": "ExpressionStatement", "src": "352:15:65" } ] }, "documentation": null, "id": 15662, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 15655, "nodeType": "ParameterList", "parameters": [], "src": "330:2:65" }, "returnParameters": { "id": 15656, "nodeType": "ParameterList", "parameters": [], "src": "342:0:65" }, "scope": 15722, "src": "318:56:65", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 15669, "nodeType": "Block", "src": "505:31:65", "statements": [ { "expression": { "argumentTypes": null, "id": 15667, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "522:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 15666, "id": 15668, "nodeType": "Return", "src": "515:14:65" } ] }, "documentation": "@return true if the contract is paused, false otherwise.", "id": 15670, "implemented": true, "kind": "function", "modifiers": [], "name": "paused", "nodeType": "FunctionDefinition", "parameters": { "id": 15663, "nodeType": "ParameterList", "parameters": [], "src": "475:2:65" }, "returnParameters": { "id": 15666, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15665, "name": "", "nodeType": "VariableDeclaration", "scope": 15670, "src": "499:4:65", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 15664, "name": "bool", "nodeType": "ElementaryTypeName", "src": "499:4:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "498:6:65" }, "scope": 15722, "src": "460:76:65", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 15678, "nodeType": "Block", "src": "670:45:65", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 15674, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "688:8:65", "subExpression": { "argumentTypes": null, "id": 15673, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "689:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 15672, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 16785, 16786 ], "referencedDeclaration": 16785, "src": "680:7:65", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 15675, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "680:17:65", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 15676, "nodeType": "ExpressionStatement", "src": "680:17:65" }, { "id": 15677, "nodeType": "PlaceholderStatement", "src": "707:1:65" } ] }, "documentation": "@dev Modifier to make a function callable only when the contract is not paused.", "id": 15679, "name": "whenNotPaused", "nodeType": "ModifierDefinition", "parameters": { "id": 15671, "nodeType": "ParameterList", "parameters": [], "src": "667:2:65" }, "src": "645:70:65", "visibility": "internal" }, { "body": { "id": 15686, "nodeType": "Block", "src": "842:44:65", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 15682, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "860:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 15681, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 16785, 16786 ], "referencedDeclaration": 16785, "src": "852:7:65", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 15683, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "852:16:65", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 15684, "nodeType": "ExpressionStatement", "src": "852:16:65" }, { "id": 15685, "nodeType": "PlaceholderStatement", "src": "878:1:65" } ] }, "documentation": "@dev Modifier to make a function callable only when the contract is paused.", "id": 15687, "name": "whenPaused", "nodeType": "ModifierDefinition", "parameters": { "id": 15680, "nodeType": "ParameterList", "parameters": [], "src": "839:2:65" }, "src": "820:66:65", "visibility": "internal" }, { "body": { "id": 15703, "nodeType": "Block", "src": "1022:64:65", "statements": [ { "expression": { "argumentTypes": null, "id": 15696, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 15694, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "1032:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 15695, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1042:4:65", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "1032:14:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 15697, "nodeType": "ExpressionStatement", "src": "1032:14:65" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 15699, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 16782, "src": "1068:3:65", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 15700, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1068:10:65", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "id": 15698, "name": "Paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15648, "src": "1061:6:65", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 15701, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1061:18:65", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 15702, "nodeType": "EmitStatement", "src": "1056:23:65" } ] }, "documentation": "@dev called by the owner to pause, triggers stopped state", "id": 15704, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 15690, "modifierName": { "argumentTypes": null, "id": 15689, "name": "onlyPauser", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15491, "src": "997:10:65", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "997:10:65" }, { "arguments": null, "id": 15692, "modifierName": { "argumentTypes": null, "id": 15691, "name": "whenNotPaused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15679, "src": "1008:13:65", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1008:13:65" } ], "name": "pause", "nodeType": "FunctionDefinition", "parameters": { "id": 15688, "nodeType": "ParameterList", "parameters": [], "src": "987:2:65" }, "returnParameters": { "id": 15693, "nodeType": "ParameterList", "parameters": [], "src": "1022:0:65" }, "scope": 15722, "src": "973:113:65", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 15720, "nodeType": "Block", "src": "1224:67:65", "statements": [ { "expression": { "argumentTypes": null, "id": 15713, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 15711, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "1234:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "66616c7365", "id": 15712, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "1244:5:65", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "1234:15:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 15714, "nodeType": "ExpressionStatement", "src": "1234:15:65" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 15716, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 16782, "src": "1273:3:65", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 15717, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1273:10:65", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "id": 15715, "name": "Unpaused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15652, "src": "1264:8:65", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 15718, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1264:20:65", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 15719, "nodeType": "EmitStatement", "src": "1259:25:65" } ] }, "documentation": "@dev called by the owner to unpause, returns to normal state", "id": 15721, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 15707, "modifierName": { "argumentTypes": null, "id": 15706, "name": "onlyPauser", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15491, "src": "1202:10:65", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1202:10:65" }, { "arguments": null, "id": 15709, "modifierName": { "argumentTypes": null, "id": 15708, "name": "whenPaused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15687, "src": "1213:10:65", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1213:10:65" } ], "name": "unpause", "nodeType": "FunctionDefinition", "parameters": { "id": 15705, "nodeType": "ParameterList", "parameters": [], "src": "1192:2:65" }, "returnParameters": { "id": 15710, "nodeType": "ParameterList", "parameters": [], "src": "1224:0:65" }, "scope": 15722, "src": "1176:115:65", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 15723, "src": "180:1113:65" } ], "src": "0:1294:65" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/lifecycle/Pausable.sol", "exportedSymbols": { "Pausable": [ 15722 ] }, "id": 15723, "nodeType": "SourceUnit", "nodes": [ { "id": 15641, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:65" }, { "absolutePath": "openzeppelin-solidity/contracts/access/roles/PauserRole.sol", "file": "../access/roles/PauserRole.sol", "id": 15642, "nodeType": "ImportDirective", "scope": 15723, "sourceUnit": 15559, "src": "25:40:65", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 15643, "name": "PauserRole", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 15558, "src": "201:10:65", "typeDescriptions": { "typeIdentifier": "t_contract$_PauserRole_$15558", "typeString": "contract PauserRole" } }, "id": 15644, "nodeType": "InheritanceSpecifier", "src": "201:10:65" } ], "contractDependencies": [ 15558 ], "contractKind": "contract", "documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.", "fullyImplemented": true, "id": 15722, "linearizedBaseContracts": [ 15722, 15558 ], "name": "Pausable", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 15648, "name": "Paused", "nodeType": "EventDefinition", "parameters": { "id": 15647, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15646, "indexed": false, "name": "account", "nodeType": "VariableDeclaration", "scope": 15648, "src": "231:15:65", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 15645, "name": "address", "nodeType": "ElementaryTypeName", "src": "231:7:65", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "230:17:65" }, "src": "218:30:65" }, { "anonymous": false, "documentation": null, "id": 15652, "name": "Unpaused", "nodeType": "EventDefinition", "parameters": { "id": 15651, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15650, "indexed": false, "name": "account", "nodeType": "VariableDeclaration", "scope": 15652, "src": "268:15:65", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 15649, "name": "address", "nodeType": "ElementaryTypeName", "src": "268:7:65", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "267:17:65" }, "src": "253:32:65" }, { "constant": false, "id": 15654, "name": "_paused", "nodeType": "VariableDeclaration", "scope": 15722, "src": "291:20:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 15653, "name": "bool", "nodeType": "ElementaryTypeName", "src": "291:4:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "private" }, { "body": { "id": 15661, "nodeType": "Block", "src": "342:32:65", "statements": [ { "expression": { "argumentTypes": null, "id": 15659, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 15657, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "352:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "66616c7365", "id": 15658, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "362:5:65", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "352:15:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 15660, "nodeType": "ExpressionStatement", "src": "352:15:65" } ] }, "documentation": null, "id": 15662, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 15655, "nodeType": "ParameterList", "parameters": [], "src": "330:2:65" }, "returnParameters": { "id": 15656, "nodeType": "ParameterList", "parameters": [], "src": "342:0:65" }, "scope": 15722, "src": "318:56:65", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 15669, "nodeType": "Block", "src": "505:31:65", "statements": [ { "expression": { "argumentTypes": null, "id": 15667, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "522:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 15666, "id": 15668, "nodeType": "Return", "src": "515:14:65" } ] }, "documentation": "@return true if the contract is paused, false otherwise.", "id": 15670, "implemented": true, "kind": "function", "modifiers": [], "name": "paused", "nodeType": "FunctionDefinition", "parameters": { "id": 15663, "nodeType": "ParameterList", "parameters": [], "src": "475:2:65" }, "returnParameters": { "id": 15666, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15665, "name": "", "nodeType": "VariableDeclaration", "scope": 15670, "src": "499:4:65", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 15664, "name": "bool", "nodeType": "ElementaryTypeName", "src": "499:4:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "498:6:65" }, "scope": 15722, "src": "460:76:65", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 15678, "nodeType": "Block", "src": "670:45:65", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 15674, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "688:8:65", "subExpression": { "argumentTypes": null, "id": 15673, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15654, "src": "689:7:65", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ {