ETH Price: $1,958.60 (-4.86%)
 

More Info

Private Name Tags

Multichain Info

1 address found via
Transaction Hash
Block
From
To
Transfer388768172025-11-30 22:49:4177 days ago1764542981IN
0x7702cb55...544a7176C
0.001 ETH0.000000040.00188204
Set Implementati...376549632025-11-02 16:01:13105 days ago1762099273IN
0x7702cb55...544a7176C
0 ETH0.000000890.01676258
Set Implementati...376536462025-11-02 15:17:19105 days ago1762096639IN
0x7702cb55...544a7176C
0 ETH0.000000650.02719633
Set Implementati...376530552025-11-02 14:57:37105 days ago1762095457IN
0x7702cb55...544a7176C
0 ETH0.000001410.05946044
0x453fe454330660312025-07-19 10:36:49211 days ago1752921409IN
0x7702cb55...544a7176C
0 ETH0.000000150.00502268
0x453fe454330658952025-07-19 10:32:17211 days ago1752921137IN
0x7702cb55...544a7176C
0 ETH0.000000150.00497737
0x453fe454330658872025-07-19 10:32:01211 days ago1752921121IN
0x7702cb55...544a7176C
0 ETH0.000000160.00503274
0x453fe454330657512025-07-19 10:27:29211 days ago1752920849IN
0x7702cb55...544a7176C
0 ETH0.000000160.00530897
0x453fe454330656602025-07-19 10:24:27211 days ago1752920667IN
0x7702cb55...544a7176C
0 ETH0.000000180.00565869
0x453fe454330653542025-07-19 10:14:15211 days ago1752920055IN
0x7702cb55...544a7176C
0 ETH0.000000170.00540717
0x453fe454330440032025-07-18 22:22:33212 days ago1752877353IN
0x7702cb55...544a7176C
0 ETH0.000000190.00601465
0x453fe454330438722025-07-18 22:18:11212 days ago1752877091IN
0x7702cb55...544a7176C
0 ETH0.00000020.00603728
0x453fe454330438502025-07-18 22:17:27212 days ago1752877047IN
0x7702cb55...544a7176C
0 ETH0.000000190.00597404
0x453fe454330437232025-07-18 22:13:13212 days ago1752876793IN
0x7702cb55...544a7176C
0 ETH0.00000020.00609429
0x453fe454330436202025-07-18 22:09:47212 days ago1752876587IN
0x7702cb55...544a7176C
0 ETH0.00000020.00602613
0x453fe454330436042025-07-18 22:09:15212 days ago1752876555IN
0x7702cb55...544a7176C
0 ETH0.00000020.00601533

Latest 1 internal transaction

Parent Transaction Hash Block From To
299019192025-05-07 4:46:25284 days ago1746593185  Contract Creation0 ETH

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EIP7702Proxy

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 20000 runs

Other Settings:
shanghai EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import {Proxy} from "openzeppelin-contracts/contracts/proxy/Proxy.sol";
import {ERC1967Utils} from "openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol";
import {ECDSA} from "openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol";
import {Receiver} from "solady/accounts/Receiver.sol";

import {NonceTracker} from "./NonceTracker.sol";
import {DefaultReceiver} from "./DefaultReceiver.sol";
import {IAccountStateValidator, ACCOUNT_STATE_VALIDATION_SUCCESS} from "./interfaces/IAccountStateValidator.sol";

