ETH Price: $2,628.05 (+0.56%)

Contract

0x39cEd238262Eb15B1409871bbcb5B89a478f68C4
 

Overview

ETH Balance

0.0003 ETH

Eth Value

$0.79 (@ $2,628.05/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...199978872024-06-01 15:32:47138 days ago1717255967IN
0x39cEd238...a478f68C4
0 ETH0.000569710.98087054
Safe Transfer Fr...199978822024-06-01 15:31:47138 days ago1717255907IN
0x39cEd238...a478f68C4
0 ETH0.000492669.49578337
Safe Transfer Fr...199978792024-06-01 15:31:11138 days ago1717255871IN
0x39cEd238...a478f68C4
0 ETH0.0005510910.62206557
Safe Transfer Fr...199978702024-06-01 15:29:23138 days ago1717255763IN
0x39cEd238...a478f68C4
0 ETH0.0005773311.12785892
Safe Transfer Fr...199978492024-06-01 15:25:11138 days ago1717255511IN
0x39cEd238...a478f68C4
0 ETH0.0005296610.20901062
Safe Transfer Fr...199978452024-06-01 15:24:23138 days ago1717255463IN
0x39cEd238...a478f68C4
0 ETH0.000473699.13026191
Safe Transfer Fr...199978412024-06-01 15:23:35138 days ago1717255415IN
0x39cEd238...a478f68C4
0 ETH0.000471979.09711991
Safe Transfer Fr...199978382024-06-01 15:22:59138 days ago1717255379IN
0x39cEd238...a478f68C4
0 ETH0.000490269.44964065
Safe Transfer Fr...199978342024-06-01 15:22:11138 days ago1717255331IN
0x39cEd238...a478f68C4
0 ETH0.000469699.05305087
Safe Transfer Fr...199978262024-06-01 15:20:35138 days ago1717255235IN
0x39cEd238...a478f68C4
0 ETH0.000405437.81456881
Safe Transfer Fr...199978162024-06-01 15:18:35138 days ago1717255115IN
0x39cEd238...a478f68C4
0 ETH0.000503469.67735965
Safe Transfer Fr...199978122024-06-01 15:17:47138 days ago1717255067IN
0x39cEd238...a478f68C4
0 ETH0.000482239.29489199
Safe Transfer Fr...199978052024-06-01 15:16:23138 days ago1717254983IN
0x39cEd238...a478f68C4
0 ETH0.00050399.71245346
Safe Transfer Fr...199978022024-06-01 15:15:47138 days ago1717254947IN
0x39cEd238...a478f68C4
0 ETH0.00045128.69673371
Safe Transfer Fr...199978002024-06-01 15:15:23138 days ago1717254923IN
0x39cEd238...a478f68C4
0 ETH0.000467339.00763126
Safe Transfer Fr...199977952024-06-01 15:14:23138 days ago1717254863IN
0x39cEd238...a478f68C4
0 ETH0.000633269.18019418
Set Approval For...162916392022-12-29 16:34:35658 days ago1672331675IN
0x39cEd238...a478f68C4
0 ETH0.000715115.49993764
Safe Transfer Fr...162916092022-12-29 16:28:35658 days ago1672331315IN
0x39cEd238...a478f68C4
0 ETH0.0007558914.51234516
Safe Transfer Fr...161369172022-12-08 2:10:11680 days ago1670465411IN
0x39cEd238...a478f68C4
0 ETH0.0009786114.14720805
Transfer Ownersh...159018032022-11-05 5:43:47713 days ago1667627027IN
0x39cEd238...a478f68C4
0 ETH0.0003316311.57876288
Transfer Ownersh...159017662022-11-05 5:35:59713 days ago1667626559IN
0x39cEd238...a478f68C4
0 ETH0.0003593512.54645137
Safe Transfer Fr...158689312022-10-31 15:27:11717 days ago1667230031IN
0x39cEd238...a478f68C4
0 ETH0.0015449829.69184271
Safe Transfer Fr...158689282022-10-31 15:26:35717 days ago1667229995IN
0x39cEd238...a478f68C4
0 ETH0.0016139631.01758673
Safe Transfer Fr...158689252022-10-31 15:25:59717 days ago1667229959IN
0x39cEd238...a478f68C4
0 ETH0.0014264527.33877481
Safe Transfer Fr...158689222022-10-31 15:25:23717 days ago1667229923IN
0x39cEd238...a478f68C4
0 ETH0.0014718328.28606698
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
150641382022-07-02 16:21:16838 days ago1656778876
0x39cEd238...a478f68C4
1.026855 ETH
150641382022-07-02 16:21:16838 days ago1656778876
0x39cEd238...a478f68C4
0.054045 ETH
150641382022-07-02 16:21:16838 days ago1656778876
0x39cEd238...a478f68C4
0.1201 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ResearchFundingClub

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 500 runs

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

pragma solidity ^0.8.4;

import "./ERC721A.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

error URIQueryForNonexistentTokenRFC();
error SaleIncomplete();
error CollectionNotRevealedYet();
error ContractPaused();
error ZeroMintFailed();
error MaxPerNFTAddrExceeded();
error SoldOut();
error InsufficientFunds();

contract ResearchFundingClub is ERC721A, ERC2981, Ownable, ReentrancyGuard {
    using Strings for uint256;

    struct CollectionData {
        uint256 minSupply;
        uint256 maxSupply;
        string baseURI;   
    }

    bool public paused = true;
    string public baseExtension = ".json";
    string public notRevealedURI;
    string public baseTokenURI;

    uint256 public MIN_SUPPLY = 0; // only used for multi-drop reveal check
    uint256 public MAX_SUPPLY = 25;
    
    uint256 public PRICE = 0.2 ether;
    uint256 public MAX_PER_MINT = 1;
    bool public revealed = false;

    uint256 public collectionID = 1;
    mapping(uint256 => CollectionData) public collections;

    // Wallets
    address public charityWallet = 0x7158d45648167222C89351CeBF618f413Bad08fb;
    address public devWallet = 0x81E3CBA331c2036044A62B54524a44D319D0E1ae;

    constructor(uint96 _royaltyFeesInBips, string memory _notRevealedURI) ERC721A("Research Funding Club", "RFC") {
        setRoyaltyInfo(msg.sender, _royaltyFeesInBips); // 2.5% = 2.5 * 100 = 250 
        notRevealedURI = _notRevealedURI;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721A)
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentTokenRFC();

        if (!revealed && tokenId >= MIN_SUPPLY) {
            return notRevealedURI;
        }

        for (uint256 i=1; i <= collectionID; i++) {
            if (tokenId < collections[i].maxSupply) {
                tokenId = tokenId - collections[i].minSupply;
                return string(abi.encodePacked(collections[i].baseURI, tokenId.toString(), baseExtension));
            }
        }

        return '';
    }

    function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyOwner {
        _setDefaultRoyalty(_receiver, _royaltyFeesInBips);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721A, ERC2981)
        returns (bool)
    {
        return (
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId)
        );
    }
  
    function mint(uint256 _mintAmount) external payable {
        if (msg.sender != owner()) {
            if (paused) revert ContractPaused();
            if (_mintAmount == 0) revert ZeroMintFailed();
            if (_mintAmount > MAX_PER_MINT) revert MaxPerNFTAddrExceeded();
            if (msg.value < PRICE * _mintAmount) revert InsufficientFunds();
        }

        uint256 supply = totalSupply();
        if (supply + _mintAmount > MAX_SUPPLY) revert SoldOut();

        _safeMint(msg.sender, _mintAmount);
    }

    function airDrop(uint256 _mintAmount, address destination) external onlyOwner  {
        uint256 supply = totalSupply();
        if (_mintAmount == 0) revert ZeroMintFailed();
        if (_mintAmount > MAX_PER_MINT) revert MaxPerNFTAddrExceeded();
        if (supply + _mintAmount > MAX_SUPPLY) revert SoldOut();
        _safeMint(destination, _mintAmount);
    }

    function tokensOfOwner(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);
        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }

        return tokensId;
    }

    function getCollectionInfo(uint256 _id) external view returns(CollectionData memory) {
        return collections[_id];
    }

    function reveal(string memory _newBaseURI) external onlyOwner {
        collections[collectionID] = CollectionData(MIN_SUPPLY, MAX_SUPPLY, _newBaseURI);
        revealed = true;
        collectionID++;
    }

    function newDrop(uint256 _newMaxSupply)
        external 
        onlyOwner
    {   
        if (totalSupply() != MAX_SUPPLY) revert SaleIncomplete(); 
        if (!revealed) revert CollectionNotRevealedYet();

        MIN_SUPPLY = MAX_SUPPLY;
        MAX_SUPPLY +=_newMaxSupply;
        revealed = false;
        paused = true; 
    }


    function setmaxMintAmount(uint256 _limit) external onlyOwner {
        MAX_PER_MINT = _limit;
    }

    function setmaxSupply(uint256 _limit) external onlyOwner {
        MAX_SUPPLY = _limit;
    }

    function setCost(uint256 _newCost) external onlyOwner {
        PRICE = _newCost;
    }

    function setNotRevealedURI(string memory _notRevealedURI) external onlyOwner {
        notRevealedURI = _notRevealedURI;
    }
    
    function setBaseURI(uint256 _collectionID, string memory _baseTokenURI) external onlyOwner {
        collections[_collectionID].baseURI = _baseTokenURI;
    }

    function baseURI(uint256 _collectionID) external view returns(string memory) {
        return collections[_collectionID].baseURI;
    }
    
    function setBaseExtension(string memory _newBaseExtension)
        external
        onlyOwner
    {
        baseExtension = _newBaseExtension;
    }

    function pause(bool _state) external onlyOwner {
        paused = _state;
    }

    function withdraw() external onlyOwner nonReentrant {
        uint256 balance = address(this).balance;
        require(balance > 0, "No ether left to withdraw.");

        // charity
        (bool cw, ) = (charityWallet).call{
            value: (address(this).balance * 10) / 100
        }("");
        require(cw, "Charity Transfer failed.");

        // developer
        (bool df, ) = (devWallet).call{
            value: (address(this).balance * 5) / 100
        }("");
        require(df, "Developer Transfer failed.");

        // owner
        (bool success, ) = (msg.sender).call{value: address(this).balance}("");
        require(success, "Owner Transfer failed.");
    }
}

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

