ETH Price: $3,113.88 (-2.18%)

Token

STATE OF THE ART by ThankYouX (SOTAX)
 

Overview

Max Total Supply

1,750 SOTAX

Holders

616

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
tokeno.eth
Balance
17 SOTAX
0xbE5Bc33791936eCf1a3E122059A4568C97f636cb
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

STATE OF THE ART is the first large scale hybrid collection by ThankYouX. This project reimagines the use of blockchain technology as a medium rather than a tool for distribution. The collection consists of four large scale paintings broken up into 400 tiles each— creating 1600 total unique digital artworks that come paired with their physical counterpart. Upon mint, participants will randomly receive a singular digital tile corresponding with a section of one of the four paintings. Later, collectors will be able to claim the identical physical artwork.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
StateOfTheArt

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 17 : StateOfTheArt.sol
// SPDX-License-Identifier: MIT

/// @title State Of The Art by ThankYouX
/// @author transientlabs.xyz

/*                                                                                                                                                                                                                                                               
                   ."<}|\|[!^    .!!!!!!!!!!!!!!!!!l       '!!!'      "!!!!!!!!!!!!!!!!!' !!!!!!!!!!!!!!.               `:_1|\([i^.        `!!!!!!!!!!!!"        ,!!!!!!!!!!!!!!!!!` ^!!!!.         I!!!I     ^!!!!!!!!!!!!^                 '!!!`          .!!!!!!!!!I:^.      !!!!!!!!!!!!!!!!!!          
                 ,x$$Wr|)/z$$&!  `vvccccv@$$&vccccv(       f$$$]      /vccccc&$$Bvcccccv''$$$$$$$$$$$$$$.            '?&$$zt||fz$$@1.      /$$8nnnnnnnnn;        &$$$$$$$$$$$$$$$$$, j$$$$.        .$$$$n     f$$&vcccccccv:                 v$$$f          :$$$unnnnuzB$$#>.  'vvccccz$$$Mcccccv/          
                \$${'      'j$$|         B$$:             :$$B$z             )$$\        ,$$$$r"""""""""            :@$W,.      .)$$M'     %$$_                  """"""{$$$$|"""""". B$$$#         "$$$$[     &$$I                          I$$B$B          {$$#        `|$$#.        '$$$`                 
               -$$?         .B$$.       `$$$`            .%$|)$$.            z$$+        ~$$$$!                    `@$$'          *$${    '$$$"                        [$$$$,       `$$$$/         -$$$$;    .$$$^                         .&$u1$$'         *$$)          &$$,        ,$$@                  
               W$$`          n$$`       I$$$.            j$%.l$$"            @$$,        |$$$$`                    z$$[           |$$r    ;$$$.                        x$$$$.       I$$$$+         u$$$$^    ,$$$.                         {$@'i$$"        .$$$;          c$$I        ~$$z                  
               u$$|          `'.        |$$v            ,$$> `$$-           `$$$'        #$$$B                    ^$$$`           u$$\    )$$*                         %$$$#        \$$$$,         @$$$$.    [$$M                         ,$$! "$$~        `$$$'          B$$^        /$$)                  
               `%$$n'                   W$$]            #$8. .$$n           i$$@        .$$$$r                    <$$@           .@$$>    M$${                        '$$$$1        &$$$$'        '$$$$M     c$$(                        .%$z  '$$\        ;$$B          I$$&         M$$i                  
                'n$$%_.                '$$$,           _$$,   #$@           t$$n        ^$$$$~                    j$$n           `$$$^   .$$$:                        :$$$$;       .$$$$@         ,$$$$)    .$$$I                        _$$,   @$#        ]$$n         l@$%`        .$$$"                  
                  ,u$$@-.              :$$$.          ^$$)    /$$`          %$$+        +$$$$)iiiiii;             B$$+           <$$@.   `$$$;^^^^^^^.                1$$$$'       ^$$$$&<<<<<<<<<j$$$$;    ^$$$l^^^^^^^                '@$x    v$$.       x$$n:::::I~)W$@).         "$$$.                  
                    :%$$B+             }$$M           W$%.    _$$,         '$$$"        r$$$$$$$$$$$f            '$$$"           f$$n    ;$$$$$$$$$$$`                #$$$%        l$$$$$$$$$$$$$$$$$$$'    ~$$$$$$$$$$8                u$@'    [$$"       %$$8WWWWW@$$(^.           _$$8                   
                     .i&$$#"           z$$(          i$$<     :$$_         ;$$$.        B$$$W"""""""'            "$$$.           %$$-    [$$n........                .$$$$x        {$$$$>^^^^^^^^^%$$$%     r$$r........               ~$$>     :$$_      '$$$`     ]$$)             n$$t                   
                       .-B$$j.        .$$$;         .%$W.     `$$f         ($$c        `$$$$\                    <$$#           '$$$"    n$$]                        ,$$$$]        v$$$$.        .$$$$t     B$$>                      '$$v      '$$u      :$$$.     `$$B.           .@$$!                   
                         .c$$r        `$$$'         f$$~``````^$$&         M$$}        !$$$$~                    ($$\           "$$$.    B$$;                        ?$$$$;        @$$$z         "$$$$i    '$$$^                      \$$~```````@$@.     {$$M       W$$I           `$$$`                   
               '.         'B$$,       :$$B         ;$$$$$$$$$$$$$$.       .$$$,        \$$$$,                    z$$~           >$$M    '$$$`                        u$$$$`       `$$$$}         -$$$$`    "$$$.                     ^$$$$$$$$$$$$$$`     *$$)       <$$*           i$$@                    
             z$$^          f$$-       ]$$x        'B$8.        r$$,       ^$$$'        8$$$$'                    %$$,           /$${    ;$$$.                        @$$$$.       l$$$$,         u$$$@     ~$$z                     .&$B'        }$$<    .$$$;       .B$$"          f$$x                    
             c$$+          #$$"       r$$[        {$$<         ?$$[       I$$8        .$$$$B                     8$$:          '@$$`    )$$*                        '$$$$#        |$$$$'        .@$$$z     |$$(                     /$$i         I$$j    "$$$'        {$$r          %$$+                    
             ,$$B'        i$$j        8$$I       `@$8.         ;$$z       }$$j        ^$$$$x                     ($$r         `*$$<     #$${                        ,$$$$1        W$$$8         ^$$$$(     *$$>                    ^$$*          ^$$%    _$$8         `$$$'        '$$$"                    
              >$$B1;^`^,_c$B[.       '$$$`      .#$$,          `$$$.      u$$-        !$$$$%zzzzzzzzj            .r$$M?,^``"!f$$c`     .$$$:                        _$$$$:       '$$$$j         <$$$$i    .$$$],,,,,,,,,           c$$,          .$$$'   u$$/          v$$i        "$$$.                    
               '_*$$$$$$%rI.         ,@@@.      [@@\           .@@@"      %@@:        {@@@@@@@@@@@@@)              ^(8$$$$$$$#}"       ,@@@'                        /@@@B'       ,@@@@-         t@@@@"    ^@@@@@@@@@@@@&          !@@v            &@@"   B@@!          >@@n        i@@*                     
                   .'''.                                                                                              .''`'.                                                                                                                                                                                
*/

pragma solidity 0.8.17;

import "ERC721.sol";
import "EIP2981AllToken.sol";
import "BlockList.sol";
import "Ownable.sol";
import "ReentrancyGuard.sol";
import "MerkleProof.sol";
import "ECDSA.sol";
import "Strings.sol";

