ETH Price: $3,524.24 (+5.06%)

Token

Stringify(door) (S)
 

Overview

Max Total Supply

7,500 S

Holders

3,312

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 S
0xb276eba4f7023fce5892f3eb46767e1c7e283684
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
StringifyDoor

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 15 : StringifyDoor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

// @author: doorman

/*                                                                                                       
¨¨|||¨||¨||¨|¨¨|||¨|||¨¨¨¨|¨¨¨¨¨¨|||¨|¨¨|¨|¨|¨¨¨¨|¨¨|¨¨||¨¨¨|¨¨||¨|¨|¨||¨¨|
|                                                                         ¨
¨  ¨ ¨¨¨¨|¨¨¨¨¨¨|¨¨|¨||¨||¨||¨¨¨¨|¨||¨|||¨¨¨¨¨¨||||¨||¨¨¨¨||¨¨¨||||¨¨| |  ¨
|  |¨| ||¨¨¨|¨¨¨||||||¨¨||¨¨¨¨¨¨||¨|¨¨|¨|¨|¨¨¨|¨|||¨||¨|¨||¨|||¨||¨¨ |¨¨  |
|  |¨¨|¨ ¨||||¨|¨¨¨¨||¨¨¨¨¨¨¨||¨|||¨¨||¨||¨||¨|¨¨|||||¨¨|¨|¨¨|¨¨¨| ¨||¨|  |
|  ¨||¨||¨ ¨¨¨¨||||¨||||||¨|¨|¨|¨|¨||¨|||¨||||¨¨¨¨||¨|||||¨¨|||| ||¨||¨¨  ¨
|  |¨|¨|¨||| ¨||||||||||¨||¨¨¨¨¨|¨¨¨¨||||||¨¨¨|¨¨||¨|¨|||¨¨¨|| ||¨|||||¨  |
¨  ||¨|||¨||¨¨ ¨||¨¨|¨|¨¨||¨¨¨|¨¨|¨¨¨|¨¨|¨¨|¨|||¨¨|¨¨|¨|||¨| |¨¨|¨¨¨¨|¨|  ¨
¨  ¨||¨||¨|¨|¨|¨ ||¨|¨¨||¨¨¨||¨¨||¨¨||||¨¨|¨¨||¨¨¨||¨|¨¨¨| ¨|¨|¨||¨¨¨|¨¨  |
¨  ||¨¨¨¨¨¨¨¨¨|¨¨¨ ¨||¨|¨|¨¨|¨|¨¨|¨¨|¨|||¨¨¨|||||¨|¨||¨¨ |¨¨¨|¨||¨|¨||||  |
|  ||||¨¨|¨¨|¨|||¨|¨ ¨||¨|¨¨|||¨¨|¨¨¨|¨||¨¨¨¨¨|||||||| ||||||¨|¨¨¨¨||¨|¨  ¨
¨  |¨|¨|¨¨¨¨¨|¨¨|¨¨¨|| |¨¨|¨¨¨¨¨||¨||¨¨¨|||||||¨¨||| |¨|¨¨¨¨¨|¨¨||¨¨||||  |
¨  ¨|||¨¨|¨|¨||||¨¨|||¨¨ ||||||||¨|||¨¨¨¨¨¨||¨¨||¨ ||¨||¨¨||¨¨¨¨¨|||¨¨|¨  ¨
|  |¨|||||||||¨|¨|¨|¨||||¨ ¨¨||¨||¨|¨|¨¨¨¨||||¨| ¨¨||||||¨|¨¨¨||¨|¨|¨|||  ¨
¨  ||¨¨¨||¨¨|¨||||¨|¨¨|¨¨¨|¨ ¨¨¨¨|¨¨¨¨¨|||||¨¨ ¨||¨||¨||¨|||¨¨|¨|¨¨¨¨|¨|  ¨
|  |¨|¨|¨|¨¨¨|¨¨¨|||¨||¨|¨|¨¨|               |¨¨¨||||¨||¨|¨||¨¨¨||¨¨¨¨|¨  ¨
|  ¨¨||||||¨¨¨¨||¨¨¨||¨¨||¨¨|| ||¨¨|¨||||¨|| |¨||¨|¨¨|¨¨|||¨¨¨¨|||¨|¨¨¨¨  ¨
|  ||¨¨¨|¨¨¨||¨|¨¨¨||¨|¨|¨¨|¨¨ ¨           | ||¨|¨¨¨¨¨¨|||¨¨¨¨¨|¨||¨¨¨|¨  |
|  ¨¨¨¨¨|¨|¨¨¨¨||||¨||¨¨¨¨¨||| |           | ¨|¨¨¨¨¨|¨||¨¨¨|¨||¨¨¨¨¨|||¨  |
|  ||¨¨|||¨|¨¨¨¨||¨¨||¨||¨||¨| ¨           ¨ |¨||¨|||¨¨|||¨¨¨¨|¨|¨¨|||¨¨  |
¨  |¨|¨|¨¨|¨||¨|¨¨||¨¨¨|¨||¨|| ¨           | ¨¨¨|¨¨|||¨¨||¨¨|||||||¨¨|||  |
|  ||¨¨¨¨|¨¨|¨¨¨||¨||||||||¨¨| ¨           | ¨¨¨||||||¨|¨||¨¨||¨¨¨¨|¨||¨  |
|  ¨¨¨|¨¨|||¨¨|¨||||¨||¨||¨|¨¨ | ¨¨        | |||¨||||||||¨|¨||¨|¨||¨||¨|  ¨
¨  ¨|¨|¨¨¨|¨||¨|||||¨¨|¨||¨|¨| ¨           ¨ ¨¨|¨|¨|¨|¨¨|||||¨||||||¨¨|¨  ¨
¨  |¨||¨¨¨¨¨|¨||||¨¨¨¨¨¨||||¨¨ |           ¨ ¨¨¨¨¨¨¨|||¨|¨¨¨||||¨|¨¨||¨|  ¨
|  ¨¨|¨|¨¨¨|¨¨¨¨¨¨|¨¨¨|¨¨¨|||| ¨           ¨ |¨||¨||¨|¨¨||¨|¨¨¨||¨|¨¨¨¨¨  |
|  ||¨¨¨¨¨||¨|¨||¨|¨||¨|¨||¨¨| ¨           ¨ |¨|¨|||¨||¨¨|||¨||¨¨|¨|¨|||  ¨
|  ¨||¨¨¨|¨|¨¨¨¨|¨||||¨¨¨¨¨¨|¨ ¨           ¨ |¨¨¨||¨¨¨¨¨|¨||¨¨|¨||¨¨||¨|  |
¨  ¨||||||¨¨||¨||¨|¨||¨|¨|¨||| ¨||¨¨¨¨¨||¨¨¨ |||¨|¨|||||¨¨¨¨|¨||¨¨¨||¨|¨  |
|  ¨|¨¨|¨|||||¨¨¨¨¨|¨|¨|||||||               |¨¨¨|||||¨¨|¨¨¨||¨¨¨¨¨||¨|¨  |
|  ¨|||¨¨¨||¨¨¨¨||¨||¨|¨||¨¨ ¨||¨¨¨¨|¨||¨¨¨|¨¨ ||||||¨¨|¨¨|¨¨|¨¨¨¨¨¨|¨||  |
¨  ¨¨||¨|¨¨¨¨||||¨¨|||¨||¨ ||¨||¨|||||||||¨¨||¨| ¨|¨||||¨¨¨¨¨¨¨||¨||||¨|  |
¨  |||||¨||¨¨¨||¨||||¨|| |¨|¨|¨|¨|¨¨¨¨¨|¨¨|¨|¨||¨| |¨¨|¨||¨¨¨¨|||¨|¨|||¨  |
¨  |¨|¨||||¨|||¨¨¨¨||| |¨|¨¨|¨¨||||¨¨|¨¨||||||¨|||¨| ¨|¨¨|¨|¨|¨||||¨¨|||  |
|  ¨|¨¨¨||¨||¨¨|¨¨¨¨ ¨||¨|||¨||||||||¨¨¨|||¨|¨||¨|¨||¨ |¨||¨¨|¨¨||¨|¨¨||  |
¨  ¨¨¨¨¨|¨¨¨|||¨|¨ ¨||||¨|||¨¨¨||¨¨¨¨¨¨¨¨|¨¨|||¨¨|¨¨|||¨ |¨¨|¨¨|||¨|||¨|  |
¨  ¨|¨||||||¨||¨ |||||¨|¨¨¨¨¨|¨|¨¨¨¨¨¨¨||¨|¨¨¨¨¨|||¨||¨|¨¨ ¨|¨¨|¨|¨¨|¨||  |
¨  ¨¨||¨||¨¨|¨ ¨|¨||||¨¨¨¨¨¨¨|||||¨¨¨|||¨¨|||¨|¨|||¨||¨¨¨||| |¨¨||¨||¨|¨  |
¨  ¨¨|||¨¨|¨ ¨¨|||||||¨¨||¨|¨¨||¨¨¨¨||¨|||||||¨|¨¨|¨|¨¨¨¨|||¨¨ ¨¨|||¨||¨  ¨
¨  ¨|¨¨||| |||||¨¨¨|¨¨||¨¨¨||¨¨¨||¨¨¨|¨¨|||¨¨|||¨|¨¨||¨|||¨¨||¨| ¨|||¨¨¨  |
¨  ¨|¨¨| ¨¨|¨¨||¨¨¨¨|||¨¨|¨|¨||¨¨||¨¨|¨¨|¨|||¨¨||¨¨¨¨¨¨||¨¨|¨||||| ¨¨|||  |
|  ||¨ ¨¨|||||¨|||¨¨||¨¨¨¨¨¨||¨¨||¨|¨|||¨¨|||||||¨|¨|¨¨¨¨||¨||¨||¨¨| ¨¨|  |
|  ¨ ||¨¨|¨¨|¨|||¨¨¨¨¨¨|¨¨¨|¨¨¨¨¨¨||¨¨||||¨¨¨|¨¨¨|¨¨|¨|¨|¨¨|||¨|¨¨|¨|| ¨  |
¨                                                                         ¨
|¨¨¨||¨|¨|||||¨||¨||||¨¨¨¨¨|¨|¨|||¨|¨¨|¨|¨|¨¨¨¨¨¨||¨|||¨¨¨¨¨¨¨||¨¨|¨¨|¨¨|¨¨                                   
*/                                                                                                                                                                                                                   

