ETH Price: $3,175.32 (+2.20%)

Token

Dall-E Punks (DUNKZ)
 

Overview

Max Total Supply

2,269 DUNKZ

Holders

700

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
mexy.eth
Balance
2 DUNKZ
0x89d5ac566d4d0bf14dad8b0531dd4b3de47f9424
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Dunkz are the first NFT collection to be generated completely by Dall-E, a text-to-image AI art generator. Each Dunk references an original CryptoPunk and their affiliated traits, whilst honoring the ethos of the OG Cryptopunks and their design philosophy.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Dunkz

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 3500 runs

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

pragma solidity ^0.8.0;

//------------------------------------------------------------------------------
// Dall-E Punks - Dunkz
//------------------------------------------------------------------------------
// Author: papaver (@papaver42)
//------------------------------------------------------------------------------

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";
import "./geneticchain/ERC721Sequential.sol";
import "./geneticchain/ERC721SeqEnumerable.sol";
import "./libraries/State.sol";

//------------------------------------------------------------------------------
// helper contracts
//------------------------------------------------------------------------------

contract OwnableDelegateProxy {}

//------------------------------------------------------------------------------

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

//------------------------------------------------------------------------------
// Dunkz721
//------------------------------------------------------------------------------

/**
 * @title Dunkz
 *
 * ERC721 contract with various features:
 *  - low-gas implmentation
 *  - off-chain whitelist verify (secure minting)
 *  - public/artist/team token allocation
 *  - protected controlled burns
 *  - opensea proxy setup
 *  - simple funds withdrawl
 */
contract Dunkz is
    ContextMixin,
    ERC721SeqEnumerable,
    ERC2981,
    NativeMetaTransaction,
    Ownable
{
    using ECDSA for bytes32;
    using State for State.Data;

    //-------------------------------------------------------------------------
    // structs
    //-------------------------------------------------------------------------

    struct Minted {
        uint128 claim;
        uint128 mint;
    }

    //-------------------------------------------------------------------------
    // constants
    //-------------------------------------------------------------------------

    // erc721 metadata
    string constant private __name   = "Dall-E Punks";
    string constant private __symbol = "DUNKZ";

    // mint price
    uint256 constant public memberPrice = .01 ether;
    uint256 constant public publicPrice = .02 ether;

    // allocations
    uint256 constant public maxPublic = 5;

    // artist wallets
    address constant private _ataraAddress      = 0xceC15d87719feDEcA61F7d11D2d205a4C0628517;
    address constant private _papaverAddress    = 0xa7B8a64dF4e47013C8A168945c9eb4F83BADC9C1;
    address constant private _noStandingAddress = 0x6A4f0ECbBb10dFdFD010F8E7B1C7e4a358692981;

    // verification address
    address constant private _signer = 0xE5cb964B8b21491929414b969078CcF7FeCD4725;

    // signature tags
    uint256 constant private _tagClaim  = 8118;
    uint256 constant private _tagMember = 4224;

    //-------------------------------------------------------------------------
    // fields
    //-------------------------------------------------------------------------

    // token limits
    uint256 public immutable publicMax;
    uint256 public immutable artistMax;
    uint256 public immutable teamMax;

    // opensea proxy
    address private immutable _proxyRegistryAddress;

    // contract state
    State.Data private _state;

    // roles
    mapping (address => bool) private _burnerAddress;
    mapping (address => bool) private _artistAddress;
    mapping (address => bool) private _teamAddress;

    // track mint count per address
    mapping (address => Minted) private _minted;

    // token info
    string private _baseUri;
    string private _tokenIpfsHash;

    // contract info
    string private _contractUri;

    //-------------------------------------------------------------------------
    // modifiers
    //-------------------------------------------------------------------------

    modifier validTokenId(uint256 tokenId) {
        require(_exists(tokenId), "invalid token");
        _;
    }

    //-------------------------------------------------------------------------

    modifier approvedOrOwner(address operator, uint256 tokenId) {
        require(_isApprovedOrOwner(operator, tokenId));
        _;
    }

    //-------------------------------------------------------------------------

    modifier isArtist() {
        require(_artistAddress[_msgSender()], "caller not artist");
        _;
    }

    //-------------------------------------------------------------------------

    modifier isTeam() {
        require(_teamAddress[_msgSender()] || owner() == _msgSender(), "caller not team");
        _;
    }

    //-------------------------------------------------------------------------

    modifier isBurner() {
        require(_burnerAddress[_msgSender()], "caller not burner");
        _;
    }

    //-------------------------------------------------------------------------

    modifier notLocked() {
        require(_state._locked == 0, "contract is locked");
        _;
    }

    //-------------------------------------------------------------------------
    // ctor
    //-------------------------------------------------------------------------

    constructor(
        string memory baseUri_,
        string memory ipfsHash_,
        string memory contractUri_,
        uint256[3] memory tokenMax_,
        address royaltyAddress,
        address proxyRegistryAddress)
        ERC721Sequential(__name, __symbol)
    {
        // collection link
        _baseUri       = baseUri_;
        _tokenIpfsHash = ipfsHash_;
        _contractUri   = contractUri_;

        // allocations
        publicMax  = tokenMax_[0];
        artistMax  = tokenMax_[1];
        teamMax    = tokenMax_[2];

        // os gas free listings
        _proxyRegistryAddress = proxyRegistryAddress;
        _initializeEIP712(__name);

        // royalty
        _setDefaultRoyalty(royaltyAddress, 750);

        // register wallets
        registerArtistAddress(_ataraAddress);
        registerArtistAddress(_papaverAddress);
        registerTeamAddress(_noStandingAddress);
    }

    //-------------------------------------------------------------------------
    // accessors
    //-------------------------------------------------------------------------

    /**
     * Check if public minting is live.
     */
    function publicLive()
        public view
        returns (bool)
    {
        return _state._live == 1;
    }

    //-------------------------------------------------------------------------

    /**
     * Check if contract is locked.
     */
    function isLocked()
        public view
        returns (bool)
    {
        return _state._locked == 1;
    }

    //-------------------------------------------------------------------------

    /**
     * Get total team has minted.
     */
    function teamMinted()
        public view
        returns (uint256)
    {
        return _state._team;
    }

    //-------------------------------------------------------------------------

    /**
     * Get total artist has minted.
     */
    function artistMinted()
        public view
        returns (uint256)
    {
        return _state._artist;
    }

    //-------------------------------------------------------------------------

    /**
     * Get total public has minted.
     */
    function publicMinted()
        public view
        returns (uint256)
    {
        return _state._public;
    }

    //-------------------------------------------------------------------------

    /**
     * Authorize artist wallet.
     */
    function registerArtistAddress(address artist)
        public
        onlyOwner
    {
        require(!_artistAddress[artist], "address already registered");
        _artistAddress[artist] = true;
    }

    //-------------------------------------------------------------------------

    /**
     * Remove artist wallet.
     */
    function revokeArtistAddress(address artist)
        public
        onlyOwner
    {
        require(_artistAddress[artist], "address not registered");
        delete _artistAddress[artist];
    }

    //-------------------------------------------------------------------------

    /**
     * Authorize team wallet.
     */
    function registerTeamAddress(address team)
        public
        onlyOwner
    {
        require(!_teamAddress[team], "address already registered");
        _teamAddress[team] = true;
    }

    //-------------------------------------------------------------------------

    /**
     * Remove team wallet.
     */
    function revokeTeamAddress(address team)
        public
        onlyOwner
    {
        require(_teamAddress[team], "address not registered");
        delete _teamAddress[team];
    }


    //-------------------------------------------------------------------------

    /**
     * Authorize burnder contract.
     */
    function registerBurnerAddress(address burner)
        public
        onlyOwner
    {
        require(!_burnerAddress[burner], "address already registered");
        _burnerAddress[burner] = true;
    }

    //-------------------------------------------------------------------------

    /**
     * Remove burner contract.
     */
    function revokeBurnerAddress(address burner)
        public
        onlyOwner
    {
        require(_burnerAddress[burner], "address not registered");
        delete _burnerAddress[burner];
    }

    //-------------------------------------------------------------------------

    function setTokenIpfsHash(string memory hash)
        public
        onlyOwner
    {
        if (bytes(hash).length == 0) {
            delete _tokenIpfsHash;
        } else {
            _tokenIpfsHash = hash;
        }
    }

    //-------------------------------------------------------------------------

    function setBaseTokenURI(string memory baseUri)
        public
        onlyOwner
    {
        _baseUri = baseUri;
    }

    //-------------------------------------------------------------------------

    function setTokenURI(string memory baseUri, string memory hash)
        public
        onlyOwner
    {
        setBaseTokenURI(baseUri);
        setTokenIpfsHash(hash);
    }

    //-------------------------------------------------------------------------
    // admin
    //-------------------------------------------------------------------------

    /**
     * Enable/disable public/member minting.
     */
    function toggleLock()
        public
        onlyOwner
    {
        _state.setLocked(_state._locked == 0 ? 1 : 0);
    }

    //-------------------------------------------------------------------------

    /**
     * Enable/disable public minting.
     */
    function togglePublicMint()
        public
        onlyOwner
    {
        _state.setLive(_state._live == 0 ? 1 : 0);
    }


    //-------------------------------------------------------------------------

    /**
     * Get minted info for a user.
     */
    function getMintInfo(address wallet)
        public view
        returns(Minted memory)
    {
        return _minted[wallet];
    }

    //-------------------------------------------------------------------------
    // security
    //-------------------------------------------------------------------------

    /**
     * Generate hash from input data.
     */
    function generateHash(uint256 tag, uint256 allocation, uint256 count)
        private view
        returns(bytes32)
    {
        return ECDSA.toEthSignedMessageHash(
            keccak256(abi.encodePacked(
                address(this), msg.sender, tag, allocation, count)));
    }

    //-------------------------------------------------------------------------

    /**
     * Validate message was signed by signer.
     */
    function validateSigner(bytes32 msgHash, bytes memory signature, address signer)
        private pure
        returns(bool)
    {
        return msgHash.recover(signature) == signer;
    }

    //-------------------------------------------------------------------------
    // minting
    //-------------------------------------------------------------------------

    /**
     * Allow anyone to mint tokens for the right price.
     */
    function mint(uint256 count)
        public payable
        notLocked
    {
        require(_state._live == 1, "public mint not live");
        require(publicPrice * count == msg.value, "insufficient funds");
        require(_state._public + count <= publicMax, "exceed public supply");
        require(_minted[msg.sender].mint + count <= maxPublic, "exceed allocation");
        _state.addPublic(count);
        unchecked {
            _minted[msg.sender].mint += uint128(count);
        }
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(msg.sender);
        }
    }

    //-------------------------------------------------------------------------

    /**
     * Mint count tokens using securely signed message.
     */
    function secureMint(bytes calldata signature, uint256 allocation, uint256 count)
        external payable
        notLocked
    {
        bytes32 msgHash = generateHash(_tagMember, allocation, count);
        require(memberPrice * count == msg.value, "insufficient funds");
        require(_state._public + count <= publicMax, "exceed public supply");
        require(_minted[msg.sender].mint + count <= allocation, "exceed allocation");
        require(validateSigner(msgHash, signature, _signer), "invalid signer");
        _state.addPublic(count);
        unchecked {
            _minted[msg.sender].mint += uint128(count);
        }
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(msg.sender);
        }
    }

    //-------------------------------------------------------------------------

    /**
     * Allow cryptopunk holders to claim.
     */
    function claim(bytes calldata signature, uint256 allocation, uint256 count)
        external
        notLocked
    {
        bytes32 msgHash = generateHash(_tagClaim, allocation, count);
        require(_state._public + count <= publicMax, "exceed public supply");
        require(_minted[msg.sender].claim + count <= allocation, "exceed allocation");
        require(validateSigner(msgHash, signature, _signer), "invalid signer");
        _state.addPublic(count);
        unchecked {
            _minted[msg.sender].claim += uint128(count);
        }
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(msg.sender);
        }
    }

    //-------------------------------------------------------------------------

    /**
     * @dev Mints a token to an address.
     * @param wallet address of the future owner of the token
     */
    function teamMintTo(address wallet, uint256 count)
        public
        isTeam
    {
        require(_state._team + count <= teamMax, "exceed team supply");
        _state.addTeam(count);
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(wallet);
        }
    }

    //-------------------------------------------------------------------------

    /**
     * @dev Mints a token to an address.
     * @param wallet address of the future owner of the token
     */
    function artistMintTo(address wallet, uint256 count)
        public
        isArtist
    {
        require(_state._artist + count <= artistMax, "exceed artist supply");
        _state.addArtist(count);
        for (uint256 i = 0; i < count; ++i) {
            _safeMint(wallet);
        }
    }

    //-------------------------------------------------------------------------

    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     */
    function burn(uint256 tokenId)
        public
        isBurner
    {
        _burn(tokenId);
    }

    //-------------------------------------------------------------------------
    // money
    //-------------------------------------------------------------------------

    /**
     * Pull money out of this contract.
     */
    function withdraw(address to, uint256 amount)
        public
        onlyOwner
    {
        require(amount > 0, "amount empty");
        require(amount <= address(this).balance, "amount exceeds balance");
        require(to != address(0), "address null");
        payable(to).transfer(amount);
    }

    //-------------------------------------------------------------------------
    // approval
    //-------------------------------------------------------------------------

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts
     *  to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override(ERC721Sequential, IERC721)
        public view
        returns (bool)
    {
        // whitelist OpenSea proxy contract for easy trading
        ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    //-------------------------------------------------------------------------

    /**
     * This is used instead of msg.sender as transactions won't be sent by
     *  the original token owner, but by OpenSea.
     */
    function _msgSender()
        override
        internal view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }

    //-------------------------------------------------------------------------
    // ERC2981 - NFT Royalty Standard
    //-------------------------------------------------------------------------

    /**
     * @dev Update royalty receiver + basis points.
     */
    function setRoyaltyInfo(address receiver, uint96 feeBasisPoints)
        external
        onlyOwner
    {
        _setDefaultRoyalty(receiver, feeBasisPoints);
    }

    //-------------------------------------------------------------------------
    // IERC165 - Introspection
    //-------------------------------------------------------------------------

    function supportsInterface(bytes4 interfaceId)
        public view
        override(ERC721SeqEnumerable, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    //-------------------------------------------------------------------------
    // ERC721Metadata
    //-------------------------------------------------------------------------

    function baseTokenURI()
        public view
        returns (string memory)
    {
        return _baseUri;
    }

    //-------------------------------------------------------------------------

    /**
     * @dev Returns uri of a token.  Not guarenteed token exists.
     */
    function tokenURI(uint256 tokenId)
        override
        public view
        returns (string memory)
    {
        return bytes(_tokenIpfsHash).length == 0
            ? string(abi.encodePacked(
                baseTokenURI(), "/", Strings.toString(tokenId)))
            : string(abi.encodePacked(
                baseTokenURI(),
                    "/", _tokenIpfsHash,
                    "/", Strings.toString(tokenId)));
    }

    //-------------------------------------------------------------------------
    // OpenSea contractUri
    //-------------------------------------------------------------------------

    function setContractURI(string memory contractUri)
        external
        onlyOwner
    {
        _contractUri = contractUri;
    }

    //-------------------------------------------------------------------------

    function contractURI()
        public view
        returns (string memory)
    {
        return _contractUri;
    }


}

