ETH Price: $3,106.40 (+0.81%)
Gas: 4 Gwei

Token

Skull Dungeon (SXD)
 

Overview

Max Total Supply

0 SXD

Holders

380

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 SXD
0xea7D51fbE858a043BA7f9D3d562631dce03eB464
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DoomskullDungeon

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 18 : DoomskullDungeon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "../contracts/SkullDungeon.sol";

//
// ██████╗░░█████╗░░█████╗░███╗░░░███╗░██████╗██╗░░██╗██╗░░░██╗██╗░░░░░██╗░░░░░
// ██╔══██╗██╔══██╗██╔══██╗████╗░████║██╔════╝██║░██╔╝██║░░░██║██║░░░░░██║░░░░░
// ██║░░██║██║░░██║██║░░██║██╔████╔██║╚█████╗░█████═╝░██║░░░██║██║░░░░░██║░░░░░
// ██║░░██║██║░░██║██║░░██║██║╚██╔╝██║░╚═══██╗██╔═██╗░██║░░░██║██║░░░░░██║░░░░░
// ██████╔╝╚█████╔╝╚█████╔╝██║░╚═╝░██║██████╔╝██║░╚██╗╚██████╔╝███████╗███████╗
// ╚═════╝░░╚════╝░░╚════╝░╚═╝░░░░░╚═╝╚═════╝░╚═╝░░╚═╝░╚═════╝░╚══════╝╚══════╝
//
// ██████╗░██╗░░░██╗███╗░░██╗░██████╗░███████╗░█████╗░███╗░░██╗
// ██╔══██╗██║░░░██║████╗░██║██╔════╝░██╔════╝██╔══██╗████╗░██║
// ██║░░██║██║░░░██║██╔██╗██║██║░░██╗░█████╗░░██║░░██║██╔██╗██║
// ██║░░██║██║░░░██║██║╚████║██║░░╚██╗██╔══╝░░██║░░██║██║╚████║
// ██████╔╝╚██████╔╝██║░╚███║╚██████╔╝███████╗╚█████╔╝██║░╚███║
// ╚═════╝░░╚═════╝░╚═╝░░╚══╝░╚═════╝░╚══════╝░╚════╝░╚═╝░░╚══╝
//

contract DoomskullDungeon is SkullDungeon {
    /// ============ Immutable storage ============
    ///
    uint256 public constant DOOMSKULL_MAX_SUPPLY = 666;

    uint256 public constant DOOMSKULL_START_ID = 10000;

    string internal DOOMSKULL_PROVENANCE_HASH;

    /// ============ Mutable storage ============
    ///
    bool public doomskullBreedingActive;
    uint256 public doomskullTokenCounter;

    bool public doomskullMetadataFinalised;
    string internal _doomskullPlaceholderURI;
    mapping(uint256 => string) internal _doomskullCIDs;

    mapping(address => bool) internal _authorised;
    address[] public authorisedLog;

    /// ============ Modifiers ============
    ///
    modifier onlyAuthorised() {
        require(_authorised[_msgSender()], "The sender is not authorised");
        _;
    }

    constructor(
        address signer,
        string memory baseURI,
        address vrfCoordinator,
        address linkToken,
        bytes32 keyHash,
        uint256 linkFee
    ) SkullDungeon(signer, baseURI, vrfCoordinator, linkToken, keyHash, linkFee) {
        require(MAX_SUPPLY <= DOOMSKULL_START_ID);
        doomskullBreedingActive = false;
        doomskullTokenCounter = 0;

        doomskullMetadataFinalised = false;
        _doomskullPlaceholderURI = baseURI;
    }

    function breed(uint256 tokenId) external onlyAuthorised nonReentrant returns (uint256) {
        require(doomskullBreedingActive, "Doomskull breeding not active");
        require(doomskullTokenCounter < DOOMSKULL_MAX_SUPPLY, "Doomskull max supply exceeded");
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        require(ownerOf(tokenId) == _msgSender(), "Not the owner");

        uint256 newTokenID = DOOMSKULL_START_ID + doomskullTokenCounter;
        _burn(tokenId);
        _safeMint(_msgSender(), newTokenID);
        doomskullTokenCounter++;
        return newTokenID;
    }

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

        if (tokenId < DOOMSKULL_START_ID) {
            return super.tokenURI(tokenId);
        }
        if (bytes(_doomskullCIDs[tokenId]).length > 0) {
            return string(abi.encodePacked("ipfs://", _doomskullCIDs[tokenId]));
        }
        return _doomskullPlaceholderURI;
    }

    function doomskullProvenanceHash() public view returns (string memory) {
        require(
            bytes(DOOMSKULL_PROVENANCE_HASH).length != 0,
            "Doomskull provenance hash is not set"
        );
        return DOOMSKULL_PROVENANCE_HASH;
    }

    /// ============ ADMIN functions ============

    function setDoomskullBreedingActive(bool active) public onlyOwner {
        doomskullBreedingActive = active;
    }

    function finaliseDoomskullMetadata() public onlyOwner {
        require(!doomskullMetadataFinalised, "Doomskull metadata already finalised");
        doomskullMetadataFinalised = true;
    }

    function setDoomskullPlaceholderURI(string memory placeholderURI) public onlyOwner {
        _doomskullPlaceholderURI = placeholderURI;
    }

    function setDoomskullCID(uint256 tokenId, string memory tokenCID) public onlyOwner {
        require(!doomskullMetadataFinalised, "Doomskull metadata already finalised");
        _doomskullCIDs[tokenId] = tokenCID;
    }

    function setDoomskullCIDs(uint256[] memory tokenIds, string[] memory tokenCIDs)
        public
        onlyOwner
    {
        require(!doomskullMetadataFinalised, "Doomskull metadata already finalised");
        require(tokenIds.length == tokenCIDs.length, "Arrays of different sizes");
        require(tokenIds.length <= 100, "Max 100 token IDs");
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _doomskullCIDs[tokenIds[i]] = tokenCIDs[i];
        }
    }

    function setDoomskullProvenanceHash(string memory _provenanceHash) public onlyOwner {
        require(
            bytes(DOOMSKULL_PROVENANCE_HASH).length == 0,
            "Doomskull provenance hash is already set"
        );
        DOOMSKULL_PROVENANCE_HASH = _provenanceHash;
    }

    function authorise(address toAuth) public onlyOwner {
        _authorised[toAuth] = true;
        authorisedLog.push(toAuth);
    }

    function unauthorise(address toUnauth) public onlyOwner {
        _authorised[toUnauth] = false;
    }
}

File 2 of 18 : SkullDungeon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

//
// ░██████╗██╗░░██╗██╗░░░██╗██╗░░░░░██╗░░░░░
// ██╔════╝██║░██╔╝██║░░░██║██║░░░░░██║░░░░░
// ╚█████╗░█████═╝░██║░░░██║██║░░░░░██║░░░░░
// ░╚═══██╗██╔═██╗░██║░░░██║██║░░░░░██║░░░░░
// ██████╔╝██║░╚██╗╚██████╔╝███████╗███████╗
// ╚═════╝░╚═╝░░╚═╝░╚═════╝░╚══════╝╚══════╝
//
// ██████╗░██╗░░░██╗███╗░░██╗░██████╗░███████╗░█████╗░███╗░░██╗
// ██╔══██╗██║░░░██║████╗░██║██╔════╝░██╔════╝██╔══██╗████╗░██║
// ██║░░██║██║░░░██║██╔██╗██║██║░░██╗░█████╗░░██║░░██║██╔██╗██║
// ██║░░██║██║░░░██║██║╚████║██║░░╚██╗██╔══╝░░██║░░██║██║╚████║
// ██████╔╝╚██████╔╝██║░╚███║╚██████╔╝███████╗╚█████╔╝██║░╚███║
// ╚═════╝░░╚═════╝░╚═╝░░╚══╝░╚═════╝░╚══════╝░╚════╝░╚═╝░░╚══╝
//