contract StringifyDoor is ERC721Enumerable, ReentrancyGuard, Ownable {
    using ECDSA for bytes32;

    struct PrivateKeys {
        address earlyInsider;
        address regularInsider;
        address lateInsider;
    }

    PrivateKeys private privateKeys;

    uint256 public maxSupply = 10000;

    bool public theDoorIsOpen = false;
    bool public presaleMintIsActive = false;
    bool public mintIsActive = false;

    uint256 public constant MINT_PRICE = 20000000000000000; // 0.02 ETH

    string[3] private lastPuzzlePieces;
    string[] private symbolsLibrary = [
        '!', '"', '#', '$', '%', '&', '(', ')', '*', '+', '-', '/', ':', '0', 'O', 'o', 
        ';', '=', '<', '>', '?', '@', '[', ']', '^', '_', '`', '{', '|', '}', '~', 'V',
        '\x27', '\xc2\xa1', '\xc2\xa2', '\xc2\xa4', '\xc2\xa6', '\xc2\xa7', '\xc2\xa8', '\xc2\xaa', '\xe2\x95\xa6', '\xe2\x95\xa0',
        // '         ¡           ¢           ¤            ¦           §           ¨          ª             ╦            ╠
        '\xc2\xab', '\xc2\xac',  '\xc2\xaf', '\xc2\xb2', '\xc2\xb3', '\xc2\xb4', '\xc2\xb6', '\xc2\xb7', '\xc2\xb8', '\xc2\xb9',
        //   «           ¬           ¯           ²           ³           ´           ¶           ·           ¸           ¹    
        '\xc2\xba', '\xc2\xbb', '\xc2\xbf', '\xe2\x94\x82', '\xe2\x94\xa4', '\xe2\x97\x88', '\xe2\x94\x94', '\xe2\x95\xa9',
        //   º           »           ¿             │              ┤               ◈               └               ╩
         '\xc3\x97', '\xc3\x98', '\xc3\x9e', '\xe2\x95\xa3', '\xe2\x95\x91', '\xe2\x95\x97', '\xe2\x95\x9d', '\xe2\x94\x90',
        //   ×           Ø           Þ             ╣                ║               ╗                ╝              ┐               
        '\xc3\x9f', '\xe2\x94\xb4', '\xe2\x94\xac', '\xe2\x94\x9c', '\xe2\x94\x80', '\xe2\x94\xbc', '\xe2\x95\x9a', '\xe2\x95\x94',
        //   ß           ┴                ┬                ├               ─               ┼               ╚               ╔               
        '\xc6\x92', '\xe2\x80\x93', '\xe2\x80\x94', '\xe2\x80\x98', '\xe2\x80\x99', '\xe2\x80\x9a', '\xe2\x80\x9c', '\xe2\x80\x9d',
        //   ƒ             –               —               ‘               ’               ‚               “               ”
        '\xe2\x80\x9e', '\xe2\x80\xa0', '\xe2\x80\xa1', '\xe2\x80\xa2', '\xe2\x80\xa6', '\xe2\x95\x90', '\xe2\x95\xac', '\xe2\x94\x98',
        //     „              †               ‡                •               …              ═               ╬               ┘
        '\xe2\x94\x8c', '\xe2\x89\xa1', '\xe2\x80\x97', '\xe2\x99\xa6', '\xe2\x9c\x95', '\xe2\x97\x8e', '\xc3\x90'];
        //   ┌                ≡               ‗              ♦                 ✕              ◎              Ð

    function draw (uint256 tokenId, uint8 tokenType, string[3] memory symbols) internal pure returns (string memory) {
        string[2] memory colors = ['white', 'black'];
        string memory drawing;
        string memory symbol;
        string memory line;
        
        if (tokenType == 1) {
            colors[0] = 'black';
            colors[1] = 'white';
        }

        /* Draw instructions */
        for (uint256 y = 0; y < 45; y++) {
            line = '<tspan x="25" dy="10">';
            for (uint256 x = 0; x < 75; x++) {
                if (((y == 1 || y == 43) && x > 1 && x < 74) || 
                    ((x == 1 || x == 2 || x == 73 || x == 72 ) && (y > 0 && y < 44)) || 
                    ((y != 22 && y > 16 && y < 28 && x > 31 && x < 43)) || 
                    (y == 22 && x > 31 && x < 43 && x != 33 && x != 34) ||
                    ((y == 15 || y == 29) && x > 29 && x < 45) ||
                    ((x == 30|| x == 44) && y > 15 && y < 29) ||
                    (y > 1 && y < 15 && (x == y * 2 || x == 74 - y * 2)) ||
                    (y > 29 && y < 43 && ((x == y * 2 - 14) || (x == 88 - y * 2)))) {
                    line = string(abi.encodePacked(line, ' '));
                } else {
                    symbol = symbols[0];
                    uint randomNumber = random(string(abi.encodePacked(toString(y), toString(x), toString(tokenId)))) % 300;
                    if (randomNumber > 99 && randomNumber < 200) {
                        symbol = symbols[1];
                    } else if (randomNumber > 199) {
                        symbol = symbols[2];
                    }
                    line = string(abi.encodePacked(line, symbol));
                }
            }
            drawing = string(abi.encodePacked(drawing, line, '</tspan>'));
        }

        drawing = string(
            abi.encodePacked(
                '<svg xmlns="http://www.w3.org/2000/svg" height="500" width="500">',
                '<rect width="500" height="500" x="0" y="0" style="fill:',
                colors[1],
                ';" /><text x="25" y="25" style="fill:',
                colors[0],
                ';font-family: courier;font-size:10px;" xml:space="preserve">', 
                drawing, 
                '</text></svg>'
            )
        );

        return string(abi.encodePacked("data:image/svg+xml;base64,", Base64.encode(bytes(drawing))));
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        if (!theDoorIsOpen) {
            /* Return the placeholder before the reveal */
            string memory closedDoorOutput = Base64.encode(bytes(abi.encodePacked('{"name": "Door #', toString(tokenId) ,' (unrevealed)", "description": "Be patient.", "image": "https://door.stringify.art/placeholder.gif"}')));
            return string(abi.encodePacked("data:application/json;base64,", closedDoorOutput));
        } 

        uint8 tokenType = 0;
        string memory background = 'black';
        string[2] memory json;
        string[3] memory symbols = [
            symbolsLibrary[random(string(abi.encodePacked(lastPuzzlePieces[0], toString(tokenId)))) % symbolsLibrary.length], 
            symbolsLibrary[random(string(abi.encodePacked(lastPuzzlePieces[1], toString(tokenId)))) % symbolsLibrary.length],
            symbolsLibrary[random(string(abi.encodePacked(lastPuzzlePieces[2], toString(tokenId)))) % symbolsLibrary.length]
        ];

        /* White background color */
        if ((random(string(abi.encodePacked(toString(tokenId)))) % 100) < 1) {
            tokenType = 1;
            background = 'white';
        }

        string memory output = draw(tokenId, tokenType, symbols);

        json[0] = string(
            abi.encodePacked(
                '{"name": "Door #',
                toString(tokenId),
                '", "id": "',
                toString(tokenId),
                '", "description": "Stringify(door) is a collection of 10k minimalist doors randomly generated by the Ethereum blockchain and stored in it forever.", "image": "'
            )
        );

        json[1] = string(
            abi.encodePacked(
                output,
                '", "attributes":[{"trait_type":"First symbol","value":"',
                symbols[0],
                '"}, {"trait_type":"Second symbol","value":"',
                symbols[1],
                '"}, {"trait_type":"Third symbol","value":"',
                symbols[2],
                '"}, {"trait_type":"Symbols triplet","value":"',
                string(abi.encodePacked(symbols[0], symbols[1], symbols[2])),
                '"}, {"trait_type":"Background","value":"',
                background,
                '"}]}'
            )
        );

        string memory result = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        json[0],
                        json[1]
                    )
                )
            )
        );

        output = string(abi.encodePacked("data:application/json;base64,", result));

        return output;
    }

    function mint(uint256 numberOfTokens) public payable nonReentrant  {
        require(mintIsActive, "Public mint is not active at the moment. Be patient.");
        require(numberOfTokens > 0, "Number of tokens can not be less than or equal to 0.");
        require(totalSupply() + numberOfTokens <= maxSupply, "Purchase would exceed max supply.");
        require(numberOfTokens <= 4, "Can only mint up to 4 per transaction.");
        require(MINT_PRICE * numberOfTokens == msg.value, "Sent ETH value is incorrect.");

        for (uint i = 0; i < numberOfTokens; i++) {
            _safeMint(_msgSender(), totalSupply() + 1);
        }
    }

    function presaleMint(uint256 numberOfTokens, bytes memory signature) public payable nonReentrant  {
        require(presaleMintIsActive, "Presale mint is not active at the moment. Be patient.");
        require(numberOfTokens > 0, "Number of tokens can not be less than or equal to 0.");
        require(totalSupply() + numberOfTokens <= maxSupply, "Purchase would exceed max supply.");

        // Verify EIP-712 signature
        address recoveredKey = keccak256(abi.encodePacked(msg.sender)).toEthSignedMessageHash().recover(signature);
        require(recoveredKey == privateKeys.earlyInsider || recoveredKey == privateKeys.regularInsider || recoveredKey == privateKeys.lateInsider, "Your wallet is not whitelisted for the presale.");

        // Verify nb of tokens in wallet
        if (recoveredKey == privateKeys.earlyInsider) {
            require(balanceOf(msg.sender) + numberOfTokens <= 3, "Can only mint up to 3 per wallet.");
        } else if (recoveredKey == privateKeys.regularInsider) {
            require(balanceOf(msg.sender) + numberOfTokens <= 2, "Can only mint up to 2 per wallet.");
        } else if (recoveredKey == privateKeys.lateInsider) {
            require(balanceOf(msg.sender) + numberOfTokens == 1, "Can only mint up to 1 per wallet.");
        }

        require(MINT_PRICE * numberOfTokens == msg.value, "Sent ETH value is incorrect.");

        for (uint i = 0; i < numberOfTokens; i++) {
            _safeMint(_msgSender(), totalSupply() + 1);
        }
    }

    function setPrivateKeys(address[3] memory keys) public onlyOwner {
        privateKeys = PrivateKeys(keys[0], keys[1], keys[2]);
    }

    function flipMintState() public onlyOwner {
        mintIsActive = !mintIsActive;
    }

    function flipPresaleMintState() public onlyOwner {
        presaleMintIsActive = !presaleMintIsActive;
    }

    function openTheDoor (string[3] memory _lastPuzzlePieces) public onlyOwner {
        require(!theDoorIsOpen, "The door can be opened only once.");
        lastPuzzlePieces = _lastPuzzlePieces;
        theDoorIsOpen = true;
    }

    function withdraw() public onlyOwner {
        uint balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function random(string memory input) internal pure returns (uint) {
        return uint(keccak256(abi.encodePacked(input)));
    }

    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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 + uint(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    constructor() ERC721("Stringify(door)", "S") Ownable() {}
}

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 4 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 5 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

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

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

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

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 8 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 15 : Context.sol
// SPDX-License-Identifier: MIT

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 12 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 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 Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

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 15 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPresaleMintState","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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[3]","name":"_lastPuzzlePieces","type":"string[3]"}],"name":"openTheDoor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[3]","name":"keys","type":"address[3]"}],"name":"setPrivateKeys","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"theDoorIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

612710600f556010805462ffffff191690556001610ce0818152602160f81b610d005260809081526006610d20908152652671756f743b60d01b610d405260a052610d60828152602360f81b610d805260c052610da0828152600960fa1b610dc05260e052610de0828152602560f81b610e0052610100526005610e209081526426616d703b60d81b610e405261012052610e60828152600560fb1b610e805261014052610ea0828152602960f81b610ec05261016052610ee0828152601560f91b610f005261018052610f20828152602b60f81b610f40526101a052610f60828152602d60f81b610f80526101c052610fa0828152602f60f81b610fc0526101e052610fe0828152601d60f91b6110005261020052611020828152600360fc1b6110405261022052611060828152604f60f81b61108052610240526110a0828152606f60f81b6110c052610260526110e0828152603b60f81b6111005261028052611120828152603d60f81b611140526102a052600461116081815263266c743b60e01b611180526102c0526111a0908152632667743b60e01b6111c0526102e0526111e0828152603f60f81b6112005261030052611220828152600160fe1b6112405261032052611260828152605b60f81b61128052610340526112a0828152605d60f81b6112c052610360526112e0828152602f60f91b6113005261038052611320828152605f60f81b611340526103a052611360828152600360fd1b611380526103c0526113a0828152607b60f81b6113c0526103e0526113e0828152601f60fa1b6114005261040052611420828152607d60f81b6114405261042052611460828152603f60f91b61148052610440526114a0828152602b60f91b6114c052610460526114e0918252602760f81b6115005261048091909152600261152081815261c2a160f01b611540526104a05261156081815261615160f11b611580526104c0526115a08181526130a960f21b6115c0526104e0526115e081815261615360f11b611600526105005261162081815261c2a760f01b611640526105205261166081815261185560f31b61168052610540526116a081815261615560f11b6116c0526105605260036116e081815262714ad360e91b6117005261058052611720818152620714ad60ed1b611740526105a05261176082815261c2ab60f01b611780526105c0526117a08281526130ab60f21b6117c0526105e0526117e082815261c2af60f01b611800526106005261182082815261615960f11b611840526106205261186082815261c2b360f01b61188052610640526118a08281526130ad60f21b6118c052610660526118e082815261615b60f11b611900526106805261192082815261c2b760f01b611940526106a05261196082815261185760f31b611980526106c0526119a082815261c2b960f01b6119c0526106e0526119e082815261615d60f11b611a005261070052611a2082815261c2bb60f01b611a405261072052611a6082815261c2bf60f01b611a805261074052611aa081815262714a4160e91b611ac05261076052611ae08181526238a52960ea1b611b005261078052611b20818152621c52f160eb1b611b40526107a052611b608181526238a52560ea1b611b80526107c052611ba081815262e295a960e81b611bc0526107e052611be082815261c39760f01b611c005261080052611c2082815261187360f31b611c405261082052611c608281526161cf60f11b611c805261084052611ca081815262e295a360e81b611cc05261086052611ce081815262e2959160e81b611d005261088052611d2081815262e2959760e81b611d40526108a052611d6081815262e2959d60e81b611d80526108c052611da0818152620e294960ec1b611dc0526108e052611de082815261c39f60f01b611e005261090052611e208181526238a52d60ea1b611e405261092052611e608181526238a52b60ea1b611e805261094052611ea08181526238a52760ea1b611ec05261096052611ee08181526201c52960ef1b611f005261098052611f208181526238a52f60ea1b611f40526109a052611f6081815262714acd60e91b611f80526109c052611fa08181526238a56560ea1b611fc0526109e052611fe082815261634960f11b61200052610a005261202081815262e2809360e81b61204052610a20526120608181526238a02560ea1b61208052610a40526120a0818152621c501360eb1b6120c052610a60526120e081815262e2809960e81b61210052610a80526121208181526271404d60e91b61214052610aa0526121608181526238a02760ea1b61218052610ac0526121a081815262e2809d60e81b6121c052610ae0526121e08181526271404f60e91b61220052610b00526122208181526207140560ed1b61224052610b205261226081815262e280a160e81b61228052610b40526122a08181526271405160e91b6122c052610b60526122e08181526271405360e91b61230052610b8052612320818152620e295960ec1b61234052610ba0526123608181526238a56b60ea1b61238052610bc0526123a0818152621c529360eb1b6123c052610be0526123e08181526238a52360ea1b61240052610c005261242081815262e289a160e81b61244052610c205261246081815262e2809760e81b61248052610c40526124a081815262714cd360e91b6124c052610c60526124e081815262e29c9560e81b61250052610c805261252090815262714bc760e91b61254052610ca0526125a0604052612560908152610c3960f41b61258052610cc05262000806906014906063620008e6565b503480156200081457600080fd5b50604080518082018252600f81526e537472696e6769667928646f6f722960881b6020808301918252835180850190945260018452605360f81b90840152815191929162000865916000916200094a565b5080516200087b9060019060208401906200094a565b50506001600a55506200088e3362000894565b62000a8c565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000938579160200282015b82811115620009385782518051620009279184916020909101906200094a565b509160200191906001019062000907565b5062000946929150620009d5565b5090565b828054620009589062000a4f565b90600052602060002090601f0160209004810192826200097c5760008555620009c7565b82601f106200099757805160ff1916838001178555620009c7565b82800160010185558215620009c7579182015b82811115620009c7578251825591602001919060010190620009aa565b5062000946929150620009f6565b8082111562000946576000620009ec828262000a0d565b50600101620009d5565b5b80821115620009465760008155600101620009f7565b50805462000a1b9062000a4f565b6000825580601f1062000a2c575050565b601f01602090049060005260206000209081019062000a4c9190620009f6565b50565b600181811c9082168062000a6457607f821691505b6020821081141562000a8657634e487b7160e01b600052602260045260246000fd5b50919050565b6148068062000a9c6000396000f3fe6080604052600436106101d85760003560e01c8063715018a611610102578063c87b56dd11610095578063f247c7a011610064578063f247c7a014610546578063f2fde38b14610565578063f931a4c214610585578063fd24a8541461059a57600080fd5b8063c87b56dd146104a7578063d5abeb01146104c7578063e985e9c5146104dd578063eb55113e1461052657600080fd5b8063a0712d68116100d1578063a0712d6814610439578063a22cb4651461044c578063b88d4fde1461046c578063c002d23d1461048c57600080fd5b8063715018a6146103d15780638da5cb5b146103e657806395d89b41146104045780639936d28f1461041957600080fd5b80633ccfd60b1161017a57806359c74f291161014957806359c74f29146103625780636352211e146103775780636e581d401461039757806370a08231146103b157600080fd5b80633ccfd60b146102ed57806342842e0e14610302578063471a4294146103225780634f6ccce71461034257600080fd5b8063095ea7b3116101b6578063095ea7b31461026c57806318160ddd1461028e57806323b872dd146102ad5780632f745c59146102cd57600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004613b04565b6105ad565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b50610227610609565b60405161020991906144bf565b34801561024057600080fd5b5061025461024f366004613b3e565b61069b565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c6102873660046139b5565b610746565b005b34801561029a57600080fd5b506008545b604051908152602001610209565b3480156102b957600080fd5b5061028c6102c83660046138d5565b610878565b3480156102d957600080fd5b5061029f6102e83660046139b5565b6108ff565b3480156102f957600080fd5b5061028c6109a7565b34801561030e57600080fd5b5061028c61031d3660046138d5565b610a34565b34801561032e57600080fd5b506010546101fd9062010000900460ff1681565b34801561034e57600080fd5b5061029f61035d366004613b3e565b610a4f565b34801561036e57600080fd5b5061028c610af3565b34801561038357600080fd5b50610254610392366004613b3e565b610b88565b3480156103a357600080fd5b506010546101fd9060ff1681565b3480156103bd57600080fd5b5061029f6103cc366004613887565b610c13565b3480156103dd57600080fd5b5061028c610cad565b3480156103f257600080fd5b50600b546001600160a01b0316610254565b34801561041057600080fd5b50610227610d13565b34801561042557600080fd5b5061028c6104343660046139df565b610d22565b61028c610447366004613b3e565b610df9565b34801561045857600080fd5b5061028c610467366004613979565b6110e4565b34801561047857600080fd5b5061028c610487366004613911565b6111c7565b34801561049857600080fd5b5061029f66470de4df82000081565b3480156104b357600080fd5b506102276104c2366004613b3e565b611255565b3480156104d357600080fd5b5061029f600f5481565b3480156104e957600080fd5b506101fd6104f83660046138a2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561053257600080fd5b5061028c610541366004613a4f565b611765565b34801561055257600080fd5b506010546101fd90610100900460ff1681565b34801561057157600080fd5b5061028c610580366004613887565b611874565b34801561059157600080fd5b5061028c611956565b61028c6105a8366004613b57565b6119ea565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610603575061060382611f86565b92915050565b606060008054610618906145a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610644906145a7565b80156106915780601f1061066657610100808354040283529160200191610691565b820191906000526020600020905b81548152906001019060200180831161067457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661072a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075182610b88565b9050806001600160a01b0316836001600160a01b031614156107db5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b336001600160a01b03821614806107f757506107f781336104f8565b6108695760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610721565b6108738383612069565b505050565b61088233826120ef565b6108f45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610721565b6108738383836121f7565b600061090a83610c13565b821061097e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610721565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b03163314610a015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b6040514790339082156108fc029083906000818181858888f19350505050158015610a30573d6000803e3d6000fd5b5050565b610873838383604051806020016040528060008152506111c7565b6000610a5a60085490565b8210610ace5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610721565b60088281548110610ae157610ae1614704565b90600052602060002001549050919050565b600b546001600160a01b03163314610b4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b6000818152600260205260408120546001600160a01b0316806106035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610721565b60006001600160a01b038216610c915760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610721565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610d075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b610d1160006123e7565b565b606060018054610618906145a7565b600b546001600160a01b03163314610d7c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b6040805160608101825282516001600160a01b0390811680835260208086015183169084018190529484015190911691909201819052600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169093179055600d80548316909317909255600e80549091169091179055565b6002600a541415610e4c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610721565b6002600a5560105462010000900460ff16610ecf5760405162461bcd60e51b815260206004820152603460248201527f5075626c6963206d696e74206973206e6f74206163746976652061742074686560448201527f206d6f6d656e742e2042652070617469656e742e0000000000000000000000006064820152608401610721565b60008111610f455760405162461bcd60e51b815260206004820152603460248201527f4e756d626572206f6620746f6b656e732063616e206e6f74206265206c65737360448201527f207468616e206f7220657175616c20746f20302e0000000000000000000000006064820152608401610721565b600f5481610f5260085490565b610f5c91906144fb565b1115610fd05760405162461bcd60e51b815260206004820152602160248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b60048111156110475760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c79206d696e7420757020746f203420706572207472616e736160448201527f6374696f6e2e00000000000000000000000000000000000000000000000000006064820152608401610721565b346110598266470de4df820000614527565b146110a65760405162461bcd60e51b815260206004820152601c60248201527f53656e74204554482076616c756520697320696e636f72726563742e000000006044820152606401610721565b60005b818110156110db576110c9335b6008546110c49060016144fb565b612451565b806110d3816145fb565b9150506110a9565b50506001600a55565b6001600160a01b03821633141561113d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610721565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6111d133836120ef565b6112435760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610721565b61124f8484848461246b565b50505050565b6000818152600260205260409020546060906001600160a01b03166112e25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610721565b60105460ff1661134857600061131e6112fa846124f4565b60405160200161130a919061401b565b604051602081830303815290604052612626565b905080604051602001611331919061423c565b604051602081830303815290604052915050919050565b60408051808201909152600581527f626c61636b000000000000000000000000000000000000000000000000000000602082015260009061138761366b565b6040805160608101909152601480546000929182916113d26011865b016113ad8c6124f4565b6040516020016113be929190613f3d565b6040516020818303038152906040526127ff565b6113dc9190614634565b815481106113ec576113ec614704565b906000526020600020018054611401906145a7565b80601f016020809104026020016040519081016040528092919081815260200182805461142d906145a7565b801561147a5780601f1061144f5761010080835404028352916020019161147a565b820191906000526020600020905b81548152906001019060200180831161145d57829003601f168201915b505050918352505060148054602090920191611498601160016113a3565b6114a29190614634565b815481106114b2576114b2614704565b9060005260206000200180546114c7906145a7565b80601f01602080910402602001604051908101604052809291908181526020018280546114f3906145a7565b80156115405780601f1061151557610100808354040283529160200191611540565b820191906000526020600020905b81548152906001019060200180831161152357829003601f168201915b50505091835250506014805460209092019161155e601160026113a3565b6115689190614634565b8154811061157857611578614704565b90600052602060002001805461158d906145a7565b80601f01602080910402602001604051908101604052809291908181526020018280546115b9906145a7565b80156116065780601f106115db57610100808354040283529160200191611606565b820191906000526020600020905b8154815290600101906020018083116115e957829003601f168201915b5050505050815250905060016064611630611620896124f4565b6040516020016113be9190613be6565b61163a9190614634565b101561167d57600193506040518060400160405280600581526020017f776869746500000000000000000000000000000000000000000000000000000081525092505b600061168a878684612830565b9050611695876124f4565b61169e886124f4565b6040516020016116af9291906140f9565b60408051808303601f190181529181529084528251602084810151858401519351859491926116e49185918591859101613c31565b60408051601f198184030181529082905261170795949392918a90602001613ccb565b60408051808303601f190181529181526020808601839052855191516000936117369361130a93909201613c02565b905080604051602001611749919061423c565b60408051601f1981840301815291905298975050505050505050565b600b546001600160a01b031633146117bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b60105460ff16156118385760405162461bcd60e51b815260206004820152602160248201527f54686520646f6f722063616e206265206f70656e6564206f6e6c79206f6e636560448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b6118456011826003613692565b5050601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b546001600160a01b031633146118ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b6001600160a01b03811661194a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610721565b611953816123e7565b50565b600b546001600160a01b031633146119b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b6002600a541415611a3d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610721565b6002600a55601054610100900460ff16611abf5760405162461bcd60e51b815260206004820152603560248201527f50726573616c65206d696e74206973206e6f742061637469766520617420746860448201527f65206d6f6d656e742e2042652070617469656e742e00000000000000000000006064820152608401610721565b60008211611b355760405162461bcd60e51b815260206004820152603460248201527f4e756d626572206f6620746f6b656e732063616e206e6f74206265206c65737360448201527f207468616e206f7220657175616c20746f20302e0000000000000000000000006064820152608401610721565b600f5482611b4260085490565b611b4c91906144fb565b1115611bc05760405162461bcd60e51b815260206004820152602160248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b604080513360601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060548401526070808401919091528351808403909101815260909092019092528051910120600090611c5c9083612ccd565b600c549091506001600160a01b0380831691161480611c885750600d546001600160a01b038281169116145b80611ca05750600e546001600160a01b038281169116145b611d125760405162461bcd60e51b815260206004820152602f60248201527f596f75722077616c6c6574206973206e6f742077686974656c6973746564206660448201527f6f72207468652070726573616c652e00000000000000000000000000000000006064820152608401610721565b600c546001600160a01b0382811691161415611db757600383611d3433610c13565b611d3e91906144fb565b1115611db25760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420757020746f2033207065722077616c6c657460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b611ef6565b600d546001600160a01b0382811691161415611e5757600283611dd933610c13565b611de391906144fb565b1115611db25760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420757020746f2032207065722077616c6c657460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b600e546001600160a01b0382811691161415611ef65782611e7733610c13565b611e8191906144fb565b600114611ef65760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420757020746f2031207065722077616c6c657460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b34611f088466470de4df820000614527565b14611f555760405162461bcd60e51b815260206004820152601c60248201527f53656e74204554482076616c756520697320696e636f72726563742e000000006044820152606401610721565b60005b83811015611f7b57611f69336110b6565b80611f73816145fb565b915050611f58565b50506001600a555050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061201957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061060357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610603565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906120b682610b88565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166121795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610721565b600061218483610b88565b9050806001600160a01b0316846001600160a01b031614806121bf5750836001600160a01b03166121b48461069b565b6001600160a01b0316145b806121ef57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661220a82610b88565b6001600160a01b0316146122865760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610721565b6001600160a01b0382166123015760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610721565b61230c838383612cf1565b612317600082612069565b6001600160a01b0383166000908152600360205260408120805460019290612340908490614564565b90915550506001600160a01b038216600090815260036020526040812080546001929061236e9084906144fb565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a30828260405180602001604052806000815250612da9565b6124768484846121f7565b61248284848484612e32565b61124f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610721565b60608161253457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561255e5780612548816145fb565b91506125579050600a83614513565b9150612538565b60008167ffffffffffffffff81111561257957612579614733565b6040519080825280601f01601f1916602001820160405280156125a3576020820181803683370190505b5090505b84156121ef576125b8600183614564565b91506125c5600a86614634565b6125d09060306144fb565b60f81b8183815181106125e5576125e5614704565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061261f600a86614513565b94506125a7565b805160609080612646575050604080516020810190915260008152919050565b600060036126558360026144fb565b61265f9190614513565b61266a906004614527565b905060006126798260206144fb565b67ffffffffffffffff81111561269157612691614733565b6040519080825280601f01601f1916602001820160405280156126bb576020820181803683370190505b5090506000604051806060016040528060408152602001614791604091399050600181016020830160005b86811015612747576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016126e6565b50600386066001811461276157600281146127ab576127f1565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8301526127f1565b7f3d000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301525b505050918152949350505050565b6000816040516020016128129190613be6565b60408051601f19818403018152919052805160209091012092915050565b6060600060405180604001604052806040518060400160405280600581526020017f776869746500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f626c61636b000000000000000000000000000000000000000000000000000000815250815250905060608060608660ff16600114156129345760408051808201825260058082527f626c61636b000000000000000000000000000000000000000000000000000000602080840191909152918752825180840190935282527f7768697465000000000000000000000000000000000000000000000000000000828201528501525b60005b602d811015612c6f576040518060400160405280601681526020017f3c747370616e20783d223235222064793d223130223e00000000000000000000815250915060005b604b811015612c37578160011480612993575081602b145b801561299f5750600181115b80156129ab5750604a81105b806129ed575080600114806129c05750806002145b806129cb5750806049145b806129d65750806048145b80156129ed57506000821180156129ed5750602c82105b80612a28575081601614158015612a045750601082115b8015612a105750601c82105b8015612a1c5750601f81115b8015612a285750602b81105b80612a645750816016148015612a3e5750601f81115b8015612a4a5750602b81105b8015612a57575080602114155b8015612a64575080602214155b80612a91575081600f1480612a79575081601d145b8015612a855750601d81115b8015612a915750602d81105b80612abe575080601e1480612aa6575080602c145b8015612ab25750600f82115b8015612abe5750601d82105b80612b075750600182118015612ad45750600f82105b8015612b075750612ae6826002614527565b811480612b075750612af9826002614527565b612b0490604a614564565b81145b80612b5c5750601d82118015612b1d5750602b82105b8015612b5c5750600e612b31836002614527565b612b3b9190614564565b811480612b5c5750612b4e826002614527565b612b59906058614564565b81145b15612b885782604051602001612b729190613efc565b6040516020818303038152906040529250612c25565b87519350600061012c612bc1612b9d856124f4565b612ba6856124f4565b612baf8f6124f4565b6040516020016113be93929190613c31565b612bcb9190614634565b9050606381118015612bdd575060c881105b15612bee5760208901519450612bff565b60c7811115612bff57604089015194505b8385604051602001612c12929190613c02565b6040516020818303038152906040529350505b80612c2f816145fb565b91505061297b565b508382604051602001612c4b929190613c74565b60405160208183030381529060405293508080612c67906145fb565b915050612937565b506020808501518551604051612c8793879101614281565b6040516020818303038152906040529250612ca183612626565b604051602001612cb19190614448565b6040516020818303038152906040529450505050509392505050565b6000806000612cdc8585612fdf565b91509150612ce98161304f565b509392505050565b6001600160a01b038316612d4c57612d4781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d6f565b816001600160a01b0316836001600160a01b031614612d6f57612d6f8382613240565b6001600160a01b038216612d8657610873816132dd565b826001600160a01b0316826001600160a01b03161461087357610873828261338c565b612db383836133d0565b612dc06000848484612e32565b6108735760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610721565b60006001600160a01b0384163b15612fd4576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612e8f90339089908890889060040161448d565b602060405180830381600087803b158015612ea957600080fd5b505af1925050508015612ed9575060408051601f3d908101601f19168201909252612ed691810190613b21565b60015b612f89573d808015612f07576040519150601f19603f3d011682016040523d82523d6000602084013e612f0c565b606091505b508051612f815760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610721565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506121ef565b506001949350505050565b6000808251604114156130165760208301516040840151606085015160001a61300a87828585613536565b94509450505050613048565b8251604014156130405760208301516040840151613035868383613623565b935093505050613048565b506000905060025b9250929050565b6000816004811115613063576130636146a6565b141561306c5750565b6001816004811115613080576130806146a6565b14156130ce5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610721565b60028160048111156130e2576130e26146a6565b14156131305760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610721565b6003816004811115613144576131446146a6565b14156131b85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610721565b60048160048111156131cc576131cc6146a6565b14156119535760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610721565b6000600161324d84610c13565b6132579190614564565b6000838152600760205260409020549091508082146132aa576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906132ef90600190614564565b6000838152600960205260408120546008805493945090928490811061331757613317614704565b90600052602060002001549050806008838154811061333857613338614704565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613370576133706146d5565b6001900381819060005260206000200160009055905550505050565b600061339783610c13565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166134265760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610721565b6000818152600260205260409020546001600160a01b03161561348b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610721565b61349760008383612cf1565b6001600160a01b03821660009081526003602052604081208054600192906134c09084906144fb565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561356d575060009050600361361a565b8460ff16601b1415801561358557508460ff16601c14155b15613596575060009050600461361a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156135ea573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166136135760006001925092505061361a565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161365d87828885613536565b935093505050935093915050565b60405180604001604052806002905b606081526020019060019003908161367a5790505090565b82600381019282156136d2579160200282015b828111156136d257825180516136c29184916020909101906136e2565b50916020019190600101906136a5565b506136de929150613762565b5090565b8280546136ee906145a7565b90600052602060002090601f0160209004810192826137105760008555613756565b82601f1061372957805160ff1916838001178555613756565b82800160010185558215613756579182015b8281111561375657825182559160200191906001019061373b565b506136de92915061377f565b808211156136de5760006137768282613794565b50600101613762565b5b808211156136de5760008155600101613780565b5080546137a0906145a7565b6000825580601f106137b0575050565b601f016020900490600052602060002090810190611953919061377f565b600067ffffffffffffffff808411156137e9576137e9614733565b604051601f8501601f19908116603f0116810190828211818310171561381157613811614733565b8160405280935085815286868601111561382a57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461385b57600080fd5b919050565b600082601f83011261387157600080fd5b613880838335602085016137ce565b9392505050565b60006020828403121561389957600080fd5b61388082613844565b600080604083850312156138b557600080fd5b6138be83613844565b91506138cc60208401613844565b90509250929050565b6000806000606084860312156138ea57600080fd5b6138f384613844565b925061390160208501613844565b9150604084013590509250925092565b6000806000806080858703121561392757600080fd5b61393085613844565b935061393e60208601613844565b925060408501359150606085013567ffffffffffffffff81111561396157600080fd5b61396d87828801613860565b91505092959194509250565b6000806040838503121561398c57600080fd5b61399583613844565b9150602083013580151581146139aa57600080fd5b809150509250929050565b600080604083850312156139c857600080fd5b6139d183613844565b946020939093013593505050565b6000606082840312156139f157600080fd5b82601f830112613a0057600080fd5b613a086144d2565b808385606086011115613a1a57600080fd5b60005b6003811015613a4457613a2f82613844565b84526020938401939190910190600101613a1d565b509095945050505050565b60006020808385031215613a6257600080fd5b823567ffffffffffffffff80821115613a7a57600080fd5b8185019150601f8681840112613a8f57600080fd5b613a976144d2565b808489606087011115613aa957600080fd5b60005b6003811015613af557813586811115613ac457600080fd5b87018581018c13613ad457600080fd5b613ae28c82358b84016137ce565b8552509287019290870190600101613aac565b50909998505050505050505050565b600060208284031215613b1657600080fd5b813561388081614762565b600060208284031215613b3357600080fd5b815161388081614762565b600060208284031215613b5057600080fd5b5035919050565b60008060408385031215613b6a57600080fd5b82359150602083013567ffffffffffffffff811115613b8857600080fd5b613b9485828601613860565b9150509250929050565b60008151808452613bb681602086016020860161457b565b601f01601f19169290920160200192915050565b60008151613bdc81856020860161457b565b9290920192915050565b60008251613bf881846020870161457b565b9190910192915050565b60008351613c1481846020880161457b565b835190830190613c2881836020880161457b565b01949350505050565b60008451613c4381846020890161457b565b845190830190613c5781836020890161457b565b8451910190613c6a81836020880161457b565b0195945050505050565b60008351613c8681846020880161457b565b835190830190613c9a81836020880161457b565b7f3c2f747370616e3e0000000000000000000000000000000000000000000000009101908152600801949350505050565b60008751613cdd818460208c0161457b565b80830190507f222c202261747472696275746573223a5b7b2274726169745f74797065223a2281527f46697273742073796d626f6c222c2276616c7565223a2200000000000000000060208201528751613d3e816037840160208c0161457b565b7f227d2c207b2274726169745f74797065223a225365636f6e642073796d626f6c603792909101918201527f222c2276616c7565223a2200000000000000000000000000000000000000000060578201528651613da2816062840160208b0161457b565b7f227d2c207b2274726169745f74797065223a2254686972642073796d626f6c22606292909101918201527f2c2276616c7565223a220000000000000000000000000000000000000000000060828201528551613e0681608c840160208a0161457b565b613eee613ec5613ebf613e70613e6a608c868801017f227d2c207b2274726169745f74797065223a2253796d626f6c7320747269706c81527f6574222c2276616c7565223a22000000000000000000000000000000000000006020820152602d0190565b8a613bca565b7f227d2c207b2274726169745f74797065223a224261636b67726f756e64222c2281527f76616c7565223a22000000000000000000000000000000000000000000000000602082015260280190565b87613bca565b7f227d5d7d00000000000000000000000000000000000000000000000000000000815260040190565b9a9950505050505050505050565b60008251613f0e81846020870161457b565b7f2000000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b600080845481600182811c915080831680613f5957607f831692505b6020808410821415613f92577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613fa65760018114613fd557614002565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650614002565b60008b81526020902060005b86811015613ffa5781548b820152908501908301613fe1565b505084890196505b5050505050506140128185613bca565b95945050505050565b7f7b226e616d65223a2022446f6f7220230000000000000000000000000000000081526000825161405381601085016020870161457b565b7f2028756e72657665616c656429222c20226465736372697074696f6e223a202260109390910192830152507f42652070617469656e742e222c2022696d616765223a202268747470733a2f2f60308201527f646f6f722e737472696e676966792e6172742f706c616365686f6c6465722e6760508201527f6966227d000000000000000000000000000000000000000000000000000000006070820152607401919050565b7f7b226e616d65223a2022446f6f7220230000000000000000000000000000000081526000835161413181601085016020880161457b565b7f222c20226964223a202200000000000000000000000000000000000000000000601091840191820152835161416e81601a84016020880161457b565b7f222c20226465736372697074696f6e223a2022537472696e6769667928646f6f601a92909101918201527f7229206973206120636f6c6c656374696f6e206f662031306b206d696e696d61603a8201527f6c69737420646f6f72732072616e646f6d6c792067656e657261746564206279605a8201527f2074686520457468657265756d20626c6f636b636861696e20616e642073746f607a8201527f72656420696e20697420666f72657665722e222c2022696d616765223a202200609a82015260b901949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161427481601d85016020870161457b565b91909101601d0192915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f73766722206865696768743d22353030222077696474683d223530302260208201527f3e0000000000000000000000000000000000000000000000000000000000000060408201527f3c726563742077696474683d2235303022206865696768743d2235303022207860418201527f3d22302220793d223022207374796c653d2266696c6c3a00000000000000000060618201526000845161435181607885016020890161457b565b7f3b22202f3e3c7465787420783d2232352220793d22323522207374796c653d226078918401918201527f66696c6c3a000000000000000000000000000000000000000000000000000000609882015284516143b481609d84016020890161457b565b7f3b666f6e742d66616d696c793a20636f75726965723b666f6e742d73697a653a609d92909101918201527f313070783b2220786d6c3a73706163653d227072657365727665223e0000000060bd82015261443e61441560d9830186613bca565b7f3c2f746578743e3c2f7376673e000000000000000000000000000000000000008152600d0190565b9695505050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000825161448081601a85016020870161457b565b91909101601a0192915050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261443e6080830184613b9e565b6020815260006138806020830184613b9e565b6040516060810167ffffffffffffffff811182821017156144f5576144f5614733565b60405290565b6000821982111561450e5761450e614648565b500190565b60008261452257614522614677565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561455f5761455f614648565b500290565b60008282101561457657614576614648565b500390565b60005b8381101561459657818101518382015260200161457e565b8381111561124f5750506000910152565b600181811c908216806145bb57607f821691505b602082108114156145f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561462d5761462d614648565b5060010190565b60008261464357614643614677565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461195357600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122070dcfede2f9143869f880f61053a794012085979cdd79319a1918798afdc3bb164736f6c63430008070033

Deployed Bytecode

0x6080604052600436106101d85760003560e01c8063715018a611610102578063c87b56dd11610095578063f247c7a011610064578063f247c7a014610546578063f2fde38b14610565578063f931a4c214610585578063fd24a8541461059a57600080fd5b8063c87b56dd146104a7578063d5abeb01146104c7578063e985e9c5146104dd578063eb55113e1461052657600080fd5b8063a0712d68116100d1578063a0712d6814610439578063a22cb4651461044c578063b88d4fde1461046c578063c002d23d1461048c57600080fd5b8063715018a6146103d15780638da5cb5b146103e657806395d89b41146104045780639936d28f1461041957600080fd5b80633ccfd60b1161017a57806359c74f291161014957806359c74f29146103625780636352211e146103775780636e581d401461039757806370a08231146103b157600080fd5b80633ccfd60b146102ed57806342842e0e14610302578063471a4294146103225780634f6ccce71461034257600080fd5b8063095ea7b3116101b6578063095ea7b31461026c57806318160ddd1461028e57806323b872dd146102ad5780632f745c59146102cd57600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004613b04565b6105ad565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b50610227610609565b60405161020991906144bf565b34801561024057600080fd5b5061025461024f366004613b3e565b61069b565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c6102873660046139b5565b610746565b005b34801561029a57600080fd5b506008545b604051908152602001610209565b3480156102b957600080fd5b5061028c6102c83660046138d5565b610878565b3480156102d957600080fd5b5061029f6102e83660046139b5565b6108ff565b3480156102f957600080fd5b5061028c6109a7565b34801561030e57600080fd5b5061028c61031d3660046138d5565b610a34565b34801561032e57600080fd5b506010546101fd9062010000900460ff1681565b34801561034e57600080fd5b5061029f61035d366004613b3e565b610a4f565b34801561036e57600080fd5b5061028c610af3565b34801561038357600080fd5b50610254610392366004613b3e565b610b88565b3480156103a357600080fd5b506010546101fd9060ff1681565b3480156103bd57600080fd5b5061029f6103cc366004613887565b610c13565b3480156103dd57600080fd5b5061028c610cad565b3480156103f257600080fd5b50600b546001600160a01b0316610254565b34801561041057600080fd5b50610227610d13565b34801561042557600080fd5b5061028c6104343660046139df565b610d22565b61028c610447366004613b3e565b610df9565b34801561045857600080fd5b5061028c610467366004613979565b6110e4565b34801561047857600080fd5b5061028c610487366004613911565b6111c7565b34801561049857600080fd5b5061029f66470de4df82000081565b3480156104b357600080fd5b506102276104c2366004613b3e565b611255565b3480156104d357600080fd5b5061029f600f5481565b3480156104e957600080fd5b506101fd6104f83660046138a2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561053257600080fd5b5061028c610541366004613a4f565b611765565b34801561055257600080fd5b506010546101fd90610100900460ff1681565b34801561057157600080fd5b5061028c610580366004613887565b611874565b34801561059157600080fd5b5061028c611956565b61028c6105a8366004613b57565b6119ea565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610603575061060382611f86565b92915050565b606060008054610618906145a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610644906145a7565b80156106915780601f1061066657610100808354040283529160200191610691565b820191906000526020600020905b81548152906001019060200180831161067457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661072a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075182610b88565b9050806001600160a01b0316836001600160a01b031614156107db5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b336001600160a01b03821614806107f757506107f781336104f8565b6108695760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610721565b6108738383612069565b505050565b61088233826120ef565b6108f45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610721565b6108738383836121f7565b600061090a83610c13565b821061097e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610721565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b03163314610a015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b6040514790339082156108fc029083906000818181858888f19350505050158015610a30573d6000803e3d6000fd5b5050565b610873838383604051806020016040528060008152506111c7565b6000610a5a60085490565b8210610ace5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610721565b60088281548110610ae157610ae1614704565b90600052602060002001549050919050565b600b546001600160a01b03163314610b4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b6000818152600260205260408120546001600160a01b0316806106035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610721565b60006001600160a01b038216610c915760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610721565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610d075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b610d1160006123e7565b565b606060018054610618906145a7565b600b546001600160a01b03163314610d7c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b6040805160608101825282516001600160a01b0390811680835260208086015183169084018190529484015190911691909201819052600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169093179055600d80548316909317909255600e80549091169091179055565b6002600a541415610e4c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610721565b6002600a5560105462010000900460ff16610ecf5760405162461bcd60e51b815260206004820152603460248201527f5075626c6963206d696e74206973206e6f74206163746976652061742074686560448201527f206d6f6d656e742e2042652070617469656e742e0000000000000000000000006064820152608401610721565b60008111610f455760405162461bcd60e51b815260206004820152603460248201527f4e756d626572206f6620746f6b656e732063616e206e6f74206265206c65737360448201527f207468616e206f7220657175616c20746f20302e0000000000000000000000006064820152608401610721565b600f5481610f5260085490565b610f5c91906144fb565b1115610fd05760405162461bcd60e51b815260206004820152602160248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b60048111156110475760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c79206d696e7420757020746f203420706572207472616e736160448201527f6374696f6e2e00000000000000000000000000000000000000000000000000006064820152608401610721565b346110598266470de4df820000614527565b146110a65760405162461bcd60e51b815260206004820152601c60248201527f53656e74204554482076616c756520697320696e636f72726563742e000000006044820152606401610721565b60005b818110156110db576110c9335b6008546110c49060016144fb565b612451565b806110d3816145fb565b9150506110a9565b50506001600a55565b6001600160a01b03821633141561113d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610721565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6111d133836120ef565b6112435760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610721565b61124f8484848461246b565b50505050565b6000818152600260205260409020546060906001600160a01b03166112e25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610721565b60105460ff1661134857600061131e6112fa846124f4565b60405160200161130a919061401b565b604051602081830303815290604052612626565b905080604051602001611331919061423c565b604051602081830303815290604052915050919050565b60408051808201909152600581527f626c61636b000000000000000000000000000000000000000000000000000000602082015260009061138761366b565b6040805160608101909152601480546000929182916113d26011865b016113ad8c6124f4565b6040516020016113be929190613f3d565b6040516020818303038152906040526127ff565b6113dc9190614634565b815481106113ec576113ec614704565b906000526020600020018054611401906145a7565b80601f016020809104026020016040519081016040528092919081815260200182805461142d906145a7565b801561147a5780601f1061144f5761010080835404028352916020019161147a565b820191906000526020600020905b81548152906001019060200180831161145d57829003601f168201915b505050918352505060148054602090920191611498601160016113a3565b6114a29190614634565b815481106114b2576114b2614704565b9060005260206000200180546114c7906145a7565b80601f01602080910402602001604051908101604052809291908181526020018280546114f3906145a7565b80156115405780601f1061151557610100808354040283529160200191611540565b820191906000526020600020905b81548152906001019060200180831161152357829003601f168201915b50505091835250506014805460209092019161155e601160026113a3565b6115689190614634565b8154811061157857611578614704565b90600052602060002001805461158d906145a7565b80601f01602080910402602001604051908101604052809291908181526020018280546115b9906145a7565b80156116065780601f106115db57610100808354040283529160200191611606565b820191906000526020600020905b8154815290600101906020018083116115e957829003601f168201915b5050505050815250905060016064611630611620896124f4565b6040516020016113be9190613be6565b61163a9190614634565b101561167d57600193506040518060400160405280600581526020017f776869746500000000000000000000000000000000000000000000000000000081525092505b600061168a878684612830565b9050611695876124f4565b61169e886124f4565b6040516020016116af9291906140f9565b60408051808303601f190181529181529084528251602084810151858401519351859491926116e49185918591859101613c31565b60408051601f198184030181529082905261170795949392918a90602001613ccb565b60408051808303601f190181529181526020808601839052855191516000936117369361130a93909201613c02565b905080604051602001611749919061423c565b60408051601f1981840301815291905298975050505050505050565b600b546001600160a01b031633146117bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b60105460ff16156118385760405162461bcd60e51b815260206004820152602160248201527f54686520646f6f722063616e206265206f70656e6564206f6e6c79206f6e636560448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b6118456011826003613692565b5050601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b546001600160a01b031633146118ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b6001600160a01b03811661194a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610721565b611953816123e7565b50565b600b546001600160a01b031633146119b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610721565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b6002600a541415611a3d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610721565b6002600a55601054610100900460ff16611abf5760405162461bcd60e51b815260206004820152603560248201527f50726573616c65206d696e74206973206e6f742061637469766520617420746860448201527f65206d6f6d656e742e2042652070617469656e742e00000000000000000000006064820152608401610721565b60008211611b355760405162461bcd60e51b815260206004820152603460248201527f4e756d626572206f6620746f6b656e732063616e206e6f74206265206c65737360448201527f207468616e206f7220657175616c20746f20302e0000000000000000000000006064820152608401610721565b600f5482611b4260085490565b611b4c91906144fb565b1115611bc05760405162461bcd60e51b815260206004820152602160248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b604080513360601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060548401526070808401919091528351808403909101815260909092019092528051910120600090611c5c9083612ccd565b600c549091506001600160a01b0380831691161480611c885750600d546001600160a01b038281169116145b80611ca05750600e546001600160a01b038281169116145b611d125760405162461bcd60e51b815260206004820152602f60248201527f596f75722077616c6c6574206973206e6f742077686974656c6973746564206660448201527f6f72207468652070726573616c652e00000000000000000000000000000000006064820152608401610721565b600c546001600160a01b0382811691161415611db757600383611d3433610c13565b611d3e91906144fb565b1115611db25760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420757020746f2033207065722077616c6c657460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b611ef6565b600d546001600160a01b0382811691161415611e5757600283611dd933610c13565b611de391906144fb565b1115611db25760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420757020746f2032207065722077616c6c657460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b600e546001600160a01b0382811691161415611ef65782611e7733610c13565b611e8191906144fb565b600114611ef65760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420757020746f2031207065722077616c6c657460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610721565b34611f088466470de4df820000614527565b14611f555760405162461bcd60e51b815260206004820152601c60248201527f53656e74204554482076616c756520697320696e636f72726563742e000000006044820152606401610721565b60005b83811015611f7b57611f69336110b6565b80611f73816145fb565b915050611f58565b50506001600a555050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061201957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061060357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610603565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906120b682610b88565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166121795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610721565b600061218483610b88565b9050806001600160a01b0316846001600160a01b031614806121bf5750836001600160a01b03166121b48461069b565b6001600160a01b0316145b806121ef57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661220a82610b88565b6001600160a01b0316146122865760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610721565b6001600160a01b0382166123015760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610721565b61230c838383612cf1565b612317600082612069565b6001600160a01b0383166000908152600360205260408120805460019290612340908490614564565b90915550506001600160a01b038216600090815260036020526040812080546001929061236e9084906144fb565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a30828260405180602001604052806000815250612da9565b6124768484846121f7565b61248284848484612e32565b61124f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610721565b60608161253457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561255e5780612548816145fb565b91506125579050600a83614513565b9150612538565b60008167ffffffffffffffff81111561257957612579614733565b6040519080825280601f01601f1916602001820160405280156125a3576020820181803683370190505b5090505b84156121ef576125b8600183614564565b91506125c5600a86614634565b6125d09060306144fb565b60f81b8183815181106125e5576125e5614704565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061261f600a86614513565b94506125a7565b805160609080612646575050604080516020810190915260008152919050565b600060036126558360026144fb565b61265f9190614513565b61266a906004614527565b905060006126798260206144fb565b67ffffffffffffffff81111561269157612691614733565b6040519080825280601f01601f1916602001820160405280156126bb576020820181803683370190505b5090506000604051806060016040528060408152602001614791604091399050600181016020830160005b86811015612747576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016126e6565b50600386066001811461276157600281146127ab576127f1565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8301526127f1565b7f3d000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301525b505050918152949350505050565b6000816040516020016128129190613be6565b60408051601f19818403018152919052805160209091012092915050565b6060600060405180604001604052806040518060400160405280600581526020017f776869746500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f626c61636b000000000000000000000000000000000000000000000000000000815250815250905060608060608660ff16600114156129345760408051808201825260058082527f626c61636b000000000000000000000000000000000000000000000000000000602080840191909152918752825180840190935282527f7768697465000000000000000000000000000000000000000000000000000000828201528501525b60005b602d811015612c6f576040518060400160405280601681526020017f3c747370616e20783d223235222064793d223130223e00000000000000000000815250915060005b604b811015612c37578160011480612993575081602b145b801561299f5750600181115b80156129ab5750604a81105b806129ed575080600114806129c05750806002145b806129cb5750806049145b806129d65750806048145b80156129ed57506000821180156129ed5750602c82105b80612a28575081601614158015612a045750601082115b8015612a105750601c82105b8015612a1c5750601f81115b8015612a285750602b81105b80612a645750816016148015612a3e5750601f81115b8015612a4a5750602b81105b8015612a57575080602114155b8015612a64575080602214155b80612a91575081600f1480612a79575081601d145b8015612a855750601d81115b8015612a915750602d81105b80612abe575080601e1480612aa6575080602c145b8015612ab25750600f82115b8015612abe5750601d82105b80612b075750600182118015612ad45750600f82105b8015612b075750612ae6826002614527565b811480612b075750612af9826002614527565b612b0490604a614564565b81145b80612b5c5750601d82118015612b1d5750602b82105b8015612b5c5750600e612b31836002614527565b612b3b9190614564565b811480612b5c5750612b4e826002614527565b612b59906058614564565b81145b15612b885782604051602001612b729190613efc565b6040516020818303038152906040529250612c25565b87519350600061012c612bc1612b9d856124f4565b612ba6856124f4565b612baf8f6124f4565b6040516020016113be93929190613c31565b612bcb9190614634565b9050606381118015612bdd575060c881105b15612bee5760208901519450612bff565b60c7811115612bff57604089015194505b8385604051602001612c12929190613c02565b6040516020818303038152906040529350505b80612c2f816145fb565b91505061297b565b508382604051602001612c4b929190613c74565b60405160208183030381529060405293508080612c67906145fb565b915050612937565b506020808501518551604051612c8793879101614281565b6040516020818303038152906040529250612ca183612626565b604051602001612cb19190614448565b6040516020818303038152906040529450505050509392505050565b6000806000612cdc8585612fdf565b91509150612ce98161304f565b509392505050565b6001600160a01b038316612d4c57612d4781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d6f565b816001600160a01b0316836001600160a01b031614612d6f57612d6f8382613240565b6001600160a01b038216612d8657610873816132dd565b826001600160a01b0316826001600160a01b03161461087357610873828261338c565b612db383836133d0565b612dc06000848484612e32565b6108735760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610721565b60006001600160a01b0384163b15612fd4576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612e8f90339089908890889060040161448d565b602060405180830381600087803b158015612ea957600080fd5b505af1925050508015612ed9575060408051601f3d908101601f19168201909252612ed691810190613b21565b60015b612f89573d808015612f07576040519150601f19603f3d011682016040523d82523d6000602084013e612f0c565b606091505b508051612f815760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610721565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506121ef565b506001949350505050565b6000808251604114156130165760208301516040840151606085015160001a61300a87828585613536565b94509450505050613048565b8251604014156130405760208301516040840151613035868383613623565b935093505050613048565b506000905060025b9250929050565b6000816004811115613063576130636146a6565b141561306c5750565b6001816004811115613080576130806146a6565b14156130ce5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610721565b60028160048111156130e2576130e26146a6565b14156131305760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610721565b6003816004811115613144576131446146a6565b14156131b85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610721565b60048160048111156131cc576131cc6146a6565b14156119535760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610721565b6000600161324d84610c13565b6132579190614564565b6000838152600760205260409020549091508082146132aa576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906132ef90600190614564565b6000838152600960205260408120546008805493945090928490811061331757613317614704565b90600052602060002001549050806008838154811061333857613338614704565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613370576133706146d5565b6001900381819060005260206000200160009055905550505050565b600061339783610c13565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166134265760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610721565b6000818152600260205260409020546001600160a01b03161561348b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610721565b61349760008383612cf1565b6001600160a01b03821660009081526003602052604081208054600192906134c09084906144fb565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561356d575060009050600361361a565b8460ff16601b1415801561358557508460ff16601c14155b15613596575060009050600461361a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156135ea573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166136135760006001925092505061361a565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161365d87828885613536565b935093505050935093915050565b60405180604001604052806002905b606081526020019060019003908161367a5790505090565b82600381019282156136d2579160200282015b828111156136d257825180516136c29184916020909101906136e2565b50916020019190600101906136a5565b506136de929150613762565b5090565b8280546136ee906145a7565b90600052602060002090601f0160209004810192826137105760008555613756565b82601f1061372957805160ff1916838001178555613756565b82800160010185558215613756579182015b8281111561375657825182559160200191906001019061373b565b506136de92915061377f565b808211156136de5760006137768282613794565b50600101613762565b5b808211156136de5760008155600101613780565b5080546137a0906145a7565b6000825580601f106137b0575050565b601f016020900490600052602060002090810190611953919061377f565b600067ffffffffffffffff808411156137e9576137e9614733565b604051601f8501601f19908116603f0116810190828211818310171561381157613811614733565b8160405280935085815286868601111561382a57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461385b57600080fd5b919050565b600082601f83011261387157600080fd5b613880838335602085016137ce565b9392505050565b60006020828403121561389957600080fd5b61388082613844565b600080604083850312156138b557600080fd5b6138be83613844565b91506138cc60208401613844565b90509250929050565b6000806000606084860312156138ea57600080fd5b6138f384613844565b925061390160208501613844565b9150604084013590509250925092565b6000806000806080858703121561392757600080fd5b61393085613844565b935061393e60208601613844565b925060408501359150606085013567ffffffffffffffff81111561396157600080fd5b61396d87828801613860565b91505092959194509250565b6000806040838503121561398c57600080fd5b61399583613844565b9150602083013580151581146139aa57600080fd5b809150509250929050565b600080604083850312156139c857600080fd5b6139d183613844565b946020939093013593505050565b6000606082840312156139f157600080fd5b82601f830112613a0057600080fd5b613a086144d2565b808385606086011115613a1a57600080fd5b60005b6003811015613a4457613a2f82613844565b84526020938401939190910190600101613a1d565b509095945050505050565b60006020808385031215613a6257600080fd5b823567ffffffffffffffff80821115613a7a57600080fd5b8185019150601f8681840112613a8f57600080fd5b613a976144d2565b808489606087011115613aa957600080fd5b60005b6003811015613af557813586811115613ac457600080fd5b87018581018c13613ad457600080fd5b613ae28c82358b84016137ce565b8552509287019290870190600101613aac565b50909998505050505050505050565b600060208284031215613b1657600080fd5b813561388081614762565b600060208284031215613b3357600080fd5b815161388081614762565b600060208284031215613b5057600080fd5b5035919050565b60008060408385031215613b6a57600080fd5b82359150602083013567ffffffffffffffff811115613b8857600080fd5b613b9485828601613860565b9150509250929050565b60008151808452613bb681602086016020860161457b565b601f01601f19169290920160200192915050565b60008151613bdc81856020860161457b565b9290920192915050565b60008251613bf881846020870161457b565b9190910192915050565b60008351613c1481846020880161457b565b835190830190613c2881836020880161457b565b01949350505050565b60008451613c4381846020890161457b565b845190830190613c5781836020890161457b565b8451910190613c6a81836020880161457b565b0195945050505050565b60008351613c8681846020880161457b565b835190830190613c9a81836020880161457b565b7f3c2f747370616e3e0000000000000000000000000000000000000000000000009101908152600801949350505050565b60008751613cdd818460208c0161457b565b80830190507f222c202261747472696275746573223a5b7b2274726169745f74797065223a2281527f46697273742073796d626f6c222c2276616c7565223a2200000000000000000060208201528751613d3e816037840160208c0161457b565b7f227d2c207b2274726169745f74797065223a225365636f6e642073796d626f6c603792909101918201527f222c2276616c7565223a2200000000000000000000000000000000000000000060578201528651613da2816062840160208b0161457b565b7f227d2c207b2274726169745f74797065223a2254686972642073796d626f6c22606292909101918201527f2c2276616c7565223a220000000000000000000000000000000000000000000060828201528551613e0681608c840160208a0161457b565b613eee613ec5613ebf613e70613e6a608c868801017f227d2c207b2274726169745f74797065223a2253796d626f6c7320747269706c81527f6574222c2276616c7565223a22000000000000000000000000000000000000006020820152602d0190565b8a613bca565b7f227d2c207b2274726169745f74797065223a224261636b67726f756e64222c2281527f76616c7565223a22000000000000000000000000000000000000000000000000602082015260280190565b87613bca565b7f227d5d7d00000000000000000000000000000000000000000000000000000000815260040190565b9a9950505050505050505050565b60008251613f0e81846020870161457b565b7f2000000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b600080845481600182811c915080831680613f5957607f831692505b6020808410821415613f92577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613fa65760018114613fd557614002565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650614002565b60008b81526020902060005b86811015613ffa5781548b820152908501908301613fe1565b505084890196505b5050505050506140128185613bca565b95945050505050565b7f7b226e616d65223a2022446f6f7220230000000000000000000000000000000081526000825161405381601085016020870161457b565b7f2028756e72657665616c656429222c20226465736372697074696f6e223a202260109390910192830152507f42652070617469656e742e222c2022696d616765223a202268747470733a2f2f60308201527f646f6f722e737472696e676966792e6172742f706c616365686f6c6465722e6760508201527f6966227d000000000000000000000000000000000000000000000000000000006070820152607401919050565b7f7b226e616d65223a2022446f6f7220230000000000000000000000000000000081526000835161413181601085016020880161457b565b7f222c20226964223a202200000000000000000000000000000000000000000000601091840191820152835161416e81601a84016020880161457b565b7f222c20226465736372697074696f6e223a2022537472696e6769667928646f6f601a92909101918201527f7229206973206120636f6c6c656374696f6e206f662031306b206d696e696d61603a8201527f6c69737420646f6f72732072616e646f6d6c792067656e657261746564206279605a8201527f2074686520457468657265756d20626c6f636b636861696e20616e642073746f607a8201527f72656420696e20697420666f72657665722e222c2022696d616765223a202200609a82015260b901949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161427481601d85016020870161457b565b91909101601d0192915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f73766722206865696768743d22353030222077696474683d223530302260208201527f3e0000000000000000000000000000000000000000000000000000000000000060408201527f3c726563742077696474683d2235303022206865696768743d2235303022207860418201527f3d22302220793d223022207374796c653d2266696c6c3a00000000000000000060618201526000845161435181607885016020890161457b565b7f3b22202f3e3c7465787420783d2232352220793d22323522207374796c653d226078918401918201527f66696c6c3a000000000000000000000000000000000000000000000000000000609882015284516143b481609d84016020890161457b565b7f3b666f6e742d66616d696c793a20636f75726965723b666f6e742d73697a653a609d92909101918201527f313070783b2220786d6c3a73706163653d227072657365727665223e0000000060bd82015261443e61441560d9830186613bca565b7f3c2f746578743e3c2f7376673e000000000000000000000000000000000000008152600d0190565b9695505050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000825161448081601a85016020870161457b565b91909101601a0192915050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261443e6080830184613b9e565b6020815260006138806020830184613b9e565b6040516060810167ffffffffffffffff811182821017156144f5576144f5614733565b60405290565b6000821982111561450e5761450e614648565b500190565b60008261452257614522614677565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561455f5761455f614648565b500290565b60008282101561457657614576614648565b500390565b60005b8381101561459657818101518382015260200161457e565b8381111561124f5750506000910152565b600181811c908216806145bb57607f821691505b602082108114156145f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561462d5761462d614648565b5060010190565b60008261464357614643614677565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461195357600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122070dcfede2f9143869f880f61053a794012085979cdd79319a1918798afdc3bb164736f6c63430008070033

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.