UNPKG

tokenboost-solidity

Version:
1,241 lines 87 kB
{ "contractName": "Ownable", "abi": [ { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "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": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x608060405234801561001057600080fd5b5060008054600160a060020a0319163317905561020b806100326000396000f3006080604052600436106100565763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663715018a6811461005b5780638da5cb5b14610072578063f2fde38b146100a3575b600080fd5b34801561006757600080fd5b506100706100c4565b005b34801561007e57600080fd5b50610087610130565b60408051600160a060020a039092168252519081900360200190f35b3480156100af57600080fd5b50610070600160a060020a036004351661013f565b600054600160a060020a031633146100db57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a0316331461015657600080fd5b61015f81610162565b50565b600160a060020a038116151561017757600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820f1c58dca1f6c12ae4235b4425b0c7f7b887fccf38f35218945a4f1dff7ac6c1a0029", "deployedBytecode": "0x6080604052600436106100565763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663715018a6811461005b5780638da5cb5b14610072578063f2fde38b146100a3575b600080fd5b34801561006757600080fd5b506100706100c4565b005b34801561007e57600080fd5b50610087610130565b60408051600160a060020a039092168252519081900360200190f35b3480156100af57600080fd5b50610070600160a060020a036004351661013f565b600054600160a060020a031633146100db57600080fd5b60008054604051600160a060020a03909116917ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482091a26000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031681565b600054600160a060020a0316331461015657600080fd5b61015f81610162565b50565b600160a060020a038116151561017757600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820f1c58dca1f6c12ae4235b4425b0c7f7b887fccf38f35218945a4f1dff7ac6c1a0029", "sourceMap": "217:1468:22:-;;;540:50;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;567:5:22;:18;;-1:-1:-1;;;;;;567:18:22;575:10;567:18;;;217:1468;;;;;;", "deployedSourceMap": "217:1468:22:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:111;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:22;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:22;;;;;;;;-1:-1:-1;;;;;238:20:22;;;;;;;;;;;;;;1274:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1274:103:22;-1:-1:-1;;;;;1274:103:22;;;;;1001:111;719:5;;-1:-1:-1;;;;;719:5:22;705:10;:19;697:28;;;;;;1077:5;;;1058:25;;-1:-1:-1;;;;;1077:5:22;;;;1058:25;;;1105:1;1089:18;;-1:-1:-1;;1089:18:22;;;1001:111::o;238:20::-;;;-1:-1:-1;;;;;238:20:22;;:::o;1274:103::-;719:5;;-1:-1:-1;;;;;719:5:22;705:10;:19;697:28;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;1512:171::-;-1:-1:-1;;;;;1582:23:22;;;;1574:32;;;;;;1638:5;;;1617:38;;-1:-1:-1;;;;;1617:38:22;;;;1638:5;;;1617:38;;;1661:5;:17;;-1:-1:-1;;1661:17:22;-1:-1:-1;;;;;1661:17:22;;;;;;;;;;1512:171::o", "source": "pragma solidity ^0.4.24;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n */\ncontract Ownable {\n address public owner;\n\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n constructor() public {\n owner = msg.sender;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n /**\n * @dev Allows the current owner to relinquish control of the contract.\n * @notice Renouncing to ownership will leave the contract without an owner.\n * It will not be possible to call the functions with the `onlyOwner`\n * modifier anymore.\n */\n function renounceOwnership() public onlyOwner {\n emit OwnershipRenounced(owner);\n owner = address(0);\n }\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param _newOwner The address to transfer ownership to.\n */\n function transferOwnership(address _newOwner) public onlyOwner {\n _transferOwnership(_newOwner);\n }\n\n /**\n * @dev Transfers control of the contract to a newOwner.\n * @param _newOwner The address to transfer ownership to.\n */\n function _transferOwnership(address _newOwner) internal {\n require(_newOwner != address(0));\n emit OwnershipTransferred(owner, _newOwner);\n owner = _newOwner;\n }\n}\n", "sourcePath": "zeppelin-solidity/contracts/ownership/Ownable.sol", "ast": { "absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol", "exportedSymbols": { "Ownable": [ 4884 ] }, "id": 4885, "nodeType": "SourceUnit", "nodes": [ { "id": 4800, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:22" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".", "fullyImplemented": true, "id": 4884, "linearizedBaseContracts": [ 4884 ], "name": "Ownable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 4802, "name": "owner", "nodeType": "VariableDeclaration", "scope": 4884, "src": "238:20:22", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4801, "name": "address", "nodeType": "ElementaryTypeName", "src": "238:7:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 4806, "name": "OwnershipRenounced", "nodeType": "EventDefinition", "parameters": { "id": 4805, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4804, "indexed": true, "name": "previousOwner", "nodeType": "VariableDeclaration", "scope": 4806, "src": "289:29:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4803, "name": "address", "nodeType": "ElementaryTypeName", "src": "289:7:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "288:31:22" }, "src": "264:56:22" }, { "anonymous": false, "documentation": null, "id": 4812, "name": "OwnershipTransferred", "nodeType": "EventDefinition", "parameters": { "id": 4811, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4808, "indexed": true, "name": "previousOwner", "nodeType": "VariableDeclaration", "scope": 4812, "src": "355:29:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4807, "name": "address", "nodeType": "ElementaryTypeName", "src": "355:7:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4810, "indexed": true, "name": "newOwner", "nodeType": "VariableDeclaration", "scope": 4812, "src": "390:24:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4809, "name": "address", "nodeType": "ElementaryTypeName", "src": "390:7:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "349:69:22" }, "src": "323:96:22" }, { "body": { "id": 4820, "nodeType": "Block", "src": "561:29:22", "statements": [ { "expression": { "argumentTypes": null, "id": 4818, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 4815, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4802, "src": "567:5:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 4816, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6573, "src": "575:3:22", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 4817, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "575:10:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "567:18:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 4819, "nodeType": "ExpressionStatement", "src": "567:18:22" } ] }, "documentation": "@dev The Ownable constructor sets the original `owner` of the contract to the sender\naccount.", "id": 4821, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 4813, "nodeType": "ParameterList", "parameters": [], "src": "551:2:22" }, "payable": false, "returnParameters": { "id": 4814, "nodeType": "ParameterList", "parameters": [], "src": "561:0:22" }, "scope": 4884, "src": "540:50:22", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 4831, "nodeType": "Block", "src": "691:46:22", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 4827, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 4824, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6573, "src": "705:3:22", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 4825, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "705:10:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 4826, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4802, "src": "719:5:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "705:19:22", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 4823, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 6576, 6577 ], "referencedDeclaration": 6576, "src": "697:7:22", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 4828, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "697:28:22", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4829, "nodeType": "ExpressionStatement", "src": "697:28:22" }, { "id": 4830, "nodeType": "PlaceholderStatement", "src": "731:1:22" } ] }, "documentation": "@dev Throws if called by any account other than the owner.", "id": 4832, "name": "onlyOwner", "nodeType": "ModifierDefinition", "parameters": { "id": 4822, "nodeType": "ParameterList", "parameters": [], "src": "688:2:22" }, "src": "670:67:22", "visibility": "internal" }, { "body": { "id": 4847, "nodeType": "Block", "src": "1047:65:22", "statements": [ { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 4838, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4802, "src": "1077:5:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 4837, "name": "OwnershipRenounced", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4806, "src": "1058:18:22", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 4839, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1058:25:22", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4840, "nodeType": "EmitStatement", "src": "1053:30:22" }, { "expression": { "argumentTypes": null, "id": 4845, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 4841, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4802, "src": "1089:5:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 4843, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1105:1:22", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 4842, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1097:7:22", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 4844, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1097:10:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1089:18:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 4846, "nodeType": "ExpressionStatement", "src": "1089:18:22" } ] }, "documentation": "@dev Allows the current owner to relinquish control of the contract.\n@notice Renouncing to ownership will leave the contract without an owner.\nIt will not be possible to call the functions with the `onlyOwner`\nmodifier anymore.", "id": 4848, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 4835, "modifierName": { "argumentTypes": null, "id": 4834, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4832, "src": "1037:9:22", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1037:9:22" } ], "name": "renounceOwnership", "nodeType": "FunctionDefinition", "parameters": { "id": 4833, "nodeType": "ParameterList", "parameters": [], "src": "1027:2:22" }, "payable": false, "returnParameters": { "id": 4836, "nodeType": "ParameterList", "parameters": [], "src": "1047:0:22" }, "scope": 4884, "src": "1001:111:22", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 4859, "nodeType": "Block", "src": "1337:40:22", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 4856, "name": "_newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4850, "src": "1362:9:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 4855, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4883, "src": "1343:18:22", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 4857, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1343:29:22", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4858, "nodeType": "ExpressionStatement", "src": "1343:29:22" } ] }, "documentation": "@dev Allows the current owner to transfer control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.", "id": 4860, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 4853, "modifierName": { "argumentTypes": null, "id": 4852, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4832, "src": "1327:9:22", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1327:9:22" } ], "name": "transferOwnership", "nodeType": "FunctionDefinition", "parameters": { "id": 4851, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4850, "name": "_newOwner", "nodeType": "VariableDeclaration", "scope": 4860, "src": "1301:17:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4849, "name": "address", "nodeType": "ElementaryTypeName", "src": "1301:7:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "1300:19:22" }, "payable": false, "returnParameters": { "id": 4854, "nodeType": "ParameterList", "parameters": [], "src": "1337:0:22" }, "scope": 4884, "src": "1274:103:22", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 4882, "nodeType": "Block", "src": "1568:115:22", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 4870, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 4866, "name": "_newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4862, "src": "1582:9:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 4868, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1603:1:22", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 4867, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1595:7:22", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 4869, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1595:10:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1582:23:22", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 4865, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 6576, 6577 ], "referencedDeclaration": 6576, "src": "1574:7:22", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 4871, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1574:32:22", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4872, "nodeType": "ExpressionStatement", "src": "1574:32:22" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 4874, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4802, "src": "1638:5:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 4875, "name": "_newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4862, "src": "1645:9:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 4873, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4812, "src": "1617:20:22", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, "id": 4876, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1617:38:22", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 4877, "nodeType": "EmitStatement", "src": "1612:43:22" }, { "expression": { "argumentTypes": null, "id": 4880, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 4878, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4802, "src": "1661:5:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 4879, "name": "_newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4862, "src": "1669:9:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1661:17:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 4881, "nodeType": "ExpressionStatement", "src": "1661:17:22" } ] }, "documentation": "@dev Transfers control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.", "id": 4883, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "_transferOwnership", "nodeType": "FunctionDefinition", "parameters": { "id": 4863, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4862, "name": "_newOwner", "nodeType": "VariableDeclaration", "scope": 4883, "src": "1540:17:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4861, "name": "address", "nodeType": "ElementaryTypeName", "src": "1540:7:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "1539:19:22" }, "payable": false, "returnParameters": { "id": 4864, "nodeType": "ParameterList", "parameters": [], "src": "1568:0:22" }, "scope": 4884, "src": "1512:171:22", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 4885, "src": "217:1468:22" } ], "src": "0:1686:22" }, "legacyAST": { "absolutePath": "zeppelin-solidity/contracts/ownership/Ownable.sol", "exportedSymbols": { "Ownable": [ 4884 ] }, "id": 4885, "nodeType": "SourceUnit", "nodes": [ { "id": 4800, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:22" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".", "fullyImplemented": true, "id": 4884, "linearizedBaseContracts": [ 4884 ], "name": "Ownable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 4802, "name": "owner", "nodeType": "VariableDeclaration", "scope": 4884, "src": "238:20:22", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4801, "name": "address", "nodeType": "ElementaryTypeName", "src": "238:7:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 4806, "name": "OwnershipRenounced", "nodeType": "EventDefinition", "parameters": { "id": 4805, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4804, "indexed": true, "name": "previousOwner", "nodeType": "VariableDeclaration", "scope": 4806, "src": "289:29:22", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4803, "name": "address", "nodeType": "ElementaryTypeName", "src": "289:7:22", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "288:31:22" }, "src": "264:56:22" }, { "anonymous": false, "documentation": null, "id": 4812, "name": "OwnershipTransferred", "no