ETH Price: $2,894.80 (-1.39%)

Contract

0xc560A17dD9A7F2A513B25cEc160AC11A66BB79C1

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 12 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
213422982025-07-09 19:50:57200 days ago1752090657
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
213421902025-07-09 19:49:09200 days ago1752090549
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
213421302025-07-09 19:48:09200 days ago1752090489
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206548832025-07-01 20:54:02208 days ago1751403242
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206548082025-07-01 20:52:47208 days ago1751403167
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206547642025-07-01 20:52:03208 days ago1751403123
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206538092025-07-01 20:36:08208 days ago1751402168
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206537342025-07-01 20:34:53208 days ago1751402093
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206536912025-07-01 20:34:10208 days ago1751402050
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206529532025-07-01 20:21:52208 days ago1751401312
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206528772025-07-01 20:20:36208 days ago1751401236
0xc560A17d...A66BB79C1
 Contract Creation0 ETH
206528332025-07-01 20:19:52208 days ago1751401192
0xc560A17d...A66BB79C1
 Contract Creation0 ETH

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xb820f2Ea...D9B849878
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
BeaconFactoryAdmin

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IUpgradeableBeacon, IBeaconFactory, IBeaconFactoryAdmin} from "./IBeaconFactory.sol";
import {UpgradeableBeaconForFactory} from "./UpgradeableBeaconForFactory.sol";
import {IVersionable} from "../../interfaces/IVersionable.sol";

/**
 * @title BeaconFactoryAdmin
 * @notice Contract used to manage the upgrade of beacon factory implementations.
 */
