ETH Price: $3,505.36 (+2.82%)

Token

Sneged (Sneged)
 

Overview

Max Total Supply

2,291 Sneged

Holders

1,203

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 Sneged
0x882c8049f8c023767d2310db6bb30dfaca596250
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Sneged

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 16 : Sneged.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./utils/ERC721Enumerable.sol";
import "./utils/OpenSea.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract Sneged is ERC721Enumerable, Ownable, ReentrancyGuard {
    using Strings for uint256;

    string private _baseTokenURI;
    string private _tokenURISuffix;

    address payable internal team =
        payable(0x11c965C6cFb836D76ef9BcEaA4aB7E3873ea7bC7);
    address payable internal dev =
        payable(0x19C5B892f2c742AA1FC8452390cbe7Abf39b836d);

    uint256 public constant MINT_COST = 0.0199 ether;
    uint256 public MAX_SUPPLY = 9999;
    uint256 public MAX_PUBLIC = 4000;
    uint256 public MAX_PER_WLT = 5;
    uint256 public RESERVED_SUPPLY = 1700;
    uint256 public freeTokensMinted = 0;
    uint256 public publicTokens = 0;
    string private _preReveal =
        "ipfs://QmdTnCXopKcidLt5zemvXkv6nudUfSV1ZdnoDV2EfQkBYv";

    bytes32 public merkleRoot;

    bool public isPublic;
    bool public isPresale;

    mapping(address => uint256) public addressToMinted;

    constructor() ERC721("Sneged", "Sneged") {}

    function mint(uint256 count) external payable nonReentrant {
        require(isPublic, "Wait for public sale");
        require(
            addressToMinted[msg.sender] + count <= MAX_PER_WLT,
            "Exceeds limit per wallet"
        );
        addressToMinted[msg.sender] += count;
        uint256 supply = _owners.length;
        publicTokens += count;
        uint256 maxSupply = MAX_SUPPLY - (RESERVED_SUPPLY - freeTokensMinted);

        require(publicTokens <= MAX_PUBLIC, "Max public supply reached");
        require(supply + count < maxSupply + 2, "Max supply reached");
        require(MINT_COST * count <= msg.value, "Invalid funds provided");
        for (uint256 i; i < count; i++) {
            _safeMint(msg.sender, supply++);
        }
    }

    function presaleMint(
        bool freeRoot,
        uint256 count,
        bytes32[] calldata proof
    ) external payable nonReentrant {
        require(isPresale, "Wait for presale");

        bytes32 leaf = keccak256(abi.encodePacked(freeRoot, msg.sender));
        require(_verify(leaf, proof), "Invalid proof");
        require(
            addressToMinted[msg.sender] + count <= MAX_PER_WLT,
            "Exceeds your allowance"
        );

        bool hasFreeMint = freeRoot &&
            addressToMinted[msg.sender] == 0 &&
            freeTokensMinted < RESERVED_SUPPLY;
        if (hasFreeMint) freeTokensMinted++;
        uint256 maxSupply = MAX_SUPPLY - (RESERVED_SUPPLY - freeTokensMinted);

        uint256 supply = _owners.length;
        string memory errMsg = "Max supply reached";
        if (supply + 1 < maxSupply + 2) errMsg = "Only free mints left";
        require(supply + count < maxSupply + 2, errMsg);

        uint256 payedMints = hasFreeMint ? count - 1 : count;

        addressToMinted[msg.sender] += count;
        string memory fundMsg = "Invalid funds provided";
        if (freeTokensMinted >= RESERVED_SUPPLY)
            fundMsg = "Invalid funds (free supply exhausted)";
        require(MINT_COST * payedMints <= msg.value, fundMsg);

        for (uint256 i; i < count; i++) {
            _safeMint(msg.sender, supply++);
        }
    }

    function _verify(bytes32 leaf, bytes32[] memory proof)
        internal
        view
        returns (bool)
    {
        return MerkleProof.verify(proof, merkleRoot, leaf);
    }

    function tokenURI(uint256 tokenId)
        external
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        return
            bytes(_baseTokenURI).length > 0
                ? string(
                    abi.encodePacked(
                        _baseTokenURI,
                        tokenId.toString(),
                        _tokenURISuffix
                    )
                )
                : _preReveal;
    }

    function toggleSales() external onlyOwner {
        isPublic = !isPublic;
        isPresale = !isPresale;
    }

    function togglePresale() external onlyOwner {
        isPresale = !isPresale;
    }

    function togglePublicSale() external onlyOwner {
        isPublic = !isPublic;
    }

    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function setMaxSupply(uint256 maxSupply) external onlyOwner {
        require(maxSupply < MAX_SUPPLY, "New value must be < MAX_SUPPLY");
        MAX_SUPPLY = maxSupply;
    }

    function setBaseURI(string calldata _newBaseURI, string calldata _newSuffix)
        external
        onlyOwner
    {
        _baseTokenURI = _newBaseURI;
        _tokenURISuffix = _newSuffix;
    }

    function setPreReveal(string calldata _newPreReveal) external onlyOwner {
        _preReveal = _newPreReveal;
    }

    function airdrop(uint256[] calldata quantity, address[] calldata recipient)
        external
        onlyOwner
    {
        require(
            quantity.length == recipient.length,
            "Quantity length is not equal to recipients"
        );

        uint256 totalQuantity;
        for (uint256 i; i < quantity.length; ++i) {
            totalQuantity += quantity[i];
        }

        uint256 supply = _owners.length;
        require(supply + totalQuantity < MAX_SUPPLY + 2, "Max supply reached");

        delete totalQuantity;

        for (uint256 i; i < recipient.length; ++i) {
            for (uint256 j; j < quantity[i]; ++j) {
                _safeMint(recipient[i], supply++);
            }
        }
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        override(ERC721, IERC721)
        returns (bool)
    {
        return
            OpenSeaGasFreeListing.isApprovedForAll(owner, operator) ||
            super.isApprovedForAll(owner, operator);
    }

    function withdrawFunds() external virtual onlyOwner {
        uint256 devPart = (address(this).balance * 3) / 40; //7.5%
        dev.transfer(devPart);
        team.transfer(address(this).balance);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 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 5 of 16 : 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 6 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 7 of 16 : 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 8 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 10 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // 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);
    }

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

File 11 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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 Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(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++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 12 of 16 : 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 13 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 14 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    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_;
        _owners.push(address(0));
    }

    /**
     * @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"
        );

        uint256 count;
        for (uint256 i; i < _owners.length; ++i) {
            if (owner == _owners[i]) ++count;
        }
        return count;
    }

    /**
     * @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 {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
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 tokenId < _owners.length && _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 ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, 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);
        _owners.push(to);

        emit Transfer(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);
        _owners[tokenId] = address(0);

        emit Transfer(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 of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(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 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 {}
}

File 15 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721)
        returns (bool)
    {
        return
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _owners.length - 1;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            index < _owners.length,
            "ERC721Enumerable: global index out of bounds"
        );
        return index;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        virtual
        override
        returns (uint256 tokenId)
    {
        require(
            index < balanceOf(owner),
            "ERC721Enumerable: owner index out of bounds"
        );

        uint256 count;
        for (uint256 i; i < _owners.length; i++) {
            if (owner == _owners[i]) {
                if (count == index) return i;
                else count++;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }
}

File 16 of 16 : OpenSea.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

library OpenSeaGasFreeListing {
    /**
    @notice Returns whether the operator is an OpenSea proxy for the owner, thus
    allowing it to list without the token owner paying gas.
    @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if
    this function returns true.
     */
    function isApprovedForAll(address owner, address operator)
        internal
        view
        returns (bool)
    {
        ProxyRegistry registry;
        assembly {
            switch chainid()
            case 1 {
                // mainnet
                registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1
            }
            case 4 {
                // rinkeby
                registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317
            }
        }

        return
            address(registry) != address(0) &&
            address(registry.proxies(owner)) == operator;
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "details": {
      "constantOptimizer": true,
      "cse": true,
      "deduplicate": true,
      "inliner": true,
      "jumpdestRemover": true,
      "orderLiterals": true,
      "peephole": true,
      "yul": false
    },
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":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":[],"name":"MAX_PER_WLT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":[{"internalType":"bool","name":"freeRoot","type":"bool"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"},{"internalType":"string","name":"_newSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newPreReveal","type":"string"}],"name":"setPreReveal","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":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":[],"name":"totalSupply","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600980546001600160a01b03199081167311c965c6cfb836d76ef9bceaa4ab7e3873ea7bc717909155600a80549091167319c5b892f2c742aa1fc8452390cbe7abf39b836d17905561270f600b55610fa0600c556005600d556106a4600e556000600f81905560105560e060405260356080818152906200318a60a03980516200009291601191602090910190620001a3565b50348015620000a057600080fd5b5060408051808201825260068082526514db9959d95960d21b602080840182815285518087019096529285528401528151919291620000e291600091620001a3565b508051620000f8906001906020840190620001a3565b5050600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b031916905550620001463362000151565b600160065562000290565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b1906200025f565b90600052602060002090601f016020900481019282620001d5576000855562000220565b82601f10620001f057805160ff191683800117855562000220565b8280016001018555821562000220579182015b828111156200022057825182559160200191906001019062000203565b506200022e92915062000232565b5090565b5b808211156200022e576000815560010162000233565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200027457607f821691505b602082108114156200028a576200028a62000249565b50919050565b612eea80620002a06000396000f3fe6080604052600436106102465760003560e01c8063715018a611610139578063b88d4fde116100b6578063dc9a15351161007a578063dc9a15351461064c578063e222c7f914610666578063e985e9c51461067b578063f2fde38b1461069b578063f5112ef9146106bb578063f577a5d0146106db57600080fd5b8063b88d4fde146105c6578063c662e481146105e6578063c87b56dd14610601578063dbcaa52c14610621578063dbd30ae01461063757600080fd5b806395d89b41116100fd57806395d89b411461053b5780639753eac0146105505780639ec00c9514610566578063a0712d6814610593578063a22cb465146105a657600080fd5b8063715018a6146104b357806379a6ff31146104c85780637cb64759146104de5780638da5cb5b146104fe57806395364a841461051c57600080fd5b806331a53e9a116101c75780636352211e1161018b5780636352211e146104135780636673c4c2146104335780636790a9de146104535780636f8b44b01461047357806370a082311461049357600080fd5b806331a53e9a1461039257806332cb6b0c146103a857806334393743146103be57806342842e0e146103d35780634f6ccce7146103f357600080fd5b806323b872dd1161020e57806323b872dd1461031457806324600fc3146103345780632eb4a7ab146103495780632f745c591461035f5780632f9cdf901461037f57600080fd5b806301ffc9a71461024b57806306fdde0314610281578063081812fc146102a3578063095ea7b3146102d057806318160ddd146102f2575b600080fd5b34801561025757600080fd5b5061026b610266366004611d0b565b6106f1565b6040516102789190611d36565b60405180910390f35b34801561028d57600080fd5b5061029661071c565b6040516102789190611da2565b3480156102af57600080fd5b506102c36102be366004611dc4565b6107ae565b6040516102789190611dff565b3480156102dc57600080fd5b506102f06102eb366004611e21565b6107fa565b005b3480156102fe57600080fd5b50610307610880565b6040516102789190611e64565b34801561032057600080fd5b506102f061032f366004611e72565b610897565b34801561034057600080fd5b506102f06108c8565b34801561035557600080fd5b5061030760125481565b34801561036b57600080fd5b5061030761037a366004611e21565b610962565b6102f061038d366004611f27565b610a15565b34801561039e57600080fd5b50610307600e5481565b3480156103b457600080fd5b50610307600b5481565b3480156103ca57600080fd5b506102f0610d4d565b3480156103df57600080fd5b506102f06103ee366004611e72565b610d72565b3480156103ff57600080fd5b5061030761040e366004611dc4565b610d8d565b34801561041f57600080fd5b506102c361042e366004611dc4565b610db5565b34801561043f57600080fd5b506102f061044e366004611f95565b610dff565b34801561045f57600080fd5b506102f061046e366004612041565b610f3a565b34801561047f57600080fd5b506102f061048e366004611dc4565b610f62565b34801561049f57600080fd5b506103076104ae3660046120ae565b610f90565b3480156104bf57600080fd5b506102f061101b565b3480156104d457600080fd5b50610307600d5481565b3480156104ea57600080fd5b506102f06104f9366004611dc4565b61102f565b34801561050a57600080fd5b506005546001600160a01b03166102c3565b34801561052857600080fd5b5060135461026b90610100900460ff1681565b34801561054757600080fd5b5061029661103c565b34801561055c57600080fd5b50610307600c5481565b34801561057257600080fd5b506103076105813660046120ae565b60146020526000908152604090205481565b6102f06105a1366004611dc4565b61104b565b3480156105b257600080fd5b506102f06105c13660046120cf565b6111ef565b3480156105d257600080fd5b506102f06105e13660046121f5565b611287565b3480156105f257600080fd5b506103076646b2f1cf07c00081565b34801561060d57600080fd5b5061029661061c366004611dc4565b6112bf565b34801561062d57600080fd5b50610307600f5481565b34801561064357600080fd5b506102f06113c0565b34801561065857600080fd5b5060135461026b9060ff1681565b34801561067257600080fd5b506102f06113fc565b34801561068757600080fd5b5061026b610696366004612274565b611418565b3480156106a757600080fd5b506102f06106b63660046120ae565b61145b565b3480156106c757600080fd5b506102f06106d63660046122a7565b611495565b3480156106e757600080fd5b5061030760105481565b60006001600160e01b0319821663780e9d6360e01b14806107165750610716826114a9565b92915050565b60606000805461072b90612305565b80601f016020809104026020016040519081016040528092919081815260200182805461075790612305565b80156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b9826114f9565b6107de5760405162461bcd60e51b81526004016107d59061237e565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061080582610db5565b9050806001600160a01b0316836001600160a01b031614156108395760405162461bcd60e51b81526004016107d5906123cc565b336001600160a01b038216148061085557506108558133611418565b6108715760405162461bcd60e51b81526004016107d590612436565b61087b8383611543565b505050565b6002546000906108929060019061245c565b905090565b6108a133826115b1565b6108bd5760405162461bcd60e51b81526004016107d5906124c1565b61087b838383611636565b6108d061170e565b600060286108df4760036124d1565b6108e99190612506565b600a546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610924573d6000803e3d6000fd5b506009546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505015801561095e573d6000803e3d6000fd5b5050565b600061096d83610f90565b821061098b5760405162461bcd60e51b81526004016107d590612562565b6000805b6002548110156109fc57600281815481106109ac576109ac612572565b6000918252602090912001546001600160a01b03868116911614156109ea57838214156109dc5791506107169050565b816109e681612588565b9250505b806109f481612588565b91505061098f565b5060405162461bcd60e51b81526004016107d590612562565b60026006541415610a385760405162461bcd60e51b81526004016107d5906125da565b6002600655601354610100900460ff16610a645760405162461bcd60e51b81526004016107d590612611565b60008433604051602001610a7992919061266b565b604051602081830303815290604052805190602001209050610ace8184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061173892505050565b610aea5760405162461bcd60e51b81526004016107d5906126b5565b600d5433600090815260146020526040902054610b089086906126c5565b1115610b265760405162461bcd60e51b81526004016107d59061270a565b6000858015610b42575033600090815260146020526040902054155b8015610b515750600e54600f54105b90508015610b6f57600f8054906000610b6983612588565b91905055505b6000600f54600e54610b81919061245c565b600b54610b8e919061245c565b6002805460408051808201909152601281527113585e081cdd5c1c1b1e481c995858da195960721b60208201529293509190610bcb9084906126c5565b610bd68360016126c5565b1015610c09575060408051808201909152601481527313db9b1e48199c9959481b5a5b9d1cc81b19599d60621b60208201525b610c148360026126c5565b610c1e89846126c5565b108190610c3e5760405162461bcd60e51b81526004016107d59190611da2565b50600084610c4c5788610c57565b610c5760018a61245c565b33600090815260146020526040812080549293508b92909190610c7b9084906126c5565b9091555050604080518082019091526016815275125b9d985b1a5908199d5b991cc81c1c9bdd9a59195960521b6020820152600e54600f5410610cd457604051806060016040528060258152602001612e906025913990505b34610ce6836646b2f1cf07c0006124d1565b11158190610d075760405162461bcd60e51b81526004016107d59190611da2565b5060005b8a811015610d3a57610d283386610d2181612588565b9750611747565b80610d3281612588565b915050610d0b565b5050600160065550505050505050505050565b610d5561170e565b6013805461ff001981166101009182900460ff1615909102179055565b61087b83838360405180602001604052806000815250611287565b6002546000908210610db15760405162461bcd60e51b81526004016107d590612763565b5090565b60008060028381548110610dcb57610dcb612572565b6000918252602090912001546001600160a01b03169050806107165760405162461bcd60e51b81526004016107d5906127b9565b610e0761170e565b828114610e265760405162461bcd60e51b81526004016107d590612810565b6000805b84811015610e6857858582818110610e4457610e44612572565b9050602002013582610e5691906126c5565b9150610e6181612588565b9050610e2a565b5060028054600b549091610e7c91906126c5565b610e8683836126c5565b10610ea35760405162461bcd60e51b81526004016107d590612849565b6000915060005b83811015610f315760005b878783818110610ec757610ec7612572565b90506020020135811015610f2057610f10868684818110610eea57610eea612572565b9050602002016020810190610eff91906120ae565b84610f0981612588565b9550611747565b610f1981612588565b9050610eb5565b50610f2a81612588565b9050610eaa565b50505050505050565b610f4261170e565b610f4e60078585611c59565b50610f5b60088383611c59565b5050505050565b610f6a61170e565b600b548110610f8b5760405162461bcd60e51b81526004016107d59061288d565b600b55565b60006001600160a01b038216610fb85760405162461bcd60e51b81526004016107d5906128e4565b6000805b6002548110156110145760028181548110610fd957610fd9612572565b6000918252602090912001546001600160a01b03858116911614156110045761100182612588565b91505b61100d81612588565b9050610fbc565b5092915050565b61102361170e565b61102d6000611761565b565b61103761170e565b601255565b60606001805461072b90612305565b6002600654141561106e5760405162461bcd60e51b81526004016107d5906125da565b600260065560135460ff166110955760405162461bcd60e51b81526004016107d59061291f565b600d54336000908152601460205260409020546110b39083906126c5565b11156110d15760405162461bcd60e51b81526004016107d590612963565b33600090815260146020526040812080548392906110f09084906126c5565b90915550506002546010805483919060009061110d9084906126c5565b9091555050600f54600e546000916111249161245c565b600b54611131919061245c565b9050600c5460105411156111575760405162461bcd60e51b81526004016107d5906129a7565b6111628160026126c5565b61116c84846126c5565b106111895760405162461bcd60e51b81526004016107d590612849565b3461119b846646b2f1cf07c0006124d1565b11156111b95760405162461bcd60e51b81526004016107d5906129e4565b60005b838110156111e4576111d23384610f0981612588565b806111dc81612588565b9150506111bc565b505060016006555050565b6001600160a01b0382163314156112185760405162461bcd60e51b81526004016107d590612a28565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061127b908590611d36565b60405180910390a35050565b61129133836115b1565b6112ad5760405162461bcd60e51b81526004016107d5906124c1565b6112b9848484846117b3565b50505050565b60606112ca826114f9565b6112e65760405162461bcd60e51b81526004016107d590612a84565b6000600780546112f590612305565b90501161138c576011805461130990612305565b80601f016020809104026020016040519081016040528092919081815260200182805461133590612305565b80156113825780601f1061135757610100808354040283529160200191611382565b820191906000526020600020905b81548152906001019060200180831161136557829003601f168201915b5050505050610716565b6007611397836117e6565b60086040516020016113ab93929190612b24565b60405160208183030381529060405292915050565b6113c861170e565b6013805461010060ff19821660ff80841615918217839004161590910261ff001990911661ffff1990921691909117179055565b61140461170e565b6013805460ff19811660ff90911615179055565b600061142483836118e4565b8061145457506001600160a01b0380841660009081526004602090815260408083209386168352929052205460ff165b9392505050565b61146361170e565b6001600160a01b0381166114895760405162461bcd60e51b81526004016107d590612b94565b61149281611761565b50565b61149d61170e565b61087b60118383611c59565b60006001600160e01b031982166380ac58cd60e01b14806114da57506001600160e01b03198216635b5e139f60e01b145b8061071657506301ffc9a760e01b6001600160e01b0319831614610716565b60025460009082108015610716575060006001600160a01b03166002838154811061152657611526612572565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061157882610db5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006115bc826114f9565b6115d85760405162461bcd60e51b81526004016107d590612bed565b60006115e383610db5565b9050806001600160a01b0316846001600160a01b0316148061161e5750836001600160a01b0316611613846107ae565b6001600160a01b0316145b8061162e575061162e8185611418565b949350505050565b826001600160a01b031661164982610db5565b6001600160a01b03161461166f5760405162461bcd60e51b81526004016107d590612c43565b6001600160a01b0382166116955760405162461bcd60e51b81526004016107d590612c94565b6116a0600082611543565b81600282815481106116b4576116b4612572565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6005546001600160a01b0316331461102d5760405162461bcd60e51b81526004016107d590612cd6565b600061145482601254856119ce565b61095e8282604051806020016040528060008152506119e4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6117be848484611636565b6117ca84848484611a17565b6112b95760405162461bcd60e51b81526004016107d590612d35565b60608161180a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611834578061181e81612588565b915061182d9050600a83612506565b915061180e565b60008167ffffffffffffffff81111561184f5761184f612102565b6040519080825280601f01601f191660200182016040528015611879576020820181803683370190505b5090505b841561162e5761188e60018361245c565b915061189b600a86612d45565b6118a69060306126c5565b60f81b8183815181106118bb576118bb612572565b60200101906001600160f81b031916908160001a9053506118dd600a86612506565b945061187d565b60008046600181146118fd576004811461191957611931565b73a5409ec958c83c3f309868babaca7c86dcb077c19150611931565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b0381161580159061162e5750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b815260040161197b9190611dff565b602060405180830381865afa158015611998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119bc9190612d78565b6001600160a01b031614949350505050565b6000826119db8584611b15565b14949350505050565b6119ee8383611b62565b6119fb6000848484611a17565b61087b5760405162461bcd60e51b81526004016107d590612d35565b60006001600160a01b0384163b15611b0a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a5b903390899088908890600401612d99565b6020604051808303816000875af1925050508015611a96575060408051601f3d908101601f19168201909252611a9391810190612de8565b60015b611af0573d808015611ac4576040519150601f19603f3d011682016040523d82523d6000602084013e611ac9565b606091505b508051611ae85760405162461bcd60e51b81526004016107d590612d35565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061162e565b506001949350505050565b600081815b8451811015611b5a57611b4682868381518110611b3957611b39612572565b6020026020010151611c2a565b915080611b5281612588565b915050611b1a565b509392505050565b6001600160a01b038216611b885760405162461bcd60e51b81526004016107d590612e3b565b611b91816114f9565b15611bae5760405162461bcd60e51b81526004016107d590612e7f565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611c46576000828152602084905260409020611454565b6000838152602083905260409020611454565b828054611c6590612305565b90600052602060002090601f016020900481019282611c875760008555611ccd565b82601f10611ca05782800160ff19823516178555611ccd565b82800160010185558215611ccd579182015b82811115611ccd578235825591602001919060010190611cb2565b50610db19291505b80821115610db15760008155600101611cd5565b6001600160e01b031981165b811461149257600080fd5b803561071681611ce9565b600060208284031215611d2057611d20600080fd5b600061162e8484611d00565b8015155b82525050565b602081016107168284611d2c565b60005b83811015611d5f578181015183820152602001611d47565b838111156112b95750506000910152565b6000611d7a825190565b808452602084019350611d91818560208601611d44565b601f01601f19169290920192915050565b602080825281016114548184611d70565b80611cf5565b803561071681611db3565b600060208284031215611dd957611dd9600080fd5b600061162e8484611db9565b60006001600160a01b038216610716565b611d3081611de5565b602081016107168284611df6565b611cf581611de5565b803561071681611e0d565b60008060408385031215611e3757611e37600080fd5b6000611e438585611e16565b9250506020611e5485828601611db9565b9150509250929050565b80611d30565b602081016107168284611e5e565b600080600060608486031215611e8a57611e8a600080fd5b6000611e968686611e16565b9350506020611ea786828701611e16565b9250506040611eb886828701611db9565b9150509250925092565b801515611cf5565b803561071681611ec2565b60008083601f840112611eea57611eea600080fd5b50813567ffffffffffffffff811115611f0557611f05600080fd5b602083019150836020820283011115611f2057611f20600080fd5b9250929050565b60008060008060608587031215611f4057611f40600080fd5b6000611f4c8787611eca565b9450506020611f5d87828801611db9565b935050604085013567ffffffffffffffff811115611f7d57611f7d600080fd5b611f8987828801611ed5565b95989497509550505050565b60008060008060408587031215611fae57611fae600080fd5b843567ffffffffffffffff811115611fc857611fc8600080fd5b611fd487828801611ed5565b9450945050602085013567ffffffffffffffff811115611f7d57611f7d600080fd5b60008083601f84011261200b5761200b600080fd5b50813567ffffffffffffffff81111561202657612026600080fd5b602083019150836001820283011115611f2057611f20600080fd5b6000806000806040858703121561205a5761205a600080fd5b843567ffffffffffffffff81111561207457612074600080fd5b61208087828801611ff6565b9450945050602085013567ffffffffffffffff8111156120a2576120a2600080fd5b611f8987828801611ff6565b6000602082840312156120c3576120c3600080fd5b600061162e8484611e16565b600080604083850312156120e5576120e5600080fd5b60006120f18585611e16565b9250506020611e5485828601611eca565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561213e5761213e612102565b6040525050565b600061215060405190565b905061215c8282612118565b919050565b600067ffffffffffffffff82111561217b5761217b612102565b601f19601f83011660200192915050565b82818337506000910152565b60006121ab6121a684612161565b612145565b9050828152602081018484840111156121c6576121c6600080fd5b611b5a84828561218c565b600082601f8301126121e5576121e5600080fd5b813561162e848260208601612198565b6000806000806080858703121561220e5761220e600080fd5b600061221a8787611e16565b945050602061222b87828801611e16565b935050604061223c87828801611db9565b925050606085013567ffffffffffffffff81111561225c5761225c600080fd5b612268878288016121d1565b91505092959194509250565b6000806040838503121561228a5761228a600080fd5b60006122968585611e16565b9250506020611e5485828601611e16565b600080602083850312156122bd576122bd600080fd5b823567ffffffffffffffff8111156122d7576122d7600080fd5b6122e385828601611ff6565b92509250509250929050565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061231957607f821691505b6020821081141561232c5761232c6122ef565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b6020808252810161071681612332565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150612377565b602080825281016107168161238e565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150612377565b60208082528101610716816123dc565b634e487b7160e01b600052601160045260246000fd5b60008282101561246e5761246e612446565b500390565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150612377565b6020808252810161071681612473565b60008160001904831182151516156124eb576124eb612446565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612515576125156124f0565b500490565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b60208201529150612377565b602080825281016107168161251a565b634e487b7160e01b600052603260045260246000fd5b600060001982141561259c5761259c612446565b5060010190565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291505b5060200190565b60208082528101610716816125a3565b601081526000602082016f5761697420666f722070726573616c6560801b815291506125d3565b60208082528101610716816125ea565b60006107168260f81b90565b600061071682612621565b611d3081151561262d565b60006107168260601b90565b600061071682612643565b611d3061266682611de5565b61264f565b60006126778285612638565b600182019150612687828461265a565b5060140192915050565b600d81526000602082016c24b73b30b634b210383937b7b360991b815291506125d3565b6020808252810161071681612691565b600082198211156126d8576126d8612446565b500190565b60168152600060208201754578636565647320796f757220616c6c6f77616e636560501b815291506125d3565b60208082528101610716816126dd565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b60208201529150612377565b602080825281016107168161271a565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150612377565b6020808252810161071681612773565b602a81526000602082017f5175616e74697479206c656e677468206973206e6f7420657175616c20746f20815269726563697069656e747360b01b60208201529150612377565b60208082528101610716816127c9565b601281526000602082017113585e081cdd5c1c1b1e481c995858da195960721b815291506125d3565b6020808252810161071681612820565b601e81526000602082017f4e65772076616c7565206d757374206265203c204d41585f535550504c590000815291506125d3565b6020808252810161071681612859565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150612377565b602080825281016107168161289d565b60148152600060208201735761697420666f72207075626c69632073616c6560601b815291506125d3565b60208082528101610716816128f4565b601881526000602082017f45786365656473206c696d6974207065722077616c6c65740000000000000000815291506125d3565b602080825281016107168161292f565b601981526000602082017f4d6178207075626c696320737570706c79207265616368656400000000000000815291506125d3565b6020808252810161071681612973565b6016815260006020820175125b9d985b1a5908199d5b991cc81c1c9bdd9a59195960521b815291506125d3565b60208082528101610716816129b7565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506125d3565b60208082528101610716816129f4565b602f81526000602082017f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b60208201529150612377565b6020808252810161071681612a38565b60008154612aa181612305565b600182168015612ab85760018114612ac957612af9565b60ff19831686528186019350612af9565b60008581526020902060005b83811015612af157815488820152600190910190602001612ad5565b838801955050505b50505092915050565b6000612b0c825190565b612b1a818560208601611d44565b9290920192915050565b6000612b308286612a94565b9150612b3c8285612b02565b9150612b488284612a94565b95945050505050565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612377565b6020808252810161071681612b51565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612377565b6020808252810161071681612ba4565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b60208201529150612377565b6020808252810161071681612bfd565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150612377565b6020808252810161071681612c53565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006125d3565b6020808252810161071681612ca4565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150612377565b6020808252810161071681612ce6565b600082612d5457612d546124f0565b500690565b600061071682611de5565b611cf581612d59565b805161071681612d64565b600060208284031215612d8d57612d8d600080fd5b600061162e8484612d6d565b60808101612da78287611df6565b612db46020830186611df6565b612dc16040830185611e5e565b8181036060830152612dd38184611d70565b9695505050505050565b805161071681611ce9565b600060208284031215612dfd57612dfd600080fd5b600061162e8484612ddd565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006125d3565b6020808252810161071681612e09565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291506125d3565b6020808252810161071681612e4b56fe496e76616c69642066756e647320286672656520737570706c792065786861757374656429a2646970667358221220e3e1c838851c8139c63f1e4f2750008ba7412c723357c241916798a177151af664736f6c634300080c0033697066733a2f2f516d64546e43586f704b6369644c74357a656d76586b76366e756455665356315a646e6f4456324566516b425976

Deployed Bytecode

0x6080604052600436106102465760003560e01c8063715018a611610139578063b88d4fde116100b6578063dc9a15351161007a578063dc9a15351461064c578063e222c7f914610666578063e985e9c51461067b578063f2fde38b1461069b578063f5112ef9146106bb578063f577a5d0146106db57600080fd5b8063b88d4fde146105c6578063c662e481146105e6578063c87b56dd14610601578063dbcaa52c14610621578063dbd30ae01461063757600080fd5b806395d89b41116100fd57806395d89b411461053b5780639753eac0146105505780639ec00c9514610566578063a0712d6814610593578063a22cb465146105a657600080fd5b8063715018a6146104b357806379a6ff31146104c85780637cb64759146104de5780638da5cb5b146104fe57806395364a841461051c57600080fd5b806331a53e9a116101c75780636352211e1161018b5780636352211e146104135780636673c4c2146104335780636790a9de146104535780636f8b44b01461047357806370a082311461049357600080fd5b806331a53e9a1461039257806332cb6b0c146103a857806334393743146103be57806342842e0e146103d35780634f6ccce7146103f357600080fd5b806323b872dd1161020e57806323b872dd1461031457806324600fc3146103345780632eb4a7ab146103495780632f745c591461035f5780632f9cdf901461037f57600080fd5b806301ffc9a71461024b57806306fdde0314610281578063081812fc146102a3578063095ea7b3146102d057806318160ddd146102f2575b600080fd5b34801561025757600080fd5b5061026b610266366004611d0b565b6106f1565b6040516102789190611d36565b60405180910390f35b34801561028d57600080fd5b5061029661071c565b6040516102789190611da2565b3480156102af57600080fd5b506102c36102be366004611dc4565b6107ae565b6040516102789190611dff565b3480156102dc57600080fd5b506102f06102eb366004611e21565b6107fa565b005b3480156102fe57600080fd5b50610307610880565b6040516102789190611e64565b34801561032057600080fd5b506102f061032f366004611e72565b610897565b34801561034057600080fd5b506102f06108c8565b34801561035557600080fd5b5061030760125481565b34801561036b57600080fd5b5061030761037a366004611e21565b610962565b6102f061038d366004611f27565b610a15565b34801561039e57600080fd5b50610307600e5481565b3480156103b457600080fd5b50610307600b5481565b3480156103ca57600080fd5b506102f0610d4d565b3480156103df57600080fd5b506102f06103ee366004611e72565b610d72565b3480156103ff57600080fd5b5061030761040e366004611dc4565b610d8d565b34801561041f57600080fd5b506102c361042e366004611dc4565b610db5565b34801561043f57600080fd5b506102f061044e366004611f95565b610dff565b34801561045f57600080fd5b506102f061046e366004612041565b610f3a565b34801561047f57600080fd5b506102f061048e366004611dc4565b610f62565b34801561049f57600080fd5b506103076104ae3660046120ae565b610f90565b3480156104bf57600080fd5b506102f061101b565b3480156104d457600080fd5b50610307600d5481565b3480156104ea57600080fd5b506102f06104f9366004611dc4565b61102f565b34801561050a57600080fd5b506005546001600160a01b03166102c3565b34801561052857600080fd5b5060135461026b90610100900460ff1681565b34801561054757600080fd5b5061029661103c565b34801561055c57600080fd5b50610307600c5481565b34801561057257600080fd5b506103076105813660046120ae565b60146020526000908152604090205481565b6102f06105a1366004611dc4565b61104b565b3480156105b257600080fd5b506102f06105c13660046120cf565b6111ef565b3480156105d257600080fd5b506102f06105e13660046121f5565b611287565b3480156105f257600080fd5b506103076646b2f1cf07c00081565b34801561060d57600080fd5b5061029661061c366004611dc4565b6112bf565b34801561062d57600080fd5b50610307600f5481565b34801561064357600080fd5b506102f06113c0565b34801561065857600080fd5b5060135461026b9060ff1681565b34801561067257600080fd5b506102f06113fc565b34801561068757600080fd5b5061026b610696366004612274565b611418565b3480156106a757600080fd5b506102f06106b63660046120ae565b61145b565b3480156106c757600080fd5b506102f06106d63660046122a7565b611495565b3480156106e757600080fd5b5061030760105481565b60006001600160e01b0319821663780e9d6360e01b14806107165750610716826114a9565b92915050565b60606000805461072b90612305565b80601f016020809104026020016040519081016040528092919081815260200182805461075790612305565b80156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b9826114f9565b6107de5760405162461bcd60e51b81526004016107d59061237e565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061080582610db5565b9050806001600160a01b0316836001600160a01b031614156108395760405162461bcd60e51b81526004016107d5906123cc565b336001600160a01b038216148061085557506108558133611418565b6108715760405162461bcd60e51b81526004016107d590612436565b61087b8383611543565b505050565b6002546000906108929060019061245c565b905090565b6108a133826115b1565b6108bd5760405162461bcd60e51b81526004016107d5906124c1565b61087b838383611636565b6108d061170e565b600060286108df4760036124d1565b6108e99190612506565b600a546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610924573d6000803e3d6000fd5b506009546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505015801561095e573d6000803e3d6000fd5b5050565b600061096d83610f90565b821061098b5760405162461bcd60e51b81526004016107d590612562565b6000805b6002548110156109fc57600281815481106109ac576109ac612572565b6000918252602090912001546001600160a01b03868116911614156109ea57838214156109dc5791506107169050565b816109e681612588565b9250505b806109f481612588565b91505061098f565b5060405162461bcd60e51b81526004016107d590612562565b60026006541415610a385760405162461bcd60e51b81526004016107d5906125da565b6002600655601354610100900460ff16610a645760405162461bcd60e51b81526004016107d590612611565b60008433604051602001610a7992919061266b565b604051602081830303815290604052805190602001209050610ace8184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061173892505050565b610aea5760405162461bcd60e51b81526004016107d5906126b5565b600d5433600090815260146020526040902054610b089086906126c5565b1115610b265760405162461bcd60e51b81526004016107d59061270a565b6000858015610b42575033600090815260146020526040902054155b8015610b515750600e54600f54105b90508015610b6f57600f8054906000610b6983612588565b91905055505b6000600f54600e54610b81919061245c565b600b54610b8e919061245c565b6002805460408051808201909152601281527113585e081cdd5c1c1b1e481c995858da195960721b60208201529293509190610bcb9084906126c5565b610bd68360016126c5565b1015610c09575060408051808201909152601481527313db9b1e48199c9959481b5a5b9d1cc81b19599d60621b60208201525b610c148360026126c5565b610c1e89846126c5565b108190610c3e5760405162461bcd60e51b81526004016107d59190611da2565b50600084610c4c5788610c57565b610c5760018a61245c565b33600090815260146020526040812080549293508b92909190610c7b9084906126c5565b9091555050604080518082019091526016815275125b9d985b1a5908199d5b991cc81c1c9bdd9a59195960521b6020820152600e54600f5410610cd457604051806060016040528060258152602001612e906025913990505b34610ce6836646b2f1cf07c0006124d1565b11158190610d075760405162461bcd60e51b81526004016107d59190611da2565b5060005b8a811015610d3a57610d283386610d2181612588565b9750611747565b80610d3281612588565b915050610d0b565b5050600160065550505050505050505050565b610d5561170e565b6013805461ff001981166101009182900460ff1615909102179055565b61087b83838360405180602001604052806000815250611287565b6002546000908210610db15760405162461bcd60e51b81526004016107d590612763565b5090565b60008060028381548110610dcb57610dcb612572565b6000918252602090912001546001600160a01b03169050806107165760405162461bcd60e51b81526004016107d5906127b9565b610e0761170e565b828114610e265760405162461bcd60e51b81526004016107d590612810565b6000805b84811015610e6857858582818110610e4457610e44612572565b9050602002013582610e5691906126c5565b9150610e6181612588565b9050610e2a565b5060028054600b549091610e7c91906126c5565b610e8683836126c5565b10610ea35760405162461bcd60e51b81526004016107d590612849565b6000915060005b83811015610f315760005b878783818110610ec757610ec7612572565b90506020020135811015610f2057610f10868684818110610eea57610eea612572565b9050602002016020810190610eff91906120ae565b84610f0981612588565b9550611747565b610f1981612588565b9050610eb5565b50610f2a81612588565b9050610eaa565b50505050505050565b610f4261170e565b610f4e60078585611c59565b50610f5b60088383611c59565b5050505050565b610f6a61170e565b600b548110610f8b5760405162461bcd60e51b81526004016107d59061288d565b600b55565b60006001600160a01b038216610fb85760405162461bcd60e51b81526004016107d5906128e4565b6000805b6002548110156110145760028181548110610fd957610fd9612572565b6000918252602090912001546001600160a01b03858116911614156110045761100182612588565b91505b61100d81612588565b9050610fbc565b5092915050565b61102361170e565b61102d6000611761565b565b61103761170e565b601255565b60606001805461072b90612305565b6002600654141561106e5760405162461bcd60e51b81526004016107d5906125da565b600260065560135460ff166110955760405162461bcd60e51b81526004016107d59061291f565b600d54336000908152601460205260409020546110b39083906126c5565b11156110d15760405162461bcd60e51b81526004016107d590612963565b33600090815260146020526040812080548392906110f09084906126c5565b90915550506002546010805483919060009061110d9084906126c5565b9091555050600f54600e546000916111249161245c565b600b54611131919061245c565b9050600c5460105411156111575760405162461bcd60e51b81526004016107d5906129a7565b6111628160026126c5565b61116c84846126c5565b106111895760405162461bcd60e51b81526004016107d590612849565b3461119b846646b2f1cf07c0006124d1565b11156111b95760405162461bcd60e51b81526004016107d5906129e4565b60005b838110156111e4576111d23384610f0981612588565b806111dc81612588565b9150506111bc565b505060016006555050565b6001600160a01b0382163314156112185760405162461bcd60e51b81526004016107d590612a28565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061127b908590611d36565b60405180910390a35050565b61129133836115b1565b6112ad5760405162461bcd60e51b81526004016107d5906124c1565b6112b9848484846117b3565b50505050565b60606112ca826114f9565b6112e65760405162461bcd60e51b81526004016107d590612a84565b6000600780546112f590612305565b90501161138c576011805461130990612305565b80601f016020809104026020016040519081016040528092919081815260200182805461133590612305565b80156113825780601f1061135757610100808354040283529160200191611382565b820191906000526020600020905b81548152906001019060200180831161136557829003601f168201915b5050505050610716565b6007611397836117e6565b60086040516020016113ab93929190612b24565b60405160208183030381529060405292915050565b6113c861170e565b6013805461010060ff19821660ff80841615918217839004161590910261ff001990911661ffff1990921691909117179055565b61140461170e565b6013805460ff19811660ff90911615179055565b600061142483836118e4565b8061145457506001600160a01b0380841660009081526004602090815260408083209386168352929052205460ff165b9392505050565b61146361170e565b6001600160a01b0381166114895760405162461bcd60e51b81526004016107d590612b94565b61149281611761565b50565b61149d61170e565b61087b60118383611c59565b60006001600160e01b031982166380ac58cd60e01b14806114da57506001600160e01b03198216635b5e139f60e01b145b8061071657506301ffc9a760e01b6001600160e01b0319831614610716565b60025460009082108015610716575060006001600160a01b03166002838154811061152657611526612572565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061157882610db5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006115bc826114f9565b6115d85760405162461bcd60e51b81526004016107d590612bed565b60006115e383610db5565b9050806001600160a01b0316846001600160a01b0316148061161e5750836001600160a01b0316611613846107ae565b6001600160a01b0316145b8061162e575061162e8185611418565b949350505050565b826001600160a01b031661164982610db5565b6001600160a01b03161461166f5760405162461bcd60e51b81526004016107d590612c43565b6001600160a01b0382166116955760405162461bcd60e51b81526004016107d590612c94565b6116a0600082611543565b81600282815481106116b4576116b4612572565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6005546001600160a01b0316331461102d5760405162461bcd60e51b81526004016107d590612cd6565b600061145482601254856119ce565b61095e8282604051806020016040528060008152506119e4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6117be848484611636565b6117ca84848484611a17565b6112b95760405162461bcd60e51b81526004016107d590612d35565b60608161180a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611834578061181e81612588565b915061182d9050600a83612506565b915061180e565b60008167ffffffffffffffff81111561184f5761184f612102565b6040519080825280601f01601f191660200182016040528015611879576020820181803683370190505b5090505b841561162e5761188e60018361245c565b915061189b600a86612d45565b6118a69060306126c5565b60f81b8183815181106118bb576118bb612572565b60200101906001600160f81b031916908160001a9053506118dd600a86612506565b945061187d565b60008046600181146118fd576004811461191957611931565b73a5409ec958c83c3f309868babaca7c86dcb077c19150611931565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b0381161580159061162e5750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b815260040161197b9190611dff565b602060405180830381865afa158015611998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119bc9190612d78565b6001600160a01b031614949350505050565b6000826119db8584611b15565b14949350505050565b6119ee8383611b62565b6119fb6000848484611a17565b61087b5760405162461bcd60e51b81526004016107d590612d35565b60006001600160a01b0384163b15611b0a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a5b903390899088908890600401612d99565b6020604051808303816000875af1925050508015611a96575060408051601f3d908101601f19168201909252611a9391810190612de8565b60015b611af0573d808015611ac4576040519150601f19603f3d011682016040523d82523d6000602084013e611ac9565b606091505b508051611ae85760405162461bcd60e51b81526004016107d590612d35565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061162e565b506001949350505050565b600081815b8451811015611b5a57611b4682868381518110611b3957611b39612572565b6020026020010151611c2a565b915080611b5281612588565b915050611b1a565b509392505050565b6001600160a01b038216611b885760405162461bcd60e51b81526004016107d590612e3b565b611b91816114f9565b15611bae5760405162461bcd60e51b81526004016107d590612e7f565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611c46576000828152602084905260409020611454565b6000838152602083905260409020611454565b828054611c6590612305565b90600052602060002090601f016020900481019282611c875760008555611ccd565b82601f10611ca05782800160ff19823516178555611ccd565b82800160010185558215611ccd579182015b82811115611ccd578235825591602001919060010190611cb2565b50610db19291505b80821115610db15760008155600101611cd5565b6001600160e01b031981165b811461149257600080fd5b803561071681611ce9565b600060208284031215611d2057611d20600080fd5b600061162e8484611d00565b8015155b82525050565b602081016107168284611d2c565b60005b83811015611d5f578181015183820152602001611d47565b838111156112b95750506000910152565b6000611d7a825190565b808452602084019350611d91818560208601611d44565b601f01601f19169290920192915050565b602080825281016114548184611d70565b80611cf5565b803561071681611db3565b600060208284031215611dd957611dd9600080fd5b600061162e8484611db9565b60006001600160a01b038216610716565b611d3081611de5565b602081016107168284611df6565b611cf581611de5565b803561071681611e0d565b60008060408385031215611e3757611e37600080fd5b6000611e438585611e16565b9250506020611e5485828601611db9565b9150509250929050565b80611d30565b602081016107168284611e5e565b600080600060608486031215611e8a57611e8a600080fd5b6000611e968686611e16565b9350506020611ea786828701611e16565b9250506040611eb886828701611db9565b9150509250925092565b801515611cf5565b803561071681611ec2565b60008083601f840112611eea57611eea600080fd5b50813567ffffffffffffffff811115611f0557611f05600080fd5b602083019150836020820283011115611f2057611f20600080fd5b9250929050565b60008060008060608587031215611f4057611f40600080fd5b6000611f4c8787611eca565b9450506020611f5d87828801611db9565b935050604085013567ffffffffffffffff811115611f7d57611f7d600080fd5b611f8987828801611ed5565b95989497509550505050565b60008060008060408587031215611fae57611fae600080fd5b843567ffffffffffffffff811115611fc857611fc8600080fd5b611fd487828801611ed5565b9450945050602085013567ffffffffffffffff811115611f7d57611f7d600080fd5b60008083601f84011261200b5761200b600080fd5b50813567ffffffffffffffff81111561202657612026600080fd5b602083019150836001820283011115611f2057611f20600080fd5b6000806000806040858703121561205a5761205a600080fd5b843567ffffffffffffffff81111561207457612074600080fd5b61208087828801611ff6565b9450945050602085013567ffffffffffffffff8111156120a2576120a2600080fd5b611f8987828801611ff6565b6000602082840312156120c3576120c3600080fd5b600061162e8484611e16565b600080604083850312156120e5576120e5600080fd5b60006120f18585611e16565b9250506020611e5485828601611eca565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561213e5761213e612102565b6040525050565b600061215060405190565b905061215c8282612118565b919050565b600067ffffffffffffffff82111561217b5761217b612102565b601f19601f83011660200192915050565b82818337506000910152565b60006121ab6121a684612161565b612145565b9050828152602081018484840111156121c6576121c6600080fd5b611b5a84828561218c565b600082601f8301126121e5576121e5600080fd5b813561162e848260208601612198565b6000806000806080858703121561220e5761220e600080fd5b600061221a8787611e16565b945050602061222b87828801611e16565b935050604061223c87828801611db9565b925050606085013567ffffffffffffffff81111561225c5761225c600080fd5b612268878288016121d1565b91505092959194509250565b6000806040838503121561228a5761228a600080fd5b60006122968585611e16565b9250506020611e5485828601611e16565b600080602083850312156122bd576122bd600080fd5b823567ffffffffffffffff8111156122d7576122d7600080fd5b6122e385828601611ff6565b92509250509250929050565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061231957607f821691505b6020821081141561232c5761232c6122ef565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b6020808252810161071681612332565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150612377565b602080825281016107168161238e565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150612377565b60208082528101610716816123dc565b634e487b7160e01b600052601160045260246000fd5b60008282101561246e5761246e612446565b500390565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150612377565b6020808252810161071681612473565b60008160001904831182151516156124eb576124eb612446565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612515576125156124f0565b500490565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b60208201529150612377565b602080825281016107168161251a565b634e487b7160e01b600052603260045260246000fd5b600060001982141561259c5761259c612446565b5060010190565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291505b5060200190565b60208082528101610716816125a3565b601081526000602082016f5761697420666f722070726573616c6560801b815291506125d3565b60208082528101610716816125ea565b60006107168260f81b90565b600061071682612621565b611d3081151561262d565b60006107168260601b90565b600061071682612643565b611d3061266682611de5565b61264f565b60006126778285612638565b600182019150612687828461265a565b5060140192915050565b600d81526000602082016c24b73b30b634b210383937b7b360991b815291506125d3565b6020808252810161071681612691565b600082198211156126d8576126d8612446565b500190565b60168152600060208201754578636565647320796f757220616c6c6f77616e636560501b815291506125d3565b60208082528101610716816126dd565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b60208201529150612377565b602080825281016107168161271a565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150612377565b6020808252810161071681612773565b602a81526000602082017f5175616e74697479206c656e677468206973206e6f7420657175616c20746f20815269726563697069656e747360b01b60208201529150612377565b60208082528101610716816127c9565b601281526000602082017113585e081cdd5c1c1b1e481c995858da195960721b815291506125d3565b6020808252810161071681612820565b601e81526000602082017f4e65772076616c7565206d757374206265203c204d41585f535550504c590000815291506125d3565b6020808252810161071681612859565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150612377565b602080825281016107168161289d565b60148152600060208201735761697420666f72207075626c69632073616c6560601b815291506125d3565b60208082528101610716816128f4565b601881526000602082017f45786365656473206c696d6974207065722077616c6c65740000000000000000815291506125d3565b602080825281016107168161292f565b601981526000602082017f4d6178207075626c696320737570706c79207265616368656400000000000000815291506125d3565b6020808252810161071681612973565b6016815260006020820175125b9d985b1a5908199d5b991cc81c1c9bdd9a59195960521b815291506125d3565b60208082528101610716816129b7565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506125d3565b60208082528101610716816129f4565b602f81526000602082017f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b60208201529150612377565b6020808252810161071681612a38565b60008154612aa181612305565b600182168015612ab85760018114612ac957612af9565b60ff19831686528186019350612af9565b60008581526020902060005b83811015612af157815488820152600190910190602001612ad5565b838801955050505b50505092915050565b6000612b0c825190565b612b1a818560208601611d44565b9290920192915050565b6000612b308286612a94565b9150612b3c8285612b02565b9150612b488284612a94565b95945050505050565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612377565b6020808252810161071681612b51565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612377565b6020808252810161071681612ba4565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b60208201529150612377565b6020808252810161071681612bfd565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150612377565b6020808252810161071681612c53565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006125d3565b6020808252810161071681612ca4565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150612377565b6020808252810161071681612ce6565b600082612d5457612d546124f0565b500690565b600061071682611de5565b611cf581612d59565b805161071681612d64565b600060208284031215612d8d57612d8d600080fd5b600061162e8484612d6d565b60808101612da78287611df6565b612db46020830186611df6565b612dc16040830185611e5e565b8181036060830152612dd38184611d70565b9695505050505050565b805161071681611ce9565b600060208284031215612dfd57612dfd600080fd5b600061162e8484612ddd565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006125d3565b6020808252810161071681612e09565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291506125d3565b6020808252810161071681612e4b56fe496e76616c69642066756e647320286672656520737570706c792065786861757374656429a2646970667358221220e3e1c838851c8139c63f1e4f2750008ba7412c723357c241916798a177151af664736f6c634300080c0033

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.