ETH Price: $3,486.51 (+2.29%)

Token

DFTXSixamo (DFT4X)
 

Overview

Max Total Supply

0 DFT4X

Holders

186

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 DFT4X
0xe37b3a007b31cbee370d89921f4e682cdbd98d70
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

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

Contract Name:
Collection721

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 50 runs

Other Settings:
default evmVersion
File 1 of 14 : Collection721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract Collection721 is Ownable, ERC721 {
    struct SaleConfig {
        string saleIdentifier;
        bool enabled;
        uint256 startTime;
        uint256 endTime;
        uint256 mintCharge;
        bytes32 whitelistRoot;
        uint256 maxMintPerWallet;
        uint256 maxMintInSale;
    }

    uint256 public tokenId = 1;
    using ECDSA for bytes32;
    bytes32 public emptyRoot =
        0x0000000000000000000000000000000000000000000000000000000000000000;
    address public feeDestination;
    bytes32 public saleConfigsRoot;
    mapping(bytes => bool) public isSignatureRedeemed;
    mapping(string => uint256) public mintCountByIdentifier;
    mapping(string => mapping(address => uint256)) public balanceByIdentifier;
    uint256 public maxMintInTotalPerWallet;
    address public msgSigner;
    string public baseURI;
    uint256 public revealTime;

    event Mint(address msgSender, uint256 fromTokenId, uint256 toTokenId);

    constructor(
        string memory _name,
        string memory _symbol,
        address _feeDestination,
        uint256 _maxMintInTotalPerWallet,
        bytes32 _saleConfigRoot,
        address _msgSigner,
        string memory _baseURI,
        uint256 _revealTime
    ) ERC721(_name, _symbol) {
        feeDestination = _feeDestination;
        saleConfigsRoot = _saleConfigRoot;
        msgSigner = _msgSigner;
        baseURI = _baseURI;
        maxMintInTotalPerWallet = _maxMintInTotalPerWallet;
        revealTime = _revealTime;
    }

    function updateRevealTime(uint256 _revealTime) external onlyOwner {
        revealTime = _revealTime;
    }

    function updateMaxMintInTotalPerWallet(uint256 _val) external onlyOwner {
        maxMintInTotalPerWallet = _val;
    }

    function updateBaseURI(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    function updateSaleConfigRoot(bytes32 _saleConfigRoot) external onlyOwner {
        saleConfigsRoot = _saleConfigRoot;
    }

    function contractURI() external view returns (string memory) {
        return
            string(
                string.concat(
                    (bytes(baseURI)),
                    "contract-uri?address=",
                    (
                        bytes(
                            Strings.toHexString(
                                uint256(uint160(address(this))),
                                20
                            )
                        )
                    ),
                    "&network=",
                    (bytes(Strings.toString(block.chainid)))
                )
            );
    }

    function updateFeeToAddress(address _feeDestination) external onlyOwner {
        feeDestination = _feeDestination;
    }

    function getSaleConfigLeaf(SaleConfig memory config)
        public
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked(
                    keccak256(
                        abi.encodePacked(
                            config.saleIdentifier,
                            config.enabled,
                            config.startTime,
                            config.endTime,
                            config.mintCharge,
                            config.whitelistRoot,
                            config.maxMintPerWallet,
                            config.maxMintInSale
                        )
                    )
                )
            );
    }

    modifier onlyValidMint(
        bytes32[] memory saleConfigProof,
        bytes32[] memory whitelistProof,
        uint256 numberOfMint,
        SaleConfig memory config
    ) {
        require(saleConfigsRoot != emptyRoot, "No sale configured");
        require(
            MerkleProof.verify(
                saleConfigProof,
                saleConfigsRoot,
                getSaleConfigLeaf(config)
            ),
            "Invalid Sale Config"
        );
        require(config.enabled, "Sale is not enabled");
        uint256 time = block.timestamp;
        require(
            config.startTime != 0 && time >= config.startTime,
            "Sale has not started yet"
        );
        require(
            time <= config.endTime || config.endTime == 0,
            "Sale has ended"
        );
        require(
            msg.value >= config.mintCharge * numberOfMint,
            "Not enough mint charge provided"
        );
        require(
            mintCountByIdentifier[config.saleIdentifier] + numberOfMint <=
                config.maxMintInSale,
            "Max Sale Limit Exceeds"
        );
        require(
            balanceByIdentifier[config.saleIdentifier][msg.sender] +
                numberOfMint <=
                config.maxMintPerWallet,
            "MaxMintPerWalletSaleLimitExceeds"
        );
        if (maxMintInTotalPerWallet != 0) {
            require(
                balanceOf(msg.sender) + numberOfMint <= maxMintInTotalPerWallet,
                "MaxTotalMintWalletLimitExceeds"
            );
        }
        if (config.whitelistRoot != emptyRoot) {
            require(
                MerkleProof.verify(
                    whitelistProof,
                    config.whitelistRoot,
                    keccak256(abi.encodePacked(msg.sender))
                ),
                "User not whitelisted"
            );
        }
        _;
    }

    modifier onlyPlatformSigned(string memory message, bytes memory signature) {
        require(!isSignatureRedeemed[signature], "Signature already redeemed");
        require(
            keccak256(abi.encodePacked(message))
                .toEthSignedMessageHash()
                .recover(signature) == msgSigner,
            "Invalid Signature"
        );
        _;
    }

    function mint(
        bytes32[] memory saleConfigProof,
        bytes32[] memory whitelistProof,
        uint256 numberOfMint,
        string memory message,
        bytes memory signature,
        SaleConfig memory config
    )
        external
        payable
        onlyValidMint(saleConfigProof, whitelistProof, numberOfMint, config)
        onlyPlatformSigned(message, signature)
    {
        require(numberOfMint > 0, "Number of mints is 0");
        for (uint256 i = 0; i < numberOfMint; ++i) {
            _mint(msg.sender, tokenId + i);
        }
        tokenId = tokenId + numberOfMint;
        balanceByIdentifier[config.saleIdentifier][msg.sender] += numberOfMint;
        mintCountByIdentifier[config.saleIdentifier] += numberOfMint;
        isSignatureRedeemed[signature] = true;
        payable(feeDestination).transfer(msg.value);
        emit Mint(msg.sender, tokenId - numberOfMint, tokenId - 1);
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (revealTime != 0 && block.timestamp <= revealTime) {
            return
                string(
                    string.concat(
                        (bytes(baseURI)),
                        "hidden-token-uri?address=",
                        (
                            bytes(
                                Strings.toHexString(
                                    uint256(uint160(address(this))),
                                    20
                                )
                            )
                        ),
                        "&network=",
                        (bytes(Strings.toString(block.chainid)))
                    )
                );
        }
        return
            string(
                string.concat(
                    (bytes(baseURI)),
                    "token-uri?address=",
                    (
                        bytes(
                            Strings.toHexString(
                                uint256(uint160(address(this))),
                                20
                            )
                        )
                    ),
                    "&network=",
                    (bytes(Strings.toString(block.chainid))),
                    "&tokenId=",
                    (bytes(Strings.toString(_tokenId)))
                )
            );
    }
}

