ETH Price: $3,448.35 (+1.46%)

Token

Key to Cyber City (KEY2CITY)
 

Overview

Max Total Supply

0 KEY2CITY

Holders

524

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 KEY2CITY
0xAa554466cB5F70EA74CAEf1700a2a53b0a4A5796
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:
KeyToCyberCity

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 14 : KeyToCyberCity.sol
//SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

/**
                          _____                                                                  
 ______   _______    _____\    \  ______   _____          ________    ________         ____      
|\     \  \      \  /    / |    ||\     \ |     |        /        \  /        \    ____\_  \__   
 \\     \  |     /|/    /  /___/|\ \     \|     |       |\         \/         /|  /     /     \  
  \|     |/     //|    |__ |___|/ \ \           |       | \            /\____/ | /     /\      | 
   |     |_____// |       \        \ \____      |       |  \______/\   \     | ||     |  |     | 
   |     |\     \ |     __/ __      \|___/     /|        \ |      | \   \____|/ |     |  |     | 
  /     /|\|     ||\    \  /  \         /     / |         \|______|  \   \      |     | /     /| 
 /_____/ |/_____/|| \____\/    |       /_____/  /                  \  \___\     |\     \_____/ | 
|     | / |    | || |    |____/|       |     | /                    \ |   |     | \_____\   | /  
|_____|/  |____|/  \|____|   | |       |_____|/                      \|___|      \ |    |___|/   
                         |___|/                                                   \|____|        
                                                        _____                                                                                                   
        _____    ______   _____ ______  ______     _____\    \ ___________                     _____     ____________    ________    ________   ______   _____  
   _____\    \_ |\     \ |     |\     \|\     \   /    / |    |\          \               _____\    \_  /            \  /        \  /        \ |\     \ |     | 
  /     /|     |\ \     \|     | |     |\|     | /    /  /___/| \    /\    \             /     /|     ||\___/\  \\___/||\         \/         /|\ \     \|     | 
 /     / /____/| \ \           | |     |/____ / |    |__ |___|/  |   \_\    |           /     / /____/| \|____\  \___|/| \            /\____/ | \ \           | 
|     | |____|/   \ \____      | |     |\     \ |       \        |      ___/           |     | |____|/        |  |     |  \______/\   \     | |  \ \____      | 
|     |  _____     \|___/     /| |     | |     ||     __/ __     |      \  ____        |     |  _____    __  /   / __   \ |      | \   \____|/    \|___/     /| 
|\     \|\    \        /     / | |     | |     ||\    \  /  \   /     /\ \/    \       |\     \|\    \  /  \/   /_/  |   \|______|  \   \             /     / | 
| \_____\|    |       /_____/  //_____/|/_____/|| \____\/    | /_____/ |\______|       | \_____\|    | |____________/|            \  \___\           /_____/  / 
| |     /____/|       |     | / |    |||     | || |    |____/| |     | | |     |       | |     /____/| |           | /             \ |   |           |     | /  
 \|_____|    ||       |_____|/  |____|/|_____|/  \|____|   | | |_____|/ \|_____|        \|_____|    || |___________|/               \|___|           |_____|/   
        |____|/                                        |___|/                                  |____|/                                                          

*/

contract KeyToCyberCity is ERC721, Ownable, VRFConsumerBase {

    using Strings for uint256;

    struct RevealData {
        uint range;
        uint randomness;
    }

    RevealData[] revealData;

    string[] baseURIs;

    //Chainlink values
    uint constant fee = 2 ether;
    bytes32 constant keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;

    uint constant publicSupply = 800;

    uint constant whitelistSupply = 88;

    uint constant goldenKeyChance = 50; //5% chance

    bool isPublicMint;

    uint publicMinted;

    uint whitelistMinted;

    address YBotsContract;

    mapping(address => bool) publicAddressesMinted;

    mapping(uint => address) public stakedPasses;

    event Staked(address indexed owner, uint indexed tokenId);

    event UnStaked(address indexed owner, uint indexed tokenId);

    constructor(address _vrfCoordinator, address _link) 
        ERC721("Key to Cyber City", "KEY2CITY")
        VRFConsumerBase(_vrfCoordinator, _link)
    {}

    /**
    
            ___________          ____________  _____    _____    ________    ________   
           /           \        /            \|\    \   \    \  /        \  /        \  
          /    _   _    \      |\___/\  \\___/|\\    \   |    ||\         \/         /| 
         /    //   \\    \      \|____\  \___|/ \\    \  |    || \            /\____/ | 
        /    //     \\    \           |  |       \|    \ |    ||  \______/\   \     | | 
       /     \\_____//     \     __  /   / __     |     \|    | \ |      | \   \____|/  
      /       \ ___ /       \   /  \/   /_/  |   /     /\      \ \|______|  \   \       
     /________/|   |\________\ |____________/|  /_____/ /______/|         \  \___\      
    |        | |   | |        ||           | / |      | |     | |          \ |   |      
    |________|/     \|________||___________|/  |______|/|_____|/            \|___|      
                                                                                
    
    */

    function publicMint() external {

        require(isPublicMint, "Minting isn't live");

        require(publicAddressesMinted[msg.sender] == false, "Already minted");

        uint _publicMinted = publicMinted;

        require(_publicMinted < publicSupply, "All Minted");

        unchecked {
            ++_publicMinted;
        }

        publicMinted = _publicMinted; 

        publicAddressesMinted[msg.sender] = true;

        _safeMint(msg.sender, _publicMinted);

    }

    /**
    
            _____    ________    ________      _____         ______   _______    ____________  _____    _____            _____        
       _____\    \  /        \  /        \   /      |_      |\     \  \      \  /            \|\    \   \    \      _____\    \_      
      /    / \    ||\         \/         /| /         \      \\     \  |     /||\___/\  \\___/|\\    \   |    |    /     /|     |     
     |    |  /___/|| \            /\____/ ||     /\    \      \|     |/     //  \|____\  \___|/ \\    \  |    |   /     / /____/|     
  ____\    \ |   |||  \______/\   \     | ||    |  |    \      |     |_____//         |  |       \|    \ |    |  |     | |_____|/     
 /    /\    \|___|/ \ |      | \   \____|/ |     \/      \     |     |\     \    __  /   / __     |     \|    |  |     | |_________   
|    |/ \    \       \|______|  \   \      |\      /\     \   /     /|\|     |  /  \/   /_/  |   /     /\      \ |\     \|\        \  
|\____\ /____/|               \  \___\     | \_____\ \_____\ /_____/ |/_____/| |____________/|  /_____/ /______/|| \_____\|    |\__/| 
| |   ||    | |                \ |   |     | |     | |     ||     | / |    | | |           | / |      | |     | || |     /____/| | || 
 \|___||____|/                  \|___|      \|_____|\|_____||_____|/  |____|/  |___________|/  |______|/|_____|/  \|_____|     |\|_|/ 
                                                                                                                         |____/       
    
    
    */

    function stake(uint[] calldata tokenIds) external {

        uint count = tokenIds.length;
        for(uint i = 0; i < count;) {

            uint tokenId = tokenIds[i];
            require(ownerOf(tokenId) == msg.sender, "User doesn't own this token");

            _burn(tokenId);

            stakedPasses[tokenId] = msg.sender;

            emit Staked(msg.sender, tokenId);

            unchecked {
                ++i;
            }
        }

    }

    function unstake(uint[] calldata tokenIds) external {

        uint count = tokenIds.length;
        for(uint i = 0; i < count;) {

            uint tokenId = tokenIds[i];
            require(stakedPasses[tokenId] == msg.sender, "User doesn't own this token");

            _safeMint(msg.sender, tokenId);

            emit UnStaked(msg.sender, tokenId);

            delete stakedPasses[tokenId];

            unchecked {
                ++i;
            }
        }

    }

    /**
                                                              
    ______  ______ ______   _____    ___________      _____    _____     
    \     \|\     \\     \  \    \   \          \    |\    \   \    \    
    |     |\|     |\    |  |    |    \    /\    \    \\    \   |    |   
    |     |/____ /  |   |  |    |     |   \_\    |    \\    \  |    |   
    |     |\     \  |    \_/   /|     |      ___/      \|    \ |    |   
    |     | |     | |\         \|     |      \  ____    |     \|    |   
    |     | |     | | \         \__  /     /\ \/    \  /     /\      \  
    /_____/|/_____/|  \ \_____/\    \/_____/ |\______| /_____/ /______/| 
    |    |||     | |   \ |    |/___/||     | | |     ||      | |     | | 
    |____|/|_____|/     \|____|   | ||_____|/ \|_____||______|/|_____|/  
                              |___|/                                     
        
    */

    function burnBatch(address owner, uint[] calldata tokenIds) external {

        require(msg.sender == YBotsContract, "Caller not YBots");

        for(uint i = 0; i < tokenIds.length;) {

            burn(owner, tokenIds[i]);

            unchecked {
                ++i;
            }

        }

    }

    function burn(address owner, uint tokenId) internal {

        require(ownerOf(tokenId) == owner, "Not owner");
        require(_isApprovedOrOwner(msg.sender, tokenId), "Not approved");

        _burn(tokenId);

    }

     /**                                                                                                                                                      
            _____         __     __           _____          ____________  _____    _____   _____              ____________  _____    _____     ______   _______   
       _____\    \_      /  \   /  \        /      |_       /            \|\    \   \    \ |\    \            /            \|\    \   \    \   |\     \  \      \  
      /     /|     |    /   /| |\   \      /         \     |\___/\  \\___/|\\    \   |    | \\    \          |\___/\  \\___/|\\    \   |    |   \\     \  |     /| 
     /     / /____/|   /   //   \\   \    |     /\    \     \|____\  \___|/ \\    \  |    |  \\    \          \|____\  \___|/ \\    \  |    |    \|     |/     //  
    |     | |____|/   /    \_____/    \   |    |  |    \          |  |       \|    \ |    |   \|    | ______        |  |       \|    \ |    |     |     |_____//   
    |     |  _____   /    /\_____/\    \  |     \/      \    __  /   / __     |     \|    |    |    |/      \  __  /   / __     |     \|    |     |     |\     \   
    |\     \|\    \ /    //\_____/\\    \ |\      /\     \  /  \/   /_/  |   /     /\      \   /            | /  \/   /_/  |   /     /\      \   /     /|\|     |  
    | \_____\|    |/____/ |       | \____\| \_____\ \_____\|____________/|  /_____/ /______/| /_____/\_____/||____________/|  /_____/ /______/| /_____/ |/_____/|  
    | |     /____/||    | |       | |    || |     | |     ||           | / |      | |     | ||      | |    |||           | / |      | |     | ||     | / |    | |  
     \|_____|    |||____|/         \|____| \|_____|\|_____||___________|/  |______|/|_____|/ |______|/|____|/|___________|/  |______|/|_____|/ |_____|/  |____|/   
            |____|/                                                                                                                                                
    
    */

    /**
     * @dev Callback function used by Chainlink VRF Coordinator
    * sets the randomness used to determine the type of each key
    */
    function fulfillRandomness(bytes32, uint256 _randomness) internal override {

       
        revealData[revealData.length - 1].randomness = _randomness;

    }

    /**                                      _____                            
   _______    ______   ____________     _____\    \    _______     _______    
   \      |  |      | /            \   /    / |    |  /      /|   |\      \   
    |     /  /     /||\___/\  \\___/| /    /  /___/| /      / |   | \      \  
    |\    \  \    |/  \|____\  \___|/|    |__ |___|/|      /  |___|  \      | 
    \ \    \ |    |         |  |     |       \      |      |  |   |  |      | 
     \|     \|    |    __  /   / __  |     __/ __   |       \ \   / /       | 
      |\         /|   /  \/   /_/  | |\    \  /  \  |      |\\/   \//|      | 
      | \_______/ |  |____________/| | \____\/    | |\_____\|\_____/|/_____/| 
       \ |     | /   |           | / | |    |____/| | |     | |   | |     | | 
        \|_____|/    |___________|/   \|____|   | |  \|_____|\|___|/|_____|/  
                                            |___|/                   

    */         

    /**
        @dev Returns the key type of the token, type is determined randomly based on chainlinks verifiable random number
    */
    function getKeyType(uint tokenId) public view returns(uint) {
            
        RevealData[] memory data = revealData;

        uint count = data.length;
        uint randomness;
        for(uint i = 0; i < count;) {

            if(tokenId <= data[i].range) {

                randomness = data[i].randomness;
                break;

            }

            unchecked {
                
                ++i; 
            }

        }

        if(randomness == 0) {
            return 0;
        }
            
        uint value = uint(keccak256(abi.encodePacked(tokenId, randomness))) % 1000;

        if(value <= goldenKeyChance) {
            //Golden Key
            return 2;
        }

        return 1;

    }

    /**
    * @dev See {IERC721Metadata-tokenURI}. 
    *  Returns the metadata uri based on the tokens key type
    */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {

        require(_exists(tokenId), "Token doesn't exist");

        uint passType = getKeyType(tokenId);

        string memory uri = baseURIs[passType];

        return string(abi.encodePacked(uri, tokenId.toString()));
    }


    /**
                                                                       _____                    
           ____        _______     _______   _____    _____       _____\    \ ___________       
       ____\_  \__    /      /|   |\      \ |\    \   \    \     /    / |    |\          \      
      /     /     \  /      / |   | \      \ \\    \   |    |   /    /  /___/| \    /\    \     
     /     /\      ||      /  |___|  \      | \\    \  |    |  |    |__ |___|/  |   \_\    |    
    |     |  |     ||      |  |   |  |      |  \|    \ |    |  |       \        |      ___/     
    |     |  |     ||       \ \   / /       |   |     \|    |  |     __/ __     |      \  ____  
    |     | /     /||      |\\/   \//|      |  /     /\      \ |\    \  /  \   /     /\ \/    \ 
    |\     \_____/ ||\_____\|\_____/|/_____/| /_____/ /______/|| \____\/    | /_____/ |\______| 
    | \_____\   | / | |     | |   | |     | ||      | |     | || |    |____/| |     | | |     | 
     \ |    |___|/   \|_____|\|___|/|_____|/ |______|/|_____|/  \|____|   | | |_____|/ \|_____| 
      \|____|                                                         |___|/                    
   
    */

    function airdropTokens(address[] calldata _addresses) external onlyOwner {

        uint length = _addresses.length;

        uint minted = whitelistMinted;

        require(minted + length <= whitelistSupply, "Minting too many");

        for(uint i = 1; i <= length;) {

            unchecked {
                _mint(_addresses[i - 1], publicSupply + minted + i);
                ++i;
            }

        }

        whitelistMinted += length;

    }

    function setUris(string[] memory _uris) external onlyOwner {

        baseURIs = _uris;

    }
   

    function reveal(uint range) external onlyOwner {

        RevealData[] memory data = revealData;

        if(data.length > 0) {

            require(range > data[data.length - 1].range, "Range needs to be greator than last");
            require(data[data.length - 1].randomness > 0, "randomness needs to be set");
            
        }

        revealData.push(RevealData(range, 0));

        requestRandomness(keyHash, fee);

    }

    function setYBots(address _yBots) external onlyOwner {

        YBotsContract = _yBots;

    }

    function setPublicMint(bool _value) external onlyOwner {

        isPublicMint = _value;

    }

}

File 2 of 14 : 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 3 of 14 : 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 4 of 14 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {
  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 private constant USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface internal immutable LINK;
  address private immutable vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 => uint256) /* keyHash */ /* nonce */
    private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(address _vrfCoordinator, address _link) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

File 5 of 14 : 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 6 of 14 : 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 7 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 8 of 14 : 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 9 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 13 of 14 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {
  function allowance(address owner, address spender) external view returns (uint256 remaining);

  function approve(address spender, uint256 value) external returns (bool success);

  function balanceOf(address owner) external view returns (uint256 balance);

  function decimals() external view returns (uint8 decimalPlaces);

  function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);

  function increaseApproval(address spender, uint256 subtractedValue) external;

  function name() external view returns (string memory tokenName);

  function symbol() external view returns (string memory tokenSymbol);

  function totalSupply() external view returns (uint256 totalTokensIssued);

  function transfer(address to, uint256 value) external returns (bool success);

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  ) external returns (bool success);

  function transferFrom(
    address from,
    address to,
    uint256 value
  ) external returns (bool success);
}

File 14 of 14 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {
  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  ) internal pure returns (uint256) {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Staked","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"UnStaked","type":"event"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"airdropTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getKeyType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"publicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"range","type":"uint256"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_uris","type":"string[]"}],"name":"setUris","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yBots","type":"address"}],"name":"setYBots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakedPasses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b5060405162002dbe38038062002dbe8339810160408190526200003491620001f8565b60408051808201825260118152704b657920746f204379626572204369747960781b6020808301918252835180850190945260088452674b4559324349545960c01b90840152815185938593929091620000919160009162000135565b508051620000a790600190602084019062000135565b505050620000c4620000be620000df60201b60201c565b620000e3565b6001600160a01b0391821660a05216608052506200026d9050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001439062000230565b90600052602060002090601f016020900481019282620001675760008555620001b2565b82601f106200018257805160ff1916838001178555620001b2565b82800160010185558215620001b2579182015b82811115620001b257825182559160200191906001019062000195565b50620001c0929150620001c4565b5090565b5b80821115620001c05760008155600101620001c5565b80516001600160a01b0381168114620001f357600080fd5b919050565b600080604083850312156200020c57600080fd5b6200021783620001db565b91506200022760208401620001db565b90509250929050565b600181811c908216806200024557607f821691505b602082108114156200026757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051612b246200029a60003960008181610f5d0152611eb801526000611e890152612b246000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80637921feae116100f9578063b2dc5dc311610097578063c87b56dd11610071578063c87b56dd146103c3578063e449f341146103d6578063e985e9c5146103e9578063f2fde38b1461042557600080fd5b8063b2dc5dc31461038a578063b88d4fde1461039d578063c2ca0ac5146103b057600080fd5b80638da5cb5b116100d35780638da5cb5b1461034b57806394985ddd1461035c57806395d89b411461036f578063a22cb4651461037757600080fd5b80637921feae146102fc578063817ee6bd1461030f57806381b629711461033857600080fd5b806323b872dd116101665780634ee51a27116101405780634ee51a27146102ad5780636352211e146102c057806370a08231146102d3578063715018a6146102f457600080fd5b806323b872dd1461027f57806326092b831461029257806342842e0e1461029a57600080fd5b8063081812fc116101a2578063081812fc1461021b578063095ea7b3146102465780630e2d56cf146102595780630fbf0a931461026c57600080fd5b806301ffc9a7146101c957806303d70483146101f157806306fdde0314610206575b600080fd5b6101dc6101d7366004612459565b610438565b60405190151581526020015b60405180910390f35b6102046101ff366004612499565b6104d5565b005b61020e610556565b6040516101e8919061250c565b61022e61022936600461251f565b6105e8565b6040516001600160a01b0390911681526020016101e8565b610204610254366004612538565b61067d565b610204610267366004612570565b6107af565b61020461027a3660046125d9565b61081c565b61020461028d36600461261b565b61090f565b610204610996565b6102046102a836600461261b565b610acf565b6102046102bb3660046125d9565b610aea565b61022e6102ce36600461251f565b610c0c565b6102e66102e1366004612499565b610c97565b6040519081526020016101e8565b610204610d31565b6102e661030a36600461251f565b610d97565b61022e61031d36600461251f565b600f602052600090815260409020546001600160a01b031681565b6102046103463660046126f6565b610ee1565b6006546001600160a01b031661022e565b61020461036a3660046127ce565b610f52565b61020e610fd4565b6102046103853660046127f0565b610fe3565b610204610398366004612827565b610fee565b6102046103ab36600461287a565b61107d565b6102046103be36600461251f565b611105565b61020e6103d136600461251f565b611399565b6102046103e43660046125d9565b6114ea565b6101dc6103f73660046128f6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610204610433366004612499565b6115da565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061049b57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806104cf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b031633146105345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60606000805461056590612929565b80601f016020809104026020016040519081016040528092919081815260200182805461059190612929565b80156105de5780601f106105b3576101008083540402835291602001916105de565b820191906000526020600020905b8154815290600101906020018083116105c157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161052b565b506000908152600460205260409020546001600160a01b031690565b600061068882610c0c565b9050806001600160a01b0316836001600160a01b031614156107125760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161052b565b336001600160a01b038216148061072e575061072e81336103f7565b6107a05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161052b565b6107aa83836116b9565b505050565b6006546001600160a01b031633146108095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b600a805460ff1916911515919091179055565b8060005b8181101561090957600084848381811061083c5761083c612964565b905060200201359050336001600160a01b031661085882610c0c565b6001600160a01b0316146108ae5760405162461bcd60e51b815260206004820152601b60248201527f5573657220646f65736e2774206f776e207468697320746f6b656e0000000000604482015260640161052b565b6108b781611727565b6000818152600f602052604080822080546001600160a01b03191633908117909155905183927f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d91a350600101610820565b50505050565b61091933826117c2565b61098b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161052b565b6107aa8383836118b9565b600a5460ff166109e85760405162461bcd60e51b815260206004820152601260248201527f4d696e74696e672069736e2774206c6976650000000000000000000000000000604482015260640161052b565b336000908152600e602052604090205460ff1615610a485760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206d696e746564000000000000000000000000000000000000604482015260640161052b565b600b546103208110610a9c5760405162461bcd60e51b815260206004820152600a60248201527f416c6c204d696e74656400000000000000000000000000000000000000000000604482015260640161052b565b6001908101600b819055336000818152600e60205260409020805460ff191690931790925590610acc9082611a86565b50565b6107aa8383836040518060200160405280600081525061107d565b6006546001600160a01b03163314610b445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b600c5481906058610b558383612990565b1115610ba35760405162461bcd60e51b815260206004820152601060248201527f4d696e74696e6720746f6f206d616e7900000000000000000000000000000000604482015260640161052b565b60015b828111610bee57610be6858560018403818110610bc557610bc5612964565b9050602002016020810190610bda9190612499565b82846103200101611aa0565b600101610ba6565b5081600c6000828254610c019190612990565b909155505050505050565b6000818152600260205260408120546001600160a01b0316806104cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161052b565b60006001600160a01b038216610d155760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161052b565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610d8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b610d956000611be2565b565b6000806008805480602002602001604051908101604052809291908181526020016000905b82821015610e0257838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190610dbc565b50508251929350600091508190505b82811015610e6a57838181518110610e2b57610e2b612964565b6020026020010151600001518611610e6257838181518110610e4f57610e4f612964565b6020026020010151602001519150610e6a565b600101610e11565b5080610e7b57506000949350505050565b60006103e88683604051602001610e9c929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c610ebf91906129be565b905060328111610ed55750600295945050505050565b50600195945050505050565b6006546001600160a01b03163314610f3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b8051610f4e9060099060208401906122fa565b5050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610fca5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161052b565b610f4e8282611c34565b60606001805461056590612929565b610f4e338383611c70565b600d546001600160a01b031633146110485760405162461bcd60e51b815260206004820152601060248201527f43616c6c6572206e6f742059426f747300000000000000000000000000000000604482015260640161052b565b60005b81811015610909576110758484848481811061106957611069612964565b90506020020135611d3f565b60010161104b565b61108733836117c2565b6110f95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161052b565b61090984848484611e07565b6006546001600160a01b0316331461115f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b60006008805480602002602001604051908101604052809291908181526020016000905b828210156111c957838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190611183565b5050505090506000815111156112f25780600182516111e891906129d2565b815181106111f8576111f8612964565b60200260200101516000015182116112785760405162461bcd60e51b815260206004820152602360248201527f52616e6765206e6565647320746f2062652067726561746f72207468616e206c60448201527f6173740000000000000000000000000000000000000000000000000000000000606482015260840161052b565b6000816001835161128991906129d2565b8151811061129957611299612964565b602002602001015160200151116112f25760405162461bcd60e51b815260206004820152601a60248201527f72616e646f6d6e657373206e6565647320746f20626520736574000000000000604482015260640161052b565b6040805180820190915282815260006020820181815260088054600181018255925291517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360029092029182015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4909101556107aa7faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445671bc16d674ec80000611e85565b6000818152600260205260409020546060906001600160a01b03166114005760405162461bcd60e51b815260206004820152601360248201527f546f6b656e20646f65736e277420657869737400000000000000000000000000604482015260640161052b565b600061140b83610d97565b905060006009828154811061142257611422612964565b90600052602060002001805461143790612929565b80601f016020809104026020016040519081016040528092919081815260200182805461146390612929565b80156114b05780601f10611485576101008083540402835291602001916114b0565b820191906000526020600020905b81548152906001019060200180831161149357829003601f168201915b50505050509050806114c185612001565b6040516020016114d29291906129e9565b60405160208183030381529060405292505050919050565b8060005b8181101561090957600084848381811061150a5761150a612964565b602090810292909201356000818152600f909352604090922054919250506001600160a01b0316331461157f5760405162461bcd60e51b815260206004820152601b60248201527f5573657220646f65736e2774206f776e207468697320746f6b656e0000000000604482015260640161052b565b6115893382611a86565b604051819033907f79d3df6837cc49ff0e09fd3258e6e45594e0703445bb06825e9d75156eaee8f090600090a36000908152600f6020526040902080546001600160a01b03191690556001016114ee565b6006546001600160a01b031633146116345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b6001600160a01b0381166116b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161052b565b610acc81611be2565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116ee82610c0c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061173282610c0c565b905061173f6000836116b9565b6001600160a01b03811660009081526003602052604081208054600192906117689084906129d2565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000818152600260205260408120546001600160a01b031661183b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161052b565b600061184683610c0c565b9050806001600160a01b0316846001600160a01b031614806118815750836001600160a01b0316611876846105e8565b6001600160a01b0316145b806118b157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166118cc82610c0c565b6001600160a01b0316146119485760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161052b565b6001600160a01b0382166119c35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161052b565b6119ce6000826116b9565b6001600160a01b03831660009081526003602052604081208054600192906119f79084906129d2565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a25908490612990565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610f4e828260405180602001604052806000815250612133565b6001600160a01b038216611af65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161052b565b6000818152600260205260409020546001600160a01b031615611b5b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161052b565b6001600160a01b0382166000908152600360205260408120805460019290611b84908490612990565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60088054829190611c47906001906129d2565b81548110611c5757611c57612964565b9060005260206000209060020201600101819055505050565b816001600160a01b0316836001600160a01b03161415611cd25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161052b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b816001600160a01b0316611d5282610c0c565b6001600160a01b031614611da85760405162461bcd60e51b815260206004820152600960248201527f4e6f74206f776e65720000000000000000000000000000000000000000000000604482015260640161052b565b611db233826117c2565b611dfe5760405162461bcd60e51b815260206004820152600c60248201527f4e6f7420617070726f7665640000000000000000000000000000000000000000604482015260640161052b565b610f4e81611727565b611e128484846118b9565b611e1e848484846121b1565b6109095760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161052b565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001611ef5929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611f2293929190612a18565b6020604051808303816000875af1158015611f41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f659190612a49565b50600083815260076020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052611fc1906001612990565b6000858152600760205260409020556118b18482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60608161204157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561206b578061205581612a66565b91506120649050600a83612a81565b9150612045565b60008167ffffffffffffffff81111561208657612086612657565b6040519080825280601f01601f1916602001820160405280156120b0576020820181803683370190505b5090505b84156118b1576120c56001836129d2565b91506120d2600a866129be565b6120dd906030612990565b60f81b8183815181106120f2576120f2612964565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061212c600a86612a81565b94506120b4565b61213d8383611aa0565b61214a60008484846121b1565b6107aa5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161052b565b60006001600160a01b0384163b156122ef57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121f5903390899088908890600401612a95565b6020604051808303816000875af1925050508015612230575060408051601f3d908101601f1916820190925261222d91810190612ad1565b60015b6122d5573d80801561225e576040519150601f19603f3d011682016040523d82523d6000602084013e612263565b606091505b5080516122cd5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161052b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118b1565b506001949350505050565b828054828255906000526020600020908101928215612347579160200282015b828111156123475782518051612337918491602090910190612357565b509160200191906001019061231a565b506123539291506123d7565b5090565b82805461236390612929565b90600052602060002090601f01602090048101928261238557600085556123cb565b82601f1061239e57805160ff19168380011785556123cb565b828001600101855582156123cb579182015b828111156123cb5782518255916020019190600101906123b0565b506123539291506123f4565b808211156123535760006123eb8282612409565b506001016123d7565b5b8082111561235357600081556001016123f5565b50805461241590612929565b6000825580601f10612425575050565b601f016020900490600052602060002090810190610acc91906123f4565b6001600160e01b031981168114610acc57600080fd5b60006020828403121561246b57600080fd5b813561247681612443565b9392505050565b80356001600160a01b038116811461249457600080fd5b919050565b6000602082840312156124ab57600080fd5b6124768261247d565b60005b838110156124cf5781810151838201526020016124b7565b838111156109095750506000910152565b600081518084526124f88160208601602086016124b4565b601f01601f19169290920160200192915050565b60208152600061247660208301846124e0565b60006020828403121561253157600080fd5b5035919050565b6000806040838503121561254b57600080fd5b6125548361247d565b946020939093013593505050565b8015158114610acc57600080fd5b60006020828403121561258257600080fd5b813561247681612562565b60008083601f84011261259f57600080fd5b50813567ffffffffffffffff8111156125b757600080fd5b6020830191508360208260051b85010111156125d257600080fd5b9250929050565b600080602083850312156125ec57600080fd5b823567ffffffffffffffff81111561260357600080fd5b61260f8582860161258d565b90969095509350505050565b60008060006060848603121561263057600080fd5b6126398461247d565b92506126476020850161247d565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561269657612696612657565b604052919050565b600067ffffffffffffffff8311156126b8576126b8612657565b6126cb601f8401601f191660200161266d565b90508281528383830111156126df57600080fd5b828260208301376000602084830101529392505050565b6000602080838503121561270957600080fd5b823567ffffffffffffffff8082111561272157600080fd5b818501915085601f83011261273557600080fd5b81358181111561274757612747612657565b8060051b61275685820161266d565b918252838101850191858101908984111561277057600080fd5b86860192505b838310156127c15782358581111561278e5760008081fd5b8601603f81018b136127a05760008081fd5b6127b18b898301356040840161269e565b8352509186019190860190612776565b9998505050505050505050565b600080604083850312156127e157600080fd5b50508035926020909101359150565b6000806040838503121561280357600080fd5b61280c8361247d565b9150602083013561281c81612562565b809150509250929050565b60008060006040848603121561283c57600080fd5b6128458461247d565b9250602084013567ffffffffffffffff81111561286157600080fd5b61286d8682870161258d565b9497909650939450505050565b6000806000806080858703121561289057600080fd5b6128998561247d565b93506128a76020860161247d565b925060408501359150606085013567ffffffffffffffff8111156128ca57600080fd5b8501601f810187136128db57600080fd5b6128ea8782356020840161269e565b91505092959194509250565b6000806040838503121561290957600080fd5b6129128361247d565b91506129206020840161247d565b90509250929050565b600181811c9082168061293d57607f821691505b6020821081141561295e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156129a3576129a361297a565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826129cd576129cd6129a8565b500690565b6000828210156129e4576129e461297a565b500390565b600083516129fb8184602088016124b4565b835190830190612a0f8183602088016124b4565b01949350505050565b6001600160a01b0384168152826020820152606060408201526000612a4060608301846124e0565b95945050505050565b600060208284031215612a5b57600080fd5b815161247681612562565b6000600019821415612a7a57612a7a61297a565b5060010190565b600082612a9057612a906129a8565b500490565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ac760808301846124e0565b9695505050505050565b600060208284031215612ae357600080fd5b81516124768161244356fea2646970667358221220d23f8bb31aeee4efbf61d76ee3bd6b264163384c1f8cf2ddcad12a1749a8a4f464736f6c634300080a0033000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80637921feae116100f9578063b2dc5dc311610097578063c87b56dd11610071578063c87b56dd146103c3578063e449f341146103d6578063e985e9c5146103e9578063f2fde38b1461042557600080fd5b8063b2dc5dc31461038a578063b88d4fde1461039d578063c2ca0ac5146103b057600080fd5b80638da5cb5b116100d35780638da5cb5b1461034b57806394985ddd1461035c57806395d89b411461036f578063a22cb4651461037757600080fd5b80637921feae146102fc578063817ee6bd1461030f57806381b629711461033857600080fd5b806323b872dd116101665780634ee51a27116101405780634ee51a27146102ad5780636352211e146102c057806370a08231146102d3578063715018a6146102f457600080fd5b806323b872dd1461027f57806326092b831461029257806342842e0e1461029a57600080fd5b8063081812fc116101a2578063081812fc1461021b578063095ea7b3146102465780630e2d56cf146102595780630fbf0a931461026c57600080fd5b806301ffc9a7146101c957806303d70483146101f157806306fdde0314610206575b600080fd5b6101dc6101d7366004612459565b610438565b60405190151581526020015b60405180910390f35b6102046101ff366004612499565b6104d5565b005b61020e610556565b6040516101e8919061250c565b61022e61022936600461251f565b6105e8565b6040516001600160a01b0390911681526020016101e8565b610204610254366004612538565b61067d565b610204610267366004612570565b6107af565b61020461027a3660046125d9565b61081c565b61020461028d36600461261b565b61090f565b610204610996565b6102046102a836600461261b565b610acf565b6102046102bb3660046125d9565b610aea565b61022e6102ce36600461251f565b610c0c565b6102e66102e1366004612499565b610c97565b6040519081526020016101e8565b610204610d31565b6102e661030a36600461251f565b610d97565b61022e61031d36600461251f565b600f602052600090815260409020546001600160a01b031681565b6102046103463660046126f6565b610ee1565b6006546001600160a01b031661022e565b61020461036a3660046127ce565b610f52565b61020e610fd4565b6102046103853660046127f0565b610fe3565b610204610398366004612827565b610fee565b6102046103ab36600461287a565b61107d565b6102046103be36600461251f565b611105565b61020e6103d136600461251f565b611399565b6102046103e43660046125d9565b6114ea565b6101dc6103f73660046128f6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610204610433366004612499565b6115da565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061049b57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806104cf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b031633146105345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60606000805461056590612929565b80601f016020809104026020016040519081016040528092919081815260200182805461059190612929565b80156105de5780601f106105b3576101008083540402835291602001916105de565b820191906000526020600020905b8154815290600101906020018083116105c157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161052b565b506000908152600460205260409020546001600160a01b031690565b600061068882610c0c565b9050806001600160a01b0316836001600160a01b031614156107125760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161052b565b336001600160a01b038216148061072e575061072e81336103f7565b6107a05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161052b565b6107aa83836116b9565b505050565b6006546001600160a01b031633146108095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b600a805460ff1916911515919091179055565b8060005b8181101561090957600084848381811061083c5761083c612964565b905060200201359050336001600160a01b031661085882610c0c565b6001600160a01b0316146108ae5760405162461bcd60e51b815260206004820152601b60248201527f5573657220646f65736e2774206f776e207468697320746f6b656e0000000000604482015260640161052b565b6108b781611727565b6000818152600f602052604080822080546001600160a01b03191633908117909155905183927f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d91a350600101610820565b50505050565b61091933826117c2565b61098b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161052b565b6107aa8383836118b9565b600a5460ff166109e85760405162461bcd60e51b815260206004820152601260248201527f4d696e74696e672069736e2774206c6976650000000000000000000000000000604482015260640161052b565b336000908152600e602052604090205460ff1615610a485760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206d696e746564000000000000000000000000000000000000604482015260640161052b565b600b546103208110610a9c5760405162461bcd60e51b815260206004820152600a60248201527f416c6c204d696e74656400000000000000000000000000000000000000000000604482015260640161052b565b6001908101600b819055336000818152600e60205260409020805460ff191690931790925590610acc9082611a86565b50565b6107aa8383836040518060200160405280600081525061107d565b6006546001600160a01b03163314610b445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b600c5481906058610b558383612990565b1115610ba35760405162461bcd60e51b815260206004820152601060248201527f4d696e74696e6720746f6f206d616e7900000000000000000000000000000000604482015260640161052b565b60015b828111610bee57610be6858560018403818110610bc557610bc5612964565b9050602002016020810190610bda9190612499565b82846103200101611aa0565b600101610ba6565b5081600c6000828254610c019190612990565b909155505050505050565b6000818152600260205260408120546001600160a01b0316806104cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161052b565b60006001600160a01b038216610d155760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161052b565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610d8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b610d956000611be2565b565b6000806008805480602002602001604051908101604052809291908181526020016000905b82821015610e0257838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190610dbc565b50508251929350600091508190505b82811015610e6a57838181518110610e2b57610e2b612964565b6020026020010151600001518611610e6257838181518110610e4f57610e4f612964565b6020026020010151602001519150610e6a565b600101610e11565b5080610e7b57506000949350505050565b60006103e88683604051602001610e9c929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c610ebf91906129be565b905060328111610ed55750600295945050505050565b50600195945050505050565b6006546001600160a01b03163314610f3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b8051610f4e9060099060208401906122fa565b5050565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614610fca5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161052b565b610f4e8282611c34565b60606001805461056590612929565b610f4e338383611c70565b600d546001600160a01b031633146110485760405162461bcd60e51b815260206004820152601060248201527f43616c6c6572206e6f742059426f747300000000000000000000000000000000604482015260640161052b565b60005b81811015610909576110758484848481811061106957611069612964565b90506020020135611d3f565b60010161104b565b61108733836117c2565b6110f95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161052b565b61090984848484611e07565b6006546001600160a01b0316331461115f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b60006008805480602002602001604051908101604052809291908181526020016000905b828210156111c957838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190611183565b5050505090506000815111156112f25780600182516111e891906129d2565b815181106111f8576111f8612964565b60200260200101516000015182116112785760405162461bcd60e51b815260206004820152602360248201527f52616e6765206e6565647320746f2062652067726561746f72207468616e206c60448201527f6173740000000000000000000000000000000000000000000000000000000000606482015260840161052b565b6000816001835161128991906129d2565b8151811061129957611299612964565b602002602001015160200151116112f25760405162461bcd60e51b815260206004820152601a60248201527f72616e646f6d6e657373206e6565647320746f20626520736574000000000000604482015260640161052b565b6040805180820190915282815260006020820181815260088054600181018255925291517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360029092029182015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4909101556107aa7faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445671bc16d674ec80000611e85565b6000818152600260205260409020546060906001600160a01b03166114005760405162461bcd60e51b815260206004820152601360248201527f546f6b656e20646f65736e277420657869737400000000000000000000000000604482015260640161052b565b600061140b83610d97565b905060006009828154811061142257611422612964565b90600052602060002001805461143790612929565b80601f016020809104026020016040519081016040528092919081815260200182805461146390612929565b80156114b05780601f10611485576101008083540402835291602001916114b0565b820191906000526020600020905b81548152906001019060200180831161149357829003601f168201915b50505050509050806114c185612001565b6040516020016114d29291906129e9565b60405160208183030381529060405292505050919050565b8060005b8181101561090957600084848381811061150a5761150a612964565b602090810292909201356000818152600f909352604090922054919250506001600160a01b0316331461157f5760405162461bcd60e51b815260206004820152601b60248201527f5573657220646f65736e2774206f776e207468697320746f6b656e0000000000604482015260640161052b565b6115893382611a86565b604051819033907f79d3df6837cc49ff0e09fd3258e6e45594e0703445bb06825e9d75156eaee8f090600090a36000908152600f6020526040902080546001600160a01b03191690556001016114ee565b6006546001600160a01b031633146116345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161052b565b6001600160a01b0381166116b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161052b565b610acc81611be2565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116ee82610c0c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061173282610c0c565b905061173f6000836116b9565b6001600160a01b03811660009081526003602052604081208054600192906117689084906129d2565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000818152600260205260408120546001600160a01b031661183b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161052b565b600061184683610c0c565b9050806001600160a01b0316846001600160a01b031614806118815750836001600160a01b0316611876846105e8565b6001600160a01b0316145b806118b157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166118cc82610c0c565b6001600160a01b0316146119485760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161052b565b6001600160a01b0382166119c35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161052b565b6119ce6000826116b9565b6001600160a01b03831660009081526003602052604081208054600192906119f79084906129d2565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a25908490612990565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610f4e828260405180602001604052806000815250612133565b6001600160a01b038216611af65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161052b565b6000818152600260205260409020546001600160a01b031615611b5b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161052b565b6001600160a01b0382166000908152600360205260408120805460019290611b84908490612990565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60088054829190611c47906001906129d2565b81548110611c5757611c57612964565b9060005260206000209060020201600101819055505050565b816001600160a01b0316836001600160a01b03161415611cd25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161052b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b816001600160a01b0316611d5282610c0c565b6001600160a01b031614611da85760405162461bcd60e51b815260206004820152600960248201527f4e6f74206f776e65720000000000000000000000000000000000000000000000604482015260640161052b565b611db233826117c2565b611dfe5760405162461bcd60e51b815260206004820152600c60248201527f4e6f7420617070726f7665640000000000000000000000000000000000000000604482015260640161052b565b610f4e81611727565b611e128484846118b9565b611e1e848484846121b1565b6109095760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161052b565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001611ef5929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611f2293929190612a18565b6020604051808303816000875af1158015611f41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f659190612a49565b50600083815260076020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052611fc1906001612990565b6000858152600760205260409020556118b18482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60608161204157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561206b578061205581612a66565b91506120649050600a83612a81565b9150612045565b60008167ffffffffffffffff81111561208657612086612657565b6040519080825280601f01601f1916602001820160405280156120b0576020820181803683370190505b5090505b84156118b1576120c56001836129d2565b91506120d2600a866129be565b6120dd906030612990565b60f81b8183815181106120f2576120f2612964565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061212c600a86612a81565b94506120b4565b61213d8383611aa0565b61214a60008484846121b1565b6107aa5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161052b565b60006001600160a01b0384163b156122ef57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121f5903390899088908890600401612a95565b6020604051808303816000875af1925050508015612230575060408051601f3d908101601f1916820190925261222d91810190612ad1565b60015b6122d5573d80801561225e576040519150601f19603f3d011682016040523d82523d6000602084013e612263565b606091505b5080516122cd5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161052b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118b1565b506001949350505050565b828054828255906000526020600020908101928215612347579160200282015b828111156123475782518051612337918491602090910190612357565b509160200191906001019061231a565b506123539291506123d7565b5090565b82805461236390612929565b90600052602060002090601f01602090048101928261238557600085556123cb565b82601f1061239e57805160ff19168380011785556123cb565b828001600101855582156123cb579182015b828111156123cb5782518255916020019190600101906123b0565b506123539291506123f4565b808211156123535760006123eb8282612409565b506001016123d7565b5b8082111561235357600081556001016123f5565b50805461241590612929565b6000825580601f10612425575050565b601f016020900490600052602060002090810190610acc91906123f4565b6001600160e01b031981168114610acc57600080fd5b60006020828403121561246b57600080fd5b813561247681612443565b9392505050565b80356001600160a01b038116811461249457600080fd5b919050565b6000602082840312156124ab57600080fd5b6124768261247d565b60005b838110156124cf5781810151838201526020016124b7565b838111156109095750506000910152565b600081518084526124f88160208601602086016124b4565b601f01601f19169290920160200192915050565b60208152600061247660208301846124e0565b60006020828403121561253157600080fd5b5035919050565b6000806040838503121561254b57600080fd5b6125548361247d565b946020939093013593505050565b8015158114610acc57600080fd5b60006020828403121561258257600080fd5b813561247681612562565b60008083601f84011261259f57600080fd5b50813567ffffffffffffffff8111156125b757600080fd5b6020830191508360208260051b85010111156125d257600080fd5b9250929050565b600080602083850312156125ec57600080fd5b823567ffffffffffffffff81111561260357600080fd5b61260f8582860161258d565b90969095509350505050565b60008060006060848603121561263057600080fd5b6126398461247d565b92506126476020850161247d565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561269657612696612657565b604052919050565b600067ffffffffffffffff8311156126b8576126b8612657565b6126cb601f8401601f191660200161266d565b90508281528383830111156126df57600080fd5b828260208301376000602084830101529392505050565b6000602080838503121561270957600080fd5b823567ffffffffffffffff8082111561272157600080fd5b818501915085601f83011261273557600080fd5b81358181111561274757612747612657565b8060051b61275685820161266d565b918252838101850191858101908984111561277057600080fd5b86860192505b838310156127c15782358581111561278e5760008081fd5b8601603f81018b136127a05760008081fd5b6127b18b898301356040840161269e565b8352509186019190860190612776565b9998505050505050505050565b600080604083850312156127e157600080fd5b50508035926020909101359150565b6000806040838503121561280357600080fd5b61280c8361247d565b9150602083013561281c81612562565b809150509250929050565b60008060006040848603121561283c57600080fd5b6128458461247d565b9250602084013567ffffffffffffffff81111561286157600080fd5b61286d8682870161258d565b9497909650939450505050565b6000806000806080858703121561289057600080fd5b6128998561247d565b93506128a76020860161247d565b925060408501359150606085013567ffffffffffffffff8111156128ca57600080fd5b8501601f810187136128db57600080fd5b6128ea8782356020840161269e565b91505092959194509250565b6000806040838503121561290957600080fd5b6129128361247d565b91506129206020840161247d565b90509250929050565b600181811c9082168061293d57607f821691505b6020821081141561295e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156129a3576129a361297a565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826129cd576129cd6129a8565b500690565b6000828210156129e4576129e461297a565b500390565b600083516129fb8184602088016124b4565b835190830190612a0f8183602088016124b4565b01949350505050565b6001600160a01b0384168152826020820152606060408201526000612a4060608301846124e0565b95945050505050565b600060208284031215612a5b57600080fd5b815161247681612562565b6000600019821415612a7a57612a7a61297a565b5060010190565b600082612a9057612a906129a8565b500490565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ac760808301846124e0565b9695505050505050565b600060208284031215612ae357600080fd5b81516124768161244356fea2646970667358221220d23f8bb31aeee4efbf61d76ee3bd6b264163384c1f8cf2ddcad12a1749a8a4f464736f6c634300080a0033

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

000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca

-----Decoded View---------------
Arg [0] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [1] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca


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.