ETH Price: $3,327.93 (-3.86%)

Token

Uniqly Genesis Collection (UNIQLYONE)
 

Overview

Max Total Supply

1,500 UNIQLYONE

Holders

303

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
quietstorm.eth
Balance
1 UNIQLYONE
0x5F9896bDEB3aBacAA17c29C4029e1CCe174fEE67
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:
UniqDrop

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : UniqDrop.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721/ERC721Enumerable.sol";
import "./utils/Ownable.sol";
import "./utils/IERC2981.sol";
import "./utils/IERC20.sol";
import "./VRF/VRFConsumerBase.sol";

contract UniqDrop is ERC721Enumerable, IERC2981, Ownable, VRFConsumerBase {
    uint256 internal constant _maxUniqly = 10000;

    //VRF + Prizes
    bytes32 internal immutable keyHash;
    uint256 internal immutable fee;
    uint256 public randomResult;
    address[] public winners;
    bool baseURILock;

    function MAX_UNIQLY() external pure returns (uint256) {
        return _maxUniqly;
    }

    bool internal _saleStarted;

    function hasSaleStarted() external view returns (bool) {
        return _saleStarted;
    }

    // The IPFS hash for all Uniqlies concatenated *might* stored
    // here once all Uniqlies are issued and if I figure it out
    string public METADATA_PROVENANCE_HASH;
    string public BASE_URI;

    uint256 public immutable ROYALTY_FEE;

    // save data on burn event tokenid=>message
    mapping(uint256 => string) private claimers;

    modifier notZeroAddress(address a) {
        require(a != address(0), "ZERO address can not be used");
        _;
    }

    constructor(
        string memory baseURI,
        string memory _name,
        string memory _symbol,
        address _vrfCoordinator,
        address _link,
        bytes32 _keyHash,
        uint256 _fee,
        address _owner_,
        address _proxyRegistryAddress
    )
        notZeroAddress(_vrfCoordinator)
        notZeroAddress(_link)
        notZeroAddress(_owner_)
        notZeroAddress(_proxyRegistryAddress)
        ERC721(_name, _symbol)
        VRFConsumerBase(_vrfCoordinator, _link)
        Ownable(_owner_)
    {
        BASE_URI = baseURI;
        keyHash = _keyHash;
        fee = _fee;
        proxyRegistryAddress = _proxyRegistryAddress;
        ROYALTY_FEE = 750000; //7.5%
    }

    function getRandomNumber(uint256 adminProvidedSeed)
        external
        onlyOwner
        returns (bytes32)
    {
        require(totalSupply() >= _maxUniqly, "Sale must be ended");
        require(randomResult == 0, "Random number already initiated");
        require(
            address(this).balance >= 10 ether,
            "min 10 ETH balance required"
        );
        require(
            LINK.balanceOf(address(this)) >= fee,
            "Not enough LINK - fill contract with faucet"
        );
        return requestRandomness(keyHash, fee, adminProvidedSeed);
    }

    function setBaseURILock() external onlyOwner {
        require(!baseURILock, "Lock already enabled");
        baseURILock = true;
    }

    //fallback function
    function fulfillRandomness(bytes32, uint256 randomness) internal override {
        randomResult = randomness;
    }

    // 20/10000 chance to be winner
    function checkWin(uint256 _tokenId) external view returns (bool) {
        return _isWinner(_tokenId);
    }

    function _isWinner(uint256 id) internal view returns (bool) {
        require(randomResult > 0, "Random must be initiated");
        uint256 result =
            (uint256(keccak256(abi.encodePacked(id, randomResult)))) % 10000;
        if (result <= 20) return true;
        return false;
    }

    function isAlreadyRececeivedPrize(address _potWinner)
        external
        view
        returns (bool)
    {
        return (_isAlreadyRececeivedPrize(_potWinner));
    }

    function _isAlreadyRececeivedPrize(address _potWinner)
        internal
        view
        returns (bool)
    {
        uint256 i;
        uint256 winnersCount = winners.length;
        for (i = 0; i < winnersCount; i++) {
            if (winners[i] == _potWinner) return true;
        }
        return false;
    }

    event PrizeCollected(address indexed _winner, uint256 _tokenId);

    function collectPrize(uint256 _tokenId) external {
        require(ownerOf(_tokenId) == msg.sender, "Ownership needed");
        require(_isWinner(_tokenId) == true, "You dint win");
        require(
            _isAlreadyRececeivedPrize(msg.sender) == false,
            "Already received a prize"
        );
        require(winners.length < 10, "Prize limit reached");
        winners.push(msg.sender);
        emit PrizeCollected(msg.sender, _tokenId);
        payable(msg.sender).transfer(1 ether);
    }

    function getAllWinners() external view returns (address[] memory) {
        uint256 winnersCount = winners.length;
        if (winnersCount == 0) {
            return new address[](0);
        } else {
            address[] memory result = new address[](winnersCount);
            uint256 index;
            for (index = 0; index < winnersCount; index++) {
                result[index] = winners[index];
            }
            return result;
        }
    }

    function getWinner(uint256 _arrayKey) external view returns (address) {
        return winners[_arrayKey];
    }

    function getWinnersCount() external view returns (uint256) {
        return winners.length;
    }

    function getMessageHash(
        address _tokenOwner,
        uint256 _tokenId,
        string memory _claimersName
    ) public pure returns (bytes32) {
        return
            keccak256(abi.encodePacked(_tokenOwner, _tokenId, _claimersName));
    }

    function getEthSignedMessageHash(bytes32 _messageHash)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked(
                    "\x19Ethereum Signed Message:\n32",
                    _messageHash
                )
            );
    }

    function verifySignature(
        address _tokenOwner,
        uint256 _tokenId,
        string memory _claimersName,
        bytes memory _signature
    ) internal view returns (bool) {
        bytes32 messageHash =
            getMessageHash(_tokenOwner, _tokenId, _claimersName);
        bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash);
        return recoverSigner(ethSignedMessageHash, _signature) == owner();
    }

    function recoverSigner(
        bytes32 _ethSignedMessageHash,
        bytes memory _signature
    ) internal pure returns (address) {
        require(_signature.length == 65, "invalid signature length");
        bytes32 r;
        bytes32 s;
        uint8 v;
        assembly {
            r := mload(add(_signature, 32))
            s := mload(add(_signature, 64))
            v := byte(0, mload(add(_signature, 96)))
        }
        return ecrecover(_ethSignedMessageHash, v, r, s);
    }

    // return information stored on burn event
    function claimerOf(uint256 tokenId) external view returns (string memory) {
        return claimers[tokenId];
    }

    /**
     * @dev Base URI for computing {tokenURI}. Empty by default, can be overridden
     * in child contracts.
     */
    function _baseURI() internal view override returns (string memory) {
        return BASE_URI;
    }

    event Claim(
        address indexed _claimer,
        uint256 indexed _tokenId,
        string _claimersName
    );

    function burn(
        uint256 _tokenId,
        string memory _claimersName,
        bytes memory _signature
    ) external {
        require(randomResult > 0, "Lottery must be held"); //Comment this line for burning tests
        require(ownerOf(_tokenId) == msg.sender, "You need to own this token");
        require(
            verifySignature(msg.sender, _tokenId, _claimersName, _signature),
            "Signature is not valid"
        );
        claimers[_tokenId] = _claimersName;
        _burn(_tokenId);
        emit Claim(msg.sender, _tokenId, _claimersName);
    }

    /*
    @dev return all tokens owned by user
    @param _owner address to be listed
    */
    function tokensOfOwner(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            // Return an empty array
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    //returns array, where [0]-current price in ETH, [1]- supply available in this price,
    // [2] - next price
    function getPriceParameters() external view returns (uint256[3] memory) {
        return _getPriceParams();
    }

    function _getPriceParams() private view returns (uint256[3] memory arr) {
        uint256 tSupply = totalSupply();
        if (1499 - tSupply > 0)
            return [35000000000000000, 1499 - tSupply, 50000000000000000];
        else if (3499 - tSupply > 0)
            return [50000000000000000, 3499 - tSupply, 80000000000000000];
        else if (7499 - tSupply > 0)
            return [80000000000000000, 7499 - tSupply, 120000000000000000];
        else if (9499 - tSupply > 0)
            return [120000000000000000, 9499 - tSupply, 240000000000000000];
        else if (9899 - tSupply > 0)
            return [240000000000000000, 9899 - tSupply, 400000000000000000];
        else return [400000000000000000, 10000 - tSupply, 0];
    }

    function _calcEthForUniqs(uint256 _number) private view returns (uint256) {
        uint256 currentSupply = totalSupply();
        require(currentSupply < _maxUniqly, "Sale has already ended");
        require(
            (_number + currentSupply) <= _maxUniqly,
            "You cannot buy that many tokens"
        );
        uint256[3] memory priceParameters = _getPriceParams();
        if (priceParameters[1] > _number) return priceParameters[0] * _number;
        else
            return (priceParameters[1] *
                priceParameters[0] +
                priceParameters[2] *
                (_number - priceParameters[1]));
    }

    function calculateEthPriceForExactUniqs(uint256 _number)
        external
        view
        returns (uint256)
    {
        return _calcEthForUniqs(_number);
    }

    //emits Transfer event
    function mintUniqly(uint256 numUniqlies) external payable {
        require(_saleStarted, "Sale has not started yet");
        uint256 requiredValue = _calcEthForUniqs(numUniqlies);
        require(msg.value >= requiredValue, "Not enough ether");
        require(
            numUniqlies <= 30 && numUniqlies > 0,
            "You can buy minimum 1, maximum 30 Uniqs"
        );
        uint256 mintIndex = totalSupply();
        for (uint256 i = 0; i < numUniqlies; i++) {
            _safeMint(msg.sender, mintIndex);
            mintIndex++;
        }
        // send back ETH if one overpay by accident
        if (requiredValue < msg.value) {
            payable(msg.sender).transfer(msg.value - requiredValue);
        }
    }

    function initialMint(address to, uint256 amt) external onlyOwner {
        uint256 sup = totalSupply();
        require(sup + amt <= 100, "Up to 100");
        uint256 index;
        // Reserved for people who helped this project
        for (index = 0; index < amt; index++) {
            _safeMint(to, sup);
            sup++;
        }
    }

    function setProvenanceHash(string memory _hash) external onlyOwner {
        METADATA_PROVENANCE_HASH = _hash;
    }

    function setBaseURI(string memory baseURI) external onlyOwner {
        require(!baseURILock, "Cant update base URI: Lock enabled");
        BASE_URI = baseURI;
    }

    // start sale after initial mint!
    function startSale() external onlyOwner {
        _saleStarted = true;
    }

    function withdrawAll() external onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }

    function recoverERC20(address token) external onlyOwner {
        uint256 val = IERC20(token).balanceOf(address(this));
        require(val > 0, "Nothing to recover");
        // use interface that not return value (USDT case)
        Ierc20(token).transfer(owner(), val);
    }

    // royalty fee EIP2981 implementation
    // contract owner gets all
    function royaltyInfo(uint256)
        external
        view
        override
        returns (address receiver, uint256 amount)
    {
        return (owner(), ROYALTY_FEE);
    }

    function receivedRoyalties(
        address,
        address _buyer,
        uint256 _tokenId,
        address _tokenPaid,
        uint256 _amount
    ) external override {
        emit ReceivedRoyalties(owner(), _buyer, _tokenId, _tokenPaid, _amount);
    }

    // OpenSea stuff
    address proxyRegistryAddress;

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address own, address spend)
        public
        view
        override
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(own)) == spend) {
            return true;
        }

        return super.isApprovedForAll(own, spend);
    }
    
    receive() external payable {
    }
}