contract BeaconFactoryAdmin is IBeaconFactoryAdmin, Ownable, IVersionable {
    /**
     * @notice Changelog
     * 1.1.0 - Added isAdminForUpgradeableBeacon helper function
     */
    string public constant override VERSION = "1.1.0";

    /// @notice Maximum duration for which upgrades can be locked
    uint256 public constant MAX_LOCK_DURATION = 365 days;

    /// -----------------------------------------------------------------------
    /// Storage variables
    /// -----------------------------------------------------------------------

    /// @notice Address of the SecureTimelockController to handle upgrades
    /// @dev Recommended to be at least 72 hours
    address public override(IBeaconFactoryAdmin) secureTimelockController;

    /// @notice Timestamp until which all upgrades are locked
    uint256 public beaconUpgradesLockedUntilTimestamp = 0;

    /// @notice Trusted controllers that can call the transferSecureTimelockController function
    mapping(address => bool) public isTrustedTimelockController;

    address[] public deployedBeaconFactories;

    /// -----------------------------------------------------------------------
    /// Events
    /// -----------------------------------------------------------------------

    event TransferSecureTimelockController(address oldSecureTimelockController, address newSecureTimelockController);
    event SetLockTimestamp(uint256 lockTimestamp);
    event TrustedControllerSet(address controller, bool isTrusted);
    event DeployedBeaconFactory(address upgradeableBeacon);

    /// -----------------------------------------------------------------------
    /// Errors
    /// -----------------------------------------------------------------------

    error OnlySecureTimelock();
    error BeaconUpgradeIsLocked();
    error FactoryAlreadyLocked(address _factory);
    error AddressZero();
    error UnauthorizedController(address _controller);
    error DurationAboveMax(uint256 _duration, uint256 _maxDuration);
    event SetLockTimestamp(uint256 oldLockTimestamp, uint256 newLockTimestamp);

    /// -----------------------------------------------------------------------
    /// Constructor & Initializer
    /// -----------------------------------------------------------------------

    constructor(address _owner, address _secureTimelockController) Ownable() {
        transferOwnership(_owner);

        if (_secureTimelockController == address(0)) {
            revert AddressZero();
        }
        secureTimelockController = _secureTimelockController;
    }

    /// -----------------------------------------------------------------------
    /// Modifiers & Functions
    /// -----------------------------------------------------------------------

    modifier onlySecureTimelock() {
        _validateSecureTimelockController();
        _;
    }

    modifier canPerformBeaconUpgrade() {
        if (block.timestamp < beaconUpgradesLockedUntilTimestamp) {
            revert BeaconUpgradeIsLocked();
        }
        _validateSecureTimelockController();
        _;
    }

    function _validateSecureTimelockController() internal view {
        if (msg.sender != secureTimelockController) {
            revert OnlySecureTimelock();
        }
    }

    /// -----------------------------------------------------------------------
    /// Secure TimelockController Functions
    /// -----------------------------------------------------------------------

    function transferSecureTimelockController(address _newSecureTimelockController) external onlySecureTimelock {
        if (!isTrustedTimelockController[_newSecureTimelockController]) {
            revert UnauthorizedController(_newSecureTimelockController);
        }
        emit TransferSecureTimelockController(secureTimelockController, _newSecureTimelockController);
        secureTimelockController = _newSecureTimelockController;
    }

    /// @notice Set the beacon implementation for a given factory
    /// @dev WARN this function affects the contract code for all contracts created by the factory
    function upgradeBeaconFactoryImplementation(
        IBeaconFactory _beaconFactory,
        address _newBeaconImplementation
    ) external override canPerformBeaconUpgrade {
        address upgradeableBeaconForFactory = _beaconFactory.getUpgradeableBeaconForFactory();
        IUpgradeableBeacon(upgradeableBeaconForFactory).upgradeTo(_newBeaconImplementation);
    } 
    
    /// @notice Upgrades the implementation of an upgradeable beacon
    /// @param _upgradeableBeacon The address of the upgradeable beacon
    /// @param _newBeaconImplementation The address of the new beacon implementation
    function upgradeBeaconImplementation(
        IUpgradeableBeacon _upgradeableBeacon,
        address _newBeaconImplementation
    ) external override canPerformBeaconUpgrade {
        _upgradeableBeacon.upgradeTo(_newBeaconImplementation);
    }

    /// -----------------------------------------------------------------------
    /// Admin Functions
    /// -----------------------------------------------------------------------

    /// @notice Set a duration for which all upgrades are locked or extend the current lock.
    /// @dev If the current lock has expired, the new lock duration starts from the current block timestamp.
    ///      If the lock is still active, the new duration is added to the existing lock period.
    /// @param _duration The duration (in seconds) to lock upgrades.
    function lockBeaconUpgradesForDuration(uint256 _duration) external onlyOwner {
        if (_duration > MAX_LOCK_DURATION) {
            revert DurationAboveMax(_duration, MAX_LOCK_DURATION);
        }

        uint256 currentLockTimestamp = beaconUpgradesLockedUntilTimestamp;

        // If the current lock has expired, start from `block.timestamp`
        if (currentLockTimestamp < block.timestamp) {
            currentLockTimestamp = block.timestamp;
        }

        // Extend the lock
        uint256 newLockTimestamp = currentLockTimestamp + _duration;

        beaconUpgradesLockedUntilTimestamp = newLockTimestamp;

        emit SetLockTimestamp(currentLockTimestamp, newLockTimestamp);
    }

    function setTrustedTimelockController(address _controller, bool _isTrusted) external onlyOwner {
        emit TrustedControllerSet(_controller, _isTrusted);
        isTrustedTimelockController[_controller] = _isTrusted;
    }

    /// -----------------------------------------------------------------------
    /// Upgradeable Beacon Helper
    /// -----------------------------------------------------------------------

    /// @notice Check if the caller is the admin of the upgradeable beacon
    /// @param _upgradeableBeacon The address of the upgradeable beacon
    /// @return True if the caller is the admin of the upgradeable beacon, false otherwise
    function isAdminForUpgradeableBeacon(address _upgradeableBeacon) external view override returns (bool) {
        return Ownable(_upgradeableBeacon).owner() == address(this);
    }

    /// @notice Returns the length of the deployed beacon factories array
    /// @return The length of the deployed beacon factories array
    function getDeployedBeaconFactoriesLength() external view returns (uint256) {
        return deployedBeaconFactories.length;
    }

    /// @notice Deploys an implementation of an upgradeable beacon with the beacon admin set to this contract.
    function deployUpgradeableBeaconForFactory(
        string memory _beaconFactoryName,
        IBeaconFactory _beaconFactory,
        address _startingBeaconImplementation
    ) external override returns (IUpgradeableBeacon upgradeableBeacon) {
        address beaconFactoryAdmin = address(this);

        upgradeableBeacon = new UpgradeableBeaconForFactory(
            _beaconFactoryName,
            beaconFactoryAdmin,
            address(_beaconFactory),
            _startingBeaconImplementation
        );

        deployedBeaconFactories.push(address(upgradeableBeacon));
        emit DeployedBeaconFactory(address(upgradeableBeacon));

        return upgradeableBeacon;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeacon {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import {IBeacon} from "@openzeppelin/contracts/proxy/beacon/IBeacon.sol";

/// @notice Interface for the contract which stores the implementation address for a beacon.
interface IUpgradeableBeacon is IBeacon {
    function upgradeTo(address newImplementation) external;
}

/// @notice Interface for a factory contract which deploys BeaconProxy contracts which reference the implementation stored in an UpgradeableBeacon.
interface IBeaconFactory {
    event BeaconProxyData(address indexed beaconProxy, bytes implementationData);

    function isValidateBeaconImplementation(address _implementation) external view returns (bool);

    /// @notice Address of the immutable contract which stores the implementation address for a beacon.
    function getUpgradeableBeaconForFactory() external view returns (address);

    /// @notice Address of the implementation which will be used for the deployed BeaconProxy contracts.
    function getBeaconProxyImplementationForFactory() external view returns (address);
}

/// @notice Interface for the contract which manages the upgrade of beacon factory implementations.
/// @dev This architecture is built with security in mind. The UpgradeableBeacon and BeaconFactoryAdmin are
///  intended on being immutable
interface IBeaconFactoryAdmin {
    /// @notice Address which can perform BeaconProxy upgrades to the UpgradeableBeaconForFactory.
    function secureTimelockController() external view returns (address);

    /// @notice Set the beacon implementation for a given factory
    /// @dev WARN this function affects the contract code for all contracts created by the factory
    function upgradeBeaconFactoryImplementation(
        IBeaconFactory _beaconFactory,
        address _newBeaconImplementation
    ) external;

    /// @notice Upgrades the implementation of an upgradeable beacon
    /// @param _upgradeableBeacon The address of the upgradeable beacon
    /// @param _newBeaconImplementation The address of the new beacon implementation
    function upgradeBeaconImplementation(
        IUpgradeableBeacon _upgradeableBeacon,
        address _newBeaconImplementation
    ) external;

    /// @notice Deploys an UpgradeableBeaconForFactory for the factory.
    function deployUpgradeableBeaconForFactory(
        string memory _beaconFactoryName,
        IBeaconFactory _beaconFactory,
        address _startingBeaconImplementation
    ) external returns (IUpgradeableBeacon);

    /// @notice Returns true if the caller is the admin for the upgradeable beacon.
    function isAdminForUpgradeableBeacon(address _upgradeableBeacon) external view returns (bool);
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {IUpgradeableBeacon, IBeacon, IBeaconFactory} from "./IBeaconFactory.sol";

/**
 * @title UpgradeableBeaconForFactory
 * @notice Immutable contract which can validate and upgrade the implementation beacon proxies for a factory.
 *   The rationale for this contract is that a factory can be upgradable, while keeping the beacon immutable.
 * @dev OZ's UpgradeableBeacon didn't quite work for the use case.
 */
contract UpgradeableBeaconForFactory is IUpgradeableBeacon, Ownable {
    /// -----------------------------------------------------------------------
    /// Storage variables
    /// -----------------------------------------------------------------------

    /// @notice The name of the beacon factory for identification
    string public beaconFactoryName;

    /// @notice The factory that created this beacon
    IBeaconFactory public immutable beaconFactory;

    /// @notice The address of the current implementation
    address private __beaconImplementation;

    /// -----------------------------------------------------------------------
    /// Events
    /// -----------------------------------------------------------------------

    /// @dev Emitted when the implementation returned by the beacon is changed.
    event Upgraded(address indexed implementation);
    event BeaconUpgraded(address indexed oldImplementation, address indexed newImplementation);

    /// -----------------------------------------------------------------------
    /// Errors
    /// -----------------------------------------------------------------------

    error NotAContract(address _address);
    error AddressZero(string addressLabel);
    error InvalidBeaconImplementation(address _implementation);

    /// -----------------------------------------------------------------------
    /// Constructor
    /// -----------------------------------------------------------------------


    /// @dev To be deployed be a factory on initialization.
    constructor(
        string memory _beaconFactoryName,
        address _beaconFactoryAdmin,
        address _beaconFactory,
        address _startingBeaconImplementation
    ) Ownable() {
        if(_beaconFactoryAdmin == address(0)) {
            revert AddressZero("_beaconFactoryAdmin");
        }
        beaconFactoryName = _beaconFactoryName;
        beaconFactory = IBeaconFactory(_beaconFactory);

        _setBeaconImplementation(_startingBeaconImplementation, true);
        _transferOwnership(_beaconFactoryAdmin);
    }

    /// -----------------------------------------------------------------------
    /// IBeacon Interface
    /// -----------------------------------------------------------------------

    function implementation() public view override(IBeacon) returns (address) {
        return __beaconImplementation;
    }

    /// -----------------------------------------------------------------------
    /// Upgrade Functions - onlyOwner
    /// -----------------------------------------------------------------------

    /// @notice Upgrades the beacon to a new implementation.
    /// @dev WARN This function MUST be protected behind a BeaconFactoryAdmin contract which MUST be protected by a 72 hour timelock.
    /// - For a factory, this update will update all contracts deployed by the factory.
    function upgradeTo(address newImplementation) public override(IUpgradeableBeacon) onlyOwner {
        _setBeaconImplementation(newImplementation, false);
    }

    /// @dev On initialization, the factory is not fully deployed and MUST validate the beacon implementation.
    function _setBeaconImplementation(address _newBeaconImplementation, bool _isInit) internal {
        if (!Address.isContract(_newBeaconImplementation)) {
            revert NotAContract(_newBeaconImplementation);
        }

        /// @dev On initialization, the factory is not fully deployed and MUST validate the beacon implementation.
        if (!_isInit && !beaconFactory.isValidateBeaconImplementation(_newBeaconImplementation)) {
            revert InvalidBeaconImplementation(_newBeaconImplementation);
        }
        emit BeaconUpgraded(__beaconImplementation, _newBeaconImplementation);
        emit Upgraded(_newBeaconImplementation);

        __beaconImplementation = _newBeaconImplementation;
    }
}

File 8 of 8 : IVersionable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IVersionable {
    function VERSION() external view returns (string memory);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_secureTimelockController","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressZero","type":"error"},{"inputs":[],"name":"BeaconUpgradeIsLocked","type":"error"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_maxDuration","type":"uint256"}],"name":"DurationAboveMax","type":"error"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"}],"name":"FactoryAlreadyLocked","type":"error"},{"inputs":[],"name":"OnlySecureTimelock","type":"error"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"UnauthorizedController","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"upgradeableBeacon","type":"address"}],"name":"DeployedBeaconFactory","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"lockTimestamp","type":"uint256"}],"name":"SetLockTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldLockTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newLockTimestamp","type":"uint256"}],"name":"SetLockTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldSecureTimelockController","type":"address"},{"indexed":false,"internalType":"address","name":"newSecureTimelockController","type":"address"}],"name":"TransferSecureTimelockController","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"controller","type":"address"},{"indexed":false,"internalType":"bool","name":"isTrusted","type":"bool"}],"name":"TrustedControllerSet","type":"event"},{"inputs":[],"name":"MAX_LOCK_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beaconUpgradesLockedUntilTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_beaconFactoryName","type":"string"},{"internalType":"contract IBeaconFactory","name":"_beaconFactory","type":"address"},{"internalType":"address","name":"_startingBeaconImplementation","type":"address"}],"name":"deployUpgradeableBeaconForFactory","outputs":[{"internalType":"contract IUpgradeableBeacon","name":"upgradeableBeacon","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deployedBeaconFactories","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDeployedBeaconFactoriesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_upgradeableBeacon","type":"address"}],"name":"isAdminForUpgradeableBeacon","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isTrustedTimelockController","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"lockBeaconUpgradesForDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secureTimelockController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"},{"internalType":"bool","name":"_isTrusted","type":"bool"}],"name":"setTrustedTimelockController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSecureTimelockController","type":"address"}],"name":"transferSecureTimelockController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBeaconFactory","name":"_beaconFactory","type":"address"},{"internalType":"address","name":"_newBeaconImplementation","type":"address"}],"name":"upgradeBeaconFactoryImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IUpgradeableBeacon","name":"_upgradeableBeacon","type":"address"},{"internalType":"address","name":"_newBeaconImplementation","type":"address"}],"name":"upgradeBeaconImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405260006002553480156200001657600080fd5b506040516200193d3803806200193d8339810160408190526200003991620001ec565b62000044336200009e565b6200004f82620000ee565b6001600160a01b0381166200007757604051639fabe1c160e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b03929092169190911790555062000224565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620000f862000171565b6001600160a01b038116620001635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200016e816200009e565b50565b6000546001600160a01b03163314620001cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200015a565b565b80516001600160a01b0381168114620001e757600080fd5b919050565b600080604083850312156200020057600080fd5b6200020b83620001cf565b91506200021b60208401620001cf565b90509250929050565b61170980620002346000396000f3fe60806040523480156200001157600080fd5b5060043610620001215760003560e01c8063715018a611620000af578063d9a61411116200007a578063d9a614111462000239578063de279ea0146200025f578063f2fde38b1462000276578063fa6ece2a146200028d578063ffa1ad7414620002a457600080fd5b8063715018a614620001fc57806381a5f79014620002065780638da5cb5b146200021d578063c26934dc146200022f57600080fd5b80634859a6d711620000f05780634859a6d7146200019d5780634f1bfc9e14620001c5578063570973bd14620001d15780635b63b5f114620001e857600080fd5b80630730080514620001265780630c995484146200013d5780633df3183e146200016d5780633fee2fba1462000184575b600080fd5b6004545b6040519081526020015b60405180910390f35b620001546200014e36600462000932565b620002d8565b6040516001600160a01b03909116815260200162000134565b620001546200017e3660046200098a565b62000303565b6200019b6200019536600462000a6a565b620003d4565b005b620001b4620001ae36600462000a6a565b62000491565b604051901515815260200162000134565b6200012a6301e1338081565b6200019b620001e236600462000932565b62000512565b60015462000154906001600160a01b031681565b6200019b620005b3565b6200019b6200021736600462000a91565b620005cb565b6000546001600160a01b031662000154565b6200012a60025481565b620001b46200024a36600462000a6a565b60036020526000908152604090205460ff1681565b6200019b6200027036600462000a91565b6200065a565b6200019b6200028736600462000a6a565b62000755565b6200019b6200029e36600462000acf565b620007d4565b620002c9604051806040016040528060058152602001640312e312e360dc1b81525081565b60405162000134919062000b56565b60048181548110620002e957600080fd5b6000918252602090912001546001600160a01b0316905081565b600080309050848185856040516200031b9062000924565b6200032a949392919062000b6b565b604051809103906000f08015801562000347573d6000803e3d6000fd5b50600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0383169081179091556040519081529092507fc696fcf80133b0bb0bd7b289a496eb3c093e38b5c3926217f3d962bc37b437fa9060200160405180910390a1509392505050565b620003de6200084c565b6001600160a01b03811660009081526003602052604090205460ff1662000428576040516311ca4b2760e31b81526001600160a01b03821660048201526024015b60405180910390fd5b600154604080516001600160a01b03928316815291831660208301527f0736d349c7989fb8e04db90f29dd89b35f0eea4ad78ad38ff9308e11b73ddf30910160405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000306001600160a01b0316826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620004dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000502919062000ba9565b6001600160a01b03161492915050565b6200051c62000878565b6301e13380811115620005505760405163ebb76f8960e01b8152600481018290526301e1338060248201526044016200041f565b600254428110156200055f5750425b60006200056d838362000bc9565b600281905560408051848152602081018390529192507f4ca28ec59507fb93cb4624146e0e9d4b6030c622c2490d3c7e25cfe6e2a08ded910160405180910390a1505050565b620005bd62000878565b620005c96000620008d4565b565b600254421015620005ef57604051637351adab60e11b815260040160405180910390fd5b620005f96200084c565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe690602401600060405180830381600087803b1580156200063d57600080fd5b505af115801562000652573d6000803e3d6000fd5b505050505050565b6002544210156200067e57604051637351adab60e11b815260040160405180910390fd5b620006886200084c565b6000826001600160a01b0316637ea5bbc96040518163ffffffff1660e01b8152600401602060405180830381865afa158015620006c9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006ef919062000ba9565b604051631b2ce7f360e11b81526001600160a01b03848116600483015291925090821690633659cfe690602401600060405180830381600087803b1580156200073757600080fd5b505af11580156200074c573d6000803e3d6000fd5b50505050505050565b6200075f62000878565b6001600160a01b038116620007c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200041f565b620007d181620008d4565b50565b620007de62000878565b604080516001600160a01b038416815282151560208201527f58486b82a66d79d32500e69ee9ede2dd85f18e4bc4ff75903bb148fdf1162331910160405180910390a16001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b6001546001600160a01b03163314620005c957604051631906885360e01b815260040160405180910390fd5b6000546001600160a01b03163314620005c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200041f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ae38062000bf183390190565b6000602082840312156200094557600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620007d157600080fd5b8035620009858162000962565b919050565b600080600060608486031215620009a057600080fd5b833567ffffffffffffffff80821115620009b957600080fd5b818601915086601f830112620009ce57600080fd5b813581811115620009e357620009e36200094c565b604051601f8201601f19908116603f0116810190838211818310171562000a0e5762000a0e6200094c565b8160405282815289602084870101111562000a2857600080fd5b82602086016020830137600060208483010152809750505050505062000a516020850162000978565b915062000a616040850162000978565b90509250925092565b60006020828403121562000a7d57600080fd5b813562000a8a8162000962565b9392505050565b6000806040838503121562000aa557600080fd5b823562000ab28162000962565b9150602083013562000ac48162000962565b809150509250929050565b6000806040838503121562000ae357600080fd5b823562000af08162000962565b91506020830135801515811462000ac457600080fd5b6000815180845260005b8181101562000b2e5760208185018101518683018201520162000b10565b8181111562000b41576000602083870101525b50601f01601f19169290920160200192915050565b60208152600062000a8a602083018462000b06565b60808152600062000b80608083018762000b06565b6001600160a01b0395861660208401529385166040830152509216606090920191909152919050565b60006020828403121562000bbc57600080fd5b815162000a8a8162000962565b6000821982111562000beb57634e487b7160e01b600052601160045260246000fd5b50019056fe60a06040523480156200001157600080fd5b5060405162000ae338038062000ae3833981016040819052620000349162000392565b6200003f33620000e1565b6001600160a01b0383166200009c5760405163c5dbe6e760e01b815260206004820152601360248201527f5f626561636f6e466163746f727941646d696e0000000000000000000000000060448201526064015b60405180910390fd5b8351620000b1906001906020870190620002b9565b506001600160a01b038216608052620000cc81600162000131565b620000d783620000e1565b505050506200050f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200014782620002aa60201b620002601760201c565b62000171576040516322a2d07b60e21b81526001600160a01b038316600482015260240162000093565b80158015620001ee5750608051604051636eae650160e01b81526001600160a01b03848116600483015290911690636eae650190602401602060405180830381865afa158015620001c6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ec9190620004a8565b155b156200021957604051634f9da6af60e11b81526001600160a01b038316600482015260240162000093565b6002546040516001600160a01b038085169216907fc945ae30494f6ee00b9e4bf1fec5653ced7244b559666f44f9a88ea732e957b090600090a36040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03163b151590565b828054620002c790620004d3565b90600052602060002090601f016020900481019282620002eb576000855562000336565b82601f106200030657805160ff191683800117855562000336565b8280016001018555821562000336579182015b828111156200033657825182559160200191906001019062000319565b506200034492915062000348565b5090565b5b8082111562000344576000815560010162000349565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200038d57600080fd5b919050565b60008060008060808587031215620003a957600080fd5b84516001600160401b0380821115620003c157600080fd5b818701915087601f830112620003d657600080fd5b815181811115620003eb57620003eb6200035f565b604051601f8201601f19908116603f011681019083821181831017156200041657620004166200035f565b81604052828152602093508a848487010111156200043357600080fd5b600091505b8282101562000457578482018401518183018501529083019062000438565b82821115620004695760008484830101525b97506200047b91505087820162000375565b945050506200048d6040860162000375565b91506200049d6060860162000375565b905092959194509250565b600060208284031215620004bb57600080fd5b81518015158114620004cc57600080fd5b9392505050565b600181811c90821680620004e857607f821691505b6020821081036200050957634e487b7160e01b600052602260045260246000fd5b50919050565b6080516105b262000531600039600081816087015261032401526105b26000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80635c60da1b1161005b5780635c60da1b146100f0578063715018a6146101015780638da5cb5b14610109578063f2fde38b1461011a57600080fd5b806329f694ee146100825780633659cfe6146100c65780633de5250b146100db575b600080fd5b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d96100d436600461049b565b61012d565b005b6100e3610143565b6040516100bd91906104cb565b6002546001600160a01b03166100a9565b6100d96101d1565b6000546001600160a01b03166100a9565b6100d961012836600461049b565b6101e5565b61013561026f565b6101408160006102c9565b50565b6001805461015090610520565b80601f016020809104026020016040519081016040528092919081815260200182805461017c90610520565b80156101c95780601f1061019e576101008083540402835291602001916101c9565b820191906000526020600020905b8154815290600101906020018083116101ac57829003601f168201915b505050505081565b6101d961026f565b6101e3600061044b565b565b6101ed61026f565b6001600160a01b0381166102575760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6101408161044b565b6001600160a01b03163b151590565b6000546001600160a01b031633146101e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024e565b6001600160a01b0382163b6102fc576040516322a2d07b60e21b81526001600160a01b038316600482015260240161024e565b801580156103915750604051636eae650160e01b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000001690636eae650190602401602060405180830381865afa15801561036b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038f919061055a565b155b156103ba57604051634f9da6af60e11b81526001600160a01b038316600482015260240161024e565b6002546040516001600160a01b038085169216907fc945ae30494f6ee00b9e4bf1fec5653ced7244b559666f44f9a88ea732e957b090600090a36040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250600280546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156104ad57600080fd5b81356001600160a01b03811681146104c457600080fd5b9392505050565b600060208083528351808285015260005b818110156104f8578581018301518582016040015282016104dc565b8181111561050a576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061053457607f821691505b60208210810361055457634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561056c57600080fd5b815180151581146104c457600080fdfea2646970667358221220d1d33054f24b72e55d7ca141f73fdf553a7aac800218b8efe28db33134c4e8a964736f6c634300080d0033a2646970667358221220c38e9fb60b465470fea6ee6c12ef9b01d6445cf7431a3c2a270a60ed1978ca2564736f6c634300080d0033000000000000000000000000410303943dc392631fb202f429c363dea1feb2e20000000000000000000000007fb2fc3b00499d98949495e2eeaba00e673cfbe6

Deployed Bytecode

0x60806040523480156200001157600080fd5b5060043610620001215760003560e01c8063715018a611620000af578063d9a61411116200007a578063d9a614111462000239578063de279ea0146200025f578063f2fde38b1462000276578063fa6ece2a146200028d578063ffa1ad7414620002a457600080fd5b8063715018a614620001fc57806381a5f79014620002065780638da5cb5b146200021d578063c26934dc146200022f57600080fd5b80634859a6d711620000f05780634859a6d7146200019d5780634f1bfc9e14620001c5578063570973bd14620001d15780635b63b5f114620001e857600080fd5b80630730080514620001265780630c995484146200013d5780633df3183e146200016d5780633fee2fba1462000184575b600080fd5b6004545b6040519081526020015b60405180910390f35b620001546200014e36600462000932565b620002d8565b6040516001600160a01b03909116815260200162000134565b620001546200017e3660046200098a565b62000303565b6200019b6200019536600462000a6a565b620003d4565b005b620001b4620001ae36600462000a6a565b62000491565b604051901515815260200162000134565b6200012a6301e1338081565b6200019b620001e236600462000932565b62000512565b60015462000154906001600160a01b031681565b6200019b620005b3565b6200019b6200021736600462000a91565b620005cb565b6000546001600160a01b031662000154565b6200012a60025481565b620001b46200024a36600462000a6a565b60036020526000908152604090205460ff1681565b6200019b6200027036600462000a91565b6200065a565b6200019b6200028736600462000a6a565b62000755565b6200019b6200029e36600462000acf565b620007d4565b620002c9604051806040016040528060058152602001640312e312e360dc1b81525081565b60405162000134919062000b56565b60048181548110620002e957600080fd5b6000918252602090912001546001600160a01b0316905081565b600080309050848185856040516200031b9062000924565b6200032a949392919062000b6b565b604051809103906000f08015801562000347573d6000803e3d6000fd5b50600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0383169081179091556040519081529092507fc696fcf80133b0bb0bd7b289a496eb3c093e38b5c3926217f3d962bc37b437fa9060200160405180910390a1509392505050565b620003de6200084c565b6001600160a01b03811660009081526003602052604090205460ff1662000428576040516311ca4b2760e31b81526001600160a01b03821660048201526024015b60405180910390fd5b600154604080516001600160a01b03928316815291831660208301527f0736d349c7989fb8e04db90f29dd89b35f0eea4ad78ad38ff9308e11b73ddf30910160405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000306001600160a01b0316826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620004dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000502919062000ba9565b6001600160a01b03161492915050565b6200051c62000878565b6301e13380811115620005505760405163ebb76f8960e01b8152600481018290526301e1338060248201526044016200041f565b600254428110156200055f5750425b60006200056d838362000bc9565b600281905560408051848152602081018390529192507f4ca28ec59507fb93cb4624146e0e9d4b6030c622c2490d3c7e25cfe6e2a08ded910160405180910390a1505050565b620005bd62000878565b620005c96000620008d4565b565b600254421015620005ef57604051637351adab60e11b815260040160405180910390fd5b620005f96200084c565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe690602401600060405180830381600087803b1580156200063d57600080fd5b505af115801562000652573d6000803e3d6000fd5b505050505050565b6002544210156200067e57604051637351adab60e11b815260040160405180910390fd5b620006886200084c565b6000826001600160a01b0316637ea5bbc96040518163ffffffff1660e01b8152600401602060405180830381865afa158015620006c9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006ef919062000ba9565b604051631b2ce7f360e11b81526001600160a01b03848116600483015291925090821690633659cfe690602401600060405180830381600087803b1580156200073757600080fd5b505af11580156200074c573d6000803e3d6000fd5b50505050505050565b6200075f62000878565b6001600160a01b038116620007c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200041f565b620007d181620008d4565b50565b620007de62000878565b604080516001600160a01b038416815282151560208201527f58486b82a66d79d32500e69ee9ede2dd85f18e4bc4ff75903bb148fdf1162331910160405180910390a16001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b6001546001600160a01b03163314620005c957604051631906885360e01b815260040160405180910390fd5b6000546001600160a01b03163314620005c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200041f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ae38062000bf183390190565b6000602082840312156200094557600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620007d157600080fd5b8035620009858162000962565b919050565b600080600060608486031215620009a057600080fd5b833567ffffffffffffffff80821115620009b957600080fd5b818601915086601f830112620009ce57600080fd5b813581811115620009e357620009e36200094c565b604051601f8201601f19908116603f0116810190838211818310171562000a0e5762000a0e6200094c565b8160405282815289602084870101111562000a2857600080fd5b82602086016020830137600060208483010152809750505050505062000a516020850162000978565b915062000a616040850162000978565b90509250925092565b60006020828403121562000a7d57600080fd5b813562000a8a8162000962565b9392505050565b6000806040838503121562000aa557600080fd5b823562000ab28162000962565b9150602083013562000ac48162000962565b809150509250929050565b6000806040838503121562000ae357600080fd5b823562000af08162000962565b91506020830135801515811462000ac457600080fd5b6000815180845260005b8181101562000b2e5760208185018101518683018201520162000b10565b8181111562000b41576000602083870101525b50601f01601f19169290920160200192915050565b60208152600062000a8a602083018462000b06565b60808152600062000b80608083018762000b06565b6001600160a01b0395861660208401529385166040830152509216606090920191909152919050565b60006020828403121562000bbc57600080fd5b815162000a8a8162000962565b6000821982111562000beb57634e487b7160e01b600052601160045260246000fd5b50019056fe60a06040523480156200001157600080fd5b5060405162000ae338038062000ae3833981016040819052620000349162000392565b6200003f33620000e1565b6001600160a01b0383166200009c5760405163c5dbe6e760e01b815260206004820152601360248201527f5f626561636f6e466163746f727941646d696e0000000000000000000000000060448201526064015b60405180910390fd5b8351620000b1906001906020870190620002b9565b506001600160a01b038216608052620000cc81600162000131565b620000d783620000e1565b505050506200050f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200014782620002aa60201b620002601760201c565b62000171576040516322a2d07b60e21b81526001600160a01b038316600482015260240162000093565b80158015620001ee5750608051604051636eae650160e01b81526001600160a01b03848116600483015290911690636eae650190602401602060405180830381865afa158015620001c6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ec9190620004a8565b155b156200021957604051634f9da6af60e11b81526001600160a01b038316600482015260240162000093565b6002546040516001600160a01b038085169216907fc945ae30494f6ee00b9e4bf1fec5653ced7244b559666f44f9a88ea732e957b090600090a36040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03163b151590565b828054620002c790620004d3565b90600052602060002090601f016020900481019282620002eb576000855562000336565b82601f106200030657805160ff191683800117855562000336565b8280016001018555821562000336579182015b828111156200033657825182559160200191906001019062000319565b506200034492915062000348565b5090565b5b8082111562000344576000815560010162000349565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200038d57600080fd5b919050565b60008060008060808587031215620003a957600080fd5b84516001600160401b0380821115620003c157600080fd5b818701915087601f830112620003d657600080fd5b815181811115620003eb57620003eb6200035f565b604051601f8201601f19908116603f011681019083821181831017156200041657620004166200035f565b81604052828152602093508a848487010111156200043357600080fd5b600091505b8282101562000457578482018401518183018501529083019062000438565b82821115620004695760008484830101525b97506200047b91505087820162000375565b945050506200048d6040860162000375565b91506200049d6060860162000375565b905092959194509250565b600060208284031215620004bb57600080fd5b81518015158114620004cc57600080fd5b9392505050565b600181811c90821680620004e857607f821691505b6020821081036200050957634e487b7160e01b600052602260045260246000fd5b50919050565b6080516105b262000531600039600081816087015261032401526105b26000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80635c60da1b1161005b5780635c60da1b146100f0578063715018a6146101015780638da5cb5b14610109578063f2fde38b1461011a57600080fd5b806329f694ee146100825780633659cfe6146100c65780633de5250b146100db575b600080fd5b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d96100d436600461049b565b61012d565b005b6100e3610143565b6040516100bd91906104cb565b6002546001600160a01b03166100a9565b6100d96101d1565b6000546001600160a01b03166100a9565b6100d961012836600461049b565b6101e5565b61013561026f565b6101408160006102c9565b50565b6001805461015090610520565b80601f016020809104026020016040519081016040528092919081815260200182805461017c90610520565b80156101c95780601f1061019e576101008083540402835291602001916101c9565b820191906000526020600020905b8154815290600101906020018083116101ac57829003601f168201915b505050505081565b6101d961026f565b6101e3600061044b565b565b6101ed61026f565b6001600160a01b0381166102575760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6101408161044b565b6001600160a01b03163b151590565b6000546001600160a01b031633146101e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024e565b6001600160a01b0382163b6102fc576040516322a2d07b60e21b81526001600160a01b038316600482015260240161024e565b801580156103915750604051636eae650160e01b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000001690636eae650190602401602060405180830381865afa15801561036b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038f919061055a565b155b156103ba57604051634f9da6af60e11b81526001600160a01b038316600482015260240161024e565b6002546040516001600160a01b038085169216907fc945ae30494f6ee00b9e4bf1fec5653ced7244b559666f44f9a88ea732e957b090600090a36040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250600280546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156104ad57600080fd5b81356001600160a01b03811681146104c457600080fd5b9392505050565b600060208083528351808285015260005b818110156104f8578581018301518582016040015282016104dc565b8181111561050a576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061053457607f821691505b60208210810361055457634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561056c57600080fd5b815180151581146104c457600080fdfea2646970667358221220d1d33054f24b72e55d7ca141f73fdf553a7aac800218b8efe28db33134c4e8a964736f6c634300080d0033a2646970667358221220c38e9fb60b465470fea6ee6c12ef9b01d6445cf7431a3c2a270a60ed1978ca2564736f6c634300080d0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.