/// @title EIP7702Proxy
///
/// @notice Proxy contract designed for EIP-7702 smart accounts
///
/// @dev Implements ERC-1967 with a signature-based initialization process
///
/// @author Coinbase (https://github.com/base/eip-7702-proxy)
contract EIP7702Proxy is Proxy {
    /// @notice ERC-1271 interface constants
    bytes4 internal constant _ERC1271_MAGIC_VALUE = 0x1626ba7e;
    bytes4 internal constant _ERC1271_FAIL_VALUE = 0xffffffff;

    /// @notice Typehash for setting implementation
    bytes32 internal constant _IMPLEMENTATION_SET_TYPEHASH = keccak256(
        "EIP7702ProxyImplementationSet(uint256 chainId,address proxy,uint256 nonce,address currentImplementation,address newImplementation,bytes callData,address validator,uint256 expiry)"
    );

    /// @notice Address of the global nonce tracker for initialization
    NonceTracker public immutable nonceTracker;

    /// @notice A default implementation that allows this address to receive tokens before initialization
    address internal immutable _receiver;

    /// @notice Address of this proxy contract delegate
    address internal immutable _proxy;

    /// @notice Constructor arguments are zero
    error ZeroAddress();

    /// @notice EOA signature is invalid
    error InvalidSignature();

    /// @notice Validator did not return ACCOUNT_STATE_VALIDATION_SUCCESS
    error InvalidValidation();

    /// @notice Signature has expired
    error SignatureExpired();

    /// @notice Initializes the proxy with a default receiver implementation and an external nonce tracker
    ///
    /// @param nonceTracker_ The address of the nonce tracker contract
    /// @param receiver The address of the receiver contract
    constructor(address nonceTracker_, address receiver) {
        if (nonceTracker_ == address(0)) revert ZeroAddress();
        if (receiver == address(0)) revert ZeroAddress();

        nonceTracker = NonceTracker(nonceTracker_);
        _receiver = receiver;
        _proxy = address(this);
    }

    /// @notice Sets the ERC-1967 implementation slot after signature verification and executes `callData` on the `newImplementation` if provided
    ///
    /// @dev Validates resulting wallet state after upgrade by calling `validateAccountState` on the supplied validator contract
    /// @dev Signature must be from the EOA's address
    ///
    /// @param newImplementation The implementation address to set
    /// @param callData Optional calldata to call on new implementation
    /// @param validator The address of the validator contract
    /// @param signature The EOA signature authorizing this change
    /// @param allowCrossChainReplay use a chain-agnostic or chain-specific hash
    function setImplementation(
        address newImplementation,
        bytes calldata callData,
        address validator,
        uint256 expiry,
        bytes calldata signature,
        bool allowCrossChainReplay
    ) external {
        if (block.timestamp >= expiry) revert SignatureExpired();

        // Construct hash using typehash to prevent signature collisions
        bytes32 hash = keccak256(
            abi.encode(
                _IMPLEMENTATION_SET_TYPEHASH,
                allowCrossChainReplay ? 0 : block.chainid,
                _proxy,
                nonceTracker.useNonce(),
                ERC1967Utils.getImplementation(),
                newImplementation,
                keccak256(callData),
                validator,
                expiry
            )
        );

        // Verify signature is from this address (the EOA)
        address signer = ECDSA.recover(hash, signature);
        if (signer != address(this)) revert InvalidSignature();

        // Reset the implementation slot and call initialization if provided
        ERC1967Utils.upgradeToAndCall(newImplementation, callData);

        // Validate wallet state after upgrade, reverting if invalid
        bytes4 validationResult =
            IAccountStateValidator(validator).validateAccountState(address(this), ERC1967Utils.getImplementation());
        if (validationResult != ACCOUNT_STATE_VALIDATION_SUCCESS) revert InvalidValidation();
    }

    /// @notice Handles ERC-1271 signature validation by enforcing a final `ecrecover` check if signatures fail `isValidSignature` check
    ///
    /// @dev This ensures EOA signatures are considered valid regardless of the implementation's `isValidSignature` implementation
    /// @dev When calling `isValidSignature` from the implementation contract, note that calling `this.isValidSignature` will invoke this
    ///      function and make an `ecrecover` check, whereas calling a public `isValidSignature` directly from the implementation contract will not
    /// @dev Cannot be declared as `view` given delegatecall to implementation contract
    ///
    /// @param hash The hash of the message being signed
    /// @param signature The signature of the message
    ///
    /// @return The result of the `isValidSignature` check
    function isValidSignature(bytes32 hash, bytes calldata signature) external returns (bytes4) {
        // Delegatecall to implementation with received data
        (bool success, bytes memory result) = _implementation().delegatecall(msg.data);

        // Early return magic value if delegatecall returned magic value
        if (success && result.length == 32 && bytes4(result) == _ERC1271_MAGIC_VALUE) {
            return _ERC1271_MAGIC_VALUE;
        }

        // Validate signature against EOA as fallback
        (address recovered, ECDSA.RecoverError error,) = ECDSA.tryRecover(hash, signature);
        if (error == ECDSA.RecoverError.NoError && recovered == address(this)) {
            return _ERC1271_MAGIC_VALUE;
        }

        // Default return failure value
        return _ERC1271_FAIL_VALUE;
    }

    /// @notice Returns the ERC-1967 implementation address, or the default receiver if the implementation is not set
    ///
    /// @return implementation The implementation address for this proxy
    function _implementation() internal view override returns (address implementation) {
        implementation = ERC1967Utils.getImplementation();
        if (implementation == address(0)) implementation = _receiver;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)

pragma solidity ^0.8.20;

/**
 * @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 {
        _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();
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (proxy/ERC1967/ERC1967Utils.sol)

pragma solidity ^0.8.22;

import {IBeacon} from "../beacon/IBeacon.sol";
import {IERC1967} from "../../interfaces/IERC1967.sol";
import {Address} from "../../utils/Address.sol";
import {StorageSlot} from "../../utils/StorageSlot.sol";

/**
 * @dev This library provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.
 */
library ERC1967Utils {
    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev The `implementation` of the proxy is invalid.
     */
    error ERC1967InvalidImplementation(address implementation);

    /**
     * @dev The `admin` of the proxy is invalid.
     */
    error ERC1967InvalidAdmin(address admin);

    /**
     * @dev The `beacon` of the proxy is invalid.
     */
    error ERC1967InvalidBeacon(address beacon);

    /**
     * @dev An upgrade function sees `msg.value > 0` that may be lost.
     */
    error ERC1967NonPayable();

    /**
     * @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 ERC-1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        if (newImplementation.code.length == 0) {
            revert ERC1967InvalidImplementation(newImplementation);
        }
        StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Performs implementation upgrade with additional setup call if data is nonempty.
     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
     * to avoid stuck value in the contract.
     *
     * Emits an {IERC1967-Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) internal {
        _setImplementation(newImplementation);
        emit IERC1967.Upgraded(newImplementation);

        if (data.length > 0) {
            Address.functionDelegateCall(newImplementation, data);
        } else {
            _checkNonPayable();
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Returns the current admin.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using
     * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the ERC-1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        if (newAdmin == address(0)) {
            revert ERC1967InvalidAdmin(address(0));
        }
        StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;
    }

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

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

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

    /**
     * @dev Stores a new beacon in the ERC-1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        if (newBeacon.code.length == 0) {
            revert ERC1967InvalidBeacon(newBeacon);
        }

        StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;

        address beaconImplementation = IBeacon(newBeacon).implementation();
        if (beaconImplementation.code.length == 0) {
            revert ERC1967InvalidImplementation(beaconImplementation);
        }
    }

    /**
     * @dev Change the beacon and trigger a setup call if data is nonempty.
     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
     * to avoid stuck value in the contract.
     *
     * Emits an {IERC1967-BeaconUpgraded} event.
     *
     * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since
     * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for
     * efficiency.
     */
    function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {
        _setBeacon(newBeacon);
        emit IERC1967.BeaconUpgraded(newBeacon);

        if (data.length > 0) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        } else {
            _checkNonPayable();
        }
    }

    /**
     * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract
     * if an upgrade doesn't perform an initialization call.
     */
    function _checkNonPayable() private {
        if (msg.value > 0) {
            revert ERC1967NonPayable();
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.20;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS
    }

    /**
     * @dev The signature derives the `address(0)`.
     */
    error ECDSAInvalidSignature();

    /**
     * @dev The signature has an invalid length.
     */
    error ECDSAInvalidSignatureLength(uint256 length);

    /**
     * @dev The signature has an S value that is in the upper half order.
     */
    error ECDSAInvalidSignatureS(bytes32 s);

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
     * return address(0) without also returning an error description. Errors are documented using an enum (error type)
     * and a bytes32 providing additional information about the error.
     *
     * If no error is returned, then the address can be used for verification purposes.
     *
     * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     */
    function tryRecover(
        bytes32 hash,
        bytes memory signature
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly ("memory-safe") {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[ERC-2098 short signatures]
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        unchecked {
            bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
            // We do not check for an overflow here since the shift operation results in 0 or 1.
            uint8 v = uint8((uint256(vs) >> 255) + 27);
            return tryRecover(hash, v, r, s);
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS, s);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature, bytes32(0));
        }

        return (signer, RecoverError.NoError, bytes32(0));
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
     */
    function _throwError(RecoverError error, bytes32 errorArg) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert ECDSAInvalidSignature();
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert ECDSAInvalidSignatureLength(uint256(errorArg));
        } else if (error == RecoverError.InvalidSignatureS) {
            revert ECDSAInvalidSignatureS(errorArg);
        }
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Receiver mixin for ETH and safe-transferred ERC721 and ERC1155 tokens.
/// @author Solady (https://github.com/Vectorized/solady/blob/main/src/accounts/Receiver.sol)
///
/// @dev Note:
/// - Handles all ERC721 and ERC1155 token safety callbacks.
/// - Collapses function table gas overhead and code size.
/// - Utilizes fallback so unknown calldata will pass on.
abstract contract Receiver {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The function selector is not recognized.
    error FnSelectorNotRecognized();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     RECEIVE / FALLBACK                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev For receiving ETH.
    receive() external payable virtual {}

    /// @dev Fallback function with the `receiverFallback` modifier.
    fallback() external payable virtual receiverFallback {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x3c10b94e) // `FnSelectorNotRecognized()`.
            revert(0x1c, 0x04)
        }
    }

    /// @dev Modifier for the fallback function to handle token callbacks.
    modifier receiverFallback() virtual {
        _beforeReceiverFallbackBody();
        if (_useReceiverFallbackBody()) {
            /// @solidity memory-safe-assembly
            assembly {
                let s := shr(224, calldataload(0))
                // 0x150b7a02: `onERC721Received(address,address,uint256,bytes)`.
                // 0xf23a6e61: `onERC1155Received(address,address,uint256,uint256,bytes)`.
                // 0xbc197c81: `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.
                if or(eq(s, 0x150b7a02), or(eq(s, 0xf23a6e61), eq(s, 0xbc197c81))) {
                    // Assumes `mload(0x40) <= 0xffffffff` to save gas on cleaning lower bytes.
                    mstore(0x20, s) // Store `msg.sig`.
                    return(0x3c, 0x20) // Return `msg.sig`.
                }
            }
        }
        _afterReceiverFallbackBody();
        _;
    }

    /// @dev Whether we want to use the body of the `receiverFallback` modifier.
    function _useReceiverFallbackBody() internal view virtual returns (bool) {
        return true;
    }

    /// @dev Called before the body of the `receiverFallback` modifier.
    function _beforeReceiverFallbackBody() internal virtual {}

    /// @dev Called after the body of the `receiverFallback` modifier.
    function _afterReceiverFallbackBody() internal virtual {}
}

