ETH Price: $3,582.91 (-2.76%)

Token

Tri3es (Tri3es)
 

Overview

Max Total Supply

3,384 Tri3es

Holders

1,281

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
g3rmv.eth
Balance
1 Tri3es
0x9D3bea10A103635776ce77377C3079613B3238DB
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Tri3es is a metaverse-focused, story-driven NFTcollection of 10,000 masks. The universe is lore-rich with 8 sub-tri3es and mysterious deities. Holding a tri3es is a gateway to experience stories in the tri3es universe.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Tri3es

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 17 : Tri3es.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

interface IERC20 {
    function transfer(address recipient, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
}

contract Tri3es is Ownable, ReentrancyGuard, ERC721A, VRFConsumerBase {
    using Strings for uint256;
    using ECDSA for bytes32;

    // Public variables
    uint256 public constant GENESIS_RESERVED_SUPPLY = 626;
    uint256 public constant MAX_NFT_SUPPLY = 10000;
    uint256 public constant MAX_NFT_SUPPLY_FOR_MINTS = 9374;
    uint256 public mintPrice = 0.085 ether;
    uint256[] public ts = new uint256[](4);
    string public _baseTokenURI;
    uint256 public shiftIndex;
    uint256 public genesisSupply;
    string public provenance;
    address private signerAddress;
    mapping (address => uint256) public balancePresale;
    mapping (address => uint256) public isGenesisClaimed;
    mapping (address => uint256) public isFreeClaimed;
    
    // Team
    address[] public payees;
    mapping(address => uint256) private shares;
    uint256 private totalShares;

    // VRF https://docs.chain.link/docs/vrf-contracts/v1/
    address immutable private linkToken;
    address immutable private linkCoordinator;

    /**
     * @dev Initialize
     */
    constructor(string memory baseURI, 
                address[] memory _team,
                uint256[] memory _shares,
                address _signerAddress,
                uint256[] memory _ts,
                address _linkToken, 
                address _linkCoordinator) 
        ERC721A("Tri3es", "Tri3es") 
        VRFConsumerBase(_linkCoordinator, _linkToken)
    {
        // OZ splitter copy paste
        require(_team.length == _shares.length, "Payees and shares length mismatch");
        require(_team.length > 0, "No payees");
        for (uint256 i = 0; i < _team.length; i++) {
            _addPayee(_team[i], _shares[i]);
        }

        // set url
        setBaseURI(baseURI);

        // set signer address
        setSignerAddress(_signerAddress);

        // set ts
        setTs(_ts);

        // VRF
        linkToken = _linkToken;
        linkCoordinator = _linkCoordinator;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    /**
     * @dev Changes signer address. In case of emergency
     */
    function setSignerAddress(address addr) public onlyOwner {
        signerAddress = addr;
    }

    /**
     * @dev Gets base url
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    /**
     * @dev Sets base url. In case of emergency
     */
    function setBaseURI(string memory baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }

    /**
     * @dev Sets price. In case of emergency
     */
    function setPrice(uint256 _price) public onlyOwner {
        mintPrice = _price;
    }

    /**
    * @dev Sets timestamp of mints.  0 - genesis; 1 - presale,  2 - sale, 3 - promo free. In case of emergency / pause
    */
    function setTs(uint256[] memory _ts) public onlyOwner {
        ts = _ts;
    }

    /**
     * @dev Ipfs CID of metadatas is set before reveal
    */
    function setProvenanceHash(string calldata provenanceHash) external onlyOwner {
        provenance = provenanceHash;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        if (shiftIndex != 0){
            uint256 shiftedId = (tokenId + shiftIndex) % (MAX_NFT_SUPPLY);
            return string(abi.encodePacked(_baseURI(), "nft/", shiftedId.toString()));
        } else {
            return string(abi.encodePacked(_baseURI(), "not_revealed/", tokenId.toString()));
        }
    }

    /**
    * @dev Mints for airdrops and promos. Only one time called after SC deployed
    */
    function mintAirdrop(uint256 quantity, address reciever) external onlyOwner {
        require(totalSupply() == 0, "Could only be called once");
        _safeMint(reciever, quantity);
    }

    /**
    * @dev Mints for public launch
    */
    function mint(uint256 quantity) external nonReentrant payable callerIsUser {
        require(totalSupply() - genesisSupply + quantity <= MAX_NFT_SUPPLY_FOR_MINTS, "Not enough NFTs left");
        require(block.timestamp >= ts[2] && ts[2] != 0, "Public sales are paused / not started");
        require(quantity<= 3, "Amount of minted NFTs at once should be less or equal to 3");
        require(msg.value == mintPrice * quantity, "Wrong ETH amount");

        // mint
        _safeMint(_msgSender(), quantity);
    }

    /**
    * @dev Mints for WL
    */
    function mintPresale(uint256 quantity, bytes calldata _signature) external nonReentrant payable callerIsUser {
        require(totalSupply() - genesisSupply +  quantity <= MAX_NFT_SUPPLY_FOR_MINTS, "Not enough NFTs left");
        require(block.timestamp >= ts[1] && ts[1] != 0, "Presale is paused / not started");
        require(msg.value == mintPrice * quantity, "Wrong ETH amount");
        require(signerAddress == keccak256(abi.encode("Tri3es_mintPresale_", _msgSender())).toEthSignedMessageHash().recover(_signature), "You are not whitelisted");

        // check max mints per wallet
        require(balancePresale[_msgSender()] + quantity <= 2, "You can presale mint only 2 NFTs in total");

        // add to wl balance
        balancePresale[_msgSender()] = balancePresale[_msgSender()] + quantity;

        // mint
        _safeMint(_msgSender(), quantity);
    }

    /**
    * @dev Mints for free promo. No reserved mints
    */
    function mintForFree(uint256 quantity, bytes calldata _signature) external nonReentrant callerIsUser {
        require(totalSupply() - genesisSupply + quantity <= MAX_NFT_SUPPLY_FOR_MINTS, "Not enough NFTs left");
        require(block.timestamp >= ts[3] && ts[3] != 0, "Free mint is paused / not started");
        require(signerAddress == keccak256(abi.encode("Tri3es_mintForFree_", _msgSender(), quantity)).toEthSignedMessageHash().recover(_signature), "Signature is wrong");
        require(isFreeClaimed[_msgSender()] == 0, "You already claimed free NFTs");

        // want to save q amount
        isFreeClaimed[_msgSender()] = quantity;

        // mint
        _safeMint(_msgSender(), quantity);
    }

    /**
    * @dev Mints for free genesis. Genesis holders has reserved N of mints, even if soldout
    */
    function mintGenesis(uint256 quantity, bytes calldata _signature) external nonReentrant callerIsUser {
        // shouldn't be the case, as we take snaphot 1 time and verify the exact number of holders.
        require(genesisSupply + quantity <= GENESIS_RESERVED_SUPPLY, "Not enough NFTs left");
        require(block.timestamp >= ts[0] && ts[0] != 0, "Genesis mint is paused / not started");
        require(signerAddress == keccak256(abi.encode("Tri3es_mintGenesis_", _msgSender(), quantity)).toEthSignedMessageHash().recover(_signature), "Signature is wrong");
        require(isGenesisClaimed[_msgSender()] == 0, "You already claimed free NFTs");

        // update total genesis supply
        unchecked {
            genesisSupply = genesisSupply + quantity;
        }
        // want to save q amount
        isGenesisClaimed[_msgSender()] = quantity;

        // mint
        _safeMint(_msgSender(), quantity);
    }

    /**
    * @dev Withdraw ether. Release func from OZ Payment Splitter
    */
    function withdraw() public {
        require(shares[_msgSender()] > 0, "Only team members are allowed");
        // get balance 
        uint256 balance = address(this).balance;
        require(balance > 0, "Nothing to withdraw");
        for (uint256 i = 0; i < payees.length; i++) {
            Address.sendValue(payable(payees[i]), (balance / totalShares) * shares[payees[i]]);
        }
    }

    /**
     * @dev Withdraw ERC20
    */
    function withdrawERC20(address tokenAddress) public {
        require(shares[_msgSender()] > 0, "Only team members are allowed");
        // get balance 
        uint256 balance = IERC20(tokenAddress).balanceOf(address(this));
        require(balance > 0, "Nothing to withdraw");
        for (uint256 i = 0; i < payees.length; i++) {
            IERC20(tokenAddress).transfer(payees[i], (balance / totalShares) * shares[payees[i]]);
        }
    }

    /**
    * @dev Add Payee. _addPayee func from OZ Payment Splitter
    */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "Account is the zero address");
        require(shares_ > 0, "Shares are 0");
        require(shares[account] == 0, "Account already has shares");

        payees.push(account);
        shares[account] = shares_;
        unchecked{
            totalShares = totalShares + shares_;
        }
    }

