ETH Price: $2,531.44 (-0.00%)

Token

OfficialRuneStoneNFT (RUNE)
 

Overview

Max Total Supply

47 RUNE

Holders

46

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 RUNE
0x951ca4143beb03c612a5a1c70be9cbe8192c5eff
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
OfficialRuneStoneNFT

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 150 runs

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

pragma solidity ^0.8.0;
// @cryptoconner simple but effective. 

// this NFT Contract can take deposits of ERC20 Tokens and allows holders of the nft to claim a portion of thse tokens
// When you claim, you claim all past reward rounds at once.
// each reward round is initiated when the owner of the contract calls setreward ater depositing tokens
// when this it called it logs the amount deposited, the time, the current holder count, and the asset address in itself. 
// there is only 1 nft per user. 
//1 billion = 1eth mintPrice for gwei denomented price 
//https://ipfs.io/ipfs/QmYapEVYpoAUDJmDrjiod7GPaFcjxZdM3mrfLAFGmWiG3q/ base uri
//encoded constructors: 0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d596170455659706f4155444a6d44726a696f643747506146636a785a644d336d72664c4146476d57694733712f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d596170455659706f4155444a6d44726a696f643747506146636a785a644d336d72664c4146476d57694733712f00000000000000000000000000000000000000000000000000000000
/// 
// steps for redeployment 
// if you want to redeploy this and use it just deploy as usual feeding in your baseuri, and pub mint price ( in Gwei)
// then after deployment call setreveal, and togglepubmint
// once users have minted, send tokens to contract and call setreward(your deposited token address)
// holders may now claim that token. 
// the withdraw function only pulls eth from minting fees, if you do not setreward then those ERC20 reward tokens are effectively locked in the contract
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract OfficialRuneStoneNFT is ERC721, Ownable {
	using Strings for uint256;
	using Counters for Counters.Counter;

	Counters.Counter private _supply;

    using SafeERC20 for IERC20;
    //using SafeMath for uint256;

    struct TokenCycle {
        IERC20 tokenaddress;
        uint256 rewardsamount;
        uint256 time;
        uint256 currentholdercount;
        }
    uint256 private MAX_INT = 2**256 - 1;
    uint256 public currentRewardPeriodId;

    mapping(address=>uint256[]) public UserClaimableTokenAmount;
    mapping(address => uint256) public amountofRewardRoundsuserholds;
    mapping(IERC20=>uint256) public TokenID;
    mapping(address => uint256) public lastUpdateTime; // userdeposittime
    mapping(address =>IERC20[]) public UserClaimableTokens; 
    mapping(address => uint256) public usersPeriodId; // this use this to keep track of what rewards they are due
    mapping(uint256 => TokenCycle) public rewardCycle;
    mapping(address => uint256) public ClaimedRounds;

    //events
    event ClaimedRewards(address to);
    event minted(address to, uint256 quantity);
	event Rewardsadded(IERC20 tokenaddress, uint256 amount);

	string private baseURI;
	string private baseExt = ".json";

	bool public revealed = false;
	string private notRevealedUri;

	// Total supply
	uint256 public constant MAX_SUPPLY = 2000;

	// Whitelist mint constants
	bool public wlMintActive = false;
	uint256 private constant WL_MAX_PER_WALLET = 2; // 2/wallet (uses < to save gas)
	//uint256 private constant WL_MINT_PRICE = 0.05 ether;
	mapping(address => bool) private whitelists;


	// Public mint constants
	bool public pubMintActive = false;
	uint256 private constant PUB_MAX_PER_WALLET = 2; // 3/wallet (uses < to save gas)
	//uint256 private constant PUB_MINT_PRICE = 0.065 ether;

	bool private _locked = false; // for re-entrancy guard

    uint256 public WL_MINT_PRICE;
    uint256 public PUB_MINT_PRICE;

	// Initializes the contract by setting a `name` and a `symbol`
	constructor(string memory _initBaseURI, string memory _initNotRevealedUri, uint256 PUB_PRICE) ERC721("OfficialRuneStoneNFT", "RUNE") {
		setBaseURI(_initBaseURI);
		setNotRevealedURI(_initNotRevealedUri);
        setPrice(PUB_PRICE);
		_supply.increment();
	}

  //if user is reward cycle 3 and we are on 6 his ids are 4 in length- 3-4-5-6
function FetchIdByDetails(IERC20 token) public view returns (uint256) {
    return TokenID[token];
}

function FetchTokenById(uint256 id) public view  returns (IERC20) {
        return rewardCycle[id].tokenaddress;
    }
function FetchAmountById(uint256 id) public view  returns (uint256) {
        return rewardCycle[id].rewardsamount;
    }
function FetchTimeById(uint256 id) public view  returns (uint256) {
        return rewardCycle[id].time;
    }
function FetchholdersById(uint256 id) public view  returns (uint256) {
        return rewardCycle[id].currentholdercount;
    }

function approveERC20(address spender, uint256 amount, IERC20 token) public returns (bool) {
        token.approve(spender, amount);
        return true;
    }


function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        if(usersPeriodId[msg.sender] > 0 && usersPeriodId[msg.sender] <= currentRewardPeriodId)  {
        ClaimAllTokens();
        _transfer(from, to, tokenId);

        }else {

        _transfer(from, to, tokenId);
        }
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
                if(usersPeriodId[msg.sender] > 0 && usersPeriodId[msg.sender] <= currentRewardPeriodId)  {
        ClaimAllTokens();
        _safeTransfer(from, to, tokenId, data);

        }else {

        _safeTransfer(from, to, tokenId, data);
        }
    }
   

function setReward(IERC20 tokenaddress) external onlyOwner {
        updateRewardCycle(currentRewardPeriodId + 1, tokenaddress.balanceOf(address(this)), tokenaddress );
        currentRewardPeriodId = currentRewardPeriodId + 1;
        emit Rewardsadded(tokenaddress, tokenaddress.balanceOf(address(this)));

    }
function updateUsersRewardCycle(address account) private {
    lastUpdateTime[msg.sender] = block.timestamp;
    usersPeriodId[account] = currentRewardPeriodId + 1;
   }

