ETH Price: $3,049.27 (+2.25%)
Gas: 2 Gwei

Token

Elysium merge ()
 

Overview

Max Total Supply

1,275

Holders

585

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x5ed9bf085908803108463c5c74d8305a1b3e89d4
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A fractionalised mass that builds up the Elysium merge.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Em

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 19 : Em.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#(//,,           .,,/(#%&@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.                          ,%@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@#            .              %@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@,                ,         ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@&                    ,      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@        ,             ,,.  @@@@@@@@@@(%@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@%            .,         .,,,@@@@@@@@@*,&@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@                ,,,,. .,,,,,,,,,##,,,,(@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@*                  .,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@                     ,,,,,,,,,,,,,,,,,,,                      /@@@@@@@
@@@@@@@@@,                   ,,,,,,,,,,,,,,,,,,,,,,,                    %@@@@@@@
@@@@@@@@%            ..,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,..            @@@@@@@@
@@@@@@@@                      ,,,,,,,,,,,,,,,,,,,,,                    @@@@@@@@@
@@@@@@@@.                     .,,,,,,,,,,,,,,,,,,,                    @@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,,,.                  @@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@%,,,&@@@@,,,,,,.    .,,,               &@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@&,%@@@@@@@@@/,,,          .,           @@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@#&@@@@@@@@@&   .,              .      .@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(       ,                  ,@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@#           .               &@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@(                           %@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@%/                           .(@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
harry830622 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";

contract Em is
    Context,
    AccessControlEnumerable,
    ERC1155,
    ERC1155Burnable,
    ERC1155Supply
{
    uint256 public constant OG_TOKEN_ID = 0;
    uint256 public constant FOUNDER_TOKEN_ID = 1;

    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    Merge public immutable merge;
    uint256 public immutable blueMergeId;

    address public vault;
    uint256 public royaltyInBips;
    address public royaltyReceiver;

    bool public isOgTokenClaimingEnabled;
    bool public isFounderTokenClaimingEnabled;
    bool public isFounderTokenMintingEnabled;
    bool public isFounderTokenMintingEnabled1;
    bool public isFounderTokenMintingEnabled2;

    mapping(address => uint256) public addressToNumClaimableOgTokens;
    mapping(address => uint256) public addressToNumClaimableFounderTokens;

    uint256 public targetMass;
    uint256 public pricePerToken = 1000 ether;
    uint256 public fundGoal;
    uint256 public fundRaised;
    SubVault[] public subVaults;
    uint256[] private emptySubVaultIdxs_;

    event OgTokenClaimed(address indexed to, uint256 qty);
    event FounderTokenClaimed(address indexed to, uint256 qty);
    event FounderTokenMinted(
        address indexed to,
        uint256 qty,
        uint256 indexed mergeId
    );
    event FounderTokenMinted1(
        address indexed to,
        uint256 qty,
        uint256 indexed mergeId
    );
    event FounderTokenMinted2(address indexed to, uint256 qty, uint256 value);
    event SubVaultCreated(address indexed subVault);

    constructor(
        string memory uri,
        address merge_,
        uint256 blueMergeId_,
        address vault_,
        uint256 royaltyInBips_,
        address royaltyReceiver_
    ) ERC1155(uri) {
        merge = Merge(merge_);
        blueMergeId = blueMergeId_;
        vault = vault_;
        royaltyInBips = royaltyInBips_;
        royaltyReceiver = royaltyReceiver_;

        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(ADMIN_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());

        _setRoleAdmin(ADMIN_ROLE, DEFAULT_ADMIN_ROLE);
        _setRoleAdmin(MINTER_ROLE, ADMIN_ROLE);

        targetMass = merge.massOf(blueMergeId_);

        uint256 numSubVaultsToCreate = 5;
        for (uint256 i = 0; i < numSubVaultsToCreate; ++i) {
            SubVault subVault = new SubVault(merge);
            subVaults.push(subVault);

            emit SubVaultCreated(address(subVault));
        }
        // TODO: Why is `i >= 0` failed to compile?
        for (uint256 i = numSubVaultsToCreate - 1; i > 0; --i) {
            emptySubVaultIdxs_.push(i);
        }
        emptySubVaultIdxs_.push(0);
    }

    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address, uint256)
    {
        uint256 royaltyAmount = (salePrice * royaltyInBips) / 10000;
        return (royaltyReceiver, royaltyAmount);
    }

    function numSubVaults() external view returns (uint256) {
        return subVaults.length;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(AccessControlEnumerable, ERC1155)
        returns (bool)
    {
        bytes4 _ERC2981_ = 0x2a55205a;
        return super.supportsInterface(interfaceId) || interfaceId == _ERC2981_;
    }

    function setUri(string memory uri) external onlyRole(ADMIN_ROLE) {
        _setURI(uri);
    }

    function setVault(address vault_) external onlyRole(ADMIN_ROLE) {
        vault = vault_;
    }

    function setRoyaltyInBips(uint256 royaltyInBips_)
        external
        onlyRole(ADMIN_ROLE)
    {
        require(royaltyInBips_ <= 10000, "More than 100%");
        royaltyInBips = royaltyInBips_;
    }

    function setRoyaltyReceiver(address royaltyReceiver_)
        external
        onlyRole(ADMIN_ROLE)
    {
        royaltyReceiver = royaltyReceiver_;
    }

    function toggleOgTokenClaiming() external onlyRole(ADMIN_ROLE) {
        isOgTokenClaimingEnabled = !isOgTokenClaimingEnabled;
    }

    function toggleFounderTokenClaiming() external onlyRole(ADMIN_ROLE) {
        isFounderTokenClaimingEnabled = !isFounderTokenClaimingEnabled;
    }

    function toggleFounderTokenMinting() external onlyRole(ADMIN_ROLE) {
        isFounderTokenMintingEnabled = !isFounderTokenMintingEnabled;
    }

    function toggleFounderTokenMinting1() external onlyRole(ADMIN_ROLE) {
        isFounderTokenMintingEnabled1 = !isFounderTokenMintingEnabled1;
    }

    function toggleFounderTokenMinting2() external onlyRole(ADMIN_ROLE) {
        isFounderTokenMintingEnabled2 = !isFounderTokenMintingEnabled2;
    }

    function setNumClaimableOgTokensForAddresses(
        address[] calldata addresses,
        uint256[] calldata numClaimableTokenss
    ) external onlyRole(ADMIN_ROLE) {
        require(
            numClaimableTokenss.length == addresses.length,
            "Lengths are not equal"
        );

        uint256 numAddresses = addresses.length;
        for (uint256 i = 0; i < numAddresses; ++i) {
            addressToNumClaimableOgTokens[addresses[i]] = numClaimableTokenss[
                i
            ];
        }
    }

    function setNumClaimableFounderTokensForAddresses(
        address[] calldata addresses,
        uint256[] calldata numClaimableTokenss
    ) external onlyRole(ADMIN_ROLE) {
        require(
            numClaimableTokenss.length == addresses.length,
            "Lengths are not equal"
        );

        uint256 numAddresses = addresses.length;
        for (uint256 i = 0; i < numAddresses; ++i) {
            addressToNumClaimableFounderTokens[
                addresses[i]
            ] = numClaimableTokenss[i];
        }
    }

    function setTargetMass(uint256 mass) external onlyRole(ADMIN_ROLE) {
        targetMass = mass;
    }

    function setPricePerToken(uint256 price) external onlyRole(ADMIN_ROLE) {
        pricePerToken = price;
    }

    function setFundGoal(uint256 goal) external onlyRole(ADMIN_ROLE) {
        fundGoal = goal;
    }

    function claimOgToken(address to) external {
        require(isOgTokenClaimingEnabled, "Not enabled");

        uint256 qty = addressToNumClaimableOgTokens[to];
        require(qty > 0, "Not enough quota");
        addressToNumClaimableOgTokens[to] = 0;

        _mint(to, OG_TOKEN_ID, qty, "");

        emit OgTokenClaimed(to, qty);
    }

    function claimFounderToken(address to) external {
        require(isFounderTokenClaimingEnabled, "Not enabled");

        uint256 qty = addressToNumClaimableFounderTokens[to];
        require(qty > 0, "Not enough quota");
        addressToNumClaimableFounderTokens[to] = 0;

        _mint(to, FOUNDER_TOKEN_ID, qty, "");

        emit FounderTokenClaimed(to, qty);
    }

    function mintFounderToken(address to, uint256 mergeId) external {
        require(isFounderTokenMintingEnabled, "Not enabled");

        uint256 mass = merge.massOf(mergeId);

        require(mass <= merge.massOf(merge.tokenOf(vault)), "Too big");
        merge.safeTransferFrom(merge.ownerOf(mergeId), vault, mergeId);

        _mint(to, FOUNDER_TOKEN_ID, mass, "");

        emit FounderTokenMinted(to, mass, mergeId);
    }

    function mintFounderToken1(address to, uint256 mergeId) external {
        require(isFounderTokenMintingEnabled1, "Not enabled");

        uint256 mass = merge.massOf(mergeId);

        merge.safeTransferFrom(merge.ownerOf(mergeId), vault, mergeId);
        uint256 massAfterMerge = merge.massOf(merge.tokenOf(vault));
        require(massAfterMerge <= targetMass, "Too big");

        if (massAfterMerge == targetMass) {
            address dest = address(0);
            uint256 numEmptySubVaults = emptySubVaultIdxs_.length;
            if (numEmptySubVaults > 0) {
                dest = address(
                    subVaults[emptySubVaultIdxs_[numEmptySubVaults - 1]]
                );
                emptySubVaultIdxs_.pop();
            }
            if (dest == address(0)) {
                SubVault subVault = new SubVault(merge);
                subVaults.push(subVault);

                emit SubVaultCreated(address(subVault));

                dest = address(subVault);
            }
            merge.safeTransferFrom(vault, dest, merge.tokenOf(vault));
        }

        _mint(to, FOUNDER_TOKEN_ID, mass, "");

        emit FounderTokenMinted1(to, mass, mergeId);
    }

    function mintFounderToken2(address to, uint256 qty) external payable {
        require(isFounderTokenMintingEnabled2, "Not enabled");
        require(msg.value == qty * pricePerToken, "Wrong value");
        require(fundGoal > 0, "Fund goal not set");

        fundRaised += msg.value;
        if (fundRaised >= fundGoal) {
            fundRaised = 0;
            fundGoal = 0;
            isFounderTokenMintingEnabled2 = false;
        }

        _mint(to, FOUNDER_TOKEN_ID, qty, "");

        emit FounderTokenMinted2(to, qty, msg.value);
    }

    function withdrawMerges(address to, uint256[] calldata idxs)
        external
        onlyRole(ADMIN_ROLE)
    {
        uint256 numIdxs = idxs.length;
        for (uint256 i = 0; i < numIdxs; ++i) {
            uint256 idx = idxs[i];
            address from = address(subVaults[idx]);
            if (merge.balanceOf(from) != 1) {
                continue;
            }
            emptySubVaultIdxs_.push(idx);
            merge.safeTransferFrom(from, to, merge.tokenOf(from));
        }
    }

    function withdrawAllMerges(address to) external onlyRole(ADMIN_ROLE) {
        uint256 subVaultsLength = subVaults.length;
        for (uint256 i = 0; i < subVaultsLength; ++i) {
            address from = address(subVaults[i]);
            if (merge.balanceOf(from) != 1) {
                continue;
            }
            emptySubVaultIdxs_.push(i);
            merge.safeTransferFrom(from, to, merge.tokenOf(from));
        }
    }

    function mint(
        address to,
        uint256 id,
        uint256 qty
    ) external onlyRole(MINTER_ROLE) {
        _mint(to, id, qty, "");
    }

    function mintBatch(
        address to,
        uint256[] calldata ids,
        uint256[] calldata qtys
    ) external onlyRole(MINTER_ROLE) {
        _mintBatch(to, ids, qtys, "");
    }

    function withdraw(address payable to) external onlyRole(ADMIN_ROLE) {
        to.transfer(address(this).balance);
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        return
            super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }
}