// To recover broken ERC20 token contracts like USDT
// that are not returning value on transfer
interface Ierc20 {
    function transfer(address, uint256) external;
}

// for OpenSea integration
contract OwnableDelegateProxy {

}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./IERC721Enumerable.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/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}. Empty by default, can be overridden
     * 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 ||
                ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try
                IERC721Receiver(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert(
                        "ERC721: transfer to non ERC721Receiver implementer"
                    );
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/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 5 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";

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

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

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

File 6 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";

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

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

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

File 7 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 8 of 19 : 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 9 of 19 : SafeMathChainlink.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMathChainlink {
  /**
    * @dev Returns the addition of two unsigned integers, reverting on
    * overflow.
    *
    * Counterpart to Solidity's `+` operator.
    *
    * Requirements:
    * - Addition cannot overflow.
    */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a, "SafeMath: addition overflow");

    return c;
  }

  /**
    * @dev Returns the subtraction of two unsigned integers, reverting on
    * overflow (when the result is negative).
    *
    * Counterpart to Solidity's `-` operator.
    *
    * Requirements:
    * - Subtraction cannot overflow.
    */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b <= a, "SafeMath: subtraction overflow");
    uint256 c = a - b;

    return c;
  }

  /**
    * @dev Returns the multiplication of two unsigned integers, reverting on
    * overflow.
    *
    * Counterpart to Solidity's `*` operator.
    *
    * Requirements:
    * - Multiplication cannot overflow.
    */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b, "SafeMath: multiplication overflow");

    return c;
  }

  /**
    * @dev Returns the integer division of two unsigned integers. Reverts on
    * division by zero. The result is rounded towards zero.
    *
    * Counterpart to Solidity's `/` operator. Note: this function uses a
    * `revert` opcode (which leaves remaining gas untouched) while Solidity
    * uses an invalid opcode to revert (consuming all remaining gas).
    *
    * Requirements:
    * - The divisor cannot be zero.
    */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0, "SafeMath: division by zero");
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
    * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
    * Reverts when dividing by zero.
    *
    * Counterpart to Solidity's `%` operator. This function uses a `revert`
    * opcode (which leaves remaining gas untouched) while Solidity uses an
    * invalid opcode to revert (consuming all remaining gas).
    *
    * Requirements:
    * - The divisor cannot be zero.
    */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0, "SafeMath: modulo by zero");
    return a % b;
  }
}

File 10 of 19 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./SafeMathChainlink.sol";

import "./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     constuctor(<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 {

  using SafeMathChainlink for uint256;

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

  /**
   * @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
   * @param _seed seed mixed into the input of the VRF.
   *
   * @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, uint256 _seed)
    internal returns (bytes32 requestId)
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, _seed));
    // 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, _seed, 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].add(1);
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* 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 11 of 19 : 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));
  }
}

File 12 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 16 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 17 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

/**
 * @dev Implementation of royalties for 721s
 *
 */
interface IERC2981 {
    /*
     * ERC165 bytes to add to interface array - set in parent contract implementing this standard
     *
     * bytes4(keccak256('royaltyInfo(uint256)')) == 0xcef6d368
     * bytes4(keccak256('receivedRoyalties(address,address,uint256,address,uint256)')) == 0x8589ff45
     * bytes4(0xcef6d368) ^ bytes4(0x8589ff45) == 0x4b7f2c2d
     * bytes4 private constant _INTERFACE_ID_ERC721ROYALTIES = 0x4b7f2c2d;
     * _registerInterface(_INTERFACE_ID_ERC721ROYALTIES);
     */
    /**

    /**
     *      @notice Called to return both the creator's address and the royalty percentage -
     *              this would be the main function called by marketplaces unless they specifically
     *              need to adjust the royaltyAmount
     *      @notice Percentage is calculated as a fixed point with a scaling factor of 100000,
     *              such that 100% would be the value 10000000, as 10000000/100000 = 100.
     *              1% would be the value 100000, as 100000/100000 = 1
     */
    function royaltyInfo(uint256 _tokenId)
        external
        returns (address receiver, uint256 amount);

    /**
     *      @notice Called when royalty is transferred to the receiver. We wrap emitting
     *              the event as we want the NFT contract itself to contain the event.
     */
    function receivedRoyalties(
        address _royaltyRecipient,
        address _buyer,
        uint256 _tokenId,
        address _tokenPaid,
        uint256 _amount
    ) external;

    event ReceivedRoyalties(
        address indexed _royaltyRecipient,
        address indexed _buyer,
        uint256 indexed _tokenId,
        address _tokenPaid,
        uint256 _amount
    );
}

