ETH Price: $2,627.48 (+1.17%)

Token

PinkCatNFT (PC)
 

Overview

Max Total Supply

0 PC

Holders

184

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 PC
0x5f38f3785f66704b1e1511aaaa17533e58413896
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:
PinkCatNFT

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 11 : contract.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";

/********************
forked from Squeebo and InvaderETH. Thank you!
********************/

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    // 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");

        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
          if( owner == _owners[i] ){
            ++count;
          }
        }

        delete length;
        return count;
    }

    /**
     * @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 {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721B.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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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


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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _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 = ERC721B.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);
        _owners.push(to);

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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


    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.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 {}
}

contract PinkCatNFT is  Ownable, ERC721B {
    using Strings for uint256;

    uint256 public constant PUBLIC_SUPPLY = 8700;
    uint256 public constant TOTAL_SUPPLY = 8888;
    uint256 public constant DEV_SUPPLY = 188;
    uint256 public constant PINKSALE_PRICE = 0.05 ether;
    uint256 public constant PRESALE_PRICE = 0.06 ether;
    uint256 public constant PUBLIC_PRICE = 0.069 ether;
    uint256 public constant MINT_MAX = 5;
    uint256 public giftedAmount;

    string public provenance;
    string private _contractURI;
    string private _tokenBaseURI = "ipfs://QmZqUkqWvQKLvyEkvfeuZETZJdnxHjdTjySJ2gJjCcUJSG/";

    bool public pinksaleLive = true;
    bool public presaleLive;
    bool public saleLive;
    bool public maxLimitOff = false;

    address private _vaultAddress = 0x82e0Ead370F3efae7E3B3025000dE21c5a653cfa;
    bytes32 public merkleRootPinkList = 0x8154b74b548744490f9c78c5a69d887bcf3700aff6fee6d375f22c86c0447f40;
    bytes32 public merkleRootAllowList = 0xae416df37e75ce5b37e7578cee07e9b9d0475badaad2855896a233003e6b9245;

    mapping(address => uint256) public presalerListPurchases;

    constructor() ERC721B("PinkCatNFT", "PC") { }

    // ** - CORE - ** //

    function publicMint(uint256 tokenQuantity) external payable {
        require(saleLive, "SALE_CLOSED");
        require(tokenQuantity <= MINT_MAX, "EXCEED_MINT_MAX");
        require(PUBLIC_PRICE * tokenQuantity <= msg.value, "INSUFFICIENT_ETH");

        uint256 supply = _owners.length;
        require(supply + tokenQuantity <= PUBLIC_SUPPLY, "EXCEED_MAX_SALE_SUPPLY");
        for(uint256 i = 0; i < tokenQuantity; i++) {
           _mint( msg.sender, supply++);
        }
    }

    function presaleMint(uint256 tokenQuantity, bytes32[] calldata _merkleProof) external payable {
        require(presaleLive, "PRESALE_CLOSED");
        require(presalerListPurchases[msg.sender] + tokenQuantity <= MINT_MAX, "EXCEED_ALLOC");
        require(PRESALE_PRICE * tokenQuantity <= msg.value, "INSUFFICIENT_ETH");

        uint256 supply = _owners.length;
        require(supply + tokenQuantity <= PUBLIC_SUPPLY, "EXCEED_MAX_SALE_SUPPLY");

        bytes32 merkleLeaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, merkleRootAllowList, merkleLeaf), "Invalid proof.");

        presalerListPurchases[msg.sender] += tokenQuantity;
        for (uint256 i = 0; i < tokenQuantity; i++) {
            _mint( msg.sender, supply++);
        }
    }

    function pinksaleMint(uint256 tokenQuantity, bytes32[] calldata _merkleProof) external payable {
        require(pinksaleLive, "PINKSALE_CLOSED");
        require(presalerListPurchases[msg.sender] + tokenQuantity <= MINT_MAX, "EXCEED_ALLOC");
        require(PINKSALE_PRICE * tokenQuantity <= msg.value, "INSUFFICIENT_ETH");

        uint256 supply = _owners.length;
        require(supply + tokenQuantity <= PUBLIC_SUPPLY, "EXCEED_MAX_SALE_SUPPLY");

        bytes32 merkleLeaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, merkleRootPinkList, merkleLeaf), "Invalid proof.");

        presalerListPurchases[msg.sender] += tokenQuantity;
        for (uint256 i = 0; i < tokenQuantity; i++) {
            _mint( msg.sender, supply++);
        }
    }

    // ** - ADMIN - ** //
    function withdraw() external onlyOwner {
        payable(_vaultAddress).transfer(address(this).balance);
    }

    function gift(address[] calldata receivers) external onlyOwner {
        uint256 supply = _owners.length;

        require(supply + receivers.length <= TOTAL_SUPPLY, "MAX_MINT");
        require(giftedAmount + receivers.length <= DEV_SUPPLY, "NO_GIFTS");

        for (uint256 i = 0; i < receivers.length; i++) {
            giftedAmount++;
            _safeMint(receivers[i], supply++ );
        }
    }

    function togglePinksaleStatus() external onlyOwner {
        pinksaleLive = !pinksaleLive;
    }

    function togglePresaleStatus() external onlyOwner {
        presaleLive = !presaleLive;
    }

    function toggleSaleStatus() external onlyOwner {
        saleLive = !saleLive;
    }

    function toggleMaxLimit() external onlyOwner {
        maxLimitOff = !maxLimitOff;
    }

    // ** - SETTERS - ** //
    function setVaultAddress(address addr) external onlyOwner {
        _vaultAddress = addr;
    }

    function setContractURI(string calldata URI) external onlyOwner {
        _contractURI = URI;
    }

    function setBaseURI(string calldata URI) external onlyOwner {
        _tokenBaseURI = URI;
    }

    function setMerklePinkList(bytes32 _merkleRoot) external onlyOwner {
        merkleRootPinkList = _merkleRoot;
    }

    function setMerkleAllowList(bytes32 _merkleRoot) external onlyOwner {
        merkleRootAllowList = _merkleRoot;
    }

    // ** - MISC - ** //

    function setProvenanceHash(string calldata hash) external onlyOwner {
        provenance = hash;
    }

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    function tokenURI(uint256 tokenId) external view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return string(abi.encodePacked(_tokenBaseURI, tokenId.toString()));
    }

    function presalePurchasedCount(address addr) external view returns (uint256) {
        return presalerListPurchases[addr];
    }

    function getSupply() external view returns (uint256) {
        return _owners.length;
    }
}

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

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

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

pragma solidity ^0.8.0;

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

File 11 of 11 : 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": 100
  },
  "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_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PINKSALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giftedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxLimitOff","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootAllowList","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootPinkList","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pinksaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"pinksaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"presalePurchasedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalerListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"saleLive","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":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerklePinkList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setVaultAddress","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":"toggleMaxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePinksaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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"}]

60e0604052603660808181529062002b6c60a039805162000029916009916020909101906200018c565b50600a805462ffff01600160c01b0319167782e0ead370f3efae7e3b3025000de21c5a653cfa000000011790557f8154b74b548744490f9c78c5a69d887bcf3700aff6fee6d375f22c86c0447f40600b557fae416df37e75ce5b37e7578cee07e9b9d0475badaad2855896a233003e6b9245600c55348015620000ab57600080fd5b506040518060400160405280600a815260200169141a5b9ad0d85d13919560b21b81525060405180604001604052806002815260200161504360f01b81525062000104620000fe6200013860201b60201c565b6200013c565b8151620001199060019060208501906200018c565b5080516200012f9060029060208401906200018c565b5050506200026f565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200019a9062000232565b90600052602060002090601f016020900481019282620001be576000855562000209565b82601f10620001d957805160ff191683800117855562000209565b8280016001018555821562000209579182015b8281111562000209578251825591602001919060010190620001ec565b50620002179291506200021b565b5090565b5b808211156200021757600081556001016200021c565b600181811c908216806200024757607f821691505b602082108114156200026957634e487b7160e01b600052602260045260246000fd5b50919050565b6128ed806200027f6000396000f3fe6080604052600436106102a85760003560e01c80636c9c2faf116101655780639bf80316116100cc578063c87b56dd11610085578063c87b56dd1461078a578063e081b781146107aa578063e3e1e8ef146107ca578063e8a3d485146107dd578063e985e9c5146107f2578063f2fde38b14610812578063fcb0cd171461083257600080fd5b80639bf80316146106d8578063a1ccfc3c14610705578063a22cb4651461071a578063b88d4fde1461073a578063b97f24c31461075a578063c05f486e1461077557600080fd5b806385535cc51161011e57806385535cc5146106435780638da5cb5b14610663578063902d55a514610678578063938e3d7b1461068e57806395183a08146106ae57806395d89b41146106c357600080fd5b80636c9c2faf146105af57806370a08231146105c4578063715018a6146105e45780637bffb4ce146105f95780638342083a1461060e57806383a9e0491461062457600080fd5b80631b57190e1161021457806349c806ef116101cd57806349c806ef146104da5780634d5093d0146104ed57806355f804b3146105035780635ce7af1f14610523578063611f3f101461055957806362dc6e21146105745780636352211e1461058f57600080fd5b80631b57190e1461044757806323b872dd1461045d5780632db115441461047d578063393ee79a146104905780633ccfd60b146104a557806342842e0e146104ba57600080fd5b8063095ea7b311610266578063095ea7b3146103915780630b8a7d8c146103b15780630f7309e8146103d257806310969523146103e7578063151bcdd314610407578063163e1e611461042757600080fd5b80627c7472146102ad57806301ffc9a7146102dc578063030e9345146102fc578063049c5c491461032057806306fdde0314610337578063081812fc14610359575b600080fd5b3480156102b957600080fd5b50600a546102c79060ff1681565b60405190151581526020015b60405180910390f35b3480156102e857600080fd5b506102c76102f73660046120fd565b610852565b34801561030857600080fd5b50610312600c5481565b6040519081526020016102d3565b34801561032c57600080fd5b506103356108a4565b005b34801561034357600080fd5b5061034c6108fb565b6040516102d39190612179565b34801561036557600080fd5b5061037961037436600461218c565b61098d565b6040516001600160a01b0390911681526020016102d3565b34801561039d57600080fd5b506103356103ac3660046121c1565b610a15565b3480156103bd57600080fd5b50600a546102c7906301000000900460ff1681565b3480156103de57600080fd5b5061034c610b26565b3480156103f357600080fd5b506103356104023660046121eb565b610bb4565b34801561041357600080fd5b5061033561042236600461218c565b610bef565b34801561043357600080fd5b506103356104423660046122a9565b610c23565b34801561045357600080fd5b5061031260065481565b34801561046957600080fd5b506103356104783660046122eb565b610d58565b61033561048b36600461218c565b610d89565b34801561049c57600080fd5b50610335610ea2565b3480156104b157600080fd5b50610335610ef2565b3480156104c657600080fd5b506103356104d53660046122eb565b610f67565b6103356104e8366004612327565b610f82565b3480156104f957600080fd5b50610312600b5481565b34801561050f57600080fd5b5061033561051e3660046121eb565b611147565b34801561052f57600080fd5b5061031261053e366004612373565b6001600160a01b03166000908152600d602052604090205490565b34801561056557600080fd5b5061031266f523226980800081565b34801561058057600080fd5b5061031266d529ae9e86000081565b34801561059b57600080fd5b506103796105aa36600461218c565b611182565b3480156105bb57600080fd5b50600354610312565b3480156105d057600080fd5b506103126105df366004612373565b61120e565b3480156105f057600080fd5b506103356112e0565b34801561060557600080fd5b5061033561131b565b34801561061a57600080fd5b506103126121fc81565b34801561063057600080fd5b50600a546102c790610100900460ff1681565b34801561064f57600080fd5b5061033561065e366004612373565b611367565b34801561066f57600080fd5b506103796113c4565b34801561068457600080fd5b506103126122b881565b34801561069a57600080fd5b506103356106a93660046121eb565b6113d3565b3480156106ba57600080fd5b50610312600581565b3480156106cf57600080fd5b5061034c61140e565b3480156106e457600080fd5b506103126106f3366004612373565b600d6020526000908152604090205481565b34801561071157600080fd5b5061033561141d565b34801561072657600080fd5b5061033561073536600461238e565b611460565b34801561074657600080fd5b506103356107553660046123e0565b611521565b34801561076657600080fd5b5061031266b1a2bc2ec5000081565b34801561078157600080fd5b5061031260bc81565b34801561079657600080fd5b5061034c6107a536600461218c565b611553565b3480156107b657600080fd5b50600a546102c79062010000900460ff1681565b6103356107d8366004612327565b6115f4565b3480156107e957600080fd5b5061034c6117ae565b3480156107fe57600080fd5b506102c761080d3660046124bc565b6117bd565b34801561081e57600080fd5b5061033561082d366004612373565b6117eb565b34801561083e57600080fd5b5061033561084d36600461218c565b611888565b60006001600160e01b031982166380ac58cd60e01b148061088357506001600160e01b03198216635b5e139f60e01b145b8061089e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b336108ad6113c4565b6001600160a01b0316146108dc5760405162461bcd60e51b81526004016108d3906124ef565b60405180910390fd5b600a805462ff0000198116620100009182900460ff1615909102179055565b60606001805461090a90612524565b80601f016020809104026020016040519081016040528092919081815260200182805461093690612524565b80156109835780601f1061095857610100808354040283529160200191610983565b820191906000526020600020905b81548152906001019060200180831161096657829003601f168201915b5050505050905090565b6000610998826118bc565b6109f95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108d3565b506000908152600460205260409020546001600160a01b031690565b6000610a2082611182565b9050806001600160a01b0316836001600160a01b03161415610a8e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108d3565b336001600160a01b0382161480610aaa5750610aaa81336117bd565b610b175760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016108d3565b610b218383611906565b505050565b60078054610b3390612524565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5f90612524565b8015610bac5780601f10610b8157610100808354040283529160200191610bac565b820191906000526020600020905b815481529060010190602001808311610b8f57829003601f168201915b505050505081565b33610bbd6113c4565b6001600160a01b031614610be35760405162461bcd60e51b81526004016108d3906124ef565b610b216007838361204e565b33610bf86113c4565b6001600160a01b031614610c1e5760405162461bcd60e51b81526004016108d3906124ef565b600c55565b33610c2c6113c4565b6001600160a01b031614610c525760405162461bcd60e51b81526004016108d3906124ef565b6003546122b8610c628383612575565b1115610c9b5760405162461bcd60e51b815260206004820152600860248201526713505617d352539560c21b60448201526064016108d3565b60065460bc90610cac908490612575565b1115610ce55760405162461bcd60e51b81526020600482015260086024820152674e4f5f474946545360c01b60448201526064016108d3565b60005b82811015610d525760068054906000610d008361258d565b9190505550610d40848483818110610d1a57610d1a6125a8565b9050602002016020810190610d2f9190612373565b83610d398161258d565b9450611974565b80610d4a8161258d565b915050610ce8565b50505050565b610d623382611992565b610d7e5760405162461bcd60e51b81526004016108d3906125be565b610b21838383611a5c565b600a5462010000900460ff16610dcf5760405162461bcd60e51b815260206004820152600b60248201526a14d0531157d0d313d4d15160aa1b60448201526064016108d3565b6005811115610e125760405162461bcd60e51b815260206004820152600f60248201526e08ab0868a8a88be9a929ca8be9a82b608b1b60448201526064016108d3565b34610e248266f523226980800061260f565b1115610e425760405162461bcd60e51b81526004016108d39061262e565b6003546121fc610e528383612575565b1115610e705760405162461bcd60e51b81526004016108d390612658565b60005b82811015610b2157610e903383610e898161258d565b9450611bb2565b80610e9a8161258d565b915050610e73565b33610eab6113c4565b6001600160a01b031614610ed15760405162461bcd60e51b81526004016108d3906124ef565b600a805463ff00000019811663010000009182900460ff1615909102179055565b33610efb6113c4565b6001600160a01b031614610f215760405162461bcd60e51b81526004016108d3906124ef565b600a546040516001600160a01b0364010000000090920491909116904780156108fc02916000818181858888f19350505050158015610f64573d6000803e3d6000fd5b50565b610b2183838360405180602001604052806000815250611521565b600a5460ff16610fc65760405162461bcd60e51b815260206004820152600f60248201526e14125392d4d0531157d0d313d4d151608a1b60448201526064016108d3565b336000908152600d6020526040902054600590610fe4908590612575565b11156110025760405162461bcd60e51b81526004016108d390612688565b346110148466b1a2bc2ec5000061260f565b11156110325760405162461bcd60e51b81526004016108d39061262e565b6003546121fc6110428583612575565b11156110605760405162461bcd60e51b81526004016108d390612658565b60003360405160200161107391906126ae565b6040516020818303038152906040528051906020012090506110cc84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611cda565b6110e85760405162461bcd60e51b81526004016108d3906126cb565b336000908152600d602052604081208054879290611107908490612575565b90915550600090505b8581101561113f5761112d33846111268161258d565b9550611bb2565b806111378161258d565b915050611110565b505050505050565b336111506113c4565b6001600160a01b0316146111765760405162461bcd60e51b81526004016108d3906124ef565b610b216009838361204e565b60008060038381548110611198576111986125a8565b6000918252602090912001546001600160a01b031690508061089e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108d3565b60006001600160a01b0382166112795760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108d3565b600354600090815b818110156112d7576003818154811061129c5761129c6125a8565b6000918252602090912001546001600160a01b03868116911614156112c7576112c48361258d565b92505b6112d08161258d565b9050611281565b50909392505050565b336112e96113c4565b6001600160a01b03161461130f5760405162461bcd60e51b81526004016108d3906124ef565b6113196000611cf0565b565b336113246113c4565b6001600160a01b03161461134a5760405162461bcd60e51b81526004016108d3906124ef565b600a805461ff001981166101009182900460ff1615909102179055565b336113706113c4565b6001600160a01b0316146113965760405162461bcd60e51b81526004016108d3906124ef565b600a80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6000546001600160a01b031690565b336113dc6113c4565b6001600160a01b0316146114025760405162461bcd60e51b81526004016108d3906124ef565b610b216008838361204e565b60606002805461090a90612524565b336114266113c4565b6001600160a01b03161461144c5760405162461bcd60e51b81526004016108d3906124ef565b600a805460ff19811660ff90911615179055565b6001600160a01b0382163314156114b55760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016108d3565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61152b3383611992565b6115475760405162461bcd60e51b81526004016108d3906125be565b610d5284848484611d40565b606061155e826118bc565b6115c25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108d3565b60096115cd83611d73565b6040516020016115de92919061270f565b6040516020818303038152906040529050919050565b600a54610100900460ff1661163c5760405162461bcd60e51b815260206004820152600e60248201526d14149154d0531157d0d313d4d15160921b60448201526064016108d3565b336000908152600d602052604090205460059061165a908590612575565b11156116785760405162461bcd60e51b81526004016108d390612688565b3461168a8466d529ae9e86000061260f565b11156116a85760405162461bcd60e51b81526004016108d39061262e565b6003546121fc6116b88583612575565b11156116d65760405162461bcd60e51b81526004016108d390612658565b6000336040516020016116e991906126ae565b60405160208183030381529060405280519060200120905061174284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150849050611cda565b61175e5760405162461bcd60e51b81526004016108d3906126cb565b336000908152600d60205260408120805487929061177d908490612575565b90915550600090505b8581101561113f5761179c33846111268161258d565b806117a68161258d565b915050611786565b60606008805461090a90612524565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336117f46113c4565b6001600160a01b03161461181a5760405162461bcd60e51b81526004016108d3906124ef565b6001600160a01b03811661187f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108d3565b610f6481611cf0565b336118916113c4565b6001600160a01b0316146118b75760405162461bcd60e51b81526004016108d3906124ef565b600b55565b6003546000908210801561089e575060006001600160a01b0316600383815481106118e9576118e96125a8565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061193b82611182565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61198e828260405180602001604052806000815250611e71565b5050565b600061199d826118bc565b6119fe5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108d3565b6000611a0983611182565b9050806001600160a01b0316846001600160a01b03161480611a445750836001600160a01b0316611a398461098d565b6001600160a01b0316145b80611a545750611a5481856117bd565b949350505050565b826001600160a01b0316611a6f82611182565b6001600160a01b031614611ad75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108d3565b6001600160a01b038216611b395760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108d3565b611b44600082611906565b8160038281548110611b5857611b586125a8565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6001600160a01b038216611c085760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108d3565b611c11816118bc565b15611c5e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108d3565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600082611ce78584611ea4565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611d4b848484611a5c565b611d5784848484611f50565b610d525760405162461bcd60e51b81526004016108d3906127b6565b606081611d975750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dc15780611dab8161258d565b9150611dba9050600a8361281e565b9150611d9b565b60008167ffffffffffffffff811115611ddc57611ddc6123ca565b6040519080825280601f01601f191660200182016040528015611e06576020820181803683370190505b5090505b8415611a5457611e1b600183612832565b9150611e28600a86612849565b611e33906030612575565b60f81b818381518110611e4857611e486125a8565b60200101906001600160f81b031916908160001a905350611e6a600a8661281e565b9450611e0a565b611e7b8383611bb2565b611e886000848484611f50565b610b215760405162461bcd60e51b81526004016108d3906127b6565b600081815b8451811015611f48576000858281518110611ec657611ec66125a8565b60200260200101519050808311611f08576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611f35565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611f408161258d565b915050611ea9565b509392505050565b60006001600160a01b0384163b1561204357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f9490339089908890889060040161285d565b6020604051808303816000875af1925050508015611fcf575060408051601f3d908101601f19168201909252611fcc9181019061289a565b60015b612029573d808015611ffd576040519150601f19603f3d011682016040523d82523d6000602084013e612002565b606091505b5080516120215760405162461bcd60e51b81526004016108d3906127b6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a54565b506001949350505050565b82805461205a90612524565b90600052602060002090601f01602090048101928261207c57600085556120c2565b82601f106120955782800160ff198235161785556120c2565b828001600101855582156120c2579182015b828111156120c25782358255916020019190600101906120a7565b506120ce9291506120d2565b5090565b5b808211156120ce57600081556001016120d3565b6001600160e01b031981168114610f6457600080fd5b60006020828403121561210f57600080fd5b813561211a816120e7565b9392505050565b60005b8381101561213c578181015183820152602001612124565b83811115610d525750506000910152565b60008151808452612165816020860160208601612121565b601f01601f19169290920160200192915050565b60208152600061211a602083018461214d565b60006020828403121561219e57600080fd5b5035919050565b80356001600160a01b03811681146121bc57600080fd5b919050565b600080604083850312156121d457600080fd5b6121dd836121a5565b946020939093013593505050565b600080602083850312156121fe57600080fd5b823567ffffffffffffffff8082111561221657600080fd5b818501915085601f83011261222a57600080fd5b81358181111561223957600080fd5b86602082850101111561224b57600080fd5b60209290920196919550909350505050565b60008083601f84011261226f57600080fd5b50813567ffffffffffffffff81111561228757600080fd5b6020830191508360208260051b85010111156122a257600080fd5b9250929050565b600080602083850312156122bc57600080fd5b823567ffffffffffffffff8111156122d357600080fd5b6122df8582860161225d565b90969095509350505050565b60008060006060848603121561230057600080fd5b612309846121a5565b9250612317602085016121a5565b9150604084013590509250925092565b60008060006040848603121561233c57600080fd5b83359250602084013567ffffffffffffffff81111561235a57600080fd5b6123668682870161225d565b9497909650939450505050565b60006020828403121561238557600080fd5b61211a826121a5565b600080604083850312156123a157600080fd5b6123aa836121a5565b9150602083013580151581146123bf57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156123f657600080fd5b6123ff856121a5565b935061240d602086016121a5565b925060408501359150606085013567ffffffffffffffff8082111561243157600080fd5b818701915087601f83011261244557600080fd5b813581811115612457576124576123ca565b604051601f8201601f19908116603f0116810190838211818310171561247f5761247f6123ca565b816040528281528a602084870101111561249857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156124cf57600080fd5b6124d8836121a5565b91506124e6602084016121a5565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061253857607f821691505b6020821081141561255957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156125885761258861255f565b500190565b60006000198214156125a1576125a161255f565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008160001904831182151516156126295761262961255f565b500290565b60208082526010908201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b604082015260600190565b6020808252601690820152754558434545445f4d41585f53414c455f535550504c5960501b604082015260600190565b6020808252600c908201526b4558434545445f414c4c4f4360a01b604082015260600190565b60609190911b6bffffffffffffffffffffffff1916815260140190565b6020808252600e908201526d24b73b30b634b210383937b7b31760911b604082015260600190565b60008151612705818560208601612121565b9290920192915050565b600080845481600182811c91508083168061272b57607f831692505b602080841082141561274b57634e487b7160e01b86526022600452602486fd5b81801561275f57600181146127705761279d565b60ff1986168952848901965061279d565b60008b81526020902060005b868110156127955781548b82015290850190830161277c565b505084890196505b5050505050506127ad81856126f3565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261282d5761282d612808565b500490565b6000828210156128445761284461255f565b500390565b60008261285857612858612808565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128909083018461214d565b9695505050505050565b6000602082840312156128ac57600080fd5b815161211a816120e756fea26469706673582212204b2c9817fc0ad71231468c981f15c3109cfa7ee5d8ad74e63334692fe7cccc3d64736f6c634300080a0033697066733a2f2f516d5a71556b715776514b4c7679456b766665755a45545a4a646e78486a64546a79534a32674a6a4363554a53472f

Deployed Bytecode

0x6080604052600436106102a85760003560e01c80636c9c2faf116101655780639bf80316116100cc578063c87b56dd11610085578063c87b56dd1461078a578063e081b781146107aa578063e3e1e8ef146107ca578063e8a3d485146107dd578063e985e9c5146107f2578063f2fde38b14610812578063fcb0cd171461083257600080fd5b80639bf80316146106d8578063a1ccfc3c14610705578063a22cb4651461071a578063b88d4fde1461073a578063b97f24c31461075a578063c05f486e1461077557600080fd5b806385535cc51161011e57806385535cc5146106435780638da5cb5b14610663578063902d55a514610678578063938e3d7b1461068e57806395183a08146106ae57806395d89b41146106c357600080fd5b80636c9c2faf146105af57806370a08231146105c4578063715018a6146105e45780637bffb4ce146105f95780638342083a1461060e57806383a9e0491461062457600080fd5b80631b57190e1161021457806349c806ef116101cd57806349c806ef146104da5780634d5093d0146104ed57806355f804b3146105035780635ce7af1f14610523578063611f3f101461055957806362dc6e21146105745780636352211e1461058f57600080fd5b80631b57190e1461044757806323b872dd1461045d5780632db115441461047d578063393ee79a146104905780633ccfd60b146104a557806342842e0e146104ba57600080fd5b8063095ea7b311610266578063095ea7b3146103915780630b8a7d8c146103b15780630f7309e8146103d257806310969523146103e7578063151bcdd314610407578063163e1e611461042757600080fd5b80627c7472146102ad57806301ffc9a7146102dc578063030e9345146102fc578063049c5c491461032057806306fdde0314610337578063081812fc14610359575b600080fd5b3480156102b957600080fd5b50600a546102c79060ff1681565b60405190151581526020015b60405180910390f35b3480156102e857600080fd5b506102c76102f73660046120fd565b610852565b34801561030857600080fd5b50610312600c5481565b6040519081526020016102d3565b34801561032c57600080fd5b506103356108a4565b005b34801561034357600080fd5b5061034c6108fb565b6040516102d39190612179565b34801561036557600080fd5b5061037961037436600461218c565b61098d565b6040516001600160a01b0390911681526020016102d3565b34801561039d57600080fd5b506103356103ac3660046121c1565b610a15565b3480156103bd57600080fd5b50600a546102c7906301000000900460ff1681565b3480156103de57600080fd5b5061034c610b26565b3480156103f357600080fd5b506103356104023660046121eb565b610bb4565b34801561041357600080fd5b5061033561042236600461218c565b610bef565b34801561043357600080fd5b506103356104423660046122a9565b610c23565b34801561045357600080fd5b5061031260065481565b34801561046957600080fd5b506103356104783660046122eb565b610d58565b61033561048b36600461218c565b610d89565b34801561049c57600080fd5b50610335610ea2565b3480156104b157600080fd5b50610335610ef2565b3480156104c657600080fd5b506103356104d53660046122eb565b610f67565b6103356104e8366004612327565b610f82565b3480156104f957600080fd5b50610312600b5481565b34801561050f57600080fd5b5061033561051e3660046121eb565b611147565b34801561052f57600080fd5b5061031261053e366004612373565b6001600160a01b03166000908152600d602052604090205490565b34801561056557600080fd5b5061031266f523226980800081565b34801561058057600080fd5b5061031266d529ae9e86000081565b34801561059b57600080fd5b506103796105aa36600461218c565b611182565b3480156105bb57600080fd5b50600354610312565b3480156105d057600080fd5b506103126105df366004612373565b61120e565b3480156105f057600080fd5b506103356112e0565b34801561060557600080fd5b5061033561131b565b34801561061a57600080fd5b506103126121fc81565b34801561063057600080fd5b50600a546102c790610100900460ff1681565b34801561064f57600080fd5b5061033561065e366004612373565b611367565b34801561066f57600080fd5b506103796113c4565b34801561068457600080fd5b506103126122b881565b34801561069a57600080fd5b506103356106a93660046121eb565b6113d3565b3480156106ba57600080fd5b50610312600581565b3480156106cf57600080fd5b5061034c61140e565b3480156106e457600080fd5b506103126106f3366004612373565b600d6020526000908152604090205481565b34801561071157600080fd5b5061033561141d565b34801561072657600080fd5b5061033561073536600461238e565b611460565b34801561074657600080fd5b506103356107553660046123e0565b611521565b34801561076657600080fd5b5061031266b1a2bc2ec5000081565b34801561078157600080fd5b5061031260bc81565b34801561079657600080fd5b5061034c6107a536600461218c565b611553565b3480156107b657600080fd5b50600a546102c79062010000900460ff1681565b6103356107d8366004612327565b6115f4565b3480156107e957600080fd5b5061034c6117ae565b3480156107fe57600080fd5b506102c761080d3660046124bc565b6117bd565b34801561081e57600080fd5b5061033561082d366004612373565b6117eb565b34801561083e57600080fd5b5061033561084d36600461218c565b611888565b60006001600160e01b031982166380ac58cd60e01b148061088357506001600160e01b03198216635b5e139f60e01b145b8061089e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b336108ad6113c4565b6001600160a01b0316146108dc5760405162461bcd60e51b81526004016108d3906124ef565b60405180910390fd5b600a805462ff0000198116620100009182900460ff1615909102179055565b60606001805461090a90612524565b80601f016020809104026020016040519081016040528092919081815260200182805461093690612524565b80156109835780601f1061095857610100808354040283529160200191610983565b820191906000526020600020905b81548152906001019060200180831161096657829003601f168201915b5050505050905090565b6000610998826118bc565b6109f95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108d3565b506000908152600460205260409020546001600160a01b031690565b6000610a2082611182565b9050806001600160a01b0316836001600160a01b03161415610a8e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108d3565b336001600160a01b0382161480610aaa5750610aaa81336117bd565b610b175760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016108d3565b610b218383611906565b505050565b60078054610b3390612524565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5f90612524565b8015610bac5780601f10610b8157610100808354040283529160200191610bac565b820191906000526020600020905b815481529060010190602001808311610b8f57829003601f168201915b505050505081565b33610bbd6113c4565b6001600160a01b031614610be35760405162461bcd60e51b81526004016108d3906124ef565b610b216007838361204e565b33610bf86113c4565b6001600160a01b031614610c1e5760405162461bcd60e51b81526004016108d3906124ef565b600c55565b33610c2c6113c4565b6001600160a01b031614610c525760405162461bcd60e51b81526004016108d3906124ef565b6003546122b8610c628383612575565b1115610c9b5760405162461bcd60e51b815260206004820152600860248201526713505617d352539560c21b60448201526064016108d3565b60065460bc90610cac908490612575565b1115610ce55760405162461bcd60e51b81526020600482015260086024820152674e4f5f474946545360c01b60448201526064016108d3565b60005b82811015610d525760068054906000610d008361258d565b9190505550610d40848483818110610d1a57610d1a6125a8565b9050602002016020810190610d2f9190612373565b83610d398161258d565b9450611974565b80610d4a8161258d565b915050610ce8565b50505050565b610d623382611992565b610d7e5760405162461bcd60e51b81526004016108d3906125be565b610b21838383611a5c565b600a5462010000900460ff16610dcf5760405162461bcd60e51b815260206004820152600b60248201526a14d0531157d0d313d4d15160aa1b60448201526064016108d3565b6005811115610e125760405162461bcd60e51b815260206004820152600f60248201526e08ab0868a8a88be9a929ca8be9a82b608b1b60448201526064016108d3565b34610e248266f523226980800061260f565b1115610e425760405162461bcd60e51b81526004016108d39061262e565b6003546121fc610e528383612575565b1115610e705760405162461bcd60e51b81526004016108d390612658565b60005b82811015610b2157610e903383610e898161258d565b9450611bb2565b80610e9a8161258d565b915050610e73565b33610eab6113c4565b6001600160a01b031614610ed15760405162461bcd60e51b81526004016108d3906124ef565b600a805463ff00000019811663010000009182900460ff1615909102179055565b33610efb6113c4565b6001600160a01b031614610f215760405162461bcd60e51b81526004016108d3906124ef565b600a546040516001600160a01b0364010000000090920491909116904780156108fc02916000818181858888f19350505050158015610f64573d6000803e3d6000fd5b50565b610b2183838360405180602001604052806000815250611521565b600a5460ff16610fc65760405162461bcd60e51b815260206004820152600f60248201526e14125392d4d0531157d0d313d4d151608a1b60448201526064016108d3565b336000908152600d6020526040902054600590610fe4908590612575565b11156110025760405162461bcd60e51b81526004016108d390612688565b346110148466b1a2bc2ec5000061260f565b11156110325760405162461bcd60e51b81526004016108d39061262e565b6003546121fc6110428583612575565b11156110605760405162461bcd60e51b81526004016108d390612658565b60003360405160200161107391906126ae565b6040516020818303038152906040528051906020012090506110cc84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611cda565b6110e85760405162461bcd60e51b81526004016108d3906126cb565b336000908152600d602052604081208054879290611107908490612575565b90915550600090505b8581101561113f5761112d33846111268161258d565b9550611bb2565b806111378161258d565b915050611110565b505050505050565b336111506113c4565b6001600160a01b0316146111765760405162461bcd60e51b81526004016108d3906124ef565b610b216009838361204e565b60008060038381548110611198576111986125a8565b6000918252602090912001546001600160a01b031690508061089e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108d3565b60006001600160a01b0382166112795760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108d3565b600354600090815b818110156112d7576003818154811061129c5761129c6125a8565b6000918252602090912001546001600160a01b03868116911614156112c7576112c48361258d565b92505b6112d08161258d565b9050611281565b50909392505050565b336112e96113c4565b6001600160a01b03161461130f5760405162461bcd60e51b81526004016108d3906124ef565b6113196000611cf0565b565b336113246113c4565b6001600160a01b03161461134a5760405162461bcd60e51b81526004016108d3906124ef565b600a805461ff001981166101009182900460ff1615909102179055565b336113706113c4565b6001600160a01b0316146113965760405162461bcd60e51b81526004016108d3906124ef565b600a80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6000546001600160a01b031690565b336113dc6113c4565b6001600160a01b0316146114025760405162461bcd60e51b81526004016108d3906124ef565b610b216008838361204e565b60606002805461090a90612524565b336114266113c4565b6001600160a01b03161461144c5760405162461bcd60e51b81526004016108d3906124ef565b600a805460ff19811660ff90911615179055565b6001600160a01b0382163314156114b55760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016108d3565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61152b3383611992565b6115475760405162461bcd60e51b81526004016108d3906125be565b610d5284848484611d40565b606061155e826118bc565b6115c25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108d3565b60096115cd83611d73565b6040516020016115de92919061270f565b6040516020818303038152906040529050919050565b600a54610100900460ff1661163c5760405162461bcd60e51b815260206004820152600e60248201526d14149154d0531157d0d313d4d15160921b60448201526064016108d3565b336000908152600d602052604090205460059061165a908590612575565b11156116785760405162461bcd60e51b81526004016108d390612688565b3461168a8466d529ae9e86000061260f565b11156116a85760405162461bcd60e51b81526004016108d39061262e565b6003546121fc6116b88583612575565b11156116d65760405162461bcd60e51b81526004016108d390612658565b6000336040516020016116e991906126ae565b60405160208183030381529060405280519060200120905061174284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150849050611cda565b61175e5760405162461bcd60e51b81526004016108d3906126cb565b336000908152600d60205260408120805487929061177d908490612575565b90915550600090505b8581101561113f5761179c33846111268161258d565b806117a68161258d565b915050611786565b60606008805461090a90612524565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336117f46113c4565b6001600160a01b03161461181a5760405162461bcd60e51b81526004016108d3906124ef565b6001600160a01b03811661187f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108d3565b610f6481611cf0565b336118916113c4565b6001600160a01b0316146118b75760405162461bcd60e51b81526004016108d3906124ef565b600b55565b6003546000908210801561089e575060006001600160a01b0316600383815481106118e9576118e96125a8565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061193b82611182565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61198e828260405180602001604052806000815250611e71565b5050565b600061199d826118bc565b6119fe5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108d3565b6000611a0983611182565b9050806001600160a01b0316846001600160a01b03161480611a445750836001600160a01b0316611a398461098d565b6001600160a01b0316145b80611a545750611a5481856117bd565b949350505050565b826001600160a01b0316611a6f82611182565b6001600160a01b031614611ad75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108d3565b6001600160a01b038216611b395760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108d3565b611b44600082611906565b8160038281548110611b5857611b586125a8565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6001600160a01b038216611c085760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108d3565b611c11816118bc565b15611c5e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108d3565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600082611ce78584611ea4565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611d4b848484611a5c565b611d5784848484611f50565b610d525760405162461bcd60e51b81526004016108d3906127b6565b606081611d975750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dc15780611dab8161258d565b9150611dba9050600a8361281e565b9150611d9b565b60008167ffffffffffffffff811115611ddc57611ddc6123ca565b6040519080825280601f01601f191660200182016040528015611e06576020820181803683370190505b5090505b8415611a5457611e1b600183612832565b9150611e28600a86612849565b611e33906030612575565b60f81b818381518110611e4857611e486125a8565b60200101906001600160f81b031916908160001a905350611e6a600a8661281e565b9450611e0a565b611e7b8383611bb2565b611e886000848484611f50565b610b215760405162461bcd60e51b81526004016108d3906127b6565b600081815b8451811015611f48576000858281518110611ec657611ec66125a8565b60200260200101519050808311611f08576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611f35565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611f408161258d565b915050611ea9565b509392505050565b60006001600160a01b0384163b1561204357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f9490339089908890889060040161285d565b6020604051808303816000875af1925050508015611fcf575060408051601f3d908101601f19168201909252611fcc9181019061289a565b60015b612029573d808015611ffd576040519150601f19603f3d011682016040523d82523d6000602084013e612002565b606091505b5080516120215760405162461bcd60e51b81526004016108d3906127b6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a54565b506001949350505050565b82805461205a90612524565b90600052602060002090601f01602090048101928261207c57600085556120c2565b82601f106120955782800160ff198235161785556120c2565b828001600101855582156120c2579182015b828111156120c25782358255916020019190600101906120a7565b506120ce9291506120d2565b5090565b5b808211156120ce57600081556001016120d3565b6001600160e01b031981168114610f6457600080fd5b60006020828403121561210f57600080fd5b813561211a816120e7565b9392505050565b60005b8381101561213c578181015183820152602001612124565b83811115610d525750506000910152565b60008151808452612165816020860160208601612121565b601f01601f19169290920160200192915050565b60208152600061211a602083018461214d565b60006020828403121561219e57600080fd5b5035919050565b80356001600160a01b03811681146121bc57600080fd5b919050565b600080604083850312156121d457600080fd5b6121dd836121a5565b946020939093013593505050565b600080602083850312156121fe57600080fd5b823567ffffffffffffffff8082111561221657600080fd5b818501915085601f83011261222a57600080fd5b81358181111561223957600080fd5b86602082850101111561224b57600080fd5b60209290920196919550909350505050565b60008083601f84011261226f57600080fd5b50813567ffffffffffffffff81111561228757600080fd5b6020830191508360208260051b85010111156122a257600080fd5b9250929050565b600080602083850312156122bc57600080fd5b823567ffffffffffffffff8111156122d357600080fd5b6122df8582860161225d565b90969095509350505050565b60008060006060848603121561230057600080fd5b612309846121a5565b9250612317602085016121a5565b9150604084013590509250925092565b60008060006040848603121561233c57600080fd5b83359250602084013567ffffffffffffffff81111561235a57600080fd5b6123668682870161225d565b9497909650939450505050565b60006020828403121561238557600080fd5b61211a826121a5565b600080604083850312156123a157600080fd5b6123aa836121a5565b9150602083013580151581146123bf57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156123f657600080fd5b6123ff856121a5565b935061240d602086016121a5565b925060408501359150606085013567ffffffffffffffff8082111561243157600080fd5b818701915087601f83011261244557600080fd5b813581811115612457576124576123ca565b604051601f8201601f19908116603f0116810190838211818310171561247f5761247f6123ca565b816040528281528a602084870101111561249857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156124cf57600080fd5b6124d8836121a5565b91506124e6602084016121a5565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061253857607f821691505b6020821081141561255957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156125885761258861255f565b500190565b60006000198214156125a1576125a161255f565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008160001904831182151516156126295761262961255f565b500290565b60208082526010908201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b604082015260600190565b6020808252601690820152754558434545445f4d41585f53414c455f535550504c5960501b604082015260600190565b6020808252600c908201526b4558434545445f414c4c4f4360a01b604082015260600190565b60609190911b6bffffffffffffffffffffffff1916815260140190565b6020808252600e908201526d24b73b30b634b210383937b7b31760911b604082015260600190565b60008151612705818560208601612121565b9290920192915050565b600080845481600182811c91508083168061272b57607f831692505b602080841082141561274b57634e487b7160e01b86526022600452602486fd5b81801561275f57600181146127705761279d565b60ff1986168952848901965061279d565b60008b81526020902060005b868110156127955781548b82015290850190830161277c565b505084890196505b5050505050506127ad81856126f3565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261282d5761282d612808565b500490565b6000828210156128445761284461255f565b500390565b60008261285857612858612808565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128909083018461214d565b9695505050505050565b6000602082840312156128ac57600080fd5b815161211a816120e756fea26469706673582212204b2c9817fc0ad71231468c981f15c3109cfa7ee5d8ad74e63334692fe7cccc3d64736f6c634300080a0033

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.