ETH Price: $3,391.87 (+4.19%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Grant Role152814192022-08-05 9:11:48903 days ago1659690708IN
0x024aC22A...fdc1f0779
0 ETH0.000442868.6677006
Grant Role152814182022-08-05 9:11:01903 days ago1659690661IN
0x024aC22A...fdc1f0779
0 ETH0.000405117.87141666

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
216914912025-01-24 2:51:5913 hrs ago1737687119
0x024aC22A...fdc1f0779
0 ETH
216914912025-01-24 2:51:5913 hrs ago1737687119
0x024aC22A...fdc1f0779
0 ETH
216914912025-01-24 2:51:5913 hrs ago1737687119
0x024aC22A...fdc1f0779
0 ETH
216709452025-01-21 6:02:353 days ago1737439355
0x024aC22A...fdc1f0779
0 ETH
216709452025-01-21 6:02:353 days ago1737439355
0x024aC22A...fdc1f0779
0 ETH
216709452025-01-21 6:02:353 days ago1737439355
0x024aC22A...fdc1f0779
0 ETH
216406112025-01-17 0:23:597 days ago1737073439
0x024aC22A...fdc1f0779
0 ETH
216406112025-01-17 0:23:597 days ago1737073439
0x024aC22A...fdc1f0779
0 ETH
216406112025-01-17 0:23:597 days ago1737073439
0x024aC22A...fdc1f0779
0 ETH
216355022025-01-16 7:17:358 days ago1737011855
0x024aC22A...fdc1f0779
0 ETH
216355022025-01-16 7:17:358 days ago1737011855
0x024aC22A...fdc1f0779
0 ETH
216355022025-01-16 7:17:358 days ago1737011855
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216134012025-01-13 5:12:2311 days ago1736745143
0x024aC22A...fdc1f0779
0 ETH
216047022025-01-12 0:04:2312 days ago1736640263
0x024aC22A...fdc1f0779
0 ETH
216047022025-01-12 0:04:2312 days ago1736640263
0x024aC22A...fdc1f0779
0 ETH
216047022025-01-12 0:04:2312 days ago1736640263
0x024aC22A...fdc1f0779
0 ETH
215985402025-01-11 3:24:5913 days ago1736565899
0x024aC22A...fdc1f0779
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC1155Delegate

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 13 : ERC1155Delegate.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.0;
pragma abicoder v2;

import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';
import '@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol';
import '@openzeppelin/contracts/access/AccessControl.sol';
import './MarketConsts.sol';
import './IDelegate.sol';

contract ERC1155Delegate is IDelegate, AccessControl, IERC1155Receiver {
    bytes32 public constant DELEGATION_CALLER = keccak256('DELEGATION_CALLER');

    struct Pair {
        IERC1155 token;
        uint256 tokenId;
        uint256 amount;
    }

    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function onERC1155Received(
        address, // operator,
        address, // from,
        uint256, // id,
        uint256, // value,
        bytes calldata // data
    ) external override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address, // operator,
        address, // from,
        uint256[] calldata, // ids,
        uint256[] calldata, // values,
        bytes calldata // data
    ) external override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }

    function decode(bytes calldata data) internal pure returns (Pair[] memory) {
        return abi.decode(data, (Pair[]));
    }

    function delegateType() external view returns (uint256) {
        // return uint256(Market.DelegationType.ERC1155);
        return 2;
    }

    function executeSell(
        address seller,
        address buyer,
        bytes calldata data
    ) external onlyRole(DELEGATION_CALLER) returns (bool) {
        Pair[] memory pairs = decode(data);
        for (uint256 i = 0; i < pairs.length; i++) {
            Pair memory p = pairs[i];
            _assertAmount(p);
            p.token.safeTransferFrom(seller, buyer, p.tokenId, p.amount, '');
        }
        return true;
    }

    function executeBuy(
        address seller,
        address buyer,
        bytes calldata data
    ) external onlyRole(DELEGATION_CALLER) returns (bool) {
        Pair[] memory pairs = decode(data);
        for (uint256 i = 0; i < pairs.length; i++) {
            Pair memory p = pairs[i];
            _assertAmount(p);
            p.token.safeTransferFrom(seller, buyer, p.tokenId, p.amount, '');
        }
        return true;
    }

    function executeBid(
        address seller,
        address previousBidder,
        address, // bidder,
        bytes calldata data
    ) external onlyRole(DELEGATION_CALLER) returns (bool) {
        if (previousBidder == address(0)) {
            Pair[] memory pairs = decode(data);
            for (uint256 i = 0; i < pairs.length; i++) {
                Pair memory p = pairs[i];
                _assertAmount(p);
                p.token.safeTransferFrom(seller, address(this), p.tokenId, p.amount, '');
            }
        }
        return true;
    }

    function executeAuctionComplete(
        address, // seller,
        address buyer,
        bytes calldata data
    ) external onlyRole(DELEGATION_CALLER) returns (bool) {
        Pair[] memory pairs = decode(data);
        for (uint256 i = 0; i < pairs.length; i++) {
            Pair memory p = pairs[i];
            _assertAmount(p);
            p.token.safeTransferFrom(address(this), buyer, p.tokenId, p.amount, '');
        }
        return true;
    }

    function executeAuctionRefund(
        address seller,
        address, // lastBidder,
        bytes calldata data
    ) external onlyRole(DELEGATION_CALLER) returns (bool) {
        Pair[] memory pairs = decode(data);
        for (uint256 i = 0; i < pairs.length; i++) {
            Pair memory p = pairs[i];
            _assertAmount(p);
            p.token.safeTransferFrom(address(this), seller, p.tokenId, p.amount, '');
        }
        return true;
    }

    function transferBatch(Pair[] memory pairs, address to) public {
        for (uint256 i = 0; i < pairs.length; i++) {
            Pair memory p = pairs[i];
            _assertAmount(p);
            p.token.safeTransferFrom(msg.sender, to, p.tokenId, p.amount, '');
        }
    }

    function _assertAmount(Pair memory p) internal {
        require(p.amount > 0, 'Delegate: amount > 0');
    }
}