    /**
    Only in emergency, if something goes wrong with VRF
     */
    function revealManually() external onlyOwner {
        require(shiftIndex == 0, "Shift index is already set");
        shiftIndex = uint256(keccak256(abi.encode(blockhash(block.number),
                                                  block.coinbase,
                                                  block.difficulty,
                                                  _msgSender()
                                    ))) % MAX_NFT_SUPPLY;

        //  prevent default shift index
        if (shiftIndex == 0) {
            unchecked{
                shiftIndex = shiftIndex +  666;
            }
        }
    }

    /**
    * @dev VRF request for randomness for shift index
    */
    function requestReveal(bytes32 s_keyHash, uint s_fee) public onlyOwner returns (bytes32 requestId) {
        require(shiftIndex == 0, "Shift index is already set");
        require(IERC20(linkToken).balanceOf(address(this)) >= s_fee, "Not enough LINK to pay fee");

        // requesting randomness
        requestId = requestRandomness(s_keyHash, s_fee);
    }

    /**
    * @dev VRF reply sets shift index (abstract VRF func)
    */
    function fulfillRandomness(bytes32, uint256 randomness) internal override {
        require(shiftIndex == 0, "Shift index is already set");
        shiftIndex = randomness % MAX_NFT_SUPPLY;

        //  prevent default shift index
        if (shiftIndex == 0) {
            unchecked{
                shiftIndex = shiftIndex +  333;
            }
        }
    }

    fallback() external payable {
    }
    
    receive() external payable {
    }
}

File 2 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 8 of 17 : 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 9 of 17 : 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 10 of 17 : 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 11 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 16 of 17 : 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 17 of 17 : 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": 100
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address[]","name":"_team","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"address","name":"_signerAddress","type":"address"},{"internalType":"uint256[]","name":"_ts","type":"uint256[]"},{"internalType":"address","name":"_linkToken","type":"address"},{"internalType":"address","name":"_linkCoordinator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"GENESIS_RESERVED_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_SUPPLY_FOR_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balancePresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFreeClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isGenesisClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"reciever","type":"address"}],"name":"mintAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintForFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payees","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"bytes32","name":"s_keyHash","type":"bytes32"},{"internalType":"uint256","name":"s_fee","type":"uint256"}],"name":"requestReveal","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealManually","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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ts","type":"uint256[]"}],"name":"setTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shiftIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

