Goerli Testnet

Contract

0xbc0Fc544736b7d610D9b05F31B182C8154BEf336
Source Code

Overview

ETH Balance

0 ETH

Multi Chain

Multichain Addresses

1 address found via
Transaction Hash
Method
Block
From
To
Value
Transfer Ownersh...90567472023-05-24 17:55:24124 days 2 hrs ago1684950924IN
0xbc0Fc5...54BEf336
0 ETH0.0003951513.79411402
Upgrade87515822023-03-31 21:21:12177 days 22 hrs ago1680297672IN
0xbc0Fc5...54BEf336
0 ETH0.0005269113.78740925
Upgrade87408532023-03-29 23:05:12179 days 21 hrs ago1680131112IN
0xbc0Fc5...54BEf336
0 ETH0.0011201829.31107847
Upgrade87407962023-03-29 22:50:48179 days 21 hrs ago1680130248IN
0xbc0Fc5...54BEf336
0 ETH0.0017494545.77685815
Transfer Ownersh...87406172023-03-29 22:02:00179 days 22 hrs ago1680127320IN
0xbc0Fc5...54BEf336
0 ETH0.000850429.6855139
Transfer Ownersh...84111182023-01-31 20:06:12237 days 14 mins ago1675195572IN
0xbc0Fc5...54BEf336
0 ETH0.000008590.30004234
0x6080604084111162023-01-31 20:05:48237 days 14 mins ago1675195548IN
 Create: ProxyAdmin
0 ETH0.000363870.3000356

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
97585132023-09-25 19:42:2438 mins ago1695670944
0xbc0Fc5...54BEf336
0 ETH
97558842023-09-25 8:34:3611 hrs 46 mins ago1695630876
0xbc0Fc5...54BEf336
0 ETH
97558792023-09-25 8:33:1211 hrs 47 mins ago1695630792
0xbc0Fc5...54BEf336
0 ETH
97557592023-09-25 8:03:1212 hrs 17 mins ago1695628992
0xbc0Fc5...54BEf336
0 ETH
97554242023-09-25 6:40:0013 hrs 40 mins ago1695624000
0xbc0Fc5...54BEf336
0 ETH
97554182023-09-25 6:38:2413 hrs 42 mins ago1695623904
0xbc0Fc5...54BEf336
0 ETH
97554062023-09-25 6:35:1213 hrs 45 mins ago1695623712
0xbc0Fc5...54BEf336
0 ETH
97553992023-09-25 6:33:3613 hrs 47 mins ago1695623616
0xbc0Fc5...54BEf336
0 ETH
97553942023-09-25 6:32:1213 hrs 48 mins ago1695623532
0xbc0Fc5...54BEf336
0 ETH
97545622023-09-25 2:58:2417 hrs 22 mins ago1695610704
0xbc0Fc5...54BEf336
0 ETH
97544552023-09-25 2:30:1217 hrs 50 mins ago1695609012
0xbc0Fc5...54BEf336
0 ETH
97543762023-09-25 2:11:1218 hrs 9 mins ago1695607872
0xbc0Fc5...54BEf336
0 ETH
97542012023-09-25 1:25:4818 hrs 54 mins ago1695605148
0xbc0Fc5...54BEf336
0 ETH
97521332023-09-24 16:58:241 day 3 hrs ago1695574704
0xbc0Fc5...54BEf336
0 ETH
97445862023-09-23 9:40:362 days 10 hrs ago1695462036
0xbc0Fc5...54BEf336
0 ETH
97444892023-09-23 9:14:482 days 11 hrs ago1695460488
0xbc0Fc5...54BEf336
0 ETH
97444762023-09-23 9:12:122 days 11 hrs ago1695460332
0xbc0Fc5...54BEf336
0 ETH
97442652023-09-23 8:20:002 days 12 hrs ago1695457200
0xbc0Fc5...54BEf336
0 ETH
97442532023-09-23 8:17:122 days 12 hrs ago1695457032
0xbc0Fc5...54BEf336
0 ETH
97442382023-09-23 8:14:002 days 12 hrs ago1695456840
0xbc0Fc5...54BEf336
0 ETH
97415642023-09-22 21:20:002 days 23 hrs ago1695417600
0xbc0Fc5...54BEf336
0 ETH
97415112023-09-22 21:06:482 days 23 hrs ago1695416808
0xbc0Fc5...54BEf336
0 ETH
97410052023-09-22 18:57:243 days 1 hr ago1695409044
0xbc0Fc5...54BEf336
0 ETH
97409252023-09-22 18:36:123 days 1 hr ago1695407772
0xbc0Fc5...54BEf336
0 ETH
97408162023-09-22 18:10:003 days 2 hrs ago1695406200
0xbc0Fc5...54BEf336
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProxyAdmin

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : ProxyAdmin.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Proxy } from "./Proxy.sol";
import { AddressManager } from "../legacy/AddressManager.sol";
import { L1ChugSplashProxy } from "../legacy/L1ChugSplashProxy.sol";

/**
 * @title IStaticERC1967Proxy
 * @notice IStaticERC1967Proxy is a static version of the ERC1967 proxy interface.
 */
interface IStaticERC1967Proxy {
    function implementation() external view returns (address);

    function admin() external view returns (address);
}

/**
 * @title IStaticL1ChugSplashProxy
 * @notice IStaticL1ChugSplashProxy is a static version of the ChugSplash proxy interface.
 */
interface IStaticL1ChugSplashProxy {
    function getImplementation() external view returns (address);

    function getOwner() external view returns (address);
}

/**
 * @title ProxyAdmin
 * @notice This is an auxiliary contract meant to be assigned as the admin of an ERC1967 Proxy,
 *         based on the OpenZeppelin implementation. It has backwards compatibility logic to work
 *         with the various types of proxies that have been deployed by Optimism in the past.
 */