contract StateOfTheArt is ERC721, EIP2981AllToken, BlockList, Ownable, ReentrancyGuard {
    using Strings for uint256;
    //================= State Variables =================//
    // general details
    address public adminAddress;
    address payable public payoutAddress;

    // sale details
    bool public tokensSet;
    bool public preSaleOpen;
    bool public publicSaleOpen;
    bytes32 public merkleRoot;
    uint256 public mintPrice;
    uint256 public mintAllowance;
    mapping(address => uint256) internal _numMinted;
    uint16[] internal _tokenArray;

    // token uri details
    string internal _baseTokenUri;
    mapping(uint256 => string) internal _tokenUriOverrides;

    // merge details
    bool public mergeOpen;
    address public mergeSigner;
    uint256 internal _counter;

    //================= Events =================//
    event Merge(address indexed owner, uint256 indexed mergedTokenId, string indexed newTokenUri, uint256[] burnedTokens);

    //================= Modifiers =================//
    modifier adminOrOwner {
        require(msg.sender == adminAddress || msg.sender == owner(), "Address not admin or owner");
        _;
    }

    modifier onlyAdmin {
        require(msg.sender == adminAddress, "Address not admin");
        _;
    }
    //================= Constructor =================//
    constructor(
        address admin,
        address payout,
        bytes32 root,
        uint256 price,
        uint256 allowance,
        string memory initUri,
        address signer,
        address royaltyPayout,
        uint256 royaltyPerc
    )
    ERC721("STATE OF THE ART by ThankYouX", "SOTAX")
    EIP2981AllToken(royaltyPayout, royaltyPerc)
    BlockList()
    Ownable()
    ReentrancyGuard()
    {   
        // state updates
        adminAddress = admin;
        payoutAddress = payable(payout);
        merkleRoot = root;
        mintPrice = price;
        mintAllowance = allowance;
        _baseTokenUri = initUri;
        mergeSigner = signer;
    }

    //================= General Functions =================//
    /// @notice function to create token array
    /// @dev requires admin or owner
    function setTokenArray() external adminOrOwner {
        require(!tokensSet, "Token array already set");
        for (uint16 i = 1; i < 1601; i++) {
            _tokenArray.push(i);
        }
        tokensSet = true;
    }
    
    /// @notice function to renounce admin rights
    /// @dev requires admin only
    function renounceAdmin() external onlyAdmin {
        adminAddress = address(0);
    }

    /// @notice function to set admin address
    /// @dev requires owner
    function setAdminAddress(address newAdmin) external onlyOwner {
        adminAddress = newAdmin;
    }

    /// @notice function to set payout address
    /// @dev requires owner
    function setPayoutAddress(address newPayout) external onlyOwner {
        payoutAddress = payable(newPayout);
    }

    /// @notice sets the base URI
    /// @dev requires admin or owner
    function setBaseURI(string memory newUri) external adminOrOwner {
        _baseTokenUri = newUri;
    }

    /// @notice function to get total supply
    function totalSupply() external view returns(uint256) {
        return _counter;
    }

    //================= Sale Functions =================//
    /// @notice function to set the pre-sale open
    /// @dev requires admin or owner
    function openPreSale() external adminOrOwner {
        preSaleOpen = true;
        publicSaleOpen = false;
    }

    /// @notice function to set the public sale open
    /// @dev requires admin or owner
    function openPublicSale() external adminOrOwner {
        preSaleOpen = false;
        publicSaleOpen = true;
    }

    /// @notice function to close both sales
    /// @dev requires admin or owner
    function closeSales() external adminOrOwner {
        preSaleOpen = false;
        publicSaleOpen = false;
    }

    /// @notice function to set the merkle root
    /// @dev requires admin or owner
    function setMerkleRoot(bytes32 newMerkleRoot) external adminOrOwner {
        merkleRoot = newMerkleRoot;
    }

    /// @notice function to set the mint price
    /// @dev requires admin or owner
    function setMintPrice(uint256 newPrice) external adminOrOwner {
        mintPrice = newPrice;
    }

    /// @notice function to set the mint allowance
    /// @dev requires admin or owner
    function setMintAllowance(uint256 newAllowance) external adminOrOwner {
        mintAllowance = newAllowance;
    }

    /// @notice mint to owner wallet function
    /// @dev requires admin or owner
    /// @dev mints random tokens to the owner's wallet
    /// @dev useful for setting up collections
    function ownerMint(uint256 numToMint) external nonReentrant adminOrOwner {
        require(numToMint > 0, "Cannot mint zero tokens");
        require(_tokenArray.length >= numToMint, "No supply left");
        _counter += numToMint;
        _mintRandomTokens(owner(), numToMint);
    }

    /// @notice airdrop function
    /// @dev requires admin or owner
    function airdrop(address[] calldata addresses) external nonReentrant adminOrOwner {
        require(addresses.length > 0, "Cannot mint zero tokens");
        require(_tokenArray.length >= addresses.length, "No supply left");
        _counter += addresses.length;
        for (uint256 i = 0; i < addresses.length; i++) {
            _mintRandomTokens(addresses[i], 1);
        }
    }

    /// @notice mint function
    /// @dev nonreentrant and requires a sale to be open
    function mint(uint256 numToMint, bytes32[] calldata merkleProof) external payable nonReentrant {
        require(numToMint > 0, "Cannot mint zero tokens");
        require(_tokenArray.length >= numToMint, "No supply left");
        require(msg.value >= numToMint*mintPrice, "Not enough ether attached");
        require(_numMinted[msg.sender] + numToMint <= mintAllowance, "Reached mint allowance");
        require(preSaleOpen || publicSaleOpen, "Mint closed");
        if (preSaleOpen) {
            bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
            require(MerkleProof.verify(merkleProof, merkleRoot, leaf), "Not on allowlist");
        }
        _numMinted[msg.sender] += numToMint;
        _counter += numToMint;

        (bool success, ) = payoutAddress.call{value: msg.value}("");
        require(success, "payment failed");

        _mintRandomTokens(msg.sender, numToMint);
    }

    /// @notice function to get number minted per address
    function getNumMinted(address user) external view returns(uint256) {
        return _numMinted[user];
    }

    /// @notice function to mint random tokens
    /// @dev takes in recipient and number to mint
    function _mintRandomTokens(address recipient, uint256 numTokens) internal {
        for (uint256 i = 0; i < numTokens; i++) {
            uint256 randomIndex = _getRandomIndex(_tokenArray.length);
            uint256 tokenId = uint256(_tokenArray[randomIndex]);
            _tokenArray[randomIndex] = _tokenArray[_tokenArray.length - 1];
            _tokenArray.pop();
            _safeMint(recipient, tokenId);
        }
    }

    /// @notice function to get random index
    function _getRandomIndex(uint256 maxIndex) internal view returns(uint256) {
        uint256 random = uint256(keccak256(abi.encodePacked(blockhash(block.number - 1), block.coinbase, block.difficulty, msg.sender, _counter)));
        return random % maxIndex;
    }

    //================= Merge Functions =================//
    /// @notice function to open merge
    /// @dev requires admin or owner
    function openMerge() external adminOrOwner {
        mergeOpen = true;
    }

    /// @notice function to close merge
    /// @dev requires admin or owner
    function closeMerge() external adminOrOwner {
        mergeOpen = false;
    }

    /// @notice function to set the merge signer
    /// @dev requires admin or owner
    function setMergeSigner(address newMergeSigner) external adminOrOwner {
        mergeSigner = newMergeSigner;
    }

    /// @notice function to merge tokens
    /// @dev takes in tokens to burn, new token uri, and a signature to verify
    /// @dev nonreentrant and requires that msg.sender is the owner of all the tokens
    function merge(uint256[] calldata tokens, string calldata uri, bytes calldata sig) external nonReentrant {
        require(mergeOpen, "Merge not open");
        bytes32 msgHash = _generateHash(tokens, uri, msg.sender);
        require(ECDSA.recover(msgHash, sig) == mergeSigner, "Invalid signature");
        for (uint256 i = 0; i < tokens.length; i++) {
            require(ownerOf(tokens[i]) == msg.sender, "Sender does not own all tokens");
            _burn(tokens[i]);
        }
        _counter++;
        _tokenUriOverrides[_counter] = uri;
        _safeMint(msg.sender, _counter);

        emit Merge(msg.sender, _counter, uri, tokens);
    }

    /// @notice function to generate hash for signature verification
    /// @dev need to use hash of the uri as packing becomes ambiguous with two variable length inputs
    function _generateHash(uint256[] memory tokens, string memory uri, address sender) internal pure returns(bytes32) {
        uint256 msgLengthBytes = ( tokens.length * 32 ) + 32 + 20;
        return keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n", 
                msgLengthBytes.toString(), 
                tokens, 
                keccak256(bytes(uri)), 
                sender)
        );
    }

    //================= Royalty Functions =================//
    /// @notice function to change the royalty info
    /// @dev requires owner
    /// @dev this is useful if the amount was set improperly at contract creation.
    function setRoyaltyInfo(address newAddr, uint256 newPerc) external onlyOwner {
        _setRoyaltyInfo(newAddr, newPerc);
    }

    //================= BlockList =================//
    function setBlockListStatus(address operator, bool status) external onlyOwner {
        _setBlockListStatus(operator, status);
    }

    //================= Overrides =================//
    /// @dev see {ERC721.approve}
    function approve(address to, uint256 tokenId) public virtual override(ERC721) notBlocked(to) {
        ERC721.approve(to, tokenId);
    }

    /// @dev see {ERC721.setApprovalForAll}
    function setApprovalForAll(address operator, bool approved) public virtual override(ERC721) notBlocked(operator) {
        ERC721.setApprovalForAll(operator, approved);
    }

    /// @dev see {ERC165.supportsInterface}
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, EIP2981AllToken) returns (bool) {
        return ERC721.supportsInterface(interfaceId) || EIP2981AllToken.supportsInterface(interfaceId);
    }

    /// @dev see {ERC721.tokenURI}
    /// @dev if there is an individual token override (because of merge), show that
    ///        otherwise, show base uri with token id appended
    function tokenURI(uint256 tokenId) public view virtual override(ERC721) returns(string memory) {
        require(_exists(tokenId), "Query for non existent token id");
        string memory uriOverride = _tokenUriOverrides[tokenId];
        if (bytes(uriOverride).length > 0) {
            return uriOverride;
        } else {
            return string(abi.encodePacked(_baseTokenUri, tokenId.toString()));
        }
    }
    
}

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

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

File 3 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "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 4 of 17 : 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 5 of 17 : 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 17 : 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 7 of 17 : 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 8 of 17 : 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 9 of 17 : 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 10 of 17 : 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 11 of 17 : EIP2981AllToken.sol
// SPDX-License-Identifier: MIT
/**
*   @title EIP 2981 All Token
*   @notice implementation of EIP 2981, with all tokens having the same royalty amount
*   @author transientlabs.xyz
*/

/*
   ___       _ __   __  ___  _ ______                 __ 
  / _ )__ __(_) /__/ / / _ \(_) _/ _/__ _______ ___  / /_
 / _  / // / / / _  / / // / / _/ _/ -_) __/ -_) _ \/ __/
/____/\_,_/_/_/\_,_/ /____/_/_//_/ \__/_/  \__/_//_/\__/                                                          
 ______                  _          __    __        __     
/_  __/______ ____  ___ (_)__ ___  / /_  / /  ___ _/ /  ___
 / / / __/ _ `/ _ \(_-</ / -_) _ \/ __/ / /__/ _ `/ _ \(_-<
/_/ /_/  \_,_/_//_/___/_/\__/_//_/\__/ /____/\_,_/_.__/___/ 
*/

pragma solidity >0.8.9 <0.9.0;

import "ERC165.sol";
import "IEIP2981.sol";

