tokenboost-solidity-erc20token
Version:
Solidity contracts for TokenBoost (ERC20Token)
1,298 lines • 54.2 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": "0x608060405260008054600160a860020a031916331790556103c4806100256000396000f3006080604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633f4ba83a811461007c5780635c975abb14610093578063715018a6146100bc5780638456cb59146100d15780638da5cb5b146100e6578063f2fde38b14610117575b600080fd5b34801561008857600080fd5b50610091610138565b005b34801561009f57600080fd5b506100a86101bf565b604080519115158252519081900360200190f35b3480156100c857600080fd5b506100916101e0565b3480156100dd57600080fd5b5061009161024c565b3480156100f257600080fd5b506100fb6102e9565b60408051600160a060020a039092168252519081900360200190f35b34801561012357600080fd5b50610091600160a060020a03600435166102f8565b600054600160a060020a0316331461014f57600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561017857600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b60005474010000000000000000000000000000000000000000900460ff1681565b600054600160a060020a031633146101f757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a0316331461026357600080fd5b60005474010000000000000000000000000000000000000000900460ff161561028b57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b600054600160a060020a0316331461030f57600080fd5b6103188161031b565b50565b600160a060020a038116151561033057600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a7230582056cc310923aaf34129a45de00e2ba3a49678d81490d65c412f75569fc383e3870029",
"deployedBytecode": "0x6080604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633f4ba83a811461007c5780635c975abb14610093578063715018a6146100bc5780638456cb59146100d15780638da5cb5b146100e6578063f2fde38b14610117575b600080fd5b34801561008857600080fd5b50610091610138565b005b34801561009f57600080fd5b506100a86101bf565b604080519115158252519081900360200190f35b3480156100c857600080fd5b506100916101e0565b3480156100dd57600080fd5b5061009161024c565b3480156100f257600080fd5b506100fb6102e9565b60408051600160a060020a039092168252519081900360200190f35b34801561012357600080fd5b50610091600160a060020a03600435166102f8565b600054600160a060020a0316331461014f57600080fd5b60005474010000000000000000000000000000000000000000900460ff16151561017857600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b60005474010000000000000000000000000000000000000000900460ff1681565b600054600160a060020a031633146101f757600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a0316331461026357600080fd5b60005474010000000000000000000000000000000000000000900460ff161561028b57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b600054600160a060020a0316331461030f57600080fd5b6103188161031b565b50565b600160a060020a038116151561033057600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a7230582056cc310923aaf34129a45de00e2ba3a49678d81490d65c412f75569fc383e3870029",
"sourceMap": "177:755:19:-;;;268:5;247:26;;-1:-1:-1;;;;;;567:18:21;575:10;567:18;;;177:755:19;;;;;;",
"deployedSourceMap": "177:755:19:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;838:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;838:92:19;;;;;;247:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;247:26:19;;;;;;;;;;;;;;;;;;;;;;1001:111:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:21;;;;666:90:19;;8:9:-1;5:2;;;30:1;27;20:12;5:2;666:90:19;;;;238:20:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:21;;;;;;;;-1:-1:-1;;;;;238:20:21;;;;;;;;;;;;;;1274:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:21;-1:-1:-1;;;;;1274:103:21;;;;;838:92:19;719:5:21;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;568:6:19;;;;;;;560:15;;;;;;;;900:5;891:14;;-1:-1:-1;;891:14:19;;;916:9;;;;900:5;916:9;838:92::o;247:26::-;;;;;;;;;:::o;1001:111:21:-;719:5;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:21;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:21;;;1001:111::o;666:90:19:-;719:5:21;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;416:6:19;;;;;;;415:7;407:16;;;;;;720:6;:13;;-1:-1:-1;;720:13:19;;;;;744:7;;;;720:6;744:7;666:90::o;238:20:21:-;;;-1:-1:-1;;;;;238:20:21;;:::o;1274:103::-;719:5;;-1:-1:-1;;;;;719:5:21;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;1512:171::-;-1:-1:-1;;;;;1582:23:21;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:21;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:21;-1:-1:-1;;;;;1661:17:21;;;;;;;;;;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": [
3942
]
},
"id": 3943,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3884,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:19"
},
{
"absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "../ownership/Ownable.sol",
"id": 3885,
"nodeType": "ImportDirective",
"scope": 3943,
"sourceUnit": 4123,
"src": "27:34:19",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3886,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4122,
"src": "198:7:19",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$4122",
"typeString": "contract Ownable"
}
},
"id": 3887,
"nodeType": "InheritanceSpecifier",
"src": "198:7:19"
}
],
"contractDependencies": [
4122
],
"contractKind": "contract",
"documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.",
"fullyImplemented": true,
"id": 3942,
"linearizedBaseContracts": [
3942,
4122
],
"name": "Pausable",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 3889,
"name": "Pause",
"nodeType": "EventDefinition",
"parameters": {
"id": 3888,
"nodeType": "ParameterList",
"parameters": [],
"src": "221:2:19"
},
"src": "210:14:19"
},
{
"anonymous": false,
"documentation": null,
"id": 3891,
"name": "Unpause",
"nodeType": "EventDefinition",
"parameters": {
"id": 3890,
"nodeType": "ParameterList",
"parameters": [],
"src": "240:2:19"
},
"src": "227:16:19"
},
{
"constant": false,
"id": 3894,
"name": "paused",
"nodeType": "VariableDeclaration",
"scope": 3942,
"src": "247:26:19",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 3892,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "247:4:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 3893,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "268:5:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"visibility": "public"
},
{
"body": {
"id": 3902,
"nodeType": "Block",
"src": "401:34:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 3898,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "415:7:19",
"subExpression": {
"argumentTypes": null,
"id": 3897,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3894,
"src": "416:6:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 3896,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4919,
4920
],
"referencedDeclaration": 4919,
"src": "407:7:19",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 3899,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "407:16:19",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3900,
"nodeType": "ExpressionStatement",
"src": "407:16:19"
},
{
"id": 3901,
"nodeType": "PlaceholderStatement",
"src": "429:1:19"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is not paused.",
"id": 3903,
"name": "whenNotPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 3895,
"nodeType": "ParameterList",
"parameters": [],
"src": "398:2:19"
},
"src": "376:59:19",
"visibility": "internal"
},
{
"body": {
"id": 3910,
"nodeType": "Block",
"src": "554:33:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 3906,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3894,
"src": "568:6:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 3905,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4919,
4920
],
"referencedDeclaration": 4919,
"src": "560:7:19",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 3907,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "560:15:19",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3908,
"nodeType": "ExpressionStatement",
"src": "560:15:19"
},
{
"id": 3909,
"nodeType": "PlaceholderStatement",
"src": "581:1:19"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is paused.",
"id": 3911,
"name": "whenPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 3904,
"nodeType": "ParameterList",
"parameters": [],
"src": "551:2:19"
},
"src": "532:55:19",
"visibility": "internal"
},
{
"body": {
"id": 3925,
"nodeType": "Block",
"src": "714:42:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3920,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3918,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3894,
"src": "720:6:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 3919,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "729:4:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "720:13:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 3921,
"nodeType": "ExpressionStatement",
"src": "720:13:19"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 3922,
"name": "Pause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3889,
"src": "744:5:19",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 3923,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "744:7:19",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3924,
"nodeType": "EmitStatement",
"src": "739:12:19"
}
]
},
"documentation": "@dev called by the owner to pause, triggers stopped state",
"id": 3926,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 3914,
"modifierName": {
"argumentTypes": null,
"id": 3913,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4070,
"src": "690:9:19",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "690:9:19"
},
{
"arguments": null,
"id": 3916,
"modifierName": {
"argumentTypes": null,
"id": 3915,
"name": "whenNotPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3903,
"src": "700:13:19",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "700:13:19"
}
],
"name": "pause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3912,
"nodeType": "ParameterList",
"parameters": [],
"src": "680:2:19"
},
"payable": false,
"returnParameters": {
"id": 3917,
"nodeType": "ParameterList",
"parameters": [],
"src": "714:0:19"
},
"scope": 3942,
"src": "666:90:19",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 3940,
"nodeType": "Block",
"src": "885:45:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3935,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3933,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3894,
"src": "891:6:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 3934,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "900:5:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "891:14:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 3936,
"nodeType": "ExpressionStatement",
"src": "891:14:19"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 3937,
"name": "Unpause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3891,
"src": "916:7:19",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 3938,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "916:9:19",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3939,
"nodeType": "EmitStatement",
"src": "911:14:19"
}
]
},
"documentation": "@dev called by the owner to unpause, returns to normal state",
"id": 3941,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 3929,
"modifierName": {
"argumentTypes": null,
"id": 3928,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4070,
"src": "864:9:19",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "864:9:19"
},
{
"arguments": null,
"id": 3931,
"modifierName": {
"argumentTypes": null,
"id": 3930,
"name": "whenPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3911,
"src": "874:10:19",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "874:10:19"
}
],
"name": "unpause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3927,
"nodeType": "ParameterList",
"parameters": [],
"src": "854:2:19"
},
"payable": false,
"returnParameters": {
"id": 3932,
"nodeType": "ParameterList",
"parameters": [],
"src": "885:0:19"
},
"scope": 3942,
"src": "838:92:19",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 3943,
"src": "177:755:19"
}
],
"src": "0:933:19"
},
"legacyAST": {
"absolutePath": "zeppelin-solidity/contracts/lifecycle/Pausable.sol",
"exportedSymbols": {
"Pausable": [
3942
]
},
"id": 3943,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3884,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:19"
},
{
"absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol",
"file": "../ownership/Ownable.sol",
"id": 3885,
"nodeType": "ImportDirective",
"scope": 3943,
"sourceUnit": 4123,
"src": "27:34:19",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 3886,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 4122,
"src": "198:7:19",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$4122",
"typeString": "contract Ownable"
}
},
"id": 3887,
"nodeType": "InheritanceSpecifier",
"src": "198:7:19"
}
],
"contractDependencies": [
4122
],
"contractKind": "contract",
"documentation": "@title Pausable\n@dev Base contract which allows children to implement an emergency stop mechanism.",
"fullyImplemented": true,
"id": 3942,
"linearizedBaseContracts": [
3942,
4122
],
"name": "Pausable",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 3889,
"name": "Pause",
"nodeType": "EventDefinition",
"parameters": {
"id": 3888,
"nodeType": "ParameterList",
"parameters": [],
"src": "221:2:19"
},
"src": "210:14:19"
},
{
"anonymous": false,
"documentation": null,
"id": 3891,
"name": "Unpause",
"nodeType": "EventDefinition",
"parameters": {
"id": 3890,
"nodeType": "ParameterList",
"parameters": [],
"src": "240:2:19"
},
"src": "227:16:19"
},
{
"constant": false,
"id": 3894,
"name": "paused",
"nodeType": "VariableDeclaration",
"scope": 3942,
"src": "247:26:19",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 3892,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "247:4:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 3893,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "268:5:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"visibility": "public"
},
{
"body": {
"id": 3902,
"nodeType": "Block",
"src": "401:34:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 3898,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "415:7:19",
"subExpression": {
"argumentTypes": null,
"id": 3897,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3894,
"src": "416:6:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 3896,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4919,
4920
],
"referencedDeclaration": 4919,
"src": "407:7:19",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 3899,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "407:16:19",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3900,
"nodeType": "ExpressionStatement",
"src": "407:16:19"
},
{
"id": 3901,
"nodeType": "PlaceholderStatement",
"src": "429:1:19"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is not paused.",
"id": 3903,
"name": "whenNotPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 3895,
"nodeType": "ParameterList",
"parameters": [],
"src": "398:2:19"
},
"src": "376:59:19",
"visibility": "internal"
},
{
"body": {
"id": 3910,
"nodeType": "Block",
"src": "554:33:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 3906,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3894,
"src": "568:6:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 3905,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4919,
4920
],
"referencedDeclaration": 4919,
"src": "560:7:19",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 3907,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "560:15:19",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3908,
"nodeType": "ExpressionStatement",
"src": "560:15:19"
},
{
"id": 3909,
"nodeType": "PlaceholderStatement",
"src": "581:1:19"
}
]
},
"documentation": "@dev Modifier to make a function callable only when the contract is paused.",
"id": 3911,
"name": "whenPaused",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 3904,
"nodeType": "ParameterList",
"parameters": [],
"src": "551:2:19"
},
"src": "532:55:19",
"visibility": "internal"
},
{
"body": {
"id": 3925,
"nodeType": "Block",
"src": "714:42:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3920,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3918,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3894,
"src": "720:6:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 3919,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "729:4:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "720:13:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 3921,
"nodeType": "ExpressionStatement",
"src": "720:13:19"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 3922,
"name": "Pause",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3889,
"src": "744:5:19",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
"typeString": "function ()"
}
},
"id": 3923,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "744:7:19",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 3924,
"nodeType": "EmitStatement",
"src": "739:12:19"
}
]
},
"documentation": "@dev called by the owner to pause, triggers stopped state",
"id": 3926,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 3914,
"modifierName": {
"argumentTypes": null,
"id": 3913,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4070,
"src": "690:9:19",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "690:9:19"
},
{
"arguments": null,
"id": 3916,
"modifierName": {
"argumentTypes": null,
"id": 3915,
"name": "whenNotPaused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3903,
"src": "700:13:19",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "700:13:19"
}
],
"name": "pause",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3912,
"nodeType": "ParameterList",
"parameters": [],
"src": "680:2:19"
},
"payable": false,
"returnParameters": {
"id": 3917,
"nodeType": "ParameterList",
"parameters": [],
"src": "714:0:19"
},
"scope": 3942,
"src": "666:90:19",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 3940,
"nodeType": "Block",
"src": "885:45:19",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 3935,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 3933,
"name": "paused",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3894,
"src": "891:6:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 3934,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "900:5:19",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "891:14:19",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool