ETH Price: $3,159.00 (+0.50%)
Gas: 2 Gwei

Token

Travel Tokens (TTNFT)
 

Overview

Max Total Supply

167 TTNFT

Holders

88

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 TTNFT
0x53a00df3778976fdfbea092864685212f1e21ed6
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:
TravelTokens

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

contract TravelTokens is ERC721, Ownable {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdTracker;

    address public constant DEV_ADDRESS =
        0x93AcBb034cb43Fe87F02De5a5e2bec2f9c9e409a;

    uint256 public tokenPrice = 0.07 ether;

    uint256 public constant MAX_SUPPLY = 420;

    bool public saleIsActive = false;
    bool public isPresale = true;

    uint256 public tokenReserve = 10;

    string private newBaseURI;

    mapping(address => bool) private whiteList;

    constructor() ERC721("Travel Tokens", "TTNFT") {}

    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        payable(DEV_ADDRESS).transfer(balance.mul(7).div(100));
        payable(msg.sender).transfer(address(this).balance);
    }

    function _totalSupply() public view returns (uint256) {
        return _tokenIdTracker.current();
    }

    function totalSupply() public view returns (uint256) {
        return _tokenIdTracker.current();
    }

    function reserveTokens(address _to, uint256 _reserveAmount)
        public
        onlyOwner
    {
        uint256 supply = _totalSupply();
        require(
            _reserveAmount > 0 && _reserveAmount <= tokenReserve,
            "Not enough reserve left for team"
        );
        for (uint256 i = 0; i < _reserveAmount; i++) {
            _tokenIdTracker.increment();
            _safeMint(_to, supply + i);
        }
        tokenReserve = tokenReserve.sub(_reserveAmount);
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        newBaseURI = baseURI;
    }

    function _baseURI() internal view override returns (string memory) {
        return newBaseURI;
    }

    function flipSaleState() public onlyOwner {
        saleIsActive = !saleIsActive;
    }

    function flipPresaleState() public onlyOwner {
        isPresale = !isPresale;
    }

    function mintToken(uint256 numberOfTokens) public payable {
        require(saleIsActive, "Sale not active");
        if (isPresale) {
            require(isWhiteListed(msg.sender), "Not whitelisted");
        }
        require(numberOfTokens == 1, "One NFT per mint");
        require(
            _totalSupply().add(numberOfTokens) <= MAX_SUPPLY,
            "Exceed max supply of Tokens"
        );
        require(
            msg.value >= tokenPrice.mul(numberOfTokens),
            "Ether value sent is not correct"
        );

        for (uint256 i = 0; i < numberOfTokens; i++) {
            uint256 mintIndex = _totalSupply();
            if (_totalSupply() < MAX_SUPPLY) {
                _tokenIdTracker.increment();
                _safeMint(msg.sender, mintIndex);
            }
        }
    }

    function setTokenPrice(uint256 newPrice) public onlyOwner {
        tokenPrice = newPrice;
    }

    function setWhiteList(address _address) public onlyOwner {
        whiteList[_address] = true;
    }

    function setWhiteListMultiple(address[] memory _addresses)
        public
        onlyOwner
    {
        for (uint256 i = 0; i < _addresses.length; i++) {
            setWhiteList(_addresses[i]);
        }
    }

    function removeWhiteList(address _address) public onlyOwner {
        whiteList[_address] = false;
    }

    function isWhiteListed(address _address) public view returns (bool) {
        return whiteList[_address];
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 13 : 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 6 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 8 of 13 : 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 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 13 : 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 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 13 : 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 13 of 13 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEV_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"setWhiteListMultiple","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":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405266f8b0a10e4700006008556009805461ffff1916610100179055600a80553480156200002f57600080fd5b50604080518082018252600d81526c54726176656c20546f6b656e7360981b602080830191825283518085019094526005845264151513919560da1b908401528151919291620000829160009162000111565b5080516200009890600190602084019062000111565b505050620000b5620000af620000bb60201b60201c565b620000bf565b620001f4565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011f90620001b7565b90600052602060002090601f0160209004810192826200014357600085556200018e565b82601f106200015e57805160ff19168380011785556200018e565b828001600101855582156200018e579182015b828111156200018e57825182559160200191906001019062000171565b506200019c929150620001a0565b5090565b5b808211156200019c5760008155600101620001a1565b600181811c90821680620001cc57607f821691505b60208210811415620001ee57634e487b7160e01b600052602260045260246000fd5b50919050565b6124da80620002046000396000f3fe6080604052600436106102345760003560e01c80636f9170f611610138578063a22cb465116100b0578063cbcb31711161007f578063eb8d244411610064578063eb8d24441461063d578063f2fde38b14610657578063f81227d41461067757600080fd5b8063cbcb3171146105de578063e985e9c5146105f457600080fd5b8063a22cb4651461056b578063b88d4fde1461058b578063c634d032146105ab578063c87b56dd146105be57600080fd5b80637ff9b596116101075780638da5cb5b116100ec5780638da5cb5b1461051957806395364a841461053757806395d89b411461055657600080fd5b80637ff9b596146104e357806386d8953a146104f957600080fd5b80636f9170f61461045557806370a082311461048e578063715018a6146104ae57806378cf19e9146104c357600080fd5b806334918dfd116101cb57806342842e0e1161019a5780635639e8cf1161017f5780635639e8cf146103ed5780636352211e146104155780636a61e5fc1461043557600080fd5b806342842e0e146103ad57806355f804b3146103cd57600080fd5b806334918dfd1461036357806339e899ee146103785780633ccfd60b146103985780633eaaf86b146102ea57600080fd5b806318160ddd1161020757806318160ddd146102ea5780632042e5c21461030d57806323b872dd1461032d57806332cb6b0c1461034d57600080fd5b806301ffc9a71461023957806306fdde031461026e578063081812fc14610290578063095ea7b3146102c8575b600080fd5b34801561024557600080fd5b506102596102543660046121c3565b61068c565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b50610283610729565b60405161026591906122f0565b34801561029c57600080fd5b506102b06102ab366004612241565b6107bb565b6040516001600160a01b039091168152602001610265565b3480156102d457600080fd5b506102e86102e33660046120eb565b610855565b005b3480156102f657600080fd5b506102ff610987565b604051908152602001610265565b34801561031957600080fd5b506102e8610328366004611fb1565b610997565b34801561033957600080fd5b506102e8610348366004611ffd565b610a00565b34801561035957600080fd5b506102ff6101a481565b34801561036f57600080fd5b506102e8610a87565b34801561038457600080fd5b506102e8610393366004611fb1565b610ae3565b3480156103a457600080fd5b506102e8610b4f565b3480156103b957600080fd5b506102e86103c8366004611ffd565b610c1f565b3480156103d957600080fd5b506102e86103e83660046121fb565b610c3a565b3480156103f957600080fd5b506102b07393acbb034cb43fe87f02de5a5e2bec2f9c9e409a81565b34801561042157600080fd5b506102b0610430366004612241565b610c95565b34801561044157600080fd5b506102e8610450366004612241565b610d20565b34801561046157600080fd5b50610259610470366004611fb1565b6001600160a01b03166000908152600c602052604090205460ff1690565b34801561049a57600080fd5b506102ff6104a9366004611fb1565b610d6d565b3480156104ba57600080fd5b506102e8610e07565b3480156104cf57600080fd5b506102e86104de3660046120eb565b610e5b565b3480156104ef57600080fd5b506102ff60085481565b34801561050557600080fd5b506102e8610514366004612114565b610f61565b34801561052557600080fd5b506006546001600160a01b03166102b0565b34801561054357600080fd5b5060095461025990610100900460ff1681565b34801561056257600080fd5b50610283610ff7565b34801561057757600080fd5b506102e86105863660046120b1565b611006565b34801561059757600080fd5b506102e86105a6366004612038565b611011565b6102e86105b9366004612241565b61109f565b3480156105ca57600080fd5b506102836105d9366004612241565b6112c2565b3480156105ea57600080fd5b506102ff600a5481565b34801561060057600080fd5b5061025961060f366004611fcb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561064957600080fd5b506009546102599060ff1681565b34801561066357600080fd5b506102e8610672366004611fb1565b6113ab565b34801561068357600080fd5b506102e861147b565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061072357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610738906123c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610764906123c2565b80156107b15780601f10610786576101008083540402835291602001916107b1565b820191906000526020600020905b81548152906001019060200180831161079457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108395760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061086082610c95565b9050806001600160a01b0316836001600160a01b031614156108ea5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610830565b336001600160a01b03821614806109065750610906813361060f565b6109785760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610830565b61098283836114e0565b505050565b600061099260075490565b905090565b6006546001600160a01b031633146109df5760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b610a0a338261155b565b610a7c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610830565b610982838383611652565b6006546001600160a01b03163314610acf5760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6009805460ff19811660ff90911615179055565b6006546001600160a01b03163314610b2b5760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b6006546001600160a01b03163314610b975760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b477393acbb034cb43fe87f02de5a5e2bec2f9c9e409a6108fc610bc66064610bc085600761182c565b90611838565b6040518115909202916000818181858888f19350505050158015610bee573d6000803e3d6000fd5b5060405133904780156108fc02916000818181858888f19350505050158015610c1b573d6000803e3d6000fd5b5050565b61098283838360405180602001604052806000815250611011565b6006546001600160a01b03163314610c825760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b8051610c1b90600b906020840190611ea4565b6000818152600260205260408120546001600160a01b0316806107235760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610830565b6006546001600160a01b03163314610d685760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b600855565b60006001600160a01b038216610deb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610830565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e4f5760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b610e596000611844565b565b6006546001600160a01b03163314610ea35760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6000610ead610987565b9050600082118015610ec15750600a548211155b610f0d5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d6044820152606401610830565b60005b82811015610f4b57610f26600780546001019055565b610f3984610f348385612334565b6118a3565b80610f43816123fd565b915050610f10565b50600a54610f5990836118bd565b600a55505050565b6006546001600160a01b03163314610fa95760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b60005b8151811015610c1b57610fe5828281518110610fd857634e487b7160e01b600052603260045260246000fd5b6020026020010151610ae3565b80610fef816123fd565b915050610fac565b606060018054610738906123c2565b610c1b3383836118c9565b61101b338361155b565b61108d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610830565b61109984848484611998565b50505050565b60095460ff166110f15760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f742061637469766500000000000000000000000000000000006044820152606401610830565b600954610100900460ff161561116057336000908152600c602052604090205460ff166111605760405162461bcd60e51b815260206004820152600f60248201527f4e6f742077686974656c697374656400000000000000000000000000000000006044820152606401610830565b806001146111b05760405162461bcd60e51b815260206004820152601060248201527f4f6e65204e465420706572206d696e74000000000000000000000000000000006044820152606401610830565b6101a46111c5826111bf610987565b90611a16565b11156112135760405162461bcd60e51b815260206004820152601b60248201527f457863656564206d617820737570706c79206f6620546f6b656e7300000000006044820152606401610830565b600854611220908261182c565b34101561126f5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610830565b60005b81811015610c1b576000611284610987565b90506101a4611291610987565b10156112af576112a5600780546001019055565b6112af33826118a3565b50806112ba816123fd565b915050611272565b6000818152600260205260409020546060906001600160a01b031661134f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610830565b6000611359611a22565b9050600081511161137957604051806020016040528060008152506113a4565b8061138384611a31565b604051602001611394929190612285565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146113f35760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6001600160a01b03811661146f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610830565b61147881611844565b50565b6006546001600160a01b031633146114c35760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6009805461ff001981166101009182900460ff1615909102179055565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061152282610c95565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115d45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610830565b60006115df83610c95565b9050806001600160a01b0316846001600160a01b0316148061161a5750836001600160a01b031661160f846107bb565b6001600160a01b0316145b8061164a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661166582610c95565b6001600160a01b0316146116e15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610830565b6001600160a01b03821661175c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610830565b6117676000826114e0565b6001600160a01b038316600090815260036020526040812080546001929061179090849061237f565b90915550506001600160a01b03821660009081526003602052604081208054600192906117be908490612334565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006113a48284612360565b60006113a4828461234c565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c1b828260405180602001604052806000815250611b7f565b60006113a4828461237f565b816001600160a01b0316836001600160a01b0316141561192b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610830565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6119a3848484611652565b6119af84848484611bfd565b6110995760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610830565b60006113a48284612334565b6060600b8054610738906123c2565b606081611a7157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611a9b5780611a85816123fd565b9150611a949050600a8361234c565b9150611a75565b60008167ffffffffffffffff811115611ac457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611aee576020820181803683370190505b5090505b841561164a57611b0360018361237f565b9150611b10600a86612418565b611b1b906030612334565b60f81b818381518110611b3e57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611b78600a8661234c565b9450611af2565b611b898383611d55565b611b966000848484611bfd565b6109825760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610830565b60006001600160a01b0384163b15611d4a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c419033908990889088906004016122b4565b602060405180830381600087803b158015611c5b57600080fd5b505af1925050508015611c8b575060408051601f3d908101601f19168201909252611c88918101906121df565b60015b611d30573d808015611cb9576040519150601f19603f3d011682016040523d82523d6000602084013e611cbe565b606091505b508051611d285760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610830565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061164a565b506001949350505050565b6001600160a01b038216611dab5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610830565b6000818152600260205260409020546001600160a01b031615611e105760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610830565b6001600160a01b0382166000908152600360205260408120805460019290611e39908490612334565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611eb0906123c2565b90600052602060002090601f016020900481019282611ed25760008555611f18565b82601f10611eeb57805160ff1916838001178555611f18565b82800160010185558215611f18579182015b82811115611f18578251825591602001919060010190611efd565b50611f24929150611f28565b5090565b5b80821115611f245760008155600101611f29565b600067ffffffffffffffff831115611f5757611f57612458565b611f6a601f8401601f1916602001612303565b9050828152838383011115611f7e57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611fac57600080fd5b919050565b600060208284031215611fc2578081fd5b6113a482611f95565b60008060408385031215611fdd578081fd5b611fe683611f95565b9150611ff460208401611f95565b90509250929050565b600080600060608486031215612011578081fd5b61201a84611f95565b925061202860208501611f95565b9150604084013590509250925092565b6000806000806080858703121561204d578081fd5b61205685611f95565b935061206460208601611f95565b925060408501359150606085013567ffffffffffffffff811115612086578182fd5b8501601f81018713612096578182fd5b6120a587823560208401611f3d565b91505092959194509250565b600080604083850312156120c3578182fd5b6120cc83611f95565b9150602083013580151581146120e0578182fd5b809150509250929050565b600080604083850312156120fd578182fd5b61210683611f95565b946020939093013593505050565b60006020808385031215612126578182fd5b823567ffffffffffffffff8082111561213d578384fd5b818501915085601f830112612150578384fd5b81358181111561216257612162612458565b8060051b9150612173848301612303565b8181528481019084860184860187018a101561218d578788fd5b8795505b838610156121b6576121a281611f95565b835260019590950194918601918601612191565b5098975050505050505050565b6000602082840312156121d4578081fd5b81356113a48161246e565b6000602082840312156121f0578081fd5b81516113a48161246e565b60006020828403121561220c578081fd5b813567ffffffffffffffff811115612222578182fd5b8201601f81018413612232578182fd5b61164a84823560208401611f3d565b600060208284031215612252578081fd5b5035919050565b60008151808452612271816020860160208601612396565b601f01601f19169290920160200192915050565b60008351612297818460208801612396565b8351908301906122ab818360208801612396565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526122e66080830184612259565b9695505050505050565b6020815260006113a46020830184612259565b604051601f8201601f1916810167ffffffffffffffff8111828210171561232c5761232c612458565b604052919050565b600082198211156123475761234761242c565b500190565b60008261235b5761235b612442565b500490565b600081600019048311821515161561237a5761237a61242c565b500290565b6000828210156123915761239161242c565b500390565b60005b838110156123b1578181015183820152602001612399565b838111156110995750506000910152565b600181811c908216806123d657607f821691505b602082108114156123f757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124115761241161242c565b5060010190565b60008261242757612427612442565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461147857600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212208d56f8f81accf08d3f78966f57577152a47a9acb138791b727c621f19e59325d64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106102345760003560e01c80636f9170f611610138578063a22cb465116100b0578063cbcb31711161007f578063eb8d244411610064578063eb8d24441461063d578063f2fde38b14610657578063f81227d41461067757600080fd5b8063cbcb3171146105de578063e985e9c5146105f457600080fd5b8063a22cb4651461056b578063b88d4fde1461058b578063c634d032146105ab578063c87b56dd146105be57600080fd5b80637ff9b596116101075780638da5cb5b116100ec5780638da5cb5b1461051957806395364a841461053757806395d89b411461055657600080fd5b80637ff9b596146104e357806386d8953a146104f957600080fd5b80636f9170f61461045557806370a082311461048e578063715018a6146104ae57806378cf19e9146104c357600080fd5b806334918dfd116101cb57806342842e0e1161019a5780635639e8cf1161017f5780635639e8cf146103ed5780636352211e146104155780636a61e5fc1461043557600080fd5b806342842e0e146103ad57806355f804b3146103cd57600080fd5b806334918dfd1461036357806339e899ee146103785780633ccfd60b146103985780633eaaf86b146102ea57600080fd5b806318160ddd1161020757806318160ddd146102ea5780632042e5c21461030d57806323b872dd1461032d57806332cb6b0c1461034d57600080fd5b806301ffc9a71461023957806306fdde031461026e578063081812fc14610290578063095ea7b3146102c8575b600080fd5b34801561024557600080fd5b506102596102543660046121c3565b61068c565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b50610283610729565b60405161026591906122f0565b34801561029c57600080fd5b506102b06102ab366004612241565b6107bb565b6040516001600160a01b039091168152602001610265565b3480156102d457600080fd5b506102e86102e33660046120eb565b610855565b005b3480156102f657600080fd5b506102ff610987565b604051908152602001610265565b34801561031957600080fd5b506102e8610328366004611fb1565b610997565b34801561033957600080fd5b506102e8610348366004611ffd565b610a00565b34801561035957600080fd5b506102ff6101a481565b34801561036f57600080fd5b506102e8610a87565b34801561038457600080fd5b506102e8610393366004611fb1565b610ae3565b3480156103a457600080fd5b506102e8610b4f565b3480156103b957600080fd5b506102e86103c8366004611ffd565b610c1f565b3480156103d957600080fd5b506102e86103e83660046121fb565b610c3a565b3480156103f957600080fd5b506102b07393acbb034cb43fe87f02de5a5e2bec2f9c9e409a81565b34801561042157600080fd5b506102b0610430366004612241565b610c95565b34801561044157600080fd5b506102e8610450366004612241565b610d20565b34801561046157600080fd5b50610259610470366004611fb1565b6001600160a01b03166000908152600c602052604090205460ff1690565b34801561049a57600080fd5b506102ff6104a9366004611fb1565b610d6d565b3480156104ba57600080fd5b506102e8610e07565b3480156104cf57600080fd5b506102e86104de3660046120eb565b610e5b565b3480156104ef57600080fd5b506102ff60085481565b34801561050557600080fd5b506102e8610514366004612114565b610f61565b34801561052557600080fd5b506006546001600160a01b03166102b0565b34801561054357600080fd5b5060095461025990610100900460ff1681565b34801561056257600080fd5b50610283610ff7565b34801561057757600080fd5b506102e86105863660046120b1565b611006565b34801561059757600080fd5b506102e86105a6366004612038565b611011565b6102e86105b9366004612241565b61109f565b3480156105ca57600080fd5b506102836105d9366004612241565b6112c2565b3480156105ea57600080fd5b506102ff600a5481565b34801561060057600080fd5b5061025961060f366004611fcb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561064957600080fd5b506009546102599060ff1681565b34801561066357600080fd5b506102e8610672366004611fb1565b6113ab565b34801561068357600080fd5b506102e861147b565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061072357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610738906123c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610764906123c2565b80156107b15780601f10610786576101008083540402835291602001916107b1565b820191906000526020600020905b81548152906001019060200180831161079457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108395760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061086082610c95565b9050806001600160a01b0316836001600160a01b031614156108ea5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610830565b336001600160a01b03821614806109065750610906813361060f565b6109785760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610830565b61098283836114e0565b505050565b600061099260075490565b905090565b6006546001600160a01b031633146109df5760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b610a0a338261155b565b610a7c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610830565b610982838383611652565b6006546001600160a01b03163314610acf5760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6009805460ff19811660ff90911615179055565b6006546001600160a01b03163314610b2b5760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b6006546001600160a01b03163314610b975760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b477393acbb034cb43fe87f02de5a5e2bec2f9c9e409a6108fc610bc66064610bc085600761182c565b90611838565b6040518115909202916000818181858888f19350505050158015610bee573d6000803e3d6000fd5b5060405133904780156108fc02916000818181858888f19350505050158015610c1b573d6000803e3d6000fd5b5050565b61098283838360405180602001604052806000815250611011565b6006546001600160a01b03163314610c825760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b8051610c1b90600b906020840190611ea4565b6000818152600260205260408120546001600160a01b0316806107235760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610830565b6006546001600160a01b03163314610d685760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b600855565b60006001600160a01b038216610deb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610830565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e4f5760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b610e596000611844565b565b6006546001600160a01b03163314610ea35760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6000610ead610987565b9050600082118015610ec15750600a548211155b610f0d5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d6044820152606401610830565b60005b82811015610f4b57610f26600780546001019055565b610f3984610f348385612334565b6118a3565b80610f43816123fd565b915050610f10565b50600a54610f5990836118bd565b600a55505050565b6006546001600160a01b03163314610fa95760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b60005b8151811015610c1b57610fe5828281518110610fd857634e487b7160e01b600052603260045260246000fd5b6020026020010151610ae3565b80610fef816123fd565b915050610fac565b606060018054610738906123c2565b610c1b3383836118c9565b61101b338361155b565b61108d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610830565b61109984848484611998565b50505050565b60095460ff166110f15760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f742061637469766500000000000000000000000000000000006044820152606401610830565b600954610100900460ff161561116057336000908152600c602052604090205460ff166111605760405162461bcd60e51b815260206004820152600f60248201527f4e6f742077686974656c697374656400000000000000000000000000000000006044820152606401610830565b806001146111b05760405162461bcd60e51b815260206004820152601060248201527f4f6e65204e465420706572206d696e74000000000000000000000000000000006044820152606401610830565b6101a46111c5826111bf610987565b90611a16565b11156112135760405162461bcd60e51b815260206004820152601b60248201527f457863656564206d617820737570706c79206f6620546f6b656e7300000000006044820152606401610830565b600854611220908261182c565b34101561126f5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610830565b60005b81811015610c1b576000611284610987565b90506101a4611291610987565b10156112af576112a5600780546001019055565b6112af33826118a3565b50806112ba816123fd565b915050611272565b6000818152600260205260409020546060906001600160a01b031661134f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610830565b6000611359611a22565b9050600081511161137957604051806020016040528060008152506113a4565b8061138384611a31565b604051602001611394929190612285565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146113f35760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6001600160a01b03811661146f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610830565b61147881611844565b50565b6006546001600160a01b031633146114c35760405162461bcd60e51b815260206004820181905260248201526000805160206124858339815191526044820152606401610830565b6009805461ff001981166101009182900460ff1615909102179055565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061152282610c95565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115d45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610830565b60006115df83610c95565b9050806001600160a01b0316846001600160a01b0316148061161a5750836001600160a01b031661160f846107bb565b6001600160a01b0316145b8061164a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661166582610c95565b6001600160a01b0316146116e15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610830565b6001600160a01b03821661175c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610830565b6117676000826114e0565b6001600160a01b038316600090815260036020526040812080546001929061179090849061237f565b90915550506001600160a01b03821660009081526003602052604081208054600192906117be908490612334565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006113a48284612360565b60006113a4828461234c565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c1b828260405180602001604052806000815250611b7f565b60006113a4828461237f565b816001600160a01b0316836001600160a01b0316141561192b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610830565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6119a3848484611652565b6119af84848484611bfd565b6110995760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610830565b60006113a48284612334565b6060600b8054610738906123c2565b606081611a7157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611a9b5780611a85816123fd565b9150611a949050600a8361234c565b9150611a75565b60008167ffffffffffffffff811115611ac457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611aee576020820181803683370190505b5090505b841561164a57611b0360018361237f565b9150611b10600a86612418565b611b1b906030612334565b60f81b818381518110611b3e57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611b78600a8661234c565b9450611af2565b611b898383611d55565b611b966000848484611bfd565b6109825760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610830565b60006001600160a01b0384163b15611d4a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c419033908990889088906004016122b4565b602060405180830381600087803b158015611c5b57600080fd5b505af1925050508015611c8b575060408051601f3d908101601f19168201909252611c88918101906121df565b60015b611d30573d808015611cb9576040519150601f19603f3d011682016040523d82523d6000602084013e611cbe565b606091505b508051611d285760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610830565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061164a565b506001949350505050565b6001600160a01b038216611dab5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610830565b6000818152600260205260409020546001600160a01b031615611e105760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610830565b6001600160a01b0382166000908152600360205260408120805460019290611e39908490612334565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611eb0906123c2565b90600052602060002090601f016020900481019282611ed25760008555611f18565b82601f10611eeb57805160ff1916838001178555611f18565b82800160010185558215611f18579182015b82811115611f18578251825591602001919060010190611efd565b50611f24929150611f28565b5090565b5b80821115611f245760008155600101611f29565b600067ffffffffffffffff831115611f5757611f57612458565b611f6a601f8401601f1916602001612303565b9050828152838383011115611f7e57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611fac57600080fd5b919050565b600060208284031215611fc2578081fd5b6113a482611f95565b60008060408385031215611fdd578081fd5b611fe683611f95565b9150611ff460208401611f95565b90509250929050565b600080600060608486031215612011578081fd5b61201a84611f95565b925061202860208501611f95565b9150604084013590509250925092565b6000806000806080858703121561204d578081fd5b61205685611f95565b935061206460208601611f95565b925060408501359150606085013567ffffffffffffffff811115612086578182fd5b8501601f81018713612096578182fd5b6120a587823560208401611f3d565b91505092959194509250565b600080604083850312156120c3578182fd5b6120cc83611f95565b9150602083013580151581146120e0578182fd5b809150509250929050565b600080604083850312156120fd578182fd5b61210683611f95565b946020939093013593505050565b60006020808385031215612126578182fd5b823567ffffffffffffffff8082111561213d578384fd5b818501915085601f830112612150578384fd5b81358181111561216257612162612458565b8060051b9150612173848301612303565b8181528481019084860184860187018a101561218d578788fd5b8795505b838610156121b6576121a281611f95565b835260019590950194918601918601612191565b5098975050505050505050565b6000602082840312156121d4578081fd5b81356113a48161246e565b6000602082840312156121f0578081fd5b81516113a48161246e565b60006020828403121561220c578081fd5b813567ffffffffffffffff811115612222578182fd5b8201601f81018413612232578182fd5b61164a84823560208401611f3d565b600060208284031215612252578081fd5b5035919050565b60008151808452612271816020860160208601612396565b601f01601f19169290920160200192915050565b60008351612297818460208801612396565b8351908301906122ab818360208801612396565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526122e66080830184612259565b9695505050505050565b6020815260006113a46020830184612259565b604051601f8201601f1916810167ffffffffffffffff8111828210171561232c5761232c612458565b604052919050565b600082198211156123475761234761242c565b500190565b60008261235b5761235b612442565b500490565b600081600019048311821515161561237a5761237a61242c565b500290565b6000828210156123915761239161242c565b500390565b60005b838110156123b1578181015183820152602001612399565b838111156110995750506000910152565b600181811c908216806123d657607f821691505b602082108114156123f757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124115761241161242c565b5060010190565b60008261242757612427612442565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461147857600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212208d56f8f81accf08d3f78966f57577152a47a9acb138791b727c621f19e59325d64736f6c63430008040033

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.