ETH Price: $2,397.65 (+2.82%)

Contract

0x4B227E2Eb3F39D4EE23938c430821D80dC15a2d5
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Execute207731372024-09-17 21:54:4728 hrs ago1726610087IN
0x4B227E2E...0dC15a2d5
0 ETH0.0014020510.46716427
Execute207676692024-09-17 3:32:2347 hrs ago1726543943IN
0x4B227E2E...0dC15a2d5
0 ETH0.000560568.21024256
Execute207676562024-09-17 3:29:4747 hrs ago1726543787IN
0x4B227E2E...0dC15a2d5
0 ETH0.001299749.70336201
Execute207587552024-09-15 21:37:353 days ago1726436255IN
0x4B227E2E...0dC15a2d5
0 ETH0.000235681.75955621
Execute207587482024-09-15 21:36:113 days ago1726436171IN
0x4B227E2E...0dC15a2d5
0 ETH0.00024941.86195679
Execute207587382024-09-15 21:34:113 days ago1726436051IN
0x4B227E2E...0dC15a2d5
0 ETH0.000251061.87431612
Execute207587292024-09-15 21:32:233 days ago1726435943IN
0x4B227E2E...0dC15a2d5
0 ETH0.000209331.56280051
Execute207587182024-09-15 21:30:113 days ago1726435811IN
0x4B227E2E...0dC15a2d5
0 ETH0.000237071.76992951
Execute207587072024-09-15 21:27:593 days ago1726435679IN
0x4B227E2E...0dC15a2d5
0 ETH0.000298222.22639119
Execute207586982024-09-15 21:26:113 days ago1726435571IN
0x4B227E2E...0dC15a2d5
0 ETH0.000264811.97702075
Execute207586892024-09-15 21:24:233 days ago1726435463IN
0x4B227E2E...0dC15a2d5
0 ETH0.000311872.32832982
Execute207586802024-09-15 21:22:353 days ago1726435355IN
0x4B227E2E...0dC15a2d5
0 ETH0.000302012.2547218
Execute207586722024-09-15 21:20:593 days ago1726435259IN
0x4B227E2E...0dC15a2d5
0 ETH0.000330722.46904206
Execute207586632024-09-15 21:19:113 days ago1726435151IN
0x4B227E2E...0dC15a2d5
0 ETH0.000353332.63787427
Execute207586532024-09-15 21:17:113 days ago1726435031IN
0x4B227E2E...0dC15a2d5
0 ETH0.000355772.65603991
Execute207585152024-09-15 20:49:353 days ago1726433375IN
0x4B227E2E...0dC15a2d5
0 ETH0.000376722.81245608
Execute207584912024-09-15 20:44:473 days ago1726433087IN
0x4B227E2E...0dC15a2d5
0 ETH0.00046463.46852692
Execute207584782024-09-15 20:42:113 days ago1726432931IN
0x4B227E2E...0dC15a2d5
0 ETH0.000484353.61596864
Execute207584462024-09-15 20:35:473 days ago1726432547IN
0x4B227E2E...0dC15a2d5
0 ETH0.000619724.62658014
Execute207584362024-09-15 20:33:473 days ago1726432427IN
0x4B227E2E...0dC15a2d5
0 ETH0.000674915.03860784
Execute207560602024-09-15 12:36:593 days ago1726403819IN
0x4B227E2E...0dC15a2d5
0 ETH0.000295212.2039159
Execute207556962024-09-15 11:24:113 days ago1726399451IN
0x4B227E2E...0dC15a2d5
0 ETH0.000107681.824038
Execute207556962024-09-15 11:24:113 days ago1726399451IN
0x4B227E2E...0dC15a2d5
0 ETH0.000248331.824038
Execute207137512024-09-09 14:48:239 days ago1725893303IN
0x4B227E2E...0dC15a2d5
0 ETH0.00114538.55037838
Execute207137412024-09-09 14:46:239 days ago1725893183IN
0x4B227E2E...0dC15a2d5
0 ETH0.001212339.05076444
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
177221922023-07-18 19:28:59428 days ago1689708539
0x4B227E2E...0dC15a2d5
 Contract Creation0 ETH