contract ProxyAdmin is Ownable {
    /**
     * @notice The proxy types that the ProxyAdmin can manage.
     *
     * @custom:value ERC1967    Represents an ERC1967 compliant transparent proxy interface.
     * @custom:value CHUGSPLASH Represents the Chugsplash proxy interface (legacy).
     * @custom:value RESOLVED   Represents the ResolvedDelegate proxy (legacy).
     */
    enum ProxyType {
        ERC1967,
        CHUGSPLASH,
        RESOLVED
    }

    /**
     * @notice A mapping of proxy types, used for backwards compatibility.
     */
    mapping(address => ProxyType) public proxyType;

    /**
     * @notice A reverse mapping of addresses to names held in the AddressManager. This must be
     *         manually kept up to date with changes in the AddressManager for this contract
     *         to be able to work as an admin for the ResolvedDelegateProxy type.
     */
    mapping(address => string) public implementationName;

    /**
     * @notice The address of the address manager, this is required to manage the
     *         ResolvedDelegateProxy type.
     */
    AddressManager public addressManager;

    /**
     * @notice A legacy upgrading indicator used by the old Chugsplash Proxy.
     */
    bool internal upgrading;

    /**
     * @param _owner Address of the initial owner of this contract.
     */
    constructor(address _owner) Ownable() {
        _transferOwnership(_owner);
    }

    /**
     * @notice Sets the proxy type for a given address. Only required for non-standard (legacy)
     *         proxy types.
     *
     * @param _address Address of the proxy.
     * @param _type    Type of the proxy.
     */
    function setProxyType(address _address, ProxyType _type) external onlyOwner {
        proxyType[_address] = _type;
    }

    /**
     * @notice Sets the implementation name for a given address. Only required for
     *         ResolvedDelegateProxy type proxies that have an implementation name.
     *
     * @param _address Address of the ResolvedDelegateProxy.
     * @param _name    Name of the implementation for the proxy.
     */
    function setImplementationName(address _address, string memory _name) external onlyOwner {
        implementationName[_address] = _name;
    }

    /**
     * @notice Set the address of the AddressManager. This is required to manage legacy
     *         ResolvedDelegateProxy type proxy contracts.
     *
     * @param _address Address of the AddressManager.
     */
    function setAddressManager(AddressManager _address) external onlyOwner {
        addressManager = _address;
    }

    /**
     * @custom:legacy
     * @notice Set an address in the address manager. Since only the owner of the AddressManager
     *         can directly modify addresses and the ProxyAdmin will own the AddressManager, this
     *         gives the owner of the ProxyAdmin the ability to modify addresses directly.
     *
     * @param _name    Name to set within the AddressManager.
     * @param _address Address to attach to the given name.
     */
    function setAddress(string memory _name, address _address) external onlyOwner {
        addressManager.setAddress(_name, _address);
    }

    /**
     * @custom:legacy
     * @notice Set the upgrading status for the Chugsplash proxy type.
     *
     * @param _upgrading Whether or not the system is upgrading.
     */
    function setUpgrading(bool _upgrading) external onlyOwner {
        upgrading = _upgrading;
    }

    /**
     * @custom:legacy
     * @notice Legacy function used to tell ChugSplashProxy contracts if an upgrade is happening.
     *
     * @return Whether or not there is an upgrade going on. May not actually tell you whether an
     *         upgrade is going on, since we don't currently plan to use this variable for anything
     *         other than a legacy indicator to fix a UX bug in the ChugSplash proxy.
     */
    function isUpgrading() external view returns (bool) {
        return upgrading;
    }

    /**
     * @notice Returns the implementation of the given proxy address.
     *
     * @param _proxy Address of the proxy to get the implementation of.
     *
     * @return Address of the implementation of the proxy.
     */
    function getProxyImplementation(address _proxy) external view returns (address) {
        ProxyType ptype = proxyType[_proxy];
        if (ptype == ProxyType.ERC1967) {
            return IStaticERC1967Proxy(_proxy).implementation();
        } else if (ptype == ProxyType.CHUGSPLASH) {
            return IStaticL1ChugSplashProxy(_proxy).getImplementation();
        } else if (ptype == ProxyType.RESOLVED) {
            return addressManager.getAddress(implementationName[_proxy]);
        } else {
            revert("ProxyAdmin: unknown proxy type");
        }
    }

    /**
     * @notice Returns the admin of the given proxy address.
     *
     * @param _proxy Address of the proxy to get the admin of.
     *
     * @return Address of the admin of the proxy.
     */
    function getProxyAdmin(address payable _proxy) external view returns (address) {
        ProxyType ptype = proxyType[_proxy];
        if (ptype == ProxyType.ERC1967) {
            return IStaticERC1967Proxy(_proxy).admin();
        } else if (ptype == ProxyType.CHUGSPLASH) {
            return IStaticL1ChugSplashProxy(_proxy).getOwner();
        } else if (ptype == ProxyType.RESOLVED) {
            return addressManager.owner();
        } else {
            revert("ProxyAdmin: unknown proxy type");
        }
    }

    /**
     * @notice Updates the admin of the given proxy address.
     *
     * @param _proxy    Address of the proxy to update.
     * @param _newAdmin Address of the new proxy admin.
     */
    function changeProxyAdmin(address payable _proxy, address _newAdmin) external onlyOwner {
        ProxyType ptype = proxyType[_proxy];
        if (ptype == ProxyType.ERC1967) {
            Proxy(_proxy).changeAdmin(_newAdmin);
        } else if (ptype == ProxyType.CHUGSPLASH) {
            L1ChugSplashProxy(_proxy).setOwner(_newAdmin);
        } else if (ptype == ProxyType.RESOLVED) {
            addressManager.transferOwnership(_newAdmin);
        } else {
            revert("ProxyAdmin: unknown proxy type");
        }
    }

    /**
     * @notice Changes a proxy's implementation contract.
     *
     * @param _proxy          Address of the proxy to upgrade.
     * @param _implementation Address of the new implementation address.
     */
    function upgrade(address payable _proxy, address _implementation) public onlyOwner {
        ProxyType ptype = proxyType[_proxy];
        if (ptype == ProxyType.ERC1967) {
            Proxy(_proxy).upgradeTo(_implementation);
        } else if (ptype == ProxyType.CHUGSPLASH) {
            L1ChugSplashProxy(_proxy).setStorage(
                // bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1)
                0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc,
                bytes32(uint256(uint160(_implementation)))
            );
        } else if (ptype == ProxyType.RESOLVED) {
            string memory name = implementationName[_proxy];
            addressManager.setAddress(name, _implementation);
        } else {
            // It should not be possible to retrieve a ProxyType value which is not matched by
            // one of the previous conditions.
            assert(false);
        }
    }

    /**
     * @notice Changes a proxy's implementation contract and delegatecalls the new implementation
     *         with some given data. Useful for atomic upgrade-and-initialize calls.
     *
     * @param _proxy          Address of the proxy to upgrade.
     * @param _implementation Address of the new implementation address.
     * @param _data           Data to trigger the new implementation with.
     */
    function upgradeAndCall(
        address payable _proxy,
        address _implementation,
        bytes memory _data
    ) external payable onlyOwner {
        ProxyType ptype = proxyType[_proxy];
        if (ptype == ProxyType.ERC1967) {
            Proxy(_proxy).upgradeToAndCall{ value: msg.value }(_implementation, _data);
        } else {
            // reverts if proxy type is unknown
            upgrade(_proxy, _implementation);
            (bool success, ) = _proxy.call{ value: msg.value }(_data);
            require(success, "ProxyAdmin: call to proxy after upgrade failed");
        }
    }
}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev 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.
 *
 * By default, the owner account will be the one that deploys the contract. 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.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 4 of 6 : AddressManager.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";