67012dfb0cb5e88000600b5560046101008181526101a060405290610120608080368337505081516200003a92600c92506020019062000550565b503480156200004857600080fd5b50604051620041f0380380620041f08339810160408190526200006b91620007cf565b80826040518060400160405280600681526020016554726933657360d01b8152506040518060400160405280600681526020016554726933657360d01b815250620000c5620000bf6200026860201b60201c565b6200026c565b600180558151620000de906004906020850190620005a0565b508051620000f4906005906020840190620005a0565b50600060025550506001600160601b0319606092831b811660a052911b166080528451865114620001765760405162461bcd60e51b815260206004820152602160248201527f50617965657320616e6420736861726573206c656e677468206d69736d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b6000865111620001b55760405162461bcd60e51b81526020600482015260096024820152684e6f2070617965657360b81b60448201526064016200016d565b60005b865181101562000221576200020c878281518110620001db57620001db62000980565b6020026020010151878381518110620001f857620001f862000980565b6020026020010151620002bc60201b60201c565b80620002188162000956565b915050620001b8565b506200022d8762000424565b620002388462000488565b6200024383620004f5565b6001600160601b0319606092831b811660c052911b1660e05250620009ac9350505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620003145760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320746865207a65726f2061646472657373000000000060448201526064016200016d565b60008111620003555760405162461bcd60e51b815260206004820152600c60248201526b05368617265732061726520360a41b60448201526064016200016d565b6001600160a01b03821660009081526016602052604090205415620003bd5760405162461bcd60e51b815260206004820152601a60248201527f4163636f756e7420616c7265616479206861732073686172657300000000000060448201526064016200016d565b60158054600181019091557f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750180546001600160a01b039093166001600160a01b031990931683179055600091825260166020526040909120819055601780549091019055565b6000546001600160a01b031633146200046f5760405162461bcd60e51b81526020600482018190526024820152600080516020620041d083398151915260448201526064016200016d565b80516200048490600d906020840190620005a0565b5050565b6000546001600160a01b03163314620004d35760405162461bcd60e51b81526020600482018190526024820152600080516020620041d083398151915260448201526064016200016d565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314620005405760405162461bcd60e51b81526020600482018190526024820152600080516020620041d083398151915260448201526064016200016d565b80516200048490600c9060208401905b8280548282559060005260206000209081019282156200058e579160200282015b828111156200058e57825182559160200191906001019062000571565b506200059c9291506200061c565b5090565b828054620005ae9062000919565b90600052602060002090601f016020900481019282620005d257600085556200058e565b82601f10620005ed57805160ff19168380011785556200058e565b828001600101855582156200058e57918201828111156200058e57825182559160200191906001019062000571565b5b808211156200059c57600081556001016200061d565b80516001600160a01b03811681146200064b57600080fd5b919050565b600082601f8301126200066257600080fd5b815160206200067b6200067583620008f3565b620008c0565b80838252828201915082860187848660051b89010111156200069c57600080fd5b60005b85811015620006c657620006b38262000633565b845292840192908401906001016200069f565b5090979650505050505050565b600082601f830112620006e557600080fd5b81516020620006f86200067583620008f3565b80838252828201915082860187848660051b89010111156200071957600080fd5b60005b85811015620006c6578151845292840192908401906001016200071c565b600082601f8301126200074c57600080fd5b81516001600160401b0381111562000768576200076862000996565b60206200077e601f8301601f19168201620008c0565b82815285828487010111156200079357600080fd5b60005b83811015620007b357858101830151828201840152820162000796565b83811115620007c55760008385840101525b5095945050505050565b600080600080600080600060e0888a031215620007eb57600080fd5b87516001600160401b03808211156200080357600080fd5b620008118b838c016200073a565b985060208a01519150808211156200082857600080fd5b620008368b838c0162000650565b975060408a01519150808211156200084d57600080fd5b6200085b8b838c01620006d3565b96506200086b60608b0162000633565b955060808a01519150808211156200088257600080fd5b50620008918a828b01620006d3565b935050620008a260a0890162000633565b9150620008b260c0890162000633565b905092959891949750929550565b604051601f8201601f191681016001600160401b0381118282101715620008eb57620008eb62000996565b604052919050565b60006001600160401b038211156200090f576200090f62000996565b5060051b60200190565b600181811c908216806200092e57607f821691505b602082108114156200095057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200097957634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160601c60e05160601c6137da620009f66000396000505060006110490152600081816112ec01526122e3015260006122b401526137da6000f3fe60806040526004361061025e5760003560e01c80636817c76c11610143578063a0712d68116100bb578063c87b56dd11610077578063c87b56dd14610701578063cfc86f7b14610721578063e985e9c514610736578063f2fde38b1461077f578063f3272d491461079f578063f4f3b200146107bf57005b8063a0712d681461064b578063a10657691461065e578063a22cb4651461067e578063ab36e64d1461069e578063b5077f44146106cb578063b88d4fde146106e157005b806391b7f5ed1161010a57806391b7f5ed146105aa57806394985ddd146105ca57806395d89b41146105ea57806399e101e0146105ff5780639a0a0982146106155780639e287f3b1461063557005b80636817c76c1461053557806370a082311461054b578063715018a61461056b5780638da5cb5b146105805780638fdb6d7c1461059557005b806323b872dd116101d65780635aa165f01161019d5780635aa165f0146104725780635e0505101461049257806361d512fd146104a8578063625b5c33146104c857806363037b0c146104f55780636352211e1461051557005b806323b872dd146103e75780633ccfd60b1461040757806342842e0e1461041c5780634bbf179b1461043c57806355f804b31461045257005b80630d06ed72116102255780630d06ed721461032b5780630f7309e81461033e5780631096952314610353578063167cbaa21461037357806318160ddd146103a1578063228f222d146103ba57005b806301ffc9a714610267578063046dc1661461029c57806306fdde03146102bc578063081812fc146102de578063095ea7b31461030b57005b3661026557005b005b34801561027357600080fd5b50610287610282366004613127565b6107df565b60405190151581526020015b60405180910390f35b3480156102a857600080fd5b506102656102b7366004612ed6565b610831565b3480156102c857600080fd5b506102d161088b565b60405161029391906133be565b3480156102ea57600080fd5b506102fe6102f93660046131ea565b61091d565b604051610293919061333d565b34801561031757600080fd5b50610265610326366004613012565b610961565b61026561033936600461323f565b6109ef565b34801561034a57600080fd5b506102d1610d52565b34801561035f57600080fd5b5061026561036e366004613161565b610de0565b34801561037f57600080fd5b5061039361038e3660046131ea565b610e1b565b604051908152602001610293565b3480156103ad57600080fd5b5060035460025403610393565b3480156103c657600080fd5b506103936103d5366004612ed6565b60126020526000908152604090205481565b3480156103f357600080fd5b50610265610402366004612f24565b610e3c565b34801561041357600080fd5b50610265610e47565b34801561042857600080fd5b50610265610437366004612f24565b610f40565b34801561044857600080fd5b50610393600f5481565b34801561045e57600080fd5b5061026561046d3660046131a2565b610f5b565b34801561047e57600080fd5b5061026561048d36600461303c565b610f9d565b34801561049e57600080fd5b50610393600e5481565b3480156104b457600080fd5b506103936104c3366004613105565b610fdf565b3480156104d457600080fd5b506103936104e3366004612ed6565b60136020526000908152604090205481565b34801561050157600080fd5b506102fe6105103660046131ea565b61112d565b34801561052157600080fd5b506102fe6105303660046131ea565b611157565b34801561054157600080fd5b50610393600b5481565b34801561055757600080fd5b50610393610566366004612ed6565b611169565b34801561057757600080fd5b506102656111b7565b34801561058c57600080fd5b506102fe6111f2565b3480156105a157600080fd5b50610265611201565b3480156105b657600080fd5b506102656105c53660046131ea565b6112ad565b3480156105d657600080fd5b506102656105e5366004613105565b6112e1565b3480156105f657600080fd5b506102d1611363565b34801561060b57600080fd5b5061039361249e81565b34801561062157600080fd5b5061026561063036600461323f565b611372565b34801561064157600080fd5b5061039361027281565b6102656106593660046131ea565b61159e565b34801561066a57600080fd5b5061026561067936600461323f565b611786565b34801561068a57600080fd5b50610265610699366004612fdb565b6119a5565b3480156106aa57600080fd5b506103936106b9366004612ed6565b60146020526000908152604090205481565b3480156106d757600080fd5b5061039361271081565b3480156106ed57600080fd5b506102656106fc366004612f60565b611a3b565b34801561070d57600080fd5b506102d161071c3660046131ea565b611a8c565b34801561072d57600080fd5b506102d1611b98565b34801561074257600080fd5b50610287610751366004612ef1565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561078b57600080fd5b5061026561079a366004612ed6565b611ba5565b3480156107ab57600080fd5b506102656107ba36600461321c565b611c45565b3480156107cb57600080fd5b506102656107da366004612ed6565b611ccd565b60006001600160e01b031982166380ac58cd60e01b148061081057506001600160e01b03198216635b5e139f60e01b145b8061082b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b3361083a6111f2565b6001600160a01b0316146108695760405162461bcd60e51b8152600401610860906134da565b60405180910390fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60606004805461089a90613688565b80601f01602080910402602001604051908101604052809291908181526020018280546108c690613688565b80156109135780601f106108e857610100808354040283529160200191610913565b820191906000526020600020905b8154815290600101906020018083116108f657829003601f168201915b5050505050905090565b600061092882611ecf565b610945576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061096c82611157565b9050806001600160a01b0316836001600160a01b031614156109a15760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906109c157506109bf8133610751565b155b156109df576040516367d9dca160e11b815260040160405180910390fd5b6109ea838383611efb565b505050565b60026001541415610a125760405162461bcd60e51b815260040161086090613567565b6002600155323314610a365760405162461bcd60e51b81526004016108609061346c565b61249e83600f54610a4a6003546002540390565b610a549190613645565b610a5e91906135fa565b1115610a7c5760405162461bcd60e51b81526004016108609061350f565b600c600181548110610a9057610a90613734565b90600052602060002001544210158015610ac95750600c600181548110610ab957610ab9613734565b9060005260206000200154600014155b610b155760405162461bcd60e51b815260206004820152601f60248201527f50726573616c6520697320706175736564202f206e6f742073746172746564006044820152606401610860565b82600b54610b239190613626565b3414610b415760405162461bcd60e51b81526004016108609061353d565b610c2f82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c299250610b889150611ecb9050565b604080516020810182905260136060820152725472693365735f6d696e7450726573616c655f60681b60808201526001600160a01b039092169082015260a0015b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90611f57565b6011546001600160a01b03908116911614610c865760405162461bcd60e51b8152602060048201526017602482015276165bdd48185c99481b9bdd081dda1a5d195b1a5cdd1959604a1b6044820152606401610860565b33600090815260126020526040902054600290610ca49085906135fa565b1115610d045760405162461bcd60e51b815260206004820152602960248201527f596f752063616e2070726573616c65206d696e74206f6e6c792032204e465473604482015268081a5b881d1bdd185b60ba1b6064820152608401610860565b33600090815260126020526040902054610d1f9084906135fa565b60126000335b6001600160a01b03168152602081019190915260400160002055610d493384611f7b565b50506001805550565b60108054610d5f90613688565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8b90613688565b8015610dd85780601f10610dad57610100808354040283529160200191610dd8565b820191906000526020600020905b815481529060010190602001808311610dbb57829003601f168201915b505050505081565b33610de96111f2565b6001600160a01b031614610e0f5760405162461bcd60e51b8152600401610860906134da565b6109ea60108383612ce0565b600c8181548110610e2b57600080fd5b600091825260209091200154905081565b6109ea838383611f95565b33600090815260166020526040902054610e735760405162461bcd60e51b8152600401610860906134a3565b4780610e915760405162461bcd60e51b8152600401610860906133d1565b60005b601554811015610f3c57610f2a60158281548110610eb457610eb4613734565b9060005260206000200160009054906101000a90046001600160a01b03166016600060158581548110610ee957610ee9613734565b60009182526020808320909101546001600160a01b03168352820192909252604001902054601754610f1b9086613612565b610f259190613626565b612197565b80610f34816136c3565b915050610e94565b5050565b6109ea83838360405180602001604052806000815250611a3b565b33610f646111f2565b6001600160a01b031614610f8a5760405162461bcd60e51b8152600401610860906134da565b8051610f3c90600d906020840190612d64565b33610fa66111f2565b6001600160a01b031614610fcc5760405162461bcd60e51b8152600401610860906134da565b8051610f3c90600c906020840190612dd8565b600033610fea6111f2565b6001600160a01b0316146110105760405162461bcd60e51b8152600401610860906134da565b600e54156110305760405162461bcd60e51b8152600401610860906133fe565b6040516370a0823160e01b815282906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319061107e90309060040161333d565b60206040518083038186803b15801561109657600080fd5b505afa1580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ce9190613203565b101561111c5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f756768204c494e4b20746f20706179206665650000000000006044820152606401610860565b61112683836122b0565b9392505050565b6015818154811061113d57600080fd5b6000918252602090912001546001600160a01b0316905081565b600061116282612443565b5192915050565b60006001600160a01b038216611192576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b336111c06111f2565b6001600160a01b0316146111e65760405162461bcd60e51b8152600401610860906134da565b6111f0600061255d565b565b6000546001600160a01b031690565b3361120a6111f2565b6001600160a01b0316146112305760405162461bcd60e51b8152600401610860906134da565b600e54156112505760405162461bcd60e51b8152600401610860906133fe565b6040805143406020808301919091524182840152446060830152336080808401919091528351808403909101815260a0909201909252805191012061129890612710906136de565b600e8190556111f057600e805461029a019055565b336112b66111f2565b6001600160a01b0316146112dc5760405162461bcd60e51b8152600401610860906134da565b600b55565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146113595760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610860565b610f3c82826125ad565b60606005805461089a90613688565b600260015414156113955760405162461bcd60e51b815260040161086090613567565b60026001553233146113b95760405162461bcd60e51b81526004016108609061346c565b61249e83600f546113cd6003546002540390565b6113d79190613645565b6113e191906135fa565b11156113ff5760405162461bcd60e51b81526004016108609061350f565b600c60038154811061141357611413613734565b9060005260206000200154421015801561144c5750600c60038154811061143c5761143c613734565b9060005260206000200154600014155b6114a25760405162461bcd60e51b815260206004820152602160248201527f46726565206d696e7420697320706175736564202f206e6f74207374617274656044820152601960fa1b6064820152608401610860565b61153982828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c2992506114e99150611ecb9050565b86604051602001610bc99291906060808252601390820152725472693365735f6d696e74466f72467265655f60681b60808201526001600160a01b03929092166020830152604082015260a00190565b6011546001600160a01b039081169116146115665760405162461bcd60e51b81526004016108609061359e565b33600090815260146020526040902054156115935760405162461bcd60e51b815260040161086090613435565b826014600033610d25565b600260015414156115c15760405162461bcd60e51b815260040161086090613567565b60026001553233146115e55760405162461bcd60e51b81526004016108609061346c565b61249e81600f546115f96003546002540390565b6116039190613645565b61160d91906135fa565b111561162b5760405162461bcd60e51b81526004016108609061350f565b600c60028154811061163f5761163f613734565b906000526020600020015442101580156116785750600c60028154811061166857611668613734565b9060005260206000200154600014155b6116d25760405162461bcd60e51b815260206004820152602560248201527f5075626c69632073616c65732061726520706175736564202f206e6f74207374604482015264185c9d195960da1b6064820152608401610860565b60038111156117495760405162461bcd60e51b815260206004820152603a60248201527f416d6f756e74206f66206d696e746564204e465473206174206f6e636520736860448201527f6f756c64206265206c657373206f7220657175616c20746f20330000000000006064820152608401610860565b80600b546117579190613626565b34146117755760405162461bcd60e51b81526004016108609061353d565b61177f3382611f7b565b5060018055565b600260015414156117a95760405162461bcd60e51b815260040161086090613567565b60026001553233146117cd5760405162461bcd60e51b81526004016108609061346c565b61027283600f546117de91906135fa565b11156117fc5760405162461bcd60e51b81526004016108609061350f565b600c60008154811061181057611810613734565b906000526020600020015442101580156118495750600c60008154811061183957611839613734565b9060005260206000200154600014155b6118a15760405162461bcd60e51b8152602060048201526024808201527f47656e65736973206d696e7420697320706175736564202f206e6f74207374616044820152631c9d195960e21b6064820152608401610860565b61193882828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c2992506118e89150611ecb9050565b86604051602001610bc99291906060808252601390820152725472693365735f6d696e7447656e657369735f60681b60808201526001600160a01b03929092166020830152604082015260a00190565b6011546001600160a01b039081169116146119655760405162461bcd60e51b81526004016108609061359e565b33600090815260136020526040902054156119925760405162461bcd60e51b815260040161086090613435565b600f805484019055826013600033610d25565b6001600160a01b0382163314156119cf5760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a46848484611f95565b6001600160a01b0383163b15158015611a685750611a66848484846125f0565b155b15611a86576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611a9782611ecf565b611afb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610860565b600e5415611b5b576000612710600e5484611b1691906135fa565b611b2091906136de565b9050611b2a6126e7565b611b33826126f6565b604051602001611b449291906132fe565b604051602081830303815290604052915050919050565b611b636126e7565b611b6c836126f6565b604051602001611b7d9291906132b6565b6040516020818303038152906040529050919050565b919050565b600d8054610d5f90613688565b33611bae6111f2565b6001600160a01b031614611bd45760405162461bcd60e51b8152600401610860906134da565b6001600160a01b038116611c395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610860565b611c428161255d565b50565b33611c4e6111f2565b6001600160a01b031614611c745760405162461bcd60e51b8152600401610860906134da565b60035460025414611cc35760405162461bcd60e51b8152602060048201526019602482015278436f756c64206f6e6c792062652063616c6c6564206f6e636560381b6044820152606401610860565b610f3c8183611f7b565b33600090815260166020526040902054611cf95760405162461bcd60e51b8152600401610860906134a3565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190611d2890309060040161333d565b60206040518083038186803b158015611d4057600080fd5b505afa158015611d54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d789190613203565b905060008111611d9a5760405162461bcd60e51b8152600401610860906133d1565b60005b6015548110156109ea57826001600160a01b031663a9059cbb60158381548110611dc957611dc9613734565b9060005260206000200160009054906101000a90046001600160a01b03166016600060158681548110611dfe57611dfe613734565b60009182526020808320909101546001600160a01b03168352820192909252604001902054601754611e309087613612565b611e3a9190613626565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611e8057600080fd5b505af1158015611e94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb891906130e8565b5080611ec3816136c3565b915050611d9d565b3390565b60006002548210801561082b575050600090815260066020526040902054600160e01b900460ff161590565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000806000611f6685856127f3565b91509150611f7381612863565b509392505050565b610f3c828260405180602001604052806000815250612a19565b6000611fa082612443565b80519091506000906001600160a01b0316336001600160a01b03161480611fce57508151611fce9033610751565b80611fe9575033611fde8461091d565b6001600160a01b0316145b90508061200957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461203e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661206557604051633a954ecd60e21b815260040160405180910390fd5b6120756000848460000151611efb565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661215f5760025481101561215f57825160008281526006602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b031660008051602061378583398151915260405160405180910390a45b5050505050565b804710156121e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610860565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612234576040519150601f19603f3d011682016040523d82523d6000602084013e612239565b606091505b50509050806109ea5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610860565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612320929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161234d9392919061338e565b602060405180830381600087803b15801561236757600080fd5b505af115801561237b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239f91906130e8565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526123fb9060016135fa565b6000858152600a602052604090205561243b8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b949350505050565b60408051606081018252600080825260208201819052918101919091528160025481101561254457600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906125425780516001600160a01b0316156124d9579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561253d579392505050565b6124d9565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600e54156125cd5760405162461bcd60e51b8152600401610860906133fe565b6125d9612710826136de565b600e819055610f3c57600e805461014d0190555050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612625903390899088908890600401613351565b602060405180830381600087803b15801561263f57600080fd5b505af192505050801561266f575060408051601f3d908101601f1916820190925261266c91810190613144565b60015b6126ca573d80801561269d576040519150601f19603f3d011682016040523d82523d6000602084013e6126a2565b606091505b5080516126c2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d805461089a90613688565b60608161271a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612744578061272e816136c3565b915061273d9050600a83613612565b915061271e565b6000816001600160401b0381111561275e5761275e61374a565b6040519080825280601f01601f191660200182016040528015612788576020820181803683370190505b5090505b841561243b5761279d600183613645565b91506127aa600a866136de565b6127b59060306135fa565b60f81b8183815181106127ca576127ca613734565b60200101906001600160f81b031916908160001a9053506127ec600a86613612565b945061278c565b60008082516041141561282a5760208301516040840151606085015160001a61281e87828585612a26565b9450945050505061285c565b8251604014156128545760208301516040840151612849868383612b09565b93509350505061285c565b506000905060025b9250929050565b60008160048111156128775761287761371e565b14156128805750565b60018160048111156128945761289461371e565b14156128dd5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610860565b60028160048111156128f1576128f161371e565b141561293f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610860565b60038160048111156129535761295361371e565b14156129ac5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610860565b60048160048111156129c0576129c061371e565b1415611c425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610860565b6109ea8383836001612b42565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115612a535750600090506003612b00565b8460ff16601b14158015612a6b57508460ff16601c14155b15612a7c5750600090506004612b00565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ad0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612af957600060019250925050612b00565b9150600090505b94509492505050565b6000806001600160ff1b03831681612b2660ff86901c601b6135fa565b9050612b3487828885612a26565b935093505050935093915050565b6002546001600160a01b038516612b6b57604051622e076360e81b815260040160405180910390fd5b83612b895760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260076020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600690925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612c2c57506001600160a01b0387163b15155b15612ca3575b60405182906001600160a01b03891690600090600080516020613785833981519152908290a4612c6b60008884806001019550886125f0565b612c88576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612c32578260025414612c9e57600080fd5b612cd7565b5b6040516001830192906001600160a01b03891690600090600080516020613785833981519152908290a480821415612ca4575b50600255612190565b828054612cec90613688565b90600052602060002090601f016020900481019282612d0e5760008555612d54565b82601f10612d275782800160ff19823516178555612d54565b82800160010185558215612d54579182015b82811115612d54578235825591602001919060010190612d39565b50612d60929150612e12565b5090565b828054612d7090613688565b90600052602060002090601f016020900481019282612d925760008555612d54565b82601f10612dab57805160ff1916838001178555612d54565b82800160010185558215612d54579182015b82811115612d54578251825591602001919060010190612dbd565b828054828255906000526020600020908101928215612d545791602002820182811115612d54578251825591602001919060010190612dbd565b5b80821115612d605760008155600101612e13565b60006001600160401b03831115612e4057612e4061374a565b612e53601f8401601f19166020016135ca565b9050828152838383011115612e6757600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611b9357600080fd5b60008083601f840112612ea757600080fd5b5081356001600160401b03811115612ebe57600080fd5b60208301915083602082850101111561285c57600080fd5b600060208284031215612ee857600080fd5b61112682612e7e565b60008060408385031215612f0457600080fd5b612f0d83612e7e565b9150612f1b60208401612e7e565b90509250929050565b600080600060608486031215612f3957600080fd5b612f4284612e7e565b9250612f5060208501612e7e565b9150604084013590509250925092565b60008060008060808587031215612f7657600080fd5b612f7f85612e7e565b9350612f8d60208601612e7e565b92506040850135915060608501356001600160401b03811115612faf57600080fd5b8501601f81018713612fc057600080fd5b612fcf87823560208401612e27565b91505092959194509250565b60008060408385031215612fee57600080fd5b612ff783612e7e565b9150602083013561300781613760565b809150509250929050565b6000806040838503121561302557600080fd5b61302e83612e7e565b946020939093013593505050565b6000602080838503121561304f57600080fd5b82356001600160401b038082111561306657600080fd5b818501915085601f83011261307a57600080fd5b81358181111561308c5761308c61374a565b8060051b915061309d8483016135ca565b8181528481019084860184860187018a10156130b857600080fd5b600095505b838610156130db5780358352600195909501949186019186016130bd565b5098975050505050505050565b6000602082840312156130fa57600080fd5b815161112681613760565b6000806040838503121561311857600080fd5b50508035926020909101359150565b60006020828403121561313957600080fd5b81356111268161376e565b60006020828403121561315657600080fd5b81516111268161376e565b6000806020838503121561317457600080fd5b82356001600160401b0381111561318a57600080fd5b61319685828601612e95565b90969095509350505050565b6000602082840312156131b457600080fd5b81356001600160401b038111156131ca57600080fd5b8201601f810184136131db57600080fd5b61243b84823560208401612e27565b6000602082840312156131fc57600080fd5b5035919050565b60006020828403121561321557600080fd5b5051919050565b6000806040838503121561322f57600080fd5b82359150612f1b60208401612e7e565b60008060006040848603121561325457600080fd5b8335925060208401356001600160401b0381111561327157600080fd5b61327d86828701612e95565b9497909650939450505050565b600081518084526132a281602086016020860161365c565b601f01601f19169290920160200192915050565b600083516132c881846020880161365c565b6c6e6f745f72657665616c65642f60981b90830190815283516132f281600d84016020880161365c565b01600d01949350505050565b6000835161331081846020880161365c565b636e66742f60e01b908301908152835161333181600484016020880161365c565b01600401949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906133849083018461328a565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006133b5606083018461328a565b95945050505050565b602081526000611126602083018461328a565b6020808252601390820152724e6f7468696e6720746f20776974686472617760681b604082015260600190565b6020808252601a908201527f536869667420696e64657820697320616c726561647920736574000000000000604082015260600190565b6020808252601d908201527f596f7520616c726561647920636c61696d65642066726565204e465473000000604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b6020808252601d908201527f4f6e6c79207465616d206d656d626572732061726520616c6c6f776564000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260149082015273139bdd08195b9bdd59da081391951cc81b19599d60621b604082015260600190565b60208082526010908201526f15dc9bdb99c811551208185b5bdd5b9d60821b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601290820152715369676e61747572652069732077726f6e6760701b604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156135f2576135f261374a565b604052919050565b6000821982111561360d5761360d6136f2565b500190565b60008261362157613621613708565b500490565b6000816000190483118215151615613640576136406136f2565b500290565b600082821015613657576136576136f2565b500390565b60005b8381101561367757818101518382015260200161365f565b83811115611a865750506000910152565b600181811c9082168061369c57607f821691505b602082108114156136bd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156136d7576136d76136f2565b5060010190565b6000826136ed576136ed613708565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611c4257600080fd5b6001600160e01b031981168114611c4257600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220bd0d076bf152331b4cc3feee83a3865807cf0d1db00a0ec6089d17d05f11f5cd64736f6c634300080600334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002600000000000000000000000007e5d3cc1d9887188552cff2590eb6bb986a6597900000000000000000000000000000000000000000000000000000000000003a0000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79520000000000000000000000000000000000000000000000000000000000000016687474703a2f2f7472693365732e636f6d2f6170692f000000000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000aee4bdcf9d164d9adbbcbfd846623fbe133a601800000000000000000000000026243de3e15902c6a7b44930f74b2898753d34e40000000000000000000000007029ca08f84b3082c0216804ab5f6d73676c1787000000000000000000000000e1cd644cc6f9d72ac75c4807f0641858070229da0000000000000000000000005b1e4a8cbb5509dc45ee7591d58dcf059ce8c82800000000000000000000000053e255e40ac218db23b349aeda6fb0912d78cf240000000000000000000000005f058dccffb7862566abe44f85d409823f5ce9210000000000000000000000007f710087c059f3e2b5f52e13206e451880bc07f50000000000000000000000009b8fc960800998e87fdf0f61ff1f279c3a5e6821000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000b900000000000000000000000000000000000000000000000000000000000000b9000000000000000000000000000000000000000000000000000000000000006e000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000006225f3c0000000000000000000000000000000000000000000000000000000006225f3c00000000000000000000000000000000000000000000000000000000062266440000000000000000000000000000000000000000000000000000000006225f3c0

Deployed Bytecode

0x60806040526004361061025e5760003560e01c80636817c76c11610143578063a0712d68116100bb578063c87b56dd11610077578063c87b56dd14610701578063cfc86f7b14610721578063e985e9c514610736578063f2fde38b1461077f578063f3272d491461079f578063f4f3b200146107bf57005b8063a0712d681461064b578063a10657691461065e578063a22cb4651461067e578063ab36e64d1461069e578063b5077f44146106cb578063b88d4fde146106e157005b806391b7f5ed1161010a57806391b7f5ed146105aa57806394985ddd146105ca57806395d89b41146105ea57806399e101e0146105ff5780639a0a0982146106155780639e287f3b1461063557005b80636817c76c1461053557806370a082311461054b578063715018a61461056b5780638da5cb5b146105805780638fdb6d7c1461059557005b806323b872dd116101d65780635aa165f01161019d5780635aa165f0146104725780635e0505101461049257806361d512fd146104a8578063625b5c33146104c857806363037b0c146104f55780636352211e1461051557005b806323b872dd146103e75780633ccfd60b1461040757806342842e0e1461041c5780634bbf179b1461043c57806355f804b31461045257005b80630d06ed72116102255780630d06ed721461032b5780630f7309e81461033e5780631096952314610353578063167cbaa21461037357806318160ddd146103a1578063228f222d146103ba57005b806301ffc9a714610267578063046dc1661461029c57806306fdde03146102bc578063081812fc146102de578063095ea7b31461030b57005b3661026557005b005b34801561027357600080fd5b50610287610282366004613127565b6107df565b60405190151581526020015b60405180910390f35b3480156102a857600080fd5b506102656102b7366004612ed6565b610831565b3480156102c857600080fd5b506102d161088b565b60405161029391906133be565b3480156102ea57600080fd5b506102fe6102f93660046131ea565b61091d565b604051610293919061333d565b34801561031757600080fd5b50610265610326366004613012565b610961565b61026561033936600461323f565b6109ef565b34801561034a57600080fd5b506102d1610d52565b34801561035f57600080fd5b5061026561036e366004613161565b610de0565b34801561037f57600080fd5b5061039361038e3660046131ea565b610e1b565b604051908152602001610293565b3480156103ad57600080fd5b5060035460025403610393565b3480156103c657600080fd5b506103936103d5366004612ed6565b60126020526000908152604090205481565b3480156103f357600080fd5b50610265610402366004612f24565b610e3c565b34801561041357600080fd5b50610265610e47565b34801561042857600080fd5b50610265610437366004612f24565b610f40565b34801561044857600080fd5b50610393600f5481565b34801561045e57600080fd5b5061026561046d3660046131a2565b610f5b565b34801561047e57600080fd5b5061026561048d36600461303c565b610f9d565b34801561049e57600080fd5b50610393600e5481565b3480156104b457600080fd5b506103936104c3366004613105565b610fdf565b3480156104d457600080fd5b506103936104e3366004612ed6565b60136020526000908152604090205481565b34801561050157600080fd5b506102fe6105103660046131ea565b61112d565b34801561052157600080fd5b506102fe6105303660046131ea565b611157565b34801561054157600080fd5b50610393600b5481565b34801561055757600080fd5b50610393610566366004612ed6565b611169565b34801561057757600080fd5b506102656111b7565b34801561058c57600080fd5b506102fe6111f2565b3480156105a157600080fd5b50610265611201565b3480156105b657600080fd5b506102656105c53660046131ea565b6112ad565b3480156105d657600080fd5b506102656105e5366004613105565b6112e1565b3480156105f657600080fd5b506102d1611363565b34801561060b57600080fd5b5061039361249e81565b34801561062157600080fd5b5061026561063036600461323f565b611372565b34801561064157600080fd5b5061039361027281565b6102656106593660046131ea565b61159e565b34801561066a57600080fd5b5061026561067936600461323f565b611786565b34801561068a57600080fd5b50610265610699366004612fdb565b6119a5565b3480156106aa57600080fd5b506103936106b9366004612ed6565b60146020526000908152604090205481565b3480156106d757600080fd5b5061039361271081565b3480156106ed57600080fd5b506102656106fc366004612f60565b611a3b565b34801561070d57600080fd5b506102d161071c3660046131ea565b611a8c565b34801561072d57600080fd5b506102d1611b98565b34801561074257600080fd5b50610287610751366004612ef1565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561078b57600080fd5b5061026561079a366004612ed6565b611ba5565b3480156107ab57600080fd5b506102656107ba36600461321c565b611c45565b3480156107cb57600080fd5b506102656107da366004612ed6565b611ccd565b60006001600160e01b031982166380ac58cd60e01b148061081057506001600160e01b03198216635b5e139f60e01b145b8061082b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b3361083a6111f2565b6001600160a01b0316146108695760405162461bcd60e51b8152600401610860906134da565b60405180910390fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60606004805461089a90613688565b80601f01602080910402602001604051908101604052809291908181526020018280546108c690613688565b80156109135780601f106108e857610100808354040283529160200191610913565b820191906000526020600020905b8154815290600101906020018083116108f657829003601f168201915b5050505050905090565b600061092882611ecf565b610945576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061096c82611157565b9050806001600160a01b0316836001600160a01b031614156109a15760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906109c157506109bf8133610751565b155b156109df576040516367d9dca160e11b815260040160405180910390fd5b6109ea838383611efb565b505050565b60026001541415610a125760405162461bcd60e51b815260040161086090613567565b6002600155323314610a365760405162461bcd60e51b81526004016108609061346c565b61249e83600f54610a4a6003546002540390565b610a549190613645565b610a5e91906135fa565b1115610a7c5760405162461bcd60e51b81526004016108609061350f565b600c600181548110610a9057610a90613734565b90600052602060002001544210158015610ac95750600c600181548110610ab957610ab9613734565b9060005260206000200154600014155b610b155760405162461bcd60e51b815260206004820152601f60248201527f50726573616c6520697320706175736564202f206e6f742073746172746564006044820152606401610860565b82600b54610b239190613626565b3414610b415760405162461bcd60e51b81526004016108609061353d565b610c2f82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c299250610b889150611ecb9050565b604080516020810182905260136060820152725472693365735f6d696e7450726573616c655f60681b60808201526001600160a01b039092169082015260a0015b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90611f57565b6011546001600160a01b03908116911614610c865760405162461bcd60e51b8152602060048201526017602482015276165bdd48185c99481b9bdd081dda1a5d195b1a5cdd1959604a1b6044820152606401610860565b33600090815260126020526040902054600290610ca49085906135fa565b1115610d045760405162461bcd60e51b815260206004820152602960248201527f596f752063616e2070726573616c65206d696e74206f6e6c792032204e465473604482015268081a5b881d1bdd185b60ba1b6064820152608401610860565b33600090815260126020526040902054610d1f9084906135fa565b60126000335b6001600160a01b03168152602081019190915260400160002055610d493384611f7b565b50506001805550565b60108054610d5f90613688565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8b90613688565b8015610dd85780601f10610dad57610100808354040283529160200191610dd8565b820191906000526020600020905b815481529060010190602001808311610dbb57829003601f168201915b505050505081565b33610de96111f2565b6001600160a01b031614610e0f5760405162461bcd60e51b8152600401610860906134da565b6109ea60108383612ce0565b600c8181548110610e2b57600080fd5b600091825260209091200154905081565b6109ea838383611f95565b33600090815260166020526040902054610e735760405162461bcd60e51b8152600401610860906134a3565b4780610e915760405162461bcd60e51b8152600401610860906133d1565b60005b601554811015610f3c57610f2a60158281548110610eb457610eb4613734565b9060005260206000200160009054906101000a90046001600160a01b03166016600060158581548110610ee957610ee9613734565b60009182526020808320909101546001600160a01b03168352820192909252604001902054601754610f1b9086613612565b610f259190613626565b612197565b80610f34816136c3565b915050610e94565b5050565b6109ea83838360405180602001604052806000815250611a3b565b33610f646111f2565b6001600160a01b031614610f8a5760405162461bcd60e51b8152600401610860906134da565b8051610f3c90600d906020840190612d64565b33610fa66111f2565b6001600160a01b031614610fcc5760405162461bcd60e51b8152600401610860906134da565b8051610f3c90600c906020840190612dd8565b600033610fea6111f2565b6001600160a01b0316146110105760405162461bcd60e51b8152600401610860906134da565b600e54156110305760405162461bcd60e51b8152600401610860906133fe565b6040516370a0823160e01b815282906001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a082319061107e90309060040161333d565b60206040518083038186803b15801561109657600080fd5b505afa1580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ce9190613203565b101561111c5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f756768204c494e4b20746f20706179206665650000000000006044820152606401610860565b61112683836122b0565b9392505050565b6015818154811061113d57600080fd5b6000918252602090912001546001600160a01b0316905081565b600061116282612443565b5192915050565b60006001600160a01b038216611192576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b336111c06111f2565b6001600160a01b0316146111e65760405162461bcd60e51b8152600401610860906134da565b6111f0600061255d565b565b6000546001600160a01b031690565b3361120a6111f2565b6001600160a01b0316146112305760405162461bcd60e51b8152600401610860906134da565b600e54156112505760405162461bcd60e51b8152600401610860906133fe565b6040805143406020808301919091524182840152446060830152336080808401919091528351808403909101815260a0909201909252805191012061129890612710906136de565b600e8190556111f057600e805461029a019055565b336112b66111f2565b6001600160a01b0316146112dc5760405162461bcd60e51b8152600401610860906134da565b600b55565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146113595760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610860565b610f3c82826125ad565b60606005805461089a90613688565b600260015414156113955760405162461bcd60e51b815260040161086090613567565b60026001553233146113b95760405162461bcd60e51b81526004016108609061346c565b61249e83600f546113cd6003546002540390565b6113d79190613645565b6113e191906135fa565b11156113ff5760405162461bcd60e51b81526004016108609061350f565b600c60038154811061141357611413613734565b9060005260206000200154421015801561144c5750600c60038154811061143c5761143c613734565b9060005260206000200154600014155b6114a25760405162461bcd60e51b815260206004820152602160248201527f46726565206d696e7420697320706175736564202f206e6f74207374617274656044820152601960fa1b6064820152608401610860565b61153982828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c2992506114e99150611ecb9050565b86604051602001610bc99291906060808252601390820152725472693365735f6d696e74466f72467265655f60681b60808201526001600160a01b03929092166020830152604082015260a00190565b6011546001600160a01b039081169116146115665760405162461bcd60e51b81526004016108609061359e565b33600090815260146020526040902054156115935760405162461bcd60e51b815260040161086090613435565b826014600033610d25565b600260015414156115c15760405162461bcd60e51b815260040161086090613567565b60026001553233146115e55760405162461bcd60e51b81526004016108609061346c565b61249e81600f546115f96003546002540390565b6116039190613645565b61160d91906135fa565b111561162b5760405162461bcd60e51b81526004016108609061350f565b600c60028154811061163f5761163f613734565b906000526020600020015442101580156116785750600c60028154811061166857611668613734565b9060005260206000200154600014155b6116d25760405162461bcd60e51b815260206004820152602560248201527f5075626c69632073616c65732061726520706175736564202f206e6f74207374604482015264185c9d195960da1b6064820152608401610860565b60038111156117495760405162461bcd60e51b815260206004820152603a60248201527f416d6f756e74206f66206d696e746564204e465473206174206f6e636520736860448201527f6f756c64206265206c657373206f7220657175616c20746f20330000000000006064820152608401610860565b80600b546117579190613626565b34146117755760405162461bcd60e51b81526004016108609061353d565b61177f3382611f7b565b5060018055565b600260015414156117a95760405162461bcd60e51b815260040161086090613567565b60026001553233146117cd5760405162461bcd60e51b81526004016108609061346c565b61027283600f546117de91906135fa565b11156117fc5760405162461bcd60e51b81526004016108609061350f565b600c60008154811061181057611810613734565b906000526020600020015442101580156118495750600c60008154811061183957611839613734565b9060005260206000200154600014155b6118a15760405162461bcd60e51b8152602060048201526024808201527f47656e65736973206d696e7420697320706175736564202f206e6f74207374616044820152631c9d195960e21b6064820152608401610860565b61193882828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c2992506118e89150611ecb9050565b86604051602001610bc99291906060808252601390820152725472693365735f6d696e7447656e657369735f60681b60808201526001600160a01b03929092166020830152604082015260a00190565b6011546001600160a01b039081169116146119655760405162461bcd60e51b81526004016108609061359e565b33600090815260136020526040902054156119925760405162461bcd60e51b815260040161086090613435565b600f805484019055826013600033610d25565b6001600160a01b0382163314156119cf5760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a46848484611f95565b6001600160a01b0383163b15158015611a685750611a66848484846125f0565b155b15611a86576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611a9782611ecf565b611afb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610860565b600e5415611b5b576000612710600e5484611b1691906135fa565b611b2091906136de565b9050611b2a6126e7565b611b33826126f6565b604051602001611b449291906132fe565b604051602081830303815290604052915050919050565b611b636126e7565b611b6c836126f6565b604051602001611b7d9291906132b6565b6040516020818303038152906040529050919050565b919050565b600d8054610d5f90613688565b33611bae6111f2565b6001600160a01b031614611bd45760405162461bcd60e51b8152600401610860906134da565b6001600160a01b038116611c395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610860565b611c428161255d565b50565b33611c4e6111f2565b6001600160a01b031614611c745760405162461bcd60e51b8152600401610860906134da565b60035460025414611cc35760405162461bcd60e51b8152602060048201526019602482015278436f756c64206f6e6c792062652063616c6c6564206f6e636560381b6044820152606401610860565b610f3c8183611f7b565b33600090815260166020526040902054611cf95760405162461bcd60e51b8152600401610860906134a3565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190611d2890309060040161333d565b60206040518083038186803b158015611d4057600080fd5b505afa158015611d54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d789190613203565b905060008111611d9a5760405162461bcd60e51b8152600401610860906133d1565b60005b6015548110156109ea57826001600160a01b031663a9059cbb60158381548110611dc957611dc9613734565b9060005260206000200160009054906101000a90046001600160a01b03166016600060158681548110611dfe57611dfe613734565b60009182526020808320909101546001600160a01b03168352820192909252604001902054601754611e309087613612565b611e3a9190613626565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611e8057600080fd5b505af1158015611e94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb891906130e8565b5080611ec3816136c3565b915050611d9d565b3390565b60006002548210801561082b575050600090815260066020526040902054600160e01b900460ff161590565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000806000611f6685856127f3565b91509150611f7381612863565b509392505050565b610f3c828260405180602001604052806000815250612a19565b6000611fa082612443565b80519091506000906001600160a01b0316336001600160a01b03161480611fce57508151611fce9033610751565b80611fe9575033611fde8461091d565b6001600160a01b0316145b90508061200957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461203e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661206557604051633a954ecd60e21b815260040160405180910390fd5b6120756000848460000151611efb565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661215f5760025481101561215f57825160008281526006602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b031660008051602061378583398151915260405160405180910390a45b5050505050565b804710156121e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610860565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612234576040519150601f19603f3d011682016040523d82523d6000602084013e612239565b606091505b50509050806109ea5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610860565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612320929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161234d9392919061338e565b602060405180830381600087803b15801561236757600080fd5b505af115801561237b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239f91906130e8565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526123fb9060016135fa565b6000858152600a602052604090205561243b8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b949350505050565b60408051606081018252600080825260208201819052918101919091528160025481101561254457600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906125425780516001600160a01b0316156124d9579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561253d579392505050565b6124d9565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600e54156125cd5760405162461bcd60e51b8152600401610860906133fe565b6125d9612710826136de565b600e819055610f3c57600e805461014d0190555050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612625903390899088908890600401613351565b602060405180830381600087803b15801561263f57600080fd5b505af192505050801561266f575060408051601f3d908101601f1916820190925261266c91810190613144565b60015b6126ca573d80801561269d576040519150601f19603f3d011682016040523d82523d6000602084013e6126a2565b606091505b5080516126c2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d805461089a90613688565b60608161271a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612744578061272e816136c3565b915061273d9050600a83613612565b915061271e565b6000816001600160401b0381111561275e5761275e61374a565b6040519080825280601f01601f191660200182016040528015612788576020820181803683370190505b5090505b841561243b5761279d600183613645565b91506127aa600a866136de565b6127b59060306135fa565b60f81b8183815181106127ca576127ca613734565b60200101906001600160f81b031916908160001a9053506127ec600a86613612565b945061278c565b60008082516041141561282a5760208301516040840151606085015160001a61281e87828585612a26565b9450945050505061285c565b8251604014156128545760208301516040840151612849868383612b09565b93509350505061285c565b506000905060025b9250929050565b60008160048111156128775761287761371e565b14156128805750565b60018160048111156128945761289461371e565b14156128dd5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610860565b60028160048111156128f1576128f161371e565b141561293f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610860565b60038160048111156129535761295361371e565b14156129ac5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610860565b60048160048111156129c0576129c061371e565b1415611c425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610860565b6109ea8383836001612b42565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115612a535750600090506003612b00565b8460ff16601b14158015612a6b57508460ff16601c14155b15612a7c5750600090506004612b00565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ad0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612af957600060019250925050612b00565b9150600090505b94509492505050565b6000806001600160ff1b03831681612b2660ff86901c601b6135fa565b9050612b3487828885612a26565b935093505050935093915050565b6002546001600160a01b038516612b6b57604051622e076360e81b815260040160405180910390fd5b83612b895760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260076020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600690925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612c2c57506001600160a01b0387163b15155b15612ca3575b60405182906001600160a01b03891690600090600080516020613785833981519152908290a4612c6b60008884806001019550886125f0565b612c88576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612c32578260025414612c9e57600080fd5b612cd7565b5b6040516001830192906001600160a01b03891690600090600080516020613785833981519152908290a480821415612ca4575b50600255612190565b828054612cec90613688565b90600052602060002090601f016020900481019282612d0e5760008555612d54565b82601f10612d275782800160ff19823516178555612d54565b82800160010185558215612d54579182015b82811115612d54578235825591602001919060010190612d39565b50612d60929150612e12565b5090565b828054612d7090613688565b90600052602060002090601f016020900481019282612d925760008555612d54565b82601f10612dab57805160ff1916838001178555612d54565b82800160010185558215612d54579182015b82811115612d54578251825591602001919060010190612dbd565b828054828255906000526020600020908101928215612d545791602002820182811115612d54578251825591602001919060010190612dbd565b5b80821115612d605760008155600101612e13565b60006001600160401b03831115612e4057612e4061374a565b612e53601f8401601f19166020016135ca565b9050828152838383011115612e6757600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611b9357600080fd5b60008083601f840112612ea757600080fd5b5081356001600160401b03811115612ebe57600080fd5b60208301915083602082850101111561285c57600080fd5b600060208284031215612ee857600080fd5b61112682612e7e565b60008060408385031215612f0457600080fd5b612f0d83612e7e565b9150612f1b60208401612e7e565b90509250929050565b600080600060608486031215612f3957600080fd5b612f4284612e7e565b9250612f5060208501612e7e565b9150604084013590509250925092565b60008060008060808587031215612f7657600080fd5b612f7f85612e7e565b9350612f8d60208601612e7e565b92506040850135915060608501356001600160401b03811115612faf57600080fd5b8501601f81018713612fc057600080fd5b612fcf87823560208401612e27565b91505092959194509250565b60008060408385031215612fee57600080fd5b612ff783612e7e565b9150602083013561300781613760565b809150509250929050565b6000806040838503121561302557600080fd5b61302e83612e7e565b946020939093013593505050565b6000602080838503121561304f57600080fd5b82356001600160401b038082111561306657600080fd5b818501915085601f83011261307a57600080fd5b81358181111561308c5761308c61374a565b8060051b915061309d8483016135ca565b8181528481019084860184860187018a10156130b857600080fd5b600095505b838610156130db5780358352600195909501949186019186016130bd565b5098975050505050505050565b6000602082840312156130fa57600080fd5b815161112681613760565b6000806040838503121561311857600080fd5b50508035926020909101359150565b60006020828403121561313957600080fd5b81356111268161376e565b60006020828403121561315657600080fd5b81516111268161376e565b6000806020838503121561317457600080fd5b82356001600160401b0381111561318a57600080fd5b61319685828601612e95565b90969095509350505050565b6000602082840312156131b457600080fd5b81356001600160401b038111156131ca57600080fd5b8201601f810184136131db57600080fd5b61243b84823560208401612e27565b6000602082840312156131fc57600080fd5b5035919050565b60006020828403121561321557600080fd5b5051919050565b6000806040838503121561322f57600080fd5b82359150612f1b60208401612e7e565b60008060006040848603121561325457600080fd5b8335925060208401356001600160401b0381111561327157600080fd5b61327d86828701612e95565b9497909650939450505050565b600081518084526132a281602086016020860161365c565b601f01601f19169290920160200192915050565b600083516132c881846020880161365c565b6c6e6f745f72657665616c65642f60981b90830190815283516132f281600d84016020880161365c565b01600d01949350505050565b6000835161331081846020880161365c565b636e66742f60e01b908301908152835161333181600484016020880161365c565b01600401949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906133849083018461328a565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006133b5606083018461328a565b95945050505050565b602081526000611126602083018461328a565b6020808252601390820152724e6f7468696e6720746f20776974686472617760681b604082015260600190565b6020808252601a908201527f536869667420696e64657820697320616c726561647920736574000000000000604082015260600190565b6020808252601d908201527f596f7520616c726561647920636c61696d65642066726565204e465473000000604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b6020808252601d908201527f4f6e6c79207465616d206d656d626572732061726520616c6c6f776564000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260149082015273139bdd08195b9bdd59da081391951cc81b19599d60621b604082015260600190565b60208082526010908201526f15dc9bdb99c811551208185b5bdd5b9d60821b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601290820152715369676e61747572652069732077726f6e6760701b604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156135f2576135f261374a565b604052919050565b6000821982111561360d5761360d6136f2565b500190565b60008261362157613621613708565b500490565b6000816000190483118215151615613640576136406136f2565b500290565b600082821015613657576136576136f2565b500390565b60005b8381101561367757818101518382015260200161365f565b83811115611a865750506000910152565b600181811c9082168061369c57607f821691505b602082108114156136bd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156136d7576136d76136f2565b5060010190565b6000826136ed576136ed613708565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611c4257600080fd5b6001600160e01b031981168114611c4257600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220bd0d076bf152331b4cc3feee83a3865807cf0d1db00a0ec6089d17d05f11f5cd64736f6c63430008060033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002600000000000000000000000007e5d3cc1d9887188552cff2590eb6bb986a6597900000000000000000000000000000000000000000000000000000000000003a0000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79520000000000000000000000000000000000000000000000000000000000000016687474703a2f2f7472693365732e636f6d2f6170692f000000000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000aee4bdcf9d164d9adbbcbfd846623fbe133a601800000000000000000000000026243de3e15902c6a7b44930f74b2898753d34e40000000000000000000000007029ca08f84b3082c0216804ab5f6d73676c1787000000000000000000000000e1cd644cc6f9d72ac75c4807f0641858070229da0000000000000000000000005b1e4a8cbb5509dc45ee7591d58dcf059ce8c82800000000000000000000000053e255e40ac218db23b349aeda6fb0912d78cf240000000000000000000000005f058dccffb7862566abe44f85d409823f5ce9210000000000000000000000007f710087c059f3e2b5f52e13206e451880bc07f50000000000000000000000009b8fc960800998e87fdf0f61ff1f279c3a5e6821000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000b900000000000000000000000000000000000000000000000000000000000000b9000000000000000000000000000000000000000000000000000000000000006e000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000006225f3c0000000000000000000000000000000000000000000000000000000006225f3c00000000000000000000000000000000000000000000000000000000062266440000000000000000000000000000000000000000000000000000000006225f3c0