File 18 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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
     */
    constructor(address _newOwner) {
        _owner = _newOwner;
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 19 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_owner_","type":"address"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_claimer","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_claimersName","type":"string"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"PrizeCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_royaltyRecipient","type":"address"},{"indexed":true,"internalType":"address","name":"_buyer","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_tokenPaid","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ReceivedRoyalties","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_UNIQLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"METADATA_PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_claimersName","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"calculateEthPriceForExactUniqs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"checkWin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimerOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"collectPrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllWinners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenOwner","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_claimersName","type":"string"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getPriceParameters","outputs":[{"internalType":"uint256[3]","name":"","type":"uint256[3]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"adminProvidedSeed","type":"uint256"}],"name":"getRandomNumber","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_arrayKey","type":"uint256"}],"name":"getWinner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWinnersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"initialMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_potWinner","type":"address"}],"name":"isAlreadyRececeivedPrize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"own","type":"address"},{"internalType":"address","name":"spend","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numUniqlies","type":"uint256"}],"name":"mintUniqly","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomResult","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"_buyer","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_tokenPaid","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"receivedRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setBaseURILock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"winners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101206040523480156200001257600080fd5b506040516200433f3803806200433f8339810160408190526200003591620003c7565b8585838a8a81600090805190602001906200005292919062000251565b5080516200006890600190602084019062000251565b5050600a80546001600160a01b0319166001600160a01b0384169081179091556040519091506000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160601b0319606092831b811660a052911b16608052856001600160a01b0381166200011c5760405162461bcd60e51b815260206004820152601c60248201526000805160206200431f83398151915260448201526064015b60405180910390fd5b856001600160a01b038116620001645760405162461bcd60e51b815260206004820152601c60248201526000805160206200431f833981519152604482015260640162000113565b836001600160a01b038116620001ac5760405162461bcd60e51b815260206004820152601c60248201526000805160206200431f833981519152604482015260640162000113565b836001600160a01b038116620001f45760405162461bcd60e51b815260206004820152601c60248201526000805160206200431f833981519152604482015260640162000113565b8c601090805190602001906200020c92919062000251565b50505060c0959095525060e09290925250601280546001600160a01b0319166001600160a01b039092169190911790555050620b71b061010052506200050692505050565b8280546200025f90620004b3565b90600052602060002090601f016020900481019282620002835760008555620002ce565b82601f106200029e57805160ff1916838001178555620002ce565b82800160010185558215620002ce579182015b82811115620002ce578251825591602001919060010190620002b1565b50620002dc929150620002e0565b5090565b5b80821115620002dc5760008155600101620002e1565b80516001600160a01b03811681146200030f57600080fd5b919050565b600082601f83011262000325578081fd5b81516001600160401b0380821115620003425762000342620004f0565b604051601f8301601f19908116603f011681019082821181831017156200036d576200036d620004f0565b8160405283815260209250868385880101111562000389578485fd5b8491505b83821015620003ac57858201830151818301840152908201906200038d565b83821115620003bd57848385830101525b9695505050505050565b60008060008060008060008060006101208a8c031215620003e6578485fd5b89516001600160401b0380821115620003fd578687fd5b6200040b8d838e0162000314565b9a5060208c015191508082111562000421578687fd5b6200042f8d838e0162000314565b995060408c015191508082111562000445578687fd5b50620004548c828d0162000314565b9750506200046560608b01620002f7565b95506200047560808b01620002f7565b945060a08a0151935060c08a015192506200049360e08b01620002f7565b9150620004a46101008b01620002f7565b90509295985092959850929598565b600181811c90821680620004c857607f821691505b60208210811415620004ea57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160e05161010051613db26200056d600039600081816104ae0152611bbd0152600081816118c101526119ed015260006119cc01526000818161148b01526128e60152600081816118e301526128b70152613db26000f3fe6080604052600436106102cd5760003560e01c8063853828b611610175578063b66a0e5d116100dc578063dc6b862711610095578063f0cc3b851161006f578063f0cc3b851461089c578063f2fde38b146108bc578063f449619e146108dc578063fadd3087146108fc576102d4565b8063dc6b862714610845578063e985e9c514610867578063f0c9dc6014610887576102d4565b8063b66a0e5d1461077c578063b88d4fde14610791578063c6437286146107b1578063c87b56dd146107d1578063cef6d368146107f1578063dbddb26a14610830576102d4565b80639e8c708e1161012e5780639e8c708e146106ba578063a22cb465146106da578063a2fb1175146106fa578063a4db62521461071a578063b37217a41461073a578063b52ea4151461075a576102d4565b8063853828b61461061d5780638589ff45146106325780638da5cb5b1461065257806390fc5d4d1461067057806394985ddd1461068557806395d89b41146106a5576102d4565b80632f745c591161023457806355f804b3116101ed5780636d8d0ff3116101c75780636d8d0ff31461059b57806370a08231146105bb578063715018a6146105db5780638462151c146105f0576102d4565b806355f804b3146105465780636352211e1461056657806366c879a914610586576102d4565b80632f745c591461047c578063335477fc1461049c5780634129b2c9146104d057806342619f66146104f057806342842e0e146105065780634f6ccce714610526576102d4565b806318160ddd1161028657806318160ddd146103c95780631c8b232d146103de5780631ee304a0146103fc57806323b872dd1461041c578063259944d61461043c5780632ca40ed81461045c576102d4565b806301ffc9a7146102d957806306fdde031461030e578063081812fc14610330578063095ea7b3146103685780630b75cef41461038a57806310969523146103a9576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b506102f96102f4366004613856565b61090f565b60405190151581526020015b60405180910390f35b34801561031a57600080fd5b5061032361093c565b6040516103059190613b21565b34801561033c57600080fd5b5061035061034b3660046138dd565b6109cf565b6040516001600160a01b039091168152602001610305565b34801561037457600080fd5b50610388610383366004613797565b610a69565b005b34801561039657600080fd5b50600d545b604051908152602001610305565b3480156103b557600080fd5b506103886103c43660046138aa565b610b7f565b3480156103d557600080fd5b5060085461039b565b3480156103ea57600080fd5b506102f9600e54610100900460ff1690565b34801561040857600080fd5b506103236104173660046138dd565b610bc0565b34801561042857600080fd5b50610388610437366004613666565b610c62565b34801561044857600080fd5b5061038861045736600461390d565b610c93565b34801561046857600080fd5b506102f9610477366004613612565b610dfd565b34801561048857600080fd5b5061039b610497366004613797565b610e08565b3480156104a857600080fd5b5061039b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104dc57600080fd5b506103506104eb3660046138dd565b610ea1565b3480156104fc57600080fd5b5061039b600c5481565b34801561051257600080fd5b50610388610521366004613666565b610edf565b34801561053257600080fd5b5061039b6105413660046138dd565b610efa565b34801561055257600080fd5b506103886105613660046138aa565b610f9b565b34801561057257600080fd5b506103506105813660046138dd565b611036565b34801561059257600080fd5b506103886110ad565b3480156105a757600080fd5b506103886105b6366004613797565b611130565b3480156105c757600080fd5b5061039b6105d6366004613612565b6111e8565b3480156105e757600080fd5b5061038861126f565b3480156105fc57600080fd5b5061061061060b366004613612565b6112e3565b6040516103059190613ae9565b34801561062957600080fd5b506103886113c4565b34801561063e57600080fd5b5061038861064d3660046136a6565b611414565b34801561065e57600080fd5b50600a546001600160a01b0316610350565b34801561067c57600080fd5b5061271061039b565b34801561069157600080fd5b506103886106a0366004613835565b611480565b3480156106b157600080fd5b50610323611502565b3480156106c657600080fd5b506103886106d5366004613612565b611511565b3480156106e657600080fd5b506103886106f536600461376a565b611681565b34801561070657600080fd5b506103506107153660046138dd565b611753565b34801561072657600080fd5b506102f96107353660046138dd565b61177d565b34801561074657600080fd5b5061039b6107553660046138dd565b611788565b34801561076657600080fd5b5061076f611a12565b6040516103059190613ab8565b34801561078857600080fd5b50610388611a27565b34801561079d57600080fd5b506103886107ac366004613700565b611a62565b3480156107bd57600080fd5b5061039b6107cc3660046137c2565b611a94565b3480156107dd57600080fd5b506103236107ec3660046138dd565b611aca565b3480156107fd57600080fd5b5061081161080c3660046138dd565b611ba5565b604080516001600160a01b039093168352602083019190915201610305565b34801561083c57600080fd5b50610323611be3565b34801561085157600080fd5b5061085a611c71565b6040516103059190613a6b565b34801561087357600080fd5b506102f961088236600461362e565b611d89565b34801561089357600080fd5b50610323611e39565b3480156108a857600080fd5b5061039b6108b73660046138dd565b611e46565b3480156108c857600080fd5b506103886108d7366004613612565b611e51565b3480156108e857600080fd5b506103886108f73660046138dd565b611f3c565b61038861090a3660046138dd565b61211e565b60006001600160e01b0319821663780e9d6360e01b14806109345750610934826122b3565b90505b919050565b60606000805461094b90613c9a565b80601f016020809104026020016040519081016040528092919081815260200182805461097790613c9a565b80156109c45780601f10610999576101008083540402835291602001916109c4565b820191906000526020600020905b8154815290600101906020018083116109a757829003601f168201915b505050505090505b90565b6000818152600260205260408120546001600160a01b0316610a4d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a7482611036565b9050806001600160a01b0316836001600160a01b03161415610ae25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a44565b336001600160a01b0382161480610afe5750610afe8133612303565b610b705760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a44565b610b7a8383612331565b505050565b600a546001600160a01b03163314610ba95760405162461bcd60e51b8152600401610a4490613b86565b8051610bbc90600f9060208401906134d8565b5050565b6000818152601160205260409020805460609190610bdd90613c9a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0990613c9a565b8015610c565780601f10610c2b57610100808354040283529160200191610c56565b820191906000526020600020905b815481529060010190602001808311610c3957829003601f168201915b50505050509050919050565b610c6c338261239f565b610c885760405162461bcd60e51b8152600401610a4490613bbb565b610b7a83838361246e565b6000600c5411610cdc5760405162461bcd60e51b8152602060048201526014602482015273131bdd1d195c9e481b5d5cdd081899481a195b1960621b6044820152606401610a44565b33610ce684611036565b6001600160a01b031614610d3c5760405162461bcd60e51b815260206004820152601a60248201527f596f75206e65656420746f206f776e207468697320746f6b656e0000000000006044820152606401610a44565b610d4833848484612619565b610d8d5760405162461bcd60e51b815260206004820152601660248201527514da59db985d1d5c99481a5cc81b9bdd081d985b1a5960521b6044820152606401610a44565b60008381526011602090815260409091208351610dac928501906134d8565b50610db6836126be565b82336001600160a01b03167f58fb02bcfedd338314c70bcf748b4f71a01259cf8956f31b34cb09acf29809cb84604051610df09190613b21565b60405180910390a3505050565b600061093482612765565b6000610e13836111e8565b8210610e755760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a44565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b6000600d8281548110610ec457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b610b7a83838360405180602001604052806000815250611a62565b6000610f0560085490565b8210610f685760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a44565b60088281548110610f8957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610fc55760405162461bcd60e51b8152600401610a4490613b86565b600e5460ff16156110235760405162461bcd60e51b815260206004820152602260248201527f43616e74207570646174652062617365205552493a204c6f636b20656e61626c604482015261195960f21b6064820152608401610a44565b8051610bbc9060109060208401906134d8565b6000818152600260205260408120546001600160a01b0316806109345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a44565b600a546001600160a01b031633146110d75760405162461bcd60e51b8152600401610a4490613b86565b600e5460ff16156111215760405162461bcd60e51b8152602060048201526014602482015273131bd8dac8185b1c9958591e48195b98589b195960621b6044820152606401610a44565b600e805460ff19166001179055565b600a546001600160a01b0316331461115a5760405162461bcd60e51b8152600401610a4490613b86565b600061116560085490565b905060646111738383613c0c565b11156111ad5760405162461bcd60e51b81526020600482015260096024820152680557020746f203130360bc1b6044820152606401610a44565b60005b828110156111e2576111c284836127e3565b816111cc81613ccf565b92505080806111da90613ccf565b9150506111b0565b50505050565b60006001600160a01b0382166112535760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a44565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146112995760405162461bcd60e51b8152600401610a4490613b86565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b606060006112f0836111e8565b90508061130d575050604080516000815260208101909152610937565b60008167ffffffffffffffff81111561133657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561135f578160200160208202803683370190505b50905060005b828110156113b4576113778582610e08565b82828151811061139757634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806113ac81613ccf565b915050611365565b5091506109379050565b50919050565b600a546001600160a01b031633146113ee5760405162461bcd60e51b8152600401610a4490613b86565b60405133904780156108fc02916000818181858888f1935050505061141257600080fd5b565b82846001600160a01b0316611431600a546001600160a01b031690565b604080516001600160a01b0387811682526020820187905292909216917f096a55ec842afaa98cb78cb0352921e73c0d1caa9136309fa9c07f13f4a39a60910160405180910390a45050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114f85760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610a44565b600c819055610bbc565b60606001805461094b90613c9a565b600a546001600160a01b0316331461153b5760405162461bcd60e51b8152600401610a4490613b86565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561157d57600080fd5b505afa158015611591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b591906138f5565b9050600081116115fc5760405162461bcd60e51b81526020600482015260126024820152712737ba3434b733903a37903932b1b7bb32b960711b6044820152606401610a44565b816001600160a01b031663a9059cbb61161d600a546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561166557600080fd5b505af1158015611679573d6000803e3d6000fd5b505050505050565b6001600160a01b0382163314156116da5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a44565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611747911515815260200190565b60405180910390a35050565b600d818154811061176357600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610934826127fd565b600a546000906001600160a01b031633146117b55760405162461bcd60e51b8152600401610a4490613b86565b6127106117c160085490565b10156118045760405162461bcd60e51b815260206004820152601260248201527114d85b19481b5d5cdd08189948195b99195960721b6044820152606401610a44565b600c54156118545760405162461bcd60e51b815260206004820152601f60248201527f52616e646f6d206e756d62657220616c726561647920696e69746961746564006044820152606401610a44565b678ac7230489e800004710156118ac5760405162461bcd60e51b815260206004820152601b60248201527f6d696e203130204554482062616c616e636520726571756972656400000000006044820152606401610a44565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561192d57600080fd5b505afa158015611941573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196591906138f5565b10156119c75760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b6064820152608401610a44565b6109347f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000846128b3565b611a1a613558565b611a22612a46565b905090565b600a546001600160a01b03163314611a515760405162461bcd60e51b8152600401610a4490613b86565b600e805461ff001916610100179055565b611a6c338361239f565b611a885760405162461bcd60e51b8152600401610a4490613bbb565b6111e284848484612c35565b6000838383604051602001611aab93929190613999565b6040516020818303038152906040528051906020012090509392505050565b6000818152600260205260409020546060906001600160a01b0316611b495760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a44565b6000611b53612c68565b90506000815111611b735760405180602001604052806000815250611b9e565b80611b7d84612c77565b604051602001611b8e9291906139d8565b6040516020818303038152906040525b9392505050565b600080611bba600a546001600160a01b031690565b937f00000000000000000000000000000000000000000000000000000000000000009350915050565b60108054611bf090613c9a565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1c90613c9a565b8015611c695780601f10611c3e57610100808354040283529160200191611c69565b820191906000526020600020905b815481529060010190602001808311611c4c57829003601f168201915b505050505081565b600d5460609080611c925750506040805160008152602081019091526109cc565b60008167ffffffffffffffff811115611cbb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ce4578160200160208202803683370190505b50905060005b82811015611d7b57600d8181548110611d1357634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316828281518110611d5157634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280611d7381613ccf565b915050611cea565b5091506109cc9050565b5090565b60125460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611dd657600080fd5b505afa158015611dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0e919061388e565b6001600160a01b03161415611e27576001915050610e9b565b611e318484612303565b949350505050565b600f8054611bf090613c9a565b600061093482612d92565b600a546001600160a01b03163314611e7b5760405162461bcd60e51b8152600401610a4490613b86565b6001600160a01b038116611ee05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a44565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b33611f4682611036565b6001600160a01b031614611f8f5760405162461bcd60e51b815260206004820152601060248201526f13dddb995c9cda1a5c081b995959195960821b6044820152606401610a44565b611f98816127fd565b1515600114611fd85760405162461bcd60e51b815260206004820152600c60248201526b2cb7ba903234b73a103bb4b760a11b6044820152606401610a44565b611fe133612765565b1561202e5760405162461bcd60e51b815260206004820152601860248201527f416c72656164792072656365697665642061207072697a6500000000000000006044820152606401610a44565b600d54600a116120765760405162461bcd60e51b8152602060048201526013602482015272141c9a5e99481b1a5b5a5d081c995858da1959606a1b6044820152606401610a44565b600d80546001810182556000919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b031916339081179091556040518281527f79c99597ba23f96ba7d9b4729d81d5de16e368bfe8307fa890457fb7474ec98c9060200160405180910390a26040513390600090670de0b6b3a76400009082818181858883f19350505050158015610bbc573d6000803e3d6000fd5b600e54610100900460ff166121755760405162461bcd60e51b815260206004820152601860248201527f53616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610a44565b600061218082612d92565b9050803410156121c55760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b6044820152606401610a44565b601e82111580156121d65750600082115b6122325760405162461bcd60e51b815260206004820152602760248201527f596f752063616e20627579206d696e696d756d20312c206d6178696d756d20336044820152663020556e69717360c81b6064820152608401610a44565b600061223d60085490565b905060005b838110156122745761225433836127e3565b8161225e81613ccf565b925050808061226c90613ccf565b915050612242565b5034821015610b7a57336108fc61228b8434613c57565b6040518115909202916000818181858888f193505050501580156111e2573d6000803e3d6000fd5b60006001600160e01b031982166380ac58cd60e01b14806122e457506001600160e01b03198216635b5e139f60e01b145b8061093457506301ffc9a760e01b6001600160e01b0319831614610934565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061236682611036565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166124185760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a44565b600061242383611036565b9050806001600160a01b0316846001600160a01b0316148061245e5750836001600160a01b0316612453846109cf565b6001600160a01b0316145b80611e315750611e318185612303565b826001600160a01b031661248182611036565b6001600160a01b0316146124e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a44565b6001600160a01b03821661254b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a44565b612556838383612eaf565b612561600082612331565b6001600160a01b038316600090815260036020526040812080546001929061258a908490613c57565b90915550506001600160a01b03821660009081526003602052604081208054600192906125b8908490613c0c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080612627868686611a94565b90506000612682826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b9050612696600a546001600160a01b031690565b6001600160a01b03166126a98286612f6c565b6001600160a01b031614979650505050505050565b60006126c982611036565b90506126d781600084612eaf565b6126e2600083612331565b6001600160a01b038116600090815260036020526040812080546001929061270b908490613c57565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600d5460009081905b808210156127d957836001600160a01b0316600d83815481106127a157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156127c757600192505050610937565b816127d181613ccf565b92505061276e565b5060009392505050565b610bbc828260405180602001604052806000815250613034565b600080600c54116128505760405162461bcd60e51b815260206004820152601860248201527f52616e646f6d206d75737420626520696e6974696174656400000000000000006044820152606401610a44565b600061271083600c54604051602001612873929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6128969190613cea565b9050601481116128aa576001915050610937565b50600092915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000858786604051602001612922929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161294f93929190613a44565b602060405180830381600087803b15801561296957600080fd5b505af115801561297d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a19190613819565b506000848152600b602081815260408084205481518084018a905280830188905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938890529190526129fd906001613067565b6000868152600b6020526040902055612a3d8582604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b95945050505050565b612a4e613558565b6000612a5960085490565b90506000612a69826105db613c57565b1115612aad576040518060600160405280667c5850872380008152602001826105db612a959190613c57565b815260200166b1a2bc2ec500008152509150506109cc565b6000612abb82610dab613c57565b1115612b0057604051806060016040528066b1a2bc2ec50000815260200182610dab612ae79190613c57565b815260200167011c37937e0800008152509150506109cc565b6000612b0e82611d4b613c57565b1115612b5457604051806060016040528067011c37937e080000815260200182611d4b612b3b9190613c57565b81526020016701aa535d3d0c00008152509150506109cc565b6000612b628261251b613c57565b1115612ba85760405180606001604052806701aa535d3d0c000081526020018261251b612b8f9190613c57565b8152602001670354a6ba7a1800008152509150506109cc565b6000612bb6826126ab613c57565b1115612bfc576040518060600160405280670354a6ba7a1800008152602001826126ab612be39190613c57565b815260200167058d15e1762800008152509150506109cc565b604051806060016040528067058d15e176280000815260200182612710612c239190613c57565b815260200160008152509150506109cc565b612c4084848461246e565b612c4c848484846130c6565b6111e25760405162461bcd60e51b8152600401610a4490613b34565b60606010805461094b90613c9a565b606081612c9c57506040805180820190915260018152600360fc1b6020820152610937565b8160005b8115612cc65780612cb081613ccf565b9150612cbf9050600a83613c24565b9150612ca0565b60008167ffffffffffffffff811115612cef57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612d19576020820181803683370190505b5090505b8415611e3157612d2e600183613c57565b9150612d3b600a86613cea565b612d46906030613c0c565b60f81b818381518110612d6957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612d8b600a86613c24565b9450612d1d565b600080612d9e60085490565b90506127108110612dea5760405162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b6044820152606401610a44565b612710612df78285613c0c565b1115612e455760405162461bcd60e51b815260206004820152601f60248201527f596f752063616e6e6f74206275792074686174206d616e7920746f6b656e73006044820152606401610a44565b6000612e4f612a46565b90508381600160200201511115612e76578051612e6d908590613c38565b92505050610937565b6020810151612e859085613c57565b6040820151612e949190613c38565b81516020830151612ea59190613c38565b612e6d9190613c0c565b6001600160a01b038316612f0a57612f0581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f2d565b816001600160a01b0316836001600160a01b031614612f2d57612f2d83826131d0565b6001600160a01b038216612f4957612f448161326d565b610b7a565b826001600160a01b0316826001600160a01b031614610b7a57610b7a8282613346565b60008151604114612fbf5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610a44565b602082810151604080850151606080870151835160008082529681018086528a9052951a928501839052840183905260808401819052919260019060a0016020604051602081039080840390855afa15801561301f573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b61303e838361338a565b61304b60008484846130c6565b610b7a5760405162461bcd60e51b8152600401610a4490613b34565b6000806130748385613c0c565b905083811015611b9e5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a44565b60006001600160a01b0384163b156131c857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061310a903390899088908890600401613a07565b602060405180830381600087803b15801561312457600080fd5b505af1925050508015613154575060408051601f3d908101601f1916820190925261315191810190613872565b60015b6131ae573d808015613182576040519150601f19603f3d011682016040523d82523d6000602084013e613187565b606091505b5080516131a65760405162461bcd60e51b8152600401610a4490613b34565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e31565b506001611e31565b600060016131dd846111e8565b6131e79190613c57565b60008381526007602052604090205490915080821461323a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061327f90600190613c57565b600083815260096020526040812054600880549394509092849081106132b557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106132e457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061332a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613351836111e8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166133e05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a44565b6000818152600260205260409020546001600160a01b0316156134455760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a44565b61345160008383612eaf565b6001600160a01b038216600090815260036020526040812080546001929061347a908490613c0c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546134e490613c9a565b90600052602060002090601f016020900481019282613506576000855561354c565b82601f1061351f57805160ff191683800117855561354c565b8280016001018555821561354c579182015b8281111561354c578251825591602001919060010190613531565b50611d85929150613576565b60405180606001604052806003906020820280368337509192915050565b5b80821115611d855760008155600101613577565b600082601f83011261359b578081fd5b813567ffffffffffffffff808211156135b6576135b6613d2a565b604051601f8301601f19908116603f011681019082821181831017156135de576135de613d2a565b816040528381528660208588010111156135f6578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215613623578081fd5b8135611b9e81613d40565b60008060408385031215613640578081fd5b823561364b81613d40565b9150602083013561365b81613d40565b809150509250929050565b60008060006060848603121561367a578081fd5b833561368581613d40565b9250602084013561369581613d40565b929592945050506040919091013590565b600080600080600060a086880312156136bd578081fd5b85356136c881613d40565b945060208601356136d881613d40565b93506040860135925060608601356136ef81613d40565b949793965091946080013592915050565b60008060008060808587031215613715578384fd5b843561372081613d40565b9350602085013561373081613d40565b925060408501359150606085013567ffffffffffffffff811115613752578182fd5b61375e8782880161358b565b91505092959194509250565b6000806040838503121561377c578182fd5b823561378781613d40565b9150602083013561365b81613d58565b600080604083850312156137a9578182fd5b82356137b481613d40565b946020939093013593505050565b6000806000606084860312156137d6578283fd5b83356137e181613d40565b925060208401359150604084013567ffffffffffffffff811115613803578182fd5b61380f8682870161358b565b9150509250925092565b60006020828403121561382a578081fd5b8151611b9e81613d58565b60008060408385031215613847578182fd5b50508035926020909101359150565b600060208284031215613867578081fd5b8135611b9e81613d66565b600060208284031215613883578081fd5b8151611b9e81613d66565b60006020828403121561389f578081fd5b8151611b9e81613d40565b6000602082840312156138bb578081fd5b813567ffffffffffffffff8111156138d1578182fd5b611e318482850161358b565b6000602082840312156138ee578081fd5b5035919050565b600060208284031215613906578081fd5b5051919050565b600080600060608486031215613921578081fd5b83359250602084013567ffffffffffffffff8082111561393f578283fd5b61394b8783880161358b565b93506040860135915080821115613960578283fd5b5061380f8682870161358b565b60008151808452613985816020860160208601613c6e565b601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff198560601b16825283601483015282516139c9816034850160208701613c6e565b91909101603401949350505050565b600083516139ea818460208801613c6e565b8351908301906139fe818360208801613c6e565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a3a9083018461396d565b9695505050505050565b600060018060a01b038516825283602083015260606040830152612a3d606083018461396d565b6020808252825182820181905260009190848201906040850190845b81811015613aac5783516001600160a01b031683529284019291840191600101613a87565b50909695505050505050565b60608101818360005b6003811015613ae0578151835260209283019290910190600101613ac1565b50505092915050565b6020808252825182820181905260009190848201906040850190845b81811015613aac57835183529284019291840191600101613b05565b600060208252611b9e602083018461396d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613c1f57613c1f613cfe565b500190565b600082613c3357613c33613d14565b500490565b6000816000190483118215151615613c5257613c52613cfe565b500290565b600082821015613c6957613c69613cfe565b500390565b60005b83811015613c89578181015183820152602001613c71565b838111156111e25750506000910152565b600181811c90821680613cae57607f821691505b602082108114156113be57634e487b7160e01b600052602260045260246000fd5b6000600019821415613ce357613ce3613cfe565b5060010190565b600082613cf957613cf9613d14565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114613d5557600080fd5b50565b8015158114613d5557600080fd5b6001600160e01b031981168114613d5557600080fdfea2646970667358221220d654f3724b136a4fd81edc19fa1f4439561e0bb43d6d0446d683b82986388da964736f6c634300080300335a45524f20616464726573732063616e206e6f74206265207573656400000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000025cc669bbb52f36f723c35cf84b6e6e4364e9edc000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f756e69716c792e6d7970696e6174612e636c6f75642f697066732f516d627a6a666a316b777842754d5548466a6e37734a417964537a6b7a695443666f584c4b57394156544768446e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019556e69716c792047656e6573697320436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000009554e49514c594f4e450000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102cd5760003560e01c8063853828b611610175578063b66a0e5d116100dc578063dc6b862711610095578063f0cc3b851161006f578063f0cc3b851461089c578063f2fde38b146108bc578063f449619e146108dc578063fadd3087146108fc576102d4565b8063dc6b862714610845578063e985e9c514610867578063f0c9dc6014610887576102d4565b8063b66a0e5d1461077c578063b88d4fde14610791578063c6437286146107b1578063c87b56dd146107d1578063cef6d368146107f1578063dbddb26a14610830576102d4565b80639e8c708e1161012e5780639e8c708e146106ba578063a22cb465146106da578063a2fb1175146106fa578063a4db62521461071a578063b37217a41461073a578063b52ea4151461075a576102d4565b8063853828b61461061d5780638589ff45146106325780638da5cb5b1461065257806390fc5d4d1461067057806394985ddd1461068557806395d89b41146106a5576102d4565b80632f745c591161023457806355f804b3116101ed5780636d8d0ff3116101c75780636d8d0ff31461059b57806370a08231146105bb578063715018a6146105db5780638462151c146105f0576102d4565b806355f804b3146105465780636352211e1461056657806366c879a914610586576102d4565b80632f745c591461047c578063335477fc1461049c5780634129b2c9146104d057806342619f66146104f057806342842e0e146105065780634f6ccce714610526576102d4565b806318160ddd1161028657806318160ddd146103c95780631c8b232d146103de5780631ee304a0146103fc57806323b872dd1461041c578063259944d61461043c5780632ca40ed81461045c576102d4565b806301ffc9a7146102d957806306fdde031461030e578063081812fc14610330578063095ea7b3146103685780630b75cef41461038a57806310969523146103a9576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b506102f96102f4366004613856565b61090f565b60405190151581526020015b60405180910390f35b34801561031a57600080fd5b5061032361093c565b6040516103059190613b21565b34801561033c57600080fd5b5061035061034b3660046138dd565b6109cf565b6040516001600160a01b039091168152602001610305565b34801561037457600080fd5b50610388610383366004613797565b610a69565b005b34801561039657600080fd5b50600d545b604051908152602001610305565b3480156103b557600080fd5b506103886103c43660046138aa565b610b7f565b3480156103d557600080fd5b5060085461039b565b3480156103ea57600080fd5b506102f9600e54610100900460ff1690565b34801561040857600080fd5b506103236104173660046138dd565b610bc0565b34801561042857600080fd5b50610388610437366004613666565b610c62565b34801561044857600080fd5b5061038861045736600461390d565b610c93565b34801561046857600080fd5b506102f9610477366004613612565b610dfd565b34801561048857600080fd5b5061039b610497366004613797565b610e08565b3480156104a857600080fd5b5061039b7f00000000000000000000000000000000000000000000000000000000000b71b081565b3480156104dc57600080fd5b506103506104eb3660046138dd565b610ea1565b3480156104fc57600080fd5b5061039b600c5481565b34801561051257600080fd5b50610388610521366004613666565b610edf565b34801561053257600080fd5b5061039b6105413660046138dd565b610efa565b34801561055257600080fd5b506103886105613660046138aa565b610f9b565b34801561057257600080fd5b506103506105813660046138dd565b611036565b34801561059257600080fd5b506103886110ad565b3480156105a757600080fd5b506103886105b6366004613797565b611130565b3480156105c757600080fd5b5061039b6105d6366004613612565b6111e8565b3480156105e757600080fd5b5061038861126f565b3480156105fc57600080fd5b5061061061060b366004613612565b6112e3565b6040516103059190613ae9565b34801561062957600080fd5b506103886113c4565b34801561063e57600080fd5b5061038861064d3660046136a6565b611414565b34801561065e57600080fd5b50600a546001600160a01b0316610350565b34801561067c57600080fd5b5061271061039b565b34801561069157600080fd5b506103886106a0366004613835565b611480565b3480156106b157600080fd5b50610323611502565b3480156106c657600080fd5b506103886106d5366004613612565b611511565b3480156106e657600080fd5b506103886106f536600461376a565b611681565b34801561070657600080fd5b506103506107153660046138dd565b611753565b34801561072657600080fd5b506102f96107353660046138dd565b61177d565b34801561074657600080fd5b5061039b6107553660046138dd565b611788565b34801561076657600080fd5b5061076f611a12565b6040516103059190613ab8565b34801561078857600080fd5b50610388611a27565b34801561079d57600080fd5b506103886107ac366004613700565b611a62565b3480156107bd57600080fd5b5061039b6107cc3660046137c2565b611a94565b3480156107dd57600080fd5b506103236107ec3660046138dd565b611aca565b3480156107fd57600080fd5b5061081161080c3660046138dd565b611ba5565b604080516001600160a01b039093168352602083019190915201610305565b34801561083c57600080fd5b50610323611be3565b34801561085157600080fd5b5061085a611c71565b6040516103059190613a6b565b34801561087357600080fd5b506102f961088236600461362e565b611d89565b34801561089357600080fd5b50610323611e39565b3480156108a857600080fd5b5061039b6108b73660046138dd565b611e46565b3480156108c857600080fd5b506103886108d7366004613612565b611e51565b3480156108e857600080fd5b506103886108f73660046138dd565b611f3c565b61038861090a3660046138dd565b61211e565b60006001600160e01b0319821663780e9d6360e01b14806109345750610934826122b3565b90505b919050565b60606000805461094b90613c9a565b80601f016020809104026020016040519081016040528092919081815260200182805461097790613c9a565b80156109c45780601f10610999576101008083540402835291602001916109c4565b820191906000526020600020905b8154815290600101906020018083116109a757829003601f168201915b505050505090505b90565b6000818152600260205260408120546001600160a01b0316610a4d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a7482611036565b9050806001600160a01b0316836001600160a01b03161415610ae25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a44565b336001600160a01b0382161480610afe5750610afe8133612303565b610b705760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a44565b610b7a8383612331565b505050565b600a546001600160a01b03163314610ba95760405162461bcd60e51b8152600401610a4490613b86565b8051610bbc90600f9060208401906134d8565b5050565b6000818152601160205260409020805460609190610bdd90613c9a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0990613c9a565b8015610c565780601f10610c2b57610100808354040283529160200191610c56565b820191906000526020600020905b815481529060010190602001808311610c3957829003601f168201915b50505050509050919050565b610c6c338261239f565b610c885760405162461bcd60e51b8152600401610a4490613bbb565b610b7a83838361246e565b6000600c5411610cdc5760405162461bcd60e51b8152602060048201526014602482015273131bdd1d195c9e481b5d5cdd081899481a195b1960621b6044820152606401610a44565b33610ce684611036565b6001600160a01b031614610d3c5760405162461bcd60e51b815260206004820152601a60248201527f596f75206e65656420746f206f776e207468697320746f6b656e0000000000006044820152606401610a44565b610d4833848484612619565b610d8d5760405162461bcd60e51b815260206004820152601660248201527514da59db985d1d5c99481a5cc81b9bdd081d985b1a5960521b6044820152606401610a44565b60008381526011602090815260409091208351610dac928501906134d8565b50610db6836126be565b82336001600160a01b03167f58fb02bcfedd338314c70bcf748b4f71a01259cf8956f31b34cb09acf29809cb84604051610df09190613b21565b60405180910390a3505050565b600061093482612765565b6000610e13836111e8565b8210610e755760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a44565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b6000600d8281548110610ec457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b610b7a83838360405180602001604052806000815250611a62565b6000610f0560085490565b8210610f685760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a44565b60088281548110610f8957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610fc55760405162461bcd60e51b8152600401610a4490613b86565b600e5460ff16156110235760405162461bcd60e51b815260206004820152602260248201527f43616e74207570646174652062617365205552493a204c6f636b20656e61626c604482015261195960f21b6064820152608401610a44565b8051610bbc9060109060208401906134d8565b6000818152600260205260408120546001600160a01b0316806109345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a44565b600a546001600160a01b031633146110d75760405162461bcd60e51b8152600401610a4490613b86565b600e5460ff16156111215760405162461bcd60e51b8152602060048201526014602482015273131bd8dac8185b1c9958591e48195b98589b195960621b6044820152606401610a44565b600e805460ff19166001179055565b600a546001600160a01b0316331461115a5760405162461bcd60e51b8152600401610a4490613b86565b600061116560085490565b905060646111738383613c0c565b11156111ad5760405162461bcd60e51b81526020600482015260096024820152680557020746f203130360bc1b6044820152606401610a44565b60005b828110156111e2576111c284836127e3565b816111cc81613ccf565b92505080806111da90613ccf565b9150506111b0565b50505050565b60006001600160a01b0382166112535760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a44565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146112995760405162461bcd60e51b8152600401610a4490613b86565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b606060006112f0836111e8565b90508061130d575050604080516000815260208101909152610937565b60008167ffffffffffffffff81111561133657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561135f578160200160208202803683370190505b50905060005b828110156113b4576113778582610e08565b82828151811061139757634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806113ac81613ccf565b915050611365565b5091506109379050565b50919050565b600a546001600160a01b031633146113ee5760405162461bcd60e51b8152600401610a4490613b86565b60405133904780156108fc02916000818181858888f1935050505061141257600080fd5b565b82846001600160a01b0316611431600a546001600160a01b031690565b604080516001600160a01b0387811682526020820187905292909216917f096a55ec842afaa98cb78cb0352921e73c0d1caa9136309fa9c07f13f4a39a60910160405180910390a45050505050565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146114f85760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610a44565b600c819055610bbc565b60606001805461094b90613c9a565b600a546001600160a01b0316331461153b5760405162461bcd60e51b8152600401610a4490613b86565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561157d57600080fd5b505afa158015611591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b591906138f5565b9050600081116115fc5760405162461bcd60e51b81526020600482015260126024820152712737ba3434b733903a37903932b1b7bb32b960711b6044820152606401610a44565b816001600160a01b031663a9059cbb61161d600a546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561166557600080fd5b505af1158015611679573d6000803e3d6000fd5b505050505050565b6001600160a01b0382163314156116da5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a44565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611747911515815260200190565b60405180910390a35050565b600d818154811061176357600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610934826127fd565b600a546000906001600160a01b031633146117b55760405162461bcd60e51b8152600401610a4490613b86565b6127106117c160085490565b10156118045760405162461bcd60e51b815260206004820152601260248201527114d85b19481b5d5cdd08189948195b99195960721b6044820152606401610a44565b600c54156118545760405162461bcd60e51b815260206004820152601f60248201527f52616e646f6d206e756d62657220616c726561647920696e69746961746564006044820152606401610a44565b678ac7230489e800004710156118ac5760405162461bcd60e51b815260206004820152601b60248201527f6d696e203130204554482062616c616e636520726571756972656400000000006044820152606401610a44565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000001bc16d674ec80000907f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b15801561192d57600080fd5b505afa158015611941573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196591906138f5565b10156119c75760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b6064820152608401610a44565b6109347faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec80000846128b3565b611a1a613558565b611a22612a46565b905090565b600a546001600160a01b03163314611a515760405162461bcd60e51b8152600401610a4490613b86565b600e805461ff001916610100179055565b611a6c338361239f565b611a885760405162461bcd60e51b8152600401610a4490613bbb565b6111e284848484612c35565b6000838383604051602001611aab93929190613999565b6040516020818303038152906040528051906020012090509392505050565b6000818152600260205260409020546060906001600160a01b0316611b495760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a44565b6000611b53612c68565b90506000815111611b735760405180602001604052806000815250611b9e565b80611b7d84612c77565b604051602001611b8e9291906139d8565b6040516020818303038152906040525b9392505050565b600080611bba600a546001600160a01b031690565b937f00000000000000000000000000000000000000000000000000000000000b71b09350915050565b60108054611bf090613c9a565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1c90613c9a565b8015611c695780601f10611c3e57610100808354040283529160200191611c69565b820191906000526020600020905b815481529060010190602001808311611c4c57829003601f168201915b505050505081565b600d5460609080611c925750506040805160008152602081019091526109cc565b60008167ffffffffffffffff811115611cbb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ce4578160200160208202803683370190505b50905060005b82811015611d7b57600d8181548110611d1357634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316828281518110611d5157634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280611d7381613ccf565b915050611cea565b5091506109cc9050565b5090565b60125460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611dd657600080fd5b505afa158015611dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0e919061388e565b6001600160a01b03161415611e27576001915050610e9b565b611e318484612303565b949350505050565b600f8054611bf090613c9a565b600061093482612d92565b600a546001600160a01b03163314611e7b5760405162461bcd60e51b8152600401610a4490613b86565b6001600160a01b038116611ee05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a44565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b33611f4682611036565b6001600160a01b031614611f8f5760405162461bcd60e51b815260206004820152601060248201526f13dddb995c9cda1a5c081b995959195960821b6044820152606401610a44565b611f98816127fd565b1515600114611fd85760405162461bcd60e51b815260206004820152600c60248201526b2cb7ba903234b73a103bb4b760a11b6044820152606401610a44565b611fe133612765565b1561202e5760405162461bcd60e51b815260206004820152601860248201527f416c72656164792072656365697665642061207072697a6500000000000000006044820152606401610a44565b600d54600a116120765760405162461bcd60e51b8152602060048201526013602482015272141c9a5e99481b1a5b5a5d081c995858da1959606a1b6044820152606401610a44565b600d80546001810182556000919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b031916339081179091556040518281527f79c99597ba23f96ba7d9b4729d81d5de16e368bfe8307fa890457fb7474ec98c9060200160405180910390a26040513390600090670de0b6b3a76400009082818181858883f19350505050158015610bbc573d6000803e3d6000fd5b600e54610100900460ff166121755760405162461bcd60e51b815260206004820152601860248201527f53616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610a44565b600061218082612d92565b9050803410156121c55760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b6044820152606401610a44565b601e82111580156121d65750600082115b6122325760405162461bcd60e51b815260206004820152602760248201527f596f752063616e20627579206d696e696d756d20312c206d6178696d756d20336044820152663020556e69717360c81b6064820152608401610a44565b600061223d60085490565b905060005b838110156122745761225433836127e3565b8161225e81613ccf565b925050808061226c90613ccf565b915050612242565b5034821015610b7a57336108fc61228b8434613c57565b6040518115909202916000818181858888f193505050501580156111e2573d6000803e3d6000fd5b60006001600160e01b031982166380ac58cd60e01b14806122e457506001600160e01b03198216635b5e139f60e01b145b8061093457506301ffc9a760e01b6001600160e01b0319831614610934565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061236682611036565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166124185760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a44565b600061242383611036565b9050806001600160a01b0316846001600160a01b0316148061245e5750836001600160a01b0316612453846109cf565b6001600160a01b0316145b80611e315750611e318185612303565b826001600160a01b031661248182611036565b6001600160a01b0316146124e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a44565b6001600160a01b03821661254b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a44565b612556838383612eaf565b612561600082612331565b6001600160a01b038316600090815260036020526040812080546001929061258a908490613c57565b90915550506001600160a01b03821660009081526003602052604081208054600192906125b8908490613c0c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080612627868686611a94565b90506000612682826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b9050612696600a546001600160a01b031690565b6001600160a01b03166126a98286612f6c565b6001600160a01b031614979650505050505050565b60006126c982611036565b90506126d781600084612eaf565b6126e2600083612331565b6001600160a01b038116600090815260036020526040812080546001929061270b908490613c57565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600d5460009081905b808210156127d957836001600160a01b0316600d83815481106127a157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156127c757600192505050610937565b816127d181613ccf565b92505061276e565b5060009392505050565b610bbc828260405180602001604052806000815250613034565b600080600c54116128505760405162461bcd60e51b815260206004820152601860248201527f52616e646f6d206d75737420626520696e6974696174656400000000000000006044820152606401610a44565b600061271083600c54604051602001612873929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6128969190613cea565b9050601481116128aa576001915050610937565b50600092915050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952858786604051602001612922929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161294f93929190613a44565b602060405180830381600087803b15801561296957600080fd5b505af115801561297d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a19190613819565b506000848152600b602081815260408084205481518084018a905280830188905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938890529190526129fd906001613067565b6000868152600b6020526040902055612a3d8582604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b95945050505050565b612a4e613558565b6000612a5960085490565b90506000612a69826105db613c57565b1115612aad576040518060600160405280667c5850872380008152602001826105db612a959190613c57565b815260200166b1a2bc2ec500008152509150506109cc565b6000612abb82610dab613c57565b1115612b0057604051806060016040528066b1a2bc2ec50000815260200182610dab612ae79190613c57565b815260200167011c37937e0800008152509150506109cc565b6000612b0e82611d4b613c57565b1115612b5457604051806060016040528067011c37937e080000815260200182611d4b612b3b9190613c57565b81526020016701aa535d3d0c00008152509150506109cc565b6000612b628261251b613c57565b1115612ba85760405180606001604052806701aa535d3d0c000081526020018261251b612b8f9190613c57565b8152602001670354a6ba7a1800008152509150506109cc565b6000612bb6826126ab613c57565b1115612bfc576040518060600160405280670354a6ba7a1800008152602001826126ab612be39190613c57565b815260200167058d15e1762800008152509150506109cc565b604051806060016040528067058d15e176280000815260200182612710612c239190613c57565b815260200160008152509150506109cc565b612c4084848461246e565b612c4c848484846130c6565b6111e25760405162461bcd60e51b8152600401610a4490613b34565b60606010805461094b90613c9a565b606081612c9c57506040805180820190915260018152600360fc1b6020820152610937565b8160005b8115612cc65780612cb081613ccf565b9150612cbf9050600a83613c24565b9150612ca0565b60008167ffffffffffffffff811115612cef57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612d19576020820181803683370190505b5090505b8415611e3157612d2e600183613c57565b9150612d3b600a86613cea565b612d46906030613c0c565b60f81b818381518110612d6957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612d8b600a86613c24565b9450612d1d565b600080612d9e60085490565b90506127108110612dea5760405162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b6044820152606401610a44565b612710612df78285613c0c565b1115612e455760405162461bcd60e51b815260206004820152601f60248201527f596f752063616e6e6f74206275792074686174206d616e7920746f6b656e73006044820152606401610a44565b6000612e4f612a46565b90508381600160200201511115612e76578051612e6d908590613c38565b92505050610937565b6020810151612e859085613c57565b6040820151612e949190613c38565b81516020830151612ea59190613c38565b612e6d9190613c0c565b6001600160a01b038316612f0a57612f0581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f2d565b816001600160a01b0316836001600160a01b031614612f2d57612f2d83826131d0565b6001600160a01b038216612f4957612f448161326d565b610b7a565b826001600160a01b0316826001600160a01b031614610b7a57610b7a8282613346565b60008151604114612fbf5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610a44565b602082810151604080850151606080870151835160008082529681018086528a9052951a928501839052840183905260808401819052919260019060a0016020604051602081039080840390855afa15801561301f573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b61303e838361338a565b61304b60008484846130c6565b610b7a5760405162461bcd60e51b8152600401610a4490613b34565b6000806130748385613c0c565b905083811015611b9e5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a44565b60006001600160a01b0384163b156131c857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061310a903390899088908890600401613a07565b602060405180830381600087803b15801561312457600080fd5b505af1925050508015613154575060408051601f3d908101601f1916820190925261315191810190613872565b60015b6131ae573d808015613182576040519150601f19603f3d011682016040523d82523d6000602084013e613187565b606091505b5080516131a65760405162461bcd60e51b8152600401610a4490613b34565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e31565b506001611e31565b600060016131dd846111e8565b6131e79190613c57565b60008381526007602052604090205490915080821461323a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061327f90600190613c57565b600083815260096020526040812054600880549394509092849081106132b557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106132e457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061332a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613351836111e8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166133e05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a44565b6000818152600260205260409020546001600160a01b0316156134455760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a44565b61345160008383612eaf565b6001600160a01b038216600090815260036020526040812080546001929061347a908490613c0c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546134e490613c9a565b90600052602060002090601f016020900481019282613506576000855561354c565b82601f1061351f57805160ff191683800117855561354c565b8280016001018555821561354c579182015b8281111561354c578251825591602001919060010190613531565b50611d85929150613576565b60405180606001604052806003906020820280368337509192915050565b5b80821115611d855760008155600101613577565b600082601f83011261359b578081fd5b813567ffffffffffffffff808211156135b6576135b6613d2a565b604051601f8301601f19908116603f011681019082821181831017156135de576135de613d2a565b816040528381528660208588010111156135f6578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215613623578081fd5b8135611b9e81613d40565b60008060408385031215613640578081fd5b823561364b81613d40565b9150602083013561365b81613d40565b809150509250929050565b60008060006060848603121561367a578081fd5b833561368581613d40565b9250602084013561369581613d40565b929592945050506040919091013590565b600080600080600060a086880312156136bd578081fd5b85356136c881613d40565b945060208601356136d881613d40565b93506040860135925060608601356136ef81613d40565b949793965091946080013592915050565b60008060008060808587031215613715578384fd5b843561372081613d40565b9350602085013561373081613d40565b925060408501359150606085013567ffffffffffffffff811115613752578182fd5b61375e8782880161358b565b91505092959194509250565b6000806040838503121561377c578182fd5b823561378781613d40565b9150602083013561365b81613d58565b600080604083850312156137a9578182fd5b82356137b481613d40565b946020939093013593505050565b6000806000606084860312156137d6578283fd5b83356137e181613d40565b925060208401359150604084013567ffffffffffffffff811115613803578182fd5b61380f8682870161358b565b9150509250925092565b60006020828403121561382a578081fd5b8151611b9e81613d58565b60008060408385031215613847578182fd5b50508035926020909101359150565b600060208284031215613867578081fd5b8135611b9e81613d66565b600060208284031215613883578081fd5b8151611b9e81613d66565b60006020828403121561389f578081fd5b8151611b9e81613d40565b6000602082840312156138bb578081fd5b813567ffffffffffffffff8111156138d1578182fd5b611e318482850161358b565b6000602082840312156138ee578081fd5b5035919050565b600060208284031215613906578081fd5b5051919050565b600080600060608486031215613921578081fd5b83359250602084013567ffffffffffffffff8082111561393f578283fd5b61394b8783880161358b565b93506040860135915080821115613960578283fd5b5061380f8682870161358b565b60008151808452613985816020860160208601613c6e565b601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff198560601b16825283601483015282516139c9816034850160208701613c6e565b91909101603401949350505050565b600083516139ea818460208801613c6e565b8351908301906139fe818360208801613c6e565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a3a9083018461396d565b9695505050505050565b600060018060a01b038516825283602083015260606040830152612a3d606083018461396d565b6020808252825182820181905260009190848201906040850190845b81811015613aac5783516001600160a01b031683529284019291840191600101613a87565b50909695505050505050565b60608101818360005b6003811015613ae0578151835260209283019290910190600101613ac1565b50505092915050565b6020808252825182820181905260009190848201906040850190845b81811015613aac57835183529284019291840191600101613b05565b600060208252611b9e602083018461396d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613c1f57613c1f613cfe565b500190565b600082613c3357613c33613d14565b500490565b6000816000190483118215151615613c5257613c52613cfe565b500290565b600082821015613c6957613c69613cfe565b500390565b60005b83811015613c89578181015183820152602001613c71565b838111156111e25750506000910152565b600181811c90821680613cae57607f821691505b602082108114156113be57634e487b7160e01b600052602260045260246000fd5b6000600019821415613ce357613ce3613cfe565b5060010190565b600082613cf957613cf9613d14565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114613d5557600080fd5b50565b8015158114613d5557600080fd5b6001600160e01b031981168114613d5557600080fdfea2646970667358221220d654f3724b136a4fd81edc19fa1f4439561e0bb43d6d0446d683b82986388da964736f6c63430008030033

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

