ETH Price: $3,337.90 (-4.17%)

Contract

0xdd9f72afED3631a6C85b5369D84875e6c42f1827
Transaction Hash
Method
Block
From
To
Approve399468342024-07-24 21:39:412 hrs ago1721857181IN
0xdd9f72af...6c42f1827
0 ETH0.00000520.04525
Approve399395822024-07-24 19:30:264 hrs ago1721849426IN
0xdd9f72af...6c42f1827
0 ETH0.000004360.04525
Approve399390772024-07-24 19:21:264 hrs ago1721848886IN
0xdd9f72af...6c42f1827
0 ETH0.000004370.04525
Approve399384512024-07-24 19:10:364 hrs ago1721848236IN
0xdd9f72af...6c42f1827
0 ETH0.000004840.04525
Approve399369192024-07-24 18:44:315 hrs ago1721846671IN
0xdd9f72af...6c42f1827
0 ETH0.000005390.04525
Approve399310712024-07-24 17:04:206 hrs ago1721840660IN
0xdd9f72af...6c42f1827
0 ETH0.000004440.04525
Approve399298082024-07-24 16:42:567 hrs ago1721839376IN
0xdd9f72af...6c42f1827
0 ETH0.000005620.04525
Approve399259432024-07-24 15:37:398 hrs ago1721835459IN
0xdd9f72af...6c42f1827
0 ETH0.000004420.04525
Approve399257222024-07-24 15:33:558 hrs ago1721835235IN
0xdd9f72af...6c42f1827
0 ETH0.000006270.04525
Approve399218342024-07-24 14:28:109 hrs ago1721831290IN
0xdd9f72af...6c42f1827
0 ETH0.000004830.04525
Approve399217842024-07-24 14:27:209 hrs ago1721831240IN
0xdd9f72af...6c42f1827
0 ETH0.000004830.04525
Approve399217692024-07-24 14:27:059 hrs ago1721831225IN
0xdd9f72af...6c42f1827
0 ETH0.000005960.04525
Approve399217222024-07-24 14:26:189 hrs ago1721831178IN
0xdd9f72af...6c42f1827
0 ETH0.000006050.04525
Approve399209182024-07-24 14:12:449 hrs ago1721830364IN
0xdd9f72af...6c42f1827
0 ETH0.000005070.04525
Approve399199942024-07-24 13:56:5910 hrs ago1721829419IN
0xdd9f72af...6c42f1827
0 ETH0.000005520.04525
Approve399192812024-07-24 13:44:5810 hrs ago1721828698IN
0xdd9f72af...6c42f1827
0 ETH0.000005610.04525
Approve399188182024-07-24 13:37:0310 hrs ago1721828223IN
0xdd9f72af...6c42f1827
0 ETH0.000004680.04525
Approve399182622024-07-24 13:27:4110 hrs ago1721827661IN
0xdd9f72af...6c42f1827
0 ETH0.000005430.04525
Approve399174302024-07-24 13:13:3610 hrs ago1721826816IN
0xdd9f72af...6c42f1827
0 ETH0.000004770.04525
Approve399169262024-07-24 13:04:4910 hrs ago1721826289IN
0xdd9f72af...6c42f1827
0 ETH0.000004640.04525
Approve399166452024-07-24 13:00:0410 hrs ago1721826004IN
0xdd9f72af...6c42f1827
0 ETH0.000005350.04525
Approve399150102024-07-24 12:32:0811 hrs ago1721824328IN
0xdd9f72af...6c42f1827
0 ETH0.000004960.04525
Approve399147612024-07-24 12:27:5311 hrs ago1721824073IN
0xdd9f72af...6c42f1827
0 ETH0.00000750.04525
Approve399143592024-07-24 12:21:0411 hrs ago1721823664IN
0xdd9f72af...6c42f1827
0 ETH0.000005430.04525
Approve399129602024-07-24 11:57:1312 hrs ago1721822233IN
0xdd9f72af...6c42f1827
0 ETH0.00000540.04525
View all transactions