File 6 of 13 : NonceTracker.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

/// @title NonceTracker
///
/// @notice A singleton contract for EIP-7702 accounts to manage nonces for ERC-1967 implementation overrides
///
/// @dev Separating nonce storage from EIP-7702 accounts mitigates other arbitrary delegates from unexpectedly reversing state
///
/// @author Coinbase (https://github.com/base/eip-7702-proxy)
contract NonceTracker {
    /// @notice Track nonces per-account to mitigate signature replayability
    mapping(address account => uint256 nonce) public nonces;

    /// @notice An account's nonce has been used
    event NonceUsed(address indexed account, uint256 nonce);

    /// @notice Consume a nonce for the caller
    ///
    /// @return nonce The nonce just used
    function useNonce() external returns (uint256 nonce) {
        nonce = nonces[msg.sender]++;
        emit NonceUsed(msg.sender, nonce);
    }
}

File 7 of 13 : DefaultReceiver.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import {Receiver} from "solady/accounts/Receiver.sol";

/// @title DefaultReceiver
///
/// @notice Accepts native, ERC-721, and ERC-1155 token transfers
///
/// @dev Simply inherits Solady abstract Receiver, providing all necessary functionality:
///      - receive() for native token
///      - fallback() with receiverFallback modifier for ERC-721 and ERC-1155
///      - _useReceiverFallbackBody() returns true
///      - _beforeReceiverFallbackBody() empty implementation
///      - _afterReceiverFallbackBody() empty implementation
contract DefaultReceiver is Receiver {}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