/**
 * @custom:legacy
 * @title AddressManager
 * @notice AddressManager is a legacy contract that was used in the old version of the Optimism
 *         system to manage a registry of string names to addresses. We now use a more standard
 *         proxy system instead, but this contract is still necessary for backwards compatibility
 *         with several older contracts.
 */
contract AddressManager is Ownable {
    /**
     * @notice Mapping of the hashes of string names to addresses.
     */
    mapping(bytes32 => address) private addresses;

    /**
     * @notice Emitted when an address is modified in the registry.
     *
     * @param name       String name being set in the registry.
     * @param newAddress Address set for the given name.
     * @param oldAddress Address that was previously set for the given name.
     */
    event AddressSet(string indexed name, address newAddress, address oldAddress);

    /**
     * @notice Changes the address associated with a particular name.
     *
     * @param _name    String name to associate an address with.
     * @param _address Address to associate with the name.
     */
    function setAddress(string memory _name, address _address) external onlyOwner {
        bytes32 nameHash = _getNameHash(_name);
        address oldAddress = addresses[nameHash];
        addresses[nameHash] = _address;

        emit AddressSet(_name, _address, oldAddress);
    }

    /**
     * @notice Retrieves the address associated with a given name.
     *
     * @param _name Name to retrieve an address for.
     *
     * @return Address associated with the given name.
     */
    function getAddress(string memory _name) external view returns (address) {
        return addresses[_getNameHash(_name)];
    }

    /**
     * @notice Computes the hash of a name.
     *
     * @param _name Name to compute a hash for.
     *
     * @return Hash of the given name.
     */
    function _getNameHash(string memory _name) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(_name));
    }
}

File 5 of 6 : L1ChugSplashProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

/**
 * @title IL1ChugSplashDeployer
 */
interface IL1ChugSplashDeployer {
    function isUpgrading() external view returns (bool);
}

/**
 * @custom:legacy
 * @title L1ChugSplashProxy
 * @notice Basic ChugSplash proxy contract for L1. Very close to being a normal proxy but has added
 *         functions `setCode` and `setStorage` for changing the code or storage of the contract.
 *
 *         Note for future developers: do NOT make anything in this contract 'public' unless you
 *         know what you're doing. Anything public can potentially have a function signature that
 *         conflicts with a signature attached to the implementation contract. Public functions
 *         SHOULD always have the `proxyCallIfNotOwner` modifier unless there's some *really* good
 *         reason not to have that modifier. And there almost certainly is not a good reason to not
 *         have that modifier. Beware!
 */