abstract contract EIP2981AllToken is IEIP2981, ERC165 {

    address internal _royaltyAddr;
    uint256 internal _royaltyPerc; // percentage in basis (out of 10,000)

    /**
    *   @param recipient is the royalty recipient
    *   @param percentage is the royalty percentage
    */
    constructor(address recipient, uint256 percentage) {
        _setRoyaltyInfo(recipient, percentage);
    }
    
    /**
    *   @notice EIP 2981 royalty support
    *   @dev royalty amount not dependent on _tokenId
    */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address receiver, uint256 royaltyAmount) {
        return (_royaltyAddr, _royaltyPerc * _salePrice / 10000);
    }

    /**
    *   @notice override ERC 165 implementation of this function
    *   @dev if using this contract with another contract that suppports ERC 265, will have to override in the inheriting contract
    */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) {
        return interfaceId == type(IEIP2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
    *   @notice function to set royalty information
    *   @dev to be called by inheriting contract
    *   @param addr is the royalty payout address for this token id
    *   @param perc is the royalty percentage (out of 10,000) to set for this token id
    */
    function _setRoyaltyInfo(address addr, uint256 perc) internal virtual {
        require(addr != address(0), "EIP2981AllToken: Cannot set royalty receipient to the zero address");
        require(perc < 10000, "EIP2981AllToken: Cannot set royalty percentage above 10000");
        _royaltyAddr = addr;
        _royaltyPerc = perc;
    }
}

File 12 of 17 : IEIP2981.sol
// SPDX-License-Identifier: MIT

pragma solidity >0.8.9 <0.9.0;

///
/// @dev Interface for the NFT Royalty Standard
///
interface IEIP2981 {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver,uint256 royaltyAmount);
}

File 13 of 17 : BlockList.sol
// SPDX-License-Identifier: Apache-2.0

/// @title BlockList
/// @author transientlabs.xyz

/**
    ____        _ __    __   ____  _ ________                     __ 
   / __ )__  __(_) /___/ /  / __ \(_) __/ __/__  ________  ____  / /_
  / __  / / / / / / __  /  / / / / / /_/ /_/ _ \/ ___/ _ \/ __ \/ __/
 / /_/ / /_/ / / / /_/ /  / /_/ / / __/ __/  __/ /  /  __/ / / / /_  
/_____/\__,_/_/_/\__,_/  /_____/_/_/ /_/  \___/_/   \___/_/ /_/\__/  
                                                                     
  ______                      _            __     __          __        
 /_  __/________ _____  _____(_)__  ____  / /_   / /   ____ _/ /_  _____
  / / / ___/ __ `/ __ \/ ___/ / _ \/ __ \/ __/  / /   / __ `/ __ \/ ___/
 / / / /  / /_/ / / / (__  ) /  __/ / / / /_   / /___/ /_/ / /_/ (__  ) 
/_/ /_/   \__,_/_/ /_/____/_/\___/_/ /_/\__/  /_____/\__,_/_.___/____/  
                                                                        
*/

pragma solidity 0.8.17;

abstract contract BlockList {

    //================= State Variables =================//
    mapping(address => bool) private _blockList;

    //================= Events =================//
    event BlockListStatusChange(address indexed operator, bool indexed status);

    //================= Modifier =================//
    /// @dev modifier that can be applied to approval functions in order to block listings on marketplaces
    modifier notBlocked(address operator) {
        require(!_blockList[operator], "BlockList: operator is blocked");
        _;
    }

    //================= View Function =================//
    /// @dev function to get blocklist status with True meaning that the operator is blocked
    function getBlockListStatus(address operator) public view returns (bool) {
        return _blockList[operator];
    }

    //================= Setter Function =================//
    /// @notice internal function to set the block list status
    /// @dev inheriting contracts must implement a function that can call this one
    function _setBlockListStatus(address operator, bool status) internal {
        _blockList[operator] = status;
        emit BlockListStatusChange(operator, status);
    }

}

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

pragma solidity ^0.8.0;