/// @dev Magic value returned by validateAccountState on success
bytes4 constant ACCOUNT_STATE_VALIDATION_SUCCESS = 0xccd10cc8; // bytes4(keccak256("validateAccountState(address,address)"))

/// @title IAccountStateValidator
/// @notice Interface for account-specific validation logi
/// @dev This interface is used to validate the state of a account after an upgrade
/// @author Coinbase (https://github.com/base/eip-7702-proxy)
interface IAccountStateValidator {
    /// @notice Error thrown when the implementation provided to `validateAccountState` is not a supported implementation
    error InvalidImplementation(address actual);

    /// @notice Validates that an account is in a valid state
    /// @dev Should return ACCOUNT_STATE_VALIDATION_SUCCESS if account state is valid, otherwise revert
    /// @dev Should validate that the provided implementation is a supported implementation for this validator
    /// @param account The address of the account to validate
    /// @param implementation The address of the implementation being validated
    /// @return The magic value ACCOUNT_STATE_VALIDATION_SUCCESS if validation succeeds
    function validateAccountState(address account, address implementation) external view returns (bytes4);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.20;

/**
 * @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.
     *
     * {UpgradeableBeacon} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 10 of 13 : IERC1967.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1967.sol)

pragma solidity ^0.8.20;

/**
 * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
 */
interface IERC1967 {
    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

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

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

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

pragma solidity ^0.8.20;

import {Errors} from "./Errors.sol";

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert Errors.InsufficientBalance(address(this).balance, amount);
        }