contract L1ChugSplashProxy {
    /**
     * @notice "Magic" prefix. When prepended to some arbitrary bytecode and used to create a
     *         contract, the appended bytecode will be deployed as given.
     */
    bytes13 internal constant DEPLOY_CODE_PREFIX = 0x600D380380600D6000396000f3;

    /**
     * @notice bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1)
     */
    bytes32 internal constant IMPLEMENTATION_KEY =
        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @notice bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1)
     */
    bytes32 internal constant OWNER_KEY =
        0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @notice Blocks a function from being called when the parent signals that the system should
     *         be paused via an isUpgrading function.
     */
    modifier onlyWhenNotPaused() {
        address owner = _getOwner();

        // We do a low-level call because there's no guarantee that the owner actually *is* an
        // L1ChugSplashDeployer contract and Solidity will throw errors if we do a normal call and
        // it turns out that it isn't the right type of contract.
        (bool success, bytes memory returndata) = owner.staticcall(
            abi.encodeWithSelector(IL1ChugSplashDeployer.isUpgrading.selector)
        );

        // If the call was unsuccessful then we assume that there's no "isUpgrading" method and we
        // can just continue as normal. We also expect that the return value is exactly 32 bytes
        // long. If this isn't the case then we can safely ignore the result.
        if (success && returndata.length == 32) {
            // Although the expected value is a *boolean*, it's safer to decode as a uint256 in the
            // case that the isUpgrading function returned something other than 0 or 1. But we only
            // really care about the case where this value is 0 (= false).
            uint256 ret = abi.decode(returndata, (uint256));
            require(ret == 0, "L1ChugSplashProxy: system is currently being upgraded");
        }

        _;
    }

    /**
     * @notice Makes a proxy call instead of triggering the given function when the caller is
     *         either the owner or the zero address. Caller can only ever be the zero address if
     *         this function is being called off-chain via eth_call, which is totally fine and can
     *         be convenient for client-side tooling. Avoids situations where the proxy and
     *         implementation share a sighash and the proxy function ends up being called instead
     *         of the implementation one.
     *
     *         Note: msg.sender == address(0) can ONLY be triggered off-chain via eth_call. If
     *         there's a way for someone to send a transaction with msg.sender == address(0) in any
     *         real context then we have much bigger problems. Primary reason to include this
     *         additional allowed sender is because the owner address can be changed dynamically
     *         and we do not want clients to have to keep track of the current owner in order to
     *         make an eth_call that doesn't trigger the proxied contract.
     */
    // slither-disable-next-line incorrect-modifier
    modifier proxyCallIfNotOwner() {
        if (msg.sender == _getOwner() || msg.sender == address(0)) {
            _;
        } else {
            // This WILL halt the call frame on completion.
            _doProxyCall();
        }
    }

    /**
     * @param _owner Address of the initial contract owner.
     */
    constructor(address _owner) {
        _setOwner(_owner);
    }

    // slither-disable-next-line locked-ether
    receive() external payable {
        // Proxy call by default.
        _doProxyCall();
    }

    // slither-disable-next-line locked-ether
    fallback() external payable {
        // Proxy call by default.
        _doProxyCall();
    }

    /**
     * @notice Sets the code that should be running behind this proxy.
     *
     *         Note: This scheme is a bit different from the standard proxy scheme where one would
     *         typically deploy the code separately and then set the implementation address. We're
     *         doing it this way because it gives us a lot more freedom on the client side. Can
     *         only be triggered by the contract owner.
     *
     * @param _code New contract code to run inside this contract.
     */
    function setCode(bytes memory _code) external proxyCallIfNotOwner {
        // Get the code hash of the current implementation.
        address implementation = _getImplementation();

        // If the code hash matches the new implementation then we return early.
        if (keccak256(_code) == _getAccountCodeHash(implementation)) {
            return;
        }

        // Create the deploycode by appending the magic prefix.
        bytes memory deploycode = abi.encodePacked(DEPLOY_CODE_PREFIX, _code);

        // Deploy the code and set the new implementation address.
        address newImplementation;
        assembly {
            newImplementation := create(0x0, add(deploycode, 0x20), mload(deploycode))
        }

        // Check that the code was actually deployed correctly. I'm not sure if you can ever
        // actually fail this check. Should only happen if the contract creation from above runs
        // out of gas but this parent execution thread does NOT run out of gas. Seems like we
        // should be doing this check anyway though.
        require(
            _getAccountCodeHash(newImplementation) == keccak256(_code),
            "L1ChugSplashProxy: code was not correctly deployed"
        );

        _setImplementation(newImplementation);
    }

    /**
     * @notice Modifies some storage slot within the proxy contract. Gives us a lot of power to
     *         perform upgrades in a more transparent way. Only callable by the owner.
     *
     * @param _key   Storage key to modify.
     * @param _value New value for the storage key.
     */
    function setStorage(bytes32 _key, bytes32 _value) external proxyCallIfNotOwner {
        assembly {
            sstore(_key, _value)
        }
    }

    /**
     * @notice Changes the owner of the proxy contract. Only callable by the owner.
     *
     * @param _owner New owner of the proxy contract.
     */
    function setOwner(address _owner) external proxyCallIfNotOwner {
        _setOwner(_owner);
    }

    /**
     * @notice Queries the owner of the proxy contract. Can only be called by the owner OR by
     *         making an eth_call and setting the "from" address to address(0).
     *
     * @return Owner address.
     */
    function getOwner() external proxyCallIfNotOwner returns (address) {
        return _getOwner();
    }

    /**
     * @notice Queries the implementation address. Can only be called by the owner OR by making an
     *         eth_call and setting the "from" address to address(0).
     *
     * @return Implementation address.
     */
    function getImplementation() external proxyCallIfNotOwner returns (address) {
        return _getImplementation();
    }

    /**
     * @notice Sets the implementation address.
     *
     * @param _implementation New implementation address.
     */
    function _setImplementation(address _implementation) internal {
        assembly {
            sstore(IMPLEMENTATION_KEY, _implementation)
        }
    }

    /**
     * @notice Changes the owner of the proxy contract.
     *
     * @param _owner New owner of the proxy contract.
     */
    function _setOwner(address _owner) internal {
        assembly {
            sstore(OWNER_KEY, _owner)
        }
    }

    /**
     * @notice Performs the proxy call via a delegatecall.
     */
    function _doProxyCall() internal onlyWhenNotPaused {
        address implementation = _getImplementation();

        require(implementation != address(0), "L1ChugSplashProxy: implementation is not set yet");

        assembly {
            // Copy calldata into memory at 0x0....calldatasize.
            calldatacopy(0x0, 0x0, calldatasize())

            // Perform the delegatecall, make sure to pass all available gas.
            let success := delegatecall(gas(), implementation, 0x0, calldatasize(), 0x0, 0x0)

            // Copy returndata into memory at 0x0....returndatasize. Note that this *will*
            // overwrite the calldata that we just copied into memory but that doesn't really
            // matter because we'll be returning in a second anyway.
            returndatacopy(0x0, 0x0, returndatasize())

            // Success == 0 means a revert. We'll revert too and pass the data up.
            if iszero(success) {
                revert(0x0, returndatasize())
            }

            // Otherwise we'll just return and pass the data up.
            return(0x0, returndatasize())
        }
    }

    /**
     * @notice Queries the implementation address.
     *
     * @return Implementation address.
     */
    function _getImplementation() internal view returns (address) {
        address implementation;
        assembly {
            implementation := sload(IMPLEMENTATION_KEY)
        }
        return implementation;
    }

    /**
     * @notice Queries the owner of the proxy contract.
     *
     * @return Owner address.
     */
    function _getOwner() internal view returns (address) {
        address owner;
        assembly {
            owner := sload(OWNER_KEY)
        }
        return owner;
    }

    /**
     * @notice Gets the code hash for a given account.
     *
     * @param _account Address of the account to get a code hash for.
     *
     * @return Code hash for the account.
     */
    function _getAccountCodeHash(address _account) internal view returns (bytes32) {
        bytes32 codeHash;
        assembly {
            codeHash := extcodehash(_account)
        }
        return codeHash;
    }
}

File 6 of 6 : Proxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

/**
 * @title Proxy
 * @notice Proxy is a transparent proxy that passes through the call if the caller is the owner or
 *         if the caller is address(0), meaning that the call originated from an off-chain
 *         simulation.
 */