175645942023-06-26 15:49:47450 days ago1687794587  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PlatformRelay

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : PlatformRelay.sol
// SPDX-License-Identifier: CSI

pragma solidity 0.8.16;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/utils/Create2.sol";

/**
 * CNFT Platform Relay Contract
 */
contract PlatformRelay is AccessControl, Ownable2Step {
    error CannotBeZeroAddress();
    error TransferNotAllowed();
    event ContractDeployed(address contract_);

    bytes32 public constant PROXY_EXECUTOR = keccak256("PROXY_EXECUTOR");

    modifier onlyNonZeroAddressAllowed(address address_) {
        if (address_ == address(0)) revert CannotBeZeroAddress();
        _;
    }

    struct Call {
        address target;
        bytes callData;
    }

    string internal constant NAME = "ConsenSys NFT Platform Relayer";
    string internal constant VERSION = "1.0";

    constructor(address owner) onlyNonZeroAddressAllowed(owner) {
        _transferOwnership(owner);
    }

    /** -----------------------------------------------------------------------
     *  Owner permissioned functions
     * ------------------------------------------------------------------------
     */
    /// @notice Relay can not be owned directly by single EOA
    /// @param newOwner The target address to call
    function transferOwnership(address newOwner) public virtual override onlyOwner onlyNonZeroAddressAllowed(newOwner) {
        super.transferOwnership(newOwner);
    }

    /// @notice Add accounts which can execute transactions
    /// @param accounts The accounts to add
    function addExecutors(address[] memory accounts) external onlyOwner {
        for (uint256 i = 0; i < accounts.length; i++) {
            _grantRole(PROXY_EXECUTOR, accounts[i]);
        }
    }

    /// @notice Remove accounts which can execute transactions
    /// @param accounts The accounts to remove
    function removeExecutors(address[] memory accounts) external onlyOwner {
        for (uint256 i = 0; i < accounts.length; i++) {
            _revokeRole(PROXY_EXECUTOR, accounts[i]);
        }
    }

    /** -----------------------------------------------------------------------
     *  PROXY_EXECUTOR permissioned functions
     * ------------------------------------------------------------------------
     */
    /// @notice Relay a call via this contract
    /// @param target The target address to call
    /// @param callData The call data to pass to the target
    /// @return The return value from the call
    function execute(address target, bytes calldata callData) external onlyRole(PROXY_EXECUTOR) returns (bytes memory) {
        return executeInternal(target, callData);
    }

    /// @notice Relay multiple call via this contract. This will revert payable actions, ie sending msg.value.
    /// @param calls Array of calls to execute
    /// @return returnData The return value from the call
    function execute(Call[] calldata calls) external onlyRole(PROXY_EXECUTOR) returns (bytes[] memory returnData) {
        returnData = new bytes[](calls.length);
        for (uint256 i = 0; i < calls.length; i++) {
            returnData[i] = executeInternal(calls[i].target, calls[i].callData);
        }
    }

    /// @dev Deploys a contract using `CREATE2`. The address where the contract
    /// will be deployed can be known in advance via {computeAddress}.
    /// @param bytecode must not be empty.
    /// @param salt must have not been used for `bytecode` already.
    function deploy(bytes32 salt, bytes memory bytecode) external onlyRole(PROXY_EXECUTOR) returns (address) {
        address address_ = Create2.deploy(0, salt, bytecode);
        emit ContractDeployed(address_);
        return address_;
    }

    /** -----------------------------------------------------------------------
     *  Helper functions
     * ------------------------------------------------------------------------
     */
    /// @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
    /// bytecode or salt will result in a new address.
    function computeAddress(bytes32 salt, bytes memory bytecode) external view returns (address) {
        return Create2.computeAddress(salt, keccak256(bytecode));
    }

    function executeInternal(address target, bytes memory callData) internal returns (bytes memory returnData) {
        (bool success, bytes memory ret) = target.call(callData);
        if (success != true) {
            // Next 5 lines from https://ethereum.stackexchange.com/a/83577
            if (ret.length < 68) revert();
            assembly {
                ret := add(ret, 0x04)
            }
            revert(abi.decode(ret, (string)));
        }
        return ret;
    }
}

File 2 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 11 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() external {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

File 4 of 11 : Create2.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Create2.sol)

pragma solidity ^0.8.0;