contract Merge {
    function balanceOf(address owner) public view returns (uint256) {}

    function ownerOf(uint256 tokenId) public view returns (address owner) {}

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public {}

    function setApprovalForAll(address operator, bool approved) public {}

    function massOf(uint256 tokenId) public view returns (uint256) {}

    function getValueOf(uint256 tokenId) public view returns (uint256) {}

    function decodeClass(uint256 value) public pure returns (uint256) {}

    function decodeMass(uint256 value) public pure returns (uint256) {}

    function tokenOf(address owner) public view returns (uint256) {}
}

contract SubVault is Context, ERC721Holder {
    constructor(Merge merge) {
        merge.setApprovalForAll(_msgSender(), true);
    }
}

File 2 of 19 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 3 of 19 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 4 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `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 memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - 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[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 5 of 19 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 6 of 19 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 7 of 19 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 8 of 19 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 9 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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, _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 10 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 11 of 19 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 12 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 14 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 15 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 16 of 19 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 17 of 19 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 18 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 19 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"merge_","type":"address"},{"internalType":"uint256","name":"blueMergeId_","type":"uint256"},{"internalType":"address","name":"vault_","type":"address"},{"internalType":"uint256","name":"royaltyInBips_","type":"uint256"},{"internalType":"address","name":"royaltyReceiver_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"FounderTokenClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"mergeId","type":"uint256"}],"name":"FounderTokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"mergeId","type":"uint256"}],"name":"FounderTokenMinted1","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"FounderTokenMinted2","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"OgTokenClaimed","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"subVault","type":"address"}],"name":"SubVaultCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FOUNDER_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToNumClaimableFounderTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToNumClaimableOgTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blueMergeId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"claimFounderToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"claimOgToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundGoal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFounderTokenClaimingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFounderTokenMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFounderTokenMintingEnabled1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFounderTokenMintingEnabled2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOgTokenClaimingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merge","outputs":[{"internalType":"contract Merge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"qtys","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"mergeId","type":"uint256"}],"name":"mintFounderToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"mergeId","type":"uint256"}],"name":"mintFounderToken1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mintFounderToken2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"numSubVaults","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"royaltyInBips","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"goal","type":"uint256"}],"name":"setFundGoal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"numClaimableTokenss","type":"uint256[]"}],"name":"setNumClaimableFounderTokensForAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"numClaimableTokenss","type":"uint256[]"}],"name":"setNumClaimableOgTokensForAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPricePerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"royaltyInBips_","type":"uint256"}],"name":"setRoyaltyInBips","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver_","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mass","type":"uint256"}],"name":"setTargetMass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault_","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"subVaults","outputs":[{"internalType":"contract SubVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"targetMass","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleFounderTokenClaiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleFounderTokenMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleFounderTokenMinting1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleFounderTokenMinting2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleOgTokenClaiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdrawAllMerges","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"idxs","type":"uint256[]"}],"name":"withdrawMerges","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052683635c9adc5dea00000600c553480156200001e57600080fd5b5060405162005a4038038062005a408339810160408190526200004191620005a8565b856200004d81620002fc565b506001600160a01b0385811660805260a0859052600680546001600160a01b031990811686841617909155600784905560088054909116918316919091179055620000a160006200009b3390565b62000315565b620000bc60008051602062005a008339815191523362000315565b620000d7600080516020620059e08339815191523362000315565b620000f360008051602062005a00833981519152600062000321565b6200011d600080516020620059e083398151915260008051602062005a0083398151915262000321565b6080516040516330f60ddb60e11b8152600481018690526001600160a01b03909116906361ec1bb69060240160206040518083038186803b1580156200016257600080fd5b505afa15801562000177573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019d9190620006d0565b600b55600560005b818110156200027b576000608051604051620001c190620004c1565b6001600160a01b039091168152602001604051809103906000f080158015620001ee573d6000803e3d6000fd5b50600f805460018101825560009182527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b038416908117909155604051929350917f7297d8a4440c70031ebaa311dacf85341a87311a950df7422281a501c7ac599f9190a250620002738162000700565b9050620001a5565b5060006200028b6001836200071e565b90505b8015620002cc576010805460018101825560009190915260008051602062005a2083398151915201819055620002c48162000738565b90506200028e565b505060108054600181018255600091825260008051602062005a208339815191520155506200078f945050505050565b805162000311906004906020840190620004cf565b5050565b6200031182826200036c565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b620003838282620003af60201b62002a361760201c565b6000828152600160209081526040909120620003aa91839062002abe6200044f821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000311576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200040b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000466836001600160a01b0384166200046f565b90505b92915050565b6000818152600183016020526040812054620004b85750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000469565b50600062000469565b610293806200574d83390190565b828054620004dd9062000752565b90600052602060002090601f0160209004810192826200050157600085556200054c565b82601f106200051c57805160ff19168380011785556200054c565b828001600101855582156200054c579182015b828111156200054c5782518255916020019190600101906200052f565b506200055a9291506200055e565b5090565b5b808211156200055a57600081556001016200055f565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620005a357600080fd5b919050565b60008060008060008060c08789031215620005c257600080fd5b86516001600160401b0380821115620005da57600080fd5b818901915089601f830112620005ef57600080fd5b81518181111562000604576200060462000575565b604051601f8201601f19908116603f011681019083821181831017156200062f576200062f62000575565b81604052828152602093508c848487010111156200064c57600080fd5b600091505b8282101562000670578482018401518183018501529083019062000651565b82821115620006825760008484830101525b9950620006949150508982016200058b565b9650505060408701519350620006ad606088016200058b565b925060808701519150620006c460a088016200058b565b90509295509295509295565b600060208284031215620006e357600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415620007175762000717620006ea565b5060010190565b600082821015620007335762000733620006ea565b500390565b6000816200074a576200074a620006ea565b506000190190565b600181811c908216806200076757607f821691505b602082108114156200078957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051614f4462000809600039600061043501526000818161049201528181610ecb01528181610fb4015281816119bf01528181611a6201528181611ba301528181611e3101528181611f1901528181612136015281816121d5015281816122e5015281816124c601526125b20152614f446000f3fe608060405260043610620003ae5760003560e01c806375b238fc11620001ef578063bd85b039116200010d578063d81d0a1511620000a8578063d81d0a151462000c0c578063dd5807621462000c31578063e15fa5b21462000c56578063e985e9c51462000c6e578063ed6bf0b21462000cbb578063f242432a1462000ce0578063f5298aca1462000d05578063f9ae3c031462000d2a578063fbfa77cf1462000d4f57600080fd5b8063bd85b0391462000af4578063c71c0b401462000b25578063c8c1282b1462000b3d578063c993ab2f1462000b55578063ca15c8731462000b78578063d0094f7e1462000b9d578063d53913931462000bc2578063d547741f1462000be757600080fd5b806391d14854116200018a57806391d1485414620009ea57806391f0cb431462000a0f578063945bbf271462000a345780639b642de11462000a4b5780639f7e75d11462000a705780639fbc87131462000a88578063a217fddf1462000603578063a22cb4651462000aaa578063a6d4dbeb1462000acf57600080fd5b806375b238fc14620008e05780637b1b1de614620009055780637e436bc1146200091d578063855091a91462000940578063876d50f71462000963578063892634cd146200097b5780638dc251e314620009a05780639010d07c14620009c557600080fd5b80632f2ff15d11620002dd5780634f558e7911620002785780634f558e7914620007af57806351cff8d914620007e2578063603f8584146200080757806363da3d45146200081f5780636817031b146200083657806369545b4d146200085b5780636b20c4541462000880578063740ddb8f14620008a557806375a76b0614620008bd57600080fd5b80632f2ff15d146200068957806336568abe14620006ae578063373aad9714620006d35780633d13091c14620006f85780633ef5a13a146200070f5780633f9dc906146200073257806349db4795146200074a5780634e1273f4146200077b57600080fd5b806322518249116200034e57806322518249146200054d578063248a9ca3146200056557806329d7797f14620005995780632a55205a14620005be5780632a58d0a514620006035780632bf2762f146200061a5780632d3ccfe2146200063f5780632eb2c2d6146200066457600080fd5b8062fdd58e14620003b357806301ffc9a714620003eb578063038acf6e14620004215780630ad4032714620004575780630b65108b146200047e5780630e89341c14620004c3578063156e29f614620004f7578063164385e9146200051c575b600080fd5b348015620003c057600080fd5b50620003d8620003d236600462003d30565b62000d71565b6040519081526020015b60405180910390f35b348015620003f857600080fd5b50620004106200040a36600462003d76565b62000e0e565b6040519015158152602001620003e2565b3480156200042e57600080fd5b50620003d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156200046457600080fd5b506200047c6200047636600462003ddd565b62000e42565b005b3480156200048b57600080fd5b50620004b47f000000000000000000000000000000000000000000000000000000000000000081565b604051620003e2919062003e37565b348015620004d057600080fd5b50620004e8620004e236600462003e4b565b620010bd565b604051620003e2919062003ec2565b3480156200050457600080fd5b506200047c6200051636600462003ed7565b62001159565b3480156200052957600080fd5b50620003d86200053b36600462003f0f565b600a6020526000908152604090205481565b3480156200055a57600080fd5b506200047c62001198565b3480156200057257600080fd5b50620003d86200058436600462003e4b565b60009081526020819052604090206001015490565b348015620005a657600080fd5b506200047c620005b836600462003f0f565b620011d6565b348015620005cb57600080fd5b50620005e3620005dd36600462003f2f565b620012bd565b604080516001600160a01b039093168352602083019190915201620003e2565b3480156200061057600080fd5b50620003d8600081565b3480156200062757600080fd5b506200047c6200063936600462003e4b565b620012fa565b3480156200064c57600080fd5b506200047c6200065e36600462003f0f565b6200131c565b3480156200067157600080fd5b506200047c62000683366004620040bc565b620013f4565b3480156200069657600080fd5b506200047c620006a836600462004177565b62001492565b348015620006bb57600080fd5b506200047c620006cd36600462004177565b620014c1565b348015620006e057600080fd5b506200047c620006f2366004620041aa565b62001543565b6200047c6200070936600462003d30565b62001610565b3480156200071c57600080fd5b506008546200041090600160a81b900460ff1681565b3480156200073f57600080fd5b50620003d8600b5481565b3480156200075757600080fd5b50620003d86200076936600462003f0f565b60096020526000908152604090205481565b3480156200078857600080fd5b50620007a06200079a3660046200421c565b6200176d565b604051620003e2919062004334565b348015620007bc57600080fd5b5062000410620007ce36600462003e4b565b600090815260056020526040902054151590565b348015620007ef57600080fd5b506200047c6200080136600462003f0f565b620018ab565b3480156200081457600080fd5b506200047c620018fd565b3480156200082c57600080fd5b50620003d8600181565b3480156200084357600080fd5b506200047c6200085536600462003f0f565b6200193b565b3480156200086857600080fd5b506200047c6200087a36600462003d30565b6200197a565b3480156200088d57600080fd5b506200047c6200089f36600462004349565b62001cff565b348015620008b257600080fd5b506200047c62001d4a565b348015620008ca57600080fd5b506008546200041090600160b81b900460ff1681565b348015620008ed57600080fd5b50620003d860008051602062004eef83398151915281565b3480156200091257600080fd5b50620003d8600c5481565b3480156200092a57600080fd5b506008546200041090600160b01b900460ff1681565b3480156200094d57600080fd5b506008546200041090600160c01b900460ff1681565b3480156200097057600080fd5b506200047c62001d88565b3480156200098857600080fd5b506200047c6200099a36600462003f0f565b62001dc6565b348015620009ad57600080fd5b506200047c620009bf36600462003f0f565b62002019565b348015620009d257600080fd5b50620004b4620009e436600462003f2f565b62002058565b348015620009f757600080fd5b506200041062000a0936600462004177565b62002072565b34801562000a1c57600080fd5b506200047c62000a2e36600462003e4b565b6200209b565b34801562000a4157600080fd5b50600f54620003d8565b34801562000a5857600080fd5b506200047c62000a6a366004620043c7565b620020bd565b34801562000a7d57600080fd5b50620003d860075481565b34801562000a9557600080fd5b50600854620004b4906001600160a01b031681565b34801562000ab757600080fd5b506200047c62000ac93660046200441c565b620020e4565b34801562000adc57600080fd5b506200047c62000aee36600462003d30565b620020f1565b34801562000b0157600080fd5b50620003d862000b1336600462003e4b565b60009081526005602052604090205490565b34801562000b3257600080fd5b50620003d8600e5481565b34801562000b4a57600080fd5b506200047c6200270b565b34801562000b6257600080fd5b506008546200041090600160a01b900460ff1681565b34801562000b8557600080fd5b50620003d862000b9736600462003e4b565b62002749565b34801562000baa57600080fd5b506200047c62000bbc366004620041aa565b62002762565b34801562000bcf57600080fd5b50620003d860008051602062004ecf83398151915281565b34801562000bf457600080fd5b506200047c62000c0636600462004177565b62002826565b34801562000c1957600080fd5b506200047c62000c2b36600462004453565b62002850565b34801562000c3e57600080fd5b50620004b462000c5036600462003e4b565b620028ea565b34801562000c6357600080fd5b50620003d8600d5481565b34801562000c7b57600080fd5b506200041062000c8d366004620044de565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801562000cc857600080fd5b506200047c62000cda36600462003e4b565b62002915565b34801562000ced57600080fd5b506200047c62000cff36600462004511565b62002937565b34801562000d1257600080fd5b506200047c62000d2436600462003ed7565b62002984565b34801562000d3757600080fd5b506200047c62000d4936600462003e4b565b620029cf565b34801562000d5c57600080fd5b50600654620004b4906001600160a01b031681565b60006001600160a01b03831662000de35760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b600063152a902d60e11b62000e238362002ad5565b8062000e3b57506001600160e01b0319838116908216145b9392505050565b60008051602062004eef83398151915262000e5e813362002b19565b8160005b81811015620010b557600085858381811062000e825762000e8262004581565b9050602002013590506000600f828154811062000ea35762000ea362004581565b6000918252602090912001546040516370a0823160e01b81526001600160a01b0391821692507f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319062000f0490849060040162003e37565b60206040518083038186803b15801562000f1d57600080fd5b505afa15801562000f32573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f58919062004597565b60011462000f68575050620010a2565b601080546001810182556000919091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672018290556040516321761c7160e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342842e0e9083908b9084906342ec38e29062000ff790859060040162003e37565b60206040518083038186803b1580156200101057600080fd5b505afa15801562001025573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200104b919062004597565b6040518463ffffffff1660e01b81526004016200106b93929190620045b1565b600060405180830381600087803b1580156200108657600080fd5b505af11580156200109b573d6000803e3d6000fd5b5050505050505b620010ad81620045eb565b905062000e62565b505050505050565b606060048054620010ce9062004609565b80601f0160208091040260200160405190810160405280929190818152602001828054620010fc9062004609565b80156200114d5780601f1062001121576101008083540402835291602001916200114d565b820191906000526020600020905b8154815290600101906020018083116200112f57829003601f168201915b50505050509050919050565b60008051602062004ecf83398151915262001175813362002b19565b620011928484846040518060200160405280600081525062002b88565b50505050565b60008051602062004eef833981519152620011b4813362002b19565b506008805460ff60b81b198116600160b81b9182900460ff1615909102179055565b600854600160a81b900460ff16620012025760405162461bcd60e51b815260040162000dda9062004646565b6001600160a01b0381166000908152600a6020526040902054806200123b5760405162461bcd60e51b815260040162000dda906200466b565b6001600160a01b0382166000908152600a602090815260408083208390558051918201905290815262001275908390600190849062002b88565b816001600160a01b03167f2ec62373990d2b3ea65a3801472527b7acb88e0888f390d5996e469ba3b626df82604051620012b191815260200190565b60405180910390a25050565b600080600061271060075485620012d5919062004695565b620012e19190620046b7565b6008546001600160a01b031693509150505b9250929050565b60008051602062004eef83398151915262001316813362002b19565b50600c55565b600854600160a01b900460ff16620013485760405162461bcd60e51b815260040162000dda9062004646565b6001600160a01b03811660009081526009602052604090205480620013815760405162461bcd60e51b815260040162000dda906200466b565b6001600160a01b038216600090815260096020908152604080832083905580519182019052818152620013b8918491849062002b88565b816001600160a01b03167f21e0dc0d648f45076a89386cd5fedd6f7082f7bef696ea6be5b7890db2817a6882604051620012b191815260200190565b6001600160a01b03851633148062001413575062001413853362000c8d565b6200147c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840162000dda565b6200148b858585858562002c5c565b5050505050565b600082815260208190526040902060010154620014b0813362002b19565b620014bc838362002e0b565b505050565b6001600160a01b0381163314620015335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840162000dda565b6200153f828262002e31565b5050565b60008051602062004eef8339815191526200155f813362002b19565b818414620015815760405162461bcd60e51b815260040162000dda90620046da565b8360005b818110156200160757848482818110620015a357620015a362004581565b9050602002013560096000898985818110620015c357620015c362004581565b9050602002016020810190620015da919062003f0f565b6001600160a01b03168152602081019190915260400160002055620015ff81620045eb565b905062001585565b50505050505050565b600854600160c01b900460ff166200163c5760405162461bcd60e51b815260040162000dda9062004646565b600c546200164b908262004695565b3414620016895760405162461bcd60e51b815260206004820152600b60248201526a57726f6e672076616c756560a81b604482015260640162000dda565b6000600d5411620016d15760405162461bcd60e51b8152602060048201526011602482015270119d5b990819dbd85b081b9bdd081cd95d607a1b604482015260640162000dda565b34600e6000828254620016e5919062004709565b9091555050600d54600e54106200170e576000600e819055600d556008805460ff60c01b191690555b6200172c826001836040518060200160405280600081525062002b88565b604080518281523460208201526001600160a01b038416917f377270fcd159cb3b150d0a64a44d52cfdc735bab64e12bebcf94a4e32ddb572f9101620012b1565b60608151835114620017d45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840162000dda565b600083516001600160401b03811115620017f257620017f262003f52565b6040519080825280602002602001820160405280156200181c578160200160208202803683370190505b50905060005b8451811015620018a3576200187085828151811062001845576200184562004581565b602002602001015185838151811062001862576200186262004581565b602002602001015162000d71565b82828151811062001885576200188562004581565b60209081029190910101526200189b81620045eb565b905062001822565b509392505050565b60008051602062004eef833981519152620018c7813362002b19565b6040516001600160a01b038316904780156108fc02916000818181858888f19350505050158015620014bc573d6000803e3d6000fd5b60008051602062004eef83398151915262001919813362002b19565b506008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60008051602062004eef83398151915262001957813362002b19565b50600680546001600160a01b0319166001600160a01b0392909216919091179055565b600854600160b01b900460ff16620019a65760405162461bcd60e51b815260040162000dda9062004646565b6040516330f60ddb60e11b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906361ec1bb69060240160206040518083038186803b15801562001a0a57600080fd5b505afa15801562001a1f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001a45919062004597565b6006546040516321761c7160e11b81529192506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116926361ec1bb69284926342ec38e29262001aa4929091169060040162003e37565b60206040518083038186803b15801562001abd57600080fd5b505afa15801562001ad2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001af8919062004597565b6040518263ffffffff1660e01b815260040162001b1791815260200190565b60206040518083038186803b15801562001b3057600080fd5b505afa15801562001b45573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001b6b919062004597565b81111562001b8d5760405162461bcd60e51b815260040162000dda9062004724565b6040516331a9108f60e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e908290636352211e9060240160206040518083038186803b15801562001bf657600080fd5b505afa15801562001c0b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001c31919062004745565b6006546040516001600160e01b031960e085901b16815262001c6392916001600160a01b0316908790600401620045b1565b600060405180830381600087803b15801562001c7e57600080fd5b505af115801562001c93573d6000803e3d6000fd5b5050505062001cb5836001836040518060200160405280600081525062002b88565b81836001600160a01b03167f90113da83a0a46e3167740d1fb4c215b37b03e2f7bf34dce0d3c42df66f510608360405162001cf291815260200190565b60405180910390a3505050565b6001600160a01b03831633148062001d1e575062001d1e833362000c8d565b62001d3d5760405162461bcd60e51b815260040162000dda9062004765565b620014bc83838362002e57565b60008051602062004eef83398151915262001d66813362002b19565b506008805460ff60b01b198116600160b01b9182900460ff1615909102179055565b60008051602062004eef83398151915262001da4813362002b19565b506008805460ff60c01b198116600160c01b9182900460ff1615909102179055565b60008051602062004eef83398151915262001de2813362002b19565b600f5460005b8181101562001192576000600f828154811062001e095762001e0962004581565b6000918252602090912001546040516370a0823160e01b81526001600160a01b0391821692507f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319062001e6a90849060040162003e37565b60206040518083038186803b15801562001e8357600080fd5b505afa15801562001e98573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001ebe919062004597565b60011462001ecd575062002006565b601080546001810182556000919091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672018290556040516321761c7160e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342842e0e908390889084906342ec38e29062001f5c90859060040162003e37565b60206040518083038186803b15801562001f7557600080fd5b505afa15801562001f8a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001fb0919062004597565b6040518463ffffffff1660e01b815260040162001fd093929190620045b1565b600060405180830381600087803b15801562001feb57600080fd5b505af115801562002000573d6000803e3d6000fd5b50505050505b6200201181620045eb565b905062001de8565b60008051602062004eef83398151915262002035813362002b19565b50600880546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260016020526040812062000e3b908362002fee565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008051602062004eef833981519152620020b7813362002b19565b50600d55565b60008051602062004eef833981519152620020d9813362002b19565b6200153f8262002ffc565b6200153f33838362003011565b600854600160b81b900460ff166200211d5760405162461bcd60e51b815260040162000dda9062004646565b6040516330f60ddb60e11b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906361ec1bb69060240160206040518083038186803b1580156200218157600080fd5b505afa15801562002196573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620021bc919062004597565b6040516331a9108f60e11b8152600481018490529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e908290636352211e9060240160206040518083038186803b1580156200222857600080fd5b505afa1580156200223d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002263919062004745565b6006546040516001600160e01b031960e085901b1681526200229592916001600160a01b0316908790600401620045b1565b600060405180830381600087803b158015620022b057600080fd5b505af1158015620022c5573d6000803e3d6000fd5b50506006546040516321761c7160e11b8152600093506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811693506361ec1bb69284926342ec38e2926200232692169060040162003e37565b60206040518083038186803b1580156200233f57600080fd5b505afa15801562002354573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200237a919062004597565b6040518263ffffffff1660e01b81526004016200239991815260200190565b60206040518083038186803b158015620023b257600080fd5b505afa158015620023c7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620023ed919062004597565b9050600b54811115620024145760405162461bcd60e51b815260040162000dda9062004724565b600b54811415620026a2576010546000908015620024b357600f60106200243d600184620047ae565b8154811062002450576200245062004581565b9060005260206000200154815481106200246e576200246e62004581565b600091825260209091200154601080546001600160a01b03909216935090806200249c576200249c620047c8565b600190038181906000526020600020016000905590555b6001600160a01b038216620025985760007f0000000000000000000000000000000000000000000000000000000000000000604051620024f39062003c63565b620024ff919062003e37565b604051809103906000f0801580156200251c573d6000803e3d6000fd5b50600f805460018101825560009182527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b038416908117909155604051929350917f7297d8a4440c70031ebaa311dacf85341a87311a950df7422281a501c7ac599f9190a291505b6006546040516321761c7160e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116926342842e0e92911690859084906342ec38e290620025f790859060040162003e37565b60206040518083038186803b1580156200261057600080fd5b505afa15801562002625573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200264b919062004597565b6040518463ffffffff1660e01b81526004016200266b93929190620045b1565b600060405180830381600087803b1580156200268657600080fd5b505af11580156200269b573d6000803e3d6000fd5b5050505050505b620026c0846001846040518060200160405280600081525062002b88565b82846001600160a01b03167fdb752cc66303c903605f1793331c85e08219331333a836a80fc98991a915c1bc84604051620026fd91815260200190565b60405180910390a350505050565b60008051602062004eef83398151915262002727813362002b19565b506008805460ff60a81b198116600160a81b9182900460ff1615909102179055565b600081815260016020526040812062000e0890620030ed565b60008051602062004eef8339815191526200277e813362002b19565b818414620027a05760405162461bcd60e51b815260040162000dda90620046da565b8360005b818110156200160757848482818110620027c257620027c262004581565b90506020020135600a6000898985818110620027e257620027e262004581565b9050602002016020810190620027f9919062003f0f565b6001600160a01b031681526020810191909152604001600020556200281e81620045eb565b9050620027a4565b60008281526020819052604090206001015462002844813362002b19565b620014bc838362002e31565b60008051602062004ecf8339815191526200286c813362002b19565b620010b58686868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808a02828101820190935289825290935089925088918291850190849080828437600092018290525060408051602081019091529081529250620030f8915050565b600f8181548110620028fb57600080fd5b6000918252602090912001546001600160a01b0316905081565b60008051602062004eef83398151915262002931813362002b19565b50600b55565b6001600160a01b03851633148062002956575062002956853362000c8d565b620029755760405162461bcd60e51b815260040162000dda9062004765565b6200148b85858585856200325a565b6001600160a01b038316331480620029a35750620029a3833362000c8d565b620029c25760405162461bcd60e51b815260040162000dda9062004765565b620014bc8383836200336e565b60008051602062004eef833981519152620029eb813362002b19565b61271082111562002a305760405162461bcd60e51b815260206004820152600e60248201526d4d6f7265207468616e203130302560901b604482015260640162000dda565b50600755565b62002a42828262002072565b6200153f576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905562002a7a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000e3b836001600160a01b0384166200346e565b60006001600160e01b03198216636cdb3d1360e11b148062002b0757506001600160e01b031982166303a24d0760e21b145b8062000e08575062000e0882620034c0565b62002b25828262002072565b6200153f5762002b40816001600160a01b03166014620034e8565b62002b4d836020620034e8565b60405160200162002b60929190620047de565b60408051601f198184030181529082905262461bcd60e51b825262000dda9160040162003ec2565b6001600160a01b03841662002bb15760405162461bcd60e51b815260040162000dda9062004851565b3362002bd78160008762002bc588620036a1565b62002bd088620036a1565b87620036ef565b60008481526002602090815260408083206001600160a01b03891684529091528120805485929062002c0b90849062004709565b909155505060408051858152602081018590526001600160a01b03808816926000929185169160008051602062004eaf833981519152910160405180910390a46200148b81600087878787620036ff565b815183511462002c805760405162461bcd60e51b815260040162000dda9062004892565b6001600160a01b03841662002ca95760405162461bcd60e51b815260040162000dda90620048da565b3362002cba818787878787620036ef565b60005b845181101562002db257600085828151811062002cde5762002cde62004581565b60200260200101519050600085838151811062002cff5762002cff62004581565b60209081029190910181015160008481526002835260408082206001600160a01b038e16835290935291909120549091508181101562002d535760405162461bcd60e51b815260040162000dda906200491f565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929062002d9490849062004709565b925050819055505050508062002daa90620045eb565b905062002cbd565b50846001600160a01b0316866001600160a01b0316826001600160a01b031660008051602062004e8f833981519152878760405162002df392919062004969565b60405180910390a4620010b58187878787876200387f565b62002e17828262002a36565b6000828152600160205260409020620014bc908262002abe565b62002e3d828262003956565b6000828152600160205260409020620014bc9082620039be565b6001600160a01b03831662002e805760405162461bcd60e51b815260040162000dda906200499b565b805182511462002ea45760405162461bcd60e51b815260040162000dda9062004892565b600033905062002ec981856000868660405180602001604052806000815250620036ef565b60005b835181101562002f9e57600084828151811062002eed5762002eed62004581565b60200260200101519050600084838151811062002f0e5762002f0e62004581565b60209081029190910181015160008481526002835260408082206001600160a01b038c16835290935291909120549091508181101562002f625760405162461bcd60e51b815260040162000dda90620049de565b60009283526002602090815260408085206001600160a01b038b168652909152909220910390558062002f9581620045eb565b91505062002ecc565b5060006001600160a01b0316846001600160a01b0316826001600160a01b031660008051602062004e8f833981519152868660405162002fe092919062004969565b60405180910390a450505050565b600062000e3b8383620039d5565b80516200153f90600490602084019062003c71565b816001600160a01b0316836001600160a01b03161415620030875760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840162000dda565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910162001cf2565b600062000e08825490565b6001600160a01b038416620031215760405162461bcd60e51b815260040162000dda9062004851565b8151835114620031455760405162461bcd60e51b815260040162000dda9062004892565b336200315781600087878787620036ef565b60005b8451811015620031ff5783818151811062003179576200317962004581565b6020026020010151600260008784815181106200319a576200319a62004581565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254620031e4919062004709565b90915550819050620031f681620045eb565b9150506200315a565b50846001600160a01b031660006001600160a01b0316826001600160a01b031660008051602062004e8f83398151915287876040516200324192919062004969565b60405180910390a46200148b816000878787876200387f565b6001600160a01b038416620032835760405162461bcd60e51b815260040162000dda90620048da565b336200329681878762002bc588620036a1565b60008481526002602090815260408083206001600160a01b038a16845290915290205483811015620032dc5760405162461bcd60e51b815260040162000dda906200491f565b60008581526002602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906200331d90849062004709565b909155505060408051868152602081018690526001600160a01b03808916928a8216929186169160008051602062004eaf833981519152910160405180910390a462001607828888888888620036ff565b6001600160a01b038316620033975760405162461bcd60e51b815260040162000dda906200499b565b33620033cc81856000620033ab87620036a1565b620033b687620036a1565b60405180602001604052806000815250620036ef565b60008381526002602090815260408083206001600160a01b038816845290915290205482811015620034125760405162461bcd60e51b815260040162000dda90620049de565b60008481526002602090815260408083206001600160a01b038981168086529184528285208887039055825189815293840188905290929086169160008051602062004eaf833981519152910160405180910390a45050505050565b6000818152600183016020526040812054620034b75750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000e08565b50600062000e08565b60006001600160e01b03198216635a05180f60e01b148062000e08575062000e088262003a02565b60606000620034f983600262004695565b6200350690600262004709565b6001600160401b0381111562003520576200352062003f52565b6040519080825280601f01601f1916602001820160405280156200354b576020820181803683370190505b509050600360fc1b8160008151811062003569576200356962004581565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200359b576200359b62004581565b60200101906001600160f81b031916908160001a9053506000620035c184600262004695565b620035ce90600162004709565b90505b600181111562003650576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062003606576200360662004581565b1a60f81b8282815181106200361f576200361f62004581565b60200101906001600160f81b031916908160001a90535060049490941c93620036488162004a22565b9050620035d1565b50831562000e3b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000dda565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110620036de57620036de62004581565b602090810291909101015292915050565b620010b586868686868662003a39565b6001600160a01b0384163b15620010b55760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619062003746908990899088908890889060040162004a3c565b602060405180830381600087803b1580156200376157600080fd5b505af192505050801562003794575060408051601f3d908101601f19168201909252620037919181019062004a83565b60015b6200384c57620037a362004aa3565b806308c379a01415620037e45750620037bb62004ac0565b80620037c85750620037e6565b8060405162461bcd60e51b815260040162000dda919062003ec2565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840162000dda565b6001600160e01b0319811663f23a6e6160e01b14620016075760405162461bcd60e51b815260040162000dda9062004b4f565b6001600160a01b0384163b15620010b55760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190620038c6908990899088908890889060040162004b97565b602060405180830381600087803b158015620038e157600080fd5b505af192505050801562003914575060408051601f3d908101601f19168201909252620039119181019062004a83565b60015b6200392357620037a362004aa3565b6001600160e01b0319811663bc197c8160e01b14620016075760405162461bcd60e51b815260040162000dda9062004b4f565b62003962828262002072565b156200153f576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600062000e3b836001600160a01b03841662003b5f565b6000826000018281548110620039ef57620039ef62004581565b9060005260206000200154905092915050565b60006001600160e01b03198216637965db0b60e01b148062000e0857506301ffc9a760e01b6001600160e01b031983161462000e08565b6001600160a01b03851662003acd5760005b835181101562003acb5782818151811062003a6a5762003a6a62004581565b60200260200101516005600086848151811062003a8b5762003a8b62004581565b60200260200101518152602001908152602001600020600082825462003ab2919062004709565b9091555062003ac3905081620045eb565b905062003a4b565b505b6001600160a01b038416620010b55760005b8351811015620016075782818151811062003afe5762003afe62004581565b60200260200101516005600086848151811062003b1f5762003b1f62004581565b60200260200101518152602001908152602001600020600082825462003b469190620047ae565b9091555062003b57905081620045eb565b905062003adf565b6000818152600183016020526040812054801562003c5857600062003b86600183620047ae565b855490915060009062003b9c90600190620047ae565b905081811462003c0857600086600001828154811062003bc05762003bc062004581565b906000526020600020015490508087600001848154811062003be65762003be662004581565b6000918252602080832090910192909255918252600188019052604090208390555b855486908062003c1c5762003c1c620047c8565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505062000e08565b600091505062000e08565b6102938062004bfc83390190565b82805462003c7f9062004609565b90600052602060002090601f01602090048101928262003ca3576000855562003cee565b82601f1062003cbe57805160ff191683800117855562003cee565b8280016001018555821562003cee579182015b8281111562003cee57825182559160200191906001019062003cd1565b5062003cfc92915062003d00565b5090565b5b8082111562003cfc576000815560010162003d01565b6001600160a01b038116811462003d2d57600080fd5b50565b6000806040838503121562003d4457600080fd5b823562003d518162003d17565b946020939093013593505050565b6001600160e01b03198116811462003d2d57600080fd5b60006020828403121562003d8957600080fd5b813562000e3b8162003d5f565b60008083601f84011262003da957600080fd5b5081356001600160401b0381111562003dc157600080fd5b6020830191508360208260051b8501011115620012f357600080fd5b60008060006040848603121562003df357600080fd5b833562003e008162003d17565b925060208401356001600160401b0381111562003e1c57600080fd5b62003e2a8682870162003d96565b9497909650939450505050565b6001600160a01b0391909116815260200190565b60006020828403121562003e5e57600080fd5b5035919050565b60005b8381101562003e8257818101518382015260200162003e68565b83811115620011925750506000910152565b6000815180845262003eae81602086016020860162003e65565b601f01601f19169290920160200192915050565b60208152600062000e3b602083018462003e94565b60008060006060848603121562003eed57600080fd5b833562003efa8162003d17565b95602085013595506040909401359392505050565b60006020828403121562003f2257600080fd5b813562000e3b8162003d17565b6000806040838503121562003f4357600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171562003f905762003f9062003f52565b6040525050565b60006001600160401b0382111562003fb35762003fb362003f52565b5060051b60200190565b600082601f83011262003fcf57600080fd5b8135602062003fde8262003f97565b60405162003fed828262003f68565b83815260059390931b85018201928281019150868411156200400e57600080fd5b8286015b848110156200402b578035835291830191830162004012565b509695505050505050565b60006001600160401b0383111562004052576200405262003f52565b6040516200406b601f8501601f19166020018262003f68565b8091508381528484840111156200408157600080fd5b83836020830137600060208583010152509392505050565b600082601f830112620040ab57600080fd5b62000e3b8383356020850162004036565b600080600080600060a08688031215620040d557600080fd5b8535620040e28162003d17565b94506020860135620040f48162003d17565b935060408601356001600160401b03808211156200411157600080fd5b6200411f89838a0162003fbd565b945060608801359150808211156200413657600080fd5b6200414489838a0162003fbd565b935060808801359150808211156200415b57600080fd5b506200416a8882890162004099565b9150509295509295909350565b600080604083850312156200418b57600080fd5b8235915060208301356200419f8162003d17565b809150509250929050565b60008060008060408587031215620041c157600080fd5b84356001600160401b0380821115620041d957600080fd5b620041e78883890162003d96565b909650945060208701359150808211156200420157600080fd5b50620042108782880162003d96565b95989497509550505050565b600080604083850312156200423057600080fd5b82356001600160401b03808211156200424857600080fd5b818501915085601f8301126200425d57600080fd5b813560206200426c8262003f97565b6040516200427b828262003f68565b83815260059390931b85018201928281019150898411156200429c57600080fd5b948201945b83861015620042c7578535620042b78162003d17565b82529482019490820190620042a1565b96505086013592505080821115620042de57600080fd5b50620042ed8582860162003fbd565b9150509250929050565b600081518084526020808501945080840160005b8381101562004329578151875295820195908201906001016200430b565b509495945050505050565b60208152600062000e3b6020830184620042f7565b6000806000606084860312156200435f57600080fd5b83356200436c8162003d17565b925060208401356001600160401b03808211156200438957600080fd5b620043978783880162003fbd565b93506040860135915080821115620043ae57600080fd5b50620043bd8682870162003fbd565b9150509250925092565b600060208284031215620043da57600080fd5b81356001600160401b03811115620043f157600080fd5b8201601f810184136200440357600080fd5b620044148482356020840162004036565b949350505050565b600080604083850312156200443057600080fd5b82356200443d8162003d17565b9150602083013580151581146200419f57600080fd5b6000806000806000606086880312156200446c57600080fd5b8535620044798162003d17565b945060208601356001600160401b03808211156200449657600080fd5b620044a489838a0162003d96565b90965094506040880135915080821115620044be57600080fd5b50620044cd8882890162003d96565b969995985093965092949392505050565b60008060408385031215620044f257600080fd5b8235620044ff8162003d17565b915060208301356200419f8162003d17565b600080600080600060a086880312156200452a57600080fd5b8535620045378162003d17565b94506020860135620045498162003d17565b9350604086013592506060860135915060808601356001600160401b038111156200457357600080fd5b6200416a8882890162004099565b634e487b7160e01b600052603260045260246000fd5b600060208284031215620045aa57600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415620046025762004602620045d5565b5060010190565b600181811c908216806200461e57607f821691505b602082108114156200464057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600b908201526a139bdd08195b98589b195960aa1b604082015260600190565b60208082526010908201526f4e6f7420656e6f7567682071756f746160801b604082015260600190565b6000816000190483118215151615620046b257620046b2620045d5565b500290565b600082620046d557634e487b7160e01b600052601260045260246000fd5b500490565b60208082526015908201527413195b99dd1a1cc8185c99481b9bdd08195c5d585b605a1b604082015260600190565b600082198211156200471f576200471f620045d5565b500190565b602080825260079082015266546f6f2062696760c81b604082015260600190565b6000602082840312156200475857600080fd5b815162000e3b8162003d17565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b600082821015620047c357620047c3620045d5565b500390565b634e487b7160e01b600052603160045260246000fd5b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516200481281601785016020880162003e65565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200484581602884016020880162003e65565b01602801949350505050565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006200497e6040830185620042f7565b8281036020840152620049928185620042f7565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60008162004a345762004a34620045d5565b506000190190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062004a789083018462003e94565b979650505050505050565b60006020828403121562004a9657600080fd5b815162000e3b8162003d5f565b600060033d111562004abd5760046000803e5060005160e01c5b90565b600060443d101562004acf5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171562004aff57505050505090565b828501915081518181111562004b185750505050505090565b843d870101602082850101111562004b335750505050505090565b62004b446020828601018762003f68565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009062004bc590830186620042f7565b828103606084015262004bd98186620042f7565b9050828103608084015262004bef818562003e94565b9897505050505050505056fe608060405234801561001057600080fd5b5060405161029338038061029383398101604081905261002f916100a5565b6001600160a01b03811663a22cb465336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b15801561008757600080fd5b505af115801561009b573d6000803e3d6000fd5b50505050506100d5565b6000602082840312156100b757600080fd5b81516001600160a01b03811681146100ce57600080fd5b9392505050565b6101af806100e46000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b61004e61003e36600461009d565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200160405180910390f35b80356001600160a01b038116811461008257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156100b357600080fd5b6100bc8561006b565b93506100ca6020860161006b565b925060408501359150606085013567ffffffffffffffff808211156100ee57600080fd5b818701915087601f83011261010257600080fd5b81358181111561011457610114610087565b604051601f8201601f19908116603f0116810190838211818310171561013c5761013c610087565b816040528281528a602084870101111561015557600080fd5b8260208601602083013760006020848301015280955050505050509295919450925056fea2646970667358221220fc2dba4917a2cea04c384d796b0661be3ee3f6280b21f30ed2e80e5e5cddf5ec64736f6c634300080900334a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a264697066735822122047df5f875fcd7c0eb94957d4e38a2d15ac072078dc84efb829a5313fe42dfdd464736f6c63430008090033608060405234801561001057600080fd5b5060405161029338038061029383398101604081905261002f916100a5565b6001600160a01b03811663a22cb465336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b15801561008757600080fd5b505af115801561009b573d6000803e3d6000fd5b50505050506100d5565b6000602082840312156100b757600080fd5b81516001600160a01b03811681146100ce57600080fd5b9392505050565b6101af806100e46000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b61004e61003e36600461009d565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200160405180910390f35b80356001600160a01b038116811461008257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156100b357600080fd5b6100bc8561006b565b93506100ca6020860161006b565b925060408501359150606085013567ffffffffffffffff808211156100ee57600080fd5b818701915087601f83011261010257600080fd5b81358181111561011457610114610087565b604051601f8201601f19908116603f0116810190838211818310171561013c5761013c610087565b816040528281528a602084870101111561015557600080fd5b8260208601602083013760006020848301015280955050505050509295919450925056fea2646970667358221220fc2dba4917a2cea04c384d796b0661be3ee3f6280b21f30ed2e80e5e5cddf5ec64736f6c634300080900339f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217751b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67200000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab0000000000000000000000000000000000000000000000000000000000006968000000000000000000000000a0ac1acaf32e03cbb657d99f66743ea435236e5a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000ea6cf725f7c540af7daa5a1815fd0cbec05c81e3000000000000000000000000000000000000000000000000000000000000003f697066733a2f2f516d5675765870437565485364643267645939446454425163786d6e397656555a787643585044335a753637774c2f7b69647d2e6a736f6e00

Deployed Bytecode

0x608060405260043610620003ae5760003560e01c806375b238fc11620001ef578063bd85b039116200010d578063d81d0a1511620000a8578063d81d0a151462000c0c578063dd5807621462000c31578063e15fa5b21462000c56578063e985e9c51462000c6e578063ed6bf0b21462000cbb578063f242432a1462000ce0578063f5298aca1462000d05578063f9ae3c031462000d2a578063fbfa77cf1462000d4f57600080fd5b8063bd85b0391462000af4578063c71c0b401462000b25578063c8c1282b1462000b3d578063c993ab2f1462000b55578063ca15c8731462000b78578063d0094f7e1462000b9d578063d53913931462000bc2578063d547741f1462000be757600080fd5b806391d14854116200018a57806391d1485414620009ea57806391f0cb431462000a0f578063945bbf271462000a345780639b642de11462000a4b5780639f7e75d11462000a705780639fbc87131462000a88578063a217fddf1462000603578063a22cb4651462000aaa578063a6d4dbeb1462000acf57600080fd5b806375b238fc14620008e05780637b1b1de614620009055780637e436bc1146200091d578063855091a91462000940578063876d50f71462000963578063892634cd146200097b5780638dc251e314620009a05780639010d07c14620009c557600080fd5b80632f2ff15d11620002dd5780634f558e7911620002785780634f558e7914620007af57806351cff8d914620007e2578063603f8584146200080757806363da3d45146200081f5780636817031b146200083657806369545b4d146200085b5780636b20c4541462000880578063740ddb8f14620008a557806375a76b0614620008bd57600080fd5b80632f2ff15d146200068957806336568abe14620006ae578063373aad9714620006d35780633d13091c14620006f85780633ef5a13a146200070f5780633f9dc906146200073257806349db4795146200074a5780634e1273f4146200077b57600080fd5b806322518249116200034e57806322518249146200054d578063248a9ca3146200056557806329d7797f14620005995780632a55205a14620005be5780632a58d0a514620006035780632bf2762f146200061a5780632d3ccfe2146200063f5780632eb2c2d6146200066457600080fd5b8062fdd58e14620003b357806301ffc9a714620003eb578063038acf6e14620004215780630ad4032714620004575780630b65108b146200047e5780630e89341c14620004c3578063156e29f614620004f7578063164385e9146200051c575b600080fd5b348015620003c057600080fd5b50620003d8620003d236600462003d30565b62000d71565b6040519081526020015b60405180910390f35b348015620003f857600080fd5b50620004106200040a36600462003d76565b62000e0e565b6040519015158152602001620003e2565b3480156200042e57600080fd5b50620003d87f000000000000000000000000000000000000000000000000000000000000696881565b3480156200046457600080fd5b506200047c6200047636600462003ddd565b62000e42565b005b3480156200048b57600080fd5b50620004b47f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab81565b604051620003e2919062003e37565b348015620004d057600080fd5b50620004e8620004e236600462003e4b565b620010bd565b604051620003e2919062003ec2565b3480156200050457600080fd5b506200047c6200051636600462003ed7565b62001159565b3480156200052957600080fd5b50620003d86200053b36600462003f0f565b600a6020526000908152604090205481565b3480156200055a57600080fd5b506200047c62001198565b3480156200057257600080fd5b50620003d86200058436600462003e4b565b60009081526020819052604090206001015490565b348015620005a657600080fd5b506200047c620005b836600462003f0f565b620011d6565b348015620005cb57600080fd5b50620005e3620005dd36600462003f2f565b620012bd565b604080516001600160a01b039093168352602083019190915201620003e2565b3480156200061057600080fd5b50620003d8600081565b3480156200062757600080fd5b506200047c6200063936600462003e4b565b620012fa565b3480156200064c57600080fd5b506200047c6200065e36600462003f0f565b6200131c565b3480156200067157600080fd5b506200047c62000683366004620040bc565b620013f4565b3480156200069657600080fd5b506200047c620006a836600462004177565b62001492565b348015620006bb57600080fd5b506200047c620006cd36600462004177565b620014c1565b348015620006e057600080fd5b506200047c620006f2366004620041aa565b62001543565b6200047c6200070936600462003d30565b62001610565b3480156200071c57600080fd5b506008546200041090600160a81b900460ff1681565b3480156200073f57600080fd5b50620003d8600b5481565b3480156200075757600080fd5b50620003d86200076936600462003f0f565b60096020526000908152604090205481565b3480156200078857600080fd5b50620007a06200079a3660046200421c565b6200176d565b604051620003e2919062004334565b348015620007bc57600080fd5b5062000410620007ce36600462003e4b565b600090815260056020526040902054151590565b348015620007ef57600080fd5b506200047c6200080136600462003f0f565b620018ab565b3480156200081457600080fd5b506200047c620018fd565b3480156200082c57600080fd5b50620003d8600181565b3480156200084357600080fd5b506200047c6200085536600462003f0f565b6200193b565b3480156200086857600080fd5b506200047c6200087a36600462003d30565b6200197a565b3480156200088d57600080fd5b506200047c6200089f36600462004349565b62001cff565b348015620008b257600080fd5b506200047c62001d4a565b348015620008ca57600080fd5b506008546200041090600160b81b900460ff1681565b348015620008ed57600080fd5b50620003d860008051602062004eef83398151915281565b3480156200091257600080fd5b50620003d8600c5481565b3480156200092a57600080fd5b506008546200041090600160b01b900460ff1681565b3480156200094d57600080fd5b506008546200041090600160c01b900460ff1681565b3480156200097057600080fd5b506200047c62001d88565b3480156200098857600080fd5b506200047c6200099a36600462003f0f565b62001dc6565b348015620009ad57600080fd5b506200047c620009bf36600462003f0f565b62002019565b348015620009d257600080fd5b50620004b4620009e436600462003f2f565b62002058565b348015620009f757600080fd5b506200041062000a0936600462004177565b62002072565b34801562000a1c57600080fd5b506200047c62000a2e36600462003e4b565b6200209b565b34801562000a4157600080fd5b50600f54620003d8565b34801562000a5857600080fd5b506200047c62000a6a366004620043c7565b620020bd565b34801562000a7d57600080fd5b50620003d860075481565b34801562000a9557600080fd5b50600854620004b4906001600160a01b031681565b34801562000ab757600080fd5b506200047c62000ac93660046200441c565b620020e4565b34801562000adc57600080fd5b506200047c62000aee36600462003d30565b620020f1565b34801562000b0157600080fd5b50620003d862000b1336600462003e4b565b60009081526005602052604090205490565b34801562000b3257600080fd5b50620003d8600e5481565b34801562000b4a57600080fd5b506200047c6200270b565b34801562000b6257600080fd5b506008546200041090600160a01b900460ff1681565b34801562000b8557600080fd5b50620003d862000b9736600462003e4b565b62002749565b34801562000baa57600080fd5b506200047c62000bbc366004620041aa565b62002762565b34801562000bcf57600080fd5b50620003d860008051602062004ecf83398151915281565b34801562000bf457600080fd5b506200047c62000c0636600462004177565b62002826565b34801562000c1957600080fd5b506200047c62000c2b36600462004453565b62002850565b34801562000c3e57600080fd5b50620004b462000c5036600462003e4b565b620028ea565b34801562000c6357600080fd5b50620003d8600d5481565b34801562000c7b57600080fd5b506200041062000c8d366004620044de565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801562000cc857600080fd5b506200047c62000cda36600462003e4b565b62002915565b34801562000ced57600080fd5b506200047c62000cff36600462004511565b62002937565b34801562000d1257600080fd5b506200047c62000d2436600462003ed7565b62002984565b34801562000d3757600080fd5b506200047c62000d4936600462003e4b565b620029cf565b34801562000d5c57600080fd5b50600654620004b4906001600160a01b031681565b60006001600160a01b03831662000de35760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b600063152a902d60e11b62000e238362002ad5565b8062000e3b57506001600160e01b0319838116908216145b9392505050565b60008051602062004eef83398151915262000e5e813362002b19565b8160005b81811015620010b557600085858381811062000e825762000e8262004581565b9050602002013590506000600f828154811062000ea35762000ea362004581565b6000918252602090912001546040516370a0823160e01b81526001600160a01b0391821692507f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab909116906370a082319062000f0490849060040162003e37565b60206040518083038186803b15801562000f1d57600080fd5b505afa15801562000f32573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f58919062004597565b60011462000f68575050620010a2565b601080546001810182556000919091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672018290556040516321761c7160e11b81526001600160a01b037f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab16906342842e0e9083908b9084906342ec38e29062000ff790859060040162003e37565b60206040518083038186803b1580156200101057600080fd5b505afa15801562001025573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200104b919062004597565b6040518463ffffffff1660e01b81526004016200106b93929190620045b1565b600060405180830381600087803b1580156200108657600080fd5b505af11580156200109b573d6000803e3d6000fd5b5050505050505b620010ad81620045eb565b905062000e62565b505050505050565b606060048054620010ce9062004609565b80601f0160208091040260200160405190810160405280929190818152602001828054620010fc9062004609565b80156200114d5780601f1062001121576101008083540402835291602001916200114d565b820191906000526020600020905b8154815290600101906020018083116200112f57829003601f168201915b50505050509050919050565b60008051602062004ecf83398151915262001175813362002b19565b620011928484846040518060200160405280600081525062002b88565b50505050565b60008051602062004eef833981519152620011b4813362002b19565b506008805460ff60b81b198116600160b81b9182900460ff1615909102179055565b600854600160a81b900460ff16620012025760405162461bcd60e51b815260040162000dda9062004646565b6001600160a01b0381166000908152600a6020526040902054806200123b5760405162461bcd60e51b815260040162000dda906200466b565b6001600160a01b0382166000908152600a602090815260408083208390558051918201905290815262001275908390600190849062002b88565b816001600160a01b03167f2ec62373990d2b3ea65a3801472527b7acb88e0888f390d5996e469ba3b626df82604051620012b191815260200190565b60405180910390a25050565b600080600061271060075485620012d5919062004695565b620012e19190620046b7565b6008546001600160a01b031693509150505b9250929050565b60008051602062004eef83398151915262001316813362002b19565b50600c55565b600854600160a01b900460ff16620013485760405162461bcd60e51b815260040162000dda9062004646565b6001600160a01b03811660009081526009602052604090205480620013815760405162461bcd60e51b815260040162000dda906200466b565b6001600160a01b038216600090815260096020908152604080832083905580519182019052818152620013b8918491849062002b88565b816001600160a01b03167f21e0dc0d648f45076a89386cd5fedd6f7082f7bef696ea6be5b7890db2817a6882604051620012b191815260200190565b6001600160a01b03851633148062001413575062001413853362000c8d565b6200147c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840162000dda565b6200148b858585858562002c5c565b5050505050565b600082815260208190526040902060010154620014b0813362002b19565b620014bc838362002e0b565b505050565b6001600160a01b0381163314620015335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840162000dda565b6200153f828262002e31565b5050565b60008051602062004eef8339815191526200155f813362002b19565b818414620015815760405162461bcd60e51b815260040162000dda90620046da565b8360005b818110156200160757848482818110620015a357620015a362004581565b9050602002013560096000898985818110620015c357620015c362004581565b9050602002016020810190620015da919062003f0f565b6001600160a01b03168152602081019190915260400160002055620015ff81620045eb565b905062001585565b50505050505050565b600854600160c01b900460ff166200163c5760405162461bcd60e51b815260040162000dda9062004646565b600c546200164b908262004695565b3414620016895760405162461bcd60e51b815260206004820152600b60248201526a57726f6e672076616c756560a81b604482015260640162000dda565b6000600d5411620016d15760405162461bcd60e51b8152602060048201526011602482015270119d5b990819dbd85b081b9bdd081cd95d607a1b604482015260640162000dda565b34600e6000828254620016e5919062004709565b9091555050600d54600e54106200170e576000600e819055600d556008805460ff60c01b191690555b6200172c826001836040518060200160405280600081525062002b88565b604080518281523460208201526001600160a01b038416917f377270fcd159cb3b150d0a64a44d52cfdc735bab64e12bebcf94a4e32ddb572f9101620012b1565b60608151835114620017d45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840162000dda565b600083516001600160401b03811115620017f257620017f262003f52565b6040519080825280602002602001820160405280156200181c578160200160208202803683370190505b50905060005b8451811015620018a3576200187085828151811062001845576200184562004581565b602002602001015185838151811062001862576200186262004581565b602002602001015162000d71565b82828151811062001885576200188562004581565b60209081029190910101526200189b81620045eb565b905062001822565b509392505050565b60008051602062004eef833981519152620018c7813362002b19565b6040516001600160a01b038316904780156108fc02916000818181858888f19350505050158015620014bc573d6000803e3d6000fd5b60008051602062004eef83398151915262001919813362002b19565b506008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60008051602062004eef83398151915262001957813362002b19565b50600680546001600160a01b0319166001600160a01b0392909216919091179055565b600854600160b01b900460ff16620019a65760405162461bcd60e51b815260040162000dda9062004646565b6040516330f60ddb60e11b8152600481018290526000907f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab6001600160a01b0316906361ec1bb69060240160206040518083038186803b15801562001a0a57600080fd5b505afa15801562001a1f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001a45919062004597565b6006546040516321761c7160e11b81529192506001600160a01b037f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab8116926361ec1bb69284926342ec38e29262001aa4929091169060040162003e37565b60206040518083038186803b15801562001abd57600080fd5b505afa15801562001ad2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001af8919062004597565b6040518263ffffffff1660e01b815260040162001b1791815260200190565b60206040518083038186803b15801562001b3057600080fd5b505afa15801562001b45573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001b6b919062004597565b81111562001b8d5760405162461bcd60e51b815260040162000dda9062004724565b6040516331a9108f60e11b8152600481018390527f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab6001600160a01b0316906342842e0e908290636352211e9060240160206040518083038186803b15801562001bf657600080fd5b505afa15801562001c0b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001c31919062004745565b6006546040516001600160e01b031960e085901b16815262001c6392916001600160a01b0316908790600401620045b1565b600060405180830381600087803b15801562001c7e57600080fd5b505af115801562001c93573d6000803e3d6000fd5b5050505062001cb5836001836040518060200160405280600081525062002b88565b81836001600160a01b03167f90113da83a0a46e3167740d1fb4c215b37b03e2f7bf34dce0d3c42df66f510608360405162001cf291815260200190565b60405180910390a3505050565b6001600160a01b03831633148062001d1e575062001d1e833362000c8d565b62001d3d5760405162461bcd60e51b815260040162000dda9062004765565b620014bc83838362002e57565b60008051602062004eef83398151915262001d66813362002b19565b506008805460ff60b01b198116600160b01b9182900460ff1615909102179055565b60008051602062004eef83398151915262001da4813362002b19565b506008805460ff60c01b198116600160c01b9182900460ff1615909102179055565b60008051602062004eef83398151915262001de2813362002b19565b600f5460005b8181101562001192576000600f828154811062001e095762001e0962004581565b6000918252602090912001546040516370a0823160e01b81526001600160a01b0391821692507f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab909116906370a082319062001e6a90849060040162003e37565b60206040518083038186803b15801562001e8357600080fd5b505afa15801562001e98573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001ebe919062004597565b60011462001ecd575062002006565b601080546001810182556000919091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672018290556040516321761c7160e11b81526001600160a01b037f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab16906342842e0e908390889084906342ec38e29062001f5c90859060040162003e37565b60206040518083038186803b15801562001f7557600080fd5b505afa15801562001f8a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001fb0919062004597565b6040518463ffffffff1660e01b815260040162001fd093929190620045b1565b600060405180830381600087803b15801562001feb57600080fd5b505af115801562002000573d6000803e3d6000fd5b50505050505b6200201181620045eb565b905062001de8565b60008051602062004eef83398151915262002035813362002b19565b50600880546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260016020526040812062000e3b908362002fee565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008051602062004eef833981519152620020b7813362002b19565b50600d55565b60008051602062004eef833981519152620020d9813362002b19565b6200153f8262002ffc565b6200153f33838362003011565b600854600160b81b900460ff166200211d5760405162461bcd60e51b815260040162000dda9062004646565b6040516330f60ddb60e11b8152600481018290526000907f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab6001600160a01b0316906361ec1bb69060240160206040518083038186803b1580156200218157600080fd5b505afa15801562002196573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620021bc919062004597565b6040516331a9108f60e11b8152600481018490529091507f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab6001600160a01b0316906342842e0e908290636352211e9060240160206040518083038186803b1580156200222857600080fd5b505afa1580156200223d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002263919062004745565b6006546040516001600160e01b031960e085901b1681526200229592916001600160a01b0316908790600401620045b1565b600060405180830381600087803b158015620022b057600080fd5b505af1158015620022c5573d6000803e3d6000fd5b50506006546040516321761c7160e11b8152600093506001600160a01b037f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab811693506361ec1bb69284926342ec38e2926200232692169060040162003e37565b60206040518083038186803b1580156200233f57600080fd5b505afa15801562002354573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200237a919062004597565b6040518263ffffffff1660e01b81526004016200239991815260200190565b60206040518083038186803b158015620023b257600080fd5b505afa158015620023c7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620023ed919062004597565b9050600b54811115620024145760405162461bcd60e51b815260040162000dda9062004724565b600b54811415620026a2576010546000908015620024b357600f60106200243d600184620047ae565b8154811062002450576200245062004581565b9060005260206000200154815481106200246e576200246e62004581565b600091825260209091200154601080546001600160a01b03909216935090806200249c576200249c620047c8565b600190038181906000526020600020016000905590555b6001600160a01b038216620025985760007f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab604051620024f39062003c63565b620024ff919062003e37565b604051809103906000f0801580156200251c573d6000803e3d6000fd5b50600f805460018101825560009182527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b038416908117909155604051929350917f7297d8a4440c70031ebaa311dacf85341a87311a950df7422281a501c7ac599f9190a291505b6006546040516321761c7160e11b81526001600160a01b037f000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab8116926342842e0e92911690859084906342ec38e290620025f790859060040162003e37565b60206040518083038186803b1580156200261057600080fd5b505afa15801562002625573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200264b919062004597565b6040518463ffffffff1660e01b81526004016200266b93929190620045b1565b600060405180830381600087803b1580156200268657600080fd5b505af11580156200269b573d6000803e3d6000fd5b5050505050505b620026c0846001846040518060200160405280600081525062002b88565b82846001600160a01b03167fdb752cc66303c903605f1793331c85e08219331333a836a80fc98991a915c1bc84604051620026fd91815260200190565b60405180910390a350505050565b60008051602062004eef83398151915262002727813362002b19565b506008805460ff60a81b198116600160a81b9182900460ff1615909102179055565b600081815260016020526040812062000e0890620030ed565b60008051602062004eef8339815191526200277e813362002b19565b818414620027a05760405162461bcd60e51b815260040162000dda90620046da565b8360005b818110156200160757848482818110620027c257620027c262004581565b90506020020135600a6000898985818110620027e257620027e262004581565b9050602002016020810190620027f9919062003f0f565b6001600160a01b031681526020810191909152604001600020556200281e81620045eb565b9050620027a4565b60008281526020819052604090206001015462002844813362002b19565b620014bc838362002e31565b60008051602062004ecf8339815191526200286c813362002b19565b620010b58686868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808a02828101820190935289825290935089925088918291850190849080828437600092018290525060408051602081019091529081529250620030f8915050565b600f8181548110620028fb57600080fd5b6000918252602090912001546001600160a01b0316905081565b60008051602062004eef83398151915262002931813362002b19565b50600b55565b6001600160a01b03851633148062002956575062002956853362000c8d565b620029755760405162461bcd60e51b815260040162000dda9062004765565b6200148b85858585856200325a565b6001600160a01b038316331480620029a35750620029a3833362000c8d565b620029c25760405162461bcd60e51b815260040162000dda9062004765565b620014bc8383836200336e565b60008051602062004eef833981519152620029eb813362002b19565b61271082111562002a305760405162461bcd60e51b815260206004820152600e60248201526d4d6f7265207468616e203130302560901b604482015260640162000dda565b50600755565b62002a42828262002072565b6200153f576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905562002a7a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000e3b836001600160a01b0384166200346e565b60006001600160e01b03198216636cdb3d1360e11b148062002b0757506001600160e01b031982166303a24d0760e21b145b8062000e08575062000e0882620034c0565b62002b25828262002072565b6200153f5762002b40816001600160a01b03166014620034e8565b62002b4d836020620034e8565b60405160200162002b60929190620047de565b60408051601f198184030181529082905262461bcd60e51b825262000dda9160040162003ec2565b6001600160a01b03841662002bb15760405162461bcd60e51b815260040162000dda9062004851565b3362002bd78160008762002bc588620036a1565b62002bd088620036a1565b87620036ef565b60008481526002602090815260408083206001600160a01b03891684529091528120805485929062002c0b90849062004709565b909155505060408051858152602081018590526001600160a01b03808816926000929185169160008051602062004eaf833981519152910160405180910390a46200148b81600087878787620036ff565b815183511462002c805760405162461bcd60e51b815260040162000dda9062004892565b6001600160a01b03841662002ca95760405162461bcd60e51b815260040162000dda90620048da565b3362002cba818787878787620036ef565b60005b845181101562002db257600085828151811062002cde5762002cde62004581565b60200260200101519050600085838151811062002cff5762002cff62004581565b60209081029190910181015160008481526002835260408082206001600160a01b038e16835290935291909120549091508181101562002d535760405162461bcd60e51b815260040162000dda906200491f565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929062002d9490849062004709565b925050819055505050508062002daa90620045eb565b905062002cbd565b50846001600160a01b0316866001600160a01b0316826001600160a01b031660008051602062004e8f833981519152878760405162002df392919062004969565b60405180910390a4620010b58187878787876200387f565b62002e17828262002a36565b6000828152600160205260409020620014bc908262002abe565b62002e3d828262003956565b6000828152600160205260409020620014bc9082620039be565b6001600160a01b03831662002e805760405162461bcd60e51b815260040162000dda906200499b565b805182511462002ea45760405162461bcd60e51b815260040162000dda9062004892565b600033905062002ec981856000868660405180602001604052806000815250620036ef565b60005b835181101562002f9e57600084828151811062002eed5762002eed62004581565b60200260200101519050600084838151811062002f0e5762002f0e62004581565b60209081029190910181015160008481526002835260408082206001600160a01b038c16835290935291909120549091508181101562002f625760405162461bcd60e51b815260040162000dda90620049de565b60009283526002602090815260408085206001600160a01b038b168652909152909220910390558062002f9581620045eb565b91505062002ecc565b5060006001600160a01b0316846001600160a01b0316826001600160a01b031660008051602062004e8f833981519152868660405162002fe092919062004969565b60405180910390a450505050565b600062000e3b8383620039d5565b80516200153f90600490602084019062003c71565b816001600160a01b0316836001600160a01b03161415620030875760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840162000dda565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910162001cf2565b600062000e08825490565b6001600160a01b038416620031215760405162461bcd60e51b815260040162000dda9062004851565b8151835114620031455760405162461bcd60e51b815260040162000dda9062004892565b336200315781600087878787620036ef565b60005b8451811015620031ff5783818151811062003179576200317962004581565b6020026020010151600260008784815181106200319a576200319a62004581565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254620031e4919062004709565b90915550819050620031f681620045eb565b9150506200315a565b50846001600160a01b031660006001600160a01b0316826001600160a01b031660008051602062004e8f83398151915287876040516200324192919062004969565b60405180910390a46200148b816000878787876200387f565b6001600160a01b038416620032835760405162461bcd60e51b815260040162000dda90620048da565b336200329681878762002bc588620036a1565b60008481526002602090815260408083206001600160a01b038a16845290915290205483811015620032dc5760405162461bcd60e51b815260040162000dda906200491f565b60008581526002602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906200331d90849062004709565b909155505060408051868152602081018690526001600160a01b03808916928a8216929186169160008051602062004eaf833981519152910160405180910390a462001607828888888888620036ff565b6001600160a01b038316620033975760405162461bcd60e51b815260040162000dda906200499b565b33620033cc81856000620033ab87620036a1565b620033b687620036a1565b60405180602001604052806000815250620036ef565b60008381526002602090815260408083206001600160a01b038816845290915290205482811015620034125760405162461bcd60e51b815260040162000dda90620049de565b60008481526002602090815260408083206001600160a01b038981168086529184528285208887039055825189815293840188905290929086169160008051602062004eaf833981519152910160405180910390a45050505050565b6000818152600183016020526040812054620034b75750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000e08565b50600062000e08565b60006001600160e01b03198216635a05180f60e01b148062000e08575062000e088262003a02565b60606000620034f983600262004695565b6200350690600262004709565b6001600160401b0381111562003520576200352062003f52565b6040519080825280601f01601f1916602001820160405280156200354b576020820181803683370190505b509050600360fc1b8160008151811062003569576200356962004581565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200359b576200359b62004581565b60200101906001600160f81b031916908160001a9053506000620035c184600262004695565b620035ce90600162004709565b90505b600181111562003650576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062003606576200360662004581565b1a60f81b8282815181106200361f576200361f62004581565b60200101906001600160f81b031916908160001a90535060049490941c93620036488162004a22565b9050620035d1565b50831562000e3b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000dda565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110620036de57620036de62004581565b602090810291909101015292915050565b620010b586868686868662003a39565b6001600160a01b0384163b15620010b55760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619062003746908990899088908890889060040162004a3c565b602060405180830381600087803b1580156200376157600080fd5b505af192505050801562003794575060408051601f3d908101601f19168201909252620037919181019062004a83565b60015b6200384c57620037a362004aa3565b806308c379a01415620037e45750620037bb62004ac0565b80620037c85750620037e6565b8060405162461bcd60e51b815260040162000dda919062003ec2565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840162000dda565b6001600160e01b0319811663f23a6e6160e01b14620016075760405162461bcd60e51b815260040162000dda9062004b4f565b6001600160a01b0384163b15620010b55760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190620038c6908990899088908890889060040162004b97565b602060405180830381600087803b158015620038e157600080fd5b505af192505050801562003914575060408051601f3d908101601f19168201909252620039119181019062004a83565b60015b6200392357620037a362004aa3565b6001600160e01b0319811663bc197c8160e01b14620016075760405162461bcd60e51b815260040162000dda9062004b4f565b62003962828262002072565b156200153f576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600062000e3b836001600160a01b03841662003b5f565b6000826000018281548110620039ef57620039ef62004581565b9060005260206000200154905092915050565b60006001600160e01b03198216637965db0b60e01b148062000e0857506301ffc9a760e01b6001600160e01b031983161462000e08565b6001600160a01b03851662003acd5760005b835181101562003acb5782818151811062003a6a5762003a6a62004581565b60200260200101516005600086848151811062003a8b5762003a8b62004581565b60200260200101518152602001908152602001600020600082825462003ab2919062004709565b9091555062003ac3905081620045eb565b905062003a4b565b505b6001600160a01b038416620010b55760005b8351811015620016075782818151811062003afe5762003afe62004581565b60200260200101516005600086848151811062003b1f5762003b1f62004581565b60200260200101518152602001908152602001600020600082825462003b469190620047ae565b9091555062003b57905081620045eb565b905062003adf565b6000818152600183016020526040812054801562003c5857600062003b86600183620047ae565b855490915060009062003b9c90600190620047ae565b905081811462003c0857600086600001828154811062003bc05762003bc062004581565b906000526020600020015490508087600001848154811062003be65762003be662004581565b6000918252602080832090910192909255918252600188019052604090208390555b855486908062003c1c5762003c1c620047c8565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505062000e08565b600091505062000e08565b6102938062004bfc83390190565b82805462003c7f9062004609565b90600052602060002090601f01602090048101928262003ca3576000855562003cee565b82601f1062003cbe57805160ff191683800117855562003cee565b8280016001018555821562003cee579182015b8281111562003cee57825182559160200191906001019062003cd1565b5062003cfc92915062003d00565b5090565b5b8082111562003cfc576000815560010162003d01565b6001600160a01b038116811462003d2d57600080fd5b50565b6000806040838503121562003d4457600080fd5b823562003d518162003d17565b946020939093013593505050565b6001600160e01b03198116811462003d2d57600080fd5b60006020828403121562003d8957600080fd5b813562000e3b8162003d5f565b60008083601f84011262003da957600080fd5b5081356001600160401b0381111562003dc157600080fd5b6020830191508360208260051b8501011115620012f357600080fd5b60008060006040848603121562003df357600080fd5b833562003e008162003d17565b925060208401356001600160401b0381111562003e1c57600080fd5b62003e2a8682870162003d96565b9497909650939450505050565b6001600160a01b0391909116815260200190565b60006020828403121562003e5e57600080fd5b5035919050565b60005b8381101562003e8257818101518382015260200162003e68565b83811115620011925750506000910152565b6000815180845262003eae81602086016020860162003e65565b601f01601f19169290920160200192915050565b60208152600062000e3b602083018462003e94565b60008060006060848603121562003eed57600080fd5b833562003efa8162003d17565b95602085013595506040909401359392505050565b60006020828403121562003f2257600080fd5b813562000e3b8162003d17565b6000806040838503121562003f4357600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171562003f905762003f9062003f52565b6040525050565b60006001600160401b0382111562003fb35762003fb362003f52565b5060051b60200190565b600082601f83011262003fcf57600080fd5b8135602062003fde8262003f97565b60405162003fed828262003f68565b83815260059390931b85018201928281019150868411156200400e57600080fd5b8286015b848110156200402b578035835291830191830162004012565b509695505050505050565b60006001600160401b0383111562004052576200405262003f52565b6040516200406b601f8501601f19166020018262003f68565b8091508381528484840111156200408157600080fd5b83836020830137600060208583010152509392505050565b600082601f830112620040ab57600080fd5b62000e3b8383356020850162004036565b600080600080600060a08688031215620040d557600080fd5b8535620040e28162003d17565b94506020860135620040f48162003d17565b935060408601356001600160401b03808211156200411157600080fd5b6200411f89838a0162003fbd565b945060608801359150808211156200413657600080fd5b6200414489838a0162003fbd565b935060808801359150808211156200415b57600080fd5b506200416a8882890162004099565b9150509295509295909350565b600080604083850312156200418b57600080fd5b8235915060208301356200419f8162003d17565b809150509250929050565b60008060008060408587031215620041c157600080fd5b84356001600160401b0380821115620041d957600080fd5b620041e78883890162003d96565b909650945060208701359150808211156200420157600080fd5b50620042108782880162003d96565b95989497509550505050565b600080604083850312156200423057600080fd5b82356001600160401b03808211156200424857600080fd5b818501915085601f8301126200425d57600080fd5b813560206200426c8262003f97565b6040516200427b828262003f68565b83815260059390931b85018201928281019150898411156200429c57600080fd5b948201945b83861015620042c7578535620042b78162003d17565b82529482019490820190620042a1565b96505086013592505080821115620042de57600080fd5b50620042ed8582860162003fbd565b9150509250929050565b600081518084526020808501945080840160005b8381101562004329578151875295820195908201906001016200430b565b509495945050505050565b60208152600062000e3b6020830184620042f7565b6000806000606084860312156200435f57600080fd5b83356200436c8162003d17565b925060208401356001600160401b03808211156200438957600080fd5b620043978783880162003fbd565b93506040860135915080821115620043ae57600080fd5b50620043bd8682870162003fbd565b9150509250925092565b600060208284031215620043da57600080fd5b81356001600160401b03811115620043f157600080fd5b8201601f810184136200440357600080fd5b620044148482356020840162004036565b949350505050565b600080604083850312156200443057600080fd5b82356200443d8162003d17565b9150602083013580151581146200419f57600080fd5b6000806000806000606086880312156200446c57600080fd5b8535620044798162003d17565b945060208601356001600160401b03808211156200449657600080fd5b620044a489838a0162003d96565b90965094506040880135915080821115620044be57600080fd5b50620044cd8882890162003d96565b969995985093965092949392505050565b60008060408385031215620044f257600080fd5b8235620044ff8162003d17565b915060208301356200419f8162003d17565b600080600080600060a086880312156200452a57600080fd5b8535620045378162003d17565b94506020860135620045498162003d17565b9350604086013592506060860135915060808601356001600160401b038111156200457357600080fd5b6200416a8882890162004099565b634e487b7160e01b600052603260045260246000fd5b600060208284031215620045aa57600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415620046025762004602620045d5565b5060010190565b600181811c908216806200461e57607f821691505b602082108114156200464057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600b908201526a139bdd08195b98589b195960aa1b604082015260600190565b60208082526010908201526f4e6f7420656e6f7567682071756f746160801b604082015260600190565b6000816000190483118215151615620046b257620046b2620045d5565b500290565b600082620046d557634e487b7160e01b600052601260045260246000fd5b500490565b60208082526015908201527413195b99dd1a1cc8185c99481b9bdd08195c5d585b605a1b604082015260600190565b600082198211156200471f576200471f620045d5565b500190565b602080825260079082015266546f6f2062696760c81b604082015260600190565b6000602082840312156200475857600080fd5b815162000e3b8162003d17565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b600082821015620047c357620047c3620045d5565b500390565b634e487b7160e01b600052603160045260246000fd5b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516200481281601785016020880162003e65565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200484581602884016020880162003e65565b01602801949350505050565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006200497e6040830185620042f7565b8281036020840152620049928185620042f7565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60008162004a345762004a34620045d5565b506000190190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062004a789083018462003e94565b979650505050505050565b60006020828403121562004a9657600080fd5b815162000e3b8162003d5f565b600060033d111562004abd5760046000803e5060005160e01c5b90565b600060443d101562004acf5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171562004aff57505050505090565b828501915081518181111562004b185750505050505090565b843d870101602082850101111562004b335750505050505090565b62004b446020828601018762003f68565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009062004bc590830186620042f7565b828103606084015262004bd98186620042f7565b9050828103608084015262004bef818562003e94565b9897505050505050505056fe608060405234801561001057600080fd5b5060405161029338038061029383398101604081905261002f916100a5565b6001600160a01b03811663a22cb465336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b15801561008757600080fd5b505af115801561009b573d6000803e3d6000fd5b50505050506100d5565b6000602082840312156100b757600080fd5b81516001600160a01b03811681146100ce57600080fd5b9392505050565b6101af806100e46000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b61004e61003e36600461009d565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200160405180910390f35b80356001600160a01b038116811461008257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156100b357600080fd5b6100bc8561006b565b93506100ca6020860161006b565b925060408501359150606085013567ffffffffffffffff808211156100ee57600080fd5b818701915087601f83011261010257600080fd5b81358181111561011457610114610087565b604051601f8201601f19908116603f0116810190838211818310171561013c5761013c610087565b816040528281528a602084870101111561015557600080fd5b8260208601602083013760006020848301015280955050505050509295919450925056fea2646970667358221220fc2dba4917a2cea04c384d796b0661be3ee3f6280b21f30ed2e80e5e5cddf5ec64736f6c634300080900334a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a264697066735822122047df5f875fcd7c0eb94957d4e38a2d15ac072078dc84efb829a5313fe42dfdd464736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab0000000000000000000000000000000000000000000000000000000000006968000000000000000000000000a0ac1acaf32e03cbb657d99f66743ea435236e5a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000ea6cf725f7c540af7daa5a1815fd0cbec05c81e3000000000000000000000000000000000000000000000000000000000000003f697066733a2f2f516d5675765870437565485364643267645939446454425163786d6e397656555a787643585044335a753637774c2f7b69647d2e6a736f6e00

-----Decoded View---------------
Arg [0] : uri (string): ipfs://QmVuvXpCueHSdd2gdY9DdTBQcxmn9vVUZxvCXPD3Zu67wL/{id}.json
Arg [1] : merge_ (address): 0xc3f8a0F5841aBFf777d3eefA5047e8D413a1C9AB
Arg [2] : blueMergeId_ (uint256): 26984
Arg [3] : vault_ (address): 0xa0ac1AcaF32e03CBB657D99F66743EA435236E5a
Arg [4] : royaltyInBips_ (uint256): 1000
Arg [5] : royaltyReceiver_ (address): 0xEA6Cf725f7C540af7DAa5A1815FD0Cbec05c81E3

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 000000000000000000000000c3f8a0f5841abff777d3eefa5047e8d413a1c9ab
Arg [2] : 0000000000000000000000000000000000000000000000000000000000006968
Arg [3] : 000000000000000000000000a0ac1acaf32e03cbb657d99f66743ea435236e5a
Arg [4] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [5] : 000000000000000000000000ea6cf725f7c540af7daa5a1815fd0cbec05c81e3
Arg [6] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [7] : 697066733a2f2f516d5675765870437565485364643267645939446454425163
Arg [8] : 786d6e397656555a787643585044335a753637774c2f7b69647d2e6a736f6e00


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.