File 2 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 4 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

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

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

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

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

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

        return (signer, RecoverError.NoError);
    }

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

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 8 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 9 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 11 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 12 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_feeDestination","type":"address"},{"internalType":"uint256","name":"_maxMintInTotalPerWallet","type":"uint256"},{"internalType":"bytes32","name":"_saleConfigRoot","type":"bytes32"},{"internalType":"address","name":"_msgSigner","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"uint256","name":"_revealTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":false,"internalType":"address","name":"msgSender","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"address","name":"","type":"address"}],"name":"balanceByIdentifier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emptyRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDestination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"saleIdentifier","type":"string"},{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"mintCharge","type":"uint256"},{"internalType":"bytes32","name":"whitelistRoot","type":"bytes32"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxMintInSale","type":"uint256"}],"internalType":"struct Collection721.SaleConfig","name":"config","type":"tuple"}],"name":"getSaleConfigLeaf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"isSignatureRedeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintInTotalPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"saleConfigProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"whitelistProof","type":"bytes32[]"},{"internalType":"uint256","name":"numberOfMint","type":"uint256"},{"internalType":"string","name":"message","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"},{"components":[{"internalType":"string","name":"saleIdentifier","type":"string"},{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"mintCharge","type":"uint256"},{"internalType":"bytes32","name":"whitelistRoot","type":"bytes32"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxMintInSale","type":"uint256"}],"internalType":"struct Collection721.SaleConfig","name":"config","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"mintCountByIdentifier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"msgSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleConfigsRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDestination","type":"address"}],"name":"updateFeeToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_val","type":"uint256"}],"name":"updateMaxMintInTotalPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_revealTime","type":"uint256"}],"name":"updateRevealTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_saleConfigRoot","type":"bytes32"}],"name":"updateSaleConfigRoot","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600160075560006008553480156200001b57600080fd5b506040516200324e3803806200324e8339810160408190526200003e91620002a0565b87876200004b33620000da565b8151620000609060019060208501906200012a565b508051620000769060029060208401906200012a565b5050600980546001600160a01b03808a166001600160a01b031992831617909255600a879055600f805492871692909116919091179055508151620000c39060109060208501906200012a565b50600e9490945550505060115550620003c3915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001389062000370565b90600052602060002090601f0160209004810192826200015c5760008555620001a7565b82601f106200017757805160ff1916838001178555620001a7565b82800160010185558215620001a7579182015b82811115620001a75782518255916020019190600101906200018a565b50620001b5929150620001b9565b5090565b5b80821115620001b55760008155600101620001ba565b80516001600160a01b0381168114620001e857600080fd5b919050565b600082601f830112620001fe578081fd5b81516001600160401b03808211156200021b576200021b620003ad565b604051601f8301601f19908116603f01168101908282118183101715620002465762000246620003ad565b8160405283815260209250868385880101111562000262578485fd5b8491505b8382101562000285578582018301518183018401529082019062000266565b838211156200029657848385830101525b9695505050505050565b600080600080600080600080610100898b031215620002bd578384fd5b88516001600160401b0380821115620002d4578586fd5b620002e28c838d01620001ed565b995060208b0151915080821115620002f8578586fd5b620003068c838d01620001ed565b98506200031660408c01620001d0565b975060608b0151965060808b015195506200033460a08c01620001d0565b945060c08b01519150808211156200034a578384fd5b50620003598b828c01620001ed565b92505060e089015190509295985092959890939650565b600181811c908216806200038557607f821691505b60208210811415620003a757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612e7b80620003d36000396000f3fe6080604052600436106101c45760003560e01c80638da5cb5b116100f8578063c87b56dd11610090578063c87b56dd1461054f578063ca73e5e91461056f578063d9c79c1c1461058f578063dc9f75f7146105a2578063de53fcd5146105c2578063e8a3d485146105e2578063e985e9c5146105f7578063eaf3a58914610617578063f2fde38b1461062d57600080fd5b80638da5cb5b14610419578063931688cb1461042e57806395d89b411461044e5780639a953ea214610463578063a22cb46514610479578063ae5adfd214610499578063b88d4fde146104e1578063ba4cc74914610501578063ba829d711461053957600080fd5b806342842e0e1161016b57806342842e0e1461031957806361b5a2a2146103395780636352211e146103595780636c0360eb1461037957806370a082311461038e578063715018a6146103ae5780638028b285146103c357806380e73783146103e357806383699816146103f957600080fd5b8063018779c7146101c957806301ffc9a71461021957806306fdde0314610239578063081812fc1461025b578063095ea7b31461029357806317d70f7c146102b5578063210112f5146102d957806323b872dd146102f9575b600080fd5b3480156101d557600080fd5b506102046101e4366004612809565b8051602081830181018051600b8252928201919093012091525460ff1681565b60405190151581526020015b60405180910390f35b34801561022557600080fd5b506102046102343660046127d1565b61064d565b34801561024557600080fd5b5061024e61069f565b6040516102109190612b9a565b34801561026757600080fd5b5061027b6102763660046127b9565b610731565b6040516001600160a01b039091168152602001610210565b34801561029f57600080fd5b506102b36102ae3660046126bd565b6107be565b005b3480156102c157600080fd5b506102cb60075481565b604051908152602001610210565b3480156102e557600080fd5b506102b36102f43660046125a8565b6108cf565b34801561030557600080fd5b506102b36103143660046125f4565b610920565b34801561032557600080fd5b506102b36103343660046125f4565b610951565b34801561034557600080fd5b506102b36103543660046127b9565b61096c565b34801561036557600080fd5b5061027b6103743660046127b9565b6109a0565b34801561038557600080fd5b5061024e610a17565b34801561039a57600080fd5b506102cb6103a93660046125a8565b610aa5565b3480156103ba57600080fd5b506102b3610b2c565b3480156103cf57600080fd5b50600f5461027b906001600160a01b031681565b3480156103ef57600080fd5b506102cb60085481565b34801561040557600080fd5b506102b36104143660046127b9565b610b67565b34801561042557600080fd5b5061027b610b9b565b34801561043a57600080fd5b506102b3610449366004612809565b610baa565b34801561045a57600080fd5b5061024e610bf0565b34801561046f57600080fd5b506102cb600e5481565b34801561048557600080fd5b506102b3610494366004612694565b610bff565b3480156104a557600080fd5b506102cb6104b436600461283b565b8151602081840181018051600d825292820194820194909420919093529091526000908152604090205481565b3480156104ed57600080fd5b506102b36104fc36600461262f565b610c0a565b34801561050d57600080fd5b506102cb61051c366004612809565b8051602081830181018051600c8252928201919093012091525481565b34801561054557600080fd5b506102cb60115481565b34801561055b57600080fd5b5061024e61056a3660046127b9565b610c42565b34801561057b57600080fd5b506102cb61058a36600461287d565b610cce565b6102b361059d3660046126e6565b610d43565b3480156105ae57600080fd5b506102b36105bd3660046127b9565b61142c565b3480156105ce57600080fd5b5060095461027b906001600160a01b031681565b3480156105ee57600080fd5b5061024e611460565b34801561060357600080fd5b506102046106123660046125c2565b61149e565b34801561062357600080fd5b506102cb600a5481565b34801561063957600080fd5b506102b36106483660046125a8565b6114cc565b60006001600160e01b031982166380ac58cd60e01b148061067e57506001600160e01b03198216635b5e139f60e01b145b8061069957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546106ae90612d83565b80601f01602080910402602001604051908101604052809291908181526020018280546106da90612d83565b80156107275780601f106106fc57610100808354040283529160200191610727565b820191906000526020600020905b81548152906001019060200180831161070a57829003601f168201915b5050505050905090565b600061073c8261156c565b6107a25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107c9826109a0565b9050806001600160a01b0316836001600160a01b031614156108375760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610799565b336001600160a01b03821614806108535750610853813361149e565b6108c05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610799565b6108ca8383611589565b505050565b336108d8610b9b565b6001600160a01b0316146108fe5760405162461bcd60e51b815260040161079990612bff565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b61092a33826115f7565b6109465760405162461bcd60e51b815260040161079990612c34565b6108ca8383836116c1565b6108ca83838360405180602001604052806000815250610c0a565b33610975610b9b565b6001600160a01b03161461099b5760405162461bcd60e51b815260040161079990612bff565b600e55565b6000818152600360205260408120546001600160a01b0316806106995760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610799565b60108054610a2490612d83565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5090612d83565b8015610a9d5780601f10610a7257610100808354040283529160200191610a9d565b820191906000526020600020905b815481529060010190602001808311610a8057829003601f168201915b505050505081565b60006001600160a01b038216610b105760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610799565b506001600160a01b031660009081526004602052604090205490565b33610b35610b9b565b6001600160a01b031614610b5b5760405162461bcd60e51b815260040161079990612bff565b610b65600061185d565b565b33610b70610b9b565b6001600160a01b031614610b965760405162461bcd60e51b815260040161079990612bff565b600a55565b6000546001600160a01b031690565b33610bb3610b9b565b6001600160a01b031614610bd95760405162461bcd60e51b815260040161079990612bff565b8051610bec906010906020840190612363565b5050565b6060600280546106ae90612d83565b610bec3383836118ad565b610c1433836115f7565b610c305760405162461bcd60e51b815260040161079990612c34565b610c3c84848484611978565b50505050565b6060601154600014158015610c5957506011544211155b15610c9c576010610c6b3060146119ab565b610c7446611b93565b604051602001610c869392919061298f565b6040516020818303038152906040529050919050565b6010610ca93060146119ab565b610cb246611b93565b610cbb85611b93565b604051602001610c869493929190612a75565b80516020808301516040808501516060860151608087015160a088015160c089015160e08a01519551600099610d08999098979101612b0e565b60408051601f19818403018152828252805160209182012090830152015b604051602081830303815290604052805190602001209050919050565b85858583600854600a541415610d905760405162461bcd60e51b8152602060048201526012602482015271139bc81cd85b194818dbdb999a59dd5c995960721b6044820152606401610799565b610da584600a54610da084610cce565b611cac565b610de75760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053616c6520436f6e66696760681b6044820152606401610799565b8060200151610e2e5760405162461bcd60e51b815260206004820152601360248201527214d85b19481a5cc81b9bdd08195b98589b1959606a1b6044820152606401610799565b6040810151429015801590610e47575081604001518110155b610e8e5760405162461bcd60e51b815260206004820152601860248201527714d85b19481a185cc81b9bdd081cdd185c9d1959081e595d60421b6044820152606401610799565b816060015181111580610ea357506060820151155b610ee05760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a185cc8195b99195960921b6044820152606401610799565b828260800151610ef09190612d0a565b341015610f3f5760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f756768206d696e74206368617267652070726f7669646564006044820152606401610799565b8160e0015183600c8460000151604051610f599190612973565b908152602001604051809103902054610f729190612cde565b1115610fb95760405162461bcd60e51b81526020600482015260166024820152754d61782053616c65204c696d6974204578636565647360501b6044820152606401610799565b8160c0015183600d8460000151604051610fd39190612973565b90815260408051602092819003830190203360009081529252902054610ff99190612cde565b11156110475760405162461bcd60e51b815260206004820181905260248201527f4d61784d696e7450657257616c6c657453616c654c696d6974457863656564736044820152606401610799565b600e54156110b457600e548361105c33610aa5565b6110669190612cde565b11156110b45760405162461bcd60e51b815260206004820152601e60248201527f4d6178546f74616c4d696e7457616c6c65744c696d69744578636565647300006044820152606401610799565b6008548260a00151146111435760a08201516040516001600160601b03193360601b16602082015261110091869160340160405160208183030381529060405280519060200120611cac565b6111435760405162461bcd60e51b8152602060048201526014602482015273155cd95c881b9bdd081dda1a5d195b1a5cdd195960621b6044820152606401610799565b8787600b816040516111559190612973565b9081526040519081900360200190205460ff16156111b25760405162461bcd60e51b815260206004820152601a60248201527914da59db985d1d5c9948185b1c9958591e481c995919595b595960321b6044820152606401610799565b600f546040516001600160a01b03909116906111fd9083906111f7906111dc908790602001612973565b60405160208183030381529060405280519060200120611cc2565b90611cfd565b6001600160a01b0316146112475760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b6044820152606401610799565b60008b1161128e5760405162461bcd60e51b815260206004820152601460248201527304e756d626572206f66206d696e747320697320360641b6044820152606401610799565b60005b8b8110156112c0576112b033826007546112ab9190612cde565b611d21565b6112b981612dbe565b9050611291565b508a6007546112cf9190612cde565b60075587516040518c91600d916112e69190612973565b9081526040805160209281900383019020336000908152925281208054909190611311908490612cde565b909155505087516040518c91600c9161132a9190612973565b908152602001604051809103902060008282546113479190612cde565b925050819055506001600b8a6040516113609190612973565b908152604051908190036020018120805492151560ff19909316929092179091556009546001600160a01b0316903480156108fc02916000818181858888f193505050501580156113b5573d6000803e3d6000fd5b507f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f338c6007546113e69190612d29565b60016007546113f59190612d29565b604080516001600160a01b03909416845260208401929092529082015260600160405180910390a150505050505050505050505050565b33611435610b9b565b6001600160a01b03161461145b5760405162461bcd60e51b815260040161079990612bff565b601155565b6060601061146f3060146119ab565b61147846611b93565b60405160200161148a93929190612a04565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b336114d5610b9b565b6001600160a01b0316146114fb5760405162461bcd60e51b815260040161079990612bff565b6001600160a01b0381166115605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610799565b6115698161185d565b50565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115be826109a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116028261156c565b6116635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610799565b600061166e836109a0565b9050806001600160a01b0316846001600160a01b031614806116955750611695818561149e565b806116b95750836001600160a01b03166116ae84610731565b6001600160a01b0316145b949350505050565b826001600160a01b03166116d4826109a0565b6001600160a01b0316146117385760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610799565b6001600160a01b03821661179a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610799565b6117a5600082611589565b6001600160a01b03831660009081526004602052604081208054600192906117ce908490612d29565b90915550506001600160a01b03821660009081526004602052604081208054600192906117fc908490612cde565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316141561190b5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610799565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6119838484846116c1565b61198f84848484611e54565b610c3c5760405162461bcd60e51b815260040161079990612bad565b606060006119ba836002612d0a565b6119c5906002612cde565b6001600160401b038111156119ea57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a14576020820181803683370190505b509050600360fc1b81600081518110611a3d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611a7a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611a9e846002612d0a565b611aa9906001612cde565b90505b6001811115611b3d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611aeb57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611b0f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611b3681612d6c565b9050611aac565b508315611b8c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610799565b9392505050565b606081611bb75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611be15780611bcb81612dbe565b9150611bda9050600a83612cf6565b9150611bbb565b6000816001600160401b03811115611c0957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c33576020820181803683370190505b5090505b84156116b957611c48600183612d29565b9150611c55600a86612dd9565b611c60906030612cde565b60f81b818381518110611c8357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ca5600a86612cf6565b9450611c37565b600082611cb98584611f61565b14949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01610d26565b6000806000611d0c8585611fdb565b91509150611d198161204b565b509392505050565b6001600160a01b038216611d775760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610799565b611d808161156c565b15611dcd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610799565b6001600160a01b0382166000908152600460205260408120805460019290611df6908490612cde565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611f5657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e98903390899088908890600401612b5d565b602060405180830381600087803b158015611eb257600080fd5b505af1925050508015611ee2575060408051601f3d908101601f19168201909252611edf918101906127ed565b60015b611f3c573d808015611f10576040519150601f19603f3d011682016040523d82523d6000602084013e611f15565b606091505b508051611f345760405162461bcd60e51b815260040161079990612bad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116b9565b506001949350505050565b600081815b8451811015611d19576000858281518110611f9157634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311611fb75760008381526020829052604090209250611fc8565b600081815260208490526040902092505b5080611fd381612dbe565b915050611f66565b6000808251604114156120125760208301516040840151606085015160001a61200687828585612247565b94509450505050612044565b82516040141561203c576020830151604084015161203186838361232a565b935093505050612044565b506000905060025b9250929050565b600081600481111561206d57634e487b7160e01b600052602160045260246000fd5b14156120765750565b600181600481111561209857634e487b7160e01b600052602160045260246000fd5b14156120e15760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610799565b600281600481111561210357634e487b7160e01b600052602160045260246000fd5b14156121515760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610799565b600381600481111561217357634e487b7160e01b600052602160045260246000fd5b14156121cc5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610799565b60048160048111156121ee57634e487b7160e01b600052602160045260246000fd5b14156115695760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610799565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b038311156122745750600090506003612321565b8460ff16601b1415801561228c57508460ff16601c14155b1561229d5750600090506004612321565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156122f1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661231a57600060019250925050612321565b9150600090505b94509492505050565b6000806001600160ff1b0383168161234760ff86901c601b612cde565b905061235587828885612247565b935093505050935093915050565b82805461236f90612d83565b90600052602060002090601f01602090048101928261239157600085556123d7565b82601f106123aa57805160ff19168380011785556123d7565b828001600101855582156123d7579182015b828111156123d75782518255916020019190600101906123bc565b506123e39291506123e7565b5090565b5b808211156123e357600081556001016123e8565b80356001600160a01b038116811461241357600080fd5b919050565b600082601f830112612428578081fd5b813560206001600160401b0382111561244357612443612e19565b8160051b612452828201612cae565b83815282810190868401838801850189101561246c578687fd5b8693505b8584101561248e578035835260019390930192918401918401612470565b50979650505050505050565b8035801515811461241357600080fd5b600082601f8301126124ba578081fd5b81356001600160401b038111156124d3576124d3612e19565b6124e6601f8201601f1916602001612cae565b8181528460208386010111156124fa578283fd5b816020850160208301379081016020019190915292915050565b60006101008284031215612526578081fd5b61252e612c85565b905081356001600160401b0381111561254657600080fd5b612552848285016124aa565b8252506125616020830161249a565b602082015260408201356040820152606082013560608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e082015292915050565b6000602082840312156125b9578081fd5b611b8c826123fc565b600080604083850312156125d4578081fd5b6125dd836123fc565b91506125eb602084016123fc565b90509250929050565b600080600060608486031215612608578081fd5b612611846123fc565b925061261f602085016123fc565b9150604084013590509250925092565b60008060008060808587031215612644578081fd5b61264d856123fc565b935061265b602086016123fc565b92506040850135915060608501356001600160401b0381111561267c578182fd5b612688878288016124aa565b91505092959194509250565b600080604083850312156126a6578182fd5b6126af836123fc565b91506125eb6020840161249a565b600080604083850312156126cf578182fd5b6126d8836123fc565b946020939093013593505050565b60008060008060008060c087890312156126fe578182fd5b86356001600160401b0380821115612714578384fd5b6127208a838b01612418565b97506020890135915080821115612735578384fd5b6127418a838b01612418565b965060408901359550606089013591508082111561275d578384fd5b6127698a838b016124aa565b9450608089013591508082111561277e578384fd5b61278a8a838b016124aa565b935060a089013591508082111561279f578283fd5b506127ac89828a01612514565b9150509295509295509295565b6000602082840312156127ca578081fd5b5035919050565b6000602082840312156127e2578081fd5b8135611b8c81612e2f565b6000602082840312156127fe578081fd5b8151611b8c81612e2f565b60006020828403121561281a578081fd5b81356001600160401b0381111561282f578182fd5b6116b9848285016124aa565b6000806040838503121561284d578182fd5b82356001600160401b03811115612862578283fd5b61286e858286016124aa565b9250506125eb602084016123fc565b60006020828403121561288e578081fd5b81356001600160401b038111156128a3578182fd5b6116b984828501612514565b600081518084526128c7816020860160208601612d40565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806128f557607f831692505b602080841082141561291557634e487b7160e01b86526022600452602486fd5b818015612929576001811461293a57612967565b60ff19861689528489019650612967565b60008881526020902060005b8681101561295f5781548b820152908501908301612946565b505084890196505b50505050505092915050565b60008251612985818460208701612d40565b9190910192915050565b600061299b82866128db565b7868696464656e2d746f6b656e2d7572693f616464726573733d60381b815284516129cd816019840160208901612d40565b68266e6574776f726b3d60b81b6019929091019182015283516129f7816022840160208801612d40565b0160220195945050505050565b6000612a1082866128db565b74636f6e74726163742d7572693f616464726573733d60581b81528451612a3e816015840160208901612d40565b68266e6574776f726b3d60b81b601592909101918201528351612a6881601e840160208801612d40565b01601e0195945050505050565b6000612a8182876128db565b71746f6b656e2d7572693f616464726573733d60701b81528551612aac816012840160208a01612d40565b68266e6574776f726b3d60b81b601292909101918201528451612ad681601b840160208901612d40565b6826746f6b656e49643d60b81b601b92909101918201528351612b00816024840160208801612d40565b016024019695505050505050565b60008951612b20818460208e01612d40565b98151560f81b919098019081526001810196909652602186019490945260418501929092526061840152608183015260a182015260c10192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b90908301846128af565b9695505050505050565b602081526000611b8c60208301846128af565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60405161010081016001600160401b0381118282101715612ca857612ca8612e19565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612cd657612cd6612e19565b604052919050565b60008219821115612cf157612cf1612ded565b500190565b600082612d0557612d05612e03565b500490565b6000816000190483118215151615612d2457612d24612ded565b500290565b600082821015612d3b57612d3b612ded565b500390565b60005b83811015612d5b578181015183820152602001612d43565b83811115610c3c5750506000910152565b600081612d7b57612d7b612ded565b506000190190565b600181811c90821680612d9757607f821691505b60208210811415612db857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612dd257612dd2612ded565b5060010190565b600082612de857612de8612e03565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461156957600080fdfea264697066735822122061ca82ba26e92c52a61b547db4682b19a63c605b847aaba1962495fb710c0d5e64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000dc2b89fd2f87ef828b32e460908019a0d1f9bbd60000000000000000000000000000000000000000000000000000000000000000f19937722b82636525ecae227acdd99c118efb750dd7344e5394e1e285d771f7000000000000000000000000daa503bb46582a30cbbb8fa9ac2288744781cf1d000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000633d2b28000000000000000000000000000000000000000000000000000000000000000a444654584b41524153550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054446544b520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021687474703a2f2f35342e3135332e34392e3232333a333030312f6170692f76312f00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101c45760003560e01c80638da5cb5b116100f8578063c87b56dd11610090578063c87b56dd1461054f578063ca73e5e91461056f578063d9c79c1c1461058f578063dc9f75f7146105a2578063de53fcd5146105c2578063e8a3d485146105e2578063e985e9c5146105f7578063eaf3a58914610617578063f2fde38b1461062d57600080fd5b80638da5cb5b14610419578063931688cb1461042e57806395d89b411461044e5780639a953ea214610463578063a22cb46514610479578063ae5adfd214610499578063b88d4fde146104e1578063ba4cc74914610501578063ba829d711461053957600080fd5b806342842e0e1161016b57806342842e0e1461031957806361b5a2a2146103395780636352211e146103595780636c0360eb1461037957806370a082311461038e578063715018a6146103ae5780638028b285146103c357806380e73783146103e357806383699816146103f957600080fd5b8063018779c7146101c957806301ffc9a71461021957806306fdde0314610239578063081812fc1461025b578063095ea7b31461029357806317d70f7c146102b5578063210112f5146102d957806323b872dd146102f9575b600080fd5b3480156101d557600080fd5b506102046101e4366004612809565b8051602081830181018051600b8252928201919093012091525460ff1681565b60405190151581526020015b60405180910390f35b34801561022557600080fd5b506102046102343660046127d1565b61064d565b34801561024557600080fd5b5061024e61069f565b6040516102109190612b9a565b34801561026757600080fd5b5061027b6102763660046127b9565b610731565b6040516001600160a01b039091168152602001610210565b34801561029f57600080fd5b506102b36102ae3660046126bd565b6107be565b005b3480156102c157600080fd5b506102cb60075481565b604051908152602001610210565b3480156102e557600080fd5b506102b36102f43660046125a8565b6108cf565b34801561030557600080fd5b506102b36103143660046125f4565b610920565b34801561032557600080fd5b506102b36103343660046125f4565b610951565b34801561034557600080fd5b506102b36103543660046127b9565b61096c565b34801561036557600080fd5b5061027b6103743660046127b9565b6109a0565b34801561038557600080fd5b5061024e610a17565b34801561039a57600080fd5b506102cb6103a93660046125a8565b610aa5565b3480156103ba57600080fd5b506102b3610b2c565b3480156103cf57600080fd5b50600f5461027b906001600160a01b031681565b3480156103ef57600080fd5b506102cb60085481565b34801561040557600080fd5b506102b36104143660046127b9565b610b67565b34801561042557600080fd5b5061027b610b9b565b34801561043a57600080fd5b506102b3610449366004612809565b610baa565b34801561045a57600080fd5b5061024e610bf0565b34801561046f57600080fd5b506102cb600e5481565b34801561048557600080fd5b506102b3610494366004612694565b610bff565b3480156104a557600080fd5b506102cb6104b436600461283b565b8151602081840181018051600d825292820194820194909420919093529091526000908152604090205481565b3480156104ed57600080fd5b506102b36104fc36600461262f565b610c0a565b34801561050d57600080fd5b506102cb61051c366004612809565b8051602081830181018051600c8252928201919093012091525481565b34801561054557600080fd5b506102cb60115481565b34801561055b57600080fd5b5061024e61056a3660046127b9565b610c42565b34801561057b57600080fd5b506102cb61058a36600461287d565b610cce565b6102b361059d3660046126e6565b610d43565b3480156105ae57600080fd5b506102b36105bd3660046127b9565b61142c565b3480156105ce57600080fd5b5060095461027b906001600160a01b031681565b3480156105ee57600080fd5b5061024e611460565b34801561060357600080fd5b506102046106123660046125c2565b61149e565b34801561062357600080fd5b506102cb600a5481565b34801561063957600080fd5b506102b36106483660046125a8565b6114cc565b60006001600160e01b031982166380ac58cd60e01b148061067e57506001600160e01b03198216635b5e139f60e01b145b8061069957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546106ae90612d83565b80601f01602080910402602001604051908101604052809291908181526020018280546106da90612d83565b80156107275780601f106106fc57610100808354040283529160200191610727565b820191906000526020600020905b81548152906001019060200180831161070a57829003601f168201915b5050505050905090565b600061073c8261156c565b6107a25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107c9826109a0565b9050806001600160a01b0316836001600160a01b031614156108375760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610799565b336001600160a01b03821614806108535750610853813361149e565b6108c05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610799565b6108ca8383611589565b505050565b336108d8610b9b565b6001600160a01b0316146108fe5760405162461bcd60e51b815260040161079990612bff565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b61092a33826115f7565b6109465760405162461bcd60e51b815260040161079990612c34565b6108ca8383836116c1565b6108ca83838360405180602001604052806000815250610c0a565b33610975610b9b565b6001600160a01b03161461099b5760405162461bcd60e51b815260040161079990612bff565b600e55565b6000818152600360205260408120546001600160a01b0316806106995760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610799565b60108054610a2490612d83565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5090612d83565b8015610a9d5780601f10610a7257610100808354040283529160200191610a9d565b820191906000526020600020905b815481529060010190602001808311610a8057829003601f168201915b505050505081565b60006001600160a01b038216610b105760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610799565b506001600160a01b031660009081526004602052604090205490565b33610b35610b9b565b6001600160a01b031614610b5b5760405162461bcd60e51b815260040161079990612bff565b610b65600061185d565b565b33610b70610b9b565b6001600160a01b031614610b965760405162461bcd60e51b815260040161079990612bff565b600a55565b6000546001600160a01b031690565b33610bb3610b9b565b6001600160a01b031614610bd95760405162461bcd60e51b815260040161079990612bff565b8051610bec906010906020840190612363565b5050565b6060600280546106ae90612d83565b610bec3383836118ad565b610c1433836115f7565b610c305760405162461bcd60e51b815260040161079990612c34565b610c3c84848484611978565b50505050565b6060601154600014158015610c5957506011544211155b15610c9c576010610c6b3060146119ab565b610c7446611b93565b604051602001610c869392919061298f565b6040516020818303038152906040529050919050565b6010610ca93060146119ab565b610cb246611b93565b610cbb85611b93565b604051602001610c869493929190612a75565b80516020808301516040808501516060860151608087015160a088015160c089015160e08a01519551600099610d08999098979101612b0e565b60408051601f19818403018152828252805160209182012090830152015b604051602081830303815290604052805190602001209050919050565b85858583600854600a541415610d905760405162461bcd60e51b8152602060048201526012602482015271139bc81cd85b194818dbdb999a59dd5c995960721b6044820152606401610799565b610da584600a54610da084610cce565b611cac565b610de75760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053616c6520436f6e66696760681b6044820152606401610799565b8060200151610e2e5760405162461bcd60e51b815260206004820152601360248201527214d85b19481a5cc81b9bdd08195b98589b1959606a1b6044820152606401610799565b6040810151429015801590610e47575081604001518110155b610e8e5760405162461bcd60e51b815260206004820152601860248201527714d85b19481a185cc81b9bdd081cdd185c9d1959081e595d60421b6044820152606401610799565b816060015181111580610ea357506060820151155b610ee05760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a185cc8195b99195960921b6044820152606401610799565b828260800151610ef09190612d0a565b341015610f3f5760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f756768206d696e74206368617267652070726f7669646564006044820152606401610799565b8160e0015183600c8460000151604051610f599190612973565b908152602001604051809103902054610f729190612cde565b1115610fb95760405162461bcd60e51b81526020600482015260166024820152754d61782053616c65204c696d6974204578636565647360501b6044820152606401610799565b8160c0015183600d8460000151604051610fd39190612973565b90815260408051602092819003830190203360009081529252902054610ff99190612cde565b11156110475760405162461bcd60e51b815260206004820181905260248201527f4d61784d696e7450657257616c6c657453616c654c696d6974457863656564736044820152606401610799565b600e54156110b457600e548361105c33610aa5565b6110669190612cde565b11156110b45760405162461bcd60e51b815260206004820152601e60248201527f4d6178546f74616c4d696e7457616c6c65744c696d69744578636565647300006044820152606401610799565b6008548260a00151146111435760a08201516040516001600160601b03193360601b16602082015261110091869160340160405160208183030381529060405280519060200120611cac565b6111435760405162461bcd60e51b8152602060048201526014602482015273155cd95c881b9bdd081dda1a5d195b1a5cdd195960621b6044820152606401610799565b8787600b816040516111559190612973565b9081526040519081900360200190205460ff16156111b25760405162461bcd60e51b815260206004820152601a60248201527914da59db985d1d5c9948185b1c9958591e481c995919595b595960321b6044820152606401610799565b600f546040516001600160a01b03909116906111fd9083906111f7906111dc908790602001612973565b60405160208183030381529060405280519060200120611cc2565b90611cfd565b6001600160a01b0316146112475760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b6044820152606401610799565b60008b1161128e5760405162461bcd60e51b815260206004820152601460248201527304e756d626572206f66206d696e747320697320360641b6044820152606401610799565b60005b8b8110156112c0576112b033826007546112ab9190612cde565b611d21565b6112b981612dbe565b9050611291565b508a6007546112cf9190612cde565b60075587516040518c91600d916112e69190612973565b9081526040805160209281900383019020336000908152925281208054909190611311908490612cde565b909155505087516040518c91600c9161132a9190612973565b908152602001604051809103902060008282546113479190612cde565b925050819055506001600b8a6040516113609190612973565b908152604051908190036020018120805492151560ff19909316929092179091556009546001600160a01b0316903480156108fc02916000818181858888f193505050501580156113b5573d6000803e3d6000fd5b507f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f338c6007546113e69190612d29565b60016007546113f59190612d29565b604080516001600160a01b03909416845260208401929092529082015260600160405180910390a150505050505050505050505050565b33611435610b9b565b6001600160a01b03161461145b5760405162461bcd60e51b815260040161079990612bff565b601155565b6060601061146f3060146119ab565b61147846611b93565b60405160200161148a93929190612a04565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b336114d5610b9b565b6001600160a01b0316146114fb5760405162461bcd60e51b815260040161079990612bff565b6001600160a01b0381166115605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610799565b6115698161185d565b50565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115be826109a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116028261156c565b6116635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610799565b600061166e836109a0565b9050806001600160a01b0316846001600160a01b031614806116955750611695818561149e565b806116b95750836001600160a01b03166116ae84610731565b6001600160a01b0316145b949350505050565b826001600160a01b03166116d4826109a0565b6001600160a01b0316146117385760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610799565b6001600160a01b03821661179a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610799565b6117a5600082611589565b6001600160a01b03831660009081526004602052604081208054600192906117ce908490612d29565b90915550506001600160a01b03821660009081526004602052604081208054600192906117fc908490612cde565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316141561190b5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610799565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6119838484846116c1565b61198f84848484611e54565b610c3c5760405162461bcd60e51b815260040161079990612bad565b606060006119ba836002612d0a565b6119c5906002612cde565b6001600160401b038111156119ea57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a14576020820181803683370190505b509050600360fc1b81600081518110611a3d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611a7a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611a9e846002612d0a565b611aa9906001612cde565b90505b6001811115611b3d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611aeb57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611b0f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611b3681612d6c565b9050611aac565b508315611b8c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610799565b9392505050565b606081611bb75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611be15780611bcb81612dbe565b9150611bda9050600a83612cf6565b9150611bbb565b6000816001600160401b03811115611c0957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c33576020820181803683370190505b5090505b84156116b957611c48600183612d29565b9150611c55600a86612dd9565b611c60906030612cde565b60f81b818381518110611c8357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ca5600a86612cf6565b9450611c37565b600082611cb98584611f61565b14949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01610d26565b6000806000611d0c8585611fdb565b91509150611d198161204b565b509392505050565b6001600160a01b038216611d775760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610799565b611d808161156c565b15611dcd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610799565b6001600160a01b0382166000908152600460205260408120805460019290611df6908490612cde565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611f5657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e98903390899088908890600401612b5d565b602060405180830381600087803b158015611eb257600080fd5b505af1925050508015611ee2575060408051601f3d908101601f19168201909252611edf918101906127ed565b60015b611f3c573d808015611f10576040519150601f19603f3d011682016040523d82523d6000602084013e611f15565b606091505b508051611f345760405162461bcd60e51b815260040161079990612bad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116b9565b506001949350505050565b600081815b8451811015611d19576000858281518110611f9157634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311611fb75760008381526020829052604090209250611fc8565b600081815260208490526040902092505b5080611fd381612dbe565b915050611f66565b6000808251604114156120125760208301516040840151606085015160001a61200687828585612247565b94509450505050612044565b82516040141561203c576020830151604084015161203186838361232a565b935093505050612044565b506000905060025b9250929050565b600081600481111561206d57634e487b7160e01b600052602160045260246000fd5b14156120765750565b600181600481111561209857634e487b7160e01b600052602160045260246000fd5b14156120e15760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610799565b600281600481111561210357634e487b7160e01b600052602160045260246000fd5b14156121515760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610799565b600381600481111561217357634e487b7160e01b600052602160045260246000fd5b14156121cc5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610799565b60048160048111156121ee57634e487b7160e01b600052602160045260246000fd5b14156115695760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610799565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b038311156122745750600090506003612321565b8460ff16601b1415801561228c57508460ff16601c14155b1561229d5750600090506004612321565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156122f1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661231a57600060019250925050612321565b9150600090505b94509492505050565b6000806001600160ff1b0383168161234760ff86901c601b612cde565b905061235587828885612247565b935093505050935093915050565b82805461236f90612d83565b90600052602060002090601f01602090048101928261239157600085556123d7565b82601f106123aa57805160ff19168380011785556123d7565b828001600101855582156123d7579182015b828111156123d75782518255916020019190600101906123bc565b506123e39291506123e7565b5090565b5b808211156123e357600081556001016123e8565b80356001600160a01b038116811461241357600080fd5b919050565b600082601f830112612428578081fd5b813560206001600160401b0382111561244357612443612e19565b8160051b612452828201612cae565b83815282810190868401838801850189101561246c578687fd5b8693505b8584101561248e578035835260019390930192918401918401612470565b50979650505050505050565b8035801515811461241357600080fd5b600082601f8301126124ba578081fd5b81356001600160401b038111156124d3576124d3612e19565b6124e6601f8201601f1916602001612cae565b8181528460208386010111156124fa578283fd5b816020850160208301379081016020019190915292915050565b60006101008284031215612526578081fd5b61252e612c85565b905081356001600160401b0381111561254657600080fd5b612552848285016124aa565b8252506125616020830161249a565b602082015260408201356040820152606082013560608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e082015292915050565b6000602082840312156125b9578081fd5b611b8c826123fc565b600080604083850312156125d4578081fd5b6125dd836123fc565b91506125eb602084016123fc565b90509250929050565b600080600060608486031215612608578081fd5b612611846123fc565b925061261f602085016123fc565b9150604084013590509250925092565b60008060008060808587031215612644578081fd5b61264d856123fc565b935061265b602086016123fc565b92506040850135915060608501356001600160401b0381111561267c578182fd5b612688878288016124aa565b91505092959194509250565b600080604083850312156126a6578182fd5b6126af836123fc565b91506125eb6020840161249a565b600080604083850312156126cf578182fd5b6126d8836123fc565b946020939093013593505050565b60008060008060008060c087890312156126fe578182fd5b86356001600160401b0380821115612714578384fd5b6127208a838b01612418565b97506020890135915080821115612735578384fd5b6127418a838b01612418565b965060408901359550606089013591508082111561275d578384fd5b6127698a838b016124aa565b9450608089013591508082111561277e578384fd5b61278a8a838b016124aa565b935060a089013591508082111561279f578283fd5b506127ac89828a01612514565b9150509295509295509295565b6000602082840312156127ca578081fd5b5035919050565b6000602082840312156127e2578081fd5b8135611b8c81612e2f565b6000602082840312156127fe578081fd5b8151611b8c81612e2f565b60006020828403121561281a578081fd5b81356001600160401b0381111561282f578182fd5b6116b9848285016124aa565b6000806040838503121561284d578182fd5b82356001600160401b03811115612862578283fd5b61286e858286016124aa565b9250506125eb602084016123fc565b60006020828403121561288e578081fd5b81356001600160401b038111156128a3578182fd5b6116b984828501612514565b600081518084526128c7816020860160208601612d40565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806128f557607f831692505b602080841082141561291557634e487b7160e01b86526022600452602486fd5b818015612929576001811461293a57612967565b60ff19861689528489019650612967565b60008881526020902060005b8681101561295f5781548b820152908501908301612946565b505084890196505b50505050505092915050565b60008251612985818460208701612d40565b9190910192915050565b600061299b82866128db565b7868696464656e2d746f6b656e2d7572693f616464726573733d60381b815284516129cd816019840160208901612d40565b68266e6574776f726b3d60b81b6019929091019182015283516129f7816022840160208801612d40565b0160220195945050505050565b6000612a1082866128db565b74636f6e74726163742d7572693f616464726573733d60581b81528451612a3e816015840160208901612d40565b68266e6574776f726b3d60b81b601592909101918201528351612a6881601e840160208801612d40565b01601e0195945050505050565b6000612a8182876128db565b71746f6b656e2d7572693f616464726573733d60701b81528551612aac816012840160208a01612d40565b68266e6574776f726b3d60b81b601292909101918201528451612ad681601b840160208901612d40565b6826746f6b656e49643d60b81b601b92909101918201528351612b00816024840160208801612d40565b016024019695505050505050565b60008951612b20818460208e01612d40565b98151560f81b919098019081526001810196909652602186019490945260418501929092526061840152608183015260a182015260c10192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b90908301846128af565b9695505050505050565b602081526000611b8c60208301846128af565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60405161010081016001600160401b0381118282101715612ca857612ca8612e19565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612cd657612cd6612e19565b604052919050565b60008219821115612cf157612cf1612ded565b500190565b600082612d0557612d05612e03565b500490565b6000816000190483118215151615612d2457612d24612ded565b500290565b600082821015612d3b57612d3b612ded565b500390565b60005b83811015612d5b578181015183820152602001612d43565b83811115610c3c5750506000910152565b600081612d7b57612d7b612ded565b506000190190565b600181811c90821680612d9757607f821691505b60208210811415612db857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612dd257612dd2612ded565b5060010190565b600082612de857612de8612e03565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461156957600080fdfea264697066735822122061ca82ba26e92c52a61b547db4682b19a63c605b847aaba1962495fb710c0d5e64736f6c63430008040033

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.