/**
 * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.
 * `CREATE2` can be used to compute in advance the address where a smart
 * contract will be deployed, which allows for interesting new mechanisms known
 * as 'counterfactual interactions'.
 *
 * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
 * information.
 */
library Create2 {
    /**
     * @dev Deploys a contract using `CREATE2`. The address where the contract
     * will be deployed can be known in advance via {computeAddress}.
     *
     * The bytecode for a contract can be obtained from Solidity with
     * `type(contractName).creationCode`.
     *
     * Requirements:
     *
     * - `bytecode` must not be empty.
     * - `salt` must have not been used for `bytecode` already.
     * - the factory must have a balance of at least `amount`.
     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.
     */
    function deploy(
        uint256 amount,
        bytes32 salt,
        bytes memory bytecode
    ) internal returns (address addr) {
        require(address(this).balance >= amount, "Create2: insufficient balance");
        require(bytecode.length != 0, "Create2: bytecode length is zero");
        /// @solidity memory-safe-assembly
        assembly {
            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
        }
        require(addr != address(0), "Create2: Failed on deploy");
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
     * `bytecodeHash` or `salt` will result in a new destination address.
     */
    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {
        return computeAddress(salt, bytecodeHash, address(this));
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at
     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.
     */
    function computeAddress(
        bytes32 salt,
        bytes32 bytecodeHash,
        address deployer
    ) internal pure returns (address addr) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40) // Get free memory pointer

            // |                   | ↓ ptr ...  ↓ ptr + 0x0B (start) ...  ↓ ptr + 0x20 ...  ↓ ptr + 0x40 ...   |
            // |-------------------|---------------------------------------------------------------------------|
            // | bytecodeHash      |                                                        CCCCCCCCCCCCC...CC |
            // | salt              |                                      BBBBBBBBBBBBB...BB                   |
            // | deployer          | 000000...0000AAAAAAAAAAAAAAAAAAA...AA                                     |
            // | 0xFF              |            FF                                                             |
            // |-------------------|---------------------------------------------------------------------------|
            // | memory            | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |
            // | keccak(start, 85) |            ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ |

            mstore(add(ptr, 0x40), bytecodeHash)
            mstore(add(ptr, 0x20), salt)
            mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes
            let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff
            mstore8(start, 0xff)
            addr := keccak256(start, 85)
        }
    }
}

File 5 of 11 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

File 7 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 8 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

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

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