import "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 15 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "StateOfTheArt.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"payout","type":"address"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"string","name":"initUri","type":"string"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"royaltyPayout","type":"address"},{"internalType":"uint256","name":"royaltyPerc","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"bool","name":"status","type":"bool"}],"name":"BlockListStatusChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"mergedTokenId","type":"uint256"},{"indexed":true,"internalType":"string","name":"newTokenUri","type":"string"},{"indexed":false,"internalType":"uint256[]","name":"burnedTokens","type":"uint256[]"}],"name":"Merge","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":"adminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeMerge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"getBlockListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNumMinted","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"merge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mergeOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mergeSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numToMint","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMerge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"address","name":"newAdmin","type":"address"}],"name":"setAdminAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setBlockListStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMergeSigner","type":"address"}],"name":"setMergeSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAllowance","type":"uint256"}],"name":"setMintAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPayout","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"},{"internalType":"uint256","name":"newPerc","type":"uint256"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTokenArray","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003e6d38038062003e6d8339810160408190526200003491620002e5565b81816040518060400160405280601d81526020017f5354415445204f462054484520415254206279205468616e6b596f7558000000815250604051806040016040528060058152602001640a69ea882b60db1b81525081600090816200009b9190620004c0565b506001620000aa8282620004c0565b505050620000bf82826200015660201b60201c565b50620000cd90503362000260565b6001600a55600b80546001600160a01b03808c166001600160a01b031992831617909255600c8054928b1692909116919091179055600d879055600e869055600f85905560126200011f8582620004c0565b5050601480546001600160a01b0390931661010002610100600160a81b031990931692909217909155506200058c95505050505050565b6001600160a01b038216620001d25760405162461bcd60e51b8152602060048201526042602482015260008051602062003e4d83398151915260448201527f6c74792072656365697069656e7420746f20746865207a65726f206164647265606482015261737360f01b608482015260a4015b60405180910390fd5b61271081106200023a5760405162461bcd60e51b815260206004820152603a602482015260008051602062003e4d83398151915260448201527f6c74792070657263656e746167652061626f76652031303030300000000000006064820152608401620001c9565b600680546001600160a01b0319166001600160a01b039390931692909217909155600755565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b0381168114620002ca57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060008060006101208a8c0312156200030557600080fd5b620003108a620002b2565b98506200032060208b01620002b2565b60408b015160608c015160808d015160a08e0151939b50919950975095506001600160401b03808211156200035457600080fd5b818c0191508c601f8301126200036957600080fd5b8151818111156200037e576200037e620002cf565b604051601f8201601f19908116603f01168101908382118183101715620003a957620003a9620002cf565b816040528281528f6020848701011115620003c357600080fd5b600093505b82841015620003eb576020848601015160208583010152602084019350620003c8565b60006020848301015280985050505050506200040a60c08b01620002b2565b92506200041a60e08b01620002b2565b91506101008a015190509295985092959850929598565b600181811c908216806200044657607f821691505b6020821081036200046757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004bb57600081815260208120601f850160051c81016020861015620004965750805b601f850160051c820191505b81811015620004b757828155600101620004a2565b5050505b505050565b81516001600160401b03811115620004dc57620004dc620002cf565b620004f481620004ed845462000431565b846200046d565b602080601f8311600181146200052c5760008415620005135750858301515b600019600386901b1c1916600185901b178555620004b7565b600085815260208120601f198616915b828110156200055d578886015182559484019460019091019084016200053c565b50858210156200057c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6138b1806200059c6000396000f3fe6080604052600436106102c95760003560e01c8063729ad39e11610175578063b88d4fde116100dc578063e2e784d511610095578063f2fde38b1161006f578063f2fde38b1461087d578063f4a0a5281461089d578063f9e23799146108bd578063fc6f9468146108de57600080fd5b8063e2e784d51461081d578063e985e9c51461083d578063f19e75d41461085d57600080fd5b8063b88d4fde1461076e578063ba11ecde1461078e578063ba41b0c6146107af578063bbef5762146107c2578063c87b56dd146107dc578063d1d7d350146107fc57600080fd5b80639ac651c31161012e5780639ac651c3146106cf578063a105e7ea146106ef578063a22cb46514610704578063acf080d114610724578063b211bcca14610744578063b585209b1461075957600080fd5b8063729ad39e1461062257806379948d78146106425780637cb64759146106675780638bad0c0a146106875780638da5cb5b1461069c57806395d89b41146106ba57600080fd5b806333bffccc1161023457806342842e0e116101ed5780636352211e116101c75780636352211e146105b75780636817c76c146105d757806370a08231146105ed578063715018a61461060d57600080fd5b806342842e0e1461055757806355f804b3146105775780635b8d02d71461059757600080fd5b806333bffccc146104a157806333ea51a8146104b657806334e4d410146104d6578063396876bd146104f657806339eed3bf1461050c5780633d6dc6cf1461052157600080fd5b806323b872dd1161028657806323b872dd146103b35780632a55205a146103d35780632c1e816d146104125780632d1aa563146104325780632eb4a7ab14610452578063334980a51461046857600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57806315a8f0731461037f57806318160ddd14610394575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612d81565b6108fe565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b5061031861091e565b6040516102fa9190612dee565b34801561033157600080fd5b50610345610340366004612e01565b6109b0565b6040516001600160a01b0390911681526020016102fa565b34801561036957600080fd5b5061037d610378366004612e36565b6109d7565b005b34801561038b57600080fd5b5061037d610a56565b3480156103a057600080fd5b506015545b6040519081526020016102fa565b3480156103bf57600080fd5b5061037d6103ce366004612e60565b610aa5565b3480156103df57600080fd5b506103f36103ee366004612e9c565b610ad6565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561041e57600080fd5b5061037d61042d366004612ebe565b610b12565b34801561043e57600080fd5b5061037d61044d366004612f60565b610b3c565b34801561045e57600080fd5b506103a5600d5481565b34801561047457600080fd5b506102ee610483366004612ebe565b6001600160a01b031660009081526008602052604090205460ff1690565b3480156104ad57600080fd5b5061037d610e26565b3480156104c257600080fd5b5061037d6104d1366004612ebe565b610e7b565b3480156104e257600080fd5b5061037d6104f1366004612ebe565b610ea5565b34801561050257600080fd5b506103a5600f5481565b34801561051857600080fd5b5061037d610f0c565b34801561052d57600080fd5b506103a561053c366004612ebe565b6001600160a01b031660009081526010602052604090205490565b34801561056357600080fd5b5061037d610572366004612e60565b610f57565b34801561058357600080fd5b5061037d610592366004613086565b610f72565b3480156105a357600080fd5b50600c54610345906001600160a01b031681565b3480156105c357600080fd5b506103456105d2366004612e01565b610fc1565b3480156105e357600080fd5b506103a5600e5481565b3480156105f957600080fd5b506103a5610608366004612ebe565b611021565b34801561061957600080fd5b5061037d6110a7565b34801561062e57600080fd5b5061037d61063d3660046130cf565b6110bb565b34801561064e57600080fd5b506014546103459061010090046001600160a01b031681565b34801561067357600080fd5b5061037d610682366004612e01565b6111d3565b34801561069357600080fd5b5061037d611217565b3480156106a857600080fd5b506009546001600160a01b0316610345565b3480156106c657600080fd5b50610318611277565b3480156106db57600080fd5b5061037d6106ea366004613111565b611286565b3480156106fb57600080fd5b5061037d611298565b34801561071057600080fd5b5061037d61071f366004613111565b6112e6565b34801561073057600080fd5b5061037d61073f366004612e01565b61135b565b34801561075057600080fd5b5061037d61139f565b34801561076557600080fd5b5061037d6114c9565b34801561077a57600080fd5b5061037d61078936600461314d565b61151e565b34801561079a57600080fd5b50600c546102ee90600160a81b900460ff1681565b61037d6107bd3660046131c9565b611556565b3480156107ce57600080fd5b506014546102ee9060ff1681565b3480156107e857600080fd5b506103186107f7366004612e01565b611886565b34801561080857600080fd5b50600c546102ee90600160a01b900460ff1681565b34801561082957600080fd5b5061037d610838366004612e36565b6119cf565b34801561084957600080fd5b506102ee610858366004613215565b6119e1565b34801561086957600080fd5b5061037d610878366004612e01565b611a0f565b34801561088957600080fd5b5061037d610898366004612ebe565b611aec565b3480156108a957600080fd5b5061037d6108b8366004612e01565b611b65565b3480156108c957600080fd5b50600c546102ee90600160b01b900460ff1681565b3480156108ea57600080fd5b50600b54610345906001600160a01b031681565b600061090982611ba9565b80610918575061091882611bf9565b92915050565b60606000805461092d90613248565b80601f016020809104026020016040519081016040528092919081815260200182805461095990613248565b80156109a65780601f1061097b576101008083540402835291602001916109a6565b820191906000526020600020905b81548152906001019060200180831161098957829003601f168201915b5050505050905090565b60006109bb82611c1e565b506000908152600460205260409020546001600160a01b031690565b6001600160a01b038216600090815260086020526040902054829060ff1615610a475760405162461bcd60e51b815260206004820152601e60248201527f426c6f636b4c6973743a206f70657261746f7220697320626c6f636b6564000060448201526064015b60405180910390fd5b610a518383611c7d565b505050565b600b546001600160a01b0316331480610a7957506009546001600160a01b031633145b610a955760405162461bcd60e51b8152600401610a3e9061327c565b600c805461ffff60a81b19169055565b610aaf3382611d8d565b610acb5760405162461bcd60e51b8152600401610a3e906132b3565b610a51838383611dec565b60065460075460009182916001600160a01b039091169061271090610afc908690613317565b610b069190613344565b915091505b9250929050565b610b1a611f88565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6002600a5403610b5e5760405162461bcd60e51b8152600401610a3e90613358565b6002600a5560145460ff16610ba65760405162461bcd60e51b815260206004820152600e60248201526d26b2b933b2903737ba1037b832b760911b6044820152606401610a3e565b6000610c1a87878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020601f8b018190048102820181019092528981529250899150889081908401838280828437600092019190915250339250611fe2915050565b9050601460019054906101000a90046001600160a01b03166001600160a01b0316610c7b8285858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061205192505050565b6001600160a01b031614610cc55760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610a3e565b60005b86811015610d7b5733610cf2898984818110610ce657610ce661338f565b90506020020135610fc1565b6001600160a01b031614610d485760405162461bcd60e51b815260206004820152601e60248201527f53656e64657220646f6573206e6f74206f776e20616c6c20746f6b656e7300006044820152606401610a3e565b610d69888883818110610d5d57610d5d61338f565b90506020020135612075565b80610d73816133a5565b915050610cc8565b5060158054906000610d8c836133a5565b90915550506015546000908152601360205260409020610dad85878361340c565b50610dba33601554612110565b8484604051610dca9291906134cd565b6040518091039020601554336001600160a01b03167fd62cf298f931029e4b9fd64350b9f0d96b93194507666975d2db401de60f29a18a8a604051610e109291906134dd565b60405180910390a450506001600a555050505050565b600b546001600160a01b0316331480610e4957506009546001600160a01b031633145b610e655760405162461bcd60e51b8152600401610a3e9061327c565b600c805461ffff60a81b1916600160a81b179055565b610e83611f88565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b0316331480610ec857506009546001600160a01b031633145b610ee45760405162461bcd60e51b8152600401610a3e9061327c565b601480546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600b546001600160a01b0316331480610f2f57506009546001600160a01b031633145b610f4b5760405162461bcd60e51b8152600401610a3e9061327c565b6014805460ff19169055565b610a518383836040518060200160405280600081525061151e565b600b546001600160a01b0316331480610f9557506009546001600160a01b031633145b610fb15760405162461bcd60e51b8152600401610a3e9061327c565b6012610fbd8282613516565b5050565b6000818152600260205260408120546001600160a01b0316806109185760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610a3e565b60006001600160a01b03821661108b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610a3e565b506001600160a01b031660009081526003602052604090205490565b6110af611f88565b6110b9600061212a565b565b6002600a54036110dd5760405162461bcd60e51b8152600401610a3e90613358565b6002600a55600b546001600160a01b031633148061110557506009546001600160a01b031633145b6111215760405162461bcd60e51b8152600401610a3e9061327c565b8061113e5760405162461bcd60e51b8152600401610a3e906135d6565b6011548111156111605760405162461bcd60e51b8152600401610a3e9061360d565b81819050601560008282546111759190613635565b90915550600090505b818110156111c9576111b783838381811061119b5761119b61338f565b90506020020160208101906111b09190612ebe565b600161217c565b806111c1816133a5565b91505061117e565b50506001600a5550565b600b546001600160a01b03163314806111f657506009546001600160a01b031633145b6112125760405162461bcd60e51b8152600401610a3e9061327c565b600d55565b600b546001600160a01b031633146112655760405162461bcd60e51b815260206004820152601160248201527020b2323932b9b9903737ba1030b236b4b760791b6044820152606401610a3e565b600b80546001600160a01b0319169055565b60606001805461092d90613248565b61128e611f88565b610fbd82826122bd565b600b546001600160a01b03163314806112bb57506009546001600160a01b031633145b6112d75760405162461bcd60e51b8152600401610a3e9061327c565b6014805460ff19166001179055565b6001600160a01b038216600090815260086020526040902054829060ff16156113515760405162461bcd60e51b815260206004820152601e60248201527f426c6f636b4c6973743a206f70657261746f7220697320626c6f636b656400006044820152606401610a3e565b610a518383612311565b600b546001600160a01b031633148061137e57506009546001600160a01b031633145b61139a5760405162461bcd60e51b8152600401610a3e9061327c565b600f55565b600b546001600160a01b03163314806113c257506009546001600160a01b031633145b6113de5760405162461bcd60e51b8152600401610a3e9061327c565b600c54600160a01b900460ff16156114385760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20617272617920616c7265616479207365740000000000000000006044820152606401610a3e565b60015b6106418161ffff1610156114b357601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6860108204018054600f9092166002026101000a61ffff8181021990931692841602919091179055806114ab81613648565b91505061143b565b50600c805460ff60a01b1916600160a01b179055565b600b546001600160a01b03163314806114ec57506009546001600160a01b031633145b6115085760405162461bcd60e51b8152600401610a3e9061327c565b600c805461ffff60a81b1916600160b01b179055565b6115283383611d8d565b6115445760405162461bcd60e51b8152600401610a3e906132b3565b6115508484848461231c565b50505050565b6002600a54036115785760405162461bcd60e51b8152600401610a3e90613358565b6002600a558261159a5760405162461bcd60e51b8152600401610a3e906135d6565b6011548311156115bc5760405162461bcd60e51b8152600401610a3e9061360d565b600e546115c99084613317565b3410156116185760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768206574686572206174746163686564000000000000006044820152606401610a3e565b600f5433600090815260106020526040902054611636908590613635565b111561167d5760405162461bcd60e51b815260206004820152601660248201527552656163686564206d696e7420616c6c6f77616e636560501b6044820152606401610a3e565b600c54600160a81b900460ff168061169e5750600c54600160b01b900460ff165b6116d85760405162461bcd60e51b815260206004820152600b60248201526a135a5b9d0818db1bdcd95960aa1b6044820152606401610a3e565b600c54600160a81b900460ff16156117a0576040516001600160601b03193360601b16602082015260009060340160405160208183030381529060405280519060200120905061175f83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d54915084905061234f565b61179e5760405162461bcd60e51b815260206004820152601060248201526f139bdd081bdb88185b1b1bdddb1a5cdd60821b6044820152606401610a3e565b505b33600090815260106020526040812080548592906117bf908490613635565b9250508190555082601560008282546117d89190613635565b9091555050600c546040516000916001600160a01b03169034908381818185875af1925050503d806000811461182a576040519150601f19603f3d011682016040523d82523d6000602084013e61182f565b606091505b50509050806118715760405162461bcd60e51b815260206004820152600e60248201526d1c185e5b595b9d0819985a5b195960921b6044820152606401610a3e565b61187b338561217c565b50506001600a555050565b6000818152600260205260409020546060906001600160a01b03166118ed5760405162461bcd60e51b815260206004820152601f60248201527f517565727920666f72206e6f6e206578697374656e7420746f6b656e206964006044820152606401610a3e565b6000828152601360205260408120805461190690613248565b80601f016020809104026020016040519081016040528092919081815260200182805461193290613248565b801561197f5780601f106119545761010080835404028352916020019161197f565b820191906000526020600020905b81548152906001019060200180831161196257829003601f168201915b505050505090506000815111156119965792915050565b60126119a184612365565b6040516020016119b2929190613669565b604051602081830303815290604052915050919050565b50919050565b6119d7611f88565b610fbd8282612466565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6002600a5403611a315760405162461bcd60e51b8152600401610a3e90613358565b6002600a55600b546001600160a01b0316331480611a5957506009546001600160a01b031633145b611a755760405162461bcd60e51b8152600401610a3e9061327c565b60008111611a955760405162461bcd60e51b8152600401610a3e906135d6565b601154811115611ab75760405162461bcd60e51b8152600401610a3e9061360d565b8060156000828254611ac99190613635565b9091555050600954611ae4906001600160a01b03168261217c565b506001600a55565b611af4611f88565b6001600160a01b038116611b595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a3e565b611b628161212a565b50565b600b546001600160a01b0316331480611b8857506009546001600160a01b031633145b611ba45760405162461bcd60e51b8152600401610a3e9061327c565b600e55565b60006001600160e01b031982166380ac58cd60e01b1480611bda57506001600160e01b03198216635b5e139f60e01b145b8061091857506301ffc9a760e01b6001600160e01b0319831614610918565b60006001600160e01b0319821663152a902d60e11b1480610918575061091882611ba9565b6000818152600260205260409020546001600160a01b0316611b625760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610a3e565b6000611c8882610fc1565b9050806001600160a01b0316836001600160a01b031603611cf55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a3e565b336001600160a01b0382161480611d115750611d1181336119e1565b611d835760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610a3e565b610a51838361258a565b600080611d9983610fc1565b9050806001600160a01b0316846001600160a01b03161480611dc05750611dc081856119e1565b80611de45750836001600160a01b0316611dd9846109b0565b6001600160a01b0316145b949350505050565b826001600160a01b0316611dff82610fc1565b6001600160a01b031614611e635760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a3e565b6001600160a01b038216611ec55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a3e565b611ed060008261258a565b6001600160a01b0383166000908152600360205260408120805460019290611ef99084906136f0565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f27908490613635565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6009546001600160a01b031633146110b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a3e565b60008084516020611ff39190613317565b611ffe906020613635565b612009906014613635565b905061201481612365565b858580519060200120856040516020016120319493929190613703565b604051602081830303815290604052805190602001209150509392505050565b600080600061206085856125f8565b9150915061206d81612663565b509392505050565b600061208082610fc1565b905061208d60008361258a565b6001600160a01b03811660009081526003602052604081208054600192906120b69084906136f0565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610fbd828260405180602001604052806000815250612819565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b81811015610a51576011546000906121969061284c565b90506000601182815481106121ad576121ad61338f565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff169050601160016011805490506121eb91906136f0565b815481106121fb576121fb61338f565b90600052602060002090601091828204019190066002029054906101000a900461ffff16601183815481106122325761223261338f565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060118054806122725761227261378f565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590556122a88582612110565b505080806122b5906133a5565b91505061217f565b6001600160a01b038216600081815260086020526040808220805460ff191685151590811790915590519092917f668bc5087731cdf580ffc6ae214beb549e4ebb0ce9f10de2490e4b77f64e5e8b91a35050565b610fbd3383836128c3565b612327848484611dec565b61233384848484612991565b6115505760405162461bcd60e51b8152600401610a3e906137a5565b60008261235c8584612a92565b14949350505050565b60608160000361238c5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123b657806123a0816133a5565b91506123af9050600a83613344565b9150612390565b60008167ffffffffffffffff8111156123d1576123d1612ffa565b6040519080825280601f01601f1916602001820160405280156123fb576020820181803683370190505b5090505b8415611de4576124106001836136f0565b915061241d600a866137f7565b612428906030613635565b60f81b81838151811061243d5761243d61338f565b60200101906001600160f81b031916908160001a90535061245f600a86613344565b94506123ff565b6001600160a01b0382166124ed5760405162461bcd60e51b815260206004820152604260248201527f45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796160448201527f6c74792072656365697069656e7420746f20746865207a65726f206164647265606482015261737360f01b608482015260a401610a3e565b61271081106125645760405162461bcd60e51b815260206004820152603a60248201527f45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796160448201527f6c74792070657263656e746167652061626f76652031303030300000000000006064820152608401610a3e565b600680546001600160a01b0319166001600160a01b039390931692909217909155600755565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125bf82610fc1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080825160410361262e5760208301516040840151606085015160001a61262287828585612ad7565b94509450505050610b0b565b8251604003612657576020830151604084015161264c868383612bc4565b935093505050610b0b565b50600090506002610b0b565b60008160048111156126775761267761380b565b0361267f5750565b60018160048111156126935761269361380b565b036126e05760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a3e565b60028160048111156126f4576126f461380b565b036127415760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a3e565b60038160048111156127555761275561380b565b036127ad5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a3e565b60048160048111156127c1576127c161380b565b03611b625760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a3e565b6128238383612bfd565b6128306000848484612991565b610a515760405162461bcd60e51b8152600401610a3e906137a5565b60008061285a6001436136f0565b60155460408051924060208401526001600160601b031941606090811b8216928501929092524460548501523390911b166074830152608882015260a80160408051601f19818403018152919052805160209091012090506128bc83826137f7565b9392505050565b816001600160a01b0316836001600160a01b0316036129245760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a3e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006001600160a01b0384163b15612a8757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129d5903390899088908890600401613821565b6020604051808303816000875af1925050508015612a10575060408051601f3d908101601f19168201909252612a0d9181019061385e565b60015b612a6d573d808015612a3e576040519150601f19603f3d011682016040523d82523d6000602084013e612a43565b606091505b508051600003612a655760405162461bcd60e51b8152600401610a3e906137a5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611de4565b506001949350505050565b600081815b845181101561206d57612ac382868381518110612ab657612ab661338f565b6020026020010151612d3f565b915080612acf816133a5565b915050612a97565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b0e5750600090506003612bbb565b8460ff16601b14158015612b2657508460ff16601c14155b15612b375750600090506004612bbb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612b8b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bb457600060019250925050612bbb565b9150600090505b94509492505050565b6000806001600160ff1b03831681612be160ff86901c601b613635565b9050612bef87828885612ad7565b935093505050935093915050565b6001600160a01b038216612c535760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a3e565b6000818152600260205260409020546001600160a01b031615612cb85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a3e565b6001600160a01b0382166000908152600360205260408120805460019290612ce1908490613635565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310612d5b5760008281526020849052604090206128bc565b5060009182526020526040902090565b6001600160e01b031981168114611b6257600080fd5b600060208284031215612d9357600080fd5b81356128bc81612d6b565b60005b83811015612db9578181015183820152602001612da1565b50506000910152565b60008151808452612dda816020860160208601612d9e565b601f01601f19169290920160200192915050565b6020815260006128bc6020830184612dc2565b600060208284031215612e1357600080fd5b5035919050565b80356001600160a01b0381168114612e3157600080fd5b919050565b60008060408385031215612e4957600080fd5b612e5283612e1a565b946020939093013593505050565b600080600060608486031215612e7557600080fd5b612e7e84612e1a565b9250612e8c60208501612e1a565b9150604084013590509250925092565b60008060408385031215612eaf57600080fd5b50508035926020909101359150565b600060208284031215612ed057600080fd5b6128bc82612e1a565b60008083601f840112612eeb57600080fd5b50813567ffffffffffffffff811115612f0357600080fd5b6020830191508360208260051b8501011115610b0b57600080fd5b60008083601f840112612f3057600080fd5b50813567ffffffffffffffff811115612f4857600080fd5b602083019150836020828501011115610b0b57600080fd5b60008060008060008060608789031215612f7957600080fd5b863567ffffffffffffffff80821115612f9157600080fd5b612f9d8a838b01612ed9565b90985096506020890135915080821115612fb657600080fd5b612fc28a838b01612f1e565b90965094506040890135915080821115612fdb57600080fd5b50612fe889828a01612f1e565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561302b5761302b612ffa565b604051601f8501601f19908116603f0116810190828211818310171561305357613053612ffa565b8160405280935085815286868601111561306c57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561309857600080fd5b813567ffffffffffffffff8111156130af57600080fd5b8201601f810184136130c057600080fd5b611de484823560208401613010565b600080602083850312156130e257600080fd5b823567ffffffffffffffff8111156130f957600080fd5b61310585828601612ed9565b90969095509350505050565b6000806040838503121561312457600080fd5b61312d83612e1a565b91506020830135801515811461314257600080fd5b809150509250929050565b6000806000806080858703121561316357600080fd5b61316c85612e1a565b935061317a60208601612e1a565b925060408501359150606085013567ffffffffffffffff81111561319d57600080fd5b8501601f810187136131ae57600080fd5b6131bd87823560208401613010565b91505092959194509250565b6000806000604084860312156131de57600080fd5b83359250602084013567ffffffffffffffff8111156131fc57600080fd5b61320886828701612ed9565b9497909650939450505050565b6000806040838503121561322857600080fd5b61323183612e1a565b915061323f60208401612e1a565b90509250929050565b600181811c9082168061325c57607f821691505b6020821081036119c957634e487b7160e01b600052602260045260246000fd5b6020808252601a908201527f41646472657373206e6f742061646d696e206f72206f776e6572000000000000604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761091857610918613301565b634e487b7160e01b600052601260045260246000fd5b6000826133535761335361332e565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016133b7576133b7613301565b5060010190565b601f821115610a5157600081815260208120601f850160051c810160208610156133e55750805b601f850160051c820191505b81811015613404578281556001016133f1565b505050505050565b67ffffffffffffffff83111561342457613424612ffa565b613438836134328354613248565b836133be565b6000601f84116001811461346c57600085156134545750838201355b600019600387901b1c1916600186901b1783556134c6565b600083815260209020601f19861690835b8281101561349d578685013582556020948501946001909201910161347d565b50868210156134ba5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b8183823760009101908152919050565b6020808252810182905260006001600160fb1b038311156134fd57600080fd5b8260051b80856040850137919091016040019392505050565b815167ffffffffffffffff81111561353057613530612ffa565b6135448161353e8454613248565b846133be565b602080601f83116001811461357957600084156135615750858301515b600019600386901b1c1916600185901b178555613404565b600085815260208120601f198616915b828110156135a857888601518255948401946001909101908401613589565b50858210156135c65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526017908201527f43616e6e6f74206d696e74207a65726f20746f6b656e73000000000000000000604082015260600190565b6020808252600e908201526d139bc81cdd5c1c1b1e481b19599d60921b604082015260600190565b8082018082111561091857610918613301565b600061ffff80831681810361365f5761365f613301565b6001019392505050565b600080845461367781613248565b6001828116801561368f57600181146136a4576136d3565b60ff19841687528215158302870194506136d3565b8860005260208060002060005b858110156136ca5781548a8201529084019082016136b1565b50505082870194505b5050505083516136e7818360208801612d9e565b01949350505050565b8181038181111561091857610918613301565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008551602061373c82601a8601838b01612d9e565b8651918401601a019181880160005b828110156137675781518552938301939083019060010161374b565b50505094815260609390931b6001600160601b03191693830193909352506034019392505050565b634e487b7160e01b600052603160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826138065761380661332e565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061385490830184612dc2565b9695505050505050565b60006020828403121561387057600080fd5b81516128bc81612d6b56fea2646970667358221220c32e902d0e83899ad877735ae32945e3cf3cad3a9983b44661af372695d545fa64736f6c6343000811003345495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796100000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a8000000000000000000000000a84234ee92a65e31af7ba40af58cd5b89e8b52b4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a84234ee92a65e31af7ba40af58cd5b89e8b52b400000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6154527a434e774d3472423731424265616e733671747435574a6946517837464c4858535747705a36716d562f00000000000000000000

Deployed Bytecode

0x6080604052600436106102c95760003560e01c8063729ad39e11610175578063b88d4fde116100dc578063e2e784d511610095578063f2fde38b1161006f578063f2fde38b1461087d578063f4a0a5281461089d578063f9e23799146108bd578063fc6f9468146108de57600080fd5b8063e2e784d51461081d578063e985e9c51461083d578063f19e75d41461085d57600080fd5b8063b88d4fde1461076e578063ba11ecde1461078e578063ba41b0c6146107af578063bbef5762146107c2578063c87b56dd146107dc578063d1d7d350146107fc57600080fd5b80639ac651c31161012e5780639ac651c3146106cf578063a105e7ea146106ef578063a22cb46514610704578063acf080d114610724578063b211bcca14610744578063b585209b1461075957600080fd5b8063729ad39e1461062257806379948d78146106425780637cb64759146106675780638bad0c0a146106875780638da5cb5b1461069c57806395d89b41146106ba57600080fd5b806333bffccc1161023457806342842e0e116101ed5780636352211e116101c75780636352211e146105b75780636817c76c146105d757806370a08231146105ed578063715018a61461060d57600080fd5b806342842e0e1461055757806355f804b3146105775780635b8d02d71461059757600080fd5b806333bffccc146104a157806333ea51a8146104b657806334e4d410146104d6578063396876bd146104f657806339eed3bf1461050c5780633d6dc6cf1461052157600080fd5b806323b872dd1161028657806323b872dd146103b35780632a55205a146103d35780632c1e816d146104125780632d1aa563146104325780632eb4a7ab14610452578063334980a51461046857600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57806315a8f0731461037f57806318160ddd14610394575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612d81565b6108fe565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b5061031861091e565b6040516102fa9190612dee565b34801561033157600080fd5b50610345610340366004612e01565b6109b0565b6040516001600160a01b0390911681526020016102fa565b34801561036957600080fd5b5061037d610378366004612e36565b6109d7565b005b34801561038b57600080fd5b5061037d610a56565b3480156103a057600080fd5b506015545b6040519081526020016102fa565b3480156103bf57600080fd5b5061037d6103ce366004612e60565b610aa5565b3480156103df57600080fd5b506103f36103ee366004612e9c565b610ad6565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561041e57600080fd5b5061037d61042d366004612ebe565b610b12565b34801561043e57600080fd5b5061037d61044d366004612f60565b610b3c565b34801561045e57600080fd5b506103a5600d5481565b34801561047457600080fd5b506102ee610483366004612ebe565b6001600160a01b031660009081526008602052604090205460ff1690565b3480156104ad57600080fd5b5061037d610e26565b3480156104c257600080fd5b5061037d6104d1366004612ebe565b610e7b565b3480156104e257600080fd5b5061037d6104f1366004612ebe565b610ea5565b34801561050257600080fd5b506103a5600f5481565b34801561051857600080fd5b5061037d610f0c565b34801561052d57600080fd5b506103a561053c366004612ebe565b6001600160a01b031660009081526010602052604090205490565b34801561056357600080fd5b5061037d610572366004612e60565b610f57565b34801561058357600080fd5b5061037d610592366004613086565b610f72565b3480156105a357600080fd5b50600c54610345906001600160a01b031681565b3480156105c357600080fd5b506103456105d2366004612e01565b610fc1565b3480156105e357600080fd5b506103a5600e5481565b3480156105f957600080fd5b506103a5610608366004612ebe565b611021565b34801561061957600080fd5b5061037d6110a7565b34801561062e57600080fd5b5061037d61063d3660046130cf565b6110bb565b34801561064e57600080fd5b506014546103459061010090046001600160a01b031681565b34801561067357600080fd5b5061037d610682366004612e01565b6111d3565b34801561069357600080fd5b5061037d611217565b3480156106a857600080fd5b506009546001600160a01b0316610345565b3480156106c657600080fd5b50610318611277565b3480156106db57600080fd5b5061037d6106ea366004613111565b611286565b3480156106fb57600080fd5b5061037d611298565b34801561071057600080fd5b5061037d61071f366004613111565b6112e6565b34801561073057600080fd5b5061037d61073f366004612e01565b61135b565b34801561075057600080fd5b5061037d61139f565b34801561076557600080fd5b5061037d6114c9565b34801561077a57600080fd5b5061037d61078936600461314d565b61151e565b34801561079a57600080fd5b50600c546102ee90600160a81b900460ff1681565b61037d6107bd3660046131c9565b611556565b3480156107ce57600080fd5b506014546102ee9060ff1681565b3480156107e857600080fd5b506103186107f7366004612e01565b611886565b34801561080857600080fd5b50600c546102ee90600160a01b900460ff1681565b34801561082957600080fd5b5061037d610838366004612e36565b6119cf565b34801561084957600080fd5b506102ee610858366004613215565b6119e1565b34801561086957600080fd5b5061037d610878366004612e01565b611a0f565b34801561088957600080fd5b5061037d610898366004612ebe565b611aec565b3480156108a957600080fd5b5061037d6108b8366004612e01565b611b65565b3480156108c957600080fd5b50600c546102ee90600160b01b900460ff1681565b3480156108ea57600080fd5b50600b54610345906001600160a01b031681565b600061090982611ba9565b80610918575061091882611bf9565b92915050565b60606000805461092d90613248565b80601f016020809104026020016040519081016040528092919081815260200182805461095990613248565b80156109a65780601f1061097b576101008083540402835291602001916109a6565b820191906000526020600020905b81548152906001019060200180831161098957829003601f168201915b5050505050905090565b60006109bb82611c1e565b506000908152600460205260409020546001600160a01b031690565b6001600160a01b038216600090815260086020526040902054829060ff1615610a475760405162461bcd60e51b815260206004820152601e60248201527f426c6f636b4c6973743a206f70657261746f7220697320626c6f636b6564000060448201526064015b60405180910390fd5b610a518383611c7d565b505050565b600b546001600160a01b0316331480610a7957506009546001600160a01b031633145b610a955760405162461bcd60e51b8152600401610a3e9061327c565b600c805461ffff60a81b19169055565b610aaf3382611d8d565b610acb5760405162461bcd60e51b8152600401610a3e906132b3565b610a51838383611dec565b60065460075460009182916001600160a01b039091169061271090610afc908690613317565b610b069190613344565b915091505b9250929050565b610b1a611f88565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6002600a5403610b5e5760405162461bcd60e51b8152600401610a3e90613358565b6002600a5560145460ff16610ba65760405162461bcd60e51b815260206004820152600e60248201526d26b2b933b2903737ba1037b832b760911b6044820152606401610a3e565b6000610c1a87878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020601f8b018190048102820181019092528981529250899150889081908401838280828437600092019190915250339250611fe2915050565b9050601460019054906101000a90046001600160a01b03166001600160a01b0316610c7b8285858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061205192505050565b6001600160a01b031614610cc55760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610a3e565b60005b86811015610d7b5733610cf2898984818110610ce657610ce661338f565b90506020020135610fc1565b6001600160a01b031614610d485760405162461bcd60e51b815260206004820152601e60248201527f53656e64657220646f6573206e6f74206f776e20616c6c20746f6b656e7300006044820152606401610a3e565b610d69888883818110610d5d57610d5d61338f565b90506020020135612075565b80610d73816133a5565b915050610cc8565b5060158054906000610d8c836133a5565b90915550506015546000908152601360205260409020610dad85878361340c565b50610dba33601554612110565b8484604051610dca9291906134cd565b6040518091039020601554336001600160a01b03167fd62cf298f931029e4b9fd64350b9f0d96b93194507666975d2db401de60f29a18a8a604051610e109291906134dd565b60405180910390a450506001600a555050505050565b600b546001600160a01b0316331480610e4957506009546001600160a01b031633145b610e655760405162461bcd60e51b8152600401610a3e9061327c565b600c805461ffff60a81b1916600160a81b179055565b610e83611f88565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b0316331480610ec857506009546001600160a01b031633145b610ee45760405162461bcd60e51b8152600401610a3e9061327c565b601480546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600b546001600160a01b0316331480610f2f57506009546001600160a01b031633145b610f4b5760405162461bcd60e51b8152600401610a3e9061327c565b6014805460ff19169055565b610a518383836040518060200160405280600081525061151e565b600b546001600160a01b0316331480610f9557506009546001600160a01b031633145b610fb15760405162461bcd60e51b8152600401610a3e9061327c565b6012610fbd8282613516565b5050565b6000818152600260205260408120546001600160a01b0316806109185760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610a3e565b60006001600160a01b03821661108b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610a3e565b506001600160a01b031660009081526003602052604090205490565b6110af611f88565b6110b9600061212a565b565b6002600a54036110dd5760405162461bcd60e51b8152600401610a3e90613358565b6002600a55600b546001600160a01b031633148061110557506009546001600160a01b031633145b6111215760405162461bcd60e51b8152600401610a3e9061327c565b8061113e5760405162461bcd60e51b8152600401610a3e906135d6565b6011548111156111605760405162461bcd60e51b8152600401610a3e9061360d565b81819050601560008282546111759190613635565b90915550600090505b818110156111c9576111b783838381811061119b5761119b61338f565b90506020020160208101906111b09190612ebe565b600161217c565b806111c1816133a5565b91505061117e565b50506001600a5550565b600b546001600160a01b03163314806111f657506009546001600160a01b031633145b6112125760405162461bcd60e51b8152600401610a3e9061327c565b600d55565b600b546001600160a01b031633146112655760405162461bcd60e51b815260206004820152601160248201527020b2323932b9b9903737ba1030b236b4b760791b6044820152606401610a3e565b600b80546001600160a01b0319169055565b60606001805461092d90613248565b61128e611f88565b610fbd82826122bd565b600b546001600160a01b03163314806112bb57506009546001600160a01b031633145b6112d75760405162461bcd60e51b8152600401610a3e9061327c565b6014805460ff19166001179055565b6001600160a01b038216600090815260086020526040902054829060ff16156113515760405162461bcd60e51b815260206004820152601e60248201527f426c6f636b4c6973743a206f70657261746f7220697320626c6f636b656400006044820152606401610a3e565b610a518383612311565b600b546001600160a01b031633148061137e57506009546001600160a01b031633145b61139a5760405162461bcd60e51b8152600401610a3e9061327c565b600f55565b600b546001600160a01b03163314806113c257506009546001600160a01b031633145b6113de5760405162461bcd60e51b8152600401610a3e9061327c565b600c54600160a01b900460ff16156114385760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20617272617920616c7265616479207365740000000000000000006044820152606401610a3e565b60015b6106418161ffff1610156114b357601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6860108204018054600f9092166002026101000a61ffff8181021990931692841602919091179055806114ab81613648565b91505061143b565b50600c805460ff60a01b1916600160a01b179055565b600b546001600160a01b03163314806114ec57506009546001600160a01b031633145b6115085760405162461bcd60e51b8152600401610a3e9061327c565b600c805461ffff60a81b1916600160b01b179055565b6115283383611d8d565b6115445760405162461bcd60e51b8152600401610a3e906132b3565b6115508484848461231c565b50505050565b6002600a54036115785760405162461bcd60e51b8152600401610a3e90613358565b6002600a558261159a5760405162461bcd60e51b8152600401610a3e906135d6565b6011548311156115bc5760405162461bcd60e51b8152600401610a3e9061360d565b600e546115c99084613317565b3410156116185760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f756768206574686572206174746163686564000000000000006044820152606401610a3e565b600f5433600090815260106020526040902054611636908590613635565b111561167d5760405162461bcd60e51b815260206004820152601660248201527552656163686564206d696e7420616c6c6f77616e636560501b6044820152606401610a3e565b600c54600160a81b900460ff168061169e5750600c54600160b01b900460ff165b6116d85760405162461bcd60e51b815260206004820152600b60248201526a135a5b9d0818db1bdcd95960aa1b6044820152606401610a3e565b600c54600160a81b900460ff16156117a0576040516001600160601b03193360601b16602082015260009060340160405160208183030381529060405280519060200120905061175f83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d54915084905061234f565b61179e5760405162461bcd60e51b815260206004820152601060248201526f139bdd081bdb88185b1b1bdddb1a5cdd60821b6044820152606401610a3e565b505b33600090815260106020526040812080548592906117bf908490613635565b9250508190555082601560008282546117d89190613635565b9091555050600c546040516000916001600160a01b03169034908381818185875af1925050503d806000811461182a576040519150601f19603f3d011682016040523d82523d6000602084013e61182f565b606091505b50509050806118715760405162461bcd60e51b815260206004820152600e60248201526d1c185e5b595b9d0819985a5b195960921b6044820152606401610a3e565b61187b338561217c565b50506001600a555050565b6000818152600260205260409020546060906001600160a01b03166118ed5760405162461bcd60e51b815260206004820152601f60248201527f517565727920666f72206e6f6e206578697374656e7420746f6b656e206964006044820152606401610a3e565b6000828152601360205260408120805461190690613248565b80601f016020809104026020016040519081016040528092919081815260200182805461193290613248565b801561197f5780601f106119545761010080835404028352916020019161197f565b820191906000526020600020905b81548152906001019060200180831161196257829003601f168201915b505050505090506000815111156119965792915050565b60126119a184612365565b6040516020016119b2929190613669565b604051602081830303815290604052915050919050565b50919050565b6119d7611f88565b610fbd8282612466565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6002600a5403611a315760405162461bcd60e51b8152600401610a3e90613358565b6002600a55600b546001600160a01b0316331480611a5957506009546001600160a01b031633145b611a755760405162461bcd60e51b8152600401610a3e9061327c565b60008111611a955760405162461bcd60e51b8152600401610a3e906135d6565b601154811115611ab75760405162461bcd60e51b8152600401610a3e9061360d565b8060156000828254611ac99190613635565b9091555050600954611ae4906001600160a01b03168261217c565b506001600a55565b611af4611f88565b6001600160a01b038116611b595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a3e565b611b628161212a565b50565b600b546001600160a01b0316331480611b8857506009546001600160a01b031633145b611ba45760405162461bcd60e51b8152600401610a3e9061327c565b600e55565b60006001600160e01b031982166380ac58cd60e01b1480611bda57506001600160e01b03198216635b5e139f60e01b145b8061091857506301ffc9a760e01b6001600160e01b0319831614610918565b60006001600160e01b0319821663152a902d60e11b1480610918575061091882611ba9565b6000818152600260205260409020546001600160a01b0316611b625760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610a3e565b6000611c8882610fc1565b9050806001600160a01b0316836001600160a01b031603611cf55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a3e565b336001600160a01b0382161480611d115750611d1181336119e1565b611d835760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610a3e565b610a51838361258a565b600080611d9983610fc1565b9050806001600160a01b0316846001600160a01b03161480611dc05750611dc081856119e1565b80611de45750836001600160a01b0316611dd9846109b0565b6001600160a01b0316145b949350505050565b826001600160a01b0316611dff82610fc1565b6001600160a01b031614611e635760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a3e565b6001600160a01b038216611ec55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a3e565b611ed060008261258a565b6001600160a01b0383166000908152600360205260408120805460019290611ef99084906136f0565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f27908490613635565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6009546001600160a01b031633146110b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a3e565b60008084516020611ff39190613317565b611ffe906020613635565b612009906014613635565b905061201481612365565b858580519060200120856040516020016120319493929190613703565b604051602081830303815290604052805190602001209150509392505050565b600080600061206085856125f8565b9150915061206d81612663565b509392505050565b600061208082610fc1565b905061208d60008361258a565b6001600160a01b03811660009081526003602052604081208054600192906120b69084906136f0565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610fbd828260405180602001604052806000815250612819565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b81811015610a51576011546000906121969061284c565b90506000601182815481106121ad576121ad61338f565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff169050601160016011805490506121eb91906136f0565b815481106121fb576121fb61338f565b90600052602060002090601091828204019190066002029054906101000a900461ffff16601183815481106122325761223261338f565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060118054806122725761227261378f565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590556122a88582612110565b505080806122b5906133a5565b91505061217f565b6001600160a01b038216600081815260086020526040808220805460ff191685151590811790915590519092917f668bc5087731cdf580ffc6ae214beb549e4ebb0ce9f10de2490e4b77f64e5e8b91a35050565b610fbd3383836128c3565b612327848484611dec565b61233384848484612991565b6115505760405162461bcd60e51b8152600401610a3e906137a5565b60008261235c8584612a92565b14949350505050565b60608160000361238c5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123b657806123a0816133a5565b91506123af9050600a83613344565b9150612390565b60008167ffffffffffffffff8111156123d1576123d1612ffa565b6040519080825280601f01601f1916602001820160405280156123fb576020820181803683370190505b5090505b8415611de4576124106001836136f0565b915061241d600a866137f7565b612428906030613635565b60f81b81838151811061243d5761243d61338f565b60200101906001600160f81b031916908160001a90535061245f600a86613344565b94506123ff565b6001600160a01b0382166124ed5760405162461bcd60e51b815260206004820152604260248201527f45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796160448201527f6c74792072656365697069656e7420746f20746865207a65726f206164647265606482015261737360f01b608482015260a401610a3e565b61271081106125645760405162461bcd60e51b815260206004820152603a60248201527f45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796160448201527f6c74792070657263656e746167652061626f76652031303030300000000000006064820152608401610a3e565b600680546001600160a01b0319166001600160a01b039390931692909217909155600755565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125bf82610fc1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080825160410361262e5760208301516040840151606085015160001a61262287828585612ad7565b94509450505050610b0b565b8251604003612657576020830151604084015161264c868383612bc4565b935093505050610b0b565b50600090506002610b0b565b60008160048111156126775761267761380b565b0361267f5750565b60018160048111156126935761269361380b565b036126e05760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a3e565b60028160048111156126f4576126f461380b565b036127415760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a3e565b60038160048111156127555761275561380b565b036127ad5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a3e565b60048160048111156127c1576127c161380b565b03611b625760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a3e565b6128238383612bfd565b6128306000848484612991565b610a515760405162461bcd60e51b8152600401610a3e906137a5565b60008061285a6001436136f0565b60155460408051924060208401526001600160601b031941606090811b8216928501929092524460548501523390911b166074830152608882015260a80160408051601f19818403018152919052805160209091012090506128bc83826137f7565b9392505050565b816001600160a01b0316836001600160a01b0316036129245760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a3e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006001600160a01b0384163b15612a8757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129d5903390899088908890600401613821565b6020604051808303816000875af1925050508015612a10575060408051601f3d908101601f19168201909252612a0d9181019061385e565b60015b612a6d573d808015612a3e576040519150601f19603f3d011682016040523d82523d6000602084013e612a43565b606091505b508051600003612a655760405162461bcd60e51b8152600401610a3e906137a5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611de4565b506001949350505050565b600081815b845181101561206d57612ac382868381518110612ab657612ab661338f565b6020026020010151612d3f565b915080612acf816133a5565b915050612a97565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b0e5750600090506003612bbb565b8460ff16601b14158015612b2657508460ff16601c14155b15612b375750600090506004612bbb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612b8b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bb457600060019250925050612bbb565b9150600090505b94509492505050565b6000806001600160ff1b03831681612be160ff86901c601b613635565b9050612bef87828885612ad7565b935093505050935093915050565b6001600160a01b038216612c535760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a3e565b6000818152600260205260409020546001600160a01b031615612cb85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a3e565b6001600160a01b0382166000908152600360205260408120805460019290612ce1908490613635565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310612d5b5760008281526020849052604090206128bc565b5060009182526020526040902090565b6001600160e01b031981168114611b6257600080fd5b600060208284031215612d9357600080fd5b81356128bc81612d6b565b60005b83811015612db9578181015183820152602001612da1565b50506000910152565b60008151808452612dda816020860160208601612d9e565b601f01601f19169290920160200192915050565b6020815260006128bc6020830184612dc2565b600060208284031215612e1357600080fd5b5035919050565b80356001600160a01b0381168114612e3157600080fd5b919050565b60008060408385031215612e4957600080fd5b612e5283612e1a565b946020939093013593505050565b600080600060608486031215612e7557600080fd5b612e7e84612e1a565b9250612e8c60208501612e1a565b9150604084013590509250925092565b60008060408385031215612eaf57600080fd5b50508035926020909101359150565b600060208284031215612ed057600080fd5b6128bc82612e1a565b60008083601f840112612eeb57600080fd5b50813567ffffffffffffffff811115612f0357600080fd5b6020830191508360208260051b8501011115610b0b57600080fd5b60008083601f840112612f3057600080fd5b50813567ffffffffffffffff811115612f4857600080fd5b602083019150836020828501011115610b0b57600080fd5b60008060008060008060608789031215612f7957600080fd5b863567ffffffffffffffff80821115612f9157600080fd5b612f9d8a838b01612ed9565b90985096506020890135915080821115612fb657600080fd5b612fc28a838b01612f1e565b90965094506040890135915080821115612fdb57600080fd5b50612fe889828a01612f1e565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561302b5761302b612ffa565b604051601f8501601f19908116603f0116810190828211818310171561305357613053612ffa565b8160405280935085815286868601111561306c57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561309857600080fd5b813567ffffffffffffffff8111156130af57600080fd5b8201601f810184136130c057600080fd5b611de484823560208401613010565b600080602083850312156130e257600080fd5b823567ffffffffffffffff8111156130f957600080fd5b61310585828601612ed9565b90969095509350505050565b6000806040838503121561312457600080fd5b61312d83612e1a565b91506020830135801515811461314257600080fd5b809150509250929050565b6000806000806080858703121561316357600080fd5b61316c85612e1a565b935061317a60208601612e1a565b925060408501359150606085013567ffffffffffffffff81111561319d57600080fd5b8501601f810187136131ae57600080fd5b6131bd87823560208401613010565b91505092959194509250565b6000806000604084860312156131de57600080fd5b83359250602084013567ffffffffffffffff8111156131fc57600080fd5b61320886828701612ed9565b9497909650939450505050565b6000806040838503121561322857600080fd5b61323183612e1a565b915061323f60208401612e1a565b90509250929050565b600181811c9082168061325c57607f821691505b6020821081036119c957634e487b7160e01b600052602260045260246000fd5b6020808252601a908201527f41646472657373206e6f742061646d696e206f72206f776e6572000000000000604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761091857610918613301565b634e487b7160e01b600052601260045260246000fd5b6000826133535761335361332e565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016133b7576133b7613301565b5060010190565b601f821115610a5157600081815260208120601f850160051c810160208610156133e55750805b601f850160051c820191505b81811015613404578281556001016133f1565b505050505050565b67ffffffffffffffff83111561342457613424612ffa565b613438836134328354613248565b836133be565b6000601f84116001811461346c57600085156134545750838201355b600019600387901b1c1916600186901b1783556134c6565b600083815260209020601f19861690835b8281101561349d578685013582556020948501946001909201910161347d565b50868210156134ba5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b8183823760009101908152919050565b6020808252810182905260006001600160fb1b038311156134fd57600080fd5b8260051b80856040850137919091016040019392505050565b815167ffffffffffffffff81111561353057613530612ffa565b6135448161353e8454613248565b846133be565b602080601f83116001811461357957600084156135615750858301515b600019600386901b1c1916600185901b178555613404565b600085815260208120601f198616915b828110156135a857888601518255948401946001909101908401613589565b50858210156135c65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526017908201527f43616e6e6f74206d696e74207a65726f20746f6b656e73000000000000000000604082015260600190565b6020808252600e908201526d139bc81cdd5c1c1b1e481b19599d60921b604082015260600190565b8082018082111561091857610918613301565b600061ffff80831681810361365f5761365f613301565b6001019392505050565b600080845461367781613248565b6001828116801561368f57600181146136a4576136d3565b60ff19841687528215158302870194506136d3565b8860005260208060002060005b858110156136ca5781548a8201529084019082016136b1565b50505082870194505b5050505083516136e7818360208801612d9e565b01949350505050565b8181038181111561091857610918613301565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008551602061373c82601a8601838b01612d9e565b8651918401601a019181880160005b828110156137675781518552938301939083019060010161374b565b50505094815260609390931b6001600160601b03191693830193909352506034019392505050565b634e487b7160e01b600052603160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826138065761380661332e565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061385490830184612dc2565b9695505050505050565b60006020828403121561387057600080fd5b81516128bc81612d6b56fea2646970667358221220c32e902d0e83899ad877735ae32945e3cf3cad3a9983b44661af372695d545fa64736f6c63430008110033

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

