UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

1,161 lines (1,160 loc) 77.6 kB
{ "contractName": "Ownable", "abi": [ { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "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" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"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\"}],\"devdoc\":{\"details\":\"Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. The initial owner is set to the address provided by the deployer. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.\",\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"details\":\"Initializes the contract setting the address provided by the deployer as the initial owner.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/access/Ownable.sol\":\"Ownable\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6\",\"dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.sol\";\n\n/**\n * @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 *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\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.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n", "sourcePath": "@openzeppelin\\contracts\\access\\Ownable.sol", "ast": { "absolutePath": "@openzeppelin/contracts/access/Ownable.sol", "exportedSymbols": { "Context": [ 523 ], "Ownable": [ 415 ] }, "id": 416, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 269, "literals": [ "solidity", "^", "0.8", ".20" ], "nodeType": "PragmaDirective", "src": "102:24:1" }, { "absolutePath": "@openzeppelin/contracts/utils/Context.sol", "file": "../utils/Context.sol", "id": 271, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 416, "sourceUnit": 524, "src": "128:45:1", "symbolAliases": [ { "foreign": { "id": 270, "name": "Context", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 523, "src": "136:7:1", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "abstract": true, "baseContracts": [ { "baseName": { "id": 273, "name": "Context", "nameLocations": [ "692:7:1" ], "nodeType": "IdentifierPath", "referencedDeclaration": 523, "src": "692:7:1" }, "id": 274, "nodeType": "InheritanceSpecifier", "src": "692:7:1" } ], "canonicalName": "Ownable", "contractDependencies": [], "contractKind": "contract", "documentation": { "id": 272, "nodeType": "StructuredDocumentation", "src": "175:487:1", "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 The initial owner is set to the address provided by the deployer. This can\n 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": 415, "linearizedBaseContracts": [ 415, 523 ], "name": "Ownable", "nameLocation": "681:7:1", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 276, "mutability": "mutable", "name": "_owner", "nameLocation": "722:6:1", "nodeType": "VariableDeclaration", "scope": 415, "src": "706:22:1", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 275, "name": "address", "nodeType": "ElementaryTypeName", "src": "706:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "private" }, { "documentation": { "id": 277, "nodeType": "StructuredDocumentation", "src": "735:85:1", "text": " @dev The caller account is not authorized to perform an operation." }, "errorSelector": "118cdaa7", "id": 281, "name": "OwnableUnauthorizedAccount", "nameLocation": "831:26:1", "nodeType": "ErrorDefinition", "parameters": { "id": 280, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 279, "mutability": "mutable", "name": "account", "nameLocation": "866:7:1", "nodeType": "VariableDeclaration", "scope": 281, "src": "858:15:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 278, "name": "address", "nodeType": "ElementaryTypeName", "src": "858:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "857:17:1" }, "src": "825:50:1" }, { "documentation": { "id": 282, "nodeType": "StructuredDocumentation", "src": "881:82:1", "text": " @dev The owner is not a valid owner account. (eg. `address(0)`)" }, "errorSelector": "1e4fbdf7", "id": 286, "name": "OwnableInvalidOwner", "nameLocation": "974:19:1", "nodeType": "ErrorDefinition", "parameters": { "id": 285, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 284, "mutability": "mutable", "name": "owner", "nameLocation": "1002:5:1", "nodeType": "VariableDeclaration", "scope": 286, "src": "994:13:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 283, "name": "address", "nodeType": "ElementaryTypeName", "src": "994:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "993:15:1" }, "src": "968:41:1" }, { "anonymous": false, "eventSelector": "8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "id": 292, "name": "OwnershipTransferred", "nameLocation": "1021:20:1", "nodeType": "EventDefinition", "parameters": { "id": 291, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 288, "indexed": true, "mutability": "mutable", "name": "previousOwner", "nameLocation": "1058:13:1", "nodeType": "VariableDeclaration", "scope": 292, "src": "1042:29:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 287, "name": "address", "nodeType": "ElementaryTypeName", "src": "1042:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 290, "indexed": true, "mutability": "mutable", "name": "newOwner", "nameLocation": "1089:8:1", "nodeType": "VariableDeclaration", "scope": 292, "src": "1073:24:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 289, "name": "address", "nodeType": "ElementaryTypeName", "src": "1073:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1041:57:1" }, "src": "1015:84:1" }, { "body": { "id": 317, "nodeType": "Block", "src": "1259:153:1", "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 303, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 298, "name": "initialOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 295, "src": "1273:12:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "arguments": [ { "hexValue": "30", "id": 301, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1297:1:1", "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": 300, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1289:7:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": { "id": 299, "name": "address", "nodeType": "ElementaryTypeName", "src": "1289:7:1", "typeDescriptions": {} } }, "id": 302, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1289:10:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1273:26:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 312, "nodeType": "IfStatement", "src": "1269:95:1", "trueBody": { "id": 311, "nodeType": "Block", "src": "1301:63:1", "statements": [ { "errorCall": { "arguments": [ { "arguments": [ { "hexValue": "30", "id": 307, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1350:1:1", "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": 306, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1342:7:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": { "id": 305, "name": "address", "nodeType": "ElementaryTypeName", "src": "1342:7:1", "typeDescriptions": {} } }, "id": 308, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1342:10:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 304, "name": "OwnableInvalidOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 286, "src": "1322:19:1", "typeDescriptions": { "typeIdentifier": "t_function_error_pure$_t_address_$returns$_t_error_$", "typeString": "function (address) pure returns (error)" } }, "id": 309, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1322:31:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_error", "typeString": "error" } }, "id": 310, "nodeType": "RevertStatement", "src": "1315:38:1" } ] } }, { "expression": { "arguments": [ { "id": 314, "name": "initialOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 295, "src": "1392:12:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 313, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 414, "src": "1373:18:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 315, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1373:32:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 316, "nodeType": "ExpressionStatement", "src": "1373:32:1" } ] }, "documentation": { "id": 293, "nodeType": "StructuredDocumentation", "src": "1105:115:1", "text": " @dev Initializes the contract setting the address provided by the deployer as the initial owner." }, "id": 318, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nameLocation": "-1:-1:-1", "nodeType": "FunctionDefinition", "parameters": { "id": 296, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 295, "mutability": "mutable", "name": "initialOwner", "nameLocation": "1245:12:1", "nodeType": "VariableDeclaration", "scope": 318, "src": "1237:20:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 294, "name": "address", "nodeType": "ElementaryTypeName", "src": "1237:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1236:22:1" }, "returnParameters": { "id": 297, "nodeType": "ParameterList", "parameters": [], "src": "1259:0:1" }, "scope": 415, "src": "1225:187:1", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 325, "nodeType": "Block", "src": "1521:41:1", "statements": [ { "expression": { "arguments": [], "expression": { "argumentTypes": [], "id": 321, "name": "_checkOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 352, "src": "1531:11:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$__$", "typeString": "function () view" } }, "id": 322, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1531:13:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 323, "nodeType": "ExpressionStatement", "src": "1531:13:1" }, { "id": 324, "nodeType": "PlaceholderStatement", "src": "1554:1:1" } ] }, "documentation": { "id": 319, "nodeType": "StructuredDocumentation", "src": "1418:77:1", "text": " @dev Throws if called by any account other than the owner." }, "id": 326, "name": "onlyOwner", "nameLocation": "1509:9:1", "nodeType": "ModifierDefinition", "parameters": { "id": 320, "nodeType": "ParameterList", "parameters": [], "src": "1518:2:1" }, "src": "1500:62:1", "virtual": false, "visibility": "internal" }, { "body": { "id": 334, "nodeType": "Block", "src": "1693:30:1", "statements": [ { "expression": { "id": 332, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 276, "src": "1710:6:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 331, "id": 333, "nodeType": "Return", "src": "1703:13:1" } ] }, "documentation": { "id": 327, "nodeType": "StructuredDocumentation", "src": "1568:65:1", "text": " @dev Returns the address of the current owner." }, "functionSelector": "8da5cb5b", "id": 335, "implemented": true, "kind": "function", "modifiers": [], "name": "owner", "nameLocation": "1647:5:1", "nodeType": "FunctionDefinition", "parameters": { "id": 328, "nodeType": "ParameterList", "parameters": [], "src": "1652:2:1" }, "returnParameters": { "id": 331, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 330, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 335, "src": "1684:7:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 329, "name": "address", "nodeType": "ElementaryTypeName", "src": "1684:7:1", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1683:9:1" }, "scope": 415, "src": "1638:85:1", "stateMutability": "view", "virtual": true, "visibility": "public" }, { "body": { "id": 351, "nodeType": "Block", "src": "1841:117:1", "statements": [ { "condition": { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 343, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 339, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 335, "src": "1855:5:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 340, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1855:7:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 341, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 505, "src": "1866:10:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 342, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1866:12:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1855:23:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 350, "nodeType": "IfStatement", "src": "1851:101:1", "trueBody": { "id": 349, "nodeType": "Block", "src": "1880:72:1", "statements": [ { "errorCall": { "arguments": [ { "arguments": [], "expression": { "argumentTypes": [], "id": 345, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 505, "src": "1928:10:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 346, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1928:12:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 344, "name": "OwnableUnauthorizedAccount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 281, "src": "1901:26:1", "typeDescriptions": { "typeIdentifier": "t_function_error_pure$_t_address_$returns$_t_error_$", "typeString": "function (address) pure returns (error)" } }, "id": 347, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "1901:40:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_error", "typeString": "error" } }, "id": 348, "nodeType": "RevertStatement", "src": "1894:47:1" } ] } } ] }, "documentation": { "id": 336, "nodeType": "StructuredDocumentation", "src": "1729:62:1", "text": " @dev Throws if the sender is not the owner." }, "id": 352, "implemented": true, "kind": "function", "modifiers": [], "name": "_checkOwner", "nameLocation": "1805:11:1", "nodeType": "FunctionDefinition", "parameters": { "id": 337, "nodeType": "ParameterList", "parameters": [], "src": "1816:2:1" }, "returnParameters": { "id": 338, "nodeType": "ParameterList", "parameters": [], "src": "1841:0:1" }, "scope": 415, "src": "1796:162:1", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 365, "nodeType": "Block", "src": "2347:47:1", "statements": [ { "expression": { "arguments": [ { "arguments": [ { "hexValue": "30", "id": 361, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "2384:1:1", "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": 360, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "2376:7:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": { "id": 359, "name": "address", "nodeType": "ElementaryTypeName", "src": "2376:7:1", "typeDescriptions": {} } }, "id": 362, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "nameLocations": [], "names": [], "nodeType": "FunctionCall", "src": "2376:10:1", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 358, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 414, "src": "2357:18:1", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 363, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "nameLocations": [],