File 10 of 11 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 11 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "remappings": [
    "@ensdomains/=node_modules/@ensdomains/",
    "@float-capital/=node_modules/@float-capital/",
    "@gnosis.pm/=node_modules/@gnosis.pm/",
    "@openzeppelin/=node_modules/@openzeppelin/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc721a/=node_modules/erc721a/",
    "eth-gas-reporter/=node_modules/eth-gas-reporter/",
    "forge-std/=lib/forge-std/src/",
    "hardhat/=node_modules/hardhat/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "constantOptimizer": true,
      "yul": true
    }
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CannotBeZeroAddress","type":"error"},{"inputs":[],"name":"TransferNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contract_","type":"address"}],"name":"ContractDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROXY_EXECUTOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"addExecutors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes","name":"bytecode","type":"bytes"}],"name":"computeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes","name":"bytecode","type":"bytes"}],"name":"deploy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct PlatformRelay.Call[]","name":"calls","type":"tuple[]"}],"name":"execute","outputs":[{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"removeExecutors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200155c3803806200155c8339810160408190526200003491620000f7565b6200003f336200007b565b806001600160a01b0381166200006857604051631e7d738760e21b815260040160405180910390fd5b62000073826200007b565b505062000129565b600280546001600160a01b0319169055620000a281620000a5602090811b620007af17901c565b50565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200010a57600080fd5b81516001600160a01b03811681146200012257600080fd5b9392505050565b61142380620001396000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806391d14854116100ad578063cdcb760a11610071578063cdcb760a14610272578063d547741f14610285578063dc09c3e414610298578063e30c3978146102ab578063f2fde38b146102bc57600080fd5b806391d148541461020f578063a217fddf14610222578063baae8abf1461022a578063bd028f881461024a578063ca9ffe941461025f57600080fd5b80632f2ff15d116100f45780632f2ff15d146101b457806336568abe146101c7578063715018a6146101da57806379ba5097146101e25780638da5cb5b146101ea57600080fd5b806301ffc9a7146101265780631cff79cd1461014e5780631ecd9cd81461016e578063248a9ca314610183575b600080fd5b610139610134366004610dd3565b6102cf565b60405190151581526020015b60405180910390f35b61016161015c366004610e19565b610306565b6040516101459190610eec565b61018161017c366004610f46565b610369565b005b6101a6610191366004610ff3565b60009081526020819052604090206001015490565b604051908152602001610145565b6101816101c236600461100c565b6103c4565b6101816101d536600461100c565b6103ee565b61018161046d565b610181610481565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610145565b61013961021d36600461100c565b6104fb565b6101a6600081565b61023d610238366004611038565b610524565b60405161014591906110ad565b6101a66000805160206113ce83398151915281565b6101f761026d366004611137565b610671565b6101f7610280366004611137565b61068b565b61018161029336600461100c565b6106fa565b6101816102a6366004610f46565b61071f565b6002546001600160a01b03166101f7565b6101816102ca3660046111c1565b610776565b60006001600160e01b03198216637965db0b60e01b148061030057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805160206113ce83398151915261032081610801565b6103608585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061080b92505050565b95945050505050565b6103716108c4565b60005b81518110156103c0576103ae6000805160206113ce8339815191528383815181106103a1576103a16111dc565b602002602001015161091e565b806103b881611208565b915050610374565b5050565b6000828152602081905260409020600101546103df81610801565b6103e9838361091e565b505050565b6001600160a01b03811633146104635760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6103c082826109a2565b6104756108c4565b61047f6000610a07565b565b60025433906001600160a01b031681146104ef5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b606482015260840161045a565b6104f881610a07565b50565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606000805160206113ce83398151915261053e81610801565b8267ffffffffffffffff81111561055757610557610eff565b60405190808252806020026020018201604052801561058a57816020015b60608152602001906001900390816105755790505b50915060005b83811015610669576106398585838181106105ad576105ad6111dc565b90506020028101906105bf9190611221565b6105cd9060208101906111c1565b8686848181106105df576105df6111dc565b90506020028101906105f19190611221565b6105ff906020810190611241565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061080b92505050565b83828151811061064b5761064b6111dc565b6020026020010181905250808061066190611208565b915050610590565b505092915050565b6000610684838380519060200120610a20565b9392505050565b60006000805160206113ce8339815191526106a581610801565b60006106b360008686610a2d565b6040516001600160a01b03821681529091507f8ffcdc15a283d706d38281f500270d8b5a656918f555de0913d7455e3e6bc1bf9060200160405180910390a1949350505050565b60008281526020819052604090206001015461071581610801565b6103e983836109a2565b6107276108c4565b60005b81518110156103c0576107646000805160206113ce833981519152838381518110610757576107576111dc565b60200260200101516109a2565b8061076e81611208565b91505061072a565b61077e6108c4565b806001600160a01b0381166107a657604051631e7d738760e21b815260040160405180910390fd5b6103c082610b31565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6104f88133610ba2565b6060600080846001600160a01b031684604051610828919061128f565b6000604051808303816000865af19150503d8060008114610865576040519150601f19603f3d011682016040523d82523d6000602084013e61086a565b606091505b5090925090506001821515146108bc5760448151101561088957600080fd5b600481019050808060200190518101906108a391906112a1565b60405162461bcd60e51b815260040161045a9190610eec565b949350505050565b6001546001600160a01b0316331461047f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045a565b61092882826104fb565b6103c0576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561095e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6109ac82826104fb565b156103c0576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600280546001600160a01b03191690556104f8816107af565b6000610684838330610bfb565b600083471015610a7f5760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640161045a565b8151600003610ad05760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640161045a565b8282516020840186f590506001600160a01b0381166106845760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640161045a565b610b396108c4565b600280546001600160a01b0383166001600160a01b03199091168117909155610b6a6001546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610bac82826104fb565b6103c057610bb981610c25565b610bc4836020610c37565b604051602001610bd592919061130f565b60408051601f198184030181529082905262461bcd60e51b825261045a91600401610eec565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b60606103006001600160a01b03831660145b60606000610c46836002611384565b610c519060026113a3565b67ffffffffffffffff811115610c6957610c69610eff565b6040519080825280601f01601f191660200182016040528015610c93576020820181803683370190505b509050600360fc1b81600081518110610cae57610cae6111dc565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610cdd57610cdd6111dc565b60200101906001600160f81b031916908160001a9053506000610d01846002611384565b610d0c9060016113a3565b90505b6001811115610d84576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610d4057610d406111dc565b1a60f81b828281518110610d5657610d566111dc565b60200101906001600160f81b031916908160001a90535060049490941c93610d7d816113b6565b9050610d0f565b5083156106845760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161045a565b600060208284031215610de557600080fd5b81356001600160e01b03198116811461068457600080fd5b80356001600160a01b0381168114610e1457600080fd5b919050565b600080600060408486031215610e2e57600080fd5b610e3784610dfd565b9250602084013567ffffffffffffffff80821115610e5457600080fd5b818601915086601f830112610e6857600080fd5b813581811115610e7757600080fd5b876020828501011115610e8957600080fd5b6020830194508093505050509250925092565b60005b83811015610eb7578181015183820152602001610e9f565b50506000910152565b60008151808452610ed8816020860160208601610e9c565b601f01601f19169290920160200192915050565b6020815260006106846020830184610ec0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610f3e57610f3e610eff565b604052919050565b60006020808385031215610f5957600080fd5b823567ffffffffffffffff80821115610f7157600080fd5b818501915085601f830112610f8557600080fd5b813581811115610f9757610f97610eff565b8060051b9150610fa8848301610f15565b8181529183018401918481019088841115610fc257600080fd5b938501935b83851015610fe757610fd885610dfd565b82529385019390850190610fc7565b98975050505050505050565b60006020828403121561100557600080fd5b5035919050565b6000806040838503121561101f57600080fd5b8235915061102f60208401610dfd565b90509250929050565b6000806020838503121561104b57600080fd5b823567ffffffffffffffff8082111561106357600080fd5b818501915085601f83011261107757600080fd5b81358181111561108657600080fd5b8660208260051b850101111561109b57600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561110257603f198886030184526110f0858351610ec0565b945092850192908501906001016110d4565b5092979650505050505050565b600067ffffffffffffffff82111561112957611129610eff565b50601f01601f191660200190565b6000806040838503121561114a57600080fd5b82359150602083013567ffffffffffffffff81111561116857600080fd5b8301601f8101851361117957600080fd5b803561118c6111878261110f565b610f15565b8181528660208385010111156111a157600080fd5b816020840160208301376000602083830101528093505050509250929050565b6000602082840312156111d357600080fd5b61068482610dfd565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161121a5761121a6111f2565b5060010190565b60008235603e1983360301811261123757600080fd5b9190910192915050565b6000808335601e1984360301811261125857600080fd5b83018035915067ffffffffffffffff82111561127357600080fd5b60200191503681900382131561128857600080fd5b9250929050565b60008251611237818460208701610e9c565b6000602082840312156112b357600080fd5b815167ffffffffffffffff8111156112ca57600080fd5b8201601f810184136112db57600080fd5b80516112e96111878261110f565b8181528560208385010111156112fe57600080fd5b610360826020830160208601610e9c565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611347816017850160208801610e9c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611378816028840160208801610e9c565b01602801949350505050565b600081600019048311821515161561139e5761139e6111f2565b500290565b80820180821115610300576103006111f2565b6000816113c5576113c56111f2565b50600019019056fe5b51afe39189cb0f8fdf1bafb4f96ee19ab1ea148817cbd75eef327878fba84da2646970667358221220d3f78009fe172cd8625fd7c2c6f5e39d935245ab7efbf9ebe0b864c75ee9a41a64736f6c63430008100033000000000000000000000000c0deca038bb3e52c9ec9c71afaf1824481c350d9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c806391d14854116100ad578063cdcb760a11610071578063cdcb760a14610272578063d547741f14610285578063dc09c3e414610298578063e30c3978146102ab578063f2fde38b146102bc57600080fd5b806391d148541461020f578063a217fddf14610222578063baae8abf1461022a578063bd028f881461024a578063ca9ffe941461025f57600080fd5b80632f2ff15d116100f45780632f2ff15d146101b457806336568abe146101c7578063715018a6146101da57806379ba5097146101e25780638da5cb5b146101ea57600080fd5b806301ffc9a7146101265780631cff79cd1461014e5780631ecd9cd81461016e578063248a9ca314610183575b600080fd5b610139610134366004610dd3565b6102cf565b60405190151581526020015b60405180910390f35b61016161015c366004610e19565b610306565b6040516101459190610eec565b61018161017c366004610f46565b610369565b005b6101a6610191366004610ff3565b60009081526020819052604090206001015490565b604051908152602001610145565b6101816101c236600461100c565b6103c4565b6101816101d536600461100c565b6103ee565b61018161046d565b610181610481565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610145565b61013961021d36600461100c565b6104fb565b6101a6600081565b61023d610238366004611038565b610524565b60405161014591906110ad565b6101a66000805160206113ce83398151915281565b6101f761026d366004611137565b610671565b6101f7610280366004611137565b61068b565b61018161029336600461100c565b6106fa565b6101816102a6366004610f46565b61071f565b6002546001600160a01b03166101f7565b6101816102ca3660046111c1565b610776565b60006001600160e01b03198216637965db0b60e01b148061030057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805160206113ce83398151915261032081610801565b6103608585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061080b92505050565b95945050505050565b6103716108c4565b60005b81518110156103c0576103ae6000805160206113ce8339815191528383815181106103a1576103a16111dc565b602002602001015161091e565b806103b881611208565b915050610374565b5050565b6000828152602081905260409020600101546103df81610801565b6103e9838361091e565b505050565b6001600160a01b03811633146104635760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6103c082826109a2565b6104756108c4565b61047f6000610a07565b565b60025433906001600160a01b031681146104ef5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b606482015260840161045a565b6104f881610a07565b50565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606000805160206113ce83398151915261053e81610801565b8267ffffffffffffffff81111561055757610557610eff565b60405190808252806020026020018201604052801561058a57816020015b60608152602001906001900390816105755790505b50915060005b83811015610669576106398585838181106105ad576105ad6111dc565b90506020028101906105bf9190611221565b6105cd9060208101906111c1565b8686848181106105df576105df6111dc565b90506020028101906105f19190611221565b6105ff906020810190611241565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061080b92505050565b83828151811061064b5761064b6111dc565b6020026020010181905250808061066190611208565b915050610590565b505092915050565b6000610684838380519060200120610a20565b9392505050565b60006000805160206113ce8339815191526106a581610801565b60006106b360008686610a2d565b6040516001600160a01b03821681529091507f8ffcdc15a283d706d38281f500270d8b5a656918f555de0913d7455e3e6bc1bf9060200160405180910390a1949350505050565b60008281526020819052604090206001015461071581610801565b6103e983836109a2565b6107276108c4565b60005b81518110156103c0576107646000805160206113ce833981519152838381518110610757576107576111dc565b60200260200101516109a2565b8061076e81611208565b91505061072a565b61077e6108c4565b806001600160a01b0381166107a657604051631e7d738760e21b815260040160405180910390fd5b6103c082610b31565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6104f88133610ba2565b6060600080846001600160a01b031684604051610828919061128f565b6000604051808303816000865af19150503d8060008114610865576040519150601f19603f3d011682016040523d82523d6000602084013e61086a565b606091505b5090925090506001821515146108bc5760448151101561088957600080fd5b600481019050808060200190518101906108a391906112a1565b60405162461bcd60e51b815260040161045a9190610eec565b949350505050565b6001546001600160a01b0316331461047f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045a565b61092882826104fb565b6103c0576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561095e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6109ac82826104fb565b156103c0576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600280546001600160a01b03191690556104f8816107af565b6000610684838330610bfb565b600083471015610a7f5760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640161045a565b8151600003610ad05760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640161045a565b8282516020840186f590506001600160a01b0381166106845760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640161045a565b610b396108c4565b600280546001600160a01b0383166001600160a01b03199091168117909155610b6a6001546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610bac82826104fb565b6103c057610bb981610c25565b610bc4836020610c37565b604051602001610bd592919061130f565b60408051601f198184030181529082905262461bcd60e51b825261045a91600401610eec565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b60606103006001600160a01b03831660145b60606000610c46836002611384565b610c519060026113a3565b67ffffffffffffffff811115610c6957610c69610eff565b6040519080825280601f01601f191660200182016040528015610c93576020820181803683370190505b509050600360fc1b81600081518110610cae57610cae6111dc565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610cdd57610cdd6111dc565b60200101906001600160f81b031916908160001a9053506000610d01846002611384565b610d0c9060016113a3565b90505b6001811115610d84576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610d4057610d406111dc565b1a60f81b828281518110610d5657610d566111dc565b60200101906001600160f81b031916908160001a90535060049490941c93610d7d816113b6565b9050610d0f565b5083156106845760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161045a565b600060208284031215610de557600080fd5b81356001600160e01b03198116811461068457600080fd5b80356001600160a01b0381168114610e1457600080fd5b919050565b600080600060408486031215610e2e57600080fd5b610e3784610dfd565b9250602084013567ffffffffffffffff80821115610e5457600080fd5b818601915086601f830112610e6857600080fd5b813581811115610e7757600080fd5b876020828501011115610e8957600080fd5b6020830194508093505050509250925092565b60005b83811015610eb7578181015183820152602001610e9f565b50506000910152565b60008151808452610ed8816020860160208601610e9c565b601f01601f19169290920160200192915050565b6020815260006106846020830184610ec0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610f3e57610f3e610eff565b604052919050565b60006020808385031215610f5957600080fd5b823567ffffffffffffffff80821115610f7157600080fd5b818501915085601f830112610f8557600080fd5b813581811115610f9757610f97610eff565b8060051b9150610fa8848301610f15565b8181529183018401918481019088841115610fc257600080fd5b938501935b83851015610fe757610fd885610dfd565b82529385019390850190610fc7565b98975050505050505050565b60006020828403121561100557600080fd5b5035919050565b6000806040838503121561101f57600080fd5b8235915061102f60208401610dfd565b90509250929050565b6000806020838503121561104b57600080fd5b823567ffffffffffffffff8082111561106357600080fd5b818501915085601f83011261107757600080fd5b81358181111561108657600080fd5b8660208260051b850101111561109b57600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561110257603f198886030184526110f0858351610ec0565b945092850192908501906001016110d4565b5092979650505050505050565b600067ffffffffffffffff82111561112957611129610eff565b50601f01601f191660200190565b6000806040838503121561114a57600080fd5b82359150602083013567ffffffffffffffff81111561116857600080fd5b8301601f8101851361117957600080fd5b803561118c6111878261110f565b610f15565b8181528660208385010111156111a157600080fd5b816020840160208301376000602083830101528093505050509250929050565b6000602082840312156111d357600080fd5b61068482610dfd565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161121a5761121a6111f2565b5060010190565b60008235603e1983360301811261123757600080fd5b9190910192915050565b6000808335601e1984360301811261125857600080fd5b83018035915067ffffffffffffffff82111561127357600080fd5b60200191503681900382131561128857600080fd5b9250929050565b60008251611237818460208701610e9c565b6000602082840312156112b357600080fd5b815167ffffffffffffffff8111156112ca57600080fd5b8201601f810184136112db57600080fd5b80516112e96111878261110f565b8181528560208385010111156112fe57600080fd5b610360826020830160208601610e9c565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611347816017850160208801610e9c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611378816028840160208801610e9c565b01602801949350505050565b600081600019048311821515161561139e5761139e6111f2565b500290565b80820180821115610300576103006111f2565b6000816113c5576113c56111f2565b50600019019056fe5b51afe39189cb0f8fdf1bafb4f96ee19ab1ea148817cbd75eef327878fba84da2646970667358221220d3f78009fe172cd8625fd7c2c6f5e39d935245ab7efbf9ebe0b864c75ee9a41a64736f6c63430008100033

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

000000000000000000000000c0deca038bb3e52c9ec9c71afaf1824481c350d9

-----Decoded View---------------
Arg [0] : owner (address): 0xc0deCA038BB3E52c9eC9C71afaF1824481C350d9

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c0deca038bb3e52c9ec9c71afaf1824481c350d9


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