function updateRewardCycle(uint index, uint256 amount, IERC20 tokenaddress) private {
        TokenID[IERC20(tokenaddress)] = currentRewardPeriodId + 1;
        rewardCycle[index].time = block.timestamp;
        rewardCycle[index].rewardsamount = amount;
        rewardCycle[index].tokenaddress= tokenaddress;
        rewardCycle[index].currentholdercount = _supply.current();
    }


IERC20 public claimabletokens;

function ClaimAllTokens() public {
    require(balanceOf(msg.sender) > 0, "Go buy an nft sir or madam");
    require(usersPeriodId[msg.sender] > 0 && usersPeriodId[msg.sender] <= currentRewardPeriodId, "not the correct period id to claim");
    for(uint i=usersPeriodId[msg.sender]; i < currentRewardPeriodId + 1; i++) {
    claimabletokens = rewardCycle[i].tokenaddress;
    approveERC20(msg.sender, MAX_INT, claimabletokens);
    updateUsersRewardCycle(msg.sender);
    claimabletokens.transfer(msg.sender, rewardCycle[i].rewardsamount / rewardCycle[i].currentholdercount);
     }

    emit ClaimedRewards(msg.sender);
}


	// Public mint
	function publicMint(uint256 _quantity) external payable nonReentrant {
		require(pubMintActive, "Public sale is closed at the moment.");
		address _to = msg.sender;
		require(_quantity > 0 && (balanceOf(_to) + _quantity) < PUB_MAX_PER_WALLET, "Invalid mint quantity.");
		require(msg.value >= (PUB_MINT_PRICE * _quantity), "Not enough ETH.");
        if(usersPeriodId[msg.sender] > 0 && usersPeriodId[msg.sender] <= currentRewardPeriodId) {
            updateUsersRewardCycle(msg.sender);
            ClaimAllTokens();
		    mint(_to, _quantity);
        }else {
            mint(_to, _quantity);
			updateUsersRewardCycle(msg.sender);
        }

	}

	/**
	 * Airdrop for promotions & collaborations
	 * You can remove this block if you don't need it
	 */
	function airDropMint(address _to) external onlyOwner {
        updateUsersRewardCycle(_to);
		mint(_to, 1);
	}

	// Mint an NFT
	function mint(address _to, uint256 _quantity) private {
		/**
		 * To save gas, since we know _quantity won't underflow / overflow
		 * Checks are performed in caller functions / methods
		 */
		unchecked {
			require((_quantity + _supply.current()) <= MAX_SUPPLY, "Max supply exceeded.");

			for (uint256 i = 0; i < _quantity; i++) {
				_safeMint(_to, _supply.current());
				_supply.increment();
			}
		}
        emit minted(_to, _quantity);
	}


	// Toggle public sales activity
	function togglePubMintActive() public onlyOwner {
		pubMintActive = !pubMintActive;
	}


	// Get total supply
	function totalSupply() public view returns (uint256) {
		return _supply.current();
	}


    function setPrice(uint256 PUB_PRICE) public onlyOwner {
        PUB_MINT_PRICE = PUB_PRICE * 1e9;
    
    }

    


	// Base URI
	function _baseURI() internal view virtual override returns (string memory) {
		return baseURI;
	}

	// Set base URI
	function setBaseURI(string memory _newBaseURI) public {
		baseURI = _newBaseURI;
	}

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

		if (revealed == false) {
			return notRevealedUri;
		}

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

	// Activate reveal
	function setReveal() public onlyOwner {
		revealed = true;
	}

	// Set not revealed URI
	function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
		notRevealedUri = _notRevealedURI;
	}

	// Withdraw balance
	function withdraw() external onlyOwner {
		// Transfer the remaining balance to the owner
		// Do not remove this line, else you won't be able to withdraw the funds
		(bool sent, ) = payable(owner()).call{ value: address(this).balance }("");
		require(sent, "Failed to withdraw Ether.");
	}

	// Receive any funds sent to the contract
	receive() external payable {}

	// Reentrancy guard modifier
	modifier nonReentrant() {
		require(!_locked, "No re-entrant call.");
		_locked = true;
		_;
		_locked = false;
	}
}

