UNPKG

@dnextco/tokenboost-solidity-erc223token

Version:

Solidity contracts for TokenBoost (ERC223Token)

1,298 lines 54.2 kB
{ "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": "0x608060405260008054600160a860020a031916331790556103c4806100256000396000f3006080604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633f4ba83a811461007c5780635c975abb14610093578063715018a6146100bc5780638456cb59146100d15780638da5cb5b146100e6578063f2fde38b14610117575b600080fd5b34801561008857600080fd5b50610091610138565b005b34801561009f57600080fd5b506100a86101bf565b604080519115158252519081900360200190f35b3480156100c857600080fd5b506100916101e0565b3480156100dd57600080fd5b5061009161024c565b3480156100f257600080fd5b506100fb6102e9565b60408051600160a060020a039092168252519081900360200190f35b34801561012357600080fd5b50610091600160a060020a03600435166102f8565b600054600160a060020a0316331461014f57600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561017857600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b60005474010000000000000000000000000000000000000000900460ff1681565b600054600160a060020a031633146101f757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a0316331461026357600080fd5b60005474010000000000000000000000000000000000000000900460ff161561028b57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b600054600160a060020a0316331461030f57600080fd5b6103188161031b565b50565b600160a060020a038116151561033057600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a7230582056cc310923aaf34129a45de00e2ba3a49678d81490d65c412f75569fc383e3870029", "deployedBytecode": "0x6080604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633f4ba83a811461007c5780635c975abb14610093578063715018a6146100bc5780638456cb59146100d15780638da5cb5b146100e6578063f2fde38b14610117575b600080fd5b34801561008857600080fd5b50610091610138565b005b34801561009f57600080fd5b506100a86101bf565b604080519115158252519081900360200190f35b3480156100c857600080fd5b506100916101e0565b3480156100dd57600080fd5b5061009161024c565b3480156100f257600080fd5b506100fb6102e9565b60408051600160a060020a039092168252519081900360200190f35b34801561012357600080fd5b50610091600160a060020a03600435166102f8565b600054600160a060020a0316331461014f57600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561017857600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b60005474010000000000000000000000000000000000000000900460ff1681565b600054600160a060020a031633146101f757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a0316331461026357600080fd5b60005474010000000000000000000000000000000000000000900460ff161561028b57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b600054600160a060020a0316331461030f57600080fd5b6103188161031b565b50565b600160a060020a038116151561033057600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a7230582056cc310923aaf34129a45de00e2ba3a49678d81490d65c412f75569fc383e3870029", "sourceMap": "177:755:41:-;;;268:5;247:26;;-1:-1:-1;;;;;;567:18:43;575:10;567:18;;;177:755:41;;;;;;", "deployedSourceMap": "177:755:41:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;838:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;838:92:41;;;;;;247:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;247:26:41;;;;;;;;;;;;;;;;;;;;;;1001:111:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:43;;;;666:90:41;;8:9:-1;5:2;;;30:1;27;20:12;5:2;666:90:41;;;;238:20:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:43;;;;;;;;-1:-1:-1;;;;;238:20:43;;;;;;;;;;;;;;1274:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:43;-1:-1:-1;;;;;1274:103:43;;;;;838:92:41;719:5:43;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;568:6:41;;;;;;;560:15;;;;;;;;900:5;891:14;;-1:-1:-1;;891:14:41;;;916:9;;;;900:5;916:9;838:92::o;247:26::-;;;;;;;;;:::o;1001:111:43:-;719:5;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:43;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:43;;;1001:111::o;666:90:41:-;719:5:43;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;416:6:41;;;;;;;415:7;407:16;;;;;;720:6;:13;;-1:-1:-1;;720:13:41;;;;;744:7;;;;720:6;744:7;666:90::o;238:20:43:-;;;-1:-1:-1;;;;;238:20:43;;:::o;1274:103::-;719:5;;-1:-1:-1;;;;;719:5:43;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;1512:171::-;-1:-1:-1;;;;;1582:23:43;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:43;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:43;-1:-1:-1;;;;;1661:17:43;;;;;;;;;;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": "zeppelin-solidity/contracts/lifecycle/Pausable.sol", "ast": { "absolutePath": "zeppelin-solidity/contracts/lifecycle/Pausable.sol", "exportedSymbols": { "Pausable": [ 6722 ] }, "id": 6723, "nodeType": "SourceUnit", "nodes": [ { "id": 6664, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:41" }, { "absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol", "file": "../ownership/Ownable.sol", "id": 6665, "nodeType": "ImportDirective", "scope": 6723, "sourceUnit": 6903, "src": "27:34:41", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6666, "name": "Ownable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6902, "src": "198:7:41", "typeDescriptions": { "typeIdentifier": "t_contract$_Ownable_$6902", "typeString": "contract Ownable" } }, "id": 6667, "nodeType": "InheritanceSpecifier", "src": "198:7:41" } ], "contractDependencies": [ 6902 ], "contractKind": "contract", "documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.", "fullyImplemented": true, "id": 6722, "linearizedBaseContracts": [ 6722, 6902 ], "name": "Pausable", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 6669, "name": "Pause", "nodeType": "EventDefinition", "parameters": { "id": 6668, "nodeType": "ParameterList", "parameters": [], "src": "221:2:41" }, "src": "210:14:41" }, { "anonymous": false, "documentation": null, "id": 6671, "name": "Unpause", "nodeType": "EventDefinition", "parameters": { "id": 6670, "nodeType": "ParameterList", "parameters": [], "src": "240:2:41" }, "src": "227:16:41" }, { "constant": false, "id": 6674, "name": "paused", "nodeType": "VariableDeclaration", "scope": 6722, "src": "247:26:41", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6672, "name": "bool", "nodeType": "ElementaryTypeName", "src": "247:4:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": { "argumentTypes": null, "hexValue": "66616c7365", "id": 6673, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "268:5:41", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "visibility": "public" }, { "body": { "id": 6682, "nodeType": "Block", "src": "401:34:41", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6678, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "415:7:41", "subExpression": { "argumentTypes": null, "id": 6677, "name": "paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "416:6:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 6676, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 7665, 7666 ], "referencedDeclaration": 7665, "src": "407:7:41", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 6679, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "407:16:41", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6680, "nodeType": "ExpressionStatement", "src": "407:16:41" }, { "id": 6681, "nodeType": "PlaceholderStatement", "src": "429:1:41" } ] }, "documentation": "@dev Modifier to make a function callable only when the contract is not paused.", "id": 6683, "name": "whenNotPaused", "nodeType": "ModifierDefinition", "parameters": { "id": 6675, "nodeType": "ParameterList", "parameters": [], "src": "398:2:41" }, "src": "376:59:41", "visibility": "internal" }, { "body": { "id": 6690, "nodeType": "Block", "src": "554:33:41", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6686, "name": "paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "568:6:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 6685, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 7665, 7666 ], "referencedDeclaration": 7665, "src": "560:7:41", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 6687, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "560:15:41", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6688, "nodeType": "ExpressionStatement", "src": "560:15:41" }, { "id": 6689, "nodeType": "PlaceholderStatement", "src": "581:1:41" } ] }, "documentation": "@dev Modifier to make a function callable only when the contract is paused.", "id": 6691, "name": "whenPaused", "nodeType": "ModifierDefinition", "parameters": { "id": 6684, "nodeType": "ParameterList", "parameters": [], "src": "551:2:41" }, "src": "532:55:41", "visibility": "internal" }, { "body": { "id": 6705, "nodeType": "Block", "src": "714:42:41", "statements": [ { "expression": { "argumentTypes": null, "id": 6700, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6698, "name": "paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "720:6:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 6699, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "729:4:41", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "720:13:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 6701, "nodeType": "ExpressionStatement", "src": "720:13:41" }, { "eventCall": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 6702, "name": "Pause", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6669, "src": "744:5:41", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 6703, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "744:7:41", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6704, "nodeType": "EmitStatement", "src": "739:12:41" } ] }, "documentation": "@dev called by the owner to pause, triggers stopped state", "id": 6706, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 6694, "modifierName": { "argumentTypes": null, "id": 6693, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6850, "src": "690:9:41", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "690:9:41" }, { "arguments": null, "id": 6696, "modifierName": { "argumentTypes": null, "id": 6695, "name": "whenNotPaused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6683, "src": "700:13:41", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "700:13:41" } ], "name": "pause", "nodeType": "FunctionDefinition", "parameters": { "id": 6692, "nodeType": "ParameterList", "parameters": [], "src": "680:2:41" }, "payable": false, "returnParameters": { "id": 6697, "nodeType": "ParameterList", "parameters": [], "src": "714:0:41" }, "scope": 6722, "src": "666:90:41", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6720, "nodeType": "Block", "src": "885:45:41", "statements": [ { "expression": { "argumentTypes": null, "id": 6715, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6713, "name": "paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "891:6:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "66616c7365", "id": 6714, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "900:5:41", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "891:14:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 6716, "nodeType": "ExpressionStatement", "src": "891:14:41" }, { "eventCall": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 6717, "name": "Unpause", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6671, "src": "916:7:41", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 6718, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "916:9:41", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6719, "nodeType": "EmitStatement", "src": "911:14:41" } ] }, "documentation": "@dev called by the owner to unpause, returns to normal state", "id": 6721, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 6709, "modifierName": { "argumentTypes": null, "id": 6708, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6850, "src": "864:9:41", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "864:9:41" }, { "arguments": null, "id": 6711, "modifierName": { "argumentTypes": null, "id": 6710, "name": "whenPaused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6691, "src": "874:10:41", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "874:10:41" } ], "name": "unpause", "nodeType": "FunctionDefinition", "parameters": { "id": 6707, "nodeType": "ParameterList", "parameters": [], "src": "854:2:41" }, "payable": false, "returnParameters": { "id": 6712, "nodeType": "ParameterList", "parameters": [], "src": "885:0:41" }, "scope": 6722, "src": "838:92:41", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 6723, "src": "177:755:41" } ], "src": "0:933:41" }, "legacyAST": { "absolutePath": "zeppelin-solidity/contracts/lifecycle/Pausable.sol", "exportedSymbols": { "Pausable": [ 6722 ] }, "id": 6723, "nodeType": "SourceUnit", "nodes": [ { "id": 6664, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:41" }, { "absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol", "file": "../ownership/Ownable.sol", "id": 6665, "nodeType": "ImportDirective", "scope": 6723, "sourceUnit": 6903, "src": "27:34:41", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6666, "name": "Ownable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6902, "src": "198:7:41", "typeDescriptions": { "typeIdentifier": "t_contract$_Ownable_$6902", "typeString": "contract Ownable" } }, "id": 6667, "nodeType": "InheritanceSpecifier", "src": "198:7:41" } ], "contractDependencies": [ 6902 ], "contractKind": "contract", "documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.", "fullyImplemented": true, "id": 6722, "linearizedBaseContracts": [ 6722, 6902 ], "name": "Pausable", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 6669, "name": "Pause", "nodeType": "EventDefinition", "parameters": { "id": 6668, "nodeType": "ParameterList", "parameters": [], "src": "221:2:41" }, "src": "210:14:41" }, { "anonymous": false, "documentation": null, "id": 6671, "name": "Unpause", "nodeType": "EventDefinition", "parameters": { "id": 6670, "nodeType": "ParameterList", "parameters": [], "src": "240:2:41" }, "src": "227:16:41" }, { "constant": false, "id": 6674, "name": "paused", "nodeType": "VariableDeclaration", "scope": 6722, "src": "247:26:41", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6672, "name": "bool", "nodeType": "ElementaryTypeName", "src": "247:4:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": { "argumentTypes": null, "hexValue": "66616c7365", "id": 6673, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "268:5:41", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "visibility": "public" }, { "body": { "id": 6682, "nodeType": "Block", "src": "401:34:41", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6678, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "415:7:41", "subExpression": { "argumentTypes": null, "id": 6677, "name": "paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "416:6:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 6676, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 7665, 7666 ], "referencedDeclaration": 7665, "src": "407:7:41", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 6679, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "407:16:41", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6680, "nodeType": "ExpressionStatement", "src": "407:16:41" }, { "id": 6681, "nodeType": "PlaceholderStatement", "src": "429:1:41" } ] }, "documentation": "@dev Modifier to make a function callable only when the contract is not paused.", "id": 6683, "name": "whenNotPaused", "nodeType": "ModifierDefinition", "parameters": { "id": 6675, "nodeType": "ParameterList", "parameters": [], "src": "398:2:41" }, "src": "376:59:41", "visibility": "internal" }, { "body": { "id": 6690, "nodeType": "Block", "src": "554:33:41", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6686, "name": "paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "568:6:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 6685, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 7665, 7666 ], "referencedDeclaration": 7665, "src": "560:7:41", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 6687, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "560:15:41", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6688, "nodeType": "ExpressionStatement", "src": "560:15:41" }, { "id": 6689, "nodeType": "PlaceholderStatement", "src": "581:1:41" } ] }, "documentation": "@dev Modifier to make a function callable only when the contract is paused.", "id": 6691, "name": "whenPaused", "nodeType": "ModifierDefinition", "parameters": { "id": 6684, "nodeType": "ParameterList", "parameters": [], "src": "551:2:41" }, "src": "532:55:41", "visibility": "internal" }, { "body": { "id": 6705, "nodeType": "Block", "src": "714:42:41", "statements": [ { "expression": { "argumentTypes": null, "id": 6700, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6698, "name": "paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "720:6:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 6699, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "729:4:41", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "720:13:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 6701, "nodeType": "ExpressionStatement", "src": "720:13:41" }, { "eventCall": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 6702, "name": "Pause", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6669, "src": "744:5:41", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 6703, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "744:7:41", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6704, "nodeType": "EmitStatement", "src": "739:12:41" } ] }, "documentation": "@dev called by the owner to pause, triggers stopped state", "id": 6706, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 6694, "modifierName": { "argumentTypes": null, "id": 6693, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6850, "src": "690:9:41", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "690:9:41" }, { "arguments": null, "id": 6696, "modifierName": { "argumentTypes": null, "id": 6695, "name": "whenNotPaused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6683, "src": "700:13:41", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "700:13:41" } ], "name": "pause", "nodeType": "FunctionDefinition", "parameters": { "id": 6692, "nodeType": "ParameterList", "parameters": [], "src": "680:2:41" }, "payable": false, "returnParameters": { "id": 6697, "nodeType": "ParameterList", "parameters": [], "src": "714:0:41" }, "scope": 6722, "src": "666:90:41", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6720, "nodeType": "Block", "src": "885:45:41", "statements": [ { "expression": { "argumentTypes": null, "id": 6715, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6713, "name": "paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "891:6:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "66616c7365", "id": 6714, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "900:5:41", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "891:14:41", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool