ETH Price: $3,013.76 (+4.61%)
Gas: 1 Gwei

Token

Tiny Explorers (EXPLORER)
 

Overview

Max Total Supply

1,163 EXPLORER

Holders

306

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
elerium115.eth
Balance
1 EXPLORER
0xdF610269c6587C579E76b03Fba17EE51DD02B0c8
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:
TinyExplorers

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : TinyExplorers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;


import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./utils/ReentrancyGuard.sol";
import {TinyExplorersTypes} from "./core/TinyExplorersTypes.sol";
import {ITinyExplorersRenderer} from "./interfaces/ITinyExplorersRenderer.sol";

 

error InvalidExplorerCount();
error MintingPaused();
error MintNotAuthorized();
error NotOwnerOfTinyKingdom();
error PaymentAmountInvalid();
error PublicSaleIsNotActive();
error TokenAlreadyClaimed();


/// @dev interface for TinyKingdoms contract
interface TinyKingdomsInterface {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

/// @dev interface for TinyKingdoms Metadata contract
interface TinyKingdomsMetadataInterface {
    function isPirate(uint256 tokenId) external view returns (bool flag);
}

// @author emrecolako by oblique
// CC0 + on-chain 

//                            *%%%%%%%%%%%%%%%%%%%%%%%%%%%%#######+                         
//                          -**%%%%%%%%%%%%%%%%%%%%%%%%%%%%%########++-                      
//                          =%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##########=                      
//                          =%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%########=                      
//                       -##%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#########**:                   
// -==.               .==*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%###########+==.                
// *%%:.....        ..:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############%%%:..        ......
// *%%%%%%%*        #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############%%%%%#        +%%%%#
// *%%%%%%%%********%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############%%%%%%********#%%%%#
// *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############%%%%%%%%%%%%%%%%%%%#
// *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#############%%%%%%%%%%%%%%%%%%%#
// *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%################%%%%%%%%%%%%%%%%%%%#
// *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#########%%%%%%%%%%%%%%%%%%%%%#
// *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%########%%%%%%%%%%%%%%%%%%%%%%#
// *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%---=====------%%#=====---%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
// :-----%%%%%%%%%%%%%%%%%%%#**#%%**+===-----+*****===-----=====+%%#==*%%%%%%%%%%%%%%%%%%%--:
//      .********#%%%%%#####*==#%%*****+=====******--------===---##*--=#####%%%%%%********.  
//               *%%%%%========#%%%%%%%%%%%%%=--------=====------===--------%%%%%*           
//               .....:========+++%%%%%%%%%%%+==---==============-----------......           
//                    .===========**#%%%%%#**+==---==============-----------.                
//                    .=============+%%%%%+--===---===--------===-----------.                
//                       :========:::::::::--===---===--:::::::::===-----.                   
//                       .::-=====-----------===---===-----------===--:..                    
//                          :--===------------==---===-----------===::.                      
//                             -=====-----------===-----------=====-                         
//                             -=====-------------------------=====-                         
//                             -====---------------------------====-                         
//                             -==------===--===---===--===------==-                         
//                             -==--------===============--------==-                         
//                             -==-----------=========-----------==-                         
//                             :--------------========-------------:                         
//                                ===-------------------------===                            
//                                ===-------------------------===                            
//                                ::---------------------------::                            
//                                  .===-------------------===.                              
//                                   ---===-------------===---                               
//                             :--:::-----===============-----:::--:                         
//                       .:::::===---------=============---------===:::::.                   
//                       :*****+==-------------------------------==+*****:                   
//                  +****+++******===-------------------------===******+++****+              
//               :--***+++++******+++-------------------------+++******+++++***--:           
//             ..=*****==+***********===-------------------===***********+==*****+           
//            -*************************===-------------===**********************+           
//         :==+***************************+==---------==+*************************==:        

contract TinyExplorers is ERC721Enumerable, ReentrancyGuard, Ownable{


    uint256 private constant TOTAL_SUPPLY = 8192;

    uint256 private constant MINT_PRICE = 0.05 ether;

    uint256 public claimed = 0;


    // Restrict free claim to Tiny Kingdoms holders 
    bool public restricted = true; 
    bool public mintingPaused= true;


    address public renderingContractAddress;

    /// @dev change address to mainnet - below is rinkeby 
    // mainnet
    address private tinyKingdomsMetadataAddress = 0x22d8bD368796830F51c57f6E00E8fa37008B82e8;
    address private tinyKingdomsAddress = 0x788defd1AE1e2299D54CF9aC3658285Ab1dA0900;

    TinyKingdomsMetadataInterface tinyKingdomsMetadataContract = TinyKingdomsMetadataInterface(tinyKingdomsMetadataAddress);
    TinyKingdomsInterface tinyKingdomsContract = TinyKingdomsInterface(tinyKingdomsAddress);


    mapping(uint256 => TinyExplorersTypes.TinyExplorer) explorers;
    
    
    // ============ TOGGLES ============

    /// @notice toggle pause minting
    function togglePause() public onlyOwner{
        mintingPaused = !mintingPaused;
    }
    
    function toggleRestricted() public onlyOwner{
        restricted =!restricted;
    }

    // ============ MODIFIERS ============

    modifier publicSaleActive() {
        if (restricted) revert PublicSaleIsNotActive();
        _;
    }
    

    modifier ownerOfTinyKingdom(uint256 tinyKingdomsId) {
        if (restricted) {
            if(tinyKingdomsContract.ownerOf(tinyKingdomsId) != msg.sender) revert NotOwnerOfTinyKingdom();
            _;
        }
        _;
    }

    constructor() ERC721("Tiny Explorers", "EXPLORER") {} 

    // ============ HELPER FUNCTIONS ============
    function setRenderingContractAddress(address _renderingContractAddress) public onlyOwner {
        renderingContractAddress = _renderingContractAddress;
    }


    /// @dev Check if Tiny Kingdom flag is a Jolly Roger
    function isPirateAndHasKingdom(uint256 tokenId) internal view returns (bool flag) {    
        if (tokenId>0 && tokenId<4097) return tinyKingdomsMetadataContract.isPirate(tokenId);
        else return false;   
    }


    function generateExplorer(uint256 tokenId) public view returns (uint256,bool _pirate){

        bool pirate = isPirateAndHasKingdom(tokenId); 
        uint256 hash = uint256(keccak256(abi.encodePacked(tokenId,msg.sender,block.difficulty,block.timestamp)));
        

        return (hash,pirate);
    }


    // ============ MINTING FUNCTIONS ============

    /// @dev Allows Tiny Kingdoms holders to claim an explorer for free
    function claimWithTinyKingdoms(uint256 tinyKingdomsId) public nonReentrant{
        require(tinyKingdomsId > 0 && tinyKingdomsId < 4097,  "Invalid token");
        require(!_exists(tinyKingdomsId), "This token has already been minted");

        require(tinyKingdomsContract.ownerOf(tinyKingdomsId) == msg.sender, "Not the owner of this Tiny Kingdom");
        
        mint(msg.sender,tinyKingdomsId);

    }

    /// @dev Allows Tiny Kingdoms holders to claim multiple explorers for free (just pay gas)
    function multiclaimWithTinyKingdoms(uint256[] memory tinyKingdomsIds) public payable nonReentrant {

        for (uint256 i; i<tinyKingdomsIds.length; i++) {

            require(tinyKingdomsIds[i] > 0 && tinyKingdomsIds[i] < 4097, "Token is not eligible to claim");
            if(tinyKingdomsContract.ownerOf(tinyKingdomsIds[i]) != msg.sender) revert NotOwnerOfTinyKingdom();
            if(explorers[tinyKingdomsIds[i]].dna!=0) revert TokenAlreadyClaimed();

            mint(msg.sender,tinyKingdomsIds[i]);
            }
    }

    /// @dev Mint Explorers

    function mintExplorers(uint256 amount) public payable nonReentrant publicSaleActive{
            
            if (claimed+amount>TOTAL_SUPPLY) revert InvalidExplorerCount();
            if (tx.origin != msg.sender) revert MintNotAuthorized();
            if (msg.value !=MINT_PRICE*amount) revert PaymentAmountInvalid();
            
            for (uint256 i; i <amount; i++) {

                uint256 nextId=findfirstExplorer();

                mint(msg.sender,nextId);
            }

    }

    /// @dev internal minting function
    function mint(address to, uint256 tokenId) internal {

        if (mintingPaused) revert MintingPaused();

        TinyExplorersTypes.TinyExplorer memory explorer;
        (explorer.dna,explorer.isPirate)=generateExplorer(tokenId);

        
        _safeMint(msg.sender, tokenId);
        explorers[tokenId] = explorer;    
        
        claimed++;

    }

    /// @dev check if an explorer has been created
    function explorerExists(uint256 tokenId) public view returns (bool){

        if (explorers[tokenId].dna!=0) return true;
        else return false;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory){

        ITinyExplorersRenderer renderer = ITinyExplorersRenderer(renderingContractAddress);

        if (renderingContractAddress == address(0)) {
            return '';
        }
        return renderer.tokenURI(tokenId,explorers[tokenId]);
    }

    /// @dev Find first unclaimed explorer post claiming stage 
     function findfirstExplorer() internal view returns (uint256){
         
        uint256 firstExplorer=1;
        
        for (uint256 i=1; i< TOTAL_SUPPLY; i++){
            if (explorerExists(i)==false) break;
            firstExplorer = i+1;
        }
        
        return firstExplorer;
    }

    function withdraw() public onlyOwner {

        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

//  for Y..
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

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 4 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Gas optimized reentrancy protection for smart contracts.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/ReentrancyGuard.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol)
abstract contract ReentrancyGuard {
    uint256 private locked = 1;

    modifier nonReentrant() {
        require(locked == 1, "REENTRANCY");

        locked = 2;

        _;

        locked = 1;
    }
}

File 5 of 16 : TinyExplorersTypes.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;

interface TinyExplorersTypes {
    struct TinyExplorer {
        uint256 dna;
        bool isPirate;
    }
}

File 6 of 16 : ITinyExplorersRenderer.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;

import "../core/TinyExplorersTypes.sol";

interface ITinyExplorersRenderer {
    function tokenURI(uint256 tokenId, TinyExplorersTypes.TinyExplorer memory explorerData) external view returns (string memory);
    function tokenAttributes(TinyExplorersTypes.TinyExplorer memory explorerData) external view returns (string memory);
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be 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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 9 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 11 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidExplorerCount","type":"error"},{"inputs":[],"name":"MintNotAuthorized","type":"error"},{"inputs":[],"name":"MintingPaused","type":"error"},{"inputs":[],"name":"NotOwnerOfTinyKingdom","type":"error"},{"inputs":[],"name":"PaymentAmountInvalid","type":"error"},{"inputs":[],"name":"PublicSaleIsNotActive","type":"error"},{"inputs":[],"name":"TokenAlreadyClaimed","type":"error"},{"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":[{"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":[{"internalType":"uint256","name":"tinyKingdomsId","type":"uint256"}],"name":"claimWithTinyKingdoms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explorerExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateExplorer","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"_pirate","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintExplorers","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tinyKingdomsIds","type":"uint256[]"}],"name":"multiclaimWithTinyKingdoms","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderingContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"restricted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_renderingContractAddress","type":"address"}],"name":"setRenderingContractAddress","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":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleRestricted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","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"}]

60806040526001600a556000600c556001600d60006101000a81548160ff0219169083151502179055506001600d60016101000a81548160ff0219169083151502179055507322d8bd368796830f51c57f6e00e8fa37008b82e8600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073788defd1ae1e2299d54cf9ac3658285ab1da0900600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620001c157600080fd5b506040518060400160405280600e81526020017f54696e79204578706c6f726572730000000000000000000000000000000000008152506040518060400160405280600881526020017f4558504c4f52455200000000000000000000000000000000000000000000000081525081600090805190602001906200024692919062000356565b5080600190805190602001906200025f92919062000356565b50505062000282620002766200028860201b60201c565b6200029060201b60201c565b6200046b565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003649062000435565b90600052602060002090601f016020900481019282620003885760008555620003d4565b82601f10620003a357805160ff1916838001178555620003d4565b82800160010185558215620003d4579182015b82811115620003d3578251825591602001919060010190620003b6565b5b509050620003e39190620003e7565b5090565b5b8082111562000402576000816000905550600101620003e8565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200044e57607f821691505b6020821081141562000465576200046462000406565b5b50919050565b614716806200047b6000396000f3fe6080604052600436106101e35760003560e01c806370a0823111610102578063c074f41211610095578063e1a283d611610064578063e1a283d6146106c3578063e834a834146106ee578063e985e9c514610719578063f2fde38b14610756576101e3565b8063c074f4121461062d578063c4ae316814610658578063c87b56dd1461066f578063d346c27a146106ac576101e3565b806395d89b41116100d157806395d89b4114610573578063a22cb4651461059e578063b2f5a7a6146105c7578063b88d4fde14610604576101e3565b806370a08231146104cb578063715018a6146105085780637f5524c11461051f5780638da5cb5b14610548576101e3565b80632f745c591161017a5780634f6ccce7116101495780634f6ccce7146103e85780636352211e146104255780636488ba1d146104625780637072c6b1146104a0576101e3565b80632f745c591461034f5780633ccfd60b1461038c5780634051828a146103a357806342842e0e146103bf576101e3565b8063095ea7b3116101b6578063095ea7b3146102a957806312b40a9f146102d257806318160ddd146102fb57806323b872dd14610326576101e3565b8063018907a9146101e857806301ffc9a71461020457806306fdde0314610241578063081812fc1461026c575b600080fd5b61020260048036038101906101fd9190612ea2565b61077f565b005b34801561021057600080fd5b5061022b60048036038101906102269190612f27565b61094d565b6040516102389190612f6f565b60405180910390f35b34801561024d57600080fd5b506102566109c7565b6040516102639190613023565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190612ea2565b610a59565b6040516102a09190613086565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb91906130cd565b610ade565b005b3480156102de57600080fd5b506102f960048036038101906102f4919061310d565b610bf6565b005b34801561030757600080fd5b50610310610cb6565b60405161031d9190613149565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190613164565b610cc3565b005b34801561035b57600080fd5b50610376600480360381019061037191906130cd565b610d23565b6040516103839190613149565b60405180910390f35b34801561039857600080fd5b506103a1610dc8565b005b6103bd60048036038101906103b891906132ff565b610e93565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190613164565b611137565b005b3480156103f457600080fd5b5061040f600480360381019061040a9190612ea2565b611157565b60405161041c9190613149565b60405180910390f35b34801561043157600080fd5b5061044c60048036038101906104479190612ea2565b6111c8565b6040516104599190613086565b60405180910390f35b34801561046e57600080fd5b5061048960048036038101906104849190612ea2565b61127a565b604051610497929190613348565b60405180910390f35b3480156104ac57600080fd5b506104b56112cb565b6040516104c29190612f6f565b60405180910390f35b3480156104d757600080fd5b506104f260048036038101906104ed919061310d565b6112de565b6040516104ff9190613149565b60405180910390f35b34801561051457600080fd5b5061051d611396565b005b34801561052b57600080fd5b5061054660048036038101906105419190612ea2565b61141e565b005b34801561055457600080fd5b5061055d611622565b60405161056a9190613086565b60405180910390f35b34801561057f57600080fd5b5061058861164c565b6040516105959190613023565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c0919061339d565b6116de565b005b3480156105d357600080fd5b506105ee60048036038101906105e99190612ea2565b6116f4565b6040516105fb9190612f6f565b60405180910390f35b34801561061057600080fd5b5061062b60048036038101906106269190613492565b611726565b005b34801561063957600080fd5b50610642611788565b60405161064f9190613086565b60405180910390f35b34801561066457600080fd5b5061066d6117ae565b005b34801561067b57600080fd5b5061069660048036038101906106919190612ea2565b611856565b6040516106a39190613023565b60405180910390f35b3480156106b857600080fd5b506106c161198a565b005b3480156106cf57600080fd5b506106d8611a32565b6040516106e59190612f6f565b60405180910390f35b3480156106fa57600080fd5b50610703611a45565b6040516107109190613149565b60405180910390f35b34801561072557600080fd5b50610740600480360381019061073b9190613515565b611a4b565b60405161074d9190612f6f565b60405180910390f35b34801561076257600080fd5b5061077d6004803603810190610778919061310d565b611adf565b005b6001600a54146107c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bb906135a1565b60405180910390fd5b6002600a81905550600d60009054906101000a900460ff1615610813576040517fe707b04f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61200081600c5461082491906135f0565b111561085c576040517f2731063000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146108c1576040517fc5ad1c2d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8066b1a2bc2ec500006108d49190613646565b341461090c576040517ffe23037800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610941576000610921611bd7565b905061092d3382611c33565b508080610939906136a0565b91505061090f565b506001600a8190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109c057506109bf82611d09565b5b9050919050565b6060600080546109d690613718565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0290613718565b8015610a4f5780601f10610a2457610100808354040283529160200191610a4f565b820191906000526020600020905b815481529060010190602001808311610a3257829003601f168201915b5050505050905090565b6000610a6482611deb565b610aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9a906137bc565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae9826111c8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b519061384e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b79611e57565b73ffffffffffffffffffffffffffffffffffffffff161480610ba85750610ba781610ba2611e57565b611a4b565b5b610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde906138e0565b60405180910390fd5b610bf18383611e5f565b505050565b610bfe611e57565b73ffffffffffffffffffffffffffffffffffffffff16610c1c611622565b73ffffffffffffffffffffffffffffffffffffffff1614610c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c699061394c565b60405180910390fd5b80600d60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600880549050905090565b610cd4610cce611e57565b82611f18565b610d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0a906139de565b60405180910390fd5b610d1e838383611ff6565b505050565b6000610d2e836112de565b8210610d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6690613a70565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610dd0611e57565b73ffffffffffffffffffffffffffffffffffffffff16610dee611622565b73ffffffffffffffffffffffffffffffffffffffff1614610e44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3b9061394c565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e8f573d6000803e3d6000fd5b5050565b6001600a5414610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf906135a1565b60405180910390fd5b6002600a8190555060005b815181101561112b576000828281518110610f0157610f00613a90565b5b6020026020010151118015610f315750611001828281518110610f2757610f26613a90565b5b6020026020010151105b610f70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6790613b0b565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e848481518110610fd857610fd7613a90565b5b60200260200101516040518263ffffffff1660e01b8152600401610ffc9190613149565b602060405180830381865afa158015611019573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103d9190613b40565b73ffffffffffffffffffffffffffffffffffffffff161461108a576040517f616844ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601260008484815181106110a3576110a2613a90565b5b6020026020010151815260200190815260200160002060000154146110f4576040517f7ad4e5de00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111183383838151811061110b5761110a613a90565b5b6020026020010151611c33565b8080611123906136a0565b915050610ee3565b506001600a8190555050565b61115283838360405180602001604052806000815250611726565b505050565b6000611161610cb6565b82106111a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119990613bdf565b60405180910390fd5b600882815481106111b6576111b5613a90565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126890613c71565b60405180910390fd5b80915050919050565b60008060006112888461225d565b90506000843344426040516020016112a39493929190613cfa565b6040516020818303038152906040528051906020012060001c90508082935093505050915091565b600d60009054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561134f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134690613dba565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61139e611e57565b73ffffffffffffffffffffffffffffffffffffffff166113bc611622565b73ffffffffffffffffffffffffffffffffffffffff1614611412576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114099061394c565b60405180910390fd5b61141c6000612321565b565b6001600a5414611463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145a906135a1565b60405180910390fd5b6002600a8190555060008111801561147c575061100181105b6114bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b290613e26565b60405180910390fd5b6114c481611deb565b15611504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fb90613eb8565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016115769190613149565b602060405180830381865afa158015611593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b79190613b40565b73ffffffffffffffffffffffffffffffffffffffff161461160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160490613f4a565b60405180910390fd5b6116173382611c33565b6001600a8190555050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461165b90613718565b80601f016020809104026020016040519081016040528092919081815260200182805461168790613718565b80156116d45780601f106116a9576101008083540402835291602001916116d4565b820191906000526020600020905b8154815290600101906020018083116116b757829003601f168201915b5050505050905090565b6116f06116e9611e57565b83836123e7565b5050565b60008060126000848152602001908152602001600020600001541461171c5760019050611721565b600090505b919050565b611737611731611e57565b83611f18565b611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d906139de565b60405180910390fd5b61178284848484612554565b50505050565b600d60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6117b6611e57565b73ffffffffffffffffffffffffffffffffffffffff166117d4611622565b73ffffffffffffffffffffffffffffffffffffffff161461182a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118219061394c565b60405180910390fd5b600d60019054906101000a900460ff1615600d60016101000a81548160ff021916908315150217905550565b60606000600d60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff16600d60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156118ee5760405180602001604052806000815250915050611985565b8073ffffffffffffffffffffffffffffffffffffffff1663da4cfa2f84601260008781526020019081526020016000206040518363ffffffff1660e01b815260040161193b929190614027565b600060405180830381865afa158015611958573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061198191906140f1565b9150505b919050565b611992611e57565b73ffffffffffffffffffffffffffffffffffffffff166119b0611622565b73ffffffffffffffffffffffffffffffffffffffff1614611a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fd9061394c565b60405180910390fd5b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b600d60019054906101000a900460ff1681565b600c5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ae7611e57565b73ffffffffffffffffffffffffffffffffffffffff16611b05611622565b73ffffffffffffffffffffffffffffffffffffffff1614611b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b529061394c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc2906141ac565b60405180910390fd5b611bd481612321565b50565b600080600190506000600190505b612000811015611c2b5760001515611bfc826116f4565b15151415611c0957611c2b565b600181611c1691906135f0565b91508080611c23906136a0565b915050611be5565b508091505090565b600d60019054906101000a900460ff1615611c7a576040517feb56075600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c82612e3c565b611c8b8261127a565b82600001836020018215151515815250828152505050611cab33836125b0565b80601260008481526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908315150217905550905050600c6000815480929190611cff906136a0565b9190505550505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dd457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611de45750611de3826125ce565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611ed2836111c8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611f2382611deb565b611f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f599061423e565b60405180910390fd5b6000611f6d836111c8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fdc57508373ffffffffffffffffffffffffffffffffffffffff16611fc484610a59565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fed5750611fec8185611a4b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612016826111c8565b73ffffffffffffffffffffffffffffffffffffffff161461206c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612063906142d0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d390614362565b60405180910390fd5b6120e7838383612638565b6120f2600082611e5f565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121429190614382565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461219991906135f0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461225883838361274c565b505050565b6000808211801561226f575061100182105b1561231757601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663622d7a72836040518263ffffffff1660e01b81526004016122cf9190613149565b602060405180830381865afa1580156122ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231091906143cb565b905061231c565b600090505b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612456576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244d90614444565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125479190612f6f565b60405180910390a3505050565b61255f848484611ff6565b61256b84848484612751565b6125aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a1906144d6565b60405180910390fd5b50505050565b6125ca8282604051806020016040528060008152506128d9565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612643838383612934565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126865761268181612939565b6126c5565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146126c4576126c38382612982565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127085761270381612aef565b612747565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612746576127458282612bc0565b5b5b505050565b505050565b60006127728473ffffffffffffffffffffffffffffffffffffffff16612c3f565b156128cc578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261279b611e57565b8786866040518563ffffffff1660e01b81526004016127bd949392919061454b565b6020604051808303816000875af19250505080156127f957506040513d601f19601f820116820180604052508101906127f691906145ac565b60015b61287c573d8060008114612829576040519150601f19603f3d011682016040523d82523d6000602084013e61282e565b606091505b50600081511415612874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286b906144d6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128d1565b600190505b949350505050565b6128e38383612c62565b6128f06000848484612751565b61292f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612926906144d6565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161298f846112de565b6129999190614382565b9050600060076000848152602001908152602001600020549050818114612a7e576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612b039190614382565b9050600060096000848152602001908152602001600020549050600060088381548110612b3357612b32613a90565b5b906000526020600020015490508060088381548110612b5557612b54613a90565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612ba457612ba36145d9565b5b6001900381819060005260206000200160009055905550505050565b6000612bcb836112de565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc990614654565b60405180910390fd5b612cdb81611deb565b15612d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d12906146c0565b60405180910390fd5b612d2760008383612638565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d7791906135f0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e386000838361274c565b5050565b6040518060400160405280600081526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b612e7f81612e6c565b8114612e8a57600080fd5b50565b600081359050612e9c81612e76565b92915050565b600060208284031215612eb857612eb7612e62565b5b6000612ec684828501612e8d565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f0481612ecf565b8114612f0f57600080fd5b50565b600081359050612f2181612efb565b92915050565b600060208284031215612f3d57612f3c612e62565b5b6000612f4b84828501612f12565b91505092915050565b60008115159050919050565b612f6981612f54565b82525050565b6000602082019050612f846000830184612f60565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612fc4578082015181840152602081019050612fa9565b83811115612fd3576000848401525b50505050565b6000601f19601f8301169050919050565b6000612ff582612f8a565b612fff8185612f95565b935061300f818560208601612fa6565b61301881612fd9565b840191505092915050565b6000602082019050818103600083015261303d8184612fea565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061307082613045565b9050919050565b61308081613065565b82525050565b600060208201905061309b6000830184613077565b92915050565b6130aa81613065565b81146130b557600080fd5b50565b6000813590506130c7816130a1565b92915050565b600080604083850312156130e4576130e3612e62565b5b60006130f2858286016130b8565b925050602061310385828601612e8d565b9150509250929050565b60006020828403121561312357613122612e62565b5b6000613131848285016130b8565b91505092915050565b61314381612e6c565b82525050565b600060208201905061315e600083018461313a565b92915050565b60008060006060848603121561317d5761317c612e62565b5b600061318b868287016130b8565b935050602061319c868287016130b8565b92505060406131ad86828701612e8d565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131f482612fd9565b810181811067ffffffffffffffff82111715613213576132126131bc565b5b80604052505050565b6000613226612e58565b905061323282826131eb565b919050565b600067ffffffffffffffff821115613252576132516131bc565b5b602082029050602081019050919050565b600080fd5b600061327b61327684613237565b61321c565b9050808382526020820190506020840283018581111561329e5761329d613263565b5b835b818110156132c757806132b38882612e8d565b8452602084019350506020810190506132a0565b5050509392505050565b600082601f8301126132e6576132e56131b7565b5b81356132f6848260208601613268565b91505092915050565b60006020828403121561331557613314612e62565b5b600082013567ffffffffffffffff81111561333357613332612e67565b5b61333f848285016132d1565b91505092915050565b600060408201905061335d600083018561313a565b61336a6020830184612f60565b9392505050565b61337a81612f54565b811461338557600080fd5b50565b60008135905061339781613371565b92915050565b600080604083850312156133b4576133b3612e62565b5b60006133c2858286016130b8565b92505060206133d385828601613388565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156133fd576133fc6131bc565b5b61340682612fd9565b9050602081019050919050565b82818337600083830152505050565b6000613435613430846133e2565b61321c565b905082815260208101848484011115613451576134506133dd565b5b61345c848285613413565b509392505050565b600082601f830112613479576134786131b7565b5b8135613489848260208601613422565b91505092915050565b600080600080608085870312156134ac576134ab612e62565b5b60006134ba878288016130b8565b94505060206134cb878288016130b8565b93505060406134dc87828801612e8d565b925050606085013567ffffffffffffffff8111156134fd576134fc612e67565b5b61350987828801613464565b91505092959194509250565b6000806040838503121561352c5761352b612e62565b5b600061353a858286016130b8565b925050602061354b858286016130b8565b9150509250929050565b7f5245454e5452414e435900000000000000000000000000000000000000000000600082015250565b600061358b600a83612f95565b915061359682613555565b602082019050919050565b600060208201905081810360008301526135ba8161357e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135fb82612e6c565b915061360683612e6c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561363b5761363a6135c1565b5b828201905092915050565b600061365182612e6c565b915061365c83612e6c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613695576136946135c1565b5b828202905092915050565b60006136ab82612e6c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156136de576136dd6135c1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061373057607f821691505b60208210811415613744576137436136e9565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006137a6602c83612f95565b91506137b18261374a565b604082019050919050565b600060208201905081810360008301526137d581613799565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613838602183612f95565b9150613843826137dc565b604082019050919050565b600060208201905081810360008301526138678161382b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006138ca603883612f95565b91506138d58261386e565b604082019050919050565b600060208201905081810360008301526138f9816138bd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613936602083612f95565b915061394182613900565b602082019050919050565b6000602082019050818103600083015261396581613929565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006139c8603183612f95565b91506139d38261396c565b604082019050919050565b600060208201905081810360008301526139f7816139bb565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613a5a602b83612f95565b9150613a65826139fe565b604082019050919050565b60006020820190508181036000830152613a8981613a4d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f546f6b656e206973206e6f7420656c696769626c6520746f20636c61696d0000600082015250565b6000613af5601e83612f95565b9150613b0082613abf565b602082019050919050565b60006020820190508181036000830152613b2481613ae8565b9050919050565b600081519050613b3a816130a1565b92915050565b600060208284031215613b5657613b55612e62565b5b6000613b6484828501613b2b565b91505092915050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613bc9602c83612f95565b9150613bd482613b6d565b604082019050919050565b60006020820190508181036000830152613bf881613bbc565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613c5b602983612f95565b9150613c6682613bff565b604082019050919050565b60006020820190508181036000830152613c8a81613c4e565b9050919050565b6000819050919050565b613cac613ca782612e6c565b613c91565b82525050565b60008160601b9050919050565b6000613cca82613cb2565b9050919050565b6000613cdc82613cbf565b9050919050565b613cf4613cef82613065565b613cd1565b82525050565b6000613d068287613c9b565b602082019150613d168286613ce3565b601482019150613d268285613c9b565b602082019150613d368284613c9b565b60208201915081905095945050505050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613da4602a83612f95565b9150613daf82613d48565b604082019050919050565b60006020820190508181036000830152613dd381613d97565b9050919050565b7f496e76616c696420746f6b656e00000000000000000000000000000000000000600082015250565b6000613e10600d83612f95565b9150613e1b82613dda565b602082019050919050565b60006020820190508181036000830152613e3f81613e03565b9050919050565b7f5468697320746f6b656e2068617320616c7265616479206265656e206d696e7460008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ea2602283612f95565b9150613ead82613e46565b604082019050919050565b60006020820190508181036000830152613ed181613e95565b9050919050565b7f4e6f7420746865206f776e6572206f6620746869732054696e79204b696e676460008201527f6f6d000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f34602283612f95565b9150613f3f82613ed8565b604082019050919050565b60006020820190508181036000830152613f6381613f27565b9050919050565b60008160001c9050919050565b6000819050919050565b6000613f94613f8f83613f6a565b613f77565b9050919050565b613fa481612e6c565b82525050565b600060ff82169050919050565b6000613fca613fc583613f6a565b613faa565b9050919050565b613fda81612f54565b82525050565b604082016000808301549050613ff581613f81565b6140026000860182613f9b565b506001830154905061401381613fb7565b6140206020860182613fd1565b5050505050565b600060608201905061403c600083018561313a565b6140496020830184613fe0565b9392505050565b600067ffffffffffffffff82111561406b5761406a6131bc565b5b61407482612fd9565b9050602081019050919050565b600061409461408f84614050565b61321c565b9050828152602081018484840111156140b0576140af6133dd565b5b6140bb848285612fa6565b509392505050565b600082601f8301126140d8576140d76131b7565b5b81516140e8848260208601614081565b91505092915050565b60006020828403121561410757614106612e62565b5b600082015167ffffffffffffffff81111561412557614124612e67565b5b614131848285016140c3565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614196602683612f95565b91506141a18261413a565b604082019050919050565b600060208201905081810360008301526141c581614189565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614228602c83612f95565b9150614233826141cc565b604082019050919050565b600060208201905081810360008301526142578161421b565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006142ba602583612f95565b91506142c58261425e565b604082019050919050565b600060208201905081810360008301526142e9816142ad565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061434c602483612f95565b9150614357826142f0565b604082019050919050565b6000602082019050818103600083015261437b8161433f565b9050919050565b600061438d82612e6c565b915061439883612e6c565b9250828210156143ab576143aa6135c1565b5b828203905092915050565b6000815190506143c581613371565b92915050565b6000602082840312156143e1576143e0612e62565b5b60006143ef848285016143b6565b91505092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061442e601983612f95565b9150614439826143f8565b602082019050919050565b6000602082019050818103600083015261445d81614421565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006144c0603283612f95565b91506144cb82614464565b604082019050919050565b600060208201905081810360008301526144ef816144b3565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061451d826144f6565b6145278185614501565b9350614537818560208601612fa6565b61454081612fd9565b840191505092915050565b60006080820190506145606000830187613077565b61456d6020830186613077565b61457a604083018561313a565b818103606083015261458c8184614512565b905095945050505050565b6000815190506145a681612efb565b92915050565b6000602082840312156145c2576145c1612e62565b5b60006145d084828501614597565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061463e602083612f95565b915061464982614608565b602082019050919050565b6000602082019050818103600083015261466d81614631565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006146aa601c83612f95565b91506146b582614674565b602082019050919050565b600060208201905081810360008301526146d98161469d565b905091905056fea2646970667358221220aca12f8671f93805ddec9cc2c504cf2dbd7d1445df94b79ff26a5fe44aac545264736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106101e35760003560e01c806370a0823111610102578063c074f41211610095578063e1a283d611610064578063e1a283d6146106c3578063e834a834146106ee578063e985e9c514610719578063f2fde38b14610756576101e3565b8063c074f4121461062d578063c4ae316814610658578063c87b56dd1461066f578063d346c27a146106ac576101e3565b806395d89b41116100d157806395d89b4114610573578063a22cb4651461059e578063b2f5a7a6146105c7578063b88d4fde14610604576101e3565b806370a08231146104cb578063715018a6146105085780637f5524c11461051f5780638da5cb5b14610548576101e3565b80632f745c591161017a5780634f6ccce7116101495780634f6ccce7146103e85780636352211e146104255780636488ba1d146104625780637072c6b1146104a0576101e3565b80632f745c591461034f5780633ccfd60b1461038c5780634051828a146103a357806342842e0e146103bf576101e3565b8063095ea7b3116101b6578063095ea7b3146102a957806312b40a9f146102d257806318160ddd146102fb57806323b872dd14610326576101e3565b8063018907a9146101e857806301ffc9a71461020457806306fdde0314610241578063081812fc1461026c575b600080fd5b61020260048036038101906101fd9190612ea2565b61077f565b005b34801561021057600080fd5b5061022b60048036038101906102269190612f27565b61094d565b6040516102389190612f6f565b60405180910390f35b34801561024d57600080fd5b506102566109c7565b6040516102639190613023565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190612ea2565b610a59565b6040516102a09190613086565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb91906130cd565b610ade565b005b3480156102de57600080fd5b506102f960048036038101906102f4919061310d565b610bf6565b005b34801561030757600080fd5b50610310610cb6565b60405161031d9190613149565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190613164565b610cc3565b005b34801561035b57600080fd5b50610376600480360381019061037191906130cd565b610d23565b6040516103839190613149565b60405180910390f35b34801561039857600080fd5b506103a1610dc8565b005b6103bd60048036038101906103b891906132ff565b610e93565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190613164565b611137565b005b3480156103f457600080fd5b5061040f600480360381019061040a9190612ea2565b611157565b60405161041c9190613149565b60405180910390f35b34801561043157600080fd5b5061044c60048036038101906104479190612ea2565b6111c8565b6040516104599190613086565b60405180910390f35b34801561046e57600080fd5b5061048960048036038101906104849190612ea2565b61127a565b604051610497929190613348565b60405180910390f35b3480156104ac57600080fd5b506104b56112cb565b6040516104c29190612f6f565b60405180910390f35b3480156104d757600080fd5b506104f260048036038101906104ed919061310d565b6112de565b6040516104ff9190613149565b60405180910390f35b34801561051457600080fd5b5061051d611396565b005b34801561052b57600080fd5b5061054660048036038101906105419190612ea2565b61141e565b005b34801561055457600080fd5b5061055d611622565b60405161056a9190613086565b60405180910390f35b34801561057f57600080fd5b5061058861164c565b6040516105959190613023565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c0919061339d565b6116de565b005b3480156105d357600080fd5b506105ee60048036038101906105e99190612ea2565b6116f4565b6040516105fb9190612f6f565b60405180910390f35b34801561061057600080fd5b5061062b60048036038101906106269190613492565b611726565b005b34801561063957600080fd5b50610642611788565b60405161064f9190613086565b60405180910390f35b34801561066457600080fd5b5061066d6117ae565b005b34801561067b57600080fd5b5061069660048036038101906106919190612ea2565b611856565b6040516106a39190613023565b60405180910390f35b3480156106b857600080fd5b506106c161198a565b005b3480156106cf57600080fd5b506106d8611a32565b6040516106e59190612f6f565b60405180910390f35b3480156106fa57600080fd5b50610703611a45565b6040516107109190613149565b60405180910390f35b34801561072557600080fd5b50610740600480360381019061073b9190613515565b611a4b565b60405161074d9190612f6f565b60405180910390f35b34801561076257600080fd5b5061077d6004803603810190610778919061310d565b611adf565b005b6001600a54146107c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bb906135a1565b60405180910390fd5b6002600a81905550600d60009054906101000a900460ff1615610813576040517fe707b04f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61200081600c5461082491906135f0565b111561085c576040517f2731063000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146108c1576040517fc5ad1c2d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8066b1a2bc2ec500006108d49190613646565b341461090c576040517ffe23037800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610941576000610921611bd7565b905061092d3382611c33565b508080610939906136a0565b91505061090f565b506001600a8190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109c057506109bf82611d09565b5b9050919050565b6060600080546109d690613718565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0290613718565b8015610a4f5780601f10610a2457610100808354040283529160200191610a4f565b820191906000526020600020905b815481529060010190602001808311610a3257829003601f168201915b5050505050905090565b6000610a6482611deb565b610aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9a906137bc565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae9826111c8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b519061384e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b79611e57565b73ffffffffffffffffffffffffffffffffffffffff161480610ba85750610ba781610ba2611e57565b611a4b565b5b610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde906138e0565b60405180910390fd5b610bf18383611e5f565b505050565b610bfe611e57565b73ffffffffffffffffffffffffffffffffffffffff16610c1c611622565b73ffffffffffffffffffffffffffffffffffffffff1614610c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c699061394c565b60405180910390fd5b80600d60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600880549050905090565b610cd4610cce611e57565b82611f18565b610d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0a906139de565b60405180910390fd5b610d1e838383611ff6565b505050565b6000610d2e836112de565b8210610d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6690613a70565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610dd0611e57565b73ffffffffffffffffffffffffffffffffffffffff16610dee611622565b73ffffffffffffffffffffffffffffffffffffffff1614610e44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3b9061394c565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e8f573d6000803e3d6000fd5b5050565b6001600a5414610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf906135a1565b60405180910390fd5b6002600a8190555060005b815181101561112b576000828281518110610f0157610f00613a90565b5b6020026020010151118015610f315750611001828281518110610f2757610f26613a90565b5b6020026020010151105b610f70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6790613b0b565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e848481518110610fd857610fd7613a90565b5b60200260200101516040518263ffffffff1660e01b8152600401610ffc9190613149565b602060405180830381865afa158015611019573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103d9190613b40565b73ffffffffffffffffffffffffffffffffffffffff161461108a576040517f616844ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601260008484815181106110a3576110a2613a90565b5b6020026020010151815260200190815260200160002060000154146110f4576040517f7ad4e5de00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111183383838151811061110b5761110a613a90565b5b6020026020010151611c33565b8080611123906136a0565b915050610ee3565b506001600a8190555050565b61115283838360405180602001604052806000815250611726565b505050565b6000611161610cb6565b82106111a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119990613bdf565b60405180910390fd5b600882815481106111b6576111b5613a90565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126890613c71565b60405180910390fd5b80915050919050565b60008060006112888461225d565b90506000843344426040516020016112a39493929190613cfa565b6040516020818303038152906040528051906020012060001c90508082935093505050915091565b600d60009054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561134f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134690613dba565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61139e611e57565b73ffffffffffffffffffffffffffffffffffffffff166113bc611622565b73ffffffffffffffffffffffffffffffffffffffff1614611412576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114099061394c565b60405180910390fd5b61141c6000612321565b565b6001600a5414611463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145a906135a1565b60405180910390fd5b6002600a8190555060008111801561147c575061100181105b6114bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b290613e26565b60405180910390fd5b6114c481611deb565b15611504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fb90613eb8565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016115769190613149565b602060405180830381865afa158015611593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b79190613b40565b73ffffffffffffffffffffffffffffffffffffffff161461160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160490613f4a565b60405180910390fd5b6116173382611c33565b6001600a8190555050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461165b90613718565b80601f016020809104026020016040519081016040528092919081815260200182805461168790613718565b80156116d45780601f106116a9576101008083540402835291602001916116d4565b820191906000526020600020905b8154815290600101906020018083116116b757829003601f168201915b5050505050905090565b6116f06116e9611e57565b83836123e7565b5050565b60008060126000848152602001908152602001600020600001541461171c5760019050611721565b600090505b919050565b611737611731611e57565b83611f18565b611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d906139de565b60405180910390fd5b61178284848484612554565b50505050565b600d60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6117b6611e57565b73ffffffffffffffffffffffffffffffffffffffff166117d4611622565b73ffffffffffffffffffffffffffffffffffffffff161461182a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118219061394c565b60405180910390fd5b600d60019054906101000a900460ff1615600d60016101000a81548160ff021916908315150217905550565b60606000600d60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff16600d60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156118ee5760405180602001604052806000815250915050611985565b8073ffffffffffffffffffffffffffffffffffffffff1663da4cfa2f84601260008781526020019081526020016000206040518363ffffffff1660e01b815260040161193b929190614027565b600060405180830381865afa158015611958573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061198191906140f1565b9150505b919050565b611992611e57565b73ffffffffffffffffffffffffffffffffffffffff166119b0611622565b73ffffffffffffffffffffffffffffffffffffffff1614611a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fd9061394c565b60405180910390fd5b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b600d60019054906101000a900460ff1681565b600c5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ae7611e57565b73ffffffffffffffffffffffffffffffffffffffff16611b05611622565b73ffffffffffffffffffffffffffffffffffffffff1614611b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b529061394c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc2906141ac565b60405180910390fd5b611bd481612321565b50565b600080600190506000600190505b612000811015611c2b5760001515611bfc826116f4565b15151415611c0957611c2b565b600181611c1691906135f0565b91508080611c23906136a0565b915050611be5565b508091505090565b600d60019054906101000a900460ff1615611c7a576040517feb56075600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c82612e3c565b611c8b8261127a565b82600001836020018215151515815250828152505050611cab33836125b0565b80601260008481526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908315150217905550905050600c6000815480929190611cff906136a0565b9190505550505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dd457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611de45750611de3826125ce565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611ed2836111c8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611f2382611deb565b611f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f599061423e565b60405180910390fd5b6000611f6d836111c8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fdc57508373ffffffffffffffffffffffffffffffffffffffff16611fc484610a59565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fed5750611fec8185611a4b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612016826111c8565b73ffffffffffffffffffffffffffffffffffffffff161461206c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612063906142d0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d390614362565b60405180910390fd5b6120e7838383612638565b6120f2600082611e5f565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121429190614382565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461219991906135f0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461225883838361274c565b505050565b6000808211801561226f575061100182105b1561231757601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663622d7a72836040518263ffffffff1660e01b81526004016122cf9190613149565b602060405180830381865afa1580156122ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231091906143cb565b905061231c565b600090505b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612456576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244d90614444565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125479190612f6f565b60405180910390a3505050565b61255f848484611ff6565b61256b84848484612751565b6125aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a1906144d6565b60405180910390fd5b50505050565b6125ca8282604051806020016040528060008152506128d9565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612643838383612934565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126865761268181612939565b6126c5565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146126c4576126c38382612982565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127085761270381612aef565b612747565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612746576127458282612bc0565b5b5b505050565b505050565b60006127728473ffffffffffffffffffffffffffffffffffffffff16612c3f565b156128cc578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261279b611e57565b8786866040518563ffffffff1660e01b81526004016127bd949392919061454b565b6020604051808303816000875af19250505080156127f957506040513d601f19601f820116820180604052508101906127f691906145ac565b60015b61287c573d8060008114612829576040519150601f19603f3d011682016040523d82523d6000602084013e61282e565b606091505b50600081511415612874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286b906144d6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128d1565b600190505b949350505050565b6128e38383612c62565b6128f06000848484612751565b61292f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612926906144d6565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161298f846112de565b6129999190614382565b9050600060076000848152602001908152602001600020549050818114612a7e576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612b039190614382565b9050600060096000848152602001908152602001600020549050600060088381548110612b3357612b32613a90565b5b906000526020600020015490508060088381548110612b5557612b54613a90565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612ba457612ba36145d9565b5b6001900381819060005260206000200160009055905550505050565b6000612bcb836112de565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc990614654565b60405180910390fd5b612cdb81611deb565b15612d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d12906146c0565b60405180910390fd5b612d2760008383612638565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d7791906135f0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e386000838361274c565b5050565b6040518060400160405280600081526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b612e7f81612e6c565b8114612e8a57600080fd5b50565b600081359050612e9c81612e76565b92915050565b600060208284031215612eb857612eb7612e62565b5b6000612ec684828501612e8d565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f0481612ecf565b8114612f0f57600080fd5b50565b600081359050612f2181612efb565b92915050565b600060208284031215612f3d57612f3c612e62565b5b6000612f4b84828501612f12565b91505092915050565b60008115159050919050565b612f6981612f54565b82525050565b6000602082019050612f846000830184612f60565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612fc4578082015181840152602081019050612fa9565b83811115612fd3576000848401525b50505050565b6000601f19601f8301169050919050565b6000612ff582612f8a565b612fff8185612f95565b935061300f818560208601612fa6565b61301881612fd9565b840191505092915050565b6000602082019050818103600083015261303d8184612fea565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061307082613045565b9050919050565b61308081613065565b82525050565b600060208201905061309b6000830184613077565b92915050565b6130aa81613065565b81146130b557600080fd5b50565b6000813590506130c7816130a1565b92915050565b600080604083850312156130e4576130e3612e62565b5b60006130f2858286016130b8565b925050602061310385828601612e8d565b9150509250929050565b60006020828403121561312357613122612e62565b5b6000613131848285016130b8565b91505092915050565b61314381612e6c565b82525050565b600060208201905061315e600083018461313a565b92915050565b60008060006060848603121561317d5761317c612e62565b5b600061318b868287016130b8565b935050602061319c868287016130b8565b92505060406131ad86828701612e8d565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131f482612fd9565b810181811067ffffffffffffffff82111715613213576132126131bc565b5b80604052505050565b6000613226612e58565b905061323282826131eb565b919050565b600067ffffffffffffffff821115613252576132516131bc565b5b602082029050602081019050919050565b600080fd5b600061327b61327684613237565b61321c565b9050808382526020820190506020840283018581111561329e5761329d613263565b5b835b818110156132c757806132b38882612e8d565b8452602084019350506020810190506132a0565b5050509392505050565b600082601f8301126132e6576132e56131b7565b5b81356132f6848260208601613268565b91505092915050565b60006020828403121561331557613314612e62565b5b600082013567ffffffffffffffff81111561333357613332612e67565b5b61333f848285016132d1565b91505092915050565b600060408201905061335d600083018561313a565b61336a6020830184612f60565b9392505050565b61337a81612f54565b811461338557600080fd5b50565b60008135905061339781613371565b92915050565b600080604083850312156133b4576133b3612e62565b5b60006133c2858286016130b8565b92505060206133d385828601613388565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156133fd576133fc6131bc565b5b61340682612fd9565b9050602081019050919050565b82818337600083830152505050565b6000613435613430846133e2565b61321c565b905082815260208101848484011115613451576134506133dd565b5b61345c848285613413565b509392505050565b600082601f830112613479576134786131b7565b5b8135613489848260208601613422565b91505092915050565b600080600080608085870312156134ac576134ab612e62565b5b60006134ba878288016130b8565b94505060206134cb878288016130b8565b93505060406134dc87828801612e8d565b925050606085013567ffffffffffffffff8111156134fd576134fc612e67565b5b61350987828801613464565b91505092959194509250565b6000806040838503121561352c5761352b612e62565b5b600061353a858286016130b8565b925050602061354b858286016130b8565b9150509250929050565b7f5245454e5452414e435900000000000000000000000000000000000000000000600082015250565b600061358b600a83612f95565b915061359682613555565b602082019050919050565b600060208201905081810360008301526135ba8161357e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135fb82612e6c565b915061360683612e6c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561363b5761363a6135c1565b5b828201905092915050565b600061365182612e6c565b915061365c83612e6c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613695576136946135c1565b5b828202905092915050565b60006136ab82612e6c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156136de576136dd6135c1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061373057607f821691505b60208210811415613744576137436136e9565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006137a6602c83612f95565b91506137b18261374a565b604082019050919050565b600060208201905081810360008301526137d581613799565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613838602183612f95565b9150613843826137dc565b604082019050919050565b600060208201905081810360008301526138678161382b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006138ca603883612f95565b91506138d58261386e565b604082019050919050565b600060208201905081810360008301526138f9816138bd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613936602083612f95565b915061394182613900565b602082019050919050565b6000602082019050818103600083015261396581613929565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006139c8603183612f95565b91506139d38261396c565b604082019050919050565b600060208201905081810360008301526139f7816139bb565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613a5a602b83612f95565b9150613a65826139fe565b604082019050919050565b60006020820190508181036000830152613a8981613a4d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f546f6b656e206973206e6f7420656c696769626c6520746f20636c61696d0000600082015250565b6000613af5601e83612f95565b9150613b0082613abf565b602082019050919050565b60006020820190508181036000830152613b2481613ae8565b9050919050565b600081519050613b3a816130a1565b92915050565b600060208284031215613b5657613b55612e62565b5b6000613b6484828501613b2b565b91505092915050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613bc9602c83612f95565b9150613bd482613b6d565b604082019050919050565b60006020820190508181036000830152613bf881613bbc565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613c5b602983612f95565b9150613c6682613bff565b604082019050919050565b60006020820190508181036000830152613c8a81613c4e565b9050919050565b6000819050919050565b613cac613ca782612e6c565b613c91565b82525050565b60008160601b9050919050565b6000613cca82613cb2565b9050919050565b6000613cdc82613cbf565b9050919050565b613cf4613cef82613065565b613cd1565b82525050565b6000613d068287613c9b565b602082019150613d168286613ce3565b601482019150613d268285613c9b565b602082019150613d368284613c9b565b60208201915081905095945050505050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613da4602a83612f95565b9150613daf82613d48565b604082019050919050565b60006020820190508181036000830152613dd381613d97565b9050919050565b7f496e76616c696420746f6b656e00000000000000000000000000000000000000600082015250565b6000613e10600d83612f95565b9150613e1b82613dda565b602082019050919050565b60006020820190508181036000830152613e3f81613e03565b9050919050565b7f5468697320746f6b656e2068617320616c7265616479206265656e206d696e7460008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ea2602283612f95565b9150613ead82613e46565b604082019050919050565b60006020820190508181036000830152613ed181613e95565b9050919050565b7f4e6f7420746865206f776e6572206f6620746869732054696e79204b696e676460008201527f6f6d000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f34602283612f95565b9150613f3f82613ed8565b604082019050919050565b60006020820190508181036000830152613f6381613f27565b9050919050565b60008160001c9050919050565b6000819050919050565b6000613f94613f8f83613f6a565b613f77565b9050919050565b613fa481612e6c565b82525050565b600060ff82169050919050565b6000613fca613fc583613f6a565b613faa565b9050919050565b613fda81612f54565b82525050565b604082016000808301549050613ff581613f81565b6140026000860182613f9b565b506001830154905061401381613fb7565b6140206020860182613fd1565b5050505050565b600060608201905061403c600083018561313a565b6140496020830184613fe0565b9392505050565b600067ffffffffffffffff82111561406b5761406a6131bc565b5b61407482612fd9565b9050602081019050919050565b600061409461408f84614050565b61321c565b9050828152602081018484840111156140b0576140af6133dd565b5b6140bb848285612fa6565b509392505050565b600082601f8301126140d8576140d76131b7565b5b81516140e8848260208601614081565b91505092915050565b60006020828403121561410757614106612e62565b5b600082015167ffffffffffffffff81111561412557614124612e67565b5b614131848285016140c3565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614196602683612f95565b91506141a18261413a565b604082019050919050565b600060208201905081810360008301526141c581614189565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614228602c83612f95565b9150614233826141cc565b604082019050919050565b600060208201905081810360008301526142578161421b565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006142ba602583612f95565b91506142c58261425e565b604082019050919050565b600060208201905081810360008301526142e9816142ad565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061434c602483612f95565b9150614357826142f0565b604082019050919050565b6000602082019050818103600083015261437b8161433f565b9050919050565b600061438d82612e6c565b915061439883612e6c565b9250828210156143ab576143aa6135c1565b5b828203905092915050565b6000815190506143c581613371565b92915050565b6000602082840312156143e1576143e0612e62565b5b60006143ef848285016143b6565b91505092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061442e601983612f95565b9150614439826143f8565b602082019050919050565b6000602082019050818103600083015261445d81614421565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006144c0603283612f95565b91506144cb82614464565b604082019050919050565b600060208201905081810360008301526144ef816144b3565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061451d826144f6565b6145278185614501565b9350614537818560208601612fa6565b61454081612fd9565b840191505092915050565b60006080820190506145606000830187613077565b61456d6020830186613077565b61457a604083018561313a565b818103606083015261458c8184614512565b905095945050505050565b6000815190506145a681612efb565b92915050565b6000602082840312156145c2576145c1612e62565b5b60006145d084828501614597565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061463e602083612f95565b915061464982614608565b602082019050919050565b6000602082019050818103600083015261466d81614631565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006146aa601c83612f95565b91506146b582614674565b602082019050919050565b600060208201905081810360008301526146d98161469d565b905091905056fea2646970667358221220aca12f8671f93805ddec9cc2c504cf2dbd7d1445df94b79ff26a5fe44aac545264736f6c634300080c0033

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.