00000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a8000000000000000000000000a84234ee92a65e31af7ba40af58cd5b89e8b52b4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a84234ee92a65e31af7ba40af58cd5b89e8b52b400000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6154527a434e774d3472423731424265616e733671747435574a6946517837464c4858535747705a36716d562f00000000000000000000

-----Decoded View---------------
Arg [0] : admin (address): 0x72DBe00dE00eDF158AEbEE2c82B7E2f19A8c19a8
Arg [1] : payout (address): 0xa84234Ee92A65e31aF7bA40af58cD5B89E8b52B4
Arg [2] : root (bytes32): 0x0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : price (uint256): 250000000000000000
Arg [4] : allowance (uint256): 3
Arg [5] : initUri (string): ipfs://QmaTRzCNwM4rB71BBeans6qtt5WJiFQx7FLHXSWGpZ6qmV/
Arg [6] : signer (address): 0x0000000000000000000000000000000000000000
Arg [7] : royaltyPayout (address): 0xa84234Ee92A65e31aF7bA40af58cD5B89E8b52B4
Arg [8] : royaltyPerc (uint256): 500

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a8
Arg [1] : 000000000000000000000000a84234ee92a65e31af7ba40af58cd5b89e8b52b4
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 00000000000000000000000000000000000000000000000003782dace9d90000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000a84234ee92a65e31af7ba40af58cd5b89e8b52b4
Arg [8] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [10] : 697066733a2f2f516d6154527a434e774d3472423731424265616e7336717474
Arg [11] : 35574a6946517837464c4858535747705a36716d562f00000000000000000000


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.