-----Decoded View---------------
Arg [0] : baseURI (string): http://tri3es.com/api/
Arg [1] : _team (address[]): 0xaee4BDcF9d164d9ADBBcBfD846623fbE133a6018,0x26243DE3e15902C6A7B44930f74B2898753D34e4,0x7029Ca08f84B3082c0216804ab5F6d73676c1787,0xE1Cd644cc6F9d72aC75C4807F0641858070229DA,0x5B1e4A8cBB5509dc45Ee7591D58DCF059CE8C828,0x53E255e40ac218db23B349aEdA6FB0912D78cF24,0x5F058DCcffB7862566aBe44F85d409823F5ce921,0x7F710087C059F3e2b5f52E13206e451880bC07f5,0x9B8fC960800998E87fDf0f61FF1F279C3a5e6821
Arg [2] : _shares (uint256[]): 185,185,110,300,100,50,50,10,10
Arg [3] : _signerAddress (address): 0x7e5d3cC1D9887188552cfF2590eB6bb986A65979
Arg [4] : _ts (uint256[]): 1646654400,1646654400,1646683200,1646654400
Arg [5] : _linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [6] : _linkCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952

-----Encoded View---------------
34 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [3] : 0000000000000000000000007e5d3cc1d9887188552cff2590eb6bb986a65979
Arg [4] : 00000000000000000000000000000000000000000000000000000000000003a0
Arg [5] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [6] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [8] : 687474703a2f2f7472693365732e636f6d2f6170692f00000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [10] : 000000000000000000000000aee4bdcf9d164d9adbbcbfd846623fbe133a6018
Arg [11] : 00000000000000000000000026243de3e15902c6a7b44930f74b2898753d34e4
Arg [12] : 0000000000000000000000007029ca08f84b3082c0216804ab5f6d73676c1787
Arg [13] : 000000000000000000000000e1cd644cc6f9d72ac75c4807f0641858070229da
Arg [14] : 0000000000000000000000005b1e4a8cbb5509dc45ee7591d58dcf059ce8c828
Arg [15] : 00000000000000000000000053e255e40ac218db23b349aeda6fb0912d78cf24
Arg [16] : 0000000000000000000000005f058dccffb7862566abe44f85d409823f5ce921
Arg [17] : 0000000000000000000000007f710087c059f3e2b5f52e13206e451880bc07f5
Arg [18] : 0000000000000000000000009b8fc960800998e87fdf0f61ff1f279c3a5e6821
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [20] : 00000000000000000000000000000000000000000000000000000000000000b9
Arg [21] : 00000000000000000000000000000000000000000000000000000000000000b9
Arg [22] : 000000000000000000000000000000000000000000000000000000000000006e
Arg [23] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [27] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [28] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [30] : 000000000000000000000000000000000000000000000000000000006225f3c0
Arg [31] : 000000000000000000000000000000000000000000000000000000006225f3c0
Arg [32] : 0000000000000000000000000000000000000000000000000000000062266440
Arg [33] : 000000000000000000000000000000000000000000000000000000006225f3c0


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.