UNPKG

@daostack/upgrades

Version:
994 lines 56.5 kB
{ "fileName": "AdminUpgradeabilityProxy.sol", "contractName": "AdminUpgradeabilityProxy", "source": "pragma solidity ^0.6.0;\n// SPDX-License-Identifier: MIT\n\nimport './BaseAdminUpgradeabilityProxy.sol';\n\n/**\n * @title AdminUpgradeabilityProxy\n * @dev Extends from BaseAdminUpgradeabilityProxy with a constructor for\n * initializing the implementation, admin, and init data.\n */\ncontract AdminUpgradeabilityProxy is BaseAdminUpgradeabilityProxy, UpgradeabilityProxy {\n /**\n * Contract constructor.\n * @param _logic address of the initial implementation.\n * @param _admin Address of the proxy administrator.\n * @param _data Data to send as msg.data to the implementation to initialize the proxied contract.\n * It should include the signature and the parameters of the function to be called, as described in\n * https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.\n * This parameter is optional, if no data is given the initialization call to proxied contract will be skipped.\n */\n constructor(address _logic, address _admin, bytes memory _data) UpgradeabilityProxy(_logic, _data) public payable {\n assert(ADMIN_SLOT == bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1));\n _setAdmin(_admin);\n }\n\n /**\n * @dev Only fall back when the sender is not the admin.\n */\n function _willFallback() internal override(Proxy) {\n require(msg.sender != _admin(), \"Cannot call fallback function from the proxy admin\");\n super._willFallback();\n }\n}\n", "sourcePath": "contracts/upgradeability/AdminUpgradeabilityProxy.sol", "sourceMap": "277:1137:34:-:0;;;940:224;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1024:6;1032:5;827:309:42;987:1;942:41;;;;;;;;;;;;;;;;;;;;;934:50;;:54;926:63;;903:86;;;810:66:36;903:19:42;;:86;;;;896:94;;;;;;996:26;1015:6;996:18;;;:26;;:::i;:::-;1046:1;1031:5;:12;:16;1028:104;;;1058:12;1075:6;:19;;1095:5;1075:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1057:44;;;1117:7;1109:16;;;;;;;;1028:104;;827:309;;;1133:1:34::1;1097:32;;;;;;;;;;;;;;;;;;;;;1089:41;;:45;1081:54;;1067:68;;;994:66:35;1067:10:34;;:68;;;;1060:76;;;;;;1142:17;1152:6;1142:9;;;:17;;:::i;:::-;940:224;::::0;;;277:1137;;1574:305:36;1652:57;1691:17;1652:38;;;;;:57;;:::i;:::-;1644:129;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1780:12;810:66;1795:19;;1780:34;;1851:17;1845:4;1838:31;1830:45;;;:::o;3380:133:35:-;3432:12;994:66;3447:10;;3432:25;;3494:8;3488:4;3481:22;3473:36;;;:::o;956:616:43:-;1016:4;1032:12;1531:7;1519:20;1511:28;;1564:1;1557:4;:8;1550:15;;;;;956:616;;;;;:::o;277:1137:34:-;;;;;;;", "deployedSourceMap": "277:1137:34:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;514:50:39;548:11;:9;:11;;:::i;:::-;514:50;277:1137:34;;459:51:39;494:11;:9;:11;;:::i;:::-;459:51;277:1137:34;2238:103:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2858:221;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1558:96;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1830:224;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1416:78;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2075:90:39;2111:15;:13;:15;;:::i;:::-;2132:28;2142:17;:15;:17;;:::i;:::-;2132:9;:28;;:::i;:::-;2075:90;:::o;2238:103:35:-;1293:8;:6;:8;;:::i;:::-;1279:22;;:10;:22;;;1275:76;;;2307:29:::1;2318:17;2307:10;:29;;:::i;:::-;1311:1;1275:76:::0;;;1333:11;:9;:11;;:::i;:::-;1275:76;2238:103;;:::o;2858:221::-;1293:8;:6;:8;;:::i;:::-;1279:22;;:10;:22;;;1275:76;;;2963:29:::1;2974:17;2963:10;:29;;:::i;:::-;2999:12;3016:17;:30;;3047:4;;3016:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2998:54;;;3066:7;3058:16;;;;;;;;1311:1;;1275:76:::0;;;1333:11;:9;:11;;:::i;:::-;1275:76;2858:221;;;;:::o;1558:96::-;1610:7;1293:8;:6;:8;;:::i;:::-;1279:22;;:10;:22;;;1275:76;;;1632:17:::1;:15;:17;;:::i;:::-;1625:24;;;;1311:1;1275:76:::0;;;1333:11;:9;:11;;:::i;:::-;1275:76;1558:96;;:::o;1830:224::-;1293:8;:6;:8;;:::i;:::-;1279:22;;:10;:22;;;1275:76;;;1920:1:::1;1900:22;;:8;:22;;;;1892:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1992:32;2005:8;:6;:8;;:::i;:::-;2015;1992:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2030:19;2040:8;2030:9;:19;;:::i;:::-;1311:1;1275:76:::0;;;1333:11;:9;:11;;:::i;:::-;1275:76;1830:224;;:::o;1416:78::-;1459:7;1293:8;:6;:8;;:::i;:::-;1279:22;;:10;:22;;;1275:76;;;1481:8:::1;:6;:8;;:::i;:::-;1474:15;;;;1311:1;1275:76:::0;;;1333:11;:9;:11;;:::i;:::-;1275:76;1416:78;;:::o;956:616:43:-;1016:4;1032:12;1531:7;1519:20;1511:28;;1564:1;1557:4;:8;1550:15;;;;;956:616;;;;;:::o;1239:173:34:-;1317:8;:6;:8;;:::i;:::-;1303:22;;:10;:22;;;;1295:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1386:21;:19;:21;;:::i;:::-;1239:173;:::o;995:165:36:-;1054:12;1074;810:66;1089:19;;1074:34;;1145:4;1139:11;1131:19;;1123:33;;;:::o;981:743:39:-;1283:14;1280:1;1277;1264:34;1479:1;1476;1460:14;1457:1;1441:14;1434:5;1421:60;1543:16;1540:1;1537;1522:38;1575:6;1635:1;1630:38;;;;1695:16;1692:1;1685:27;1568:146;;1630:38;1649:16;1646:1;1639:27;1568:146;;1048:672;;;:::o;3128:136:35:-;3169:11;3188:12;994:66;3203:10;;3188:25;;3249:4;3243:11;3236:18;;3228:32;;;:::o;1295:142:36:-;1357:37;1376:17;1357:18;:37;;:::i;:::-;1414:17;1405:27;;;;;;;;;;;;1295:142;;:::o;3380:133:35:-;3432:12;994:66;3447:10;;3432:25;;3494:8;3488:4;3481:22;3473:36;;;:::o;1933:47:39:-;;:::o;1574:305:36:-;1652:57;1691:17;1652:38;:57;;:::i;:::-;1644:129;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1780:12;810:66;1795:19;;1780:34;;1851:17;1845:4;1838:31;1830:45;;;:::o", "abi": [ { "inputs": [ { "internalType": "address", "name": "_logic", "type": "address" }, { "internalType": "address", "name": "_admin", "type": "address" }, { "internalType": "bytes", "name": "_data", "type": "bytes" } ], "stateMutability": "payable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "previousAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newAdmin", "type": "address" } ], "name": "AdminChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "implementation", "type": "address" } ], "name": "Upgraded", "type": "event" }, { "stateMutability": "payable", "type": "fallback" }, { "inputs": [], "name": "admin", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newAdmin", "type": "address" } ], "name": "changeAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "implementation", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newImplementation", "type": "address" } ], "name": "upgradeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ], "ast": { "absolutePath": "contracts/upgradeability/AdminUpgradeabilityProxy.sol", "exportedSymbols": { "AdminUpgradeabilityProxy": [ 5849 ] }, "id": 5850, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 5786, "literals": [ "solidity", "^", "0.6", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:34" }, { "absolutePath": "contracts/upgradeability/BaseAdminUpgradeabilityProxy.sol", "file": "./BaseAdminUpgradeabilityProxy.sol", "id": 5787, "nodeType": "ImportDirective", "scope": 5850, "sourceUnit": 6000, "src": "57:44:34", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 5789, "name": "BaseAdminUpgradeabilityProxy", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5999, "src": "314:28:34", "typeDescriptions": { "typeIdentifier": "t_contract$_BaseAdminUpgradeabilityProxy_$5999", "typeString": "contract BaseAdminUpgradeabilityProxy" } }, "id": 5790, "nodeType": "InheritanceSpecifier", "src": "314:28:34" }, { "arguments": null, "baseName": { "contractScope": null, "id": 5791, "name": "UpgradeabilityProxy", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6753, "src": "344:19:34", "typeDescriptions": { "typeIdentifier": "t_contract$_UpgradeabilityProxy_$6753", "typeString": "contract UpgradeabilityProxy" } }, "id": 5792, "nodeType": "InheritanceSpecifier", "src": "344:19:34" } ], "contractDependencies": [ 5999, 6064, 6257, 6753 ], "contractKind": "contract", "documentation": { "id": 5788, "nodeType": "StructuredDocumentation", "src": "103:173:34", "text": " @title AdminUpgradeabilityProxy\n @dev Extends from BaseAdminUpgradeabilityProxy with a constructor for\n initializing the implementation, admin, and init data." }, "fullyImplemented": true, "id": 5849, "linearizedBaseContracts": [ 5849, 6753, 5999, 6064, 6257 ], "name": "AdminUpgradeabilityProxy", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 5826, "nodeType": "Block", "src": "1054:110:34", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "id": 5819, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 5807, "name": "ADMIN_SLOT", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5866, "src": "1067:10:34", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 5817, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "656970313936372e70726f78792e61646d696e", "id": 5813, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1107:21:34", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104", "typeString": "literal_string \"eip1967.proxy.admin\"" }, "value": "eip1967.proxy.admin" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104", "typeString": "literal_string \"eip1967.proxy.admin\"" } ], "id": 5812, "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -8, "src": "1097:9:34", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", "typeString": "function (bytes memory) pure returns (bytes32)" } }, "id": 5814, "isConstant": false, "isLValue": false, "isPure": true, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1097:32:34", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } ], "id": 5811, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1089:7:34", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint256_$", "typeString": "type(uint256)" }, "typeName": { "id": 5810, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1089:7:34", "typeDescriptions": { "typeIdentifier": null, "typeString": null } } }, "id": 5815, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1089:41:34", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "-", "rightExpression": { "argumentTypes": null, "hexValue": "31", "id": 5816, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1133:1:34", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" }, "src": "1089:45:34", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 5809, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1081:7:34", "typeDescriptions": { "typeIdentifier": "t_type$_t_bytes32_$", "typeString": "type(bytes32)" }, "typeName": { "id": 5808, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1081:7:34", "typeDescriptions": { "typeIdentifier": null, "typeString": null } } }, "id": 5818, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1081:54:34", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "src": "1067:68:34", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 5806, "name": "assert", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -3, "src": "1060:6:34", "typeDescriptions": { "typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 5820, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1060:76:34", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5821, "nodeType": "ExpressionStatement", "src": "1060:76:34" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 5823, "name": "_admin", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5797, "src": "1152:6:34", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 5822, "name": "_setAdmin", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5998, "src": "1142:9:34", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 5824, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1142:17:34", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5825, "nodeType": "ExpressionStatement", "src": "1142:17:34" } ] }, "documentation": { "id": 5793, "nodeType": "StructuredDocumentation", "src": "368:569:34", "text": " Contract constructor.\n @param _logic address of the initial implementation.\n @param _admin Address of the proxy administrator.\n @param _data Data to send as msg.data to the implementation to initialize the proxied contract.\n It should include the signature and the parameters of the function to be called, as described in\n https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.\n This parameter is optional, if no data is given the initialization call to proxied contract will be skipped." }, "id": 5827, "implemented": true, "kind": "constructor", "modifiers": [ { "arguments": [ { "argumentTypes": null, "id": 5802, "name": "_logic", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5795, "src": "1024:6:34", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 5803, "name": "_data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5799, "src": "1032:5:34", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "id": 5804, "modifierName": { "argumentTypes": null, "id": 5801, "name": "UpgradeabilityProxy", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6753, "src": "1004:19:34", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_UpgradeabilityProxy_$6753_$", "typeString": "type(contract UpgradeabilityProxy)" } }, "nodeType": "ModifierInvocation", "src": "1004:34:34" } ], "name": "", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 5800, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5795, "mutability": "mutable", "name": "_logic", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5827, "src": "952:14:34", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5794, "name": "address", "nodeType": "ElementaryTypeName", "src": "952:7:34", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5797, "mutability": "mutable", "name": "_admin", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5827, "src": "968:14:34", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5796, "name": "address", "nodeType": "ElementaryTypeName", "src": "968:7:34", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5799, "mutability": "mutable", "name": "_data", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5827, "src": "984:18:34", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 5798, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "984:5:34", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "951:52:34" }, "returnParameters": { "id": 5805, "nodeType": "ParameterList", "parameters": [], "src": "1054:0:34" }, "scope": 5849, "src": "940:224:34", "stateMutability": "payable", "virtual": false, "visibility": "public" }, { "baseFunctions": [ 6243 ], "body": { "id": 5847, "nodeType": "Block", "src": "1289:123:34", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 5838, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 5834, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "1303:3:34", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 5835, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1303:10:34", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 5836, "name": "_admin", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5986, "src": "1317:6:34", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 5837, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1317:8:34", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1303:22:34", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e", "id": 5839, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1327:52:34", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_08b466bde770d6d309a22d90ec051a62ad397be6218a53e741989877ec297fc9", "typeString": "literal_string \"Cannot call fallback function from the proxy admin\"" }, "value": "Cannot call fallback function from the proxy admin" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_08b466bde770d6d309a22d90ec051a62ad397be6218a53e741989877ec297fc9", "typeString": "literal_string \"Cannot call fallback function from the proxy admin\"" } ], "id": 5833, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ -18, -18 ], "referencedDeclaration": -18, "src": "1295:7:34", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 5840, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1295:85:34", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5841, "nodeType": "ExpressionStatement", "src": "1295:85:34" }, { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "expression": { "argumentTypes": null, "id": 5842, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -25, "src": "1386:5:34", "typeDescriptions": { "typeIdentifier": "t_super$_AdminUpgradeabilityProxy_$5849", "typeString": "contract super AdminUpgradeabilityProxy" } }, "id": 5844, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "_willFallback", "nodeType": "MemberAccess", "referencedDeclaration": 6243, "src": "1386:19:34", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 5845, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1386:21:34", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 5846, "nodeType": "ExpressionStatement", "src": "1386:21:34" } ] }, "documentation": { "id": 5828, "nodeType": "StructuredDocumentation", "src": "1168:68:34", "text": " @dev Only fall back when the sender is not the admin." }, "id": 5848, "implemented": true, "kind": "function", "modifiers": [], "name": "_willFallback", "nodeType": "FunctionDefinition", "overrides": { "id": 5831, "nodeType": "OverrideSpecifier", "overrides": [ { "contractScope": null, "id": 5830, "name": "Proxy", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6257, "src": "1282:5:34", "typeDescriptions": { "typeIdentifier": "t_contract$_Proxy_$6257", "typeString": "contract Proxy" } } ], "src": "1273:15:34" }, "parameters": { "id": 5829, "nodeType": "ParameterList", "parameters": [], "src": "1261:2:34" }, "returnParameters": { "id": 5832, "nodeType": "ParameterList", "parameters": [], "src": "1289:0:34" }, "scope": 5849, "src": "1239:173:34", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" } ], "scope": 5850, "src": "277:1137:34" } ], "src": "0:1415:34" }, "bytecode": "0x6080604052604051610dcd380380610dcd833981810160405260608110156100275760006000fd5b8101908080519060200190929190805190602001909291908051604051939291908464010000000082111561005c5760006000fd5b838201915060208201858111156100735760006000fd5b82518660018202830111640100000000821117156100915760006000fd5b8083526020830192505050908051906020019080838360005b838110156100c65780820151818401525b6020810190506100aa565b50505050905090810190601f1680156100f35780820380516001836020036101000a031916815260200191505b506040526020015050505b82815b600160405180807f656970313936372e70726f78792e696d706c656d656e746174696f6e00000000815260200150601c019050604051809103902060001c0360001b600019167f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6000191614151561017857fe5b610187826102eb60201b60201c565b6000815111156102595760008273ffffffffffffffffffffffffffffffffffffffff16826040518082805190602001908083835b6020831015156101e157805182525b6020820191506020810190506020830392506101bb565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610241576040519150601f19603f3d011682016040523d82523d6000602084013e610246565b606091505b505090508015156102575760006000fd5b505b5b5050600160405180807f656970313936372e70726f78792e61646d696e000000000000000000000000008152602001506013019050604051809103902060001c0360001b600019167fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b600019161415156102d357fe5b6102e28261038560201b60201c565b5b5050506103cf565b6102fe816103b560201b6106641760201c565b1515610355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b815260200180610d92603b913960400191505060405180910390fd5b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050818155505b50565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610360001b9050818155505b50565b60006000823b9050600081119150506103ca56505b919050565b6109b4806103de6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100775780634f1ef286146100ca5780635c60da1b146101695780638f283970146101c1578063f851a4401461021457610065565b36610065575b61006261026c63ffffffff16565b5b005b5b61007461026c63ffffffff16565b5b005b3480156100845760006000fd5b506100c86004803603602081101561009c5760006000fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610299565b005b610167600480360360408110156100e15760006000fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561011f5760006000fd5b8201836020820111156101325760006000fd5b803590602001918460018302840111640100000000831117156101555760006000fd5b90919293909091929390505050610302565b005b3480156101765760006000fd5b5061017f6103ef565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101ce5760006000fd5b50610212600480360360208110156101e65760006000fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061045f565b005b3480156102215760006000fd5b5061022a6105f4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61027a61067e63ffffffff16565b61029661028b61072363ffffffff16565b61075663ffffffff16565b5b565b6102a761078963ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ef576102e9816107bc63ffffffff16565b5b6102fe565b6102fd61026c63ffffffff16565b5b5b50565b61031061078963ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156103da57610352836107bc63ffffffff16565b60008373ffffffffffffffffffffffffffffffffffffffff168383604051808383808284378083019250505092505050600060405180830381855af49150503d80600081146103bd576040519150601f19603f3d011682016040523d82523d6000602084013e6103c2565b606091505b505090508015156103d35760006000fd5b505b6103e9565b6103e861026c63ffffffff16565b5b5b505050565b60006103ff61078963ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561044c5761044061072363ffffffff16565b9050610447565b61045b565b61045a61026c63ffffffff16565b5b5b90565b61046d61078963ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156105e157600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610528576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061090e6036913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61055761078963ffffffff16565b82604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16105db8161081263ffffffff16565b5b6105f0565b6105ef61026c63ffffffff16565b5b5b50565b600061060461078963ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156106515761064561078963ffffffff16565b905061064c565b610660565b61065f61026c63ffffffff16565b5b5b90565b60006000823b90506000811191505061067956505b919050565b61068c61078963ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151515610712576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806108dc6032913960400191505060405180910390fd5b61072061084263ffffffff16565b5b565b600060007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc