Sepolia Testnet

Contract

0x5a6d4aAD601fE380995d93475A8b7f764F703eE4
Transaction Hash
Method
Block
From
To
Bridge ETH To66672252024-09-10 15:08:00136 days ago1725980880IN
0x5a6d4aAD...64F703eE4
0.02 ETH0.0037974625.07603611
Bridge ETH To66672222024-09-10 15:07:24136 days ago1725980844IN
0x5a6d4aAD...64F703eE4
0.0001 ETH0.0040395826.73538157
Bridge ERC20To66424552024-09-06 9:33:24140 days ago1725615204IN
0x5a6d4aAD...64F703eE4
0 ETH0.0021529312.30699981
Bridge ETH To66424422024-09-06 9:30:12140 days ago1725615012IN
0x5a6d4aAD...64F703eE4
0.05 ETH0.0019707312.01482841
Bridge ERC20To66353872024-09-05 4:54:12142 days ago1725512052IN
0x5a6d4aAD...64F703eE4
0 ETH0.001834159.97471275
Bridge ERC20To66353672024-09-05 4:48:48142 days ago1725511728IN
0x5a6d4aAD...64F703eE4
0 ETH0.002246039.07762732
Bridge ETH To66253642024-09-03 13:10:24143 days ago1725369024IN
0x5a6d4aAD...64F703eE4
4 ETH0.001417057.41133656
Bridge ERC20To65998482024-08-30 11:27:48147 days ago1725017268IN
0x5a6d4aAD...64F703eE4
0 ETH0.002791417.05041733
Bridge ETH To65873822024-08-28 12:11:24149 days ago1724847084IN
0x5a6d4aAD...64F703eE4
0.0000001 ETH0.0083852356.15691544
Bridge ETH To65534952024-08-23 3:29:48155 days ago1724383788IN
0x5a6d4aAD...64F703eE4
0.008 ETH0.0064972343.51273173
Bridge ETH To65490212024-08-22 10:42:36155 days ago1724323356IN
0x5a6d4aAD...64F703eE4
0.0001 ETH0.0125641283.95058579
Bridge ETH To65489822024-08-22 10:33:48155 days ago1724322828IN
0x5a6d4aAD...64F703eE4
0.000001 ETH0.0129176186.51077316
Bridge ETH To65485582024-08-22 8:56:36155 days ago1724316996IN
0x5a6d4aAD...64F703eE4
0.0001 ETH0.0022562314.13085537
Bridge ETH To65483562024-08-22 8:12:36155 days ago1724314356IN
0x5a6d4aAD...64F703eE4
0.0001 ETH0.001635938.62072859
Bridge ERC20To65428452024-08-21 11:22:24156 days ago1724239344IN
0x5a6d4aAD...64F703eE4
0 ETH0.001618327.25690994
Bridge ERC20To65122312024-08-16 16:15:12161 days ago1723824912IN
0x5a6d4aAD...64F703eE4
0 ETH0.004891375.03803375
Deposit ETH65122212024-08-16 16:12:36161 days ago1723824756IN
0x5a6d4aAD...64F703eE4
0.01 ETH0.00105283.57817071
Bridge ERC20To65110662024-08-16 11:54:36161 days ago1723809276IN
0x5a6d4aAD...64F703eE4
0 ETH0.0028425416.75072991
Bridge ERC20To65109272024-08-16 11:23:12161 days ago1723807392IN
0x5a6d4aAD...64F703eE4
0 ETH0.001536186.41786475
Bridge ERC20To65109212024-08-16 11:21:48161 days ago1723807308IN
0x5a6d4aAD...64F703eE4
0 ETH0.00172656.21329201
Bridge ETH To65103242024-08-16 9:06:48161 days ago1723799208IN
0x5a6d4aAD...64F703eE4
0.1 ETH0.00165388.78658841
Bridge ERC20To65102422024-08-16 8:49:00161 days ago1723798140IN
0x5a6d4aAD...64F703eE4
0 ETH0.0046526828.669459
Bridge ERC20To65099762024-08-16 7:49:00161 days ago1723794540IN
0x5a6d4aAD...64F703eE4
0 ETH0.0019502110.36705221
Bridge ERC20To65099392024-08-16 7:41:00161 days ago1723794060IN
0x5a6d4aAD...64F703eE4
0 ETH0.0024995714.71223517
Bridge ERC20To65091342024-08-16 4:37:00162 days ago1723783020IN
0x5a6d4aAD...64F703eE4
0 ETH0.0013584.88641659
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
67499032024-09-24 7:53:24122 days ago1727164404
0x5a6d4aAD...64F703eE4
0.10003907 ETH
67499032024-09-24 7:53:24122 days ago1727164404
0x5a6d4aAD...64F703eE4
0.10003907 ETH
67497552024-09-24 7:17:12123 days ago1727162232
0x5a6d4aAD...64F703eE4
0.10000018 ETH
67497552024-09-24 7:17:12123 days ago1727162232
0x5a6d4aAD...64F703eE4
0.10000018 ETH
66672252024-09-10 15:08:00136 days ago1725980880
0x5a6d4aAD...64F703eE4
0.02 ETH
66672222024-09-10 15:07:24136 days ago1725980844
0x5a6d4aAD...64F703eE4
0.0001 ETH
66436162024-09-06 14:17:48140 days ago1725632268
0x5a6d4aAD...64F703eE4
0.2 ETH
66436162024-09-06 14:17:48140 days ago1725632268
0x5a6d4aAD...64F703eE4
0.2 ETH
66424422024-09-06 9:30:12140 days ago1725615012
0x5a6d4aAD...64F703eE4
0.05 ETH
66362122024-09-05 8:15:36141 days ago1725524136
0x5a6d4aAD...64F703eE4
0.05 ETH
66362122024-09-05 8:15:36141 days ago1725524136
0x5a6d4aAD...64F703eE4
0.05 ETH
66253642024-09-03 13:10:24143 days ago1725369024
0x5a6d4aAD...64F703eE4
4 ETH
65873822024-08-28 12:11:24149 days ago1724847084
0x5a6d4aAD...64F703eE4
0.0000001 ETH
65534952024-08-23 3:29:48155 days ago1724383788
0x5a6d4aAD...64F703eE4
0.008 ETH
65490212024-08-22 10:42:36155 days ago1724323356
0x5a6d4aAD...64F703eE4
0.0001 ETH
65489822024-08-22 10:33:48155 days ago1724322828
0x5a6d4aAD...64F703eE4
0.000001 ETH
65485582024-08-22 8:56:36155 days ago1724316996
0x5a6d4aAD...64F703eE4
0.0001 ETH
65483562024-08-22 8:12:36155 days ago1724314356
0x5a6d4aAD...64F703eE4
0.0001 ETH
65127702024-08-16 18:16:48161 days ago1723832208
0x5a6d4aAD...64F703eE4
0.0001 ETH
65127702024-08-16 18:16:48161 days ago1723832208
0x5a6d4aAD...64F703eE4
0.0001 ETH
65122212024-08-16 16:12:36161 days ago1723824756
0x5a6d4aAD...64F703eE4
0.01 ETH
65119512024-08-16 15:12:12161 days ago1723821132
0x5a6d4aAD...64F703eE4
0.0001 ETH
65119512024-08-16 15:12:12161 days ago1723821132
0x5a6d4aAD...64F703eE4
0.0001 ETH
65114912024-08-16 13:28:48161 days ago1723814928
0x5a6d4aAD...64F703eE4
0.0001 ETH
65114912024-08-16 13:28:48161 days ago1723814928
0x5a6d4aAD...64F703eE4
0.0001 ETH
View All Internal Transactions
Loading...
Loading

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

Contract Name:
L1ChugSplashProxy

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 1 : L1ChugSplashProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

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

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

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

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

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

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

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

        _;
    }

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

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

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

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

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

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

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

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

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

        _setImplementation(newImplementation);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_code","type":"bytes"}],"name":"setCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setStorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x60806040526004361061005e5760003560e01c8063893d20e811610043578063893d20e8146100b55780639b0b0fda146100f3578063aaf10f42146101135761006d565b806313af4035146100755780636c5d4ad0146100955761006d565b3661006d5761006b610128565b005b61006b610128565b34801561008157600080fd5b5061006b6100903660046107a2565b6103cb565b3480156100a157600080fd5b5061006b6100b036600461080e565b61045c565b3480156100c157600080fd5b506100ca610611565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100ff57600080fd5b5061006b61010e3660046108dd565b6106a8565b34801561011f57600080fd5b506100ca610716565b60006101527fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fb7947262000000000000000000000000000000000000000000000000000000001790529051919250600091829173ffffffffffffffffffffffffffffffffffffffff8516916101d4919061093a565b600060405180830381855afa9150503d806000811461020f576040519150601f19603f3d011682016040523d82523d6000602084013e610214565b606091505b5091509150818015610227575080516020145b156102d9576000818060200190518101906102429190610946565b905080156102d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f4c314368756753706c61736850726f78793a2073797374656d2069732063757260448201527f72656e746c79206265696e67207570677261646564000000000000000000000060648201526084015b60405180910390fd5b505b60006103037f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b905073ffffffffffffffffffffffffffffffffffffffff81166103a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4c314368756753706c61736850726f78793a20696d706c656d656e746174696f60448201527f6e206973206e6f7420736574207965740000000000000000000000000000000060648201526084016102ce565b3660008037600080366000845af43d6000803e806103c5573d6000fd5b503d6000f35b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610424575033155b1561045457610451817fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b50565b610451610128565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806104b5575033155b156104545760006104e47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b9050803f82516020840120036104f8575050565b60405160009061052e907f600d380380600d6000396000f30000000000000000000000000000000000000090859060200161095f565b604051602081830303815290604052905060008151602083016000f084516020860120909150813f146105e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4c314368756753706c61736850726f78793a20636f646520776173206e6f742060448201527f636f72726563746c79206465706c6f796564000000000000000000000000000060648201526084016102ce565b61060b817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b50505050565b600061063b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610672575033155b1561069d57507fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b6106a5610128565b90565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610701575033155b1561070a579055565b610712610128565b5050565b60006107407fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610777575033155b1561069d57507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b6000602082840312156107b457600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146107d857600080fd5b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020828403121561082057600080fd5b813567ffffffffffffffff8082111561083857600080fd5b818401915084601f83011261084c57600080fd5b81358181111561085e5761085e6107df565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156108a4576108a46107df565b816040528281528760208487010111156108bd57600080fd5b826020860160208301376000928101602001929092525095945050505050565b600080604083850312156108f057600080fd5b50508035926020909101359150565b6000815160005b818110156109205760208185018101518683015201610906565b8181111561092f576000828601525b509290920192915050565b60006107d882846108ff565b60006020828403121561095857600080fd5b5051919050565b7fffffffffffffffffffffffffff00000000000000000000000000000000000000831681526000610993600d8301846108ff565b94935050505056fea164736f6c634300080f000a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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.