contract Proxy {
    /**
     * @notice The storage slot that holds the address of the implementation.
     *         bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1)
     */
    bytes32 internal constant IMPLEMENTATION_KEY =
        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @notice The storage slot that holds the address of the owner.
     *         bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1)
     */
    bytes32 internal constant OWNER_KEY =
        0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @notice An event that is emitted each time the implementation is changed. This event is part
     *         of the EIP-1967 specification.
     *
     * @param implementation The address of the implementation contract
     */
    event Upgraded(address indexed implementation);

    /**
     * @notice An event that is emitted each time the owner is upgraded. This event is part of the
     *         EIP-1967 specification.
     *
     * @param previousAdmin The previous owner of the contract
     * @param newAdmin      The new owner of the contract
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @notice A modifier that reverts if not called by the owner or by address(0) to allow
     *         eth_call to interact with this proxy without needing to use low-level storage
     *         inspection. We assume that nobody is able to trigger calls from address(0) during
     *         normal EVM execution.
     */
    modifier proxyCallIfNotAdmin() {
        if (msg.sender == _getAdmin() || msg.sender == address(0)) {
            _;
        } else {
            // This WILL halt the call frame on completion.
            _doProxyCall();
        }
    }

    /**
     * @notice Sets the initial admin during contract deployment. Admin address is stored at the
     *         EIP-1967 admin storage slot so that accidental storage collision with the
     *         implementation is not possible.
     *
     * @param _admin Address of the initial contract admin. Admin as the ability to access the
     *               transparent proxy interface.
     */
    constructor(address _admin) {
        _changeAdmin(_admin);
    }

    // slither-disable-next-line locked-ether
    receive() external payable {
        // Proxy call by default.
        _doProxyCall();
    }

    // slither-disable-next-line locked-ether
    fallback() external payable {
        // Proxy call by default.
        _doProxyCall();
    }

    /**
     * @notice Set the implementation contract address. The code at the given address will execute
     *         when this contract is called.
     *
     * @param _implementation Address of the implementation contract.
     */
    function upgradeTo(address _implementation) external proxyCallIfNotAdmin {
        _setImplementation(_implementation);
    }

    /**
     * @notice Set the implementation and call a function in a single transaction. Useful to ensure
     *         atomic execution of initialization-based upgrades.
     *
     * @param _implementation Address of the implementation contract.
     * @param _data           Calldata to delegatecall the new implementation with.
     */
    function upgradeToAndCall(address _implementation, bytes calldata _data)
        external
        payable
        proxyCallIfNotAdmin
        returns (bytes memory)
    {
        _setImplementation(_implementation);
        (bool success, bytes memory returndata) = _implementation.delegatecall(_data);
        require(success, "Proxy: delegatecall to new implementation contract failed");
        return returndata;
    }

    /**
     * @notice Changes the owner of the proxy contract. Only callable by the owner.
     *
     * @param _admin New owner of the proxy contract.
     */
    function changeAdmin(address _admin) external proxyCallIfNotAdmin {
        _changeAdmin(_admin);
    }

    /**
     * @notice Gets the owner of the proxy contract.
     *
     * @return Owner address.
     */
    function admin() external proxyCallIfNotAdmin returns (address) {
        return _getAdmin();
    }

    /**
     * @notice Queries the implementation address.
     *
     * @return Implementation address.
     */
    function implementation() external proxyCallIfNotAdmin returns (address) {
        return _getImplementation();
    }

    /**
     * @notice Sets the implementation address.
     *
     * @param _implementation New implementation address.
     */
    function _setImplementation(address _implementation) internal {
        assembly {
            sstore(IMPLEMENTATION_KEY, _implementation)
        }
        emit Upgraded(_implementation);
    }

    /**
     * @notice Changes the owner of the proxy contract.
     *
     * @param _admin New owner of the proxy contract.
     */
    function _changeAdmin(address _admin) internal {
        address previous = _getAdmin();
        assembly {
            sstore(OWNER_KEY, _admin)
        }
        emit AdminChanged(previous, _admin);
    }

    /**
     * @notice Performs the proxy call via a delegatecall.
     */
    function _doProxyCall() internal {
        address impl = _getImplementation();
        require(impl != address(0), "Proxy: implementation not initialized");

        assembly {
            // Copy calldata into memory at 0x0....calldatasize.
            calldatacopy(0x0, 0x0, calldatasize())

            // Perform the delegatecall, make sure to pass all available gas.
            let success := delegatecall(gas(), impl, 0x0, calldatasize(), 0x0, 0x0)

            // Copy returndata into memory at 0x0....returndatasize. Note that this *will*
            // overwrite the calldata that we just copied into memory but that doesn't really
            // matter because we'll be returning in a second anyway.
            returndatacopy(0x0, 0x0, returndatasize())

            // Success == 0 means a revert. We'll revert too and pass the data up.
            if iszero(success) {
                revert(0x0, returndatasize())
            }

            // Otherwise we'll just return and pass the data up.
            return(0x0, returndatasize())
        }
    }

    /**
     * @notice Queries the implementation address.
     *
     * @return Implementation address.
     */
    function _getImplementation() internal view returns (address) {
        address impl;
        assembly {
            impl := sload(IMPLEMENTATION_KEY)
        }
        return impl;
    }

    /**
     * @notice Queries the owner of the proxy contract.
     *
     * @return Owner address.
     */
    function _getAdmin() internal view returns (address) {
        address owner;
        assembly {
            owner := sload(OWNER_KEY)
        }
        return owner;
    }
}