File 2 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 3 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

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

        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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 6 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 7 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 8 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 9 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 10 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 11 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 13 of 16 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 14 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 15 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 16 of 16 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"},{"internalType":"uint256","name":"PUB_PRICE","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"ClaimedRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"tokenaddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Rewardsadded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"minted","type":"event"},{"inputs":[],"name":"ClaimAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ClaimedRounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"FetchAmountById","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"FetchIdByDetails","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"FetchTimeById","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"FetchTokenById","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"FetchholdersById","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":"PUB_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"TokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"UserClaimableTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"UserClaimableTokens","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"airDropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountofRewardRoundsuserholds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"approveERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"claimabletokens","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRewardPeriodId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardCycle","outputs":[{"internalType":"contract IERC20","name":"tokenaddress","type":"address"},{"internalType":"uint256","name":"rewardsamount","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"currentholdercount","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"PUB_PRICE","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenaddress","type":"address"}],"name":"setReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePubMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersPeriodId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60001960085560c06040526005608081905264173539b7b760d91b60a09081526200002e91601391906200026d565b506014805460ff199081169091556016805490911690556018805461ffff191690553480156200005d57600080fd5b5060405162002e6738038062002e678339810160408190526200008091620003e0565b604080518082018252601481527f4f6666696369616c52756e6553746f6e654e465400000000000000000000000060208083019182528351808501909452600484526352554e4560e01b908401528151919291620000e1916000916200026d565b508051620000f79060019060208401906200026d565b505050620001146200010e6200015560201b60201c565b62000159565b6200011f83620001ab565b6200012a82620001c4565b6200013581620001e3565b6200014c60076200020360201b620017bb1760201c565b505050620004bd565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051620001c09060129060208401906200026d565b5050565b620001ce6200020c565b8051620001c09060159060208401906200026d565b620001ed6200020c565b620001fd81633b9aca0062000453565b601a5550565b80546001019055565b6006546001600160a01b031633146200026b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b8280546200027b9062000481565b90600052602060002090601f0160209004810192826200029f5760008555620002ea565b82601f10620002ba57805160ff1916838001178555620002ea565b82800160010185558215620002ea579182015b82811115620002ea578251825591602001919060010190620002cd565b50620002f8929150620002fc565b5090565b5b80821115620002f85760008155600101620002fd565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200033b57600080fd5b81516001600160401b038082111562000358576200035862000313565b604051601f8301601f19908116603f0116810190828211818310171562000383576200038362000313565b81604052838152602092508683858801011115620003a057600080fd5b600091505b83821015620003c45785820183015181830184015290820190620003a5565b83821115620003d65760008385830101525b9695505050505050565b600080600060608486031215620003f657600080fd5b83516001600160401b03808211156200040e57600080fd5b6200041c8783880162000329565b945060208601519150808211156200043357600080fd5b50620004428682870162000329565b925050604084015190509250925092565b60008160001904831182151516156200047c57634e487b7160e01b600052601160045260246000fd5b500290565b600181811c908216806200049657607f821691505b602082108103620004b757634e487b7160e01b600052602260045260246000fd5b50919050565b61299a80620004cd6000396000f3fe6080604052600436106102a25760003560e01c806370a0823111610165578063a22cb465116100cc578063c9b7251211610085578063c9b7251214610872578063cdd66358146108a8578063e5932c40146108bd578063e7a70086146108dd578063e985e9c51461090a578063f2c4ce1e1461092a578063f2fde38b1461094a57600080fd5b8063a22cb465146107a2578063a8dfe455146107c2578063b88d4fde146107e2578063b94d5bad14610802578063c4e0d20014610832578063c87b56dd1461085257600080fd5b806388089f0b1161011e57806388089f0b146107045780638da5cb5b1461071a5780638de909f21461073857806391b7f5ed1461075857806395d89b4114610778578063983602311461078d57600080fd5b806370a082311461063e578063715018a61461065e57806376645315146106735780637a9ee829146106885780637e8f0afb146106b85780638783cc0e146106ee57600080fd5b80632db115441161020957806351222f33116101c257806351222f3314610583578063518302271461059d57806353b50716146105b757806355f804b3146105e45780636352211e146106045780636eb48bcb1461062457600080fd5b80632db115441461048f57806332cb6b0c146104a25780633ccfd60b146104b857806342842e0e146104cd5780634852427c146104ed57806348775c7f1461050d57600080fd5b8063095ea7b31161025b578063095ea7b3146103be578063154b5ec4146103e057806318160ddd1461040057806323b872dd14610415578063293849db146104355780632ce9aead1461046257600080fd5b806301ffc9a7146102ae57806302cbfba8146102e357806306fdde031461032157806307b575d014610343578063081812fc14610359578063082ca5da1461039157600080fd5b366102a957005b600080fd5b3480156102ba57600080fd5b506102ce6102c93660046122ee565b61096a565b60405190151581526020015b60405180910390f35b3480156102ef57600080fd5b506103136102fe36600461230b565b60009081526010602052604090206003015490565b6040519081526020016102da565b34801561032d57600080fd5b506103366109bc565b6040516102da919061237c565b34801561034f57600080fd5b50610313601a5481565b34801561036557600080fd5b5061037961037436600461230b565b610a4e565b6040516001600160a01b0390911681526020016102da565b34801561039d57600080fd5b506103136103ac3660046123a4565b600f6020526000908152604090205481565b3480156103ca57600080fd5b506103de6103d93660046123c1565b610a75565b005b3480156103ec57600080fd5b50601b54610379906001600160a01b031681565b34801561040c57600080fd5b50610313610b8f565b34801561042157600080fd5b506103de6104303660046123ed565b610b9f565b34801561044157600080fd5b506103136104503660046123a4565b600c6020526000908152604090205481565b34801561046e57600080fd5b5061031361047d3660046123a4565b600d6020526000908152604090205481565b6103de61049d36600461230b565b610c17565b3480156104ae57600080fd5b506103136107d081565b3480156104c457600080fd5b506103de610dfe565b3480156104d957600080fd5b506103de6104e83660046123ed565b610ebd565b3480156104f957600080fd5b506103de6105083660046123a4565b610f1e565b34801561051957600080fd5b5061055961052836600461230b565b60106020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b03909516855260208501939093529183015260608201526080016102da565b34801561058f57600080fd5b506016546102ce9060ff1681565b3480156105a957600080fd5b506014546102ce9060ff1681565b3480156105c357600080fd5b506103136105d23660046123a4565b60116020526000908152604090205481565b3480156105f057600080fd5b506103de6105ff3660046124ba565b610f3a565b34801561061057600080fd5b5061037961061f36600461230b565b610f51565b34801561063057600080fd5b506018546102ce9060ff1681565b34801561064a57600080fd5b506103136106593660046123a4565b610fb1565b34801561066a57600080fd5b506103de611037565b34801561067f57600080fd5b506103de61104b565b34801561069457600080fd5b506103136106a336600461230b565b60009081526010602052604090206001015490565b3480156106c457600080fd5b506103796106d336600461230b565b6000908152601060205260409020546001600160a01b031690565b3480156106fa57600080fd5b5061031360095481565b34801561071057600080fd5b5061031360195481565b34801561072657600080fd5b506006546001600160a01b0316610379565b34801561074457600080fd5b506103136107533660046123c1565b611062565b34801561076457600080fd5b506103de61077336600461230b565b611093565b34801561078457600080fd5b506103366110af565b34801561079957600080fd5b506103de6110be565b3480156107ae57600080fd5b506103de6107bd366004612511565b6110da565b3480156107ce57600080fd5b506103796107dd3660046123c1565b6110e5565b3480156107ee57600080fd5b506103de6107fd36600461254a565b61111d565b34801561080e57600080fd5b5061031361081d36600461230b565b60009081526010602052604090206002015490565b34801561083e57600080fd5b506102ce61084d3660046125ca565b6111a2565b34801561085e57600080fd5b5061033661086d36600461230b565b611221565b34801561087e57600080fd5b5061031361088d3660046123a4565b6001600160a01b03166000908152600c602052604090205490565b3480156108b457600080fd5b506103de611391565b3480156108c957600080fd5b506103de6108d83660046123a4565b6115be565b3480156108e957600080fd5b506103136108f83660046123a4565b600b6020526000908152604090205481565b34801561091657600080fd5b506102ce61092536600461260c565b6116fc565b34801561093657600080fd5b506103de6109453660046124ba565b61172a565b34801561095657600080fd5b506103de6109653660046123a4565b611745565b60006001600160e01b031982166380ac58cd60e01b148061099b57506001600160e01b03198216635b5e139f60e01b145b806109b657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546109cb9061263a565b80601f01602080910402602001604051908101604052809291908181526020018280546109f79061263a565b8015610a445780601f10610a1957610100808354040283529160200191610a44565b820191906000526020600020905b815481529060010190602001808311610a2757829003601f168201915b5050505050905090565b6000610a59826117c4565b506000908152600460205260409020546001600160a01b031690565b6000610a8082610f51565b9050806001600160a01b0316836001600160a01b031603610af25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610b0e5750610b0e81336116fc565b610b805760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610ae9565b610b8a8383611814565b505050565b6000610b9a60075490565b905090565b610baa335b82611882565b610c0c5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610ae9565b610b8a8383836118e1565b601854610100900460ff1615610c655760405162461bcd60e51b8152602060048201526013602482015272273790393296b2b73a3930b73a1031b0b6361760691b6044820152606401610ae9565b6018805461ff001981166101001790915560ff16610cd15760405162461bcd60e51b8152602060048201526024808201527f5075626c69632073616c6520697320636c6f73656420617420746865206d6f6d60448201526332b73a1760e11b6064820152608401610ae9565b338115801590610cf45750600282610ce883610fb1565b610cf2919061268a565b105b610d395760405162461bcd60e51b815260206004820152601660248201527524b73b30b634b21036b4b73a1038bab0b73a34ba3c9760511b6044820152606401610ae9565b81601a54610d4791906126a2565b341015610d885760405162461bcd60e51b815260206004820152600f60248201526e2737ba1032b737bab3b41022aa241760891b6044820152606401610ae9565b336000908152600f602052604090205415801590610db75750600954336000908152600f602052604090205411155b15610ddc57610dc533611a52565b610dcd611391565b610dd78183611a8e565b610def565b610de68183611a8e565b610def33611a52565b50506018805461ff0019169055565b610e06611b52565b6000610e1a6006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610e64576040519150601f19603f3d011682016040523d82523d6000602084013e610e69565b606091505b5050905080610eba5760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f2077697468647261772045746865722e000000000000006044820152606401610ae9565b50565b610ec633610ba4565b610ee25760405162461bcd60e51b8152600401610ae9906126c1565b336000908152600f602052604090205415801590610f115750600954336000908152600f602052604090205411155b15610c0c57610c0c611391565b610f26611b52565b610f2f81611a52565b610eba816001611a8e565b8051610f4d90601290602084019061223f565b5050565b6000818152600260205260408120546001600160a01b0316806109b65760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ae9565b60006001600160a01b03821661101b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610ae9565b506001600160a01b031660009081526003602052604090205490565b61103f611b52565b6110496000611bac565b565b611053611b52565b6014805460ff19166001179055565b600a602052816000526040600020818154811061107e57600080fd5b90600052602060002001600091509150505481565b61109b611b52565b6110a981633b9aca006126a2565b601a5550565b6060600180546109cb9061263a565b6110c6611b52565b6018805460ff19811660ff90911615179055565b610f4d338383611bfe565b600e602052816000526040600020818154811061110157600080fd5b6000918252602090912001546001600160a01b03169150829050565b6111273383611882565b6111435760405162461bcd60e51b8152600401610ae9906126c1565b336000908152600f6020526040902054158015906111725750600954336000908152600f602052604090205411155b156111905761117f611391565b61118b84848484611ccc565b61119c565b61119c84848484611ccc565b50505050565b60405163095ea7b360e01b81526000906001600160a01b0383169063095ea7b3906111d3908790879060040161270f565b6020604051808303816000875af11580156111f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112169190612728565b506001949350505050565b606061122c82611cff565b6112915760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b6064820152608401610ae9565b60145460ff16151560000361133257601580546112ad9061263a565b80601f01602080910402602001604051908101604052809291908181526020018280546112d99061263a565b80156113265780601f106112fb57610100808354040283529160200191611326565b820191906000526020600020905b81548152906001019060200180831161130957829003601f168201915b50505050509050919050565b600061133c611d1c565b9050600081511161135c576040518060200160405280600081525061138a565b8061136684611d2b565b601360405160200161137a93929190612745565b6040516020818303038152906040525b9392505050565b600061139c33610fb1565b116113e95760405162461bcd60e51b815260206004820152601a60248201527f476f2062757920616e206e667420736972206f72206d6164616d0000000000006044820152606401610ae9565b336000908152600f6020526040902054158015906114185750600954336000908152600f602052604090205411155b61146f5760405162461bcd60e51b815260206004820152602260248201527f6e6f742074686520636f727265637420706572696f6420696420746f20636c61604482015261696d60f01b6064820152608401610ae9565b336000908152600f60205260409020545b60095461148e90600161268a565b81101561158857600081815260106020526040902054601b80546001600160a01b0319166001600160a01b0390921691821790556008546114d1913391906111a2565b506114db33611a52565b601b54600082815260106020526040902060038101546001909101546001600160a01b039092169163a9059cbb9133916115159190612808565b6040518363ffffffff1660e01b815260040161153292919061270f565b6020604051808303816000875af1158015611551573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115759190612728565b50806115808161282a565b915050611480565b506040513381527ffe321261c6046e8a359c746098f32d129551bba84a367bc920656914b652f4699060200160405180910390a1565b6115c6611b52565b61164660095460016115d8919061268a565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa15801561161c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116409190612843565b83611dbe565b60095461165490600161268a565b6009556040516370a0823160e01b81523060048201527f9ff37b78fc8c2cd0d33e9dabedf9dc952c3fe4043ca9e4582c9d7ac98933b5019082906001600160a01b038216906370a0823190602401602060405180830381865afa1580156116bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e39190612843565b6040516116f192919061270f565b60405180910390a150565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611732611b52565b8051610f4d90601590602084019061223f565b61174d611b52565b6001600160a01b0381166117b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae9565b610eba81611bac565b80546001019055565b6117cd81611cff565b610eba5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ae9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061184982610f51565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061188e83610f51565b9050806001600160a01b0316846001600160a01b031614806118b557506118b581856116fc565b806118d95750836001600160a01b03166118ce84610a4e565b6001600160a01b0316145b949350505050565b826001600160a01b03166118f482610f51565b6001600160a01b03161461191a5760405162461bcd60e51b8152600401610ae99061285c565b6001600160a01b03821661197c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ae9565b6119898383836001611e21565b826001600160a01b031661199c82610f51565b6001600160a01b0316146119c25760405162461bcd60e51b8152600401610ae99061285c565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b336000908152600d60205260409020429055600954611a7290600161268a565b6001600160a01b039091166000908152600f6020526040902055565b6107d0611a9a60075490565b82011115611ae15760405162461bcd60e51b815260206004820152601460248201527326b0bc1039bab838363c9032bc31b2b2b232b21760611b6044820152606401610ae9565b60005b81811015611b1457611afe83611af960075490565b611ea9565b611b0c600780546001019055565b600101611ae4565b507fb7656808f0e04b4af7a20f7ef1caa7669f0d781f1ca4cba31a3ba467880766c98282604051611b4692919061270f565b60405180910390a15050565b6006546001600160a01b031633146110495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ae9565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611c5f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ae9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611cd78484846118e1565b611ce384848484611ec3565b61119c5760405162461bcd60e51b8152600401610ae9906128a1565b6000908152600260205260409020546001600160a01b0316151590565b6060601280546109cb9061263a565b60606000611d3883611fb9565b600101905060008167ffffffffffffffff811115611d5857611d5861242e565b6040519080825280601f01601f191660200182016040528015611d82576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611d8c57509392505050565b600954611dcc90600161268a565b6001600160a01b03919091166000818152600c602090815260408083209490945594815260109094529220426002820155600181019190915580546001600160a01b0319169091178155600754600390910155565b600181111561119c576001600160a01b03841615611e67576001600160a01b03841660009081526003602052604081208054839290611e619084906128f3565b90915550505b6001600160a01b0383161561119c576001600160a01b03831660009081526003602052604081208054839290611e9e90849061268a565b909155505050505050565b610f4d828260405180602001604052806000815250612091565b60006001600160a01b0384163b1561121657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f0790339089908890889060040161290a565b6020604051808303816000875af1925050508015611f42575060408051601f3d908101601f19168201909252611f3f91810190612947565b60015b611f9f573d808015611f70576040519150601f19603f3d011682016040523d82523d6000602084013e611f75565b606091505b508051600003611f975760405162461bcd60e51b8152600401610ae9906128a1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118d9565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611ff85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612024576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061204257662386f26fc10000830492506010015b6305f5e100831061205a576305f5e100830492506008015b612710831061206e57612710830492506004015b60648310612080576064830492506002015b600a83106109b65760010192915050565b61209b83836120c4565b6120a86000848484611ec3565b610b8a5760405162461bcd60e51b8152600401610ae9906128a1565b6001600160a01b03821661211a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ae9565b61212381611cff565b156121705760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ae9565b61217e600083836001611e21565b61218781611cff565b156121d45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ae9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461224b9061263a565b90600052602060002090601f01602090048101928261226d57600085556122b3565b82601f1061228657805160ff19168380011785556122b3565b828001600101855582156122b3579182015b828111156122b3578251825591602001919060010190612298565b506122bf9291506122c3565b5090565b5b808211156122bf57600081556001016122c4565b6001600160e01b031981168114610eba57600080fd5b60006020828403121561230057600080fd5b813561138a816122d8565b60006020828403121561231d57600080fd5b5035919050565b60005b8381101561233f578181015183820152602001612327565b8381111561119c5750506000910152565b60008151808452612368816020860160208601612324565b601f01601f19169290920160200192915050565b60208152600061138a6020830184612350565b6001600160a01b0381168114610eba57600080fd5b6000602082840312156123b657600080fd5b813561138a8161238f565b600080604083850312156123d457600080fd5b82356123df8161238f565b946020939093013593505050565b60008060006060848603121561240257600080fd5b833561240d8161238f565b9250602084013561241d8161238f565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561245f5761245f61242e565b604051601f8501601f19908116603f011681019082821181831017156124875761248761242e565b816040528093508581528686860111156124a057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156124cc57600080fd5b813567ffffffffffffffff8111156124e357600080fd5b8201601f810184136124f457600080fd5b6118d984823560208401612444565b8015158114610eba57600080fd5b6000806040838503121561252457600080fd5b823561252f8161238f565b9150602083013561253f81612503565b809150509250929050565b6000806000806080858703121561256057600080fd5b843561256b8161238f565b9350602085013561257b8161238f565b925060408501359150606085013567ffffffffffffffff81111561259e57600080fd5b8501601f810187136125af57600080fd5b6125be87823560208401612444565b91505092959194509250565b6000806000606084860312156125df57600080fd5b83356125ea8161238f565b92506020840135915060408401356126018161238f565b809150509250925092565b6000806040838503121561261f57600080fd5b823561262a8161238f565b9150602083013561253f8161238f565b600181811c9082168061264e57607f821691505b60208210810361266e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561269d5761269d612674565b500190565b60008160001904831182151516156126bc576126bc612674565b500290565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6001600160a01b03929092168252602082015260400190565b60006020828403121561273a57600080fd5b815161138a81612503565b6000845160206127588285838a01612324565b85519184019161276b8184848a01612324565b8554920191600090600181811c908083168061278857607f831692505b85831081036127a557634e487b7160e01b85526022600452602485fd5b8080156127b957600181146127ca576127f7565b60ff198516885283880195506127f7565b60008b81526020902060005b858110156127ef5781548a8201529084019088016127d6565b505083880195505b50939b9a5050505050505050505050565b60008261282557634e487b7160e01b600052601260045260246000fd5b500490565b60006001820161283c5761283c612674565b5060010190565b60006020828403121561285557600080fd5b5051919050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008282101561290557612905612674565b500390565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061293d90830184612350565b9695505050505050565b60006020828403121561295957600080fd5b815161138a816122d856fea26469706673582212205ab8a9221bf8f512e7e04ad4d2ef666bc8856906574b6200020c249e7c896b1064736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000008f0d180000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d596170455659706f4155444a6d44726a696f643747506146636a785a644d336d72664c4146476d57694733712f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d596170455659706f4155444a6d44726a696f643747506146636a785a644d336d72664c4146476d57694733712f00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102a25760003560e01c806370a0823111610165578063a22cb465116100cc578063c9b7251211610085578063c9b7251214610872578063cdd66358146108a8578063e5932c40146108bd578063e7a70086146108dd578063e985e9c51461090a578063f2c4ce1e1461092a578063f2fde38b1461094a57600080fd5b8063a22cb465146107a2578063a8dfe455146107c2578063b88d4fde146107e2578063b94d5bad14610802578063c4e0d20014610832578063c87b56dd1461085257600080fd5b806388089f0b1161011e57806388089f0b146107045780638da5cb5b1461071a5780638de909f21461073857806391b7f5ed1461075857806395d89b4114610778578063983602311461078d57600080fd5b806370a082311461063e578063715018a61461065e57806376645315146106735780637a9ee829146106885780637e8f0afb146106b85780638783cc0e146106ee57600080fd5b80632db115441161020957806351222f33116101c257806351222f3314610583578063518302271461059d57806353b50716146105b757806355f804b3146105e45780636352211e146106045780636eb48bcb1461062457600080fd5b80632db115441461048f57806332cb6b0c146104a25780633ccfd60b146104b857806342842e0e146104cd5780634852427c146104ed57806348775c7f1461050d57600080fd5b8063095ea7b31161025b578063095ea7b3146103be578063154b5ec4146103e057806318160ddd1461040057806323b872dd14610415578063293849db146104355780632ce9aead1461046257600080fd5b806301ffc9a7146102ae57806302cbfba8146102e357806306fdde031461032157806307b575d014610343578063081812fc14610359578063082ca5da1461039157600080fd5b366102a957005b600080fd5b3480156102ba57600080fd5b506102ce6102c93660046122ee565b61096a565b60405190151581526020015b60405180910390f35b3480156102ef57600080fd5b506103136102fe36600461230b565b60009081526010602052604090206003015490565b6040519081526020016102da565b34801561032d57600080fd5b506103366109bc565b6040516102da919061237c565b34801561034f57600080fd5b50610313601a5481565b34801561036557600080fd5b5061037961037436600461230b565b610a4e565b6040516001600160a01b0390911681526020016102da565b34801561039d57600080fd5b506103136103ac3660046123a4565b600f6020526000908152604090205481565b3480156103ca57600080fd5b506103de6103d93660046123c1565b610a75565b005b3480156103ec57600080fd5b50601b54610379906001600160a01b031681565b34801561040c57600080fd5b50610313610b8f565b34801561042157600080fd5b506103de6104303660046123ed565b610b9f565b34801561044157600080fd5b506103136104503660046123a4565b600c6020526000908152604090205481565b34801561046e57600080fd5b5061031361047d3660046123a4565b600d6020526000908152604090205481565b6103de61049d36600461230b565b610c17565b3480156104ae57600080fd5b506103136107d081565b3480156104c457600080fd5b506103de610dfe565b3480156104d957600080fd5b506103de6104e83660046123ed565b610ebd565b3480156104f957600080fd5b506103de6105083660046123a4565b610f1e565b34801561051957600080fd5b5061055961052836600461230b565b60106020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b03909516855260208501939093529183015260608201526080016102da565b34801561058f57600080fd5b506016546102ce9060ff1681565b3480156105a957600080fd5b506014546102ce9060ff1681565b3480156105c357600080fd5b506103136105d23660046123a4565b60116020526000908152604090205481565b3480156105f057600080fd5b506103de6105ff3660046124ba565b610f3a565b34801561061057600080fd5b5061037961061f36600461230b565b610f51565b34801561063057600080fd5b506018546102ce9060ff1681565b34801561064a57600080fd5b506103136106593660046123a4565b610fb1565b34801561066a57600080fd5b506103de611037565b34801561067f57600080fd5b506103de61104b565b34801561069457600080fd5b506103136106a336600461230b565b60009081526010602052604090206001015490565b3480156106c457600080fd5b506103796106d336600461230b565b6000908152601060205260409020546001600160a01b031690565b3480156106fa57600080fd5b5061031360095481565b34801561071057600080fd5b5061031360195481565b34801561072657600080fd5b506006546001600160a01b0316610379565b34801561074457600080fd5b506103136107533660046123c1565b611062565b34801561076457600080fd5b506103de61077336600461230b565b611093565b34801561078457600080fd5b506103366110af565b34801561079957600080fd5b506103de6110be565b3480156107ae57600080fd5b506103de6107bd366004612511565b6110da565b3480156107ce57600080fd5b506103796107dd3660046123c1565b6110e5565b3480156107ee57600080fd5b506103de6107fd36600461254a565b61111d565b34801561080e57600080fd5b5061031361081d36600461230b565b60009081526010602052604090206002015490565b34801561083e57600080fd5b506102ce61084d3660046125ca565b6111a2565b34801561085e57600080fd5b5061033661086d36600461230b565b611221565b34801561087e57600080fd5b5061031361088d3660046123a4565b6001600160a01b03166000908152600c602052604090205490565b3480156108b457600080fd5b506103de611391565b3480156108c957600080fd5b506103de6108d83660046123a4565b6115be565b3480156108e957600080fd5b506103136108f83660046123a4565b600b6020526000908152604090205481565b34801561091657600080fd5b506102ce61092536600461260c565b6116fc565b34801561093657600080fd5b506103de6109453660046124ba565b61172a565b34801561095657600080fd5b506103de6109653660046123a4565b611745565b60006001600160e01b031982166380ac58cd60e01b148061099b57506001600160e01b03198216635b5e139f60e01b145b806109b657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546109cb9061263a565b80601f01602080910402602001604051908101604052809291908181526020018280546109f79061263a565b8015610a445780601f10610a1957610100808354040283529160200191610a44565b820191906000526020600020905b815481529060010190602001808311610a2757829003601f168201915b5050505050905090565b6000610a59826117c4565b506000908152600460205260409020546001600160a01b031690565b6000610a8082610f51565b9050806001600160a01b0316836001600160a01b031603610af25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610b0e5750610b0e81336116fc565b610b805760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610ae9565b610b8a8383611814565b505050565b6000610b9a60075490565b905090565b610baa335b82611882565b610c0c5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610ae9565b610b8a8383836118e1565b601854610100900460ff1615610c655760405162461bcd60e51b8152602060048201526013602482015272273790393296b2b73a3930b73a1031b0b6361760691b6044820152606401610ae9565b6018805461ff001981166101001790915560ff16610cd15760405162461bcd60e51b8152602060048201526024808201527f5075626c69632073616c6520697320636c6f73656420617420746865206d6f6d60448201526332b73a1760e11b6064820152608401610ae9565b338115801590610cf45750600282610ce883610fb1565b610cf2919061268a565b105b610d395760405162461bcd60e51b815260206004820152601660248201527524b73b30b634b21036b4b73a1038bab0b73a34ba3c9760511b6044820152606401610ae9565b81601a54610d4791906126a2565b341015610d885760405162461bcd60e51b815260206004820152600f60248201526e2737ba1032b737bab3b41022aa241760891b6044820152606401610ae9565b336000908152600f602052604090205415801590610db75750600954336000908152600f602052604090205411155b15610ddc57610dc533611a52565b610dcd611391565b610dd78183611a8e565b610def565b610de68183611a8e565b610def33611a52565b50506018805461ff0019169055565b610e06611b52565b6000610e1a6006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610e64576040519150601f19603f3d011682016040523d82523d6000602084013e610e69565b606091505b5050905080610eba5760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f2077697468647261772045746865722e000000000000006044820152606401610ae9565b50565b610ec633610ba4565b610ee25760405162461bcd60e51b8152600401610ae9906126c1565b336000908152600f602052604090205415801590610f115750600954336000908152600f602052604090205411155b15610c0c57610c0c611391565b610f26611b52565b610f2f81611a52565b610eba816001611a8e565b8051610f4d90601290602084019061223f565b5050565b6000818152600260205260408120546001600160a01b0316806109b65760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ae9565b60006001600160a01b03821661101b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610ae9565b506001600160a01b031660009081526003602052604090205490565b61103f611b52565b6110496000611bac565b565b611053611b52565b6014805460ff19166001179055565b600a602052816000526040600020818154811061107e57600080fd5b90600052602060002001600091509150505481565b61109b611b52565b6110a981633b9aca006126a2565b601a5550565b6060600180546109cb9061263a565b6110c6611b52565b6018805460ff19811660ff90911615179055565b610f4d338383611bfe565b600e602052816000526040600020818154811061110157600080fd5b6000918252602090912001546001600160a01b03169150829050565b6111273383611882565b6111435760405162461bcd60e51b8152600401610ae9906126c1565b336000908152600f6020526040902054158015906111725750600954336000908152600f602052604090205411155b156111905761117f611391565b61118b84848484611ccc565b61119c565b61119c84848484611ccc565b50505050565b60405163095ea7b360e01b81526000906001600160a01b0383169063095ea7b3906111d3908790879060040161270f565b6020604051808303816000875af11580156111f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112169190612728565b506001949350505050565b606061122c82611cff565b6112915760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b6064820152608401610ae9565b60145460ff16151560000361133257601580546112ad9061263a565b80601f01602080910402602001604051908101604052809291908181526020018280546112d99061263a565b80156113265780601f106112fb57610100808354040283529160200191611326565b820191906000526020600020905b81548152906001019060200180831161130957829003601f168201915b50505050509050919050565b600061133c611d1c565b9050600081511161135c576040518060200160405280600081525061138a565b8061136684611d2b565b601360405160200161137a93929190612745565b6040516020818303038152906040525b9392505050565b600061139c33610fb1565b116113e95760405162461bcd60e51b815260206004820152601a60248201527f476f2062757920616e206e667420736972206f72206d6164616d0000000000006044820152606401610ae9565b336000908152600f6020526040902054158015906114185750600954336000908152600f602052604090205411155b61146f5760405162461bcd60e51b815260206004820152602260248201527f6e6f742074686520636f727265637420706572696f6420696420746f20636c61604482015261696d60f01b6064820152608401610ae9565b336000908152600f60205260409020545b60095461148e90600161268a565b81101561158857600081815260106020526040902054601b80546001600160a01b0319166001600160a01b0390921691821790556008546114d1913391906111a2565b506114db33611a52565b601b54600082815260106020526040902060038101546001909101546001600160a01b039092169163a9059cbb9133916115159190612808565b6040518363ffffffff1660e01b815260040161153292919061270f565b6020604051808303816000875af1158015611551573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115759190612728565b50806115808161282a565b915050611480565b506040513381527ffe321261c6046e8a359c746098f32d129551bba84a367bc920656914b652f4699060200160405180910390a1565b6115c6611b52565b61164660095460016115d8919061268a565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa15801561161c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116409190612843565b83611dbe565b60095461165490600161268a565b6009556040516370a0823160e01b81523060048201527f9ff37b78fc8c2cd0d33e9dabedf9dc952c3fe4043ca9e4582c9d7ac98933b5019082906001600160a01b038216906370a0823190602401602060405180830381865afa1580156116bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e39190612843565b6040516116f192919061270f565b60405180910390a150565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611732611b52565b8051610f4d90601590602084019061223f565b61174d611b52565b6001600160a01b0381166117b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae9565b610eba81611bac565b80546001019055565b6117cd81611cff565b610eba5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610ae9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061184982610f51565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061188e83610f51565b9050806001600160a01b0316846001600160a01b031614806118b557506118b581856116fc565b806118d95750836001600160a01b03166118ce84610a4e565b6001600160a01b0316145b949350505050565b826001600160a01b03166118f482610f51565b6001600160a01b03161461191a5760405162461bcd60e51b8152600401610ae99061285c565b6001600160a01b03821661197c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ae9565b6119898383836001611e21565b826001600160a01b031661199c82610f51565b6001600160a01b0316146119c25760405162461bcd60e51b8152600401610ae99061285c565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b336000908152600d60205260409020429055600954611a7290600161268a565b6001600160a01b039091166000908152600f6020526040902055565b6107d0611a9a60075490565b82011115611ae15760405162461bcd60e51b815260206004820152601460248201527326b0bc1039bab838363c9032bc31b2b2b232b21760611b6044820152606401610ae9565b60005b81811015611b1457611afe83611af960075490565b611ea9565b611b0c600780546001019055565b600101611ae4565b507fb7656808f0e04b4af7a20f7ef1caa7669f0d781f1ca4cba31a3ba467880766c98282604051611b4692919061270f565b60405180910390a15050565b6006546001600160a01b031633146110495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ae9565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611c5f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ae9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611cd78484846118e1565b611ce384848484611ec3565b61119c5760405162461bcd60e51b8152600401610ae9906128a1565b6000908152600260205260409020546001600160a01b0316151590565b6060601280546109cb9061263a565b60606000611d3883611fb9565b600101905060008167ffffffffffffffff811115611d5857611d5861242e565b6040519080825280601f01601f191660200182016040528015611d82576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611d8c57509392505050565b600954611dcc90600161268a565b6001600160a01b03919091166000818152600c602090815260408083209490945594815260109094529220426002820155600181019190915580546001600160a01b0319169091178155600754600390910155565b600181111561119c576001600160a01b03841615611e67576001600160a01b03841660009081526003602052604081208054839290611e619084906128f3565b90915550505b6001600160a01b0383161561119c576001600160a01b03831660009081526003602052604081208054839290611e9e90849061268a565b909155505050505050565b610f4d828260405180602001604052806000815250612091565b60006001600160a01b0384163b1561121657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f0790339089908890889060040161290a565b6020604051808303816000875af1925050508015611f42575060408051601f3d908101601f19168201909252611f3f91810190612947565b60015b611f9f573d808015611f70576040519150601f19603f3d011682016040523d82523d6000602084013e611f75565b606091505b508051600003611f975760405162461bcd60e51b8152600401610ae9906128a1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118d9565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611ff85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612024576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061204257662386f26fc10000830492506010015b6305f5e100831061205a576305f5e100830492506008015b612710831061206e57612710830492506004015b60648310612080576064830492506002015b600a83106109b65760010192915050565b61209b83836120c4565b6120a86000848484611ec3565b610b8a5760405162461bcd60e51b8152600401610ae9906128a1565b6001600160a01b03821661211a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ae9565b61212381611cff565b156121705760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ae9565b61217e600083836001611e21565b61218781611cff565b156121d45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ae9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461224b9061263a565b90600052602060002090601f01602090048101928261226d57600085556122b3565b82601f1061228657805160ff19168380011785556122b3565b828001600101855582156122b3579182015b828111156122b3578251825591602001919060010190612298565b506122bf9291506122c3565b5090565b5b808211156122bf57600081556001016122c4565b6001600160e01b031981168114610eba57600080fd5b60006020828403121561230057600080fd5b813561138a816122d8565b60006020828403121561231d57600080fd5b5035919050565b60005b8381101561233f578181015183820152602001612327565b8381111561119c5750506000910152565b60008151808452612368816020860160208601612324565b601f01601f19169290920160200192915050565b60208152600061138a6020830184612350565b6001600160a01b0381168114610eba57600080fd5b6000602082840312156123b657600080fd5b813561138a8161238f565b600080604083850312156123d457600080fd5b82356123df8161238f565b946020939093013593505050565b60008060006060848603121561240257600080fd5b833561240d8161238f565b9250602084013561241d8161238f565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561245f5761245f61242e565b604051601f8501601f19908116603f011681019082821181831017156124875761248761242e565b816040528093508581528686860111156124a057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156124cc57600080fd5b813567ffffffffffffffff8111156124e357600080fd5b8201601f810184136124f457600080fd5b6118d984823560208401612444565b8015158114610eba57600080fd5b6000806040838503121561252457600080fd5b823561252f8161238f565b9150602083013561253f81612503565b809150509250929050565b6000806000806080858703121561256057600080fd5b843561256b8161238f565b9350602085013561257b8161238f565b925060408501359150606085013567ffffffffffffffff81111561259e57600080fd5b8501601f810187136125af57600080fd5b6125be87823560208401612444565b91505092959194509250565b6000806000606084860312156125df57600080fd5b83356125ea8161238f565b92506020840135915060408401356126018161238f565b809150509250925092565b6000806040838503121561261f57600080fd5b823561262a8161238f565b9150602083013561253f8161238f565b600181811c9082168061264e57607f821691505b60208210810361266e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561269d5761269d612674565b500190565b60008160001904831182151516156126bc576126bc612674565b500290565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6001600160a01b03929092168252602082015260400190565b60006020828403121561273a57600080fd5b815161138a81612503565b6000845160206127588285838a01612324565b85519184019161276b8184848a01612324565b8554920191600090600181811c908083168061278857607f831692505b85831081036127a557634e487b7160e01b85526022600452602485fd5b8080156127b957600181146127ca576127f7565b60ff198516885283880195506127f7565b60008b81526020902060005b858110156127ef5781548a8201529084019088016127d6565b505083880195505b50939b9a5050505050505050505050565b60008261282557634e487b7160e01b600052601260045260246000fd5b500490565b60006001820161283c5761283c612674565b5060010190565b60006020828403121561285557600080fd5b5051919050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008282101561290557612905612674565b500390565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061293d90830184612350565b9695505050505050565b60006020828403121561295957600080fd5b815161138a816122d856fea26469706673582212205ab8a9221bf8f512e7e04ad4d2ef666bc8856906574b6200020c249e7c896b1064736f6c634300080d0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000008f0d180000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d596170455659706f4155444a6d44726a696f643747506146636a785a644d336d72664c4146476d57694733712f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d596170455659706f4155444a6d44726a696f643747506146636a785a644d336d72664c4146476d57694733712f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _initBaseURI (string): https://ipfs.io/ipfs/QmYapEVYpoAUDJmDrjiod7GPaFcjxZdM3mrfLAFGmWiG3q/
Arg [1] : _initNotRevealedUri (string): https://ipfs.io/ipfs/QmYapEVYpoAUDJmDrjiod7GPaFcjxZdM3mrfLAFGmWiG3q/
Arg [2] : PUB_PRICE (uint256): 150000000

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000008f0d180
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [4] : 68747470733a2f2f697066732e696f2f697066732f516d596170455659706f41
Arg [5] : 55444a6d44726a696f643747506146636a785a644d336d72664c4146476d5769
Arg [6] : 4733712f00000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [8] : 68747470733a2f2f697066732e696f2f697066732f516d596170455659706f41
Arg [9] : 55444a6d44726a696f643747506146636a785a644d336d72664c4146476d5769
Arg [10] : 4733712f00000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.