Latest 3 internal transactions

Parent Transaction Hash Block From To
205740672023-12-03 16:22:34234 days ago1701620554
0xdd9f72af...6c42f1827
95 wei
205740672023-12-03 16:22:34234 days ago1701620554
0xdd9f72af...6c42f1827
95 wei
30719852023-05-09 9:12:13442 days ago1683623533  Contract Creation0 ETH
Loading...
Loading

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

Contract Name:
BeaconProxy

Compiler Version
v0.8.9+commit.e5eed63a

ZkSolc Version
v1.3.1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 7 : BeaconProxy.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/BeaconProxy.sol)

pragma solidity ^0.8.0;

import "./IBeacon.sol";
import "../Proxy.sol";
import "../ERC1967/ERC1967Upgrade.sol";

/**
 * @dev This contract implements a proxy that gets the implementation address for each call from a {UpgradeableBeacon}.
 *
 * The beacon address is stored in storage slot `uint256(keccak256('eip1967.proxy.beacon')) - 1`, so that it doesn't
 * conflict with the storage layout of the implementation behind the proxy.
 *
 * _Available since v3.4._
 */
contract BeaconProxy is Proxy, ERC1967Upgrade {
    /**
     * @dev Initializes the proxy with `beacon`.
     *
     * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This
     * will typically be an encoded function call, and allows initializating the storage of the proxy like a Solidity
     * constructor.
     *
     * Requirements:
     *
     * - `beacon` must be a contract with the interface {IBeacon}.
     */
    constructor(address beacon, bytes memory data) payable {
        assert(_BEACON_SLOT == bytes32(uint256(keccak256("eip1967.proxy.beacon")) - 1));
        _upgradeBeaconToAndCall(beacon, data, false);
    }

    /**
     * @dev Returns the current beacon address.
     */
    function _beacon() internal view virtual returns (address) {
        return _getBeacon();
    }

    /**
     * @dev Returns the current implementation address of the associated beacon.
     */
    function _implementation() internal view virtual override returns (address) {
        return IBeacon(_getBeacon()).implementation();
    }

    /**
     * @dev Changes the proxy to use a new beacon. Deprecated: see {_upgradeBeaconToAndCall}.
     *
     * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon.
     *
     * Requirements:
     *
     * - `beacon` must be a contract.
     * - The implementation returned by `beacon` must be a contract.
     */
    function _setBeacon(address beacon, bytes memory data) internal virtual {
        _upgradeBeaconToAndCall(beacon, data, false);
    }
}

File 2 of 7 : draft-IERC1822.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822Proxiable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

File 3 of 7 : ERC1967Upgrade.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeacon.sol";
import "../../interfaces/draft-IERC1822.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967Upgrade {
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            Address.isContract(IBeacon(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        }
    }
}

File 4 of 7 : Proxy.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overridden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {}
}

File 5 of 7 : IBeacon.sol
// 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);
}

File 6 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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
     * ====
     *
     * [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://diligence.consensys.net/posts/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.5.11/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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 7 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

Settings
{
  "compilerPath": "",
  "experimental": {},
  "isSystem": true,
  "optimizer": {
    "enabled": true,
    "mode": "3"
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"beacon","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x0004000000000002000300000000000200000000030100190000006003300270000001070430019700030000004103550002000000010355000001070030019d000100000000001f000000800a00003900000040090000390000000000a90435000000000300003100000001012001900000004e0000c13d000000000130004c0000009d0000c13d0000010e01000041000300000009001d00020000000a001d041504130000040f0000010f02000041000000000020043900000109021001970000000401000039000100000002001d0000000000210439041501900000040f00000002060000290000000305000029000000000110004c000000ff0000613d0000011001000041000000000016043500000000010004140000000102000029000000040320008c0000009e0000613d000000800300003900000000040300190415013b0000040f00000002060000290000000305000029000000000110004c0000009e0000c13d000000030200036700000001040000310000001f0340018f00000000010504330000000504400270000000000540004c0000003d0000613d000000000500001900000005065002100000000007610019000000000662034f000000000606043b00000000006704350000000105500039000000000645004b000000350000413d000000000530004c0000004c0000613d0000000504400210000000000242034f00000000044100190000000303300210000000000504043300000000053501cf000000000535022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000252019f00000000002404350000000102000031041501a70000040f0000009f02300039000000200100008a000000000212016f00000000002904350000001f0230018f00000002040003670000000505300270000000000650004c000000600000613d00000000060000190000000507600210000000000874034f000000000808043b000000800770003900000000008704350000000106600039000000000756004b000000580000413d000000000620004c0000006f0000613d0000000505500210000000000454034f00000003022002100000008005500039000000000605043300000000062601cf000000000626022f000000000404043b0000010002200089000000000424022f00000000022401cf000000000262019f000000000025043500000108020000410000003f0430008c000000000400001900000000040220190000010805300197000000000650004c0000000002008019000001080550009c000000000204c019000000000220004c000000ff0000613d000000000a0a04330000010902a0009c000000ff0000213d000000a00200003900000000020204330000010a0420009c000000ff0000213d00000080043000390000009f032000390000010805000041000000000643004b0000000006000019000000000605801900000108074001970000010803300197000000000873004b0000000005008019000000000373013f000001080330009c00000000030600190000000003056019000000000330004c000000ff0000c13d000000800320003900000000030304330000010b0530009c000000ee0000413d0000010d01000041000000000010043500000041010000390000000402000039000000000012043500000024020000390000000001000019041501a70000040f041503370000040f0000009f010000390000000101100031000000200200008a000000000121016f000000000015043500000108010000410000000102000031000000200320008c000000000300001900000000030140190000010802200197000000000420004c000000000100a019000001080220009c000000000103c019000000000110004c000000ff0000c13d0000000002060433000001090120009c000000ff0000213d000000020100036700000000030000310000001f0430018f0000000503300270000000000530004c000000c00000613d00000000050000190000000506500210000000000761034f000000000707043b00000000007604350000000105500039000000000635004b000000b90000413d000000000540004c000000ce0000613d00000003044002100000000503300210000000000503043300000000054501cf000000000545022f000000000131034f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000001000414000000040320008c000001020000c13d000000030100036700000001020000310000001f0320018f0000000502200270000000000420004c000000df0000613d00000000040000190000000505400210000000000651034f000000000606043b00000000006504350000000104400039000000000524004b000000d80000413d000000000430004c000001280000613d00000003033002100000000502200210000000000402043300000000043401cf000000000434022f000000000121034f000000000101043b0000010003300089000000000131022f00000000013101cf000000000141019f0000000000120435000001280000013d0000003f05300039000000000115016f00000000070904330000000001170019000000000571004b000000000500001900000001050040390000010a0610009c000000950000213d0000000105500190000000950000c13d00000000001904350000000000370435000000a0012000390000000002130019000000000242004b0000012c0000a13d00000000010000190000000002000019041501a70000040f00000000040000310000000003000019000000000500001900000000060000190415015b0000040f000000030200036700000001030000310000001f0430018f0000000503300270000000000530004c000001150000613d00000000050000190000000506500210000000000762034f000000000707043b00000000007604350000000105500039000000000635004b0000010e0000413d000000000540004c000001230000613d00000003044002100000000503300210000000000503043300000000054501cf000000000545022f000000000232034f000000000202043b0000010004400089000000000242022f00000000024201cf000000000252019f0000000000230435000000000110004c000001280000c13d00000001020000310000000001000019041501a70000040f0000000102000031000000000100001900000000030000190415019f0000040f000000200270003900020000000a001d000300000007001d041501b00000040f00000002010000290000000302000029041501be0000040f0000002002000039000001000100003900000000002104390000012002000039000000000002043900000040020000390000010c030000410415019f0000040f0001000000000002000100000004001d0000010704000041000001070530009c0000000003048019000001070510009c0000000001048019000000c0011002100000004003300210000000000113019f00000111011001c7041504070000040f0000000106000029000000010220018f000000000300001900000005043002100000000005460019000000000441034f000000000404043b00000000004504350000000103300039000000000430004c0000000004000019000000010400603900000001044001900000014a0000c13d00030000000103550000006001100270000101070010019d00000000010200190000000100000005000000000001042d0002000000000002000200000006001d000100000005001d0000010705000041000001070630009c00000000030580190000004003300210000001070640009c00000000040580190000006004400210000000000334019f000001070410009c0000000001058019000000c001100210000000000113019f0415040c0000040f000000010800002900000002040000290000001f0340018f0000000504400270000000000540004c0000017a0000613d000000000500001900000005065002100000000007680019000000000661034f000000000606043b00000000006704350000000105500039000000000645004b000001720000413d000000010220018f000000000530004c0000018a0000613d0000000504400210000000000541034f00000000044800190000000303300210000000000604043300000000063601cf000000000636022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000363019f000000000034043500030000000103550000006001100270000101070010019d00000000010200190000000200000005000000000001042d00000107010000410000000002000414000001070320009c0000000001024019000000c00110021000000112011001c70000800202000039041504070000040f00000001022001900000019c0000613d000000000101043b000000000001042d00000000010000190000000002000019041501a70000040f0000010704000041000001070510009c000000000104801900000040011002100000006002200210000000000121019f0000000001310019000004160001042e0000010703000041000001070420009c0000000002038019000001070410009c000000000103801900000040011002100000006002200210000000000112019f00000417000104300000000004000019000000000534004b000001b90000813d00000000052400190000000006140019000000000606043300000000006504350000002004400039000001b10000013d000000000134004b000001bd0000a13d00000000012300190000000000010435000000000001042d0008000000000002000300000002001d0000010f0200004100000000002004390000000402000039000800000002001d000500000001001d0000000000120439041501900000040f000000000110004c000002c30000613d0000010f01000041000000000010043900000005010000290000010901100197000600000001001d00000008020000290000000000120439041501900000040f000000000110004c0000000807000029000002b90000613d0000004001000039000700000001001d00000000030104330000011001000041000000000013043500000000010004140000000602000029000000040420008c000001e40000613d0000000004030019000400000003001d0415013b0000040f00000004030000290000000807000029000000000110004c000002e70000613d0000001f01000039000100000001001d0000000101100031000000200200008a000200000002001d000000000221016f0000000001320019000000000221004b000000000200001900000001020040390000010a0410009c000002bc0000213d0000000102200190000002bc0000c13d0000000702000029000000000012043500000108010000410000000102000031000000200420008c000000000500001900000000050140190000010802200197000000000420004c000000000100a019000001080220009c000000000105c019000000000110004c000002b90000c13d0000000001030433000001090210009c000002b90000213d0000010f0200004100000000002004390000000000170439041501900000040f000000000110004c000002d50000613d0000010e01000041000400000001001d041504130000040f00000113011001970000000602000029000000000121019f0000000402000029041504110000040f0000000701000029000000000401043300000107010000410000000002000414000001070320009c0000000002018019000001070340009c000400000004001d00000000010440190000004001100210000000c002200210000000000112019f00000114011001c70000800d02000039000000020300003900000115040000410000000505000029041504020000040f00000001012001900000000802000029000002b90000613d00000003010000290000000001010433000000000110004c000002b70000613d0000010f01000041000000000010043900000006010000290000000000120439041501900000040f0000000807000029000000000110004c000002b90000613d00000110010000410000000403000029000000000013043500000000010004140000000602000029000000040420008c0000023f0000613d00000004040000290415013b0000040f00000004030000290000000807000029000000000110004c000002e70000613d000000010100002900000001011000310000000202000029000000000121016f0000000005310019000000000115004b000000000100001900000001010040390000010a0250009c000002bc0000213d0000000101100190000002bc0000c13d0000000701000029000000000051043500000108010000410000000102000031000000200320008c000000000300001900000000030140190000010802200197000000000420004c000000000100a019000001080220009c000000000103c019000000000110004c000002b90000c13d00000004010000290000000003010433000001090130009c000002b90000213d000001160150009c000002bc0000213d00000060015000390000000702000029000000000012043500000040015000390000011702000041000000000021043500000027010000390000000000150435000500000005001d00000020025000390000011801000041000400000002001d00000000001204350000010f0100004100000000001004390000000000370439000600000003001d041501900000040f000000000110004c000003090000613d000000010100003900000000050004140000000602000029000000040320008c0000027f0000613d0000000301000029000000000401043300000020031000390000000001050019000000000500001900000000060000190415015b0000040f00000060030000390000000102000031000000000420004c0000000807000029000002b50000613d0000010a0320009c000002bc0000213d0000003f032000390000000204000029000000000443016f000000070300002900000000030304330000000004430019000000000534004b000000000500001900000001050040390000010a0640009c000002bc0000213d0000000105500190000002bc0000c13d0000000705000029000000000045043500000000002304350000002002300039000000030400036700000001060000310000001f0560018f0000000506600270000000000760004c000002a60000613d000000000700001900000005087002100000000009820019000000000884034f000000000808043b00000000008904350000000107700039000000000867004b0000029e0000413d000000000750004c000002b50000613d0000000506600210000000000464034f00000000026200190000000305500210000000000602043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f0000000000420435000000000110004c0000031b0000613d0000000800000005000000000001042d00000000010000190000000002000019041501a70000040f0000010d0100004100000000001004350000004101000039000000000017043500000024020000390000000001000019041501a70000040f0000004001000039000000000101043300000064021000390000011e03000041000000000032043500000044021000390000011f030000410000000000320435000000240210003900000025030000390000000000320435000001190200004100000000002104350000000402100039000000200300003900000000003204350000008402000039041501a70000040f0000000701000029000000000101043300000064021000390000011c03000041000000000032043500000044021000390000011d030000410000000000320435000000240210003900000030030000390000000000320435000001190200004100000000002104350000000402100039000000200300003900000000003204350000008402000039041501a70000040f000000030200036700000001040000310000001f0340018f000000070100002900000000010104330000000504400270000000000540004c000002f80000613d000000000500001900000005065002100000000007610019000000000662034f000000000606043b00000000006704350000000105500039000000000645004b000002f00000413d000000000530004c000003070000613d0000000504400210000000000242034f00000000044100190000000303300210000000000504043300000000053501cf000000000535022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000252019f00000000002404350000000102000031041501a70000040f0000000701000029000000000101043300000064021000390000011a03000041000000000032043500000044021000390000011b030000410000000000320435000000240210003900000026030000390000000000320435000001190200004100000000002104350000000402100039000000200300003900000000003204350000008402000039041501a70000040f0000000002030433000000000120004c000003350000c13d00000007010000290000000004010433000800000004001d0000011901000041000000000014043500000004014000390000002002000039000000000021043500000005010000290000000003010433000700000003001d0000002401400039000000000031043500000044024000390000000401000029041501b00000040f00000007010000290000001f011000390000000202000029000000000121016f00000044021000390000000801000029041501a70000040f0000002001300039041501a70000040f00030000000000020000010e01000041041504130000040f0000010f02000041000000000020043900000109021001970000000401000039000200000001001d000300000002001d0000000000210439041501900000040f000000000110004c000003470000c13d00000000010000190000000002000019041501a70000040f000000400500003900000000030504330000011001000041000000000013043500000000010004140000000302000029000000040420008c000003780000613d0000000004030019000300000003001d000100000005001d0415013b0000040f00000001050000290000000303000029000000000110004c000003780000c13d000000030200036700000001040000310000001f0340018f00000000010504330000000504400270000000000540004c000003670000613d000000000500001900000005065002100000000007610019000000000662034f000000000606043b00000000006704350000000105500039000000000645004b0000035f0000413d000000000530004c000003760000613d0000000504400210000000000242034f00000000044100190000000303300210000000000504043300000000053501cf000000000535022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000252019f00000000002404350000000102000031041501a70000040f0000001f010000390000000101100031000000200200008a000000000221016f0000000001320019000000000221004b000000000200001900000001020040390000010a0410009c000003d00000213d0000000102200190000003d00000c13d000000000015043500000108010000410000000102000031000000200420008c000000000500001900000000050140190000010802200197000000000420004c000000000100a019000001080220009c000000000105c019000000000110004c000003440000c13d0000000002030433000001090120009c000003440000213d000000020100036700000000030000310000001f0430018f0000000503300270000000000530004c000003a20000613d00000000050000190000000506500210000000000761034f000000000707043b00000000007604350000000105500039000000000635004b0000039b0000413d000000000540004c000003b00000613d00000003044002100000000503300210000000000503043300000000054501cf000000000545022f000000000131034f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000001000414000000040320008c000003d80000c13d000000030100036700000001020000310000001f0320018f0000000502200270000000000420004c000003c10000613d00000000040000190000000505400210000000000651034f000000000606043b00000000006504350000000104400039000000000524004b000003ba0000413d000000000430004c000003fe0000613d00000003033002100000000502200210000000000402043300000000043401cf000000000434022f000000000121034f000000000101043b0000010003300089000000000131022f00000000013101cf000000000141019f0000000000120435000003fe0000013d0000010d01000041000000000010043500000041010000390000000202000029000000000012043500000024020000390000000001000019041501a70000040f00000000040000310000000003000019000000000500001900000000060000190415015b0000040f000000030200036700000001030000310000001f0430018f0000000503300270000000000530004c000003eb0000613d00000000050000190000000506500210000000000762034f000000000707043b00000000007604350000000105500039000000000635004b000003e40000413d000000000540004c000003f90000613d00000003044002100000000503300210000000000503043300000000054501cf000000000545022f000000000232034f000000000202043b0000010004400089000000000242022f00000000024201cf000000000252019f0000000000230435000000000110004c000003fe0000c13d00000001020000310000000001000019041501a70000040f0000000102000031000000000100001900000000030000190415019f0000040f00000405002104210000000102000039000000000001042d0000000002000019000000000001042d0000040a002104230000000102000039000000000001042d0000000002000019000000000001042d0000040f002104250000000102000039000000000001042d0000000002000019000000000001042d000000000012041b000000000001042d000000000101041a000000000001042d0000041500000432000004160001042e0000041700010430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffff000000000000000000000000000000000000000000000001000000000000000000000002000000000000000000000000000000000000000000000000000000004e487b7100000000000000000000000000000000000000000000000000000000a3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d501806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b835c60da1b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000200000200000000000000000000000000000024000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e000000000000000000000000000000000000000000000000ffffffffffffff9f206661696c656400000000000000000000000000000000000000000000000000416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c08c379a0000000000000000000000000000000000000000000000000000000006e74726163740000000000000000000000000000000000000000000000000000416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f73206e6f74206120636f6e747261637400000000000000000000000000000000455243313936373a20626561636f6e20696d706c656d656e746174696f6e20697472616374000000000000000000000000000000000000000000000000000000455243313936373a206e657720626561636f6e206973206e6f74206120636f6e0000000000000000000000000000000000000000000000000000000000000000

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction 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.