kleros-interaction-2
Version:
Smart contracts interacting with Kleros.
1,422 lines • 54.4 kB
JSON
{
"contractName": "Pausable",
"abi": [
{
"constant": true,
"inputs": [],
"name": "paused",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [],
"name": "Pause",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "Unpause",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
}
],
"name": "OwnershipRenounced",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": false,
"inputs": [],
"name": "pause",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "unpause",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405260008054600160a860020a031916331790556103c4806100256000396000f3006080604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633f4ba83a811461007c5780635c975abb14610093578063715018a6146100bc5780638456cb59146100d15780638da5cb5b146100e6578063f2fde38b14610117575b600080fd5b34801561008857600080fd5b50610091610138565b005b34801561009f57600080fd5b506100a86101bf565b604080519115158252519081900360200190f35b3480156100c857600080fd5b506100916101e0565b3480156100dd57600080fd5b5061009161024c565b3480156100f257600080fd5b506100fb6102e9565b60408051600160a060020a039092168252519081900360200190f35b34801561012357600080fd5b50610091600160a060020a03600435166102f8565b600054600160a060020a0316331461014f57600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561017857600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b60005474010000000000000000000000000000000000000000900460ff1681565b600054600160a060020a031633146101f757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a0316331461026357600080fd5b60005474010000000000000000000000000000000000000000900460ff161561028b57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b600054600160a060020a0316331461030f57600080fd5b6103188161031b565b50565b600160a060020a038116151561033057600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058200755ff66136bf938a301853df2ace40e9624a725bf45498f5d8c057035f70a000029",
"deployedBytecode": "0x6080604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633f4ba83a811461007c5780635c975abb14610093578063715018a6146100bc5780638456cb59146100d15780638da5cb5b146100e6578063f2fde38b14610117575b600080fd5b34801561008857600080fd5b50610091610138565b005b34801561009f57600080fd5b506100a86101bf565b604080519115158252519081900360200190f35b3480156100c857600080fd5b506100916101e0565b3480156100dd57600080fd5b5061009161024c565b3480156100f257600080fd5b506100fb6102e9565b60408051600160a060020a039092168252519081900360200190f35b34801561012357600080fd5b50610091600160a060020a03600435166102f8565b600054600160a060020a0316331461014f57600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561017857600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b60005474010000000000000000000000000000000000000000900460ff1681565b600054600160a060020a031633146101f757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a0316331461026357600080fd5b60005474010000000000000000000000000000000000000000900460ff161561028b57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b600054600160a060020a0316331461030f57600080fd5b6103188161031b565b50565b600160a060020a038116151561033057600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a723058200755ff66136bf938a301853df2ace40e9624a725bf45498f5d8c057035f70a000029",
"sourceMap": "177:755:60:-;;;268:5;247:26;;-1:-1:-1;;;;;;567:18:62;575:10;567:18;;;177:755:60;;;;;;",
"deployedSourceMap": "177:755:60:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;838:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;838:92:60;;;;;;247:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;247:26:60;;;;;;;;;;;;;;;;;;;;;;1001:111:62;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:62;;;;666:90:60;;8:9:-1;5:2;;;30:1;27;20:12;5:2;666:90:60;;;;238:20:62;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:62;;;;;;;;-1:-1:-1;;;;;238:20:62;;;;;;;;;;;;;;1274:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:62;-1:-1:-1;;;;;1274:103:62;;;;;838:92:60;719:5:62;;-1:-1:-1;;;;;719:5:62;705:10;:19;697:28;;;;;;568:6:60;;;;;;;560:15;;;;;;;;900:5;891:14;;-1:-1:-1;;891:14:60;;;916:9;;;;900:5;916:9;838:92::o;247:26::-;;;;;;;;;:::o;1001:111:62:-;719:5;;-1:-1:-1;;;;;719:5:62;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:62;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:62;;;1001:111::o;666:90:60:-;719:5:62;;-1:-1:-1;;;;;719:5:62;705:10;:19;697:28;;;;;;416:6:60;;;;;;;415:7;407:16;;;;;;720:6;:13;;-1:-1:-1;;720:13:60;;;;;744:7;;;;720:6;744:7;666:90::o;238:20:62:-;;;-1:-1:-1;;;;;238:20:62;;:::o;1274:103::-;719:5;;-1:-1:-1;;;;;719:5:62;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;1512:171::-;-1:-1:-1;;;;;1582:23:62;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:62;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:62;-1:-1:-1;;;;;1661:17:62;;;;;;;;;;1512:171::o",
"source": "pragma solidity ^0.4.24;\n\n\nimport \"../ownership/Ownable.sol\";\n\n\n/**\n * @title Pausable\n * @dev Base contract which allows children to implement an emergency stop mechanism.\n */\ncontract Pausable is Ownable {\n event Pause();\n event Unpause();\n\n bool public paused = false;\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 onlyOwner whenNotPaused {\n paused = true;\n emit Pause();\n }\n\n /**\n * @dev called by the owner to unpause, returns to normal state\n */\n function unpause() public onlyOwner whenPaused {\n paused = false;\n emit Unpause();\n }\n}\n",
"sourcePath": "openzeppelin-solidity/contracts/lifecycle/Pausable.sol",
"ast": {
"absolutePath": "openzeppelin-solidity/contracts/lifecycle/Pausable.sol",
"exportedSymbols": {
"Pausable": [
19752
]
},
"id": 19753,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 19694,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:60"
},
{
"absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "../ownership/Ownable.sol",
"id": 19695,
"nodeType": "ImportDirective",
"scope": 19753,
"sourceUnit": 19933,
"src": "27:34:60",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 19696,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19932,
"src": "198:7:60",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$19932",
"typeString": "contract Ownable"
}
},
"id": 19697,
"nodeType": "InheritanceSpecifier",
"src": "198:7:60"
}
],
"contractDependencies": [
19932
],
"contractKind": "contract",
"documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.",
"fullyImplemented": true,
"id": 19752,
"linearizedBaseContracts": [
19752,
19932
],
"name": "Pausable",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 19699,
"name": "Pause",
"nodeType": "EventDefinition",
"parameters": {
"id": 19698,
"nodeType": "ParameterList",
"parameters": [],
"src": "221:2:60"
},
"src": "210:14:60"
},
{
"anonymous": false,
"documentation": null,
"id": 19701,
"name": "Unpause",
"nodeType": "EventDefinition",
"parameters": {
"id": 19700,
"nodeType": "ParameterList",
"parameters": [],
"src": "240:2:60"
},
"src": "227:16:60"
},
{
"constant": false,
"id": 19704,
"name": "paused",
"nodeType": "VariableDeclaration",
"scope": 19752,
"src": "247:26:60",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19702,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "247:4:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 19703,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "268:5:60",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"visibility": "public"
},
{
"body": {
"id": 19712,
"nodeType": "Block",
"src": "401:34:60",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19708,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "415:7:60",
"subExpression": {
"argumentTypes": null,
"id": 19707,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19704,
"src": "416:6:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 19706,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
20642,
20643
],
"referencedDeclaration": 20642,
"src": "407:7:60",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 19709,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "407:16:60",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19710,
"nodeType": "ExpressionStatement",
"src": "407:16:60"
},
{
"id": 19711,
"nodeType": "PlaceholderStatement",
"src": "429:1:60"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is not paused.",
"id": 19713,
"name": "whenNotPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 19705,
"nodeType": "ParameterList",
"parameters": [],
"src": "398:2:60"
},
"src": "376:59:60",
"visibility": "internal"
},
{
"body": {
"id": 19720,
"nodeType": "Block",
"src": "554:33:60",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19716,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19704,
"src": "568:6:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 19715,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
20642,
20643
],
"referencedDeclaration": 20642,
"src": "560:7:60",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 19717,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "560:15:60",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19718,
"nodeType": "ExpressionStatement",
"src": "560:15:60"
},
{
"id": 19719,
"nodeType": "PlaceholderStatement",
"src": "581:1:60"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is paused.",
"id": 19721,
"name": "whenPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 19714,
"nodeType": "ParameterList",
"parameters": [],
"src": "551:2:60"
},
"src": "532:55:60",
"visibility": "internal"
},
{
"body": {
"id": 19735,
"nodeType": "Block",
"src": "714:42:60",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19730,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19728,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19704,
"src": "720:6:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 19729,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "729:4:60",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "720:13:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 19731,
"nodeType": "ExpressionStatement",
"src": "720:13:60"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 19732,
"name": "Pause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19699,
"src": "744:5:60",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 19733,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "744:7:60",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19734,
"nodeType": "EmitStatement",
"src": "739:12:60"
}
]
},
"documentation": "@dev called by the owner to pause, triggers stopped state",
"id": 19736,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 19724,
"modifierName": {
"argumentTypes": null,
"id": 19723,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19880,
"src": "690:9:60",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "690:9:60"
},
{
"arguments": null,
"id": 19726,
"modifierName": {
"argumentTypes": null,
"id": 19725,
"name": "whenNotPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19713,
"src": "700:13:60",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "700:13:60"
}
],
"name": "pause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 19722,
"nodeType": "ParameterList",
"parameters": [],
"src": "680:2:60"
},
"payable": false,
"returnParameters": {
"id": 19727,
"nodeType": "ParameterList",
"parameters": [],
"src": "714:0:60"
},
"scope": 19752,
"src": "666:90:60",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 19750,
"nodeType": "Block",
"src": "885:45:60",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19745,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19743,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19704,
"src": "891:6:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 19744,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "900:5:60",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "891:14:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 19746,
"nodeType": "ExpressionStatement",
"src": "891:14:60"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 19747,
"name": "Unpause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19701,
"src": "916:7:60",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 19748,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "916:9:60",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19749,
"nodeType": "EmitStatement",
"src": "911:14:60"
}
]
},
"documentation": "@dev called by the owner to unpause, returns to normal state",
"id": 19751,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 19739,
"modifierName": {
"argumentTypes": null,
"id": 19738,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19880,
"src": "864:9:60",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "864:9:60"
},
{
"arguments": null,
"id": 19741,
"modifierName": {
"argumentTypes": null,
"id": 19740,
"name": "whenPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19721,
"src": "874:10:60",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "874:10:60"
}
],
"name": "unpause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 19737,
"nodeType": "ParameterList",
"parameters": [],
"src": "854:2:60"
},
"payable": false,
"returnParameters": {
"id": 19742,
"nodeType": "ParameterList",
"parameters": [],
"src": "885:0:60"
},
"scope": 19752,
"src": "838:92:60",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 19753,
"src": "177:755:60"
}
],
"src": "0:933:60"
},
"legacyAST": {
"absolutePath": "openzeppelin-solidity/contracts/lifecycle/Pausable.sol",
"exportedSymbols": {
"Pausable": [
19752
]
},
"id": 19753,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 19694,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:60"
},
{
"absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "../ownership/Ownable.sol",
"id": 19695,
"nodeType": "ImportDirective",
"scope": 19753,
"sourceUnit": 19933,
"src": "27:34:60",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 19696,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 19932,
"src": "198:7:60",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$19932",
"typeString": "contract Ownable"
}
},
"id": 19697,
"nodeType": "InheritanceSpecifier",
"src": "198:7:60"
}
],
"contractDependencies": [
19932
],
"contractKind": "contract",
"documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.",
"fullyImplemented": true,
"id": 19752,
"linearizedBaseContracts": [
19752,
19932
],
"name": "Pausable",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 19699,
"name": "Pause",
"nodeType": "EventDefinition",
"parameters": {
"id": 19698,
"nodeType": "ParameterList",
"parameters": [],
"src": "221:2:60"
},
"src": "210:14:60"
},
{
"anonymous": false,
"documentation": null,
"id": 19701,
"name": "Unpause",
"nodeType": "EventDefinition",
"parameters": {
"id": 19700,
"nodeType": "ParameterList",
"parameters": [],
"src": "240:2:60"
},
"src": "227:16:60"
},
{
"constant": false,
"id": 19704,
"name": "paused",
"nodeType": "VariableDeclaration",
"scope": 19752,
"src": "247:26:60",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19702,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "247:4:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 19703,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "268:5:60",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"visibility": "public"
},
{
"body": {
"id": 19712,
"nodeType": "Block",
"src": "401:34:60",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19708,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "415:7:60",
"subExpression": {
"argumentTypes": null,
"id": 19707,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19704,
"src": "416:6:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 19706,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
20642,
20643
],
"referencedDeclaration": 20642,
"src": "407:7:60",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 19709,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "407:16:60",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19710,
"nodeType": "ExpressionStatement",
"src": "407:16:60"
},
{
"id": 19711,
"nodeType": "PlaceholderStatement",
"src": "429:1:60"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is not paused.",
"id": 19713,
"name": "whenNotPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 19705,
"nodeType": "ParameterList",
"parameters": [],
"src": "398:2:60"
},
"src": "376:59:60",
"visibility": "internal"
},
{
"body": {
"id": 19720,
"nodeType": "Block",
"src": "554:33:60",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 19716,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19704,
"src": "568:6:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 19715,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
20642,
20643
],
"referencedDeclaration": 20642,
"src": "560:7:60",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 19717,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "560:15:60",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19718,
"nodeType": "ExpressionStatement",
"src": "560:15:60"
},
{
"id": 19719,
"nodeType": "PlaceholderStatement",
"src": "581:1:60"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is paused.",
"id": 19721,
"name": "whenPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 19714,
"nodeType": "ParameterList",
"parameters": [],
"src": "551:2:60"
},
"src": "532:55:60",
"visibility": "internal"
},
{
"body": {
"id": 19735,
"nodeType": "Block",
"src": "714:42:60",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19730,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19728,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19704,
"src": "720:6:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 19729,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "729:4:60",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "720:13:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 19731,
"nodeType": "ExpressionStatement",
"src": "720:13:60"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 19732,
"name": "Pause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19699,
"src": "744:5:60",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 19733,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "744:7:60",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19734,
"nodeType": "EmitStatement",
"src": "739:12:60"
}
]
},
"documentation": "@dev called by the owner to pause, triggers stopped state",
"id": 19736,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 19724,
"modifierName": {
"argumentTypes": null,
"id": 19723,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19880,
"src": "690:9:60",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "690:9:60"
},
{
"arguments": null,
"id": 19726,
"modifierName": {
"argumentTypes": null,
"id": 19725,
"name": "whenNotPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19713,
"src": "700:13:60",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "700:13:60"
}
],
"name": "pause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 19722,
"nodeType": "ParameterList",
"parameters": [],
"src": "680:2:60"
},
"payable": false,
"returnParameters": {
"id": 19727,
"nodeType": "ParameterList",
"parameters": [],
"src": "714:0:60"
},
"scope": 19752,
"src": "666:90:60",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 19750,
"nodeType": "Block",
"src": "885:45:60",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19745,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 19743,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19704,
"src": "891:6:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 19744,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "900:5:60",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "891:14:60",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 19746,
"nodeType": "ExpressionStatement",
"src": "891:14:60"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 19747,
"name": "Unpause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19701,
"src": "916:7:60",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 19748,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "916:9:60",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 19749,
"nodeType": "EmitStatement",
"src": "911:14:60"
}
]
},
"documentation": "@dev called by the owner to unpause, returns to normal state",
"id": 19751,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 19739,
"modifierName": {
"argumentTypes": null,
"id": 19738,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19880,
"src": "864:9:60",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "864:9:60"
},
{
"arguments": null,
"id": 19741,
"modifierName": {
"argumentTypes": null,
"id": 19740,
"name": "whenPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 19721,
"src": "874:10:60",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "874:10:60"
}
],
"name": "unpause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 19737,
"nodeType": "ParameterList",
"parameters": [],
"src": "854:2:60"
},
"payable": false,
"returnParameters": {
"id": 19742,
"nodeType": "ParameterList",
"parameters": [],
"src": "885:0:60"
},
"scope": 19752,
"src": "838:92:60",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 19753,
"src": "177:755:60"
}
],
"src": "0:933:60"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2018-11-02T14:04:11.101Z"
}