contract SkullDungeon is ERC721, Pausable, Ownable, ReentrancyGuard, VRFConsumerBase {
    using Strings for uint256;
    using ECDSA for bytes32;

    /// ============ Structs / Enums ============
    ///
    enum SaleState {
        NotStarted,
        WhitelistOnly,
        Regular
    }

    /// ============ Immutable storage ============
    ///
    uint256 public constant MAX_SUPPLY = 3777;

    uint256 public constant RESERVED_SUPPLY = 66;

    uint256 public constant WHITELIST_TIER1 = 1;

    uint256 public constant WHITELIST_TIER2 = 2;

    bytes32 internal immutable LINK_KEY_HASH;

    uint256 internal immutable LINK_FEE;

    uint256 internal TOKEN_OFFSET;

    string internal PROVENANCE_HASH;

    /// ============ Mutable storage ============
    ///
    address public signerAddress;

    string internal metadataBaseURI;
    bool public metadataRevealed;
    bool public metadataFinalised;

    SaleState public saleState;

    uint256 public regularPrice;
    uint256 public whitelistPrice;

    uint256 public regularMaxPerTransaction;
    uint256 public whitelistTier1MaxPerWallet;
    uint256 public whitelistTier2MaxPerWallet;

    mapping(address => uint256) private _whitelistMintedPerAddress;

    uint256 public tokenCounter;

    /// ============ Events ============
    ///
    event MetadataBaseURIUpdated(string oldBaseURI, string newBaseURI);

    constructor(
        address signer,
        string memory baseURI,
        address vrfCoordinator,
        address linkToken,
        bytes32 keyHash,
        uint256 linkFee
    ) ERC721("Skull Dungeon", "SXD") VRFConsumerBase(vrfCoordinator, linkToken) {
        LINK_KEY_HASH = keyHash;
        LINK_FEE = linkFee;

        signerAddress = signer;
        metadataBaseURI = baseURI;
        metadataRevealed = false;
        metadataFinalised = false;

        saleState = SaleState.NotStarted;

        regularPrice = 0.079 ether;
        whitelistPrice = 0.069 ether;

        regularMaxPerTransaction = 2;
        whitelistTier1MaxPerWallet = 3;
        whitelistTier2MaxPerWallet = 2;

        tokenCounter = 0;

        ownerMint(RESERVED_SUPPLY);
    }

    function mint(uint256 numTokens) public payable nonReentrant {
        require(saleState == SaleState.Regular, "Regular sale not active");
        require(
            numTokens > 0 && numTokens <= regularMaxPerTransaction,
            "Incorrect number of tokens requested"
        );
        require(tokenCounter + numTokens <= MAX_SUPPLY, "Max supply exceeded");
        require(numTokens * regularPrice == msg.value, "Incorrect ETH sent");

        for (uint256 i = 0; i < numTokens; i++) {
            _safeMint(_msgSender(), tokenCounter);
            tokenCounter++;
        }
    }

    function whitelistMint(
        uint256 numTokens,
        uint256 tier,
        bytes calldata signature
    ) public payable nonReentrant {
        require(saleState == SaleState.WhitelistOnly, "Whitelist sale not active");
        require(numTokens > 0, "Incorrect number of tokens requested");
        require(tokenCounter + numTokens <= MAX_SUPPLY, "Max supply exceeded");
        require(numTokens * whitelistPrice == msg.value, "Incorrect ETH sent");

        require(_validateSignature(signature, tier, _msgSender()), "Wallet not whitelisted");
        uint256 maxPerWallet = whitelistMaxPerWallet(tier);
        require(
            _whitelistMintedPerAddress[_msgSender()] + numTokens <= maxPerWallet,
            "Max tokens per wallet exceeded"
        );
        _whitelistMintedPerAddress[_msgSender()] += numTokens;

        for (uint256 i = 0; i < numTokens; i++) {
            _safeMint(_msgSender(), tokenCounter);
            tokenCounter++;
        }
    }

    function whitelistMaxPerWallet(uint256 tier) public view returns (uint256) {
        require(tier == WHITELIST_TIER1 || tier == WHITELIST_TIER2, "Unknown whitelist tier");
        return tier == WHITELIST_TIER1 ? whitelistTier1MaxPerWallet : whitelistTier2MaxPerWallet;
    }

    function isWhitelisted(
        bytes calldata signature,
        uint256 tier,
        address caller
    ) public view returns (bool) {
        return _validateSignature(signature, tier, caller);
    }

    function _validateSignature(
        bytes calldata signature,
        uint256 tier,
        address caller
    ) internal view returns (bool) {
        bytes32 dataHash = keccak256(abi.encodePacked(tier, caller));
        bytes32 message = ECDSA.toEthSignedMessageHash(dataHash);

        address receivedAddress = ECDSA.recover(message, signature);
        return (receivedAddress != address(0) && receivedAddress == signerAddress);
    }

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

        if (!metadataRevealed) return metadataBaseURI;
        return string(abi.encodePacked(metadataBaseURI, tokenId.toString()));
    }

    function tokenOffset() public view returns (uint256) {
        require(TOKEN_OFFSET != 0, "Offset is not set");
        return TOKEN_OFFSET;
    }

    function provenanceHash() public view returns (string memory) {
        require(bytes(PROVENANCE_HASH).length != 0, "Provenance hash is not set");
        return PROVENANCE_HASH;
    }

    /// ============ ADMIN functions ============

    function ownerMint(uint256 numTokens) public onlyOwner {
        require(numTokens > 0, "Incorrect number of tokens requested");
        require(tokenCounter + numTokens <= MAX_SUPPLY, "Max supply exceeded");

        for (uint256 i = 0; i < numTokens; i++) {
            _safeMint(_msgSender(), tokenCounter);
            tokenCounter++;
        }
    }

    function setSignerAddress(address signer) public onlyOwner {
        require(signer != address(0), "Signer address cannot be 0");
        signerAddress = signer;
    }

    function startRegularSale() public onlyOwner {
        require(saleState != SaleState.Regular, "Regular sale already active");
        saleState = SaleState.Regular;
    }

    function startWhitelistSale() public onlyOwner {
        require(saleState != SaleState.WhitelistOnly, "Whitelist sale already active");
        saleState = SaleState.WhitelistOnly;
    }

    function setRegularPrice(uint256 price) public onlyOwner {
        regularPrice = price;
    }

    function setWhitelistPrice(uint256 price) public onlyOwner {
        whitelistPrice = price;
    }

    function setRegularMaxPerTransaction(uint256 limit) public onlyOwner {
        regularMaxPerTransaction = limit;
    }

    function setWhitelistTier1MaxPerWallet(uint256 limit) public onlyOwner {
        whitelistTier1MaxPerWallet = limit;
    }

    function setWhitelistTier2MaxPerWallet(uint256 limit) public onlyOwner {
        whitelistTier2MaxPerWallet = limit;
    }

    function setTokenOffset() public onlyOwner {
        require(TOKEN_OFFSET == 0, "Offset is already set");
        require(LINK.balanceOf(address(this)) >= LINK_FEE, "Not enough LINK");
        provenanceHash();

        requestRandomness(LINK_KEY_HASH, LINK_FEE);
    }

    function fulfillRandomness(bytes32, uint256 randomness) internal override {
        TOKEN_OFFSET = randomness % (MAX_SUPPLY - RESERVED_SUPPLY);
    }

    function setProvenanceHash(string memory _provenanceHash) public onlyOwner {
        require(bytes(PROVENANCE_HASH).length == 0, "Provenance hash is already set");
        PROVENANCE_HASH = _provenanceHash;
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override whenNotPaused {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function revealMetadata() public onlyOwner {
        require(!metadataRevealed, "Metadata already revealed");
        metadataRevealed = true;
    }

    function finaliseMetadata() public onlyOwner {
        require(metadataRevealed, "Metadata not revealed");
        require(!metadataFinalised, "Metadata already finalised");
        metadataFinalised = true;
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        require(!metadataFinalised, "Metadata already finalised");
        string memory oldBaseURI = metadataBaseURI;
        metadataBaseURI = baseURI;
        emit MetadataBaseURIUpdated(oldBaseURI, baseURI);
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        Address.sendValue(payable(_msgSender()), balance);
    }

    function withdrawLINK(uint256 amount) external onlyOwner {
        LINK.transfer(_msgSender(), amount);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 4 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 18 : 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 6 of 18 : 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 7 of 18 : 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 8 of 18 : 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 18 : 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 18 : 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 18 : 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 18 : 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 13 of 18 : 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 14 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 16 of 18 : 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 17 of 18 : 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 18 of 18 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"vrfCoordinator","type":"address"},{"internalType":"address","name":"linkToken","type":"address"},{"internalType":"bytes32","name":"keyHash","type":"bytes32"},{"internalType":"uint256","name":"linkFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldBaseURI","type":"string"},{"indexed":false,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"MetadataBaseURIUpdated","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOOMSKULL_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOOMSKULL_START_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_TIER1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_TIER2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toAuth","type":"address"}],"name":"authorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"authorisedLog","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"breed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"doomskullBreedingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doomskullMetadataFinalised","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doomskullProvenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doomskullTokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finaliseDoomskullMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finaliseMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"tier","type":"uint256"},{"internalType":"address","name":"caller","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFinalised","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","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":"regularMaxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"regularPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealMetadata","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":[],"name":"saleState","outputs":[{"internalType":"enum SkullDungeon.SaleState","name":"","type":"uint8"}],"stateMutability":"view","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":"bool","name":"active","type":"bool"}],"name":"setDoomskullBreedingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenCID","type":"string"}],"name":"setDoomskullCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"tokenCIDs","type":"string[]"}],"name":"setDoomskullCIDs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"placeholderURI","type":"string"}],"name":"setDoomskullPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setDoomskullProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setRegularMaxPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setRegularPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTokenOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setWhitelistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setWhitelistTier1MaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setWhitelistTier2MaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startRegularSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"address","name":"toUnauth","type":"address"}],"name":"unauthorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tier","type":"uint256"}],"name":"whitelistMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"uint256","name":"tier","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistTier1MaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistTier2MaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawLINK","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040523480156200001257600080fd5b5060405162005b6338038062005b63833981016040819052620000359162000841565b85858585858583836040518060400160405280600d81526020016c29b5bab63610223ab733b2b7b760991b8152506040518060400160405280600381526020016214d61160ea1b81525081600090805190602001906200009792919062000735565b508051620000ad90600190602084019062000735565b50506006805460ff1916905550620000c533620001a1565b60016007556001600160a01b0391821660a052811660805260c083905260e0829052600b80546001600160a01b03191691881691909117905584516200011390600c90602088019062000735565b50600d805462ffffff19169055670118aa14d9418000600e5566f5232269808000600f556002601081905560036011556012556000601455620001576042620001fb565b5062000164945050505050565b6016805460ff19908116909155600060175560188054909116905584516200019490601990602088019062000735565b5050505050505062000a5b565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03610100909104163314620002615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60008111620002bf5760405162461bcd60e51b8152602060048201526024808201527f496e636f7272656374206e756d626572206f6620746f6b656e732072657175656044820152631cdd195960e21b606482015260840162000258565b610ec181601454620002d291906200095c565b1115620003225760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c7920657863656564656400000000000000000000000000604482015260640162000258565b60005b8181101562000369576200033c336014546200036d565b601480549060006200034e8362000977565b91905055508080620003609062000977565b91505062000325565b5050565b620003698282604051806020016040528060008152506200038f60201b60201c565b6200039b838362000407565b620003aa60008484846200055d565b620004025760405162461bcd60e51b8152602060048201526032602482015260008051602062005b4383398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000258565b505050565b6001600160a01b0382166200045f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000258565b6000818152600260205260409020546001600160a01b031615620004c65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000258565b620004d460008383620006c6565b6001600160a01b0382166000908152600360205260408120805460019290620004ff9084906200095c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006200057e846001600160a01b03166200072660201b620032b71760201c565b15620006ba57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620005b890339089908890889060040162000995565b602060405180830381600087803b158015620005d357600080fd5b505af192505050801562000606575060408051601f3d908101601f191682019092526200060391810190620009eb565b60015b6200069f573d80801562000637576040519150601f19603f3d011682016040523d82523d6000602084013e6200063c565b606091505b508051620006975760405162461bcd60e51b8152602060048201526032602482015260008051602062005b4383398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000258565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620006be565b5060015b949350505050565b60065460ff16156200070e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000258565b620004028383836200040260201b620010d31760201c565b6001600160a01b03163b151590565b828054620007439062000a1e565b90600052602060002090601f016020900481019282620007675760008555620007b2565b82601f106200078257805160ff1916838001178555620007b2565b82800160010185558215620007b2579182015b82811115620007b257825182559160200191906001019062000795565b50620007c0929150620007c4565b5090565b5b80821115620007c05760008155600101620007c5565b80516001600160a01b0381168114620007f357600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200082b57818101518382015260200162000811565b838111156200083b576000848401525b50505050565b60008060008060008060c087890312156200085b57600080fd5b6200086687620007db565b60208801519096506001600160401b03808211156200088457600080fd5b818901915089601f8301126200089957600080fd5b815181811115620008ae57620008ae620007f8565b604051601f8201601f19908116603f01168101908382118183101715620008d957620008d9620007f8565b816040528281528c6020848701011115620008f357600080fd5b620009068360208301602088016200080e565b80995050505050506200091c60408801620007db565b93506200092c60608801620007db565b92506080870151915060a087015190509295509295509295565b634e487b7160e01b600052601160045260246000fd5b6000821982111562000972576200097262000946565b500190565b60006000198214156200098e576200098e62000946565b5060010190565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620009d48160a08501602087016200080e565b601f01601f19169190910160a00195945050505050565b600060208284031215620009fe57600080fd5b81516001600160e01b03198116811462000a1757600080fd5b9392505050565b600181811c9082168062000a3357607f821691505b6020821081141562000a5557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161509262000ab1600039600081816111a401526112c5015260006112a401526000818161200801526133670152600081816111c6015281816127ae015261333801526150926000f3fe60806040526004361061049b5760003560e01c80637c86bcb81161025e578063af9a1cd211610143578063dcc7ba24116100bb578063f2fde38b1161008a578063fc1a1c361161006f578063fc1a1c3614610c79578063fdab4d5e14610c8f578063ff44e91514610caf57600080fd5b8063f2fde38b14610c44578063f4bf621c14610c6457600080fd5b8063dcc7ba2414610bae578063e985e9c514610bc8578063ec596b7214610c11578063f19e75d414610c2457600080fd5b8063c6ab67a311610112578063c87b56dd116100f7578063c87b56dd14610b63578063d082e38114610b83578063dc8c57b414610b9957600080fd5b8063c6ab67a314610b2e578063c82bc61d14610b4357600080fd5b8063af9a1cd214610aae578063b88d4fde14610ace578063bb84e74f14610aee578063be3fbaeb14610b0e57600080fd5b806395d89b41116101d6578063a22cb465116101a5578063a5b1159d1161018a578063a5b1159d14610a63578063aa3d177014610a78578063abc710b414610a8e57600080fd5b8063a22cb46514610a2d578063a53ad00d14610a4d57600080fd5b806395d89b41146109d5578063998ead89146109ea5780639f0862c814610a00578063a0712d6814610a1a57600080fd5b806381fa69bc1161022d5780638da5cb5b116102125780638da5cb5b1461097d5780639182a9df146109a057806394985ddd146109b557600080fd5b806381fa69bc146109485780638456cb591461096857600080fd5b80637c86bcb8146108c95780637d7fac6e146108e85780637faa50871461090857806380833d781461092857600080fd5b806342842e0e11610384578063603f4d52116102fc5780636fb8f38d116102cb578063715018a6116102b0578063715018a61461087e578063717d57d31461089357806374b83b4f146108b357600080fd5b80636fb8f38d1461084957806370a082311461085e57600080fd5b8063603f4d52146107c65780636352211e146107f357806366e6c8af1461081357806368cccfb51461083357600080fd5b806355f804b3116103535780635bce8aa2116103385780635bce8aa2146107845780635c975abb14610799578063602246e3146107b157600080fd5b806355f804b3146107445780635b7633d01461076457600080fd5b806342842e0e146106ce57806349db380b146106ee57806350a30f001461070e578063516bb99d1461072e57600080fd5b806323b872dd1161041757806332cb6b0c116103e65780633ccfd60b116103cb5780633ccfd60b1461068a5780633f2266691461069f5780633f4ba83a146106b957600080fd5b806332cb6b0c1461065457806334c364581461066a57600080fd5b806323b872dd146105ea57806326eb1b3d1461060a5780632c84b5a21461061f57806331a53e9a1461063f57600080fd5b8063081812fc1161046e5780630e86eb8d116104535780630e86eb8d146105915780630f1876a2146105b557806310969523146105ca57600080fd5b8063081812fc14610539578063095ea7b31461057157600080fd5b80630193d84c146104a057806301ffc9a7146104c2578063046dc166146104f757806306fdde0314610517575b600080fd5b3480156104ac57600080fd5b506104c06104bb3660046146fc565b610cc4565b005b3480156104ce57600080fd5b506104e26104dd36600461472b565b610d1c565b60405190151581526020015b60405180910390f35b34801561050357600080fd5b506104c061051236600461476b565b610db9565b34801561052357600080fd5b5061052c610e7f565b6040516104ee91906147de565b34801561054557600080fd5b506105596105543660046146fc565b610f11565b6040516001600160a01b0390911681526020016104ee565b34801561057d57600080fd5b506104c061058c3660046147f1565b610fa6565b34801561059d57600080fd5b506105a760125481565b6040519081526020016104ee565b3480156105c157600080fd5b506104c06110d8565b3480156105d657600080fd5b506104c06105e53660046148da565b6112ec565b3480156105f657600080fd5b506104c061060536600461490f565b6113ad565b34801561061657600080fd5b5061052c611434565b34801561062b57600080fd5b506104c061063a366004614959565b6114c5565b34801561064b57600080fd5b506105a7604281565b34801561066057600080fd5b506105a7610ec181565b34801561067657600080fd5b506104e26106853660046149b8565b611526565b34801561069657600080fd5b506104c061153f565b3480156106ab57600080fd5b506018546104e29060ff1681565b3480156106c557600080fd5b506104c0611598565b3480156106da57600080fd5b506104c06106e936600461490f565b6115f0565b3480156106fa57600080fd5b506104c06107093660046146fc565b61160b565b34801561071a57600080fd5b506104c06107293660046148da565b61165e565b34801561073a57600080fd5b506105a761271081565b34801561075057600080fd5b506104c061075f3660046148da565b6116bf565b34801561077057600080fd5b50600b54610559906001600160a01b031681565b34801561079057600080fd5b506104c0611847565b3480156107a557600080fd5b5060065460ff166104e2565b3480156107bd57600080fd5b506105a7600281565b3480156107d257600080fd5b50600d546107e69062010000900460ff1681565b6040516104ee9190614a2b565b3480156107ff57600080fd5b5061055961080e3660046146fc565b61191d565b34801561081f57600080fd5b506104c061082e36600461476b565b6119a8565b34801561083f57600080fd5b506105a7600e5481565b34801561085557600080fd5b506105a7600181565b34801561086a57600080fd5b506105a761087936600461476b565b611a5c565b34801561088a57600080fd5b506104c0611af6565b34801561089f57600080fd5b506104c06108ae3660046146fc565b611b4e565b3480156108bf57600080fd5b506105a760115481565b3480156108d557600080fd5b50600d546104e290610100900460ff1681565b3480156108f457600080fd5b506104c06109033660046146fc565b611ba1565b34801561091457600080fd5b506104c0610923366004614a53565b611bf4565b34801561093457600080fd5b506104c061094336600461476b565b611cc0565b34801561095457600080fd5b506104c0610963366004614b4e565b611d2f565b34801561097457600080fd5b506104c0611ef7565b34801561098957600080fd5b5060065461010090046001600160a01b0316610559565b3480156109ac57600080fd5b506104c0611f4d565b3480156109c157600080fd5b506104c06109d0366004614bfd565b611ffd565b3480156109e157600080fd5b5061052c61207f565b3480156109f657600080fd5b506105a760105481565b348015610a0c57600080fd5b506016546104e29060ff1681565b6104c0610a283660046146fc565b61208e565b348015610a3957600080fd5b506104c0610a48366004614c1f565b6122c0565b348015610a5957600080fd5b506105a761029a81565b348015610a6f57600080fd5b506104c06122cb565b348015610a8457600080fd5b506105a760175481565b348015610a9a57600080fd5b506105a7610aa93660046146fc565b6123d4565b348015610aba57600080fd5b506105a7610ac93660046146fc565b612449565b348015610ada57600080fd5b506104c0610ae9366004614c56565b6126c8565b348015610afa57600080fd5b506104c0610b093660046146fc565b612756565b348015610b1a57600080fd5b506104c0610b293660046148da565b612854565b348015610b3a57600080fd5b5061052c612937565b348015610b4f57600080fd5b50610559610b5e3660046146fc565b6129a3565b348015610b6f57600080fd5b5061052c610b7e3660046146fc565b6129cd565b348015610b8f57600080fd5b506105a760145481565b348015610ba557600080fd5b506105a7612b47565b348015610bba57600080fd5b50600d546104e29060ff1681565b348015610bd457600080fd5b506104e2610be3366004614cd2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6104c0610c1f366004614d05565b612ba3565b348015610c3057600080fd5b506104c0610c3f3660046146fc565b612ebd565b348015610c5057600080fd5b506104c0610c5f36600461476b565b613002565b348015610c7057600080fd5b506104c06130d5565b348015610c8557600080fd5b506105a7600f5481565b348015610c9b57600080fd5b506104c0610caa3660046146fc565b613191565b348015610cbb57600080fd5b506104c06131e4565b6006546001600160a01b03610100909104163314610d175760405162461bcd60e51b8152602060048201819052602482015260008051602061503d83398151915260448201526064015b60405180910390fd5b601255565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610d7f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610db357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b03610100909104163314610e075760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b038116610e5d5760405162461bcd60e51b815260206004820152601a60248201527f5369676e657220616464726573732063616e6e6f7420626520300000000000006044820152606401610d0e565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610e8e90614d58565b80601f0160208091040260200160405190810160405280929190818152602001828054610eba90614d58565b8015610f075780601f10610edc57610100808354040283529160200191610f07565b820191906000526020600020905b815481529060010190602001808311610eea57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610f8a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d0e565b506000908152600460205260409020546001600160a01b031690565b6000610fb18261191d565b9050806001600160a01b0316836001600160a01b0316141561103b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d0e565b336001600160a01b038216148061105757506110578133610be3565b6110c95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d0e565b6110d383836132c6565b505050565b6006546001600160a01b036101009091041633146111265760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600954156111765760405162461bcd60e51b815260206004820152601560248201527f4f666673657420697320616c72656164792073657400000000000000000000006044820152606401610d0e565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f0000000000000000000000000000000000000000000000000000000000000000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561121057600080fd5b505afa158015611224573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112489190614d93565b10156112965760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768204c494e4b00000000000000000000000000000000006044820152606401610d0e565b61129e612937565b506112e97f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000613334565b50565b6006546001600160a01b0361010090910416331461133a5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600a805461134790614d58565b1590506113965760405162461bcd60e51b815260206004820152601e60248201527f50726f76656e616e6365206861736820697320616c72656164792073657400006044820152606401610d0e565b80516113a990600a906020840190614663565b5050565b6113b733826134bf565b6114295760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d0e565b6110d38383836135b2565b60606015805461144390614d58565b151590506114b85760405162461bcd60e51b8152602060048201526024808201527f446f6f6d736b756c6c2070726f76656e616e63652068617368206973206e6f7460448201527f20736574000000000000000000000000000000000000000000000000000000006064820152608401610d0e565b60158054610e8e90614d58565b6006546001600160a01b036101009091041633146115135760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6016805460ff1916911515919091179055565b60006115348585858561378a565b90505b949350505050565b6006546001600160a01b0361010090910416331461158d5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b476112e933826138a3565b6006546001600160a01b036101009091041633146115e65760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6115ee6139bc565b565b6110d3838383604051806020016040528060008152506126c8565b6006546001600160a01b036101009091041633146116595760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b601055565b6006546001600160a01b036101009091041633146116ac5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b80516113a9906019906020840190614663565b6006546001600160a01b0361010090910416331461170d5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600d54610100900460ff16156117655760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c697365640000000000006044820152606401610d0e565b6000600c805461177490614d58565b80601f01602080910402602001604051908101604052809291908181526020018280546117a090614d58565b80156117ed5780601f106117c2576101008083540402835291602001916117ed565b820191906000526020600020905b8154815290600101906020018083116117d057829003601f168201915b5050855193945061180993600c93506020870192509050614663565b507f944f9ca1b679ec8381ef5d5419085e9ea4df3b274eb009910b19bd295bd18fc3818360405161183b929190614dac565b60405180910390a15050565b6006546001600160a01b036101009091041633146118955760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6002600d5462010000900460ff1660028111156118b4576118b4614a15565b14156119025760405162461bcd60e51b815260206004820152601b60248201527f526567756c61722073616c6520616c72656164792061637469766500000000006044820152606401610d0e565b600d80546002919062ff0000191662010000835b0217905550565b6000818152600260205260408120546001600160a01b031680610db35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d0e565b6006546001600160a01b036101009091041633146119f65760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b03166000818152601b60205260408120805460ff19166001908117909155601c805491820181559091527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2110180546001600160a01b0319169091179055565b60006001600160a01b038216611ada5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d0e565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03610100909104163314611b445760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6115ee6000613a58565b6006546001600160a01b03610100909104163314611b9c5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600f55565b6006546001600160a01b03610100909104163314611bef5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b601155565b6006546001600160a01b03610100909104163314611c425760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b60185460ff1615611ca15760405162461bcd60e51b8152602060048201526024808201527f446f6f6d736b756c6c206d6574616461746120616c72656164792066696e616c6044820152631a5cd95960e21b6064820152608401610d0e565b6000828152601a6020908152604090912082516110d392840190614663565b6006546001600160a01b03610100909104163314611d0e5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b03166000908152601b60205260409020805460ff19169055565b6006546001600160a01b03610100909104163314611d7d5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b60185460ff1615611ddc5760405162461bcd60e51b8152602060048201526024808201527f446f6f6d736b756c6c206d6574616461746120616c72656164792066696e616c6044820152631a5cd95960e21b6064820152608401610d0e565b8051825114611e2d5760405162461bcd60e51b815260206004820152601960248201527f417272617973206f6620646966666572656e742073697a6573000000000000006044820152606401610d0e565b606482511115611e7f5760405162461bcd60e51b815260206004820152601160248201527f4d61782031303020746f6b656e204944730000000000000000000000000000006044820152606401610d0e565b60005b82518110156110d357818181518110611e9d57611e9d614dda565b6020026020010151601a6000858481518110611ebb57611ebb614dda565b602002602001015181526020019081526020016000209080519060200190611ee4929190614663565b5080611eef81614e06565b915050611e82565b6006546001600160a01b03610100909104163314611f455760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6115ee613ac9565b6006546001600160a01b03610100909104163314611f9b5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600d5460ff1615611fee5760405162461bcd60e51b815260206004820152601960248201527f4d6574616461746120616c72656164792072657665616c6564000000000000006044820152606401610d0e565b600d805460ff19166001179055565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146120755760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610d0e565b6113a98282613b51565b606060018054610e8e90614d58565b600260075414156120e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0e565b60026007819055600d5462010000900460ff16600281111561210557612105614a15565b146121525760405162461bcd60e51b815260206004820152601760248201527f526567756c61722073616c65206e6f74206163746976650000000000000000006044820152606401610d0e565b60008111801561216457506010548111155b6121bc5760405162461bcd60e51b8152602060048201526024808201527f496e636f7272656374206e756d626572206f6620746f6b656e732072657175656044820152631cdd195960e21b6064820152608401610d0e565b610ec1816014546121cd9190614e21565b111561221b5760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c79206578636565646564000000000000000000000000006044820152606401610d0e565b34600e548261222a9190614e39565b146122775760405162461bcd60e51b815260206004820152601260248201527f496e636f7272656374204554482073656e7400000000000000000000000000006044820152606401610d0e565b60005b818110156122b75761228f335b601454613b6f565b6014805490600061229f83614e06565b919050555080806122af90614e06565b91505061227a565b50506001600755565b6113a9338383613b89565b6006546001600160a01b036101009091041633146123195760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600d5460ff1661236b5760405162461bcd60e51b815260206004820152601560248201527f4d65746164617461206e6f742072657665616c656400000000000000000000006044820152606401610d0e565b600d54610100900460ff16156123c35760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c697365640000000000006044820152606401610d0e565b600d805461ff001916610100179055565b600060018214806123e55750600282145b6124315760405162461bcd60e51b815260206004820152601660248201527f556e6b6e6f776e2077686974656c6973742074696572000000000000000000006044820152606401610d0e565b6001821461244157601254610db3565b505060115490565b336000908152601b602052604081205460ff166124a85760405162461bcd60e51b815260206004820152601c60248201527f5468652073656e646572206973206e6f7420617574686f7269736564000000006044820152606401610d0e565b600260075414156124fb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0e565b600260075560165460ff166125525760405162461bcd60e51b815260206004820152601d60248201527f446f6f6d736b756c6c206272656564696e67206e6f74206163746976650000006044820152606401610d0e565b61029a601754106125a55760405162461bcd60e51b815260206004820152601d60248201527f446f6f6d736b756c6c206d617820737570706c792065786365656465640000006044820152606401610d0e565b6000828152600260205260409020546001600160a01b03166126215760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0e565b3361262b8361191d565b6001600160a01b0316146126815760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420746865206f776e6572000000000000000000000000000000000000006044820152606401610d0e565b60006017546127106126939190614e21565b905061269e83613c58565b6126a83382613b6f565b601780549060006126b883614e06565b9091555050600160075592915050565b6126d233836134bf565b6127445760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d0e565b61275084848484613cff565b50505050565b6006546001600160a01b036101009091041633146127a45760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561281c57600080fd5b505af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a99190614e58565b6006546001600160a01b036101009091041633146128a25760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b601580546128af90614d58565b1590506129245760405162461bcd60e51b815260206004820152602860248201527f446f6f6d736b756c6c2070726f76656e616e6365206861736820697320616c7260448201527f65616479207365740000000000000000000000000000000000000000000000006064820152608401610d0e565b80516113a9906015906020840190614663565b6060600a805461294690614d58565b151590506129965760405162461bcd60e51b815260206004820152601a60248201527f50726f76656e616e63652068617368206973206e6f74207365740000000000006044820152606401610d0e565b600a8054610e8e90614d58565b601c81815481106129b357600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600260205260409020546060906001600160a01b0316612a4c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0e565b612710821015612a5f57610db382613d7d565b6000828152601a602052604081208054612a7890614d58565b90501115612ab5576000828152601a60209081526040918290209151612a9f929101614f0f565b6040516020818303038152906040529050919050565b60198054612ac290614d58565b80601f0160208091040260200160405190810160405280929190818152602001828054612aee90614d58565b8015612b3b5780601f10612b1057610100808354040283529160200191612b3b565b820191906000526020600020905b815481529060010190602001808311612b1e57829003601f168201915b50505050509050919050565b600060095460001415612b9c5760405162461bcd60e51b815260206004820152601160248201527f4f6666736574206973206e6f74207365740000000000000000000000000000006044820152606401610d0e565b5060095490565b60026007541415612bf65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0e565b60026007556001600d5462010000900460ff166002811115612c1a57612c1a614a15565b14612c675760405162461bcd60e51b815260206004820152601960248201527f57686974656c6973742073616c65206e6f7420616374697665000000000000006044820152606401610d0e565b60008411612cc35760405162461bcd60e51b8152602060048201526024808201527f496e636f7272656374206e756d626572206f6620746f6b656e732072657175656044820152631cdd195960e21b6064820152608401610d0e565b610ec184601454612cd49190614e21565b1115612d225760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c79206578636565646564000000000000000000000000006044820152606401610d0e565b34600f5485612d319190614e39565b14612d7e5760405162461bcd60e51b815260206004820152601260248201527f496e636f7272656374204554482073656e7400000000000000000000000000006044820152606401610d0e565b612d8a8282853361378a565b612dd65760405162461bcd60e51b815260206004820152601660248201527f57616c6c6574206e6f742077686974656c6973746564000000000000000000006044820152606401610d0e565b6000612de1846123d4565b336000908152601360205260409020549091508190612e01908790614e21565b1115612e4f5760405162461bcd60e51b815260206004820152601e60248201527f4d617820746f6b656e73207065722077616c6c657420657863656564656400006044820152606401610d0e565b3360009081526013602052604081208054879290612e6e908490614e21565b90915550600090505b85811015612eb057612e8833612287565b60148054906000612e9883614e06565b91905055508080612ea890614e06565b915050612e77565b5050600160075550505050565b6006546001600160a01b03610100909104163314612f0b5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b60008111612f675760405162461bcd60e51b8152602060048201526024808201527f496e636f7272656374206e756d626572206f6620746f6b656e732072657175656044820152631cdd195960e21b6064820152608401610d0e565b610ec181601454612f789190614e21565b1115612fc65760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c79206578636565646564000000000000000000000000006044820152606401610d0e565b60005b818110156113a957612fda33612287565b60148054906000612fea83614e06565b91905055508080612ffa90614e06565b915050612fc9565b6006546001600160a01b036101009091041633146130505760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b0381166130cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d0e565b6112e981613a58565b6006546001600160a01b036101009091041633146131235760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b60185460ff16156131825760405162461bcd60e51b8152602060048201526024808201527f446f6f6d736b756c6c206d6574616461746120616c72656164792066696e616c6044820152631a5cd95960e21b6064820152608401610d0e565b6018805460ff19166001179055565b6006546001600160a01b036101009091041633146131df5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600e55565b6006546001600160a01b036101009091041633146132325760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600d5462010000900460ff16600281111561325157613251614a15565b141561329f5760405162461bcd60e51b815260206004820152601d60248201527f57686974656c6973742073616c6520616c7265616479206163746976650000006044820152606401610d0e565b600d80546001919062ff000019166201000083611916565b6001600160a01b03163b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906132fb8261191d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016133a4929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016133d193929190614f41565b602060405180830381600087803b1580156133eb57600080fd5b505af11580156133ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134239190614e58565b50600083815260086020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261347f906001614e21565b6000858152600860205260409020556115378482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000818152600260205260408120546001600160a01b03166135385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d0e565b60006135438361191d565b9050806001600160a01b0316846001600160a01b0316148061357e5750836001600160a01b031661357384610f11565b6001600160a01b0316145b8061153757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611537565b826001600160a01b03166135c58261191d565b6001600160a01b0316146136415760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610d0e565b6001600160a01b0382166136bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d0e565b6136c7838383613e2f565b6136d26000826132c6565b6001600160a01b03831660009081526003602052604081208054600192906136fb908490614f69565b90915550506001600160a01b0382166000908152600360205260408120805460019290613729908490614e21565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008083836040516020016137bb92919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b604051602081830303815290604052805190602001209050600061382c826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006138708289898080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613e8292505050565b90506001600160a01b038116158015906138975750600b546001600160a01b038281169116145b98975050505050505050565b804710156138f35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d0e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613940576040519150601f19603f3d011682016040523d82523d6000602084013e613945565b606091505b50509050806110d35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d0e565b60065460ff16613a0e5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610d0e565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615613b1c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d0e565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613a3b3390565b613b5e6042610ec1614f69565b613b689082614f96565b6009555050565b6113a9828260405180602001604052806000815250613ea6565b816001600160a01b0316836001600160a01b03161415613beb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d0e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000613c638261191d565b9050613c7181600084613e2f565b613c7c6000836132c6565b6001600160a01b0381166000908152600360205260408120805460019290613ca5908490614f69565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b613d0a8484846135b2565b613d1684848484613f24565b6127505760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d0e565b6000818152600260205260409020546060906001600160a01b0316613dfc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0e565b600d5460ff16613e1357600c8054612ac290614d58565b600c613e1e83614079565b604051602001612a9f929190614faa565b60065460ff16156110d35760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d0e565b6000806000613e9185856141ab565b91509150613e9e8161421b565b509392505050565b613eb083836143d6565b613ebd6000848484613f24565b6110d35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d0e565b60006001600160a01b0384163b1561407157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f68903390899088908890600401614fcf565b602060405180830381600087803b158015613f8257600080fd5b505af1925050508015613fb2575060408051601f3d908101601f19168201909252613faf9181019061500b565b60015b614057573d808015613fe0576040519150601f19603f3d011682016040523d82523d6000602084013e613fe5565b606091505b50805161404f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d0e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611537565b506001611537565b6060816140b957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156140e357806140cd81614e06565b91506140dc9050600a83615028565b91506140bd565b60008167ffffffffffffffff8111156140fe576140fe61481b565b6040519080825280601f01601f191660200182016040528015614128576020820181803683370190505b5090505b84156115375761413d600183614f69565b915061414a600a86614f96565b614155906030614e21565b60f81b81838151811061416a5761416a614dda565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506141a4600a86615028565b945061412c565b6000808251604114156141e25760208301516040840151606085015160001a6141d687828585614524565b94509450505050614214565b82516040141561420c5760208301516040840151614201868383614611565b935093505050614214565b506000905060025b9250929050565b600081600481111561422f5761422f614a15565b14156142385750565b600181600481111561424c5761424c614a15565b141561429a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d0e565b60028160048111156142ae576142ae614a15565b14156142fc5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d0e565b600381600481111561431057614310614a15565b14156143695760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d0e565b600481600481111561437d5761437d614a15565b14156112e95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d0e565b6001600160a01b03821661442c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d0e565b6000818152600260205260409020546001600160a01b0316156144915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d0e565b61449d60008383613e2f565b6001600160a01b03821660009081526003602052604081208054600192906144c6908490614e21565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561455b5750600090506003614608565b8460ff16601b1415801561457357508460ff16601c14155b156145845750600090506004614608565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156145d8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661460157600060019250925050614608565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161464760ff86901c601b614e21565b905061465587828885614524565b935093505050935093915050565b82805461466f90614d58565b90600052602060002090601f01602090048101928261469157600085556146d7565b82601f106146aa57805160ff19168380011785556146d7565b828001600101855582156146d7579182015b828111156146d75782518255916020019190600101906146bc565b506146e39291506146e7565b5090565b5b808211156146e357600081556001016146e8565b60006020828403121561470e57600080fd5b5035919050565b6001600160e01b0319811681146112e957600080fd5b60006020828403121561473d57600080fd5b813561474881614715565b9392505050565b80356001600160a01b038116811461476657600080fd5b919050565b60006020828403121561477d57600080fd5b6147488261474f565b60005b838110156147a1578181015183820152602001614789565b838111156127505750506000910152565b600081518084526147ca816020860160208601614786565b601f01601f19169290920160200192915050565b60208152600061474860208301846147b2565b6000806040838503121561480457600080fd5b61480d8361474f565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561485a5761485a61481b565b604052919050565b600067ffffffffffffffff83111561487c5761487c61481b565b61488f601f8401601f1916602001614831565b90508281528383830111156148a357600080fd5b828260208301376000602084830101529392505050565b600082601f8301126148cb57600080fd5b61474883833560208501614862565b6000602082840312156148ec57600080fd5b813567ffffffffffffffff81111561490357600080fd5b611537848285016148ba565b60008060006060848603121561492457600080fd5b61492d8461474f565b925061493b6020850161474f565b9150604084013590509250925092565b80151581146112e957600080fd5b60006020828403121561496b57600080fd5b81356147488161494b565b60008083601f84011261498857600080fd5b50813567ffffffffffffffff8111156149a057600080fd5b60208301915083602082850101111561421457600080fd5b600080600080606085870312156149ce57600080fd5b843567ffffffffffffffff8111156149e557600080fd5b6149f187828801614976565b90955093505060208501359150614a0a6040860161474f565b905092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160038310614a4d57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215614a6657600080fd5b82359150602083013567ffffffffffffffff811115614a8457600080fd5b614a90858286016148ba565b9150509250929050565b600067ffffffffffffffff821115614ab457614ab461481b565b5060051b60200190565b600082601f830112614acf57600080fd5b81356020614ae4614adf83614a9a565b614831565b82815260059290921b84018101918181019086841115614b0357600080fd5b8286015b84811015614b4357803567ffffffffffffffff811115614b275760008081fd5b614b358986838b01016148ba565b845250918301918301614b07565b509695505050505050565b60008060408385031215614b6157600080fd5b823567ffffffffffffffff80821115614b7957600080fd5b818501915085601f830112614b8d57600080fd5b81356020614b9d614adf83614a9a565b82815260059290921b84018101918181019089841115614bbc57600080fd5b948201945b83861015614bda57853582529482019490820190614bc1565b96505086013592505080821115614bf057600080fd5b50614a9085828601614abe565b60008060408385031215614c1057600080fd5b50508035926020909101359150565b60008060408385031215614c3257600080fd5b614c3b8361474f565b91506020830135614c4b8161494b565b809150509250929050565b60008060008060808587031215614c6c57600080fd5b614c758561474f565b9350614c836020860161474f565b925060408501359150606085013567ffffffffffffffff811115614ca657600080fd5b8501601f81018713614cb757600080fd5b614cc687823560208401614862565b91505092959194509250565b60008060408385031215614ce557600080fd5b614cee8361474f565b9150614cfc6020840161474f565b90509250929050565b60008060008060608587031215614d1b57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614d4057600080fd5b614d4c87828801614976565b95989497509550505050565b600181811c90821680614d6c57607f821691505b60208210811415614d8d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215614da557600080fd5b5051919050565b604081526000614dbf60408301856147b2565b8281036020840152614dd181856147b2565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415614e1a57614e1a614df0565b5060010190565b60008219821115614e3457614e34614df0565b500190565b6000816000190483118215151615614e5357614e53614df0565b500290565b600060208284031215614e6a57600080fd5b81516147488161494b565b8054600090600181811c9080831680614e8f57607f831692505b6020808410821415614eb157634e487b7160e01b600052602260045260246000fd5b818015614ec55760018114614ed657614f03565b60ff19861689528489019650614f03565b60008881526020902060005b86811015614efb5781548b820152908501908301614ee2565b505084890196505b50505050505092915050565b7f697066733a2f2f00000000000000000000000000000000000000000000000000815260006147486007830184614e75565b6001600160a01b038416815282602082015260606040820152600061153460608301846147b2565b600082821015614f7b57614f7b614df0565b500390565b634e487b7160e01b600052601260045260246000fd5b600082614fa557614fa5614f80565b500690565b6000614fb68285614e75565b8351614fc6818360208801614786565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261500160808301846147b2565b9695505050505050565b60006020828403121561501d57600080fd5b815161474881614715565b60008261503757615037614f80565b50049056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220765e9e533535b16f5b3773633d098dde58a4cfedc46b14fca65081ee407f3d9264736f6c634300080900334552433732313a207472616e7366657220746f206e6f6e204552433732315265000000000000000000000000962357f63052a2b862ddc32ccbc8fb06f5689e1600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d645953744d71575a517a7769574c4d6159565067507548354363384a7668357778416d37737436524657694d0000000000000000000000