000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000025cc669bbb52f36f723c35cf84b6e6e4364e9edc000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f756e69716c792e6d7970696e6174612e636c6f75642f697066732f516d627a6a666a316b777842754d5548466a6e37734a417964537a6b7a695443666f584c4b57394156544768446e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019556e69716c792047656e6573697320436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000009554e49514c594f4e450000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://uniqly.mypinata.cloud/ipfs/Qmbzjfj1kwxBuMUHFjn7sJAydSzkziTCfoXLKW9AVTGhDn/
Arg [1] : _name (string): Uniqly Genesis Collection
Arg [2] : _symbol (string): UNIQLYONE
Arg [3] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [4] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [5] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [6] : _fee (uint256): 2000000000000000000
Arg [7] : _owner_ (address): 0x25cC669bbb52F36f723c35CF84b6E6E4364E9EDc
Arg [8] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [3] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [4] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [5] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [6] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [7] : 00000000000000000000000025cc669bbb52f36f723c35cf84b6e6e4364e9edc
Arg [8] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000052
Arg [10] : 68747470733a2f2f756e69716c792e6d7970696e6174612e636c6f75642f6970
Arg [11] : 66732f516d627a6a666a316b777842754d5548466a6e37734a417964537a6b7a
Arg [12] : 695443666f584c4b57394156544768446e2f0000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [14] : 556e69716c792047656e6573697320436f6c6c656374696f6e00000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [16] : 554e49514c594f4e450000000000000000000000000000000000000000000000


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.