File 2 of 22 : 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 22 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 4 of 22 : 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 22 : 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 22 : 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 22 : 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 22 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 9 of 22 : 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 10 of 22 : 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 11 of 22 : 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 12 of 22 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 22 : 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 15 of 22 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 16 of 22 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 17 of 22 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 18 of 22 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 19 of 22 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeMath} from  "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 20 of 22 : ERC721SeqEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

//------------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//------------------------------------------------------------------------------
//    _______                   __   __        ______ __          __
//   |     __|-----.-----.-----|  |_|__|----. |      |  |--.---.-|__|-----.
//   |    |  |  -__|     |  -__|   _|  |  __| |   ---|     |  _  |  |     |
//   |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__|
//
//------------------------------------------------------------------------------
// Genetic Chain: ERC721SeqEnumerable
//------------------------------------------------------------------------------
// Author: papaver (@papaver42)
//------------------------------------------------------------------------------

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

/**
 * @dev This is a no storage implemntation of the optional extension {ERC721}
 * defined in the EIP that adds enumerability of all the token ids in the
 * contract as well as all token ids owned by each account. These functions
 * are mainly for convienence and should NEVER be called from inside a
 * contract on the chain.
 */
abstract contract ERC721SeqEnumerable is ERC721Sequential, IERC721Enumerable {

    address constant zero = address(0);

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(
        address owner,
        uint256 index
    ) public view virtual override returns (uint256 tokenId) {
        uint256 length = _owners.length;

        unchecked {
            for (; tokenId < length; ++tokenId) {
                if (_owners[tokenId] == owner) {
                    if (index-- == 0) {
                        break;
                    }
                }
            }
        }

        require(tokenId < length, "ERC721Enumerable: owner index out of bounds");
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256 supply) {
        unchecked {
            uint256 length = _owners.length;
            for (uint256 tokenId = 0; tokenId < length; ++tokenId) {
                if (_owners[tokenId] != zero) {
                    ++supply;
                }
            }
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(
        uint256 index
    ) public view virtual override returns (uint256 tokenId) {
        uint256 length = _owners.length;

        unchecked {
            for (; tokenId < length; ++tokenId) {
                if (_owners[tokenId] != zero) {
                    if (index-- == 0) {
                        break;
                    }
                }
            }
        }

        require(tokenId < length, "ERC721Enumerable: global index out of bounds");
    }

    /**
     * @dev Get all tokens owned by owner.
     */
    function ownerTokens(
        address owner
    ) public view returns (uint256[] memory) {
        uint256 tokenCount = ERC721Sequential.balanceOf(owner);
        require(tokenCount != 0, "ERC721Enumerable: owner owns no tokens");

        uint256 length = _owners.length;
        uint256[] memory tokenIds = new uint256[](tokenCount);
        unchecked {
            uint256 i = 0;
            for (uint256 tokenId = 0; tokenId < length; ++tokenId) {
                if (_owners[tokenId] == owner) {
                    tokenIds[i++] = tokenId;
                }
            }
        }

        return tokenIds;
    }

}

File 21 of 22 : ERC721Sequential.sol
// SPDX-License-Identifier: MIT
// Forked from: OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

//------------------------------------------------------------------------------
// geneticchain.io - NextGen Generative NFT Platform
//------------------------------------------------------------------------------
//    _______                   __   __        ______ __          __
//   |     __|-----.-----.-----|  |_|__|----. |      |  |--.---.-|__|-----.
//   |    |  |  -__|     |  -__|   _|  |  __| |   ---|     |  _  |  |     |
//   |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__|
//
//------------------------------------------------------------------------------
// Genetic Chain: ERC721Sequential
//------------------------------------------------------------------------------
// Author: papaver (@papaver42)
//------------------------------------------------------------------------------

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/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721
 *  [ERC721] Non-Fungible Token Standard
 *
 *  This implmentation of ERC721 assumes sequencial token creation to provide
 *  efficient minting.  Storage for balance are no longer required reducing
 *  gas significantly.  This comes at the price of calculating the balance by
 *  iterating through the entire array.  The balanceOf function should NOT
 *  be used inside a contract.  Gas usage will explode as the size of tokens
 *  increase.  A convenience function is provided which returns the entire
 *  list of owners whose index maps tokenIds to thier owners.  Zero addresses
 *  indicate burned tokens.
 *
 */
contract ERC721Sequential is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

        unchecked {
            uint256 length = _owners.length;
            for (uint256 i = 0; i < length; ++i) {
                if (_owners[i] == owner) {
                    ++balance;
                }
            }
        }

    }

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

    /**
     * @dev Returns entire list of owner enumerated by thier tokenIds.  Burned tokens
     * will have a zero address.
     */
    function owners() public view returns (address[] memory) {
        address[] memory owners_ = _owners;
        return owners_;
    }

    /**
     * @dev Return largest tokenId minted.
     */
    function maxTokenId() public view returns (uint256) {
        return _owners.length - 1;
    }

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return 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 = ERC721Sequential.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) internal virtual returns (uint256 tokenId) {
        tokenId = _safeMint(to, "");
    }

    /**
     * @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,
        bytes memory _data
    ) internal virtual returns (uint256 tokenId) {
        tokenId = _mint(to);
        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) internal virtual returns (uint256 tokenId) {
        require(to != address(0), "ERC721: mint to the zero address");
        tokenId = _owners.length;

        _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 = ERC721Sequential.ownerOf(tokenId);

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

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

        delete _owners[tokenId];

        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(ERC721Sequential.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(ERC721Sequential.ownerOf(tokenId), to, tokenId);
    }

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

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

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

File 22 of 22 : State.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

//------------------------------------------------------------------------------
// Dunkz: library/State
//------------------------------------------------------------------------------
// Author: papaver (@papaver42)
//------------------------------------------------------------------------------

/**
 * @dev Handle contract state efficiently as possbile.
 */