File 2 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 3 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 4 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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 {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " 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 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.
     */
    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.
     */
    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`.
     */
    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.
     *
     * [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.
     */
    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.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 5 of 13 : MarketConsts.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.0;
pragma abicoder v2;

import './IDelegate.sol';
import './IWETHUpgradable.sol';

library Market {
    uint256 constant INTENT_SELL = 1;
    uint256 constant INTENT_AUCTION = 2;
    uint256 constant INTENT_BUY = 3;

    uint8 constant SIGN_V1 = 1;
    uint8 constant SIGN_V3 = 3;

    struct OrderItem {
        uint256 price;
        bytes data;
    }

    struct Order {
        uint256 salt;
        address user;
        uint256 network;
        uint256 intent;
        uint256 delegateType;
        uint256 deadline;
        IERC20Upgradeable currency;
        bytes dataMask;
        OrderItem[] items;
        // signature
        bytes32 r;
        bytes32 s;
        uint8 v;
        uint8 signVersion;
    }

    struct Fee {
        uint256 percentage;
        address to;
    }

    struct SettleDetail {
        Market.Op op;
        uint256 orderIdx;
        uint256 itemIdx;
        uint256 price;
        bytes32 itemHash;
        IDelegate executionDelegate;
        bytes dataReplacement;
        uint256 bidIncentivePct;
        uint256 aucMinIncrementPct;
        uint256 aucIncDurationSecs;
        Fee[] fees;
    }

    struct SettleShared {
        uint256 salt;
        uint256 deadline;
        uint256 amountToEth;
        uint256 amountToWeth;
        address user;
        bool canFail;
    }

    struct RunInput {
        Order[] orders;
        SettleDetail[] details;
        SettleShared shared;
        // signature
        bytes32 r;
        bytes32 s;
        uint8 v;
    }

    struct OngoingAuction {
        uint256 price;
        uint256 netPrice;
        uint256 endAt;
        address bidder;
    }

    enum InvStatus {
        NEW,
        AUCTION,
        COMPLETE,
        CANCELLED,
        REFUNDED
    }

    enum Op {
        INVALID,
        // off-chain
        COMPLETE_SELL_OFFER,
        COMPLETE_BUY_OFFER,
        CANCEL_OFFER,
        // auction
        BID,
        COMPLETE_AUCTION,
        REFUND_AUCTION,
        REFUND_AUCTION_STUCK_ITEM
    }

    enum DelegationType {
        INVALID,
        ERC721,
        ERC1155
    }
}

File 6 of 13 : IDelegate.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.0;
pragma abicoder v2;

interface IDelegate {
    function delegateType() external view returns (uint256);

    function executeSell(
        address seller,
        address buyer,
        bytes calldata data
    ) external returns (bool);

    function executeBuy(
        address seller,
        address buyer,
        bytes calldata data
    ) external returns (bool);

    function executeBid(
        address seller,
        address previousBidder,
        address bidder,
        bytes calldata data
    ) external returns (bool);

    function executeAuctionComplete(
        address seller,
        address buyer,
        bytes calldata data
    ) external returns (bool);

    function executeAuctionRefund(
        address seller,
        address lastBidder,
        bytes calldata data
    ) external returns (bool);
}

File 7 of 13 : 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);
}

File 8 of 13 : 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 9 of 13 : 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 10 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 11 of 13 : 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 12 of 13 : IWETHUpgradable.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.0;
pragma abicoder v2;

import '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';

interface IWETHUpgradable is IERC20Upgradeable {
    function deposit() external payable;

    function withdraw(uint256 wad) external;
}

File 13 of 13 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"DELEGATION_CALLER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delegateType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"buyer","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeAuctionComplete","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeAuctionRefund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"previousBidder","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeBid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"buyer","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeBuy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"buyer","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeSell","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"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":[{"components":[{"internalType":"contract IERC1155","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC1155Delegate.Pair[]","name":"pairs","type":"tuple[]"},{"internalType":"address","name":"to","type":"address"}],"name":"transferBatch","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001c600033610021565b6100c0565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166100bc576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561007b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61130b806100cf6000396000f3fe608060405234801561001057600080fd5b50600436106100eb5760003560e01c806391d148541161009257806391d14854146101b3578063a217fddf146101c6578063b8d3e900146101ce578063bc197c81146101e1578063bc553f0f1461021c578063c23725f91461022f578063d547741f14610242578063f23a6e6114610255578063f477e4fd1461027557600080fd5b806301ffc9a7146100f05780631672162614610118578063248a9ca31461012b5780632c436e5b1461015c5780632f2ff15d1461016357806336568abe146101785780633672c9111461018b5780638e3259791461019e575b600080fd5b6101036100fe366004610c44565b610288565b60405190151581526020015b60405180910390f35b610103610126366004610ccb565b6102bf565b61014e610139366004610d2f565b60009081526020819052604090206001015490565b60405190815260200161010f565b600261014e565b610176610171366004610d48565b6103ac565b005b610176610186366004610d48565b6103d7565b610103610199366004610ccb565b61045a565b61014e6000805160206112b683398151915281565b6101036101c1366004610d48565b610539565b61014e600081565b6101766101dc366004610e9c565b610562565b6102036101ef366004610f26565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b0319909116815260200161010f565b61010361022a366004610ccb565b610618565b61010361023d366004610fe4565b6106f7565b610176610250366004610d48565b6107f4565b61020361026336600461105f565b63f23a6e6160e01b9695505050505050565b610103610283366004610ccb565b61081a565b60006001600160e01b03198216637965db0b60e01b14806102b957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006000805160206112b68339815191526102da81336108f9565b60006102e6858561095d565b905060005b815181101561039e576000828281518110610308576103086110da565b6020026020010151905061031b81610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a92610358928e928e9291906004016110f0565b600060405180830381600087803b15801561037257600080fd5b505af1158015610386573d6000803e3d6000fd5b505050505080806103969061113e565b9150506102eb565b506001979650505050505050565b6000828152602081905260409020600101546103c881336108f9565b6103d283836109c0565b505050565b6001600160a01b038116331461044c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104568282610a44565b5050565b60006000805160206112b683398151915261047581336108f9565b6000610481858561095d565b905060005b815181101561039e5760008282815181106104a3576104a36110da565b602002602001015190506104b681610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a926104f39230928e9291906004016110f0565b600060405180830381600087803b15801561050d57600080fd5b505af1158015610521573d6000803e3d6000fd5b505050505080806105319061113e565b915050610486565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60005b82518110156103d2576000838281518110610582576105826110da565b6020026020010151905061059581610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a926105d2923392899291906004016110f0565b600060405180830381600087803b1580156105ec57600080fd5b505af1158015610600573d6000803e3d6000fd5b505050505080806106109061113e565b915050610565565b60006000805160206112b683398151915261063381336108f9565b600061063f858561095d565b905060005b815181101561039e576000828281518110610661576106616110da565b6020026020010151905061067481610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a926106b1928e928e9291906004016110f0565b600060405180830381600087803b1580156106cb57600080fd5b505af11580156106df573d6000803e3d6000fd5b505050505080806106ef9061113e565b915050610644565b60006000805160206112b683398151915261071281336108f9565b6001600160a01b0386166107e757600061072c858561095d565b905060005b81518110156107e457600082828151811061074e5761074e6110da565b6020026020010151905061076181610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a9261079e928f92309291906004016110f0565b600060405180830381600087803b1580156107b857600080fd5b505af11580156107cc573d6000803e3d6000fd5b505050505080806107dc9061113e565b915050610731565b50505b5060019695505050505050565b60008281526020819052604090206001015461081081336108f9565b6103d28383610a44565b60006000805160206112b683398151915261083581336108f9565b6000610841858561095d565b905060005b815181101561039e576000828281518110610863576108636110da565b6020026020010151905061087681610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a926108b39230928f9291906004016110f0565b600060405180830381600087803b1580156108cd57600080fd5b505af11580156108e1573d6000803e3d6000fd5b505050505080806108f19061113e565b915050610846565b6109038282610539565b6104565761091b816001600160a01b03166014610aa9565b610926836020610aa9565b604051602001610937929190611189565b60408051601f198184030181529082905262461bcd60e51b8252610443916004016111f8565b606061096b8284018461122b565b9392505050565b60008160400151116109bd5760405162461bcd60e51b8152602060048201526014602482015273044656c65676174653a20616d6f756e74203e20360641b6044820152606401610443565b50565b6109ca8282610539565b610456576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610a003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610a4e8282610539565b15610456576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610ab8836002611267565b610ac3906002611286565b6001600160401b03811115610ada57610ada610d78565b6040519080825280601f01601f191660200182016040528015610b04576020820181803683370190505b509050600360fc1b81600081518110610b1f57610b1f6110da565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610b4e57610b4e6110da565b60200101906001600160f81b031916908160001a9053506000610b72846002611267565b610b7d906001611286565b90505b6001811115610bf5576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610bb157610bb16110da565b1a60f81b828281518110610bc757610bc76110da565b60200101906001600160f81b031916908160001a90535060049490941c93610bee8161129e565b9050610b80565b50831561096b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610443565b600060208284031215610c5657600080fd5b81356001600160e01b03198116811461096b57600080fd5b6001600160a01b03811681146109bd57600080fd5b60008083601f840112610c9557600080fd5b5081356001600160401b03811115610cac57600080fd5b602083019150836020828501011115610cc457600080fd5b9250929050565b60008060008060608587031215610ce157600080fd5b8435610cec81610c6e565b93506020850135610cfc81610c6e565b925060408501356001600160401b03811115610d1757600080fd5b610d2387828801610c83565b95989497509550505050565b600060208284031215610d4157600080fd5b5035919050565b60008060408385031215610d5b57600080fd5b823591506020830135610d6d81610c6e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715610db057610db0610d78565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610dde57610dde610d78565b604052919050565b600082601f830112610df757600080fd5b813560206001600160401b03821115610e1257610e12610d78565b610e20818360051b01610db6565b82815260609283028501820192828201919087851115610e3f57600080fd5b8387015b85811015610e8f5781818a031215610e5b5760008081fd5b610e63610d8e565b8135610e6e81610c6e565b81528186013586820152604080830135908201528452928401928101610e43565b5090979650505050505050565b60008060408385031215610eaf57600080fd5b82356001600160401b03811115610ec557600080fd5b610ed185828601610de6565b9250506020830135610d6d81610c6e565b60008083601f840112610ef457600080fd5b5081356001600160401b03811115610f0b57600080fd5b6020830191508360208260051b8501011115610cc457600080fd5b60008060008060008060008060a0898b031215610f4257600080fd5b8835610f4d81610c6e565b97506020890135610f5d81610c6e565b965060408901356001600160401b0380821115610f7957600080fd5b610f858c838d01610ee2565b909850965060608b0135915080821115610f9e57600080fd5b610faa8c838d01610ee2565b909650945060808b0135915080821115610fc357600080fd5b50610fd08b828c01610c83565b999c989b5096995094979396929594505050565b600080600080600060808688031215610ffc57600080fd5b853561100781610c6e565b9450602086013561101781610c6e565b9350604086013561102781610c6e565b925060608601356001600160401b0381111561104257600080fd5b61104e88828901610c83565b969995985093965092949392505050565b60008060008060008060a0878903121561107857600080fd5b863561108381610c6e565b9550602087013561109381610c6e565b9450604087013593506060870135925060808701356001600160401b038111156110bc57600080fd5b6110c889828a01610c83565b979a9699509497509295939492505050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561115257611152611128565b5060010190565b60005b8381101561117457818101518382015260200161115c565b83811115611183576000848401525b50505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516111bb816017850160208801611159565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516111ec816028840160208801611159565b01602801949350505050565b6020815260008251806020840152611217816040850160208701611159565b601f01601f19169190910160400192915050565b60006020828403121561123d57600080fd5b81356001600160401b0381111561125357600080fd5b61125f84828501610de6565b949350505050565b600081600019048311821515161561128157611281611128565b500290565b6000821982111561129957611299611128565b500190565b6000816112ad576112ad611128565b50600019019056fe7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf615331a264697066735822122057fb5d317f9691a5e26d7b7c642bc3b23b9c341481e2c0e7091116a3e7f0c1c164736f6c634300080b0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100eb5760003560e01c806391d148541161009257806391d14854146101b3578063a217fddf146101c6578063b8d3e900146101ce578063bc197c81146101e1578063bc553f0f1461021c578063c23725f91461022f578063d547741f14610242578063f23a6e6114610255578063f477e4fd1461027557600080fd5b806301ffc9a7146100f05780631672162614610118578063248a9ca31461012b5780632c436e5b1461015c5780632f2ff15d1461016357806336568abe146101785780633672c9111461018b5780638e3259791461019e575b600080fd5b6101036100fe366004610c44565b610288565b60405190151581526020015b60405180910390f35b610103610126366004610ccb565b6102bf565b61014e610139366004610d2f565b60009081526020819052604090206001015490565b60405190815260200161010f565b600261014e565b610176610171366004610d48565b6103ac565b005b610176610186366004610d48565b6103d7565b610103610199366004610ccb565b61045a565b61014e6000805160206112b683398151915281565b6101036101c1366004610d48565b610539565b61014e600081565b6101766101dc366004610e9c565b610562565b6102036101ef366004610f26565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b0319909116815260200161010f565b61010361022a366004610ccb565b610618565b61010361023d366004610fe4565b6106f7565b610176610250366004610d48565b6107f4565b61020361026336600461105f565b63f23a6e6160e01b9695505050505050565b610103610283366004610ccb565b61081a565b60006001600160e01b03198216637965db0b60e01b14806102b957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006000805160206112b68339815191526102da81336108f9565b60006102e6858561095d565b905060005b815181101561039e576000828281518110610308576103086110da565b6020026020010151905061031b81610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a92610358928e928e9291906004016110f0565b600060405180830381600087803b15801561037257600080fd5b505af1158015610386573d6000803e3d6000fd5b505050505080806103969061113e565b9150506102eb565b506001979650505050505050565b6000828152602081905260409020600101546103c881336108f9565b6103d283836109c0565b505050565b6001600160a01b038116331461044c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104568282610a44565b5050565b60006000805160206112b683398151915261047581336108f9565b6000610481858561095d565b905060005b815181101561039e5760008282815181106104a3576104a36110da565b602002602001015190506104b681610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a926104f39230928e9291906004016110f0565b600060405180830381600087803b15801561050d57600080fd5b505af1158015610521573d6000803e3d6000fd5b505050505080806105319061113e565b915050610486565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60005b82518110156103d2576000838281518110610582576105826110da565b6020026020010151905061059581610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a926105d2923392899291906004016110f0565b600060405180830381600087803b1580156105ec57600080fd5b505af1158015610600573d6000803e3d6000fd5b505050505080806106109061113e565b915050610565565b60006000805160206112b683398151915261063381336108f9565b600061063f858561095d565b905060005b815181101561039e576000828281518110610661576106616110da565b6020026020010151905061067481610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a926106b1928e928e9291906004016110f0565b600060405180830381600087803b1580156106cb57600080fd5b505af11580156106df573d6000803e3d6000fd5b505050505080806106ef9061113e565b915050610644565b60006000805160206112b683398151915261071281336108f9565b6001600160a01b0386166107e757600061072c858561095d565b905060005b81518110156107e457600082828151811061074e5761074e6110da565b6020026020010151905061076181610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a9261079e928f92309291906004016110f0565b600060405180830381600087803b1580156107b857600080fd5b505af11580156107cc573d6000803e3d6000fd5b505050505080806107dc9061113e565b915050610731565b50505b5060019695505050505050565b60008281526020819052604090206001015461081081336108f9565b6103d28383610a44565b60006000805160206112b683398151915261083581336108f9565b6000610841858561095d565b905060005b815181101561039e576000828281518110610863576108636110da565b6020026020010151905061087681610972565b805160208201516040808401519051637921219560e11b81526001600160a01b039093169263f242432a926108b39230928f9291906004016110f0565b600060405180830381600087803b1580156108cd57600080fd5b505af11580156108e1573d6000803e3d6000fd5b505050505080806108f19061113e565b915050610846565b6109038282610539565b6104565761091b816001600160a01b03166014610aa9565b610926836020610aa9565b604051602001610937929190611189565b60408051601f198184030181529082905262461bcd60e51b8252610443916004016111f8565b606061096b8284018461122b565b9392505050565b60008160400151116109bd5760405162461bcd60e51b8152602060048201526014602482015273044656c65676174653a20616d6f756e74203e20360641b6044820152606401610443565b50565b6109ca8282610539565b610456576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610a003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610a4e8282610539565b15610456576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610ab8836002611267565b610ac3906002611286565b6001600160401b03811115610ada57610ada610d78565b6040519080825280601f01601f191660200182016040528015610b04576020820181803683370190505b509050600360fc1b81600081518110610b1f57610b1f6110da565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610b4e57610b4e6110da565b60200101906001600160f81b031916908160001a9053506000610b72846002611267565b610b7d906001611286565b90505b6001811115610bf5576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610bb157610bb16110da565b1a60f81b828281518110610bc757610bc76110da565b60200101906001600160f81b031916908160001a90535060049490941c93610bee8161129e565b9050610b80565b50831561096b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610443565b600060208284031215610c5657600080fd5b81356001600160e01b03198116811461096b57600080fd5b6001600160a01b03811681146109bd57600080fd5b60008083601f840112610c9557600080fd5b5081356001600160401b03811115610cac57600080fd5b602083019150836020828501011115610cc457600080fd5b9250929050565b60008060008060608587031215610ce157600080fd5b8435610cec81610c6e565b93506020850135610cfc81610c6e565b925060408501356001600160401b03811115610d1757600080fd5b610d2387828801610c83565b95989497509550505050565b600060208284031215610d4157600080fd5b5035919050565b60008060408385031215610d5b57600080fd5b823591506020830135610d6d81610c6e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715610db057610db0610d78565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610dde57610dde610d78565b604052919050565b600082601f830112610df757600080fd5b813560206001600160401b03821115610e1257610e12610d78565b610e20818360051b01610db6565b82815260609283028501820192828201919087851115610e3f57600080fd5b8387015b85811015610e8f5781818a031215610e5b5760008081fd5b610e63610d8e565b8135610e6e81610c6e565b81528186013586820152604080830135908201528452928401928101610e43565b5090979650505050505050565b60008060408385031215610eaf57600080fd5b82356001600160401b03811115610ec557600080fd5b610ed185828601610de6565b9250506020830135610d6d81610c6e565b60008083601f840112610ef457600080fd5b5081356001600160401b03811115610f0b57600080fd5b6020830191508360208260051b8501011115610cc457600080fd5b60008060008060008060008060a0898b031215610f4257600080fd5b8835610f4d81610c6e565b97506020890135610f5d81610c6e565b965060408901356001600160401b0380821115610f7957600080fd5b610f858c838d01610ee2565b909850965060608b0135915080821115610f9e57600080fd5b610faa8c838d01610ee2565b909650945060808b0135915080821115610fc357600080fd5b50610fd08b828c01610c83565b999c989b5096995094979396929594505050565b600080600080600060808688031215610ffc57600080fd5b853561100781610c6e565b9450602086013561101781610c6e565b9350604086013561102781610c6e565b925060608601356001600160401b0381111561104257600080fd5b61104e88828901610c83565b969995985093965092949392505050565b60008060008060008060a0878903121561107857600080fd5b863561108381610c6e565b9550602087013561109381610c6e565b9450604087013593506060870135925060808701356001600160401b038111156110bc57600080fd5b6110c889828a01610c83565b979a9699509497509295939492505050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561115257611152611128565b5060010190565b60005b8381101561117457818101518382015260200161115c565b83811115611183576000848401525b50505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516111bb816017850160208801611159565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516111ec816028840160208801611159565b01602801949350505050565b6020815260008251806020840152611217816040850160208701611159565b601f01601f19169190910160400192915050565b60006020828403121561123d57600080fd5b81356001600160401b0381111561125357600080fd5b61125f84828501610de6565b949350505050565b600081600019048311821515161561128157611281611128565b500290565b6000821982111561129957611299611128565b500190565b6000816112ad576112ad611128565b50600019019056fe7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf615331a264697066735822122057fb5d317f9691a5e26d7b7c642bc3b23b9c341481e2c0e7091116a3e7f0c1c164736f6c634300080b0033

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  ]

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.