Deployed Bytecode

0x60806040526004361061049b5760003560e01c80637c86bcb81161025e578063af9a1cd211610143578063dcc7ba24116100bb578063f2fde38b1161008a578063fc1a1c361161006f578063fc1a1c3614610c79578063fdab4d5e14610c8f578063ff44e91514610caf57600080fd5b8063f2fde38b14610c44578063f4bf621c14610c6457600080fd5b8063dcc7ba2414610bae578063e985e9c514610bc8578063ec596b7214610c11578063f19e75d414610c2457600080fd5b8063c6ab67a311610112578063c87b56dd116100f7578063c87b56dd14610b63578063d082e38114610b83578063dc8c57b414610b9957600080fd5b8063c6ab67a314610b2e578063c82bc61d14610b4357600080fd5b8063af9a1cd214610aae578063b88d4fde14610ace578063bb84e74f14610aee578063be3fbaeb14610b0e57600080fd5b806395d89b41116101d6578063a22cb465116101a5578063a5b1159d1161018a578063a5b1159d14610a63578063aa3d177014610a78578063abc710b414610a8e57600080fd5b8063a22cb46514610a2d578063a53ad00d14610a4d57600080fd5b806395d89b41146109d5578063998ead89146109ea5780639f0862c814610a00578063a0712d6814610a1a57600080fd5b806381fa69bc1161022d5780638da5cb5b116102125780638da5cb5b1461097d5780639182a9df146109a057806394985ddd146109b557600080fd5b806381fa69bc146109485780638456cb591461096857600080fd5b80637c86bcb8146108c95780637d7fac6e146108e85780637faa50871461090857806380833d781461092857600080fd5b806342842e0e11610384578063603f4d52116102fc5780636fb8f38d116102cb578063715018a6116102b0578063715018a61461087e578063717d57d31461089357806374b83b4f146108b357600080fd5b80636fb8f38d1461084957806370a082311461085e57600080fd5b8063603f4d52146107c65780636352211e146107f357806366e6c8af1461081357806368cccfb51461083357600080fd5b806355f804b3116103535780635bce8aa2116103385780635bce8aa2146107845780635c975abb14610799578063602246e3146107b157600080fd5b806355f804b3146107445780635b7633d01461076457600080fd5b806342842e0e146106ce57806349db380b146106ee57806350a30f001461070e578063516bb99d1461072e57600080fd5b806323b872dd1161041757806332cb6b0c116103e65780633ccfd60b116103cb5780633ccfd60b1461068a5780633f2266691461069f5780633f4ba83a146106b957600080fd5b806332cb6b0c1461065457806334c364581461066a57600080fd5b806323b872dd146105ea57806326eb1b3d1461060a5780632c84b5a21461061f57806331a53e9a1461063f57600080fd5b8063081812fc1161046e5780630e86eb8d116104535780630e86eb8d146105915780630f1876a2146105b557806310969523146105ca57600080fd5b8063081812fc14610539578063095ea7b31461057157600080fd5b80630193d84c146104a057806301ffc9a7146104c2578063046dc166146104f757806306fdde0314610517575b600080fd5b3480156104ac57600080fd5b506104c06104bb3660046146fc565b610cc4565b005b3480156104ce57600080fd5b506104e26104dd36600461472b565b610d1c565b60405190151581526020015b60405180910390f35b34801561050357600080fd5b506104c061051236600461476b565b610db9565b34801561052357600080fd5b5061052c610e7f565b6040516104ee91906147de565b34801561054557600080fd5b506105596105543660046146fc565b610f11565b6040516001600160a01b0390911681526020016104ee565b34801561057d57600080fd5b506104c061058c3660046147f1565b610fa6565b34801561059d57600080fd5b506105a760125481565b6040519081526020016104ee565b3480156105c157600080fd5b506104c06110d8565b3480156105d657600080fd5b506104c06105e53660046148da565b6112ec565b3480156105f657600080fd5b506104c061060536600461490f565b6113ad565b34801561061657600080fd5b5061052c611434565b34801561062b57600080fd5b506104c061063a366004614959565b6114c5565b34801561064b57600080fd5b506105a7604281565b34801561066057600080fd5b506105a7610ec181565b34801561067657600080fd5b506104e26106853660046149b8565b611526565b34801561069657600080fd5b506104c061153f565b3480156106ab57600080fd5b506018546104e29060ff1681565b3480156106c557600080fd5b506104c0611598565b3480156106da57600080fd5b506104c06106e936600461490f565b6115f0565b3480156106fa57600080fd5b506104c06107093660046146fc565b61160b565b34801561071a57600080fd5b506104c06107293660046148da565b61165e565b34801561073a57600080fd5b506105a761271081565b34801561075057600080fd5b506104c061075f3660046148da565b6116bf565b34801561077057600080fd5b50600b54610559906001600160a01b031681565b34801561079057600080fd5b506104c0611847565b3480156107a557600080fd5b5060065460ff166104e2565b3480156107bd57600080fd5b506105a7600281565b3480156107d257600080fd5b50600d546107e69062010000900460ff1681565b6040516104ee9190614a2b565b3480156107ff57600080fd5b5061055961080e3660046146fc565b61191d565b34801561081f57600080fd5b506104c061082e36600461476b565b6119a8565b34801561083f57600080fd5b506105a7600e5481565b34801561085557600080fd5b506105a7600181565b34801561086a57600080fd5b506105a761087936600461476b565b611a5c565b34801561088a57600080fd5b506104c0611af6565b34801561089f57600080fd5b506104c06108ae3660046146fc565b611b4e565b3480156108bf57600080fd5b506105a760115481565b3480156108d557600080fd5b50600d546104e290610100900460ff1681565b3480156108f457600080fd5b506104c06109033660046146fc565b611ba1565b34801561091457600080fd5b506104c0610923366004614a53565b611bf4565b34801561093457600080fd5b506104c061094336600461476b565b611cc0565b34801561095457600080fd5b506104c0610963366004614b4e565b611d2f565b34801561097457600080fd5b506104c0611ef7565b34801561098957600080fd5b5060065461010090046001600160a01b0316610559565b3480156109ac57600080fd5b506104c0611f4d565b3480156109c157600080fd5b506104c06109d0366004614bfd565b611ffd565b3480156109e157600080fd5b5061052c61207f565b3480156109f657600080fd5b506105a760105481565b348015610a0c57600080fd5b506016546104e29060ff1681565b6104c0610a283660046146fc565b61208e565b348015610a3957600080fd5b506104c0610a48366004614c1f565b6122c0565b348015610a5957600080fd5b506105a761029a81565b348015610a6f57600080fd5b506104c06122cb565b348015610a8457600080fd5b506105a760175481565b348015610a9a57600080fd5b506105a7610aa93660046146fc565b6123d4565b348015610aba57600080fd5b506105a7610ac93660046146fc565b612449565b348015610ada57600080fd5b506104c0610ae9366004614c56565b6126c8565b348015610afa57600080fd5b506104c0610b093660046146fc565b612756565b348015610b1a57600080fd5b506104c0610b293660046148da565b612854565b348015610b3a57600080fd5b5061052c612937565b348015610b4f57600080fd5b50610559610b5e3660046146fc565b6129a3565b348015610b6f57600080fd5b5061052c610b7e3660046146fc565b6129cd565b348015610b8f57600080fd5b506105a760145481565b348015610ba557600080fd5b506105a7612b47565b348015610bba57600080fd5b50600d546104e29060ff1681565b348015610bd457600080fd5b506104e2610be3366004614cd2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6104c0610c1f366004614d05565b612ba3565b348015610c3057600080fd5b506104c0610c3f3660046146fc565b612ebd565b348015610c5057600080fd5b506104c0610c5f36600461476b565b613002565b348015610c7057600080fd5b506104c06130d5565b348015610c8557600080fd5b506105a7600f5481565b348015610c9b57600080fd5b506104c0610caa3660046146fc565b613191565b348015610cbb57600080fd5b506104c06131e4565b6006546001600160a01b03610100909104163314610d175760405162461bcd60e51b8152602060048201819052602482015260008051602061503d83398151915260448201526064015b60405180910390fd5b601255565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610d7f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610db357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b03610100909104163314610e075760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b038116610e5d5760405162461bcd60e51b815260206004820152601a60248201527f5369676e657220616464726573732063616e6e6f7420626520300000000000006044820152606401610d0e565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610e8e90614d58565b80601f0160208091040260200160405190810160405280929190818152602001828054610eba90614d58565b8015610f075780601f10610edc57610100808354040283529160200191610f07565b820191906000526020600020905b815481529060010190602001808311610eea57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610f8a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d0e565b506000908152600460205260409020546001600160a01b031690565b6000610fb18261191d565b9050806001600160a01b0316836001600160a01b0316141561103b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d0e565b336001600160a01b038216148061105757506110578133610be3565b6110c95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d0e565b6110d383836132c6565b505050565b6006546001600160a01b036101009091041633146111265760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600954156111765760405162461bcd60e51b815260206004820152601560248201527f4f666673657420697320616c72656164792073657400000000000000000000006044820152606401610d0e565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f0000000000000000000000000000000000000000000000001bc16d674ec80000907f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b15801561121057600080fd5b505afa158015611224573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112489190614d93565b10156112965760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768204c494e4b00000000000000000000000000000000006044820152606401610d0e565b61129e612937565b506112e97faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec80000613334565b50565b6006546001600160a01b0361010090910416331461133a5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600a805461134790614d58565b1590506113965760405162461bcd60e51b815260206004820152601e60248201527f50726f76656e616e6365206861736820697320616c72656164792073657400006044820152606401610d0e565b80516113a990600a906020840190614663565b5050565b6113b733826134bf565b6114295760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d0e565b6110d38383836135b2565b60606015805461144390614d58565b151590506114b85760405162461bcd60e51b8152602060048201526024808201527f446f6f6d736b756c6c2070726f76656e616e63652068617368206973206e6f7460448201527f20736574000000000000000000000000000000000000000000000000000000006064820152608401610d0e565b60158054610e8e90614d58565b6006546001600160a01b036101009091041633146115135760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6016805460ff1916911515919091179055565b60006115348585858561378a565b90505b949350505050565b6006546001600160a01b0361010090910416331461158d5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b476112e933826138a3565b6006546001600160a01b036101009091041633146115e65760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6115ee6139bc565b565b6110d3838383604051806020016040528060008152506126c8565b6006546001600160a01b036101009091041633146116595760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b601055565b6006546001600160a01b036101009091041633146116ac5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b80516113a9906019906020840190614663565b6006546001600160a01b0361010090910416331461170d5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600d54610100900460ff16156117655760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c697365640000000000006044820152606401610d0e565b6000600c805461177490614d58565b80601f01602080910402602001604051908101604052809291908181526020018280546117a090614d58565b80156117ed5780601f106117c2576101008083540402835291602001916117ed565b820191906000526020600020905b8154815290600101906020018083116117d057829003601f168201915b5050855193945061180993600c93506020870192509050614663565b507f944f9ca1b679ec8381ef5d5419085e9ea4df3b274eb009910b19bd295bd18fc3818360405161183b929190614dac565b60405180910390a15050565b6006546001600160a01b036101009091041633146118955760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6002600d5462010000900460ff1660028111156118b4576118b4614a15565b14156119025760405162461bcd60e51b815260206004820152601b60248201527f526567756c61722073616c6520616c72656164792061637469766500000000006044820152606401610d0e565b600d80546002919062ff0000191662010000835b0217905550565b6000818152600260205260408120546001600160a01b031680610db35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d0e565b6006546001600160a01b036101009091041633146119f65760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b03166000818152601b60205260408120805460ff19166001908117909155601c805491820181559091527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2110180546001600160a01b0319169091179055565b60006001600160a01b038216611ada5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d0e565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03610100909104163314611b445760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6115ee6000613a58565b6006546001600160a01b03610100909104163314611b9c5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600f55565b6006546001600160a01b03610100909104163314611bef5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b601155565b6006546001600160a01b03610100909104163314611c425760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b60185460ff1615611ca15760405162461bcd60e51b8152602060048201526024808201527f446f6f6d736b756c6c206d6574616461746120616c72656164792066696e616c6044820152631a5cd95960e21b6064820152608401610d0e565b6000828152601a6020908152604090912082516110d392840190614663565b6006546001600160a01b03610100909104163314611d0e5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b03166000908152601b60205260409020805460ff19169055565b6006546001600160a01b03610100909104163314611d7d5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b60185460ff1615611ddc5760405162461bcd60e51b8152602060048201526024808201527f446f6f6d736b756c6c206d6574616461746120616c72656164792066696e616c6044820152631a5cd95960e21b6064820152608401610d0e565b8051825114611e2d5760405162461bcd60e51b815260206004820152601960248201527f417272617973206f6620646966666572656e742073697a6573000000000000006044820152606401610d0e565b606482511115611e7f5760405162461bcd60e51b815260206004820152601160248201527f4d61782031303020746f6b656e204944730000000000000000000000000000006044820152606401610d0e565b60005b82518110156110d357818181518110611e9d57611e9d614dda565b6020026020010151601a6000858481518110611ebb57611ebb614dda565b602002602001015181526020019081526020016000209080519060200190611ee4929190614663565b5080611eef81614e06565b915050611e82565b6006546001600160a01b03610100909104163314611f455760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6115ee613ac9565b6006546001600160a01b03610100909104163314611f9b5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600d5460ff1615611fee5760405162461bcd60e51b815260206004820152601960248201527f4d6574616461746120616c72656164792072657665616c6564000000000000006044820152606401610d0e565b600d805460ff19166001179055565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146120755760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610d0e565b6113a98282613b51565b606060018054610e8e90614d58565b600260075414156120e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0e565b60026007819055600d5462010000900460ff16600281111561210557612105614a15565b146121525760405162461bcd60e51b815260206004820152601760248201527f526567756c61722073616c65206e6f74206163746976650000000000000000006044820152606401610d0e565b60008111801561216457506010548111155b6121bc5760405162461bcd60e51b8152602060048201526024808201527f496e636f7272656374206e756d626572206f6620746f6b656e732072657175656044820152631cdd195960e21b6064820152608401610d0e565b610ec1816014546121cd9190614e21565b111561221b5760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c79206578636565646564000000000000000000000000006044820152606401610d0e565b34600e548261222a9190614e39565b146122775760405162461bcd60e51b815260206004820152601260248201527f496e636f7272656374204554482073656e7400000000000000000000000000006044820152606401610d0e565b60005b818110156122b75761228f335b601454613b6f565b6014805490600061229f83614e06565b919050555080806122af90614e06565b91505061227a565b50506001600755565b6113a9338383613b89565b6006546001600160a01b036101009091041633146123195760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600d5460ff1661236b5760405162461bcd60e51b815260206004820152601560248201527f4d65746164617461206e6f742072657665616c656400000000000000000000006044820152606401610d0e565b600d54610100900460ff16156123c35760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c697365640000000000006044820152606401610d0e565b600d805461ff001916610100179055565b600060018214806123e55750600282145b6124315760405162461bcd60e51b815260206004820152601660248201527f556e6b6e6f776e2077686974656c6973742074696572000000000000000000006044820152606401610d0e565b6001821461244157601254610db3565b505060115490565b336000908152601b602052604081205460ff166124a85760405162461bcd60e51b815260206004820152601c60248201527f5468652073656e646572206973206e6f7420617574686f7269736564000000006044820152606401610d0e565b600260075414156124fb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0e565b600260075560165460ff166125525760405162461bcd60e51b815260206004820152601d60248201527f446f6f6d736b756c6c206272656564696e67206e6f74206163746976650000006044820152606401610d0e565b61029a601754106125a55760405162461bcd60e51b815260206004820152601d60248201527f446f6f6d736b756c6c206d617820737570706c792065786365656465640000006044820152606401610d0e565b6000828152600260205260409020546001600160a01b03166126215760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0e565b3361262b8361191d565b6001600160a01b0316146126815760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420746865206f776e6572000000000000000000000000000000000000006044820152606401610d0e565b60006017546127106126939190614e21565b905061269e83613c58565b6126a83382613b6f565b601780549060006126b883614e06565b9091555050600160075592915050565b6126d233836134bf565b6127445760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d0e565b61275084848484613cff565b50505050565b6006546001600160a01b036101009091041633146127a45760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca1663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561281c57600080fd5b505af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a99190614e58565b6006546001600160a01b036101009091041633146128a25760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b601580546128af90614d58565b1590506129245760405162461bcd60e51b815260206004820152602860248201527f446f6f6d736b756c6c2070726f76656e616e6365206861736820697320616c7260448201527f65616479207365740000000000000000000000000000000000000000000000006064820152608401610d0e565b80516113a9906015906020840190614663565b6060600a805461294690614d58565b151590506129965760405162461bcd60e51b815260206004820152601a60248201527f50726f76656e616e63652068617368206973206e6f74207365740000000000006044820152606401610d0e565b600a8054610e8e90614d58565b601c81815481106129b357600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600260205260409020546060906001600160a01b0316612a4c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0e565b612710821015612a5f57610db382613d7d565b6000828152601a602052604081208054612a7890614d58565b90501115612ab5576000828152601a60209081526040918290209151612a9f929101614f0f565b6040516020818303038152906040529050919050565b60198054612ac290614d58565b80601f0160208091040260200160405190810160405280929190818152602001828054612aee90614d58565b8015612b3b5780601f10612b1057610100808354040283529160200191612b3b565b820191906000526020600020905b815481529060010190602001808311612b1e57829003601f168201915b50505050509050919050565b600060095460001415612b9c5760405162461bcd60e51b815260206004820152601160248201527f4f6666736574206973206e6f74207365740000000000000000000000000000006044820152606401610d0e565b5060095490565b60026007541415612bf65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0e565b60026007556001600d5462010000900460ff166002811115612c1a57612c1a614a15565b14612c675760405162461bcd60e51b815260206004820152601960248201527f57686974656c6973742073616c65206e6f7420616374697665000000000000006044820152606401610d0e565b60008411612cc35760405162461bcd60e51b8152602060048201526024808201527f496e636f7272656374206e756d626572206f6620746f6b656e732072657175656044820152631cdd195960e21b6064820152608401610d0e565b610ec184601454612cd49190614e21565b1115612d225760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c79206578636565646564000000000000000000000000006044820152606401610d0e565b34600f5485612d319190614e39565b14612d7e5760405162461bcd60e51b815260206004820152601260248201527f496e636f7272656374204554482073656e7400000000000000000000000000006044820152606401610d0e565b612d8a8282853361378a565b612dd65760405162461bcd60e51b815260206004820152601660248201527f57616c6c6574206e6f742077686974656c6973746564000000000000000000006044820152606401610d0e565b6000612de1846123d4565b336000908152601360205260409020549091508190612e01908790614e21565b1115612e4f5760405162461bcd60e51b815260206004820152601e60248201527f4d617820746f6b656e73207065722077616c6c657420657863656564656400006044820152606401610d0e565b3360009081526013602052604081208054879290612e6e908490614e21565b90915550600090505b85811015612eb057612e8833612287565b60148054906000612e9883614e06565b91905055508080612ea890614e06565b915050612e77565b5050600160075550505050565b6006546001600160a01b03610100909104163314612f0b5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b60008111612f675760405162461bcd60e51b8152602060048201526024808201527f496e636f7272656374206e756d626572206f6620746f6b656e732072657175656044820152631cdd195960e21b6064820152608401610d0e565b610ec181601454612f789190614e21565b1115612fc65760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c79206578636565646564000000000000000000000000006044820152606401610d0e565b60005b818110156113a957612fda33612287565b60148054906000612fea83614e06565b91905055508080612ffa90614e06565b915050612fc9565b6006546001600160a01b036101009091041633146130505760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600160a01b0381166130cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d0e565b6112e981613a58565b6006546001600160a01b036101009091041633146131235760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b60185460ff16156131825760405162461bcd60e51b8152602060048201526024808201527f446f6f6d736b756c6c206d6574616461746120616c72656164792066696e616c6044820152631a5cd95960e21b6064820152608401610d0e565b6018805460ff19166001179055565b6006546001600160a01b036101009091041633146131df5760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b600e55565b6006546001600160a01b036101009091041633146132325760405162461bcd60e51b8152602060048201819052602482015260008051602061503d8339815191526044820152606401610d0e565b6001600d5462010000900460ff16600281111561325157613251614a15565b141561329f5760405162461bcd60e51b815260206004820152601d60248201527f57686974656c6973742073616c6520616c7265616479206163746976650000006044820152606401610d0e565b600d80546001919062ff000019166201000083611916565b6001600160a01b03163b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906132fb8261191d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016133a4929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016133d193929190614f41565b602060405180830381600087803b1580156133eb57600080fd5b505af11580156133ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134239190614e58565b50600083815260086020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261347f906001614e21565b6000858152600860205260409020556115378482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000818152600260205260408120546001600160a01b03166135385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d0e565b60006135438361191d565b9050806001600160a01b0316846001600160a01b0316148061357e5750836001600160a01b031661357384610f11565b6001600160a01b0316145b8061153757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611537565b826001600160a01b03166135c58261191d565b6001600160a01b0316146136415760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610d0e565b6001600160a01b0382166136bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d0e565b6136c7838383613e2f565b6136d26000826132c6565b6001600160a01b03831660009081526003602052604081208054600192906136fb908490614f69565b90915550506001600160a01b0382166000908152600360205260408120805460019290613729908490614e21565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008083836040516020016137bb92919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b604051602081830303815290604052805190602001209050600061382c826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006138708289898080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613e8292505050565b90506001600160a01b038116158015906138975750600b546001600160a01b038281169116145b98975050505050505050565b804710156138f35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d0e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613940576040519150601f19603f3d011682016040523d82523d6000602084013e613945565b606091505b50509050806110d35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d0e565b60065460ff16613a0e5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610d0e565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615613b1c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d0e565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613a3b3390565b613b5e6042610ec1614f69565b613b689082614f96565b6009555050565b6113a9828260405180602001604052806000815250613ea6565b816001600160a01b0316836001600160a01b03161415613beb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d0e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000613c638261191d565b9050613c7181600084613e2f565b613c7c6000836132c6565b6001600160a01b0381166000908152600360205260408120805460019290613ca5908490614f69565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b613d0a8484846135b2565b613d1684848484613f24565b6127505760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d0e565b6000818152600260205260409020546060906001600160a01b0316613dfc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0e565b600d5460ff16613e1357600c8054612ac290614d58565b600c613e1e83614079565b604051602001612a9f929190614faa565b60065460ff16156110d35760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d0e565b6000806000613e9185856141ab565b91509150613e9e8161421b565b509392505050565b613eb083836143d6565b613ebd6000848484613f24565b6110d35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d0e565b60006001600160a01b0384163b1561407157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f68903390899088908890600401614fcf565b602060405180830381600087803b158015613f8257600080fd5b505af1925050508015613fb2575060408051601f3d908101601f19168201909252613faf9181019061500b565b60015b614057573d808015613fe0576040519150601f19603f3d011682016040523d82523d6000602084013e613fe5565b606091505b50805161404f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610d0e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611537565b506001611537565b6060816140b957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156140e357806140cd81614e06565b91506140dc9050600a83615028565b91506140bd565b60008167ffffffffffffffff8111156140fe576140fe61481b565b6040519080825280601f01601f191660200182016040528015614128576020820181803683370190505b5090505b84156115375761413d600183614f69565b915061414a600a86614f96565b614155906030614e21565b60f81b81838151811061416a5761416a614dda565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506141a4600a86615028565b945061412c565b6000808251604114156141e25760208301516040840151606085015160001a6141d687828585614524565b94509450505050614214565b82516040141561420c5760208301516040840151614201868383614611565b935093505050614214565b506000905060025b9250929050565b600081600481111561422f5761422f614a15565b14156142385750565b600181600481111561424c5761424c614a15565b141561429a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d0e565b60028160048111156142ae576142ae614a15565b14156142fc5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d0e565b600381600481111561431057614310614a15565b14156143695760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d0e565b600481600481111561437d5761437d614a15565b14156112e95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d0e565b6001600160a01b03821661442c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d0e565b6000818152600260205260409020546001600160a01b0316156144915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d0e565b61449d60008383613e2f565b6001600160a01b03821660009081526003602052604081208054600192906144c6908490614e21565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561455b5750600090506003614608565b8460ff16601b1415801561457357508460ff16601c14155b156145845750600090506004614608565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156145d8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661460157600060019250925050614608565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161464760ff86901c601b614e21565b905061465587828885614524565b935093505050935093915050565b82805461466f90614d58565b90600052602060002090601f01602090048101928261469157600085556146d7565b82601f106146aa57805160ff19168380011785556146d7565b828001600101855582156146d7579182015b828111156146d75782518255916020019190600101906146bc565b506146e39291506146e7565b5090565b5b808211156146e357600081556001016146e8565b60006020828403121561470e57600080fd5b5035919050565b6001600160e01b0319811681146112e957600080fd5b60006020828403121561473d57600080fd5b813561474881614715565b9392505050565b80356001600160a01b038116811461476657600080fd5b919050565b60006020828403121561477d57600080fd5b6147488261474f565b60005b838110156147a1578181015183820152602001614789565b838111156127505750506000910152565b600081518084526147ca816020860160208601614786565b601f01601f19169290920160200192915050565b60208152600061474860208301846147b2565b6000806040838503121561480457600080fd5b61480d8361474f565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561485a5761485a61481b565b604052919050565b600067ffffffffffffffff83111561487c5761487c61481b565b61488f601f8401601f1916602001614831565b90508281528383830111156148a357600080fd5b828260208301376000602084830101529392505050565b600082601f8301126148cb57600080fd5b61474883833560208501614862565b6000602082840312156148ec57600080fd5b813567ffffffffffffffff81111561490357600080fd5b611537848285016148ba565b60008060006060848603121561492457600080fd5b61492d8461474f565b925061493b6020850161474f565b9150604084013590509250925092565b80151581146112e957600080fd5b60006020828403121561496b57600080fd5b81356147488161494b565b60008083601f84011261498857600080fd5b50813567ffffffffffffffff8111156149a057600080fd5b60208301915083602082850101111561421457600080fd5b600080600080606085870312156149ce57600080fd5b843567ffffffffffffffff8111156149e557600080fd5b6149f187828801614976565b90955093505060208501359150614a0a6040860161474f565b905092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160038310614a4d57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215614a6657600080fd5b82359150602083013567ffffffffffffffff811115614a8457600080fd5b614a90858286016148ba565b9150509250929050565b600067ffffffffffffffff821115614ab457614ab461481b565b5060051b60200190565b600082601f830112614acf57600080fd5b81356020614ae4614adf83614a9a565b614831565b82815260059290921b84018101918181019086841115614b0357600080fd5b8286015b84811015614b4357803567ffffffffffffffff811115614b275760008081fd5b614b358986838b01016148ba565b845250918301918301614b07565b509695505050505050565b60008060408385031215614b6157600080fd5b823567ffffffffffffffff80821115614b7957600080fd5b818501915085601f830112614b8d57600080fd5b81356020614b9d614adf83614a9a565b82815260059290921b84018101918181019089841115614bbc57600080fd5b948201945b83861015614bda57853582529482019490820190614bc1565b96505086013592505080821115614bf057600080fd5b50614a9085828601614abe565b60008060408385031215614c1057600080fd5b50508035926020909101359150565b60008060408385031215614c3257600080fd5b614c3b8361474f565b91506020830135614c4b8161494b565b809150509250929050565b60008060008060808587031215614c6c57600080fd5b614c758561474f565b9350614c836020860161474f565b925060408501359150606085013567ffffffffffffffff811115614ca657600080fd5b8501601f81018713614cb757600080fd5b614cc687823560208401614862565b91505092959194509250565b60008060408385031215614ce557600080fd5b614cee8361474f565b9150614cfc6020840161474f565b90509250929050565b60008060008060608587031215614d1b57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614d4057600080fd5b614d4c87828801614976565b95989497509550505050565b600181811c90821680614d6c57607f821691505b60208210811415614d8d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215614da557600080fd5b5051919050565b604081526000614dbf60408301856147b2565b8281036020840152614dd181856147b2565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415614e1a57614e1a614df0565b5060010190565b60008219821115614e3457614e34614df0565b500190565b6000816000190483118215151615614e5357614e53614df0565b500290565b600060208284031215614e6a57600080fd5b81516147488161494b565b8054600090600181811c9080831680614e8f57607f831692505b6020808410821415614eb157634e487b7160e01b600052602260045260246000fd5b818015614ec55760018114614ed657614f03565b60ff19861689528489019650614f03565b60008881526020902060005b86811015614efb5781548b820152908501908301614ee2565b505084890196505b50505050505092915050565b7f697066733a2f2f00000000000000000000000000000000000000000000000000815260006147486007830184614e75565b6001600160a01b038416815282602082015260606040820152600061153460608301846147b2565b600082821015614f7b57614f7b614df0565b500390565b634e487b7160e01b600052601260045260246000fd5b600082614fa557614fa5614f80565b500690565b6000614fb68285614e75565b8351614fc6818360208801614786565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261500160808301846147b2565b9695505050505050565b60006020828403121561501d57600080fd5b815161474881614715565b60008261503757615037614f80565b50049056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220765e9e533535b16f5b3773633d098dde58a4cfedc46b14fca65081ee407f3d9264736f6c63430008090033

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

000000000000000000000000962357f63052a2b862ddc32ccbc8fb06f5689e1600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d645953744d71575a517a7769574c4d6159565067507548354363384a7668357778416d37737436524657694d0000000000000000000000

-----Decoded View---------------
Arg [0] : signer (address): 0x962357F63052a2B862ddC32ccBC8Fb06F5689E16
Arg [1] : baseURI (string): ipfs://QmdYStMqWZQzwiWLMaYVPgPuH5Cc8Jvh5wxAm7st6RFWiM
Arg [2] : vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [3] : linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [4] : keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : linkFee (uint256): 2000000000000000000

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000962357f63052a2b862ddc32ccbc8fb06f5689e16
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [3] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [4] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [7] : 697066733a2f2f516d645953744d71575a517a7769574c4d6159565067507548
Arg [8] : 354363384a7668357778416d37737436524657694d0000000000000000000000


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.