UNPKG

@etherisc/depeg-contracts

Version:

Etherisc's smart contracts for a depeg insurance for stable coins.

1,309 lines (1,308 loc) 56.4 kB
{ "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": { "0": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol", "11": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol", "exportedSymbols": { "Context": [ 15648 ], "Ownable": [ 9476 ] }, "id": 9477, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 9365, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "102:23:0" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol", "file": "../utils/Context.sol", "id": 9366, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 9477, "sourceUnit": 15649, "src": "127:30:0", "symbolAliases": [], "unitAlias": "" }, { "abstract": true, "baseContracts": [ { "baseName": { "id": 9368, "name": "Context", "nodeType": "IdentifierPath", "referencedDeclaration": 15648, "src": "683:7:0" }, "id": 9369, "nodeType": "InheritanceSpecifier", "src": "683:7:0" } ], "contractDependencies": [ 15648 ], "contractKind": "contract", "documentation": { "id": 9367, "nodeType": "StructuredDocumentation", "src": "159:494:0", "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": 9476, "linearizedBaseContracts": [ 9476, 15648 ], "name": "Ownable", "nameLocation": "672:7:0", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 9371, "mutability": "mutable", "name": "_owner", "nameLocation": "713:6:0", "nodeType": "VariableDeclaration", "scope": 9476, "src": "697:22:0", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9370, "name": "address", "nodeType": "ElementaryTypeName", "src": "697:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "private" }, { "anonymous": false, "id": 9377, "name": "OwnershipTransferred", "nameLocation": "732:20:0", "nodeType": "EventDefinition", "parameters": { "id": 9376, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9373, "indexed": true, "mutability": "mutable", "name": "previousOwner", "nameLocation": "769:13:0", "nodeType": "VariableDeclaration", "scope": 9377, "src": "753:29:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9372, "name": "address", "nodeType": "ElementaryTypeName", "src": "753:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 9375, "indexed": true, "mutability": "mutable", "name": "newOwner", "nameLocation": "800:8:0", "nodeType": "VariableDeclaration", "scope": 9377, "src": "784:24:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9374, "name": "address", "nodeType": "ElementaryTypeName", "src": "784:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "752:57:0" }, "src": "726:84:0" }, { "body": { "id": 9386, "nodeType": "Block", "src": "926:49:0", "statements": [ { "expression": { "arguments": [ { "arguments": [], "expression": { "argumentTypes": [], "id": 9382, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15638, "src": "955:10:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 9383, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "955:12:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 9381, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9475, "src": "936:18:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 9384, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "936:32:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 9385, "nodeType": "ExpressionStatement", "src": "936:32:0" } ] }, "documentation": { "id": 9378, "nodeType": "StructuredDocumentation", "src": "816:91:0", "text": " @dev Initializes the contract setting the deployer as the initial owner." }, "id": 9387, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nameLocation": "-1:-1:-1", "nodeType": "FunctionDefinition", "parameters": { "id": 9379, "nodeType": "ParameterList", "parameters": [], "src": "923:2:0" }, "returnParameters": { "id": 9380, "nodeType": "ParameterList", "parameters": [], "src": "926:0:0" }, "scope": 9476, "src": "912:63:0", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 9394, "nodeType": "Block", "src": "1084:41:0", "statements": [ { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 9390, "name": "_checkOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9418, "src": "1094:11:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$__$", "typeString": "function () view" } }, "id": 9391, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1094:13:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 9392, "nodeType": "ExpressionStatement", "src": "1094:13:0" }, { "id": 9393, "nodeType": "PlaceholderStatement", "src": "1117:1:0" } ] }, "documentation": { "id": 9388, "nodeType": "StructuredDocumentation", "src": "981:77:0", "text": " @dev Throws if called by any account other than the owner." }, "id": 9395, "name": "onlyOwner", "nameLocation": "1072:9:0", "nodeType": "ModifierDefinition", "parameters": { "id": 9389, "nodeType": "ParameterList", "parameters": [], "src": "1081:2:0" }, "src": "1063:62:0", "virtual": false, "visibility": "internal" }, { "body": { "id": 9403, "nodeType": "Block", "src": "1256:30:0", "statements": [ { "expression": { "id": 9401, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9371, "src": "1273:6:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 9400, "id": 9402, "nodeType": "Return", "src": "1266:13:0" } ] }, "documentation": { "id": 9396, "nodeType": "StructuredDocumentation", "src": "1131:65:0", "text": " @dev Returns the address of the current owner." }, "functionSelector": "8da5cb5b", "id": 9404, "implemented": true, "kind": "function", "modifiers": [], "name": "owner", "nameLocation": "1210:5:0", "nodeType": "FunctionDefinition", "parameters": { "id": 9397, "nodeType": "ParameterList", "parameters": [], "src": "1215:2:0" }, "returnParameters": { "id": 9400, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9399, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 9404, "src": "1247:7:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9398, "name": "address", "nodeType": "ElementaryTypeName", "src": "1247:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1246:9:0" }, "scope": 9476, "src": "1201:85:0", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "body": { "id": 9417, "nodeType": "Block", "src": "1404:85:0", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 9413, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 9409, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9404, "src": "1422:5:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 9410, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1422:7:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 9411, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 15638, "src": "1433:10:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 9412, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1433:12:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1422:23:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572", "id": 9414, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1447:34:0", "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": 9408, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ -18, -18 ], "referencedDeclaration": -18, "src": "1414:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 9415, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1414:68:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 9416, "nodeType": "ExpressionStatement", "src": "1414:68:0" } ] }, "documentation": { "id": 9405, "nodeType": "StructuredDocumentation", "src": "1292:62:0", "text": " @dev Throws if the sender is not the owner." }, "id": 9418, "implemented": true, "kind": "function", "modifiers": [], "name": "_checkOwner", "nameLocation": "1368:11:0", "nodeType": "FunctionDefinition", "parameters": { "id": 9406, "nodeType": "ParameterList", "parameters": [], "src": "1379:2:0" }, "returnParameters": { "id": 9407, "nodeType": "ParameterList", "parameters": [], "src": "1404:0:0" }, "scope": 9476, "src": "1359:130:0", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 9431, "nodeType": "Block", "src": "1885:47:0", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "hexValue": "30", "id": 9427, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1922:1:0", "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": 9426, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1914:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": { "id": 9425, "name": "address", "nodeType": "ElementaryTypeName", "src": "1914:7:0", "typeDescriptions": {} } }, "id": 9428, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1914:10:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 9424, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9475, "src": "1895:18:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 9429, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1895:30:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 9430, "nodeType": "ExpressionStatement", "src": "1895:30:0" } ] }, "documentation": { "id": 9419, "nodeType": "StructuredDocumentation", "src": "1495:331:0", "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": 9432, "implemented": true, "kind": "function", "modifiers": [ { "id": 9422, "modifierName": { "id": 9421, "name": "onlyOwner", "nodeType": "IdentifierPath", "referencedDeclaration": 9395, "src": "1875:9:0" }, "nodeType": "ModifierInvocation", "src": "1875:9:0" } ], "name": "renounceOwnership", "nameLocation": "1840:17:0", "nodeType": "FunctionDefinition", "parameters": { "id": 9420, "nodeType": "ParameterList", "parameters": [], "src": "1857:2:0" }, "returnParameters": { "id": 9423, "nodeType": "ParameterList", "parameters": [], "src": "1885:0:0" }, "scope": 9476, "src": "1831:101:0", "stateMutability": "nonpayable", "virtual": true, "visibility": "public" }, { "body": { "id": 9454, "nodeType": "Block", "src": "2151:128:0", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 9446, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 9441, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9435, "src": "2169:8:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "arguments": [ { "hexValue": "30", "id": 9444, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2189:1:0", "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": 9443, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2181:7:0", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": { "id": 9442, "name": "address", "nodeType": "ElementaryTypeName", "src": "2181:7:0", "typeDescriptions": {} } }, "id": 9445, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2181:10:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "2169:22:0", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373", "id": 9447, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2193:40:0", "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": 9440, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ -18, -18 ], "referencedDeclaration": -18, "src": "2161:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 9448, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2161:73:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 9449, "nodeType": "ExpressionStatement", "src": "2161:73:0" }, { "expression": { "arguments": [ { "id": 9451, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9435, "src": "2263:8:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 9450, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9475, "src": "2244:18:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 9452, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2244:28:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 9453, "nodeType": "ExpressionStatement", "src": "2244:28:0" } ] }, "documentation": { "id": 9433, "nodeType": "StructuredDocumentation", "src": "1938:138:0", "text": " @dev Transfers ownership of the contract to a new account (`newOwner`).\n Can only be called by the current owner." }, "functionSelector": "f2fde38b", "id": 9455, "implemented": true, "kind": "function", "modifiers": [ { "id": 9438, "modifierName": { "id": 9437, "name": "onlyOwner", "nodeType": "IdentifierPath", "referencedDeclaration": 9395, "src": "2141:9:0" }, "nodeType": "ModifierInvocation", "src": "2141:9:0" } ], "name": "transferOwnership", "nameLocation": "2090:17:0", "nodeType": "FunctionDefinition", "parameters": { "id": 9436, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9435, "mutability": "mutable", "name": "newOwner", "nameLocation": "2116:8:0", "nodeType": "VariableDeclaration", "scope": 9455, "src": "2108:16:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9434, "name": "address", "nodeType": "ElementaryTypeName", "src": "2108:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "2107:18:0" }, "returnParameters": { "id": 9439, "nodeType": "ParameterList", "parameters": [], "src": "2151:0:0" }, "scope": 9476, "src": "2081:198:0", "stateMutability": "nonpayable", "virtual": true, "visibility": "public" }, { "body": { "id": 9474, "nodeType": "Block", "src": "2496:124:0", "statements": [ { "assignments": [ 9462 ], "declarations": [ { "constant": false, "id": 9462, "mutability": "mutable", "name": "oldOwner", "nameLocation": "2514:8:0", "nodeType": "VariableDeclaration", "scope": 9474, "src": "2506:16:0", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9461, "name": "address", "nodeType": "ElementaryTypeName", "src": "2506:7:0", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "id": 9464, "initialValue": { "id": 9463, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9371, "src": "2525:6:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "2506:25:0" }, { "expression": { "id": 9467, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 9465, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9371, "src": "2541:6:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "id": 9466, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9458, "src": "2550:8:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "2541:17:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 9468, "nodeType": "ExpressionStatement", "src": "2541:17:0" }, { "eventCall": { "arguments": [ { "id": 9470, "name": "oldOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9462, "src": "2594:8:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "id": 9471, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9458, "src": "2604:8:0", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 9469, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9377, "src": "2573:20:0", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, "id": 9472, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2573:40:0", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 9473, "nodeType": "EmitStatement", "src": "2568:45:0" } ] }, "documentation": { "id": 9456, "nodeType": "StructuredDocumentation", "src": "2285:143:0", "text": " @dev Transfers ownership of the contract to a new account (`newOwner`).\n Internal function without access restriction." }, "id": 9475, "implemented": true, "kind": "function", "modifiers": [], "name": "_transferOwnership", "nameLocation": "2442:18:0", "nodeType": "FunctionDefinition", "parameters": { "id": 9459, "nodeType": "ParameterList",