        (bool success, bytes memory returndata) = recipient.call{value: amount}("");
        if (!success) {
            _revert(returndata);
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {Errors.FailedCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert Errors.InsufficientBalance(address(this).balance, value);
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
     * of an unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {Errors.FailedCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
     */
    function _revert(bytes memory returndata) 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
            assembly ("memory-safe") {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert Errors.FailedCall();
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @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 ERC-1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * TIP: Consider using this library along with {SlotDerivation}.
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct Int256Slot {
        int256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

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

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

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

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

    /**
     * @dev Returns a `Int256Slot` with member `value` located at `slot`.
     */
    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns a `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }
}

File 13 of 13 : Errors.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of common custom errors used in multiple contracts
 *
 * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
 * It is recommended to avoid relying on the error API for critical functionality.
 *
 * _Available since v5.1._
 */
library Errors {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error InsufficientBalance(uint256 balance, uint256 needed);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedCall();

    /**
     * @dev The deployment failed.
     */
    error FailedDeployment();

    /**
     * @dev A necessary precompile is missing.
     */
    error MissingPrecompile(address);
}

Settings
{
  "remappings": [
    "smart-wallet/=lib/smart-wallet/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solady/=lib/solady/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "FreshCryptoLib/=lib/smart-wallet/lib/webauthn-sol/lib/FreshCryptoLib/solidity/src/",
    "account-abstraction/=lib/smart-wallet/lib/account-abstraction/contracts/",
    "ds-test/=lib/smart-wallet/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "p256-verifier/=lib/smart-wallet/lib/p256-verifier/",
    "safe-singleton-deployer-sol/=lib/smart-wallet/lib/safe-singleton-deployer-sol/",
    "webauthn-sol/=lib/smart-wallet/lib/webauthn-sol/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"nonceTracker_","type":"address"},{"internalType":"address","name":"receiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidValidation","type":"error"},{"inputs":[],"name":"SignatureExpired","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nonceTracker","outputs":[{"internalType":"contract NonceTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"address","name":"validator","type":"address"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bool","name":"allowCrossChainReplay","type":"bool"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0346100b957601f610ddc38819003918201601f19168301916001600160401b038311848410176100bd5780849260409485528339810103126100b957610052602061004b836100d1565b92016100d1565b906001600160a01b039081169081156100a7578216156100a75760805260a0523060c052604051610cf690816100e6823960805181818161013e01526105b1015260a051816108ef015260c051816106290152f35b60405163d92e233d60e01b8152600490fd5b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b51906001600160a01b03821682036100b95756fe608060405260043610610a7e575f3560e01c80631626ba7e1461003b5780633e1370fc146100365763da9c868003610a7e57610185565b6100f4565b346100c25760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c25760243567ffffffffffffffff81116100c25761009861008f60209236906004016100c6565b90600435610382565b7fffffffff0000000000000000000000000000000000000000000000000000000060405191168152f35b5f80fd5b9181601f840112156100c25782359167ffffffffffffffff83116100c257602083818601950101116100c257565b346100c2575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c257602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b6044359073ffffffffffffffffffffffffffffffffffffffff821682036100c257565b346100c25760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c25760043573ffffffffffffffffffffffffffffffffffffffff811681036100c25767ffffffffffffffff906024358281116100c2576101f69036906004016100c6565b919092610201610162565b906084359081116100c25761021a9036906004016100c6565b92909160a4359485151586036100c257610237966064359361054f565b005b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176102a757604052565b610239565b67ffffffffffffffff81116102a757601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b3d15610310573d906102f7826102ac565b916103056040519384610266565b82523d5f602084013e565b606090565b929192610321826102ac565b9161032f6040519384610266565b8294818452818301116100c2578281602093845f960137010152565b6004111561035557565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b90915f8061038e6108ac565b604051368382378036810184815203915af46103a86102e6565b816104f1575b81610474575b5061044d576103ce926103c8913691610315565b90610912565b506103d88161034b565b15908161042d575b50610409577fffffffff0000000000000000000000000000000000000000000000000000000090565b7f1626ba7e0000000000000000000000000000000000000000000000000000000090565b73ffffffffffffffffffffffffffffffffffffffff16301490505f6103e0565b5050507f1626ba7e0000000000000000000000000000000000000000000000000000000090565b7f1626ba7e000000000000000000000000000000000000000000000000000000009150602081519101517fffffffff0000000000000000000000000000000000000000000000000000000091818380931691600481106104db575b5050905016145f6103b4565b8391925060040360031b1b161681905f806104cf565b805160201491506103ae565b908160209103126100c2575190565b6040513d5f823e3d90fd5b908160209103126100c257517fffffffff00000000000000000000000000000000000000000000000000000000811681036100c25790565b9396959491929487421015610882575f961561087b5786925b73ffffffffffffffffffffffffffffffffffffffff98604051907f69615a4c0000000000000000000000000000000000000000000000000000000082528a8260048160209d8e947f0000000000000000000000000000000000000000000000000000000000000000165af191821561081d575f9261084c575b50897f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc968c885416928b36610617908c8b610315565b8481519101208c6040519687968701987f00000000000000000000000000000000000000000000000000000000000000006106c8978b94610100969299989793919961012087019a7fac9bb44dd5eb0fdeb02bca7ed2ca5ea2b6898f5797e4367ae51e66bb420f19048852602088015273ffffffffffffffffffffffffffffffffffffffff9586938480931660408a015260608901521660808701521660a085015260c08401521660e08201520152565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0810182526106f89082610266565b51902091369061070792610315565b6107109161094c565b873091160361082257859361072b6107319289953691610315565b90610965565b546040517fccd10cc8000000000000000000000000000000000000000000000000000000008082523060048301529290911673ffffffffffffffffffffffffffffffffffffffff1660248201529094909283916044918391165afa90811561081d577fffffffff00000000000000000000000000000000000000000000000000000000925f926107f0575b505016036107c657565b60046040517f4af26915000000000000000000000000000000000000000000000000000000008152fd5b61080f9250803d10610816575b6108078183610266565b810190610517565b5f806107bc565b503d6107fd565b61050c565b60046040517f8baa579f000000000000000000000000000000000000000000000000000000008152fd5b61086d9192508a3d8c11610874575b6108658183610266565b8101906104fd565b905f6105e1565b503d61085b565b4692610568565b60046040517f0819bdcd000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54169081156108ed57565b7f00000000000000000000000000000000000000000000000000000000000000009150565b81519190604183036109425761093b9250602082015190606060408401519301515f1a90610aa2565b9192909190565b50505f9160029190565b6109629161095991610912565b90929192610b31565b90565b90813b15610a375773ffffffffffffffffffffffffffffffffffffffff82167f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc817fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2805115610a0457610a0191610c08565b50565b505034610a0d57565b60046040517fb398979f000000000000000000000000000000000000000000000000000000008152fd5b60248273ffffffffffffffffffffffffffffffffffffffff604051917f4c9c8ce3000000000000000000000000000000000000000000000000000000008352166004820152fd5b5f80610a886108ac565b368280378136915af43d5f803e15610a9e573d5ff35b3d5ffd5b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411610b26579160209360809260ff5f9560405194855216868401526040830152606082015282805260015afa1561081d575f5173ffffffffffffffffffffffffffffffffffffffff811615610b1c57905f905f90565b505f906001905f90565b5050505f9160039190565b610b3a8161034b565b80610b43575050565b610b4c8161034b565b60018103610b7e5760046040517ff645eedf000000000000000000000000000000000000000000000000000000008152fd5b610b878161034b565b60028103610bc1576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101839052602490fd5b80610bcd60039261034b565b14610bd55750565b6040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004810191909152602490fd5b5f8061096293602081519101845af4610c1f6102e6565b9190610c5f5750805115610c3557805190602001fd5b60046040517fd6bda275000000000000000000000000000000000000000000000000000000008152fd5b81511580610cb7575b610c70575090565b60249073ffffffffffffffffffffffffffffffffffffffff604051917f9996b315000000000000000000000000000000000000000000000000000000008352166004820152fd5b50803b15610c6856fea2646970667358221220f5bebb9e60fcf6a1b1c008136898261f08bbae6d7be7a7b6f4b52909817c846064736f6c63430008170033000000000000000000000000d0ff13c28679fdd75bc09c0a430a0089bf8b95a80000000000000000000000002a8010a9d71d2a5aea19d040f8b4797789a194a9

Deployed Bytecode

0x608060405260043610610a7e575f3560e01c80631626ba7e1461003b5780633e1370fc146100365763da9c868003610a7e57610185565b6100f4565b346100c25760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c25760243567ffffffffffffffff81116100c25761009861008f60209236906004016100c6565b90600435610382565b7fffffffff0000000000000000000000000000000000000000000000000000000060405191168152f35b5f80fd5b9181601f840112156100c25782359167ffffffffffffffff83116100c257602083818601950101116100c257565b346100c2575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c257602060405173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d0ff13c28679fdd75bc09c0a430a0089bf8b95a8168152f35b6044359073ffffffffffffffffffffffffffffffffffffffff821682036100c257565b346100c25760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c25760043573ffffffffffffffffffffffffffffffffffffffff811681036100c25767ffffffffffffffff906024358281116100c2576101f69036906004016100c6565b919092610201610162565b906084359081116100c25761021a9036906004016100c6565b92909160a4359485151586036100c257610237966064359361054f565b005b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176102a757604052565b610239565b67ffffffffffffffff81116102a757601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b3d15610310573d906102f7826102ac565b916103056040519384610266565b82523d5f602084013e565b606090565b929192610321826102ac565b9161032f6040519384610266565b8294818452818301116100c2578281602093845f960137010152565b6004111561035557565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b90915f8061038e6108ac565b604051368382378036810184815203915af46103a86102e6565b816104f1575b81610474575b5061044d576103ce926103c8913691610315565b90610912565b506103d88161034b565b15908161042d575b50610409577fffffffff0000000000000000000000000000000000000000000000000000000090565b7f1626ba7e0000000000000000000000000000000000000000000000000000000090565b73ffffffffffffffffffffffffffffffffffffffff16301490505f6103e0565b5050507f1626ba7e0000000000000000000000000000000000000000000000000000000090565b7f1626ba7e000000000000000000000000000000000000000000000000000000009150602081519101517fffffffff0000000000000000000000000000000000000000000000000000000091818380931691600481106104db575b5050905016145f6103b4565b8391925060040360031b1b161681905f806104cf565b805160201491506103ae565b908160209103126100c2575190565b6040513d5f823e3d90fd5b908160209103126100c257517fffffffff00000000000000000000000000000000000000000000000000000000811681036100c25790565b9396959491929487421015610882575f961561087b5786925b73ffffffffffffffffffffffffffffffffffffffff98604051907f69615a4c0000000000000000000000000000000000000000000000000000000082528a8260048160209d8e947f000000000000000000000000d0ff13c28679fdd75bc09c0a430a0089bf8b95a8165af191821561081d575f9261084c575b50897f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc968c885416928b36610617908c8b610315565b8481519101208c6040519687968701987f0000000000000000000000007702cb554e6bfb442cb743a7df23154544a7176c6106c8978b94610100969299989793919961012087019a7fac9bb44dd5eb0fdeb02bca7ed2ca5ea2b6898f5797e4367ae51e66bb420f19048852602088015273ffffffffffffffffffffffffffffffffffffffff9586938480931660408a015260608901521660808701521660a085015260c08401521660e08201520152565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0810182526106f89082610266565b51902091369061070792610315565b6107109161094c565b873091160361082257859361072b6107319289953691610315565b90610965565b546040517fccd10cc8000000000000000000000000000000000000000000000000000000008082523060048301529290911673ffffffffffffffffffffffffffffffffffffffff1660248201529094909283916044918391165afa90811561081d577fffffffff00000000000000000000000000000000000000000000000000000000925f926107f0575b505016036107c657565b60046040517f4af26915000000000000000000000000000000000000000000000000000000008152fd5b61080f9250803d10610816575b6108078183610266565b810190610517565b5f806107bc565b503d6107fd565b61050c565b60046040517f8baa579f000000000000000000000000000000000000000000000000000000008152fd5b61086d9192508a3d8c11610874575b6108658183610266565b8101906104fd565b905f6105e1565b503d61085b565b4692610568565b60046040517f0819bdcd000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54169081156108ed57565b7f0000000000000000000000002a8010a9d71d2a5aea19d040f8b4797789a194a99150565b81519190604183036109425761093b9250602082015190606060408401519301515f1a90610aa2565b9192909190565b50505f9160029190565b6109629161095991610912565b90929192610b31565b90565b90813b15610a375773ffffffffffffffffffffffffffffffffffffffff82167f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc817fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2805115610a0457610a0191610c08565b50565b505034610a0d57565b60046040517fb398979f000000000000000000000000000000000000000000000000000000008152fd5b60248273ffffffffffffffffffffffffffffffffffffffff604051917f4c9c8ce3000000000000000000000000000000000000000000000000000000008352166004820152fd5b5f80610a886108ac565b368280378136915af43d5f803e15610a9e573d5ff35b3d5ffd5b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411610b26579160209360809260ff5f9560405194855216868401526040830152606082015282805260015afa1561081d575f5173ffffffffffffffffffffffffffffffffffffffff811615610b1c57905f905f90565b505f906001905f90565b5050505f9160039190565b610b3a8161034b565b80610b43575050565b610b4c8161034b565b60018103610b7e5760046040517ff645eedf000000000000000000000000000000000000000000000000000000008152fd5b610b878161034b565b60028103610bc1576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101839052602490fd5b80610bcd60039261034b565b14610bd55750565b6040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004810191909152602490fd5b5f8061096293602081519101845af4610c1f6102e6565b9190610c5f5750805115610c3557805190602001fd5b60046040517fd6bda275000000000000000000000000000000000000000000000000000000008152fd5b81511580610cb7575b610c70575090565b60249073ffffffffffffffffffffffffffffffffffffffff604051917f9996b315000000000000000000000000000000000000000000000000000000008352166004820152fd5b50803b15610c6856fea2646970667358221220f5bebb9e60fcf6a1b1c008136898261f08bbae6d7be7a7b6f4b52909817c846064736f6c63430008170033

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

000000000000000000000000d0ff13c28679fdd75bc09c0a430a0089bf8b95a80000000000000000000000002a8010a9d71d2a5aea19d040f8b4797789a194a9

-----Decoded View---------------
Arg [0] : nonceTracker_ (address): 0xD0Ff13c28679FDd75Bc09c0a430a0089bf8b95a8
Arg [1] : receiver (address): 0x2a8010A9D71D2a5AEA19D040F8b4797789A194a9

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d0ff13c28679fdd75bc09c0a430a0089bf8b95a8
Arg [1] : 0000000000000000000000002a8010a9d71d2a5aea19d040f8b4797789a194a9


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  ]
[ 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.