pragma solidity ^0.8.4;

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

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

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

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

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
    }

    // Compiler will pack the following 
    // _currentIndex and _burnCounter into a single 256bit word.
    
    // The tokenId of the next token to be minted.
    uint128 internal _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _currentIndex = uint128(updatedIndex);
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

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

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 15 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"},{"internalType":"string","name":"_notRevealedURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CollectionNotRevealedYet","type":"error"},{"inputs":[],"name":"ContractPaused","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"MaxPerNFTAddrExceeded","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SaleIncomplete","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentTokenRFC","type":"error"},{"inputs":[],"name":"ZeroMintFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"destination","type":"address"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionID","type":"uint256"}],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collections","outputs":[{"internalType":"uint256","name":"minSupply","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","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":"uint256","name":"_id","type":"uint256"}],"name":"getCollectionInfo","outputs":[{"components":[{"internalType":"uint256","name":"minSupply","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"string","name":"baseURI","type":"string"}],"internalType":"struct ResearchFundingClub.CollectionData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"newDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"notRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionID","type":"uint256"},{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setmaxSupply","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600b805460ff1916600117905560c06040526005608081905264173539b7b760d91b60a09081526200003591600c919062000361565b506000600f5560196010556702c68af0bb140000601155600160128190556013805460ff19169055601455601680546001600160a01b0319908116737158d45648167222c89351cebf618f413bad08fb17909155601780549091167381e3cba331c2036044a62b54524a44d319d0e1ae179055348015620000b557600080fd5b50604051620034a7380380620034a7833981016040819052620000d89162000407565b604080518082018252601581527f52657365617263682046756e64696e6720436c7562000000000000000000000060208083019182528351808501909452600384526252464360e81b908401528151919291620001389160019162000361565b5080516200014e90600290602084019062000361565b5050506200016b620001656200019a60201b60201c565b6200019e565b6001600a556200017c3383620001f0565b80516200019190600d90602084019062000361565b5050506200055a565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6009546001600160a01b03163314620002505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6200025c828262000260565b5050565b6127106001600160601b0382161115620002d05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000247565b6001600160a01b038216620003285760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000247565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b8280546200036f9062000507565b90600052602060002090601f016020900481019282620003935760008555620003de565b82601f10620003ae57805160ff1916838001178555620003de565b82800160010185558215620003de579182015b82811115620003de578251825591602001919060010190620003c1565b50620003ec929150620003f0565b5090565b5b80821115620003ec5760008155600101620003f1565b600080604083850312156200041b57600080fd5b82516001600160601b03811681146200043357600080fd5b602084810151919350906001600160401b03808211156200045357600080fd5b818601915086601f8301126200046857600080fd5b8151818111156200047d576200047d62000544565b604051601f8201601f19908116603f01168101908382118183101715620004a857620004a862000544565b816040528281528986848701011115620004c157600080fd5b600093505b82841015620004e55784840186015181850187015292850192620004c6565b82841115620004f75760008684830101525b8096505050505050509250929050565b600181811c908216806200051c57607f821691505b602082108114156200053e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612f3d806200056a6000396000f3fe60806040526004361061031e5760003560e01c80635c975abb116101a5578063a0712d68116100ec578063d4e4d3dd11610095578063e985e9c51161006f578063e985e9c5146108bb578063f2c4ce1e14610904578063f2fde38b14610924578063fdbda0ec1461094457600080fd5b8063d4e4d3dd14610859578063d547cfb714610886578063da3ef23f1461089b57600080fd5b8063b88d4fde116100c6578063b88d4fde14610804578063c668286214610824578063c87b56dd1461083957600080fd5b8063a0712d68146107b1578063a22cb465146107c4578063aed38015146107e457600080fd5b80637f00c7a61161014e5780638da5cb5b116101285780638da5cb5b1461075e5780638ea5220f1461077c57806395d89b411461079c57600080fd5b80637f00c7a6146106fb5780638462151c1461071b5780638d859f3e1461074857600080fd5b8063715018a61161017f578063715018a6146106b157806372250380146106c65780637b208769146106db57600080fd5b80635c975abb146106575780636352211e1461067157806370a082311461069157600080fd5b80632f745c591161026957806344a0d68a116102125780634f6ccce7116101ec5780634f6ccce714610607578063518302271461062757806358b33e691461064157600080fd5b806344a0d68a146105a75780634c261247146105c75780634c29bcf0146105e757600080fd5b806335917c641161024357806335917c641461055c5780633ccfd60b1461057257806342842e0e1461058757600080fd5b80632f745c591461050657806332cb6b0c1461052657806333cfcb9f1461053c57600080fd5b806309d42b30116102cb57806323b872dd116102a557806323b872dd146104875780632a55205a146104a75780632ccde4f6146104e657600080fd5b806309d42b301461041457806318160ddd14610438578063228025e81461046757600080fd5b806306fdde03116102fc57806306fdde031461039a578063081812fc146103bc578063095ea7b3146103f457600080fd5b806301ffc9a71461032357806302329a291461035857806302fa7c471461037a575b600080fd5b34801561032f57600080fd5b5061034361033e366004612a8a565b610973565b60405190151581526020015b60405180910390f35b34801561036457600080fd5b50610378610373366004612a6f565b61099e565b005b34801561038657600080fd5b50610378610395366004612a27565b6109fe565b3480156103a657600080fd5b506103af610a54565b60405161034f9190612d17565b3480156103c857600080fd5b506103dc6103d7366004612af9565b610ae6565b6040516001600160a01b03909116815260200161034f565b34801561040057600080fd5b5061037861040f3660046129fd565b610b2a565b34801561042057600080fd5b5061042a60125481565b60405190815260200161034f565b34801561044457600080fd5b5061042a6000546001600160801b03600160801b82048116918116919091031690565b34801561047357600080fd5b50610378610482366004612af9565b610bb8565b34801561049357600080fd5b506103786104a236600461291b565b610c05565b3480156104b357600080fd5b506104c76104c2366004612b7c565b610c10565b604080516001600160a01b03909316835260208301919091520161034f565b3480156104f257600080fd5b506103af610501366004612af9565b610ccb565b34801561051257600080fd5b5061042a6105213660046129fd565b610d70565b34801561053257600080fd5b5061042a60105481565b34801561054857600080fd5b50610378610557366004612b35565b610e6d565b34801561056857600080fd5b5061042a600f5481565b34801561057e57600080fd5b50610378610eda565b34801561059357600080fd5b506103786105a236600461291b565b6111db565b3480156105b357600080fd5b506103786105c2366004612af9565b6111f6565b3480156105d357600080fd5b506103786105e2366004612ac4565b611243565b3480156105f357600080fd5b50610378610602366004612af9565b611306565b34801561061357600080fd5b5061042a610622366004612af9565b6113f0565b34801561063357600080fd5b506013546103439060ff1681565b34801561064d57600080fd5b5061042a60145481565b34801561066357600080fd5b50600b546103439060ff1681565b34801561067d57600080fd5b506103dc61068c366004612af9565b61149b565b34801561069d57600080fd5b5061042a6106ac3660046128cd565b6114ad565b3480156106bd57600080fd5b506103786114fc565b3480156106d257600080fd5b506103af611550565b3480156106e757600080fd5b506016546103dc906001600160a01b031681565b34801561070757600080fd5b50610378610716366004612af9565b6115de565b34801561072757600080fd5b5061073b6107363660046128cd565b61162b565b60405161034f9190612cd3565b34801561075457600080fd5b5061042a60115481565b34801561076a57600080fd5b506009546001600160a01b03166103dc565b34801561078857600080fd5b506017546103dc906001600160a01b031681565b3480156107a857600080fd5b506103af6116cd565b6103786107bf366004612af9565b6116dc565b3480156107d057600080fd5b506103786107df3660046129d3565b6117de565b3480156107f057600080fd5b506103786107ff366004612b12565b611874565b34801561081057600080fd5b5061037861081f366004612957565b611959565b34801561083057600080fd5b506103af611993565b34801561084557600080fd5b506103af610854366004612af9565b6119a0565b34801561086557600080fd5b50610879610874366004612af9565b611a9d565b60405161034f9190612d2a565b34801561089257600080fd5b506103af611b8c565b3480156108a757600080fd5b506103786108b6366004612ac4565b611b99565b3480156108c757600080fd5b506103436108d63660046128e8565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561091057600080fd5b5061037861091f366004612ac4565b611bf4565b34801561093057600080fd5b5061037861093f3660046128cd565b611c4f565b34801561095057600080fd5b5061096461095f366004612af9565b611d08565b60405161034f93929190612d59565b60006001600160e01b0319821663152a902d60e11b1480610998575061099882611db3565b92915050565b6009546001600160a01b031633146109eb5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064015b60405180910390fd5b600b805460ff1916911515919091179055565b6009546001600160a01b03163314610a465760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b610a508282611dd8565b5050565b606060018054610a6390612e0f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f90612e0f565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000610af182611edf565b610b0e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b358261149b565b9050806001600160a01b0316836001600160a01b03161415610b6a5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b8a5750610b8881336108d6565b155b15610ba8576040516367d9dca160e11b815260040160405180910390fd5b610bb3838383611f13565b505050565b6009546001600160a01b03163314610c005760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b601055565b610bb3838383611f7c565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610c8f5750604080518082019091526007546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610cb3906bffffffffffffffffffffffff1687612dad565b610cbd9190612d99565b915196919550909350505050565b6000818152601560205260409020600201805460609190610ceb90612e0f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1790612e0f565b8015610d645780601f10610d3957610100808354040283529160200191610d64565b820191906000526020600020905b815481529060010190602001808311610d4757829003601f168201915b50505050509050919050565b6000610d7b836114ad565b8210610d9a576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610e6757600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290610e135750610e5f565b80516001600160a01b031615610e2857805192505b876001600160a01b0316836001600160a01b03161415610e5d5786841415610e565750935061099892505050565b6001909301925b505b600101610dab565b50600080fd5b6009546001600160a01b03163314610eb55760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b60008281526015602090815260409091208251610bb39260029092019184019061276b565b6009546001600160a01b03163314610f225760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b6002600a541415610f755760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109e2565b6002600a554780610fc85760405162461bcd60e51b815260206004820152601a60248201527f4e6f206574686572206c65667420746f2077697468647261772e00000000000060448201526064016109e2565b6016546000906001600160a01b03166064610fe447600a612dad565b610fee9190612d99565b604051600081818185875af1925050503d806000811461102a576040519150601f19603f3d011682016040523d82523d6000602084013e61102f565b606091505b50509050806110805760405162461bcd60e51b815260206004820152601860248201527f43686172697479205472616e73666572206661696c65642e000000000000000060448201526064016109e2565b6017546000906001600160a01b0316606461109c476005612dad565b6110a69190612d99565b604051600081818185875af1925050503d80600081146110e2576040519150601f19603f3d011682016040523d82523d6000602084013e6110e7565b606091505b50509050806111385760405162461bcd60e51b815260206004820152601a60248201527f446576656c6f706572205472616e73666572206661696c65642e00000000000060448201526064016109e2565b604051600090339047908381818185875af1925050503d806000811461117a576040519150601f19603f3d011682016040523d82523d6000602084013e61117f565b606091505b50509050806111d05760405162461bcd60e51b815260206004820152601660248201527f4f776e6572205472616e73666572206661696c65642e0000000000000000000060448201526064016109e2565b50506001600a555050565b610bb383838360405180602001604052806000815250611959565b6009546001600160a01b0316331461123e5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b601155565b6009546001600160a01b0316331461128b5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b60408051606081018252600f548152601054602080830191825282840185815260145460009081526015835294909420835181559151600183015592518051929391926112de926002850192019061276b565b50506013805460ff1916600117905550601480549060006112fe83612e4a565b919050555050565b6009546001600160a01b0316331461134e5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b6010546113736000546001600160801b03600160801b82048116918116919091031690565b146113915760405163034ba93760e51b815260040160405180910390fd5b60135460ff166113b457604051636e475bd160e11b815260040160405180910390fd5b601054600f8190555080601060008282546113cf9190612d81565b90915550506013805460ff19908116909155600b8054909116600117905550565b600080546001600160801b031681805b8281101561148157600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061147857858314156114715750949350505050565b6001909201915b50600101611400565b506040516329c8c00760e21b815260040160405180910390fd5b60006114a68261219b565b5192915050565b60006001600160a01b0382166114d6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146115445760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b61154e60006122bf565b565b600d805461155d90612e0f565b80601f016020809104026020016040519081016040528092919081815260200182805461158990612e0f565b80156115d65780601f106115ab576101008083540402835291602001916115d6565b820191906000526020600020905b8154815290600101906020018083116115b957829003601f168201915b505050505081565b6009546001600160a01b031633146116265760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b601255565b60606000611638836114ad565b905060008167ffffffffffffffff81111561165557611655612ebb565b60405190808252806020026020018201604052801561167e578160200160208202803683370190505b50905060005b828110156116c5576116968582610d70565b8282815181106116a8576116a8612ea5565b6020908102919091010152806116bd81612e4a565b915050611684565b509392505050565b606060028054610a6390612e0f565b6009546001600160a01b0316331461178157600b5460ff16156117125760405163ab35696f60e01b815260040160405180910390fd5b80611730576040516305cd3f1d60e31b815260040160405180910390fd5b6012548111156117535760405163546f10eb60e11b815260040160405180910390fd5b806011546117619190612dad565b3410156117815760405163356680b760e01b815260040160405180910390fd5b60006117a56000546001600160801b03600160801b82048116918116919091031690565b6010549091506117b58383612d81565b11156117d4576040516352df9fe560e01b815260040160405180910390fd5b610a50338361231e565b6001600160a01b0382163314156118085760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b031633146118bc5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b60006118e06000546001600160801b03600160801b82048116918116919091031690565b905082611900576040516305cd3f1d60e31b815260040160405180910390fd5b6012548311156119235760405163546f10eb60e11b815260040160405180910390fd5b6010546119308483612d81565b111561194f576040516352df9fe560e01b815260040160405180910390fd5b610bb3828461231e565b611964848484611f7c565b61197084848484612338565b61198d576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600c805461155d90612e0f565b60606119ab82611edf565b6119c8576040516312ee50f360e11b815260040160405180910390fd5b60135460ff161580156119dd5750600f548210155b156119ef57600d8054610ceb90612e0f565b60015b6014548111611a8757600081815260156020526040902060010154831015611a7557600081815260156020526040902054611a2d9084612dcc565b6000828152601560205260409020909350600201611a4a84612447565b600c604051602001611a5e93929190612c64565b604051602081830303815290604052915050919050565b80611a7f81612e4a565b9150506119f2565b5050604080516020810190915260008152919050565b611ac160405180606001604052806000815260200160008152602001606081525090565b601560008381526020019081526020016000206040518060600160405290816000820154815260200160018201548152602001600282018054611b0390612e0f565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2f90612e0f565b8015611b7c5780601f10611b5157610100808354040283529160200191611b7c565b820191906000526020600020905b815481529060010190602001808311611b5f57829003601f168201915b5050505050815250509050919050565b600e805461155d90612e0f565b6009546001600160a01b03163314611be15760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b8051610a5090600c90602084019061276b565b6009546001600160a01b03163314611c3c5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b8051610a5090600d90602084019061276b565b6009546001600160a01b03163314611c975760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b6001600160a01b038116611cfc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e2565b611d05816122bf565b50565b60156020526000908152604090208054600182015460028301805492939192611d3090612e0f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5c90612e0f565b8015611da95780601f10611d7e57610100808354040283529160200191611da9565b820191906000526020600020905b815481529060010190602001808311611d8c57829003601f168201915b5050505050905083565b60006001600160e01b0319821663152a902d60e11b148061099857506109988261255d565b6127106bffffffffffffffffffffffff82161115611e4b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109e2565b6001600160a01b038216611ea15760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109e2565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600755565b600080546001600160801b031682108015610998575050600090815260036020526040902054600160e01b900460ff161590565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611f878261219b565b80519091506000906001600160a01b0316336001600160a01b03161480611fb557508151611fb590336108d6565b80611fd0575033611fc584610ae6565b6001600160a01b0316145b905080611ff057604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146120255760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661204c57604051633a954ecd60e21b815260040160405180910390fd5b61205c6000848460000151611f13565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612151576000546001600160801b0316811015612151578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156122a657600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906122a45780516001600160a01b03161561223a579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561229f579392505050565b61223a565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a508282604051806020016040528060008152506125c8565b60006001600160a01b0384163b1561243b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061237c903390899088908890600401612c97565b602060405180830381600087803b15801561239657600080fd5b505af19250505080156123c6575060408051601f3d908101601f191682019092526123c391810190612aa7565b60015b612421573d8080156123f4576040519150601f19603f3d011682016040523d82523d6000602084013e6123f9565b606091505b508051612419576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061243f565b5060015b949350505050565b60608161246b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612495578061247f81612e4a565b915061248e9050600a83612d99565b915061246f565b60008167ffffffffffffffff8111156124b0576124b0612ebb565b6040519080825280601f01601f1916602001820160405280156124da576020820181803683370190505b5090505b841561243f576124ef600183612dcc565b91506124fc600a86612e65565b612507906030612d81565b60f81b81838151811061251c5761251c612ea5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612556600a86612d99565b94506124de565b60006001600160e01b031982166380ac58cd60e01b148061258e57506001600160e01b03198216635b5e139f60e01b145b806125a957506001600160e01b0319821663780e9d6360e01b145b8061099857506301ffc9a760e01b6001600160e01b0319831614610998565b610bb383838360016000546001600160801b03166001600160a01b03851661260257604051622e076360e81b815260040160405180910390fd5b836126205760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561273c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561271257506127106000888488612338565b155b15612730576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016126bb565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055612194565b82805461277790612e0f565b90600052602060002090601f01602090048101928261279957600085556127df565b82601f106127b257805160ff19168380011785556127df565b828001600101855582156127df579182015b828111156127df5782518255916020019190600101906127c4565b506127eb9291506127ef565b5090565b5b808211156127eb57600081556001016127f0565b600067ffffffffffffffff8084111561281f5761281f612ebb565b604051601f8501601f19908116603f0116810190828211818310171561284757612847612ebb565b8160405280935085815286868601111561286057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461289157600080fd5b919050565b8035801515811461289157600080fd5b600082601f8301126128b757600080fd5b6128c683833560208501612804565b9392505050565b6000602082840312156128df57600080fd5b6128c68261287a565b600080604083850312156128fb57600080fd5b6129048361287a565b91506129126020840161287a565b90509250929050565b60008060006060848603121561293057600080fd5b6129398461287a565b92506129476020850161287a565b9150604084013590509250925092565b6000806000806080858703121561296d57600080fd5b6129768561287a565b93506129846020860161287a565b925060408501359150606085013567ffffffffffffffff8111156129a757600080fd5b8501601f810187136129b857600080fd5b6129c787823560208401612804565b91505092959194509250565b600080604083850312156129e657600080fd5b6129ef8361287a565b915061291260208401612896565b60008060408385031215612a1057600080fd5b612a198361287a565b946020939093013593505050565b60008060408385031215612a3a57600080fd5b612a438361287a565b915060208301356bffffffffffffffffffffffff81168114612a6457600080fd5b809150509250929050565b600060208284031215612a8157600080fd5b6128c682612896565b600060208284031215612a9c57600080fd5b81356128c681612ed1565b600060208284031215612ab957600080fd5b81516128c681612ed1565b600060208284031215612ad657600080fd5b813567ffffffffffffffff811115612aed57600080fd5b61243f848285016128a6565b600060208284031215612b0b57600080fd5b5035919050565b60008060408385031215612b2557600080fd5b823591506129126020840161287a565b60008060408385031215612b4857600080fd5b82359150602083013567ffffffffffffffff811115612b6657600080fd5b612b72858286016128a6565b9150509250929050565b60008060408385031215612b8f57600080fd5b50508035926020909101359150565b60008151808452612bb6816020860160208601612de3565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612be457607f831692505b6020808410821415612c0657634e487b7160e01b600052602260045260246000fd5b818015612c1a5760018114612c2b57612c58565b60ff19861689528489019650612c58565b60008881526020902060005b86811015612c505781548b820152908501908301612c37565b505084890196505b50505050505092915050565b6000612c708286612bca565b8451612c80818360208901612de3565b612c8c81830186612bca565b979650505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612cc96080830184612b9e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612d0b57835183529284019291840191600101612cef565b50909695505050505050565b6020815260006128c66020830184612b9e565b6020815281516020820152602082015160408201526000604083015160608084015261243f6080840182612b9e565b838152826020820152606060408201526000612d786060830184612b9e565b95945050505050565b60008219821115612d9457612d94612e79565b500190565b600082612da857612da8612e8f565b500490565b6000816000190483118215151615612dc757612dc7612e79565b500290565b600082821015612dde57612dde612e79565b500390565b60005b83811015612dfe578181015183820152602001612de6565b8381111561198d5750506000910152565b600181811c90821680612e2357607f821691505b60208210811415612e4457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612e5e57612e5e612e79565b5060010190565b600082612e7457612e74612e8f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611d0557600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212201a222c71ccc1b5a41dc05e6d13429dd4022dbdc3daa96035c69b57d11f2504f664736f6c6343000807003300000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d534a354a6b53704c647262317346664a5a4e6337787566584376437651374c56786270366a75624b476464502f000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061031e5760003560e01c80635c975abb116101a5578063a0712d68116100ec578063d4e4d3dd11610095578063e985e9c51161006f578063e985e9c5146108bb578063f2c4ce1e14610904578063f2fde38b14610924578063fdbda0ec1461094457600080fd5b8063d4e4d3dd14610859578063d547cfb714610886578063da3ef23f1461089b57600080fd5b8063b88d4fde116100c6578063b88d4fde14610804578063c668286214610824578063c87b56dd1461083957600080fd5b8063a0712d68146107b1578063a22cb465146107c4578063aed38015146107e457600080fd5b80637f00c7a61161014e5780638da5cb5b116101285780638da5cb5b1461075e5780638ea5220f1461077c57806395d89b411461079c57600080fd5b80637f00c7a6146106fb5780638462151c1461071b5780638d859f3e1461074857600080fd5b8063715018a61161017f578063715018a6146106b157806372250380146106c65780637b208769146106db57600080fd5b80635c975abb146106575780636352211e1461067157806370a082311461069157600080fd5b80632f745c591161026957806344a0d68a116102125780634f6ccce7116101ec5780634f6ccce714610607578063518302271461062757806358b33e691461064157600080fd5b806344a0d68a146105a75780634c261247146105c75780634c29bcf0146105e757600080fd5b806335917c641161024357806335917c641461055c5780633ccfd60b1461057257806342842e0e1461058757600080fd5b80632f745c591461050657806332cb6b0c1461052657806333cfcb9f1461053c57600080fd5b806309d42b30116102cb57806323b872dd116102a557806323b872dd146104875780632a55205a146104a75780632ccde4f6146104e657600080fd5b806309d42b301461041457806318160ddd14610438578063228025e81461046757600080fd5b806306fdde03116102fc57806306fdde031461039a578063081812fc146103bc578063095ea7b3146103f457600080fd5b806301ffc9a71461032357806302329a291461035857806302fa7c471461037a575b600080fd5b34801561032f57600080fd5b5061034361033e366004612a8a565b610973565b60405190151581526020015b60405180910390f35b34801561036457600080fd5b50610378610373366004612a6f565b61099e565b005b34801561038657600080fd5b50610378610395366004612a27565b6109fe565b3480156103a657600080fd5b506103af610a54565b60405161034f9190612d17565b3480156103c857600080fd5b506103dc6103d7366004612af9565b610ae6565b6040516001600160a01b03909116815260200161034f565b34801561040057600080fd5b5061037861040f3660046129fd565b610b2a565b34801561042057600080fd5b5061042a60125481565b60405190815260200161034f565b34801561044457600080fd5b5061042a6000546001600160801b03600160801b82048116918116919091031690565b34801561047357600080fd5b50610378610482366004612af9565b610bb8565b34801561049357600080fd5b506103786104a236600461291b565b610c05565b3480156104b357600080fd5b506104c76104c2366004612b7c565b610c10565b604080516001600160a01b03909316835260208301919091520161034f565b3480156104f257600080fd5b506103af610501366004612af9565b610ccb565b34801561051257600080fd5b5061042a6105213660046129fd565b610d70565b34801561053257600080fd5b5061042a60105481565b34801561054857600080fd5b50610378610557366004612b35565b610e6d565b34801561056857600080fd5b5061042a600f5481565b34801561057e57600080fd5b50610378610eda565b34801561059357600080fd5b506103786105a236600461291b565b6111db565b3480156105b357600080fd5b506103786105c2366004612af9565b6111f6565b3480156105d357600080fd5b506103786105e2366004612ac4565b611243565b3480156105f357600080fd5b50610378610602366004612af9565b611306565b34801561061357600080fd5b5061042a610622366004612af9565b6113f0565b34801561063357600080fd5b506013546103439060ff1681565b34801561064d57600080fd5b5061042a60145481565b34801561066357600080fd5b50600b546103439060ff1681565b34801561067d57600080fd5b506103dc61068c366004612af9565b61149b565b34801561069d57600080fd5b5061042a6106ac3660046128cd565b6114ad565b3480156106bd57600080fd5b506103786114fc565b3480156106d257600080fd5b506103af611550565b3480156106e757600080fd5b506016546103dc906001600160a01b031681565b34801561070757600080fd5b50610378610716366004612af9565b6115de565b34801561072757600080fd5b5061073b6107363660046128cd565b61162b565b60405161034f9190612cd3565b34801561075457600080fd5b5061042a60115481565b34801561076a57600080fd5b506009546001600160a01b03166103dc565b34801561078857600080fd5b506017546103dc906001600160a01b031681565b3480156107a857600080fd5b506103af6116cd565b6103786107bf366004612af9565b6116dc565b3480156107d057600080fd5b506103786107df3660046129d3565b6117de565b3480156107f057600080fd5b506103786107ff366004612b12565b611874565b34801561081057600080fd5b5061037861081f366004612957565b611959565b34801561083057600080fd5b506103af611993565b34801561084557600080fd5b506103af610854366004612af9565b6119a0565b34801561086557600080fd5b50610879610874366004612af9565b611a9d565b60405161034f9190612d2a565b34801561089257600080fd5b506103af611b8c565b3480156108a757600080fd5b506103786108b6366004612ac4565b611b99565b3480156108c757600080fd5b506103436108d63660046128e8565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561091057600080fd5b5061037861091f366004612ac4565b611bf4565b34801561093057600080fd5b5061037861093f3660046128cd565b611c4f565b34801561095057600080fd5b5061096461095f366004612af9565b611d08565b60405161034f93929190612d59565b60006001600160e01b0319821663152a902d60e11b1480610998575061099882611db3565b92915050565b6009546001600160a01b031633146109eb5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064015b60405180910390fd5b600b805460ff1916911515919091179055565b6009546001600160a01b03163314610a465760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b610a508282611dd8565b5050565b606060018054610a6390612e0f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f90612e0f565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000610af182611edf565b610b0e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b358261149b565b9050806001600160a01b0316836001600160a01b03161415610b6a5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b8a5750610b8881336108d6565b155b15610ba8576040516367d9dca160e11b815260040160405180910390fd5b610bb3838383611f13565b505050565b6009546001600160a01b03163314610c005760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b601055565b610bb3838383611f7c565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610c8f5750604080518082019091526007546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610cb3906bffffffffffffffffffffffff1687612dad565b610cbd9190612d99565b915196919550909350505050565b6000818152601560205260409020600201805460609190610ceb90612e0f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1790612e0f565b8015610d645780601f10610d3957610100808354040283529160200191610d64565b820191906000526020600020905b815481529060010190602001808311610d4757829003601f168201915b50505050509050919050565b6000610d7b836114ad565b8210610d9a576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610e6757600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290610e135750610e5f565b80516001600160a01b031615610e2857805192505b876001600160a01b0316836001600160a01b03161415610e5d5786841415610e565750935061099892505050565b6001909301925b505b600101610dab565b50600080fd5b6009546001600160a01b03163314610eb55760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b60008281526015602090815260409091208251610bb39260029092019184019061276b565b6009546001600160a01b03163314610f225760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b6002600a541415610f755760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109e2565b6002600a554780610fc85760405162461bcd60e51b815260206004820152601a60248201527f4e6f206574686572206c65667420746f2077697468647261772e00000000000060448201526064016109e2565b6016546000906001600160a01b03166064610fe447600a612dad565b610fee9190612d99565b604051600081818185875af1925050503d806000811461102a576040519150601f19603f3d011682016040523d82523d6000602084013e61102f565b606091505b50509050806110805760405162461bcd60e51b815260206004820152601860248201527f43686172697479205472616e73666572206661696c65642e000000000000000060448201526064016109e2565b6017546000906001600160a01b0316606461109c476005612dad565b6110a69190612d99565b604051600081818185875af1925050503d80600081146110e2576040519150601f19603f3d011682016040523d82523d6000602084013e6110e7565b606091505b50509050806111385760405162461bcd60e51b815260206004820152601a60248201527f446576656c6f706572205472616e73666572206661696c65642e00000000000060448201526064016109e2565b604051600090339047908381818185875af1925050503d806000811461117a576040519150601f19603f3d011682016040523d82523d6000602084013e61117f565b606091505b50509050806111d05760405162461bcd60e51b815260206004820152601660248201527f4f776e6572205472616e73666572206661696c65642e0000000000000000000060448201526064016109e2565b50506001600a555050565b610bb383838360405180602001604052806000815250611959565b6009546001600160a01b0316331461123e5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b601155565b6009546001600160a01b0316331461128b5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b60408051606081018252600f548152601054602080830191825282840185815260145460009081526015835294909420835181559151600183015592518051929391926112de926002850192019061276b565b50506013805460ff1916600117905550601480549060006112fe83612e4a565b919050555050565b6009546001600160a01b0316331461134e5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b6010546113736000546001600160801b03600160801b82048116918116919091031690565b146113915760405163034ba93760e51b815260040160405180910390fd5b60135460ff166113b457604051636e475bd160e11b815260040160405180910390fd5b601054600f8190555080601060008282546113cf9190612d81565b90915550506013805460ff19908116909155600b8054909116600117905550565b600080546001600160801b031681805b8281101561148157600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061147857858314156114715750949350505050565b6001909201915b50600101611400565b506040516329c8c00760e21b815260040160405180910390fd5b60006114a68261219b565b5192915050565b60006001600160a01b0382166114d6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146115445760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b61154e60006122bf565b565b600d805461155d90612e0f565b80601f016020809104026020016040519081016040528092919081815260200182805461158990612e0f565b80156115d65780601f106115ab576101008083540402835291602001916115d6565b820191906000526020600020905b8154815290600101906020018083116115b957829003601f168201915b505050505081565b6009546001600160a01b031633146116265760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b601255565b60606000611638836114ad565b905060008167ffffffffffffffff81111561165557611655612ebb565b60405190808252806020026020018201604052801561167e578160200160208202803683370190505b50905060005b828110156116c5576116968582610d70565b8282815181106116a8576116a8612ea5565b6020908102919091010152806116bd81612e4a565b915050611684565b509392505050565b606060028054610a6390612e0f565b6009546001600160a01b0316331461178157600b5460ff16156117125760405163ab35696f60e01b815260040160405180910390fd5b80611730576040516305cd3f1d60e31b815260040160405180910390fd5b6012548111156117535760405163546f10eb60e11b815260040160405180910390fd5b806011546117619190612dad565b3410156117815760405163356680b760e01b815260040160405180910390fd5b60006117a56000546001600160801b03600160801b82048116918116919091031690565b6010549091506117b58383612d81565b11156117d4576040516352df9fe560e01b815260040160405180910390fd5b610a50338361231e565b6001600160a01b0382163314156118085760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b031633146118bc5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b60006118e06000546001600160801b03600160801b82048116918116919091031690565b905082611900576040516305cd3f1d60e31b815260040160405180910390fd5b6012548311156119235760405163546f10eb60e11b815260040160405180910390fd5b6010546119308483612d81565b111561194f576040516352df9fe560e01b815260040160405180910390fd5b610bb3828461231e565b611964848484611f7c565b61197084848484612338565b61198d576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600c805461155d90612e0f565b60606119ab82611edf565b6119c8576040516312ee50f360e11b815260040160405180910390fd5b60135460ff161580156119dd5750600f548210155b156119ef57600d8054610ceb90612e0f565b60015b6014548111611a8757600081815260156020526040902060010154831015611a7557600081815260156020526040902054611a2d9084612dcc565b6000828152601560205260409020909350600201611a4a84612447565b600c604051602001611a5e93929190612c64565b604051602081830303815290604052915050919050565b80611a7f81612e4a565b9150506119f2565b5050604080516020810190915260008152919050565b611ac160405180606001604052806000815260200160008152602001606081525090565b601560008381526020019081526020016000206040518060600160405290816000820154815260200160018201548152602001600282018054611b0390612e0f565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2f90612e0f565b8015611b7c5780601f10611b5157610100808354040283529160200191611b7c565b820191906000526020600020905b815481529060010190602001808311611b5f57829003601f168201915b5050505050815250509050919050565b600e805461155d90612e0f565b6009546001600160a01b03163314611be15760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b8051610a5090600c90602084019061276b565b6009546001600160a01b03163314611c3c5760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b8051610a5090600d90602084019061276b565b6009546001600160a01b03163314611c975760405162461bcd60e51b81526020600482018190526024820152600080516020612ee883398151915260448201526064016109e2565b6001600160a01b038116611cfc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e2565b611d05816122bf565b50565b60156020526000908152604090208054600182015460028301805492939192611d3090612e0f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5c90612e0f565b8015611da95780601f10611d7e57610100808354040283529160200191611da9565b820191906000526020600020905b815481529060010190602001808311611d8c57829003601f168201915b5050505050905083565b60006001600160e01b0319821663152a902d60e11b148061099857506109988261255d565b6127106bffffffffffffffffffffffff82161115611e4b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109e2565b6001600160a01b038216611ea15760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109e2565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600755565b600080546001600160801b031682108015610998575050600090815260036020526040902054600160e01b900460ff161590565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611f878261219b565b80519091506000906001600160a01b0316336001600160a01b03161480611fb557508151611fb590336108d6565b80611fd0575033611fc584610ae6565b6001600160a01b0316145b905080611ff057604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146120255760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661204c57604051633a954ecd60e21b815260040160405180910390fd5b61205c6000848460000151611f13565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612151576000546001600160801b0316811015612151578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156122a657600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906122a45780516001600160a01b03161561223a579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561229f579392505050565b61223a565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a508282604051806020016040528060008152506125c8565b60006001600160a01b0384163b1561243b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061237c903390899088908890600401612c97565b602060405180830381600087803b15801561239657600080fd5b505af19250505080156123c6575060408051601f3d908101601f191682019092526123c391810190612aa7565b60015b612421573d8080156123f4576040519150601f19603f3d011682016040523d82523d6000602084013e6123f9565b606091505b508051612419576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061243f565b5060015b949350505050565b60608161246b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612495578061247f81612e4a565b915061248e9050600a83612d99565b915061246f565b60008167ffffffffffffffff8111156124b0576124b0612ebb565b6040519080825280601f01601f1916602001820160405280156124da576020820181803683370190505b5090505b841561243f576124ef600183612dcc565b91506124fc600a86612e65565b612507906030612d81565b60f81b81838151811061251c5761251c612ea5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612556600a86612d99565b94506124de565b60006001600160e01b031982166380ac58cd60e01b148061258e57506001600160e01b03198216635b5e139f60e01b145b806125a957506001600160e01b0319821663780e9d6360e01b145b8061099857506301ffc9a760e01b6001600160e01b0319831614610998565b610bb383838360016000546001600160801b03166001600160a01b03851661260257604051622e076360e81b815260040160405180910390fd5b836126205760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561273c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561271257506127106000888488612338565b155b15612730576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016126bb565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055612194565b82805461277790612e0f565b90600052602060002090601f01602090048101928261279957600085556127df565b82601f106127b257805160ff19168380011785556127df565b828001600101855582156127df579182015b828111156127df5782518255916020019190600101906127c4565b506127eb9291506127ef565b5090565b5b808211156127eb57600081556001016127f0565b600067ffffffffffffffff8084111561281f5761281f612ebb565b604051601f8501601f19908116603f0116810190828211818310171561284757612847612ebb565b8160405280935085815286868601111561286057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461289157600080fd5b919050565b8035801515811461289157600080fd5b600082601f8301126128b757600080fd5b6128c683833560208501612804565b9392505050565b6000602082840312156128df57600080fd5b6128c68261287a565b600080604083850312156128fb57600080fd5b6129048361287a565b91506129126020840161287a565b90509250929050565b60008060006060848603121561293057600080fd5b6129398461287a565b92506129476020850161287a565b9150604084013590509250925092565b6000806000806080858703121561296d57600080fd5b6129768561287a565b93506129846020860161287a565b925060408501359150606085013567ffffffffffffffff8111156129a757600080fd5b8501601f810187136129b857600080fd5b6129c787823560208401612804565b91505092959194509250565b600080604083850312156129e657600080fd5b6129ef8361287a565b915061291260208401612896565b60008060408385031215612a1057600080fd5b612a198361287a565b946020939093013593505050565b60008060408385031215612a3a57600080fd5b612a438361287a565b915060208301356bffffffffffffffffffffffff81168114612a6457600080fd5b809150509250929050565b600060208284031215612a8157600080fd5b6128c682612896565b600060208284031215612a9c57600080fd5b81356128c681612ed1565b600060208284031215612ab957600080fd5b81516128c681612ed1565b600060208284031215612ad657600080fd5b813567ffffffffffffffff811115612aed57600080fd5b61243f848285016128a6565b600060208284031215612b0b57600080fd5b5035919050565b60008060408385031215612b2557600080fd5b823591506129126020840161287a565b60008060408385031215612b4857600080fd5b82359150602083013567ffffffffffffffff811115612b6657600080fd5b612b72858286016128a6565b9150509250929050565b60008060408385031215612b8f57600080fd5b50508035926020909101359150565b60008151808452612bb6816020860160208601612de3565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612be457607f831692505b6020808410821415612c0657634e487b7160e01b600052602260045260246000fd5b818015612c1a5760018114612c2b57612c58565b60ff19861689528489019650612c58565b60008881526020902060005b86811015612c505781548b820152908501908301612c37565b505084890196505b50505050505092915050565b6000612c708286612bca565b8451612c80818360208901612de3565b612c8c81830186612bca565b979650505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612cc96080830184612b9e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612d0b57835183529284019291840191600101612cef565b50909695505050505050565b6020815260006128c66020830184612b9e565b6020815281516020820152602082015160408201526000604083015160608084015261243f6080840182612b9e565b838152826020820152606060408201526000612d786060830184612b9e565b95945050505050565b60008219821115612d9457612d94612e79565b500190565b600082612da857612da8612e8f565b500490565b6000816000190483118215151615612dc757612dc7612e79565b500290565b600082821015612dde57612dde612e79565b500390565b60005b83811015612dfe578181015183820152602001612de6565b8381111561198d5750506000910152565b600181811c90821680612e2357607f821691505b60208210811415612e4457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612e5e57612e5e612e79565b5060010190565b600082612e7457612e74612e8f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611d0557600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212201a222c71ccc1b5a41dc05e6d13429dd4022dbdc3daa96035c69b57d11f2504f664736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d534a354a6b53704c647262317346664a5a4e6337787566584376437651374c56786270366a75624b476464502f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _royaltyFeesInBips (uint96): 500
Arg [1] : _notRevealedURI (string): https://gateway.pinata.cloud/ipfs/QmSJ5JkSpLdrb1sFfJZNc7xufXCvCvQ7LVxbp6jubKGddP/

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [3] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [4] : 732f516d534a354a6b53704c647262317346664a5a4e63377875665843764376
Arg [5] : 51374c56786270366a75624b476464502f000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.