Settings
{
  "remappings": [
    "@eth-optimism-bedrock/=lib/optimism.git/packages/contracts-bedrock/",
    "@gnosissafe/contracts/=lib/safe-contracts/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@rari-capital/solmate/=lib/solmate.git/",
    "ds-test/=lib/solmate.git/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "optimism.git/=lib/optimism.git/",
    "optimism/=lib/optimism/",
    "safe-contracts/=lib/safe-contracts/contracts/",
    "solmate.git/=lib/solmate.git/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"addressManager","outputs":[{"internalType":"contract AddressManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_proxy","type":"address"},{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"changeProxyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_proxy","type":"address"}],"name":"getProxyAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy","type":"address"}],"name":"getProxyImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"implementationName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isUpgrading","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxyType","outputs":[{"internalType":"enum ProxyAdmin.ProxyType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_address","type":"address"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract AddressManager","name":"_address","type":"address"}],"name":"setAddressManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"string","name":"_name","type":"string"}],"name":"setImplementationName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"enum ProxyAdmin.ProxyType","name":"_type","type":"uint8"}],"name":"setProxyType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_upgrading","type":"bool"}],"name":"setUpgrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_proxy","type":"address"},{"internalType":"address","name":"_implementation","type":"address"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_proxy","type":"address"},{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"upgradeAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b5060405161154b38038061154b83398101604081905261002f91610097565b61003833610047565b61004181610047565b506100c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100a957600080fd5b81516001600160a01b03811681146100c057600080fd5b9392505050565b611475806100d66000396000f3fe6080604052600436106100fe5760003560e01c8063860f7cda1161009557806399a88ec41161006457806399a88ec4146102b25780639b2ea4bd146102d2578063b7947262146102f2578063f2fde38b1461031c578063f3b7dead1461033c57600080fd5b8063860f7cda146102415780638d52d4a0146102615780638da5cb5b146102815780639623609d1461029f57600080fd5b80633ab76e9f116100d15780633ab76e9f146101af5780636bd9f516146101cf578063715018a61461020c5780637eff275e1461022157600080fd5b80630652b57a1461010357806307c8f7b014610125578063204e1c7a14610145578063238181ae14610182575b600080fd5b34801561010f57600080fd5b5061012361011e366004610e31565b61035c565b005b34801561013157600080fd5b50610123610140366004610e4e565b610386565b34801561015157600080fd5b50610165610160366004610e31565b6103ac565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561018e57600080fd5b506101a261019d366004610e31565b61056b565b6040516101799190610ec8565b3480156101bb57600080fd5b50600354610165906001600160a01b031681565b3480156101db57600080fd5b506101ff6101ea366004610e31565b60016020526000908152604090205460ff1681565b6040516101799190610ef1565b34801561021857600080fd5b50610123610605565b34801561022d57600080fd5b5061012361023c366004610f19565b610619565b34801561024d57600080fd5b5061012361025c36600461101f565b61074d565b34801561026d57600080fd5b5061012361027c36600461106f565b610777565b34801561028d57600080fd5b506000546001600160a01b0316610165565b6101236102ad3660046110a1565b6107c0565b3480156102be57600080fd5b506101236102cd366004610f19565b610950565b3480156102de57600080fd5b506101236102ed366004611117565b610b54565b3480156102fe57600080fd5b50600354600160a01b900460ff166040519015158152602001610179565b34801561032857600080fd5b50610123610337366004610e31565b610bc4565b34801561034857600080fd5b50610165610357366004610e31565b610c3d565b610364610d72565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b61038e610d72565b60038054911515600160a01b0260ff60a01b19909216919091179055565b6001600160a01b03811660009081526001602052604081205460ff16818160028111156103db576103db610edb565b0361044957826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610442919061115e565b9392505050565b600181600281111561045d5761045d610edb565b036104a057826001600160a01b031663aaf10f426040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b60028160028111156104b4576104b4610edb565b03610518576003546001600160a01b0384811660009081526002602052604090819020905163bf40fac160e01b8152919092169163bf40fac1916104fb91906004016111af565b602060405180830381865afa15801561041e573d6000803e3d6000fd5b60405162461bcd60e51b815260206004820152601e60248201527f50726f787941646d696e3a20756e6b6e6f776e2070726f78792074797065000060448201526064015b60405180910390fd5b50919050565b600260205260009081526040902080546105849061117b565b80601f01602080910402602001604051908101604052809291908181526020018280546105b09061117b565b80156105fd5780601f106105d2576101008083540402835291602001916105fd565b820191906000526020600020905b8154815290600101906020018083116105e057829003601f168201915b505050505081565b61060d610d72565b6106176000610dcc565b565b610621610d72565b6001600160a01b03821660009081526001602052604081205460ff169081600281111561065057610650610edb565b036106b6576040516308f2839760e41b81526001600160a01b038381166004830152841690638f283970906024015b600060405180830381600087803b15801561069957600080fd5b505af11580156106ad573d6000803e3d6000fd5b50505050505050565b60018160028111156106ca576106ca610edb565b036106fd576040516313af403560e01b81526001600160a01b0383811660048301528416906313af40359060240161067f565b600281600281111561071157610711610edb565b036105185760035460405163f2fde38b60e01b81526001600160a01b0384811660048301529091169063f2fde38b9060240161067f565b505050565b610755610d72565b6001600160a01b03821660009081526002602052604090206107488282611280565b61077f610d72565b6001600160a01b03821660009081526001602081905260409091208054839260ff19909116908360028111156107b7576107b7610edb565b02179055505050565b6107c8610d72565b6001600160a01b03831660009081526001602052604081205460ff16908160028111156107f7576107f7610edb565b036108795760405163278f794360e11b81526001600160a01b03851690634f1ef28690349061082c9087908790600401611340565b60006040518083038185885af115801561084a573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610873919081019061136c565b5061094a565b6108838484610950565b6000846001600160a01b0316348460405161089e91906113e3565b60006040518083038185875af1925050503d80600081146108db576040519150601f19603f3d011682016040523d82523d6000602084013e6108e0565b606091505b50509050806109485760405162461bcd60e51b815260206004820152602e60248201527f50726f787941646d696e3a2063616c6c20746f2070726f78792061667465722060448201526d1d5c19dc9859194819985a5b195960921b606482015260840161055c565b505b50505050565b610958610d72565b6001600160a01b03821660009081526001602052604081205460ff169081600281111561098757610987610edb565b036109ba57604051631b2ce7f360e11b81526001600160a01b038381166004830152841690633659cfe69060240161067f565b60018160028111156109ce576109ce610edb565b03610a2757604051634d8587ed60e11b81527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60048201526001600160a01b038381166024830152841690639b0b0fda9060440161067f565b6002816002811115610a3b57610a3b610edb565b03610b4c576001600160a01b03831660009081526002602052604081208054610a639061117b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f9061117b565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050600354604051639b2ea4bd60e01b81529495506001600160a01b031693639b2ea4bd9350610b14925085915087906004016113ff565b600060405180830381600087803b158015610b2e57600080fd5b505af1158015610b42573d6000803e3d6000fd5b5050505050505050565b610748611429565b610b5c610d72565b600354604051639b2ea4bd60e01b81526001600160a01b0390911690639b2ea4bd90610b8e90859085906004016113ff565b600060405180830381600087803b158015610ba857600080fd5b505af1158015610bbc573d6000803e3d6000fd5b505050505050565b610bcc610d72565b6001600160a01b038116610c315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161055c565b610c3a81610dcc565b50565b6001600160a01b03811660009081526001602052604081205460ff1681816002811115610c6c57610c6c610edb565b03610caf57826001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b6001816002811115610cc357610cc3610edb565b03610d0657826001600160a01b031663893d20e86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b6002816002811115610d1a57610d1a610edb565b0361051857600360009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b6000546001600160a01b031633146106175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161055c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610c3a57600080fd5b600060208284031215610e4357600080fd5b813561044281610e1c565b600060208284031215610e6057600080fd5b8135801515811461044257600080fd5b60005b83811015610e8b578181015183820152602001610e73565b8381111561094a5750506000910152565b60008151808452610eb4816020860160208601610e70565b601f01601f19169290920160200192915050565b6020815260006104426020830184610e9c565b634e487b7160e01b600052602160045260246000fd5b6020810160038310610f1357634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215610f2c57600080fd5b8235610f3781610e1c565b91506020830135610f4781610e1c565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610f9157610f91610f52565b604052919050565b600067ffffffffffffffff821115610fb357610fb3610f52565b50601f01601f191660200190565b6000610fd4610fcf84610f99565b610f68565b9050828152838383011115610fe857600080fd5b828260208301376000602084830101529392505050565b600082601f83011261101057600080fd5b61044283833560208501610fc1565b6000806040838503121561103257600080fd5b823561103d81610e1c565b9150602083013567ffffffffffffffff81111561105957600080fd5b61106585828601610fff565b9150509250929050565b6000806040838503121561108257600080fd5b823561108d81610e1c565b9150602083013560038110610f4757600080fd5b6000806000606084860312156110b657600080fd5b83356110c181610e1c565b925060208401356110d181610e1c565b9150604084013567ffffffffffffffff8111156110ed57600080fd5b8401601f810186136110fe57600080fd5b61110d86823560208401610fc1565b9150509250925092565b6000806040838503121561112a57600080fd5b823567ffffffffffffffff81111561114157600080fd5b61114d85828601610fff565b9250506020830135610f4781610e1c565b60006020828403121561117057600080fd5b815161044281610e1c565b600181811c9082168061118f57607f821691505b60208210810361056557634e487b7160e01b600052602260045260246000fd5b60006020808352600084546111c38161117b565b808487015260406001808416600081146111e457600181146111fe5761122c565b60ff1985168984015283151560051b89018301955061122c565b896000528660002060005b858110156112245781548b8201860152908301908801611209565b8a0184019650505b509398975050505050505050565b601f82111561074857600081815260208120601f850160051c810160208610156112615750805b601f850160051c820191505b81811015610bbc5782815560010161126d565b815167ffffffffffffffff81111561129a5761129a610f52565b6112ae816112a8845461117b565b8461123a565b602080601f8311600181146112e357600084156112cb5750858301515b600019600386901b1c1916600185901b178555610bbc565b600085815260208120601f198616915b82811015611312578886015182559484019460019091019084016112f3565b50858210156113305787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038316815260406020820181905260009061136490830184610e9c565b949350505050565b60006020828403121561137e57600080fd5b815167ffffffffffffffff81111561139557600080fd5b8201601f810184136113a657600080fd5b80516113b4610fcf82610f99565b8181528560208385010111156113c957600080fd5b6113da826020830160208601610e70565b95945050505050565b600082516113f5818460208701610e70565b9190910192915050565b6040815260006114126040830185610e9c565b905060018060a01b03831660208301529392505050565b634e487b7160e01b600052600160045260246000fdfea2646970667358221220508581cad232a1bcf5a1d40375ad5dce201f7d6704c68857bdb30ea4f0274c4764736f6c634300080f0033000000000000000000000000833994eb0f293c4b314d94610cf2b5e57e061e41

Deployed Bytecode

0x6080604052600436106100fe5760003560e01c8063860f7cda1161009557806399a88ec41161006457806399a88ec4146102b25780639b2ea4bd146102d2578063b7947262146102f2578063f2fde38b1461031c578063f3b7dead1461033c57600080fd5b8063860f7cda146102415780638d52d4a0146102615780638da5cb5b146102815780639623609d1461029f57600080fd5b80633ab76e9f116100d15780633ab76e9f146101af5780636bd9f516146101cf578063715018a61461020c5780637eff275e1461022157600080fd5b80630652b57a1461010357806307c8f7b014610125578063204e1c7a14610145578063238181ae14610182575b600080fd5b34801561010f57600080fd5b5061012361011e366004610e31565b61035c565b005b34801561013157600080fd5b50610123610140366004610e4e565b610386565b34801561015157600080fd5b50610165610160366004610e31565b6103ac565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561018e57600080fd5b506101a261019d366004610e31565b61056b565b6040516101799190610ec8565b3480156101bb57600080fd5b50600354610165906001600160a01b031681565b3480156101db57600080fd5b506101ff6101ea366004610e31565b60016020526000908152604090205460ff1681565b6040516101799190610ef1565b34801561021857600080fd5b50610123610605565b34801561022d57600080fd5b5061012361023c366004610f19565b610619565b34801561024d57600080fd5b5061012361025c36600461101f565b61074d565b34801561026d57600080fd5b5061012361027c36600461106f565b610777565b34801561028d57600080fd5b506000546001600160a01b0316610165565b6101236102ad3660046110a1565b6107c0565b3480156102be57600080fd5b506101236102cd366004610f19565b610950565b3480156102de57600080fd5b506101236102ed366004611117565b610b54565b3480156102fe57600080fd5b50600354600160a01b900460ff166040519015158152602001610179565b34801561032857600080fd5b50610123610337366004610e31565b610bc4565b34801561034857600080fd5b50610165610357366004610e31565b610c3d565b610364610d72565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b61038e610d72565b60038054911515600160a01b0260ff60a01b19909216919091179055565b6001600160a01b03811660009081526001602052604081205460ff16818160028111156103db576103db610edb565b0361044957826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610442919061115e565b9392505050565b600181600281111561045d5761045d610edb565b036104a057826001600160a01b031663aaf10f426040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b60028160028111156104b4576104b4610edb565b03610518576003546001600160a01b0384811660009081526002602052604090819020905163bf40fac160e01b8152919092169163bf40fac1916104fb91906004016111af565b602060405180830381865afa15801561041e573d6000803e3d6000fd5b60405162461bcd60e51b815260206004820152601e60248201527f50726f787941646d696e3a20756e6b6e6f776e2070726f78792074797065000060448201526064015b60405180910390fd5b50919050565b600260205260009081526040902080546105849061117b565b80601f01602080910402602001604051908101604052809291908181526020018280546105b09061117b565b80156105fd5780601f106105d2576101008083540402835291602001916105fd565b820191906000526020600020905b8154815290600101906020018083116105e057829003601f168201915b505050505081565b61060d610d72565b6106176000610dcc565b565b610621610d72565b6001600160a01b03821660009081526001602052604081205460ff169081600281111561065057610650610edb565b036106b6576040516308f2839760e41b81526001600160a01b038381166004830152841690638f283970906024015b600060405180830381600087803b15801561069957600080fd5b505af11580156106ad573d6000803e3d6000fd5b50505050505050565b60018160028111156106ca576106ca610edb565b036106fd576040516313af403560e01b81526001600160a01b0383811660048301528416906313af40359060240161067f565b600281600281111561071157610711610edb565b036105185760035460405163f2fde38b60e01b81526001600160a01b0384811660048301529091169063f2fde38b9060240161067f565b505050565b610755610d72565b6001600160a01b03821660009081526002602052604090206107488282611280565b61077f610d72565b6001600160a01b03821660009081526001602081905260409091208054839260ff19909116908360028111156107b7576107b7610edb565b02179055505050565b6107c8610d72565b6001600160a01b03831660009081526001602052604081205460ff16908160028111156107f7576107f7610edb565b036108795760405163278f794360e11b81526001600160a01b03851690634f1ef28690349061082c9087908790600401611340565b60006040518083038185885af115801561084a573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610873919081019061136c565b5061094a565b6108838484610950565b6000846001600160a01b0316348460405161089e91906113e3565b60006040518083038185875af1925050503d80600081146108db576040519150601f19603f3d011682016040523d82523d6000602084013e6108e0565b606091505b50509050806109485760405162461bcd60e51b815260206004820152602e60248201527f50726f787941646d696e3a2063616c6c20746f2070726f78792061667465722060448201526d1d5c19dc9859194819985a5b195960921b606482015260840161055c565b505b50505050565b610958610d72565b6001600160a01b03821660009081526001602052604081205460ff169081600281111561098757610987610edb565b036109ba57604051631b2ce7f360e11b81526001600160a01b038381166004830152841690633659cfe69060240161067f565b60018160028111156109ce576109ce610edb565b03610a2757604051634d8587ed60e11b81527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60048201526001600160a01b038381166024830152841690639b0b0fda9060440161067f565b6002816002811115610a3b57610a3b610edb565b03610b4c576001600160a01b03831660009081526002602052604081208054610a639061117b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f9061117b565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050600354604051639b2ea4bd60e01b81529495506001600160a01b031693639b2ea4bd9350610b14925085915087906004016113ff565b600060405180830381600087803b158015610b2e57600080fd5b505af1158015610b42573d6000803e3d6000fd5b5050505050505050565b610748611429565b610b5c610d72565b600354604051639b2ea4bd60e01b81526001600160a01b0390911690639b2ea4bd90610b8e90859085906004016113ff565b600060405180830381600087803b158015610ba857600080fd5b505af1158015610bbc573d6000803e3d6000fd5b505050505050565b610bcc610d72565b6001600160a01b038116610c315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161055c565b610c3a81610dcc565b50565b6001600160a01b03811660009081526001602052604081205460ff1681816002811115610c6c57610c6c610edb565b03610caf57826001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b6001816002811115610cc357610cc3610edb565b03610d0657826001600160a01b031663893d20e86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b6002816002811115610d1a57610d1a610edb565b0361051857600360009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561041e573d6000803e3d6000fd5b6000546001600160a01b031633146106175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161055c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610c3a57600080fd5b600060208284031215610e4357600080fd5b813561044281610e1c565b600060208284031215610e6057600080fd5b8135801515811461044257600080fd5b60005b83811015610e8b578181015183820152602001610e73565b8381111561094a5750506000910152565b60008151808452610eb4816020860160208601610e70565b601f01601f19169290920160200192915050565b6020815260006104426020830184610e9c565b634e487b7160e01b600052602160045260246000fd5b6020810160038310610f1357634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215610f2c57600080fd5b8235610f3781610e1c565b91506020830135610f4781610e1c565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610f9157610f91610f52565b604052919050565b600067ffffffffffffffff821115610fb357610fb3610f52565b50601f01601f191660200190565b6000610fd4610fcf84610f99565b610f68565b9050828152838383011115610fe857600080fd5b828260208301376000602084830101529392505050565b600082601f83011261101057600080fd5b61044283833560208501610fc1565b6000806040838503121561103257600080fd5b823561103d81610e1c565b9150602083013567ffffffffffffffff81111561105957600080fd5b61106585828601610fff565b9150509250929050565b6000806040838503121561108257600080fd5b823561108d81610e1c565b9150602083013560038110610f4757600080fd5b6000806000606084860312156110b657600080fd5b83356110c181610e1c565b925060208401356110d181610e1c565b9150604084013567ffffffffffffffff8111156110ed57600080fd5b8401601f810186136110fe57600080fd5b61110d86823560208401610fc1565b9150509250925092565b6000806040838503121561112a57600080fd5b823567ffffffffffffffff81111561114157600080fd5b61114d85828601610fff565b9250506020830135610f4781610e1c565b60006020828403121561117057600080fd5b815161044281610e1c565b600181811c9082168061118f57607f821691505b60208210810361056557634e487b7160e01b600052602260045260246000fd5b60006020808352600084546111c38161117b565b808487015260406001808416600081146111e457600181146111fe5761122c565b60ff1985168984015283151560051b89018301955061122c565b896000528660002060005b858110156112245781548b8201860152908301908801611209565b8a0184019650505b509398975050505050505050565b601f82111561074857600081815260208120601f850160051c810160208610156112615750805b601f850160051c820191505b81811015610bbc5782815560010161126d565b815167ffffffffffffffff81111561129a5761129a610f52565b6112ae816112a8845461117b565b8461123a565b602080601f8311600181146112e357600084156112cb5750858301515b600019600386901b1c1916600185901b178555610bbc565b600085815260208120601f198616915b82811015611312578886015182559484019460019091019084016112f3565b50858210156113305787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038316815260406020820181905260009061136490830184610e9c565b949350505050565b60006020828403121561137e57600080fd5b815167ffffffffffffffff81111561139557600080fd5b8201601f810184136113a657600080fd5b80516113b4610fcf82610f99565b8181528560208385010111156113c957600080fd5b6113da826020830160208601610e70565b95945050505050565b600082516113f5818460208701610e70565b9190910192915050565b6040815260006114126040830185610e9c565b905060018060a01b03831660208301529392505050565b634e487b7160e01b600052600160045260246000fdfea2646970667358221220508581cad232a1bcf5a1d40375ad5dce201f7d6704c68857bdb30ea4f0274c4764736f6c634300080f0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000833994eb0f293c4b314d94610cf2b5e57e061e41

-----Decoded View---------------
Arg [0] : _owner (address): 0x833994EB0F293C4B314D94610cf2b5E57E061e41

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000833994eb0f293c4b314d94610cf2b5e57e061e41


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.