@etherisc/registry-contracts
Version:
Etherisc's smart contracts for the registry.
1,302 lines • 57.6 kB
JSON
{
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"allSourcePaths": {
"23": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/Context.sol",
"6": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/access/Ownable.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/access/Ownable.sol",
"exportedSymbols": {
"Context": [
16878
],
"Ownable": [
12623
]
},
"id": 12624,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 12512,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "102:23:6"
},
{
"absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/Context.sol",
"file": "../utils/Context.sol",
"id": 12513,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 12624,
"sourceUnit": 16879,
"src": "127:30:6",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 12515,
"name": "Context",
"nameLocations": [
"683:7:6"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 16878,
"src": "683:7:6"
},
"id": 12516,
"nodeType": "InheritanceSpecifier",
"src": "683:7:6"
}
],
"canonicalName": "Ownable",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 12514,
"nodeType": "StructuredDocumentation",
"src": "159:494:6",
"text": " @dev Contract module which provides a basic access control mechanism, where\n there is an account (an owner) that can be granted exclusive access to\n specific functions.\n By default, the owner account will be the one that deploys the contract. This\n can later be changed with {transferOwnership}.\n This module is used through inheritance. It will make available the modifier\n `onlyOwner`, which can be applied to your functions to restrict their use to\n the owner."
},
"fullyImplemented": true,
"id": 12623,
"linearizedBaseContracts": [
12623,
16878
],
"name": "Ownable",
"nameLocation": "672:7:6",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 12518,
"mutability": "mutable",
"name": "_owner",
"nameLocation": "713:6:6",
"nodeType": "VariableDeclaration",
"scope": 12623,
"src": "697:22:6",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12517,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "697:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "private"
},
{
"anonymous": false,
"eventSelector": "8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"id": 12524,
"name": "OwnershipTransferred",
"nameLocation": "732:20:6",
"nodeType": "EventDefinition",
"parameters": {
"id": 12523,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12520,
"indexed": true,
"mutability": "mutable",
"name": "previousOwner",
"nameLocation": "769:13:6",
"nodeType": "VariableDeclaration",
"scope": 12524,
"src": "753:29:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12519,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "753:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12522,
"indexed": true,
"mutability": "mutable",
"name": "newOwner",
"nameLocation": "800:8:6",
"nodeType": "VariableDeclaration",
"scope": 12524,
"src": "784:24:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12521,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "784:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "752:57:6"
},
"src": "726:84:6"
},
{
"body": {
"id": 12533,
"nodeType": "Block",
"src": "926:49:6",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 12529,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 16868,
"src": "955:10:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 12530,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "955:12:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 12528,
"name": "_transferOwnership",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12622,
"src": "936:18:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 12531,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "936:32:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 12532,
"nodeType": "ExpressionStatement",
"src": "936:32:6"
}
]
},
"documentation": {
"id": 12525,
"nodeType": "StructuredDocumentation",
"src": "816:91:6",
"text": " @dev Initializes the contract setting the deployer as the initial owner."
},
"id": 12534,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12526,
"nodeType": "ParameterList",
"parameters": [],
"src": "923:2:6"
},
"returnParameters": {
"id": 12527,
"nodeType": "ParameterList",
"parameters": [],
"src": "926:0:6"
},
"scope": 12623,
"src": "912:63:6",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 12541,
"nodeType": "Block",
"src": "1084:41:6",
"statements": [
{
"expression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 12537,
"name": "_checkOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12565,
"src": "1094:11:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$__$",
"typeString": "function () view"
}
},
"id": 12538,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1094:13:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 12539,
"nodeType": "ExpressionStatement",
"src": "1094:13:6"
},
{
"id": 12540,
"nodeType": "PlaceholderStatement",
"src": "1117:1:6"
}
]
},
"documentation": {
"id": 12535,
"nodeType": "StructuredDocumentation",
"src": "981:77:6",
"text": " @dev Throws if called by any account other than the owner."
},
"id": 12542,
"name": "onlyOwner",
"nameLocation": "1072:9:6",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 12536,
"nodeType": "ParameterList",
"parameters": [],
"src": "1081:2:6"
},
"src": "1063:62:6",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 12550,
"nodeType": "Block",
"src": "1256:30:6",
"statements": [
{
"expression": {
"id": 12548,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12518,
"src": "1273:6:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"functionReturnParameters": 12547,
"id": 12549,
"nodeType": "Return",
"src": "1266:13:6"
}
]
},
"documentation": {
"id": 12543,
"nodeType": "StructuredDocumentation",
"src": "1131:65:6",
"text": " @dev Returns the address of the current owner."
},
"functionSelector": "8da5cb5b",
"id": 12551,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "owner",
"nameLocation": "1210:5:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12544,
"nodeType": "ParameterList",
"parameters": [],
"src": "1215:2:6"
},
"returnParameters": {
"id": 12547,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12546,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 12551,
"src": "1247:7:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12545,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1247:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1246:9:6"
},
"scope": 12623,
"src": "1201:85:6",
"stateMutability": "view",
"virtual": true,
"visibility": "public"
},
{
"body": {
"id": 12564,
"nodeType": "Block",
"src": "1404:85:6",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 12560,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 12556,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12551,
"src": "1422:5:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 12557,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1422:7:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 12558,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 16868,
"src": "1433:10:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 12559,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1433:12:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1422:23:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572",
"id": 12561,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1447:34:6",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe",
"typeString": "literal_string \"Ownable: caller is not the owner\""
},
"value": "Ownable: caller is not the owner"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe",
"typeString": "literal_string \"Ownable: caller is not the owner\""
}
],
"id": 12555,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "1414:7:6",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 12562,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1414:68:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 12563,
"nodeType": "ExpressionStatement",
"src": "1414:68:6"
}
]
},
"documentation": {
"id": 12552,
"nodeType": "StructuredDocumentation",
"src": "1292:62:6",
"text": " @dev Throws if the sender is not the owner."
},
"id": 12565,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_checkOwner",
"nameLocation": "1368:11:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12553,
"nodeType": "ParameterList",
"parameters": [],
"src": "1379:2:6"
},
"returnParameters": {
"id": 12554,
"nodeType": "ParameterList",
"parameters": [],
"src": "1404:0:6"
},
"scope": 12623,
"src": "1359:130:6",
"stateMutability": "view",
"virtual": true,
"visibility": "internal"
},
{
"body": {
"id": 12578,
"nodeType": "Block",
"src": "1885:47:6",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"hexValue": "30",
"id": 12574,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1922:1:6",
"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": 12573,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1914:7:6",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 12572,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1914:7:6",
"typeDescriptions": {}
}
},
"id": 12575,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1914:10:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 12571,
"name": "_transferOwnership",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12622,
"src": "1895:18:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 12576,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "1895:30:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 12577,
"nodeType": "ExpressionStatement",
"src": "1895:30:6"
}
]
},
"documentation": {
"id": 12566,
"nodeType": "StructuredDocumentation",
"src": "1495:331:6",
"text": " @dev Leaves the contract without owner. It will not be possible to call\n `onlyOwner` functions anymore. Can only be called by the current owner.\n NOTE: Renouncing ownership will leave the contract without an owner,\n thereby removing any functionality that is only available to the owner."
},
"functionSelector": "715018a6",
"id": 12579,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 12569,
"kind": "modifierInvocation",
"modifierName": {
"id": 12568,
"name": "onlyOwner",
"nameLocations": [
"1875:9:6"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 12542,
"src": "1875:9:6"
},
"nodeType": "ModifierInvocation",
"src": "1875:9:6"
}
],
"name": "renounceOwnership",
"nameLocation": "1840:17:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12567,
"nodeType": "ParameterList",
"parameters": [],
"src": "1857:2:6"
},
"returnParameters": {
"id": 12570,
"nodeType": "ParameterList",
"parameters": [],
"src": "1885:0:6"
},
"scope": 12623,
"src": "1831:101:6",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "public"
},
{
"body": {
"id": 12601,
"nodeType": "Block",
"src": "2151:128:6",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 12593,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 12588,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12582,
"src": "2169:8:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"arguments": [
{
"hexValue": "30",
"id": 12591,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2189:1:6",
"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": 12590,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "2181:7:6",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 12589,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2181:7:6",
"typeDescriptions": {}
}
},
"id": 12592,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2181:10:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "2169:22:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373",
"id": 12594,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2193:40:6",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe",
"typeString": "literal_string \"Ownable: new owner is the zero address\""
},
"value": "Ownable: new owner is the zero address"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe",
"typeString": "literal_string \"Ownable: new owner is the zero address\""
}
],
"id": 12587,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "2161:7:6",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 12595,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2161:73:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 12596,
"nodeType": "ExpressionStatement",
"src": "2161:73:6"
},
{
"expression": {
"arguments": [
{
"id": 12598,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12582,
"src": "2263:8:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 12597,
"name": "_transferOwnership",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12622,
"src": "2244:18:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 12599,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "2244:28:6",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 12600,
"nodeType": "ExpressionStatement",
"src": "2244:28:6"
}
]
},
"documentation": {
"id": 12580,
"nodeType": "StructuredDocumentation",
"src": "1938:138:6",
"text": " @dev Transfers ownership of the contract to a new account (`newOwner`).\n Can only be called by the current owner."
},
"functionSelector": "f2fde38b",
"id": 12602,
"implemented": true,
"kind": "function",
"modifiers": [
{
"id": 12585,
"kind": "modifierInvocation",
"modifierName": {
"id": 12584,
"name": "onlyOwner",
"nameLocations": [
"2141:9:6"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 12542,
"src": "2141:9:6"
},
"nodeType": "ModifierInvocation",
"src": "2141:9:6"
}
],
"name": "transferOwnership",
"nameLocation": "2090:17:6",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12583,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12582,
"mutability": "mutable",
"name": "newOwner",
"nameLocation": "2116:8:6",
"nodeType": "VariableDeclaration",
"scope": 12602,
"src": "2108:16:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12581,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2108:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2107:18:6"
},
"returnParameters": {
"id": 12586,
"nodeType": "ParameterList",
"parameters": [],
"src": "2151:0:6"
},
"scope": 12623,
"src": "2081:198:6",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "public"
},
{
"body": {
"id": 12621,
"nodeType": "Block",
"src": "2496:124:6",
"statements": [
{
"assignments": [
12609
],
"declarations": [
{
"constant": false,
"id": 12609,
"mutability": "mutable",
"name": "oldOwner",
"nameLocation": "2514:8:6",
"nodeType": "VariableDeclaration",
"scope": 12621,
"src": "2506:16:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12608,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2506:7:6",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"id": 12611,
"initialValue": {
"id": 12610,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12518,
"src": "2525:6:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2506:25:6"
},
{
"expression": {
"id": 12614,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 12612,
"name": "_owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12518,
"src": "2541:6:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 12613,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12605,
"src": "2550:8:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "2541:17:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 12615,
"nodeType": "ExpressionStatement",
"src": "2541:17:6"
},
{
"eventCall": {
"arguments": [
{
"id": 12617,
"name": "oldOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12609,
"src": "2594:8:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"id": 12618,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12605,
"src": "2604:8:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 12616,
"name": "OwnershipTransferred",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12524,
"src": "2573:20:6",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
"id": 12619,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"no