ERC1967Proxy
Signup to DeployContract Information
This contract is a proxy and the implementation details are not yet known.
More Info
{{
"language": "Solidity",
"sources": {
"contract/Proxy.sol": {
"content": "// SPDX-License-Identifier: MIT\r\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\r\npragma solidity 0.8.17;\r\n\r\n// OpenZeppelin Contracts v4.4.1 (proxy/Proxy.sol)\r\n\r\n/**\r\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\r\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\r\n * be specified by overriding the virtual {_implementation} function.\r\n *\r\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\r\n * different contract through the {_delegate} function.\r\n *\r\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\r\n */\r\nabstract contract Proxy {\r\n /**\r\n * @dev Delegates the current call to `implementation`.\r\n *\r\n * This function does not return to its internall call site, it will return directly to the external caller.\r\n */\r\n function _delegate(address implementation) internal virtual {\r\n assembly {\r\n // Copy msg.data. We take full control of memory in this inline assembly\r\n // block because it will not return to Solidity code. We overwrite the\r\n // Solidity scratch pad at memory position 0.\r\n calldatacopy(0, 0, calldatasize())\r\n\r\n // Call the implementation.\r\n // out and outsize are 0 because we don't know the size yet.\r\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\r\n\r\n // Copy the returned data.\r\n returndatacopy(0, 0, returndatasize())\r\n\r\n switch result\r\n // delegatecall returns 0 on error.\r\n case 0 {\r\n revert(0, returndatasize())\r\n }\r\n default {\r\n return(0, returndatasize())\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\r\n * and {_fallback} should delegate.\r\n */\r\n function _implementation() internal view virtual returns (address);\r\n\r\n /**\r\n * @dev Delegates the current call to the address returned by `_implementation()`.\r\n *\r\n * This function does not return to its internall call site, it will return directly to the external caller.\r\n */\r\n function _fallback() internal virtual {\r\n _beforeFallback();\r\n _delegate(_implementation());\r\n }\r\n\r\n /**\r\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\r\n * function in the contract matches the call data.\r\n */\r\n fallback() external payable virtual {\r\n _fallback();\r\n }\r\n\r\n /**\r\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\r\n * is empty.\r\n */\r\n receive() external payable virtual {\r\n _fallback();\r\n }\r\n\r\n /**\r\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\r\n * call, or as part of the Solidity `fallback` or `receive` functions.\r\n *\r\n * If overriden should call `super._beforeFallback()`.\r\n */\r\n function _beforeFallback() internal virtual {}\r\n}\r\n\r\n\r\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Upgrade.sol)\r\n\r\n/**\r\n * @dev This abstract contract provides getters and event emitting update functions for\r\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\r\n *\r\n * _Available since v4.1._\r\n *\r\n * @custom:oz-upgrades-unsafe-allow delegatecall\r\n */\r\nabstract contract ERC1967Upgrade {\r\n // This is the keccak-256 hash of \"eip1967.proxy.rollback\" subtracted by 1\r\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\r\n\r\n /**\r\n * @dev Storage slot with the address of the current implementation.\r\n * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is\r\n * validated in the constructor.\r\n */\r\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\r\n\r\n /**\r\n * @dev Emitted when the implementation is upgraded.\r\n */\r\n event Upgraded(address indexed implementation);\r\n\r\n /**\r\n * @dev Returns the current implementation address.\r\n */\r\n function _getImplementation() internal view returns (address) {\r\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\r\n }\r\n\r\n /**\r\n * @dev Stores a new address in the EIP1967 implementation slot.\r\n */\r\n function _setImplementation(address newImplementation) private {\r\n require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\r\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\r\n }\r\n\r\n /**\r\n * @dev Perform implementation upgrade\r\n *\r\n * Emits an {Upgraded} event.\r\n */\r\n function _upgradeTo(address newImplementation) internal {\r\n _setImplementation(newImplementation);\r\n emit Upgraded(newImplementation);\r\n }\r\n\r\n /**\r\n * @dev Perform implementation upgrade with additional setup call.\r\n *\r\n * Emits an {Upgraded} event.\r\n */\r\n function _upgradeToAndCall(\r\n address newImplementation,\r\n bytes memory data,\r\n bool forceCall\r\n ) internal {\r\n _upgradeTo(newImplementation);\r\n if (data.length > 0 || forceCall) {\r\n Address.functionDelegateCall(newImplementation, data);\r\n }\r\n }\r\n\r\n /**\r\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\r\n *\r\n * Emits an {Upgraded} event.\r\n */\r\n function _upgradeToAndCallSecure(\r\n address newImplementation,\r\n bytes memory data,\r\n bool forceCall\r\n ) internal {\r\n address oldImplementation = _getImplementation();\r\n\r\n // Initial upgrade and setup call\r\n _setImplementation(newImplementation);\r\n if (data.length > 0 || forceCall) {\r\n Address.functionDelegateCall(newImplementation, data);\r\n }\r\n\r\n // Perform rollback test if not already in progress\r\n StorageSlot.BooleanSlot storage rollbackTesting = StorageSlot.getBooleanSlot(_ROLLBACK_SLOT);\r\n if (!rollbackTesting.value) {\r\n // Trigger rollback using upgradeTo from the new implementation\r\n rollbackTesting.value = true;\r\n Address.functionDelegateCall(\r\n newImplementation,\r\n abi.encodeWithSignature(\"upgradeTo(address)\", oldImplementation)\r\n );\r\n rollbackTesting.value = false;\r\n // Check rollback was effective\r\n require(oldImplementation == _getImplementation(), \"ERC1967Upgrade: upgrade breaks further upgrades\");\r\n // Finally reset to the new implementation and log the upgrade\r\n _upgradeTo(newImplementation);\r\n }\r\n }\r\n\r\n /**\r\n * @dev Storage slot with the admin of the contract.\r\n * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1, and is\r\n * validated in the constructor.\r\n */\r\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\r\n\r\n /**\r\n * @dev Emitted when the admin account has changed.\r\n */\r\n event AdminChanged(address previousAdmin, address newAdmin);\r\n\r\n /**\r\n * @dev Returns the current admin.\r\n */\r\n function _getAdmin() internal view returns (address) {\r\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\r\n }\r\n\r\n /**\r\n * @dev Stores a new address in the EIP1967 admin slot.\r\n */\r\n function _setAdmin(address newAdmin) private {\r\n require(newAdmin != address(0), \"ERC1967: new admin is the zero address\");\r\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\r\n }\r\n\r\n /**\r\n * @dev Changes the admin of the proxy.\r\n *\r\n * Emits an {AdminChanged} event.\r\n */\r\n function _changeAdmin(address newAdmin) internal {\r\n emit AdminChanged(_getAdmin(), newAdmin);\r\n _setAdmin(newAdmin);\r\n }\r\n\r\n /**\r\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\r\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\r\n */\r\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\r\n\r\n /**\r\n * @dev Emitted when the beacon is upgraded.\r\n */\r\n event BeaconUpgraded(address indexed beacon);\r\n\r\n /**\r\n * @dev Returns the current beacon.\r\n */\r\n function _getBeacon() internal view returns (address) {\r\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\r\n }\r\n\r\n /**\r\n * @dev Stores a new beacon in the EIP1967 beacon slot.\r\n */\r\n function _setBeacon(address newBeacon) private {\r\n require(Address.isContract(newBeacon), \"ERC1967: new beacon is not a contract\");\r\n require(\r\n Address.isContract(IBeacon(newBeacon).implementation()),\r\n \"ERC1967: beacon implementation is not a contract\"\r\n );\r\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\r\n }\r\n\r\n /**\r\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\r\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\r\n *\r\n * Emits a {BeaconUpgraded} event.\r\n */\r\n function _upgradeBeaconToAndCall(\r\n address newBeacon,\r\n bytes memory data,\r\n bool forceCall\r\n ) internal {\r\n _setBeacon(newBeacon);\r\n emit BeaconUpgraded(newBeacon);\r\n if (data.length > 0 || forceCall) {\r\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\r\n * implementation address that can be changed. This address is stored in storage in the location specified by\r\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\r\n * implementation behind the proxy.\r\n */\r\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\r\n /**\r\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\r\n *\r\n * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded\r\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\r\n */\r\n constructor(address _logic, bytes memory _data) payable {\r\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\"eip1967.proxy.implementation\")) - 1));\r\n _upgradeToAndCall(_logic, _data, false);\r\n }\r\n\r\n /**\r\n * @dev Returns the current implementation address.\r\n */\r\n function _implementation() internal view virtual override returns (address impl) {\r\n return ERC1967Upgrade._getImplementation();\r\n }\r\n}\r\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\r\n\r\n/**\r\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\r\n */\r\ninterface IBeacon {\r\n /**\r\n * @dev Must return an address that can be used as a delegate call target.\r\n *\r\n * {BeaconProxy} will check that this address is a contract.\r\n */\r\n function implementation() external view returns (address);\r\n}\r\n\r\n// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev Collection of functions related to the address type\r\n */\r\nlibrary Address {\r\n /**\r\n * @dev Returns true if `account` is a contract.\r\n *\r\n * [IMPORTANT]\r\n * ====\r\n * It is unsafe to assume that an address for which this function returns\r\n * false is an externally-owned account (EOA) and not a contract.\r\n *\r\n * Among others, `isContract` will return false for the following\r\n * types of addresses:\r\n *\r\n * - an externally-owned account\r\n * - a contract in construction\r\n * - an address where a contract will be created\r\n * - an address where a contract lived, but was destroyed\r\n * ====\r\n */\r\n function isContract(address account) internal view returns (bool) {\r\n // This method relies on extcodesize, which returns 0 for contracts in\r\n // construction, since the code is only stored at the end of the\r\n // constructor execution.\r\n\r\n uint256 size;\r\n assembly {\r\n size := extcodesize(account)\r\n }\r\n return size > 0;\r\n }\r\n\r\n /**\r\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\r\n * `recipient`, forwarding all available gas and reverting on errors.\r\n *\r\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\r\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\r\n * imposed by `transfer`, making them unable to receive funds via\r\n * `transfer`. {sendValue} removes this limitation.\r\n *\r\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\r\n *\r\n * IMPORTANT: because control is transferred to `recipient`, care must be\r\n * taken to not create reentrancy vulnerabilities. Consider using\r\n * {ReentrancyGuard} or the\r\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\r\n */\r\n function sendValue(address payable recipient, uint256 amount) internal {\r\n require(address(this).balance >= amount, \"Address: insufficient balance\");\r\n\r\n (bool success, ) = recipient.call{value: amount}(\"\");\r\n require(success, \"Address: unable to send value, recipient may have reverted\");\r\n }\r\n\r\n /**\r\n * @dev Performs a Solidity function call using a low level `call`. A\r\n * plain `call` is an unsafe replacement for a function call: use this\r\n * function instead.\r\n *\r\n * If `target` reverts with a revert reason, it is bubbled up by this\r\n * function (like regular Solidity function calls).\r\n *\r\n * Returns the raw returned data. To convert to the expected return value,\r\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\r\n *\r\n * Requirements:\r\n *\r\n * - `target` must be a contract.\r\n * - calling `target` with `data` must not revert.\r\n *\r\n * _Available since v3.1._\r\n */\r\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\r\n return functionCall(target, data, \"Address: low-level call failed\");\r\n }\r\n\r\n /**\r\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\r\n * `errorMessage` as a fallback revert reason when `target` reverts.\r\n *\r\n * _Available since v3.1._\r\n */\r\n function functionCall(\r\n address target,\r\n bytes memory data,\r\n string memory errorMessage\r\n ) internal returns (bytes memory) {\r\n return functionCallWithValue(target, data, 0, errorMessage);\r\n }\r\n\r\n /**\r\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n * but also transferring `value` wei to `target`.\r\n *\r\n * Requirements:\r\n *\r\n * - the calling contract must have an ETH balance of at least `value`.\r\n * - the called Solidity function must be `payable`.\r\n *\r\n * _Available since v3.1._\r\n */\r\n function functionCallWithValue(\r\n address target,\r\n bytes memory data,\r\n uint256 value\r\n ) internal returns (bytes memory) {\r\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\r\n }\r\n\r\n /**\r\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\r\n * with `errorMessage` as a fallback revert reason when `target` reverts.\r\n *\r\n * _Available since v3.1._\r\n */\r\n function functionCallWithValue(\r\n address target,\r\n bytes memory data,\r\n uint256 value,\r\n string memory errorMessage\r\n ) internal returns (bytes memory) {\r\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\r\n require(isContract(target), \"Address: call to non-contract\");\r\n\r\n (bool success, bytes memory returndata) = target.call{value: value}(data);\r\n return verifyCallResult(success, returndata, errorMessage);\r\n }\r\n\r\n /**\r\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n * but performing a static call.\r\n *\r\n * _Available since v3.3._\r\n */\r\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\r\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\r\n }\r\n\r\n /**\r\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\r\n * but performing a static call.\r\n *\r\n * _Available since v3.3._\r\n */\r\n function functionStaticCall(\r\n address target,\r\n bytes memory data,\r\n string memory errorMessage\r\n ) internal view returns (bytes memory) {\r\n require(isContract(target), \"Address: static call to non-contract\");\r\n\r\n (bool success, bytes memory returndata) = target.staticcall(data);\r\n return verifyCallResult(success, returndata, errorMessage);\r\n }\r\n\r\n /**\r\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n * but performing a delegate call.\r\n *\r\n * _Available since v3.4._\r\n */\r\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\r\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\r\n }\r\n\r\n /**\r\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\r\n * but performing a delegate call.\r\n *\r\n * _Available since v3.4._\r\n */\r\n function functionDelegateCall(\r\n address target,\r\n bytes memory data,\r\n string memory errorMessage\r\n ) internal returns (bytes memory) {\r\n require(isContract(target), \"Address: delegate call to non-contract\");\r\n\r\n (bool success, bytes memory returndata) = target.delegatecall(data);\r\n return verifyCallResult(success, returndata, errorMessage);\r\n }\r\n\r\n /**\r\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\r\n * revert reason using the provided one.\r\n *\r\n * _Available since v4.3._\r\n */\r\n function verifyCallResult(\r\n bool success,\r\n bytes memory returndata,\r\n string memory errorMessage\r\n ) internal pure returns (bytes memory) {\r\n if (success) {\r\n return returndata;\r\n } else {\r\n // Look for revert reason and bubble it up if present\r\n if (returndata.length > 0) {\r\n // The easiest way to bubble the revert reason is using memory via assembly\r\n\r\n assembly {\r\n let returndata_size := mload(returndata)\r\n revert(add(32, returndata), returndata_size)\r\n }\r\n } else {\r\n revert(errorMessage);\r\n }\r\n }\r\n }\r\n}\r\n\r\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\r\n\r\n/**\r\n * @dev Library for reading and writing primitive types to specific storage slots.\r\n *\r\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\r\n * This library helps with reading and writing to such slots without the need for inline assembly.\r\n *\r\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\r\n *\r\n * Example usage to set ERC1967 implementation slot:\r\n * ```\r\n * contract ERC1967 {\r\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\r\n *\r\n * function _getImplementation() internal view returns (address) {\r\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\r\n * }\r\n *\r\n * function _setImplementation(address newImplementation) internal {\r\n * require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\r\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\r\n * }\r\n * }\r\n * ```\r\n *\r\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\r\n */\r\nlibrary StorageSlot {\r\n struct AddressSlot {\r\n address value;\r\n }\r\n\r\n struct BooleanSlot {\r\n bool value;\r\n }\r\n\r\n struct Bytes32Slot {\r\n bytes32 value;\r\n }\r\n\r\n struct Uint256Slot {\r\n uint256 value;\r\n }\r\n\r\n /**\r\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\r\n */\r\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\r\n assembly {\r\n r.slot := slot\r\n }\r\n }\r\n\r\n /**\r\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\r\n */\r\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\r\n assembly {\r\n r.slot := slot\r\n }\r\n }\r\n\r\n /**\r\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\r\n */\r\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\r\n assembly {\r\n r.slot := slot\r\n }\r\n }\r\n\r\n /**\r\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\r\n */\r\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\r\n assembly {\r\n r.slot := slot\r\n }\r\n }\r\n}"
}
},
"settings": {
"optimizer": {
"enabled": true,
"runs": 800
},
"metadata": {
"bytecodeHash": "none"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}
}}
[{"inputs":[{"internalType":"address","name":"_logic","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":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]
[{"inputs":[{"internalType":"address","name":"_logic","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":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]
608060405260405161078138038061078183398101604081905261002291610333565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610401565b60008051602061073a8339815191521461006957610069610422565b6100758282600061007c565b5050610487565b610085836100b2565b6000825111806100925750805b156100ad576100ab83836100f260201b6100291760201c565b505b505050565b6100bb81610120565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610117838360405180606001604052806027815260200161075a602791396101e0565b90505b92915050565b610133816102b760201b6100551760201c565b61019a5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101bf60008051602061073a83398151915260001b6102bd60201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060833b61023f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610191565b600080856001600160a01b03168560405161025a9190610438565b600060405180830381855af49150503d8060008114610295576040519150601f19603f3d011682016040523d82523d6000602084013e61029a565b606091505b5090925090506102ab8282866102c0565b925050505b9392505050565b3b151590565b90565b606083156102cf5750816102b0565b8251156102df5782518084602001fd5b8160405162461bcd60e51b81526004016101919190610454565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561032a578181015183820152602001610312565b50506000910152565b6000806040838503121561034657600080fd5b82516001600160a01b038116811461035d57600080fd5b60208401519092506001600160401b038082111561037a57600080fd5b818501915085601f83011261038e57600080fd5b8151818111156103a0576103a06102f9565b604051601f8201601f19908116603f011681019083821181831017156103c8576103c86102f9565b816040528281528860208487010111156103e157600080fd5b6103f283602083016020880161030f565b80955050505050509250929050565b8181038181111561011a57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052600160045260246000fd5b6000825161044a81846020870161030f565b9190910192915050565b602081526000825180602084015261047381604085016020870161030f565b601f01601f19169190910160400192915050565b6102a4806104966000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b6100a3565b565b606061004e8383604051806060016040528060278152602001610271602791396100c7565b9392505050565b3b151590565b90565b600061009e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e8080156100c2573d6000f35b3d6000fd5b6060833b6101425760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161016a9190610221565b600060405180830381855af49150503d80600081146101a5576040519150601f19603f3d011682016040523d82523d6000602084013e6101aa565b606091505b50915091506101ba8282866101c4565b9695505050505050565b606083156101d357508161004e565b8251156101e35782518084602001fd5b8160405162461bcd60e51b8152600401610139919061023d565b60005b83811015610218578181015183820152602001610200565b50506000910152565b600082516102338184602087016101fd565b9190910192915050565b602081526000825180602084015261025c8160408501602087016101fd565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a164736f6c6343000811000a360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000031aa05da8bf778dfc36d8d25ca68cbb2fc447c600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084cf756fdf00000000000000000000000000000000000111abe46ff893f3b2fdf1f759a8a80000000000000000000000003a35a3102b5c6bd1e4d3237248be071ef53c83310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
608060405260405161078138038061078183398101604081905261002291610333565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610401565b60008051602061073a8339815191521461006957610069610422565b6100758282600061007c565b5050610487565b610085836100b2565b6000825111806100925750805b156100ad576100ab83836100f260201b6100291760201c565b505b505050565b6100bb81610120565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610117838360405180606001604052806027815260200161075a602791396101e0565b90505b92915050565b610133816102b760201b6100551760201c565b61019a5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101bf60008051602061073a83398151915260001b6102bd60201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060833b61023f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610191565b600080856001600160a01b03168560405161025a9190610438565b600060405180830381855af49150503d8060008114610295576040519150601f19603f3d011682016040523d82523d6000602084013e61029a565b606091505b5090925090506102ab8282866102c0565b925050505b9392505050565b3b151590565b90565b606083156102cf5750816102b0565b8251156102df5782518084602001fd5b8160405162461bcd60e51b81526004016101919190610454565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561032a578181015183820152602001610312565b50506000910152565b6000806040838503121561034657600080fd5b82516001600160a01b038116811461035d57600080fd5b60208401519092506001600160401b038082111561037a57600080fd5b818501915085601f83011261038e57600080fd5b8151818111156103a0576103a06102f9565b604051601f8201601f19908116603f011681019083821181831017156103c8576103c86102f9565b816040528281528860208487010111156103e157600080fd5b6103f283602083016020880161030f565b80955050505050509250929050565b8181038181111561011a57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052600160045260246000fd5b6000825161044a81846020870161030f565b9190910192915050565b602081526000825180602084015261047381604085016020870161030f565b601f01601f19169190910160400192915050565b6102a4806104966000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b6100a3565b565b606061004e8383604051806060016040528060278152602001610271602791396100c7565b9392505050565b3b151590565b90565b600061009e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e8080156100c2573d6000f35b3d6000fd5b6060833b6101425760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161016a9190610221565b600060405180830381855af49150503d80600081146101a5576040519150601f19603f3d011682016040523d82523d6000602084013e6101aa565b606091505b50915091506101ba8282866101c4565b9695505050505050565b606083156101d357508161004e565b8251156101e35782518084602001fd5b8160405162461bcd60e51b8152600401610139919061023d565b60005b83811015610218578181015183820152602001610200565b50506000910152565b600082516102338184602087016101fd565b9190910192915050565b602081526000825180602084015261025c8160408501602087016101fd565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a164736f6c6343000811000a360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564000000000000000000000000031aa05da8bf778dfc36d8d25ca68cbb2fc447c600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084cf756fdf00000000000000000000000000000000000111abe46ff893f3b2fdf1f759a8a80000000000000000000000003a35a3102b5c6bd1e4d3237248be071ef53c83310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000