library State {

    //-------------------------------------------------------------------------
    // fields
    //-------------------------------------------------------------------------

    struct Data {
        uint16  _team;
        uint16  _artist;
        uint16  _public;
        uint16  _live;
        uint16  _locked;
        uint176 _unused;
    }

    //-------------------------------------------------------------------------
    // methods
    //-------------------------------------------------------------------------

    function addTeam(Data storage data, uint256 count)
        internal
     {
        unchecked {
            data._team += uint16(count);
        }
    }

    //-------------------------------------------------------------------------

    function addArtist(Data storage data, uint256 count)
        internal
     {
        unchecked {
            data._artist += uint16(count);
        }
    }

    //-------------------------------------------------------------------------

    function addPublic(Data storage data, uint256 count)
        internal
     {
        unchecked {
            data._public += uint16(count);
        }
    }

    //-------------------------------------------------------------------------

    function setLive(Data storage data, uint256 enable)
        internal
     {
        data._live = uint16(enable);
    }

    //-------------------------------------------------------------------------

    function setLocked(Data storage data, uint256 enable)
        internal
    {
        data._locked = uint16(enable);
    }

    //-------------------------------------------------------------------------

    function set(Data storage data, uint256 _team, uint256 _artist, uint256 _public)
        internal
    {
        data._team   = uint16(_team);
        data._artist = uint16(_artist);
        data._public = uint16(_public);
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseUri_","type":"string"},{"internalType":"string","name":"ipfsHash_","type":"string"},{"internalType":"string","name":"contractUri_","type":"string"},{"internalType":"uint256[3]","name":"tokenMax_","type":"uint256[3]"},{"internalType":"address","name":"royaltyAddress","type":"address"},{"internalType":"address","name":"proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"artistMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getMintInfo","outputs":[{"components":[{"internalType":"uint128","name":"claim","type":"uint128"},{"internalType":"uint128","name":"mint","type":"uint128"}],"internalType":"struct Dunkz.Minted","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"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":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"memberPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"owner","type":"address"}],"name":"ownerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"artist","type":"address"}],"name":"registerArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"registerBurnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"team","type":"address"}],"name":"registerTeamAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"artist","type":"address"}],"name":"revokeArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"revokeBurnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"team","type":"address"}],"name":"revokeTeamAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"secureMint","outputs":[],"stateMutability":"payable","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":"baseUri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"setTokenIpfsHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"string","name":"hash","type":"string"}],"name":"setTokenURI","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":"teamMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"teamMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":"supply","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040526007805460ff191690553480156200001c57600080fd5b5060405162005504380380620055048339810160408190526200003f9162000759565b6040518060400160405280600c81526020016b44616c6c2d452050756e6b7360a01b81525060405180604001604052806005815260200164222aa725ad60d91b8152508160009081620000939190620008f1565b506001620000a28282620008f1565b505050620000bf620000b9620001b560201b60201c565b620001d1565b6010620000cd8782620008f1565b506011620000dc8682620008f1565b506012620000eb8582620008f1565b50825160805260208084015160a05260408085015160c0526001600160a01b03831660e0528051808201909152600c81526b44616c6c2d452050756e6b7360a01b918101919091526200013e9062000223565b6200014c826102ee62000288565b6200016b73cec15d87719fedeca61f7d11d2d205a4c062851762000389565b6200018a73a7b8a64df4e47013c8a168945c9eb4f83badc9c162000389565b620001a9736a4f0ecbbb10dfdfd010f8e7b1c7e4a35869298162000422565b505050505050620009bd565b6000620001cc620004bb60201b62002cad1760201c565b905090565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60075460ff16156200026d5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064015b60405180910390fd5b620002788162000519565b506007805460ff19166001179055565b6127106001600160601b0382161115620002f85760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000264565b6001600160a01b038216620003505760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000264565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600555565b62000393620005bb565b6001600160a01b0381166000908152600d602052604090205460ff1615620003fe5760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c72656164792072656769737465726564000000000000604482015260640162000264565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6200042c620005bb565b6001600160a01b0381166000908152600e602052604090205460ff1615620004975760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c72656164792072656769737465726564000000000000604482015260640162000264565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b60003033036200051357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620005169050565b50335b90565b6040518060800160405280604f8152602001620054b5604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600855565b620005c5620001b5565b6001600160a01b0316620005e1600a546001600160a01b031690565b6001600160a01b031614620006395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000264565b565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b03811182821017156200067657620006766200063b565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620006a757620006a76200063b565b604052919050565b600082601f830112620006c157600080fd5b81516001600160401b03811115620006dd57620006dd6200063b565b6020620006f3601f8301601f191682016200067c565b82815285828487010111156200070857600080fd5b60005b83811015620007285785810183015182820184015282016200070b565b506000928101909101919091529392505050565b80516001600160a01b03811681146200075457600080fd5b919050565b60008060008060008061010087890312156200077457600080fd5b86516001600160401b03808211156200078c57600080fd5b6200079a8a838b01620006af565b9750602091508189015181811115620007b257600080fd5b620007c08b828c01620006af565b975050604089015181811115620007d657600080fd5b620007e48b828c01620006af565b9650505088607f890112620007f857600080fd5b6200080262000651565b8060c08a018b8111156200081557600080fd5b60608b015b818110156200083357805184529284019284016200081a565b5081965062000842816200073c565b9550505050506200085660e088016200073c565b90509295509295509295565b600181811c908216806200087757607f821691505b6020821081036200089857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620008ec57600081815260208120601f850160051c81016020861015620008c75750805b601f850160051c820191505b81811015620008e857828155600101620008d3565b5050505b505050565b81516001600160401b038111156200090d576200090d6200063b565b62000925816200091e845462000862565b846200089e565b602080601f8311600181146200095d5760008415620009445750858301515b600019600386901b1c1916600185901b178555620008e8565b600085815260208120601f198616915b828110156200098e578886015182559484019460019091019084016200096d565b5085821015620009ad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e051614a9b62000a1a600039600061292b0152600081816104f1015261280b015260008181610bb30152611164015260008181610b1201528181611b5f01528181611f6f01526122010152614a9b6000f3fe6080604052600436106103ad5760003560e01c8063920e35e6116101e7578063ba8bce551161010d578063e8b5498d116100a0578063f2fde38b1161006f578063f2fde38b14610bd5578063f3fef3a314610bf5578063f685137314610c15578063ff9413d814610c3557600080fd5b8063e8b5498d14610b49578063e985e9c514610b62578063ed329fa814610b82578063ef3c662414610ba157600080fd5b8063d547cfb7116100dc578063d547cfb714610acb578063de76957014610ae0578063e527c6dd14610b00578063e8a3d48514610b3457600080fd5b8063ba8bce5514610a3e578063bba7723e14610a5e578063c87b56dd14610a8b578063d48ede9914610aab57600080fd5b8063a4e2d63411610185578063b6ba3fcd11610154578063b6ba3fcd14610921578063b7d08c5c14610941578063b7f751d8146109f8578063b88d4fde14610a1e57600080fd5b8063a4e2d6341461089b578063a4f4f8af146108c3578063a945bf80146108e4578063affe39c1146108ff57600080fd5b806395d89b41116101c157806395d89b4114610833578063a05f9f0814610848578063a0712d6814610868578063a22cb4651461087b57600080fd5b8063920e35e6146107e0578063938e3d7b146108005780639509af061461082057600080fd5b80632f745c59116102d75780634f6ccce71161026a578063715018a611610239578063715018a6146107835780637dc42975146107985780638da5cb5b146107ad57806391ba317a146107cb57600080fd5b80634f6ccce7146107085780636352211e14610728578063636e746b1461074857806370a082311461076357600080fd5b806342842e0e116102a657806342842e0e1461068857806342966c68146106a85780634b457935146106c85780634dcc60af146106e857600080fd5b80632f745c591461062057806330176e13146106405780633408e470146106605780634047638d1461067357600080fd5b80630f9bb75c1161034f57806320379ee51161031e57806320379ee51461057657806323b872dd1461058b5780632a55205a146105ab5780632d0335ab146105ea57600080fd5b80630f9bb75c146104df57806314d7d5171461052157806318160ddd146105415780631afe7ed41461055657600080fd5b8063081812fc1161038b578063081812fc1461042b578063095ea7b3146104635780630c53c51c146104835780630f7e59701461049657600080fd5b806301ffc9a7146103b257806302fa7c47146103e757806306fdde0314610409575b600080fd5b3480156103be57600080fd5b506103d26103cd366004614074565b610c4a565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506104076104023660046140a6565b610c5b565b005b34801561041557600080fd5b5061041e610c71565b6040516103de9190614140565b34801561043757600080fd5b5061044b610446366004614153565b610d03565b6040516001600160a01b0390911681526020016103de565b34801561046f57600080fd5b5061040761047e36600461416c565b610da1565b61041e61049136600461423b565b610ee4565b3480156104a257600080fd5b5061041e6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b3480156104eb57600080fd5b506105137f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016103de565b34801561052d57600080fd5b5061040761053c36600461416c565b6110ea565b34801561054d57600080fd5b50610513611249565b34801561056257600080fd5b506104076105713660046142b9565b6112a5565b34801561058257600080fd5b50600854610513565b34801561059757600080fd5b506104076105a63660046142d6565b611336565b3480156105b757600080fd5b506105cb6105c6366004614317565b6113c4565b604080516001600160a01b0390931683526020830191909152016103de565b3480156105f657600080fd5b506105136106053660046142b9565b6001600160a01b031660009081526009602052604090205490565b34801561062c57600080fd5b5061051361063b36600461416c565b6114a3565b34801561064c57600080fd5b5061040761065b366004614339565b61157c565b34801561066c57600080fd5b5046610513565b34801561067f57600080fd5b50610407611590565b34801561069457600080fd5b506104076106a33660046142d6565b6115fe565b3480156106b457600080fd5b506104076106c3366004614153565b611619565b3480156106d457600080fd5b506104076106e33660046142b9565b61169a565b3480156106f457600080fd5b50610407610703366004614339565b61172f565b34801561071457600080fd5b50610513610723366004614153565b611758565b34801561073457600080fd5b5061044b610743366004614153565b611831565b34801561075457600080fd5b50610513662386f26fc1000081565b34801561076f57600080fd5b5061051361077e3660046142b9565b6118df565b34801561078f57600080fd5b506104076119b8565b3480156107a457600080fd5b50610513600581565b3480156107b957600080fd5b50600a546001600160a01b031661044b565b3480156107d757600080fd5b506105136119ca565b3480156107ec57600080fd5b506104076107fb3660046142b9565b6119e1565b34801561080c57600080fd5b5061040761081b366004614339565b611a76565b61040761082e36600461436e565b611a8a565b34801561083f57600080fd5b5061041e611dab565b34801561085457600080fd5b506104076108633660046142b9565b611dba565b610407610876366004614153565b611e4b565b34801561088757600080fd5b506104076108963660046143ed565b612112565b3480156108a757600080fd5b50600b5468010000000000000000900461ffff166001146103d2565b3480156108cf57600080fd5b50600b54640100000000900461ffff16610513565b3480156108f057600080fd5b5061051366470de4df82000081565b34801561090b57600080fd5b50610914612124565b6040516103de9190614420565b34801561092d57600080fd5b5061040761093c36600461436e565b61218a565b34801561094d57600080fd5b506109c861095c3660046142b9565b6040805180820190915260008082526020820152506001600160a01b03166000908152600f60209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff8082168452700100000000000000000000000000000000909104169082015290565b6040805182516fffffffffffffffffffffffffffffffff90811682526020938401511692810192909252016103de565b348015610a0457600080fd5b50600b546601000000000000900461ffff166001146103d2565b348015610a2a57600080fd5b50610407610a3936600461446d565b61243d565b348015610a4a57600080fd5b50610407610a593660046142b9565b6124d2565b348015610a6a57600080fd5b50610a7e610a793660046142b9565b612563565b6040516103de91906144d9565b348015610a9757600080fd5b5061041e610aa6366004614153565b6126ae565b348015610ab757600080fd5b50610407610ac6366004614511565b612734565b348015610ad757600080fd5b5061041e61274e565b348015610aec57600080fd5b50610407610afb36600461416c565b61275d565b348015610b0c57600080fd5b506105137f000000000000000000000000000000000000000000000000000000000000000081565b348015610b4057600080fd5b5061041e6128e1565b348015610b5557600080fd5b50600b5461ffff16610513565b348015610b6e57600080fd5b506103d2610b7d366004614575565b6128f0565b348015610b8e57600080fd5b50600b5462010000900461ffff16610513565b348015610bad57600080fd5b506105137f000000000000000000000000000000000000000000000000000000000000000081565b348015610be157600080fd5b50610407610bf03660046142b9565b6129e7565b348015610c0157600080fd5b50610407610c1036600461416c565b612a74565b348015610c2157600080fd5b50610407610c303660046142b9565b612ba8565b348015610c4157600080fd5b50610407612c3d565b6000610c5582612d09565b92915050565b610c63612d5f565b610c6d8282612dd8565b5050565b606060008054610c80906145a3565b80601f0160208091040260200160405190810160405280929190818152602001828054610cac906145a3565b8015610cf95780601f10610cce57610100808354040283529160200191610cf9565b820191906000526020600020905b815481529060010190602001808311610cdc57829003601f168201915b5050505050905090565b6000610d0e82612f03565b610d855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610dac82611831565b9050806001600160a01b0316836001600160a01b031603610e355760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b806001600160a01b0316610e47612f4d565b6001600160a01b03161480610e635750610e6381610b7d612f4d565b610ed55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d7c565b610edf8383612f57565b505050565b60408051606081810183526001600160a01b03881660008181526009602090815290859020548452830152918101869052610f228782878787612fd2565b610f945760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b6001600160a01b038716600090815260096020526040902054610fb89060016130da565b6001600160a01b0388166000908152600960205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061100890899033908a906145d7565b60405180910390a1600080306001600160a01b0316888a604051602001611030929190614628565b60408051601f198184030181529082905261104a91614672565b6000604051808303816000865af19150503d8060008114611087576040519150601f19603f3d011682016040523d82523d6000602084013e61108c565b606091505b5091509150816110de5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610d7c565b98975050505050505050565b600d60006110f6612f4d565b6001600160a01b0316815260208101919091526040016000205460ff1661115f5760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206172746973740000000000000000000000000000006044820152606401610d7c565b600b547f00000000000000000000000000000000000000000000000000000000000000009061119990839062010000900461ffff166146a4565b11156111e75760405162461bcd60e51b815260206004820152601460248201527f6578636565642061727469737420737570706c790000000000000000000000006044820152606401610d7c565b600b805461ffff6201000080830482168501909116027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff90911617905560005b81811015610edf57611238836130ed565b50611242816146b7565b9050611227565b600254600090815b818110156112a05760006001600160a01b031660028281548110611277576112776146d1565b6000918252602090912001546001600160a01b031614611298578260010192505b600101611251565b505090565b6112ad612d5f565b6001600160a01b0381166000908152600e602052604090205460ff166113155760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d7c565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b611347611341612f4d565b82613108565b6113b95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d7c565b610edf8383836131db565b60008281526006602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916114655750604080518082019091526005546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090611489906bffffffffffffffffffffffff16876146e7565b6114939190614714565b91519350909150505b9250929050565b6002546000905b8082101561150057836001600160a01b0316600283815481106114cf576114cf6146d1565b6000918252602090912001546001600160a01b0316036114f55760001983019215611500575b8160010191506114aa565b8082106115755760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d7c565b5092915050565b611584612d5f565b6010610c6d828261476e565b611598612d5f565b600b546115fc906601000000000000900461ffff16156115b95760006115bc565b60015b600b9060ff16815461ffff9091166601000000000000027fffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffff909116179055565b565b610edf8383836040518060200160405280600081525061243d565b600c6000611625612f4d565b6001600160a01b0316815260208101919091526040016000205460ff1661168e5760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206275726e65720000000000000000000000000000006044820152606401610d7c565b6116978161336b565b50565b6116a2612d5f565b6001600160a01b0381166000908152600c602052604090205460ff161561170b5760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d7c565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b611737612d5f565b805160000361174c5761169760116000613ff8565b6011610c6d828261476e565b6002546000905b808210156117b65760006001600160a01b031660028381548110611785576117856146d1565b6000918252602090912001546001600160a01b0316146117ab57600019830192156117b6575b81600101915061175f565b80821061182b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d7c565b50919050565b600061183c82612f03565b6118ae5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d7c565b6000600283815481106118c3576118c36146d1565b6000918252602090912001546001600160a01b03169392505050565b60006001600160a01b03821661195d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d7c565b60025460005b818110156119b157836001600160a01b031660028281548110611988576119886146d1565b6000918252602090912001546001600160a01b0316036119a9578260010192505b600101611963565b5050919050565b6119c0612d5f565b6115fc60006133f5565b6002546000906119dc9060019061482e565b905090565b6119e9612d5f565b6001600160a01b0381166000908152600e602052604090205460ff1615611a525760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d7c565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b611a7e612d5f565b6012610c6d828261476e565b600b5468010000000000000000900461ffff1615611aea5760405162461bcd60e51b815260206004820152601260248201527f636f6e7472616374206973206c6f636b656400000000000000000000000000006044820152606401610d7c565b6000611af96110808484613454565b905034611b0d83662386f26fc100006146e7565b14611b5a5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e742066756e647300000000000000000000000000006044820152606401610d7c565b600b547f000000000000000000000000000000000000000000000000000000000000000090611b96908490640100000000900461ffff166146a4565b1115611be45760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d7c565b336000908152600f60205260409020548390611c2790849070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff166146a4565b1115611c755760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610d7c565b611ccb8186868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525073e5cb964b8b21491929414b969078ccf7fecd472592506134c8915050565b611d175760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207369676e65720000000000000000000000000000000000006044820152606401610d7c565b600b805461ffff640100000000808304821686019091160265ffff0000000019909116179055336000908152600f6020526040812080546fffffffffffffffffffffffffffffffff7001000000000000000000000000000000008083048216870182160291161790555b82811015611da357611d92336130ed565b50611d9c816146b7565b9050611d81565b505050505050565b606060018054610c80906145a3565b611dc2612d5f565b6001600160a01b0381166000908152600d602052604090205460ff16611e2a5760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d7c565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b600b5468010000000000000000900461ffff1615611eab5760405162461bcd60e51b815260206004820152601260248201527f636f6e7472616374206973206c6f636b656400000000000000000000000000006044820152606401610d7c565b600b546601000000000000900461ffff16600114611f0b5760405162461bcd60e51b815260206004820152601460248201527f7075626c6963206d696e74206e6f74206c6976650000000000000000000000006044820152606401610d7c565b34611f1d8266470de4df8200006146e7565b14611f6a5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e742066756e647300000000000000000000000000006044820152606401610d7c565b600b547f000000000000000000000000000000000000000000000000000000000000000090611fa6908390640100000000900461ffff166146a4565b1115611ff45760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d7c565b336000908152600f602052604090205460059061203890839070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff166146a4565b11156120865760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610d7c565b600b805461ffff640100000000808304821685019091160265ffff0000000019909116179055336000908152600f6020526040812080546fffffffffffffffffffffffffffffffff7001000000000000000000000000000000008083048216860182160291161790555b81811015610c6d57612101336130ed565b5061210b816146b7565b90506120f0565b610c6d61211d612f4d565b83836134f0565b60606000600280548060200260200160405190810160405280929190818152602001828054801561217e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612160575b50939695505050505050565b600b5468010000000000000000900461ffff16156121ea5760405162461bcd60e51b815260206004820152601260248201527f636f6e7472616374206973206c6f636b656400000000000000000000000000006044820152606401610d7c565b60006121f9611fb68484613454565b600b549091507f000000000000000000000000000000000000000000000000000000000000000090612238908490640100000000900461ffff166146a4565b11156122865760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d7c565b336000908152600f602052604090205483906122b59084906fffffffffffffffffffffffffffffffff166146a4565b11156123035760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610d7c565b6123598186868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525073e5cb964b8b21491929414b969078ccf7fecd472592506134c8915050565b6123a55760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207369676e65720000000000000000000000000000000000006044820152606401610d7c565b600b805461ffff640100000000808304821686019091160265ffff0000000019909116179055336000908152600f6020526040812080546fffffffffffffffffffffffffffffffff8082168601167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790555b82811015611da35761242c336130ed565b50612436816146b7565b905061241b565b61244e612448612f4d565b83613108565b6124c05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d7c565b6124cc848484846135be565b50505050565b6124da612d5f565b6001600160a01b0381166000908152600c602052604090205460ff166125425760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d7c565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b60606000612570836118df565b9050806000036125e85760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f2060448201527f746f6b656e7300000000000000000000000000000000000000000000000000006064820152608401610d7c565b60025460008267ffffffffffffffff81111561260657612606614198565b60405190808252806020026020018201604052801561262f578160200160208202803683370190505b5090506000805b838110156126a357866001600160a01b03166002828154811061265b5761265b6146d1565b6000918252602090912001546001600160a01b03160361269b578083838060010194508151811061268e5761268e6146d1565b6020026020010181815250505b600101612636565b509095945050505050565b6060601180546126bd906145a3565b1590506126fd576126cc61274e565b60116126d784613647565b6040516020016126e993929190614841565b604051602081830303815290604052610c55565b61270561274e565b61270e83613647565b60405160200161271f92919061492a565b60405160208183030381529060405292915050565b61273c612d5f565b6127458261157c565b610c6d8161172f565b606060108054610c80906145a3565b600e6000612769612f4d565b6001600160a01b0316815260208101919091526040016000205460ff16806127ba5750612794612f4d565b6001600160a01b03166127af600a546001600160a01b031690565b6001600160a01b0316145b6128065760405162461bcd60e51b815260206004820152600f60248201527f63616c6c6572206e6f74207465616d00000000000000000000000000000000006044820152606401610d7c565b600b547f00000000000000000000000000000000000000000000000000000000000000009061283a90839061ffff166146a4565b11156128885760405162461bcd60e51b815260206004820152601260248201527f657863656564207465616d20737570706c7900000000000000000000000000006044820152606401610d7c565b600b805461ffff8082168401167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090911617905560005b81811015610edf576128d0836130ed565b506128da816146b7565b90506128bf565b606060128054610c80906145a3565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000091848116919083169063c455279190602401602060405180830381865afa158015612979573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299d9190614982565b6001600160a01b0316036129b5576001915050610c55565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6129ef612d5f565b6001600160a01b038116612a6b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d7c565b611697816133f5565b612a7c612d5f565b60008111612acc5760405162461bcd60e51b815260206004820152600c60248201527f616d6f756e7420656d70747900000000000000000000000000000000000000006044820152606401610d7c565b47811115612b1c5760405162461bcd60e51b815260206004820152601660248201527f616d6f756e7420657863656564732062616c616e6365000000000000000000006044820152606401610d7c565b6001600160a01b038216612b725760405162461bcd60e51b815260206004820152600c60248201527f61646472657373206e756c6c00000000000000000000000000000000000000006044820152606401610d7c565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610edf573d6000803e3d6000fd5b612bb0612d5f565b6001600160a01b0381166000908152600d602052604090205460ff1615612c195760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d7c565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b612c45612d5f565b600b546115fc9068010000000000000000900461ffff1615612c68576000612c6b565b60015b600b9060ff16815461ffff90911668010000000000000000027fffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffff909116179055565b6000303303612d0357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150612d069050565b50335b90565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610c555750610c558261377c565b612d67612f4d565b6001600160a01b0316612d82600a546001600160a01b031690565b6001600160a01b0316146115fc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d7c565b6127106bffffffffffffffffffffffff82161115612e5e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610d7c565b6001600160a01b038216612eb45760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610d7c565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600555565b60025460009082108015610c55575060006001600160a01b031660028381548110612f3057612f306146d1565b6000918252602090912001546001600160a01b0316141592915050565b60006119dc612cad565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612f9982611831565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166130505760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610d7c565b600161306361305e876137d2565b61384f565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156130b1573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006130e682846146a4565b9392505050565b6000610c55826040518060200160405280600081525061389a565b600061311382612f03565b6131855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d7c565b600061319083611831565b9050806001600160a01b0316846001600160a01b031614806131cb5750836001600160a01b03166131c084610d03565b6001600160a01b0316145b806129df57506129df81856128f0565b826001600160a01b03166131ee82611831565b6001600160a01b03161461326a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d7c565b6001600160a01b0382166132e55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b6132f0600082612f57565b8160028281548110613304576133046146d1565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061337682611831565b9050613383600083612f57565b60028281548110613396576133966146d1565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff191690556040518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000030606090811b8216602084015233901b1660348201526048810184905260688101839052608881018290526000906129df9060a80160405160208183030381529060405280519060200120613926565b60006001600160a01b0382166134de8585613961565b6001600160a01b031614949350505050565b816001600160a01b0316836001600160a01b0316036135515760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d7c565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6135c98484846131db565b6135d584848484613985565b6124cc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d7c565b60608160000361368a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156136b4578061369e816146b7565b91506136ad9050600a83614714565b915061368e565b60008167ffffffffffffffff8111156136cf576136cf614198565b6040519080825280601f01601f1916602001820160405280156136f9576020820181803683370190505b5090505b84156129df5761370e60018361482e565b915061371b600a8661499f565b6137269060306146a4565b60f81b81838151811061373b5761373b6146d1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613775600a86614714565b94506136fd565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610c555750610c5582613b14565b6000604051806080016040528060438152602001614a236043913980516020918201208351848301516040808701518051908601209051613832950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061385a60085490565b6040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281019190915260428101839052606201613832565b60006138a583613bf7565b90506138b46000848385613985565b610c555760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d7c565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01613832565b60008060006139708585613cdd565b9150915061397d81613d1f565b509392505050565b60006001600160a01b0384163b15613b0957836001600160a01b031663150b7a026139ae612f4d565b8786866040518563ffffffff1660e01b81526004016139d094939291906149b3565b6020604051808303816000875af1925050508015613a0b575060408051601f3d908101601f19168201909252613a08918101906149ef565b60015b613abe573d808015613a39576040519150601f19603f3d011682016040523d82523d6000602084013e613a3e565b606091505b508051600003613ab65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d7c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506129df565b506001949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613ba757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c5557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c55565b60006001600160a01b038216613c4f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d7c565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b6000808251604103613d135760208301516040840151606085015160001a613d0787828585613f0b565b9450945050505061149c565b5060009050600261149c565b6000816004811115613d3357613d33614a0c565b03613d3b5750565b6001816004811115613d4f57613d4f614a0c565b03613d9c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d7c565b6002816004811115613db057613db0614a0c565b03613dfd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d7c565b6003816004811115613e1157613e11614a0c565b03613e845760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b6004816004811115613e9857613e98614a0c565b036116975760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613f425750600090506003613fef565b8460ff16601b14158015613f5a57508460ff16601c14155b15613f6b5750600090506004613fef565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613fbf573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613fe857600060019250925050613fef565b9150600090505b94509492505050565b508054614004906145a3565b6000825580601f10614014575050565b601f01602090049060005260206000209081019061169791905b80821115614042576000815560010161402e565b5090565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461169757600080fd5b60006020828403121561408657600080fd5b81356130e681614046565b6001600160a01b038116811461169757600080fd5b600080604083850312156140b957600080fd5b82356140c481614091565b915060208301356bffffffffffffffffffffffff811681146140e557600080fd5b809150509250929050565b60005b8381101561410b5781810151838201526020016140f3565b50506000910152565b6000815180845261412c8160208601602086016140f0565b601f01601f19169290920160200192915050565b6020815260006130e66020830184614114565b60006020828403121561416557600080fd5b5035919050565b6000806040838503121561417f57600080fd5b823561418a81614091565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126141bf57600080fd5b813567ffffffffffffffff808211156141da576141da614198565b604051601f8301601f19908116603f0116810190828211818310171561420257614202614198565b8160405283815286602085880101111561421b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a0868803121561425357600080fd5b853561425e81614091565b9450602086013567ffffffffffffffff81111561427a57600080fd5b614286888289016141ae565b9450506040860135925060608601359150608086013560ff811681146142ab57600080fd5b809150509295509295909350565b6000602082840312156142cb57600080fd5b81356130e681614091565b6000806000606084860312156142eb57600080fd5b83356142f681614091565b9250602084013561430681614091565b929592945050506040919091013590565b6000806040838503121561432a57600080fd5b50508035926020909101359150565b60006020828403121561434b57600080fd5b813567ffffffffffffffff81111561436257600080fd5b6129df848285016141ae565b6000806000806060858703121561438457600080fd5b843567ffffffffffffffff8082111561439c57600080fd5b818701915087601f8301126143b057600080fd5b8135818111156143bf57600080fd5b8860208285010111156143d157600080fd5b6020928301999098509187013596604001359550909350505050565b6000806040838503121561440057600080fd5b823561440b81614091565b9150602083013580151581146140e557600080fd5b6020808252825182820181905260009190848201906040850190845b818110156144615783516001600160a01b03168352928401929184019160010161443c565b50909695505050505050565b6000806000806080858703121561448357600080fd5b843561448e81614091565b9350602085013561449e81614091565b925060408501359150606085013567ffffffffffffffff8111156144c157600080fd5b6144cd878288016141ae565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015614461578351835292840192918401916001016144f5565b6000806040838503121561452457600080fd5b823567ffffffffffffffff8082111561453c57600080fd5b614548868387016141ae565b9350602085013591508082111561455e57600080fd5b5061456b858286016141ae565b9150509250929050565b6000806040838503121561458857600080fd5b823561459381614091565b915060208301356140e581614091565b600181811c908216806145b757607f821691505b60208210810361182b57634e487b7160e01b600052602260045260246000fd5b60006001600160a01b038086168352808516602084015250606060408301526146036060830184614114565b95945050505050565b6000815161461e8185602086016140f0565b9290920192915050565b6000835161463a8184602088016140f0565b60609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190920190815260140192915050565b600082516146848184602087016140f0565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c5557610c5561468e565b600060001982036146ca576146ca61468e565b5060010190565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417610c5557610c5561468e565b634e487b7160e01b600052601260045260246000fd5b600082614723576147236146fe565b500490565b601f821115610edf57600081815260208120601f850160051c8101602086101561474f5750805b601f850160051c820191505b81811015611da35782815560010161475b565b815167ffffffffffffffff81111561478857614788614198565b61479c8161479684546145a3565b84614728565b602080601f8311600181146147d157600084156147b95750858301515b600019600386901b1c1916600185901b178555611da3565b600085815260208120601f198616915b82811015614800578886015182559484019460019091019084016147e1565b508582101561481e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b81810381811115610c5557610c5561468e565b6000845160206148548285838a016140f0565b81840191507f2f00000000000000000000000000000000000000000000000000000000000000825260016000875461488b816145a3565b81841680156148a157600181146148ba576148ea565b60ff1983168588015284821515830288010193506148ea565b8a6000528560002060005b838110156148e05781548982018801529086019087016148c5565b5050848288010193505b50507f2f0000000000000000000000000000000000000000000000000000000000000082525061491d600182018861460c565b9998505050505050505050565b6000835161493c8184602088016140f0565b7f2f0000000000000000000000000000000000000000000000000000000000000090830190815283516149768160018401602088016140f0565b01600101949350505050565b60006020828403121561499457600080fd5b81516130e681614091565b6000826149ae576149ae6146fe565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526149e56080830184614114565b9695505050505050565b600060208284031215614a0157600080fd5b81516130e681614046565b634e487b7160e01b600052602160045260246000fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212204018c7a12468af8656a674331b84bee16f54047151293e7373b32adb11c3088464736f6c63430008110033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74290000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000006f00000000000000000000000000000000000000000000000000000000000000de000000000000000000000000f0dee54a8df5f8094200d70f0deddac978c66b34000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000006697066733a2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d6141323541694d5857635453635478484c73355a31746f6355415548415578364a336d667a517a4341434c79000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d5a68315152486d6646597073484d4679526e6a4b4e53423678506e774c346e5570544e6b7971456e42573232000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103ad5760003560e01c8063920e35e6116101e7578063ba8bce551161010d578063e8b5498d116100a0578063f2fde38b1161006f578063f2fde38b14610bd5578063f3fef3a314610bf5578063f685137314610c15578063ff9413d814610c3557600080fd5b8063e8b5498d14610b49578063e985e9c514610b62578063ed329fa814610b82578063ef3c662414610ba157600080fd5b8063d547cfb7116100dc578063d547cfb714610acb578063de76957014610ae0578063e527c6dd14610b00578063e8a3d48514610b3457600080fd5b8063ba8bce5514610a3e578063bba7723e14610a5e578063c87b56dd14610a8b578063d48ede9914610aab57600080fd5b8063a4e2d63411610185578063b6ba3fcd11610154578063b6ba3fcd14610921578063b7d08c5c14610941578063b7f751d8146109f8578063b88d4fde14610a1e57600080fd5b8063a4e2d6341461089b578063a4f4f8af146108c3578063a945bf80146108e4578063affe39c1146108ff57600080fd5b806395d89b41116101c157806395d89b4114610833578063a05f9f0814610848578063a0712d6814610868578063a22cb4651461087b57600080fd5b8063920e35e6146107e0578063938e3d7b146108005780639509af061461082057600080fd5b80632f745c59116102d75780634f6ccce71161026a578063715018a611610239578063715018a6146107835780637dc42975146107985780638da5cb5b146107ad57806391ba317a146107cb57600080fd5b80634f6ccce7146107085780636352211e14610728578063636e746b1461074857806370a082311461076357600080fd5b806342842e0e116102a657806342842e0e1461068857806342966c68146106a85780634b457935146106c85780634dcc60af146106e857600080fd5b80632f745c591461062057806330176e13146106405780633408e470146106605780634047638d1461067357600080fd5b80630f9bb75c1161034f57806320379ee51161031e57806320379ee51461057657806323b872dd1461058b5780632a55205a146105ab5780632d0335ab146105ea57600080fd5b80630f9bb75c146104df57806314d7d5171461052157806318160ddd146105415780631afe7ed41461055657600080fd5b8063081812fc1161038b578063081812fc1461042b578063095ea7b3146104635780630c53c51c146104835780630f7e59701461049657600080fd5b806301ffc9a7146103b257806302fa7c47146103e757806306fdde0314610409575b600080fd5b3480156103be57600080fd5b506103d26103cd366004614074565b610c4a565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506104076104023660046140a6565b610c5b565b005b34801561041557600080fd5b5061041e610c71565b6040516103de9190614140565b34801561043757600080fd5b5061044b610446366004614153565b610d03565b6040516001600160a01b0390911681526020016103de565b34801561046f57600080fd5b5061040761047e36600461416c565b610da1565b61041e61049136600461423b565b610ee4565b3480156104a257600080fd5b5061041e6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b3480156104eb57600080fd5b506105137f00000000000000000000000000000000000000000000000000000000000000de81565b6040519081526020016103de565b34801561052d57600080fd5b5061040761053c36600461416c565b6110ea565b34801561054d57600080fd5b50610513611249565b34801561056257600080fd5b506104076105713660046142b9565b6112a5565b34801561058257600080fd5b50600854610513565b34801561059757600080fd5b506104076105a63660046142d6565b611336565b3480156105b757600080fd5b506105cb6105c6366004614317565b6113c4565b604080516001600160a01b0390931683526020830191909152016103de565b3480156105f657600080fd5b506105136106053660046142b9565b6001600160a01b031660009081526009602052604090205490565b34801561062c57600080fd5b5061051361063b36600461416c565b6114a3565b34801561064c57600080fd5b5061040761065b366004614339565b61157c565b34801561066c57600080fd5b5046610513565b34801561067f57600080fd5b50610407611590565b34801561069457600080fd5b506104076106a33660046142d6565b6115fe565b3480156106b457600080fd5b506104076106c3366004614153565b611619565b3480156106d457600080fd5b506104076106e33660046142b9565b61169a565b3480156106f457600080fd5b50610407610703366004614339565b61172f565b34801561071457600080fd5b50610513610723366004614153565b611758565b34801561073457600080fd5b5061044b610743366004614153565b611831565b34801561075457600080fd5b50610513662386f26fc1000081565b34801561076f57600080fd5b5061051361077e3660046142b9565b6118df565b34801561078f57600080fd5b506104076119b8565b3480156107a457600080fd5b50610513600581565b3480156107b957600080fd5b50600a546001600160a01b031661044b565b3480156107d757600080fd5b506105136119ca565b3480156107ec57600080fd5b506104076107fb3660046142b9565b6119e1565b34801561080c57600080fd5b5061040761081b366004614339565b611a76565b61040761082e36600461436e565b611a8a565b34801561083f57600080fd5b5061041e611dab565b34801561085457600080fd5b506104076108633660046142b9565b611dba565b610407610876366004614153565b611e4b565b34801561088757600080fd5b506104076108963660046143ed565b612112565b3480156108a757600080fd5b50600b5468010000000000000000900461ffff166001146103d2565b3480156108cf57600080fd5b50600b54640100000000900461ffff16610513565b3480156108f057600080fd5b5061051366470de4df82000081565b34801561090b57600080fd5b50610914612124565b6040516103de9190614420565b34801561092d57600080fd5b5061040761093c36600461436e565b61218a565b34801561094d57600080fd5b506109c861095c3660046142b9565b6040805180820190915260008082526020820152506001600160a01b03166000908152600f60209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff8082168452700100000000000000000000000000000000909104169082015290565b6040805182516fffffffffffffffffffffffffffffffff90811682526020938401511692810192909252016103de565b348015610a0457600080fd5b50600b546601000000000000900461ffff166001146103d2565b348015610a2a57600080fd5b50610407610a3936600461446d565b61243d565b348015610a4a57600080fd5b50610407610a593660046142b9565b6124d2565b348015610a6a57600080fd5b50610a7e610a793660046142b9565b612563565b6040516103de91906144d9565b348015610a9757600080fd5b5061041e610aa6366004614153565b6126ae565b348015610ab757600080fd5b50610407610ac6366004614511565b612734565b348015610ad757600080fd5b5061041e61274e565b348015610aec57600080fd5b50610407610afb36600461416c565b61275d565b348015610b0c57600080fd5b506105137f0000000000000000000000000000000000000000000000000000000000000bb881565b348015610b4057600080fd5b5061041e6128e1565b348015610b5557600080fd5b50600b5461ffff16610513565b348015610b6e57600080fd5b506103d2610b7d366004614575565b6128f0565b348015610b8e57600080fd5b50600b5462010000900461ffff16610513565b348015610bad57600080fd5b506105137f000000000000000000000000000000000000000000000000000000000000006f81565b348015610be157600080fd5b50610407610bf03660046142b9565b6129e7565b348015610c0157600080fd5b50610407610c1036600461416c565b612a74565b348015610c2157600080fd5b50610407610c303660046142b9565b612ba8565b348015610c4157600080fd5b50610407612c3d565b6000610c5582612d09565b92915050565b610c63612d5f565b610c6d8282612dd8565b5050565b606060008054610c80906145a3565b80601f0160208091040260200160405190810160405280929190818152602001828054610cac906145a3565b8015610cf95780601f10610cce57610100808354040283529160200191610cf9565b820191906000526020600020905b815481529060010190602001808311610cdc57829003601f168201915b5050505050905090565b6000610d0e82612f03565b610d855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610dac82611831565b9050806001600160a01b0316836001600160a01b031603610e355760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b806001600160a01b0316610e47612f4d565b6001600160a01b03161480610e635750610e6381610b7d612f4d565b610ed55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d7c565b610edf8383612f57565b505050565b60408051606081810183526001600160a01b03881660008181526009602090815290859020548452830152918101869052610f228782878787612fd2565b610f945760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b6001600160a01b038716600090815260096020526040902054610fb89060016130da565b6001600160a01b0388166000908152600960205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061100890899033908a906145d7565b60405180910390a1600080306001600160a01b0316888a604051602001611030929190614628565b60408051601f198184030181529082905261104a91614672565b6000604051808303816000865af19150503d8060008114611087576040519150601f19603f3d011682016040523d82523d6000602084013e61108c565b606091505b5091509150816110de5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610d7c565b98975050505050505050565b600d60006110f6612f4d565b6001600160a01b0316815260208101919091526040016000205460ff1661115f5760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206172746973740000000000000000000000000000006044820152606401610d7c565b600b547f000000000000000000000000000000000000000000000000000000000000006f9061119990839062010000900461ffff166146a4565b11156111e75760405162461bcd60e51b815260206004820152601460248201527f6578636565642061727469737420737570706c790000000000000000000000006044820152606401610d7c565b600b805461ffff6201000080830482168501909116027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff90911617905560005b81811015610edf57611238836130ed565b50611242816146b7565b9050611227565b600254600090815b818110156112a05760006001600160a01b031660028281548110611277576112776146d1565b6000918252602090912001546001600160a01b031614611298578260010192505b600101611251565b505090565b6112ad612d5f565b6001600160a01b0381166000908152600e602052604090205460ff166113155760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d7c565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b611347611341612f4d565b82613108565b6113b95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d7c565b610edf8383836131db565b60008281526006602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916114655750604080518082019091526005546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090611489906bffffffffffffffffffffffff16876146e7565b6114939190614714565b91519350909150505b9250929050565b6002546000905b8082101561150057836001600160a01b0316600283815481106114cf576114cf6146d1565b6000918252602090912001546001600160a01b0316036114f55760001983019215611500575b8160010191506114aa565b8082106115755760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d7c565b5092915050565b611584612d5f565b6010610c6d828261476e565b611598612d5f565b600b546115fc906601000000000000900461ffff16156115b95760006115bc565b60015b600b9060ff16815461ffff9091166601000000000000027fffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffff909116179055565b565b610edf8383836040518060200160405280600081525061243d565b600c6000611625612f4d565b6001600160a01b0316815260208101919091526040016000205460ff1661168e5760405162461bcd60e51b815260206004820152601160248201527f63616c6c6572206e6f74206275726e65720000000000000000000000000000006044820152606401610d7c565b6116978161336b565b50565b6116a2612d5f565b6001600160a01b0381166000908152600c602052604090205460ff161561170b5760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d7c565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b611737612d5f565b805160000361174c5761169760116000613ff8565b6011610c6d828261476e565b6002546000905b808210156117b65760006001600160a01b031660028381548110611785576117856146d1565b6000918252602090912001546001600160a01b0316146117ab57600019830192156117b6575b81600101915061175f565b80821061182b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d7c565b50919050565b600061183c82612f03565b6118ae5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d7c565b6000600283815481106118c3576118c36146d1565b6000918252602090912001546001600160a01b03169392505050565b60006001600160a01b03821661195d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d7c565b60025460005b818110156119b157836001600160a01b031660028281548110611988576119886146d1565b6000918252602090912001546001600160a01b0316036119a9578260010192505b600101611963565b5050919050565b6119c0612d5f565b6115fc60006133f5565b6002546000906119dc9060019061482e565b905090565b6119e9612d5f565b6001600160a01b0381166000908152600e602052604090205460ff1615611a525760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d7c565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b611a7e612d5f565b6012610c6d828261476e565b600b5468010000000000000000900461ffff1615611aea5760405162461bcd60e51b815260206004820152601260248201527f636f6e7472616374206973206c6f636b656400000000000000000000000000006044820152606401610d7c565b6000611af96110808484613454565b905034611b0d83662386f26fc100006146e7565b14611b5a5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e742066756e647300000000000000000000000000006044820152606401610d7c565b600b547f0000000000000000000000000000000000000000000000000000000000000bb890611b96908490640100000000900461ffff166146a4565b1115611be45760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d7c565b336000908152600f60205260409020548390611c2790849070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff166146a4565b1115611c755760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610d7c565b611ccb8186868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525073e5cb964b8b21491929414b969078ccf7fecd472592506134c8915050565b611d175760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207369676e65720000000000000000000000000000000000006044820152606401610d7c565b600b805461ffff640100000000808304821686019091160265ffff0000000019909116179055336000908152600f6020526040812080546fffffffffffffffffffffffffffffffff7001000000000000000000000000000000008083048216870182160291161790555b82811015611da357611d92336130ed565b50611d9c816146b7565b9050611d81565b505050505050565b606060018054610c80906145a3565b611dc2612d5f565b6001600160a01b0381166000908152600d602052604090205460ff16611e2a5760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d7c565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b600b5468010000000000000000900461ffff1615611eab5760405162461bcd60e51b815260206004820152601260248201527f636f6e7472616374206973206c6f636b656400000000000000000000000000006044820152606401610d7c565b600b546601000000000000900461ffff16600114611f0b5760405162461bcd60e51b815260206004820152601460248201527f7075626c6963206d696e74206e6f74206c6976650000000000000000000000006044820152606401610d7c565b34611f1d8266470de4df8200006146e7565b14611f6a5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e742066756e647300000000000000000000000000006044820152606401610d7c565b600b547f0000000000000000000000000000000000000000000000000000000000000bb890611fa6908390640100000000900461ffff166146a4565b1115611ff45760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d7c565b336000908152600f602052604090205460059061203890839070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff166146a4565b11156120865760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610d7c565b600b805461ffff640100000000808304821685019091160265ffff0000000019909116179055336000908152600f6020526040812080546fffffffffffffffffffffffffffffffff7001000000000000000000000000000000008083048216860182160291161790555b81811015610c6d57612101336130ed565b5061210b816146b7565b90506120f0565b610c6d61211d612f4d565b83836134f0565b60606000600280548060200260200160405190810160405280929190818152602001828054801561217e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612160575b50939695505050505050565b600b5468010000000000000000900461ffff16156121ea5760405162461bcd60e51b815260206004820152601260248201527f636f6e7472616374206973206c6f636b656400000000000000000000000000006044820152606401610d7c565b60006121f9611fb68484613454565b600b549091507f0000000000000000000000000000000000000000000000000000000000000bb890612238908490640100000000900461ffff166146a4565b11156122865760405162461bcd60e51b815260206004820152601460248201527f657863656564207075626c696320737570706c790000000000000000000000006044820152606401610d7c565b336000908152600f602052604090205483906122b59084906fffffffffffffffffffffffffffffffff166146a4565b11156123035760405162461bcd60e51b815260206004820152601160248201527f65786365656420616c6c6f636174696f6e0000000000000000000000000000006044820152606401610d7c565b6123598186868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525073e5cb964b8b21491929414b969078ccf7fecd472592506134c8915050565b6123a55760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207369676e65720000000000000000000000000000000000006044820152606401610d7c565b600b805461ffff640100000000808304821686019091160265ffff0000000019909116179055336000908152600f6020526040812080546fffffffffffffffffffffffffffffffff8082168601167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790555b82811015611da35761242c336130ed565b50612436816146b7565b905061241b565b61244e612448612f4d565b83613108565b6124c05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d7c565b6124cc848484846135be565b50505050565b6124da612d5f565b6001600160a01b0381166000908152600c602052604090205460ff166125425760405162461bcd60e51b815260206004820152601660248201527f61646472657373206e6f742072656769737465726564000000000000000000006044820152606401610d7c565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b60606000612570836118df565b9050806000036125e85760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f2060448201527f746f6b656e7300000000000000000000000000000000000000000000000000006064820152608401610d7c565b60025460008267ffffffffffffffff81111561260657612606614198565b60405190808252806020026020018201604052801561262f578160200160208202803683370190505b5090506000805b838110156126a357866001600160a01b03166002828154811061265b5761265b6146d1565b6000918252602090912001546001600160a01b03160361269b578083838060010194508151811061268e5761268e6146d1565b6020026020010181815250505b600101612636565b509095945050505050565b6060601180546126bd906145a3565b1590506126fd576126cc61274e565b60116126d784613647565b6040516020016126e993929190614841565b604051602081830303815290604052610c55565b61270561274e565b61270e83613647565b60405160200161271f92919061492a565b60405160208183030381529060405292915050565b61273c612d5f565b6127458261157c565b610c6d8161172f565b606060108054610c80906145a3565b600e6000612769612f4d565b6001600160a01b0316815260208101919091526040016000205460ff16806127ba5750612794612f4d565b6001600160a01b03166127af600a546001600160a01b031690565b6001600160a01b0316145b6128065760405162461bcd60e51b815260206004820152600f60248201527f63616c6c6572206e6f74207465616d00000000000000000000000000000000006044820152606401610d7c565b600b547f00000000000000000000000000000000000000000000000000000000000000de9061283a90839061ffff166146a4565b11156128885760405162461bcd60e51b815260206004820152601260248201527f657863656564207465616d20737570706c7900000000000000000000000000006044820152606401610d7c565b600b805461ffff8082168401167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090911617905560005b81811015610edf576128d0836130ed565b506128da816146b7565b90506128bf565b606060128054610c80906145a3565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c191848116919083169063c455279190602401602060405180830381865afa158015612979573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299d9190614982565b6001600160a01b0316036129b5576001915050610c55565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6129ef612d5f565b6001600160a01b038116612a6b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d7c565b611697816133f5565b612a7c612d5f565b60008111612acc5760405162461bcd60e51b815260206004820152600c60248201527f616d6f756e7420656d70747900000000000000000000000000000000000000006044820152606401610d7c565b47811115612b1c5760405162461bcd60e51b815260206004820152601660248201527f616d6f756e7420657863656564732062616c616e6365000000000000000000006044820152606401610d7c565b6001600160a01b038216612b725760405162461bcd60e51b815260206004820152600c60248201527f61646472657373206e756c6c00000000000000000000000000000000000000006044820152606401610d7c565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610edf573d6000803e3d6000fd5b612bb0612d5f565b6001600160a01b0381166000908152600d602052604090205460ff1615612c195760405162461bcd60e51b815260206004820152601a60248201527f6164647265737320616c726561647920726567697374657265640000000000006044820152606401610d7c565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b612c45612d5f565b600b546115fc9068010000000000000000900461ffff1615612c68576000612c6b565b60015b600b9060ff16815461ffff90911668010000000000000000027fffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffff909116179055565b6000303303612d0357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150612d069050565b50335b90565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610c555750610c558261377c565b612d67612f4d565b6001600160a01b0316612d82600a546001600160a01b031690565b6001600160a01b0316146115fc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d7c565b6127106bffffffffffffffffffffffff82161115612e5e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610d7c565b6001600160a01b038216612eb45760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610d7c565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600555565b60025460009082108015610c55575060006001600160a01b031660028381548110612f3057612f306146d1565b6000918252602090912001546001600160a01b0316141592915050565b60006119dc612cad565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612f9982611831565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166130505760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610d7c565b600161306361305e876137d2565b61384f565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156130b1573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006130e682846146a4565b9392505050565b6000610c55826040518060200160405280600081525061389a565b600061311382612f03565b6131855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d7c565b600061319083611831565b9050806001600160a01b0316846001600160a01b031614806131cb5750836001600160a01b03166131c084610d03565b6001600160a01b0316145b806129df57506129df81856128f0565b826001600160a01b03166131ee82611831565b6001600160a01b03161461326a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d7c565b6001600160a01b0382166132e55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b6132f0600082612f57565b8160028281548110613304576133046146d1565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600061337682611831565b9050613383600083612f57565b60028281548110613396576133966146d1565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff191690556040518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000030606090811b8216602084015233901b1660348201526048810184905260688101839052608881018290526000906129df9060a80160405160208183030381529060405280519060200120613926565b60006001600160a01b0382166134de8585613961565b6001600160a01b031614949350505050565b816001600160a01b0316836001600160a01b0316036135515760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d7c565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6135c98484846131db565b6135d584848484613985565b6124cc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d7c565b60608160000361368a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156136b4578061369e816146b7565b91506136ad9050600a83614714565b915061368e565b60008167ffffffffffffffff8111156136cf576136cf614198565b6040519080825280601f01601f1916602001820160405280156136f9576020820181803683370190505b5090505b84156129df5761370e60018361482e565b915061371b600a8661499f565b6137269060306146a4565b60f81b81838151811061373b5761373b6146d1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613775600a86614714565b94506136fd565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610c555750610c5582613b14565b6000604051806080016040528060438152602001614a236043913980516020918201208351848301516040808701518051908601209051613832950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061385a60085490565b6040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281019190915260428101839052606201613832565b60006138a583613bf7565b90506138b46000848385613985565b610c555760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d7c565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01613832565b60008060006139708585613cdd565b9150915061397d81613d1f565b509392505050565b60006001600160a01b0384163b15613b0957836001600160a01b031663150b7a026139ae612f4d565b8786866040518563ffffffff1660e01b81526004016139d094939291906149b3565b6020604051808303816000875af1925050508015613a0b575060408051601f3d908101601f19168201909252613a08918101906149ef565b60015b613abe573d808015613a39576040519150601f19603f3d011682016040523d82523d6000602084013e613a3e565b606091505b508051600003613ab65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d7c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506129df565b506001949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613ba757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c5557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c55565b60006001600160a01b038216613c4f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d7c565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b6000808251604103613d135760208301516040840151606085015160001a613d0787828585613f0b565b9450945050505061149c565b5060009050600261149c565b6000816004811115613d3357613d33614a0c565b03613d3b5750565b6001816004811115613d4f57613d4f614a0c565b03613d9c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d7c565b6002816004811115613db057613db0614a0c565b03613dfd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d7c565b6003816004811115613e1157613e11614a0c565b03613e845760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b6004816004811115613e9857613e98614a0c565b036116975760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610d7c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613f425750600090506003613fef565b8460ff16601b14158015613f5a57508460ff16601c14155b15613f6b5750600090506004613fef565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613fbf573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613fe857600060019250925050613fef565b9150600090505b94509492505050565b508054614004906145a3565b6000825580601f10614014575050565b601f01602090049060005260206000209081019061169791905b80821115614042576000815560010161402e565b5090565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461169757600080fd5b60006020828403121561408657600080fd5b81356130e681614046565b6001600160a01b038116811461169757600080fd5b600080604083850312156140b957600080fd5b82356140c481614091565b915060208301356bffffffffffffffffffffffff811681146140e557600080fd5b809150509250929050565b60005b8381101561410b5781810151838201526020016140f3565b50506000910152565b6000815180845261412c8160208601602086016140f0565b601f01601f19169290920160200192915050565b6020815260006130e66020830184614114565b60006020828403121561416557600080fd5b5035919050565b6000806040838503121561417f57600080fd5b823561418a81614091565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126141bf57600080fd5b813567ffffffffffffffff808211156141da576141da614198565b604051601f8301601f19908116603f0116810190828211818310171561420257614202614198565b8160405283815286602085880101111561421b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a0868803121561425357600080fd5b853561425e81614091565b9450602086013567ffffffffffffffff81111561427a57600080fd5b614286888289016141ae565b9450506040860135925060608601359150608086013560ff811681146142ab57600080fd5b809150509295509295909350565b6000602082840312156142cb57600080fd5b81356130e681614091565b6000806000606084860312156142eb57600080fd5b83356142f681614091565b9250602084013561430681614091565b929592945050506040919091013590565b6000806040838503121561432a57600080fd5b50508035926020909101359150565b60006020828403121561434b57600080fd5b813567ffffffffffffffff81111561436257600080fd5b6129df848285016141ae565b6000806000806060858703121561438457600080fd5b843567ffffffffffffffff8082111561439c57600080fd5b818701915087601f8301126143b057600080fd5b8135818111156143bf57600080fd5b8860208285010111156143d157600080fd5b6020928301999098509187013596604001359550909350505050565b6000806040838503121561440057600080fd5b823561440b81614091565b9150602083013580151581146140e557600080fd5b6020808252825182820181905260009190848201906040850190845b818110156144615783516001600160a01b03168352928401929184019160010161443c565b50909695505050505050565b6000806000806080858703121561448357600080fd5b843561448e81614091565b9350602085013561449e81614091565b925060408501359150606085013567ffffffffffffffff8111156144c157600080fd5b6144cd878288016141ae565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015614461578351835292840192918401916001016144f5565b6000806040838503121561452457600080fd5b823567ffffffffffffffff8082111561453c57600080fd5b614548868387016141ae565b9350602085013591508082111561455e57600080fd5b5061456b858286016141ae565b9150509250929050565b6000806040838503121561458857600080fd5b823561459381614091565b915060208301356140e581614091565b600181811c908216806145b757607f821691505b60208210810361182b57634e487b7160e01b600052602260045260246000fd5b60006001600160a01b038086168352808516602084015250606060408301526146036060830184614114565b95945050505050565b6000815161461e8185602086016140f0565b9290920192915050565b6000835161463a8184602088016140f0565b60609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190920190815260140192915050565b600082516146848184602087016140f0565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c5557610c5561468e565b600060001982036146ca576146ca61468e565b5060010190565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417610c5557610c5561468e565b634e487b7160e01b600052601260045260246000fd5b600082614723576147236146fe565b500490565b601f821115610edf57600081815260208120601f850160051c8101602086101561474f5750805b601f850160051c820191505b81811015611da35782815560010161475b565b815167ffffffffffffffff81111561478857614788614198565b61479c8161479684546145a3565b84614728565b602080601f8311600181146147d157600084156147b95750858301515b600019600386901b1c1916600185901b178555611da3565b600085815260208120601f198616915b82811015614800578886015182559484019460019091019084016147e1565b508582101561481e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b81810381811115610c5557610c5561468e565b6000845160206148548285838a016140f0565b81840191507f2f00000000000000000000000000000000000000000000000000000000000000825260016000875461488b816145a3565b81841680156148a157600181146148ba576148ea565b60ff1983168588015284821515830288010193506148ea565b8a6000528560002060005b838110156148e05781548982018801529086019087016148c5565b5050848288010193505b50507f2f0000000000000000000000000000000000000000000000000000000000000082525061491d600182018861460c565b9998505050505050505050565b6000835161493c8184602088016140f0565b7f2f0000000000000000000000000000000000000000000000000000000000000090830190815283516149768160018401602088016140f0565b01600101949350505050565b60006020828403121561499457600080fd5b81516130e681614091565b6000826149ae576149ae6146fe565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526149e56080830184614114565b9695505050505050565b600060208284031215614a0157600080fd5b81516130e681614046565b634e487b7160e01b600052602160045260246000fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212204018c7a12468af8656a674331b84bee16f54047151293e7373b32adb11c3088464736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000006f00000000000000000000000000000000000000000000000000000000000000de000000000000000000000000f0dee54a8df5f8094200d70f0deddac978c66b34000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000006697066733a2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d6141323541694d5857635453635478484c73355a31746f6355415548415578364a336d667a517a4341434c79000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d5a68315152486d6646597073484d4679526e6a4b4e53423678506e774c346e5570544e6b7971456e42573232000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseUri_ (string): ipfs:/
Arg [1] : ipfsHash_ (string): QmaA25AiMXWcTScTxHLs5Z1tocUAUHAUx6J3mfzQzCACLy
Arg [2] : contractUri_ (string): QmZh1QRHmfFYpsHMFyRnjKNSB6xPnwL4nUpTNkyqEnBW22
Arg [3] : tokenMax_ (uint256[3]): 3000,111,222
Arg [4] : royaltyAddress (address): 0xf0DeE54a8dF5f8094200d70f0DedDac978C66B34
Arg [5] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [4] : 000000000000000000000000000000000000000000000000000000000000006f
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000de
Arg [6] : 000000000000000000000000f0dee54a8df5f8094200d70f0deddac978c66b34
Arg [7] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 697066733a2f0000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [11] : 516d6141323541694d5857635453635478484c73355a31746f63554155484155
Arg [12] : 78364a336d667a517a4341434c79000000000000000000000000000000000000
Arg [13] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [14] : 516d5a68315152486d6646597073484d4679526e6a4b4e53423678506e774c34
Arg [15] : 6e5570544e6b7971456e42573232000000000000000000000000000000000000


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.