ETH Price: $3,672.40 (+2.62%)

Token

YOUR MOMS HOUSE (YMH)
 

Overview

Max Total Supply

2,723 YMH

Holders

1,769

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 YMH
0x954206379679474a383D9942938206a40868801E
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Ownership of this key grants you access to - An exclusive Discord community and private channels | Future NFT sets created by YMH | Early access to partner NFT projects and launches | Voting rights over Your Mom’s DAO. Your Mom’s House aims to be an insightful Web3 communi...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
YMH

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.8.9;

/* 
                                               `--:::-.                         
                                           `/sdmmddddmmms:`                     
                                         -smmh+--------+hNm+`                   
                                  `..---sNmo..://++++//-.-yMd-                  
                           `.:+shdmddddmNo../+++++++++++/:`+Mm.                 
                       .:ohdmmdyo/::-----`:++++++/-...:+++: yMy                 
                    ./ymmdo/-...::////////+++++++:``/- :+++`:MN///:`            
          `...`` `-ymmy/-.-:/++.:+++++++++++++++++/:.  -++/ `+ddddNm/           
      ./shddddddhhNd+..:/++++++/.:+++++++++++++++++++:-`-/.`.  .:.-mMo          
    .sNNy+::--:/oy/.-/++++++++++/.+++++++++++++++++++++/.` :. `.od-.dMs`        
   :mNs..://////:-:/++++++++++++++++++++++++++++++++++++/. .:-::ymd:.hMy`       
  -NN:`:+++++++++++++++++++++++++++-:+++++++++++++++++++++- odh+mmmd:`hMh`      
  dMo :++++/:/+++++++++++++++++++++/.:+++++++++++++++++++++- ::-ohmmd/`yMd`     
 .MM.`+++/`.- :+++++++++++++++++++++/.:++++++++-``./++++++++``dh/:ymmm+ oMm.    
 -MM .+++- +o -++++++++++++++++++++++//++++++++`   -++++++++/ /dy..smmmo +MN-   
 `MM.`++++:.`.:++++++++++++++++++++++++/-++/:--------/+++++++.`dmo:o/omms`/MN:  
  dMo :++++++++++++++++++++++++++++++++/`.--/+++++++/-./+++++- smmy+.ymmmo :MM` 
  -NM/ -/++++++++++++++++++++/-.-/+/:--:/+++++//++++++/`/++++: :dmmo+dy+.-odMh  
   -dMh/-...`:+++++++++++++++`    --:/++++:-``:/.++++++--++++: `-hdy+.:omNdo-   
    `:ydmNNm`.+++++++++++++++/-``-/++++++:  YMH ++++++//++++- h:..:omNdo-`     
       ``.dMo /+++++++++++++++-./++++++++/.`    -+++/+++++++/ /MMmmNdo.`        
          -MN-`/+++++++++++++/-++++++++++++/::..+++:.++++++/`.mM+::.`           
           oMm.`/++++++++++++++++++++++++/++++/`::--/+++++:`-mMo                
            oMm:`:+++++++++++++++++++++++:------://+++++/-`+NN/                 
             /mNo../+++++++++++++++++++++++///++++++++/-.:hNh-                  
              .sNm/.-/+++++++++++++++++++++++++++++/:..+dNh:`                   
                -hNd/.-/+++++++++++++++++++++++//-.-:smmy-                      
                  :ymms:---:////++++++++////:-.-:ohmmh+.                        
                    .+hmmhs+:--------------:+ydmmdo:.                           
                       .:+shmmmmdddhhdddmmmmhs+:.                               
                             `.--::::::--.`          
*/

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract YMH is ERC721, Ownable{
  using Strings for uint256;
  using Counters for Counters.Counter;
  Counters.Counter private _tokenIds;

  bytes32 private _merkleRoot;
  bytes32 private _merkleRootDoge;
  address private psa;

  uint public constant maxSupply = 10000;
  uint private constant presalePrice = 1 ether; 
  uint private constant startPriceDA = 1.8 ether; 
  uint private constant endPriceDA = 1.1 ether; 
  uint private constant reservedAmount = 50; 
  uint private constant maxMintsPerAddressPresale = 1;
  uint private constant maxMintsPerAddressSale = 10;
  uint public reservedMintedAlready;
  uint public dwc;

  uint public constant presaleStartDate = 1642885200; 
  uint public constant saleStartDate = 1642971600; 
  
  string private baseUri = "https://ymh.mypinata.cloud/ipfs/QmUKGx2maqiVxkBQMyYchCqxVXD4vLiystho4vp6wSdp4L/"; 
  string private baseExtension = ".json"; 
  
  mapping(address => uint) public mintedTokensByAddress;

  constructor() ERC721("YOUR MOMS HOUSE", "YMH") {} 

  modifier onlyEOA() {
    require(msg.sender == tx.origin, "Only EOA");
    _;
  }

  function calculateTokenPriceDA() public view returns(uint) {
    // 1 interval := 3h -> 10800s
    uint elapsedIntervalsDA = (block.timestamp - saleStartDate) / 10800; 
    if (elapsedIntervalsDA >= 7){
      return endPriceDA;
    }
    else {
      return startPriceDA - (0.1 ether * elapsedIntervalsDA);
    }
  }

  function isPresaleOpen() public view returns(bool) {
    if(block.timestamp >= presaleStartDate
    && block.timestamp <= saleStartDate){
      return true;
    }
    else{
      return false;
    }
  }

  function isSaleOpen() public view returns(bool) {
    if(block.timestamp >= saleStartDate 
    && block.timestamp <= saleStartDate + 1 days){ 
      return true;
    }
    else{
      return false;
    }
  }

  function mintSale(uint amount) external payable onlyEOA {
    require(isSaleOpen(), "Sale not open");
    require((amount > 0) && (amount <= maxMintsPerAddressSale), "Incorrect amount");
    require(totalSupply() + amount <= mintableSupply(), "Max Supply reached");
    require(mintedTokensByAddress[msg.sender] + amount <= maxMintsPerAddressSale, "Max per address");
    require(msg.value >= calculateTokenPriceDA() * amount , "Incorrect Price sent");
    mintedTokensByAddress[msg.sender] += amount;
    _mintToken(msg.sender, amount);
  }
  
  function mintReserved(address receiver, uint amount) external onlyOwner {
    require(totalSupply() + amount <= maxSupply, "Max Supply reached");
    require(reservedMintedAlready + amount <= reservedAmount, "Reserved Max reached");
    reservedMintedAlready += amount;
    _mintToken(receiver, amount);
  }

  function mintWhitelist(bytes32[] calldata proof) external payable onlyEOA {
    require(isPresaleOpen(), "Presale not open");
    require(mintedTokensByAddress[msg.sender] + 1 <= maxMintsPerAddressPresale, "Already minted");
    require(verifyWhitelist(proof, _merkleRoot), "Not whitelisted");
    require(totalSupply() + 1 <= mintableSupply(), "Max Supply reached");
    require(msg.value == presalePrice , "Incorrect price sent");
    mintedTokensByAddress[msg.sender] += 1;
    _mintToken(msg.sender, 1);
  }

  function _mintToken(address to, uint amount) private {
    uint id;
    for(uint i = 0; i < amount; i++){
      _tokenIds.increment();
      id = _tokenIds.current();
      _mint(to, id);
    }
  }

  function mintDogeWhitelist(bytes32[] calldata proof) external payable onlyEOA {
    require(isPresaleOpen(), "Presale not open");
    require(mintedTokensByAddress[msg.sender] + 1 <= maxMintsPerAddressPresale, "Already minted");
    require(verifyWhitelist(proof, _merkleRootDoge), "Not whitelisted");
    require(totalSupply() + 1 <= mintableSupply(), "Max Supply reached");
    require(msg.value == presalePrice, "Incorrect price sent");
    dwc++;
    mintedTokensByAddress[msg.sender] += 1;
    _mintToken(msg.sender, 1);
  }

  function mintableSupply() private view returns(uint) {
    return maxSupply - (reservedAmount - reservedMintedAlready);
  }

  function setBaseExtension(string memory newBaseExtension) external onlyOwner {
    baseExtension = newBaseExtension;
  }

  function setBaseUri(string memory newBaseUri) external onlyOwner {
    baseUri = newBaseUri;
  }

  function setDogeMerkleRoot(bytes32 root) external onlyOwner {
    _merkleRootDoge = root;
  }

  function setMerkleRoot(bytes32 root) external onlyOwner {
    _merkleRoot = root;
  }

  function setPSA(address newPSA) external onlyOwner {
    psa = newPSA;
  }

  function tokenURI(uint256 tokenId) public view override returns (string memory) {
    string memory _tokenURI = "Token with that ID does not exist.";
    if (_exists(tokenId)){
      _tokenURI = string(abi.encodePacked(baseUri, tokenId.toString(), baseExtension));
    }
    return _tokenURI;
  }
  
  function totalSupply() public view returns(uint){
    return _tokenIds.current();
  }

  function verifyWhitelist(bytes32[] memory _proof, bytes32 _roothash)   
    private view 
    returns (bool) {
      bytes32 _leaf = keccak256(abi.encodePacked(msg.sender));
      return MerkleProof.verify(_proof, _roothash, _leaf);
  }

  function walletOfOwner(address _owner) external view returns (uint256[] memory) {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
    uint256 currentTokenId = 1;
    uint256 ownedTokenIndex = 0;
    while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) {
      address currentTokenOwner = ownerOf(currentTokenId);
      if (currentTokenOwner == _owner) {
        ownedTokenIds[ownedTokenIndex] = currentTokenId;
        ownedTokenIndex++;
      }
      currentTokenId++;
    }
    return ownedTokenIds;
  }

  function withdrawBalance() external onlyOwner {
    (bool s,) = payable(psa).call{value: address(this).balance}("");
    require(s, "tx failed");
  }

}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

File 3 of 13 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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 5 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT

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) {
        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));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 6 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

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 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        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 11 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "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":[{"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":"calculateTokenPriceDA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dwc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintDogeWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedTokensByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStartDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMintedAlready","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"saleStartDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setDogeMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPSA","type":"address"}],"name":"setPSA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610100604052604f6080818152906200297160a03980516200002a91600d9160209091019062000149565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200005991600e9162000149565b503480156200006757600080fd5b50604080518082018252600f81526e594f5552204d4f4d5320484f55534560881b6020808301918252835180850190945260038452620b29a960eb1b908401528151919291620000ba9160009162000149565b508051620000d090600190602084019062000149565b505050620000ed620000e7620000f360201b60201c565b620000f7565b6200022c565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200015790620001ef565b90600052602060002090601f0160209004810192826200017b5760008555620001c6565b82601f106200019657805160ff1916838001178555620001c6565b82800160010185558215620001c6579182015b82811115620001c6578251825591602001919060010190620001a9565b50620001d4929150620001d8565b5090565b5b80821115620001d45760008155600101620001d9565b600181811c908216806200020457607f821691505b602082108114156200022657634e487b7160e01b600052602260045260246000fd5b50919050565b612735806200023c6000396000f3fe60806040526004361061021a5760003560e01c80637cb6475911610123578063b88d4fde116100ab578063da3ef23f1161006f578063da3ef23f146105df578063e985e9c5146105ff578063eb4f847b14610648578063f0c2d97f1461065d578063f2fde38b1461067d57600080fd5b8063b88d4fde14610546578063c87b56dd14610566578063cc51114914610586578063d53ad5dd146105b3578063d5abeb01146105c957600080fd5b80638da5cb5b116100f25780638da5cb5b146104be57806395c1f638146104dc57806395d89b41146104f1578063a0bcfc7f14610506578063a22cb4651461052657600080fd5b80637cb647591461044e5780637de55fe11461046e57806380a3a7831461048e5780638973123c146104a657600080fd5b806342842e0e116101a65780634875bccb116101755780634875bccb146103d15780635fd8c710146103e45780636352211e146103f957806370a0823114610419578063715018a61461043957600080fd5b806342842e0e1461035b578063436f3c171461037b578063438b63001461039157806344d84381146103be57600080fd5b806318160ddd116101ed57806318160ddd146102d05780631a081330146102f35780632069bbbb1461030857806323b872dd1461031b578063300e39c61461033b57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611fc4565b61069d565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106ef565b60405161024b9190612040565b34801561028257600080fd5b50610296610291366004612053565b610781565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506102ce6102c9366004612088565b61081b565b005b3480156102dc57600080fd5b506102e5610931565b60405190815260200161024b565b3480156102ff57600080fd5b5061023f610941565b6102ce6103163660046120b2565b610978565b34801561032757600080fd5b506102ce610336366004612127565b610b89565b34801561034757600080fd5b506102ce610356366004612163565b610bba565b34801561036757600080fd5b506102ce610376366004612127565b610c06565b34801561038757600080fd5b506102e5600c5481565b34801561039d57600080fd5b506103b16103ac366004612163565b610c21565b60405161024b919061217e565b6102ce6103cc3660046120b2565b610d02565b6102ce6103df366004612053565b610ee9565b3480156103f057600080fd5b506102ce6110be565b34801561040557600080fd5b50610296610414366004612053565b611177565b34801561042557600080fd5b506102e5610434366004612163565b6111ee565b34801561044557600080fd5b506102ce611275565b34801561045a57600080fd5b506102ce610469366004612053565b6112ab565b34801561047a57600080fd5b506102ce610489366004612088565b6112da565b34801561049a57600080fd5b506102e56361ec705081565b3480156104b257600080fd5b506102e56361edc1d081565b3480156104ca57600080fd5b506006546001600160a01b0316610296565b3480156104e857600080fd5b506102e56113af565b3480156104fd57600080fd5b50610269611414565b34801561051257600080fd5b506102ce61052136600461224e565b611423565b34801561053257600080fd5b506102ce610541366004612297565b611460565b34801561055257600080fd5b506102ce6105613660046122d3565b611525565b34801561057257600080fd5b50610269610581366004612053565b61155d565b34801561059257600080fd5b506102e56105a1366004612163565b600f6020526000908152604090205481565b3480156105bf57600080fd5b506102e5600b5481565b3480156105d557600080fd5b506102e561271081565b3480156105eb57600080fd5b506102ce6105fa36600461224e565b6115d0565b34801561060b57600080fd5b5061023f61061a36600461234f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065457600080fd5b5061023f61160d565b34801561066957600080fd5b506102ce610678366004612053565b61162f565b34801561068957600080fd5b506102ce610698366004612163565b61165e565b60006001600160e01b031982166380ac58cd60e01b14806106ce57506001600160e01b03198216635b5e139f60e01b145b806106e957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106fe90612382565b80601f016020809104026020016040519081016040528092919081815260200182805461072a90612382565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107ff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061082682611177565b9050806001600160a01b0316836001600160a01b031614156108945760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f6565b336001600160a01b03821614806108b057506108b0813361061a565b6109225760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f6565b61092c83836116f6565b505050565b600061093c60075490565b905090565b60006361edc1d0421015801561096757506109636361edc1d0620151806123d3565b4211155b156109725750600190565b50600090565b3332146109975760405162461bcd60e51b81526004016107f6906123eb565b61099f61160d565b6109de5760405162461bcd60e51b815260206004820152601060248201526f283932b9b0b632903737ba1037b832b760811b60448201526064016107f6565b336000908152600f60205260409020546001906109fb90826123d3565b1115610a3a5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016107f6565b610a7a8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060095491506117649050565b610ab85760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b60448201526064016107f6565b610ac06117b2565b610ac8610931565b610ad39060016123d3565b1115610af15760405162461bcd60e51b81526004016107f69061240d565b670de0b6b3a76400003414610b3f5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081c1c9a58d9481cd95b9d60621b60448201526064016107f6565b600c8054906000610b4f83612439565b9091555050336000908152600f60205260408120805460019290610b749084906123d3565b90915550610b8590503360016117cf565b5050565b610b93338261180a565b610baf5760405162461bcd60e51b81526004016107f690612454565b61092c8383836118fd565b6006546001600160a01b03163314610be45760405162461bcd60e51b81526004016107f6906124a5565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b61092c83838360405180602001604052806000815250611525565b60606000610c2e836111ee565b905060008167ffffffffffffffff811115610c4b57610c4b6121c2565b604051908082528060200260200182016040528015610c74578160200160208202803683370190505b509050600160005b8381108015610c8d57506127108211155b15610cf8576000610c9d83611177565b9050866001600160a01b0316816001600160a01b03161415610ce55782848381518110610ccc57610ccc6124da565b602090810291909101015281610ce181612439565b9250505b82610cef81612439565b93505050610c7c565b5090949350505050565b333214610d215760405162461bcd60e51b81526004016107f6906123eb565b610d2961160d565b610d685760405162461bcd60e51b815260206004820152601060248201526f283932b9b0b632903737ba1037b832b760811b60448201526064016107f6565b336000908152600f6020526040902054600190610d8590826123d3565b1115610dc45760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016107f6565b610e048282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060085491506117649050565b610e425760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b60448201526064016107f6565b610e4a6117b2565b610e52610931565b610e5d9060016123d3565b1115610e7b5760405162461bcd60e51b81526004016107f69061240d565b670de0b6b3a76400003414610ec95760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081c1c9a58d9481cd95b9d60621b60448201526064016107f6565b336000908152600f60205260408120805460019290610b749084906123d3565b333214610f085760405162461bcd60e51b81526004016107f6906123eb565b610f10610941565b610f4c5760405162461bcd60e51b815260206004820152600d60248201526c29b0b632903737ba1037b832b760991b60448201526064016107f6565b600081118015610f5d5750600a8111155b610f9c5760405162461bcd60e51b815260206004820152601060248201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b60448201526064016107f6565b610fa46117b2565b81610fad610931565b610fb791906123d3565b1115610fd55760405162461bcd60e51b81526004016107f69061240d565b336000908152600f6020526040902054600a90610ff39083906123d3565b11156110335760405162461bcd60e51b815260206004820152600f60248201526e4d617820706572206164647265737360881b60448201526064016107f6565b8061103c6113af565b61104691906124f0565b34101561108c5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08141c9a58d9481cd95b9d60621b60448201526064016107f6565b336000908152600f6020526040812080548392906110ab9084906123d3565b909155506110bb905033826117cf565b50565b6006546001600160a01b031633146110e85760405162461bcd60e51b81526004016107f6906124a5565b600a546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611135576040519150601f19603f3d011682016040523d82523d6000602084013e61113a565b606091505b50509050806110bb5760405162461bcd60e51b81526020600482015260096024820152681d1e0819985a5b195960ba1b60448201526064016107f6565b6000818152600260205260408120546001600160a01b0316806106e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f6565b60006001600160a01b0382166112595760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f6565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461129f5760405162461bcd60e51b81526004016107f6906124a5565b6112a96000611a9d565b565b6006546001600160a01b031633146112d55760405162461bcd60e51b81526004016107f6906124a5565b600855565b6006546001600160a01b031633146113045760405162461bcd60e51b81526004016107f6906124a5565b61271081611310610931565b61131a91906123d3565b11156113385760405162461bcd60e51b81526004016107f69061240d565b603281600b5461134891906123d3565b111561138d5760405162461bcd60e51b815260206004820152601460248201527314995cd95c9d99590813585e081c995858da195960621b60448201526064016107f6565b80600b600082825461139f91906123d3565b90915550610b85905082826117cf565b600080612a306113c36361edc1d04261250f565b6113cd919061253c565b9050600781106113e657670f43fc2c04ee000091505090565b6113f88167016345785d8a00006124f0565b61140a906718fae27693b4000061250f565b91505090565b5090565b6060600180546106fe90612382565b6006546001600160a01b0316331461144d5760405162461bcd60e51b81526004016107f6906124a5565b8051610b8590600d906020840190611f1e565b6001600160a01b0382163314156114b95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f6565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61152f338361180a565b61154b5760405162461bcd60e51b81526004016107f690612454565b61155784848484611aef565b50505050565b606060006040518060600160405280602281526020016126de602291396000848152600260205260409020549091506001600160a01b0316156106e957600d6115a584611b22565b600e6040516020016115b9939291906125ea565b604051602081830303815290604052905092915050565b6006546001600160a01b031633146115fa5760405162461bcd60e51b81526004016107f6906124a5565b8051610b8590600e906020840190611f1e565b60006361ec7050421015801561096757506361edc1d042116109725750600190565b6006546001600160a01b031633146116595760405162461bcd60e51b81526004016107f6906124a5565b600955565b6006546001600160a01b031633146116885760405162461bcd60e51b81526004016107f6906124a5565b6001600160a01b0381166116ed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f6565b6110bb81611a9d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061172b82611177565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040516bffffffffffffffffffffffff193360601b16602082015260009081906034016040516020818303038152906040528051906020012090506117aa848483611c20565b949350505050565b6000600b5460326117c3919061250f565b61093c9061271061250f565b6000805b82811015611557576117e9600780546001019055565b60075491506117f88483611ccf565b8061180281612439565b9150506117d3565b6000818152600260205260408120546001600160a01b03166118835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f6565b600061188e83611177565b9050806001600160a01b0316846001600160a01b031614806118c95750836001600160a01b03166118be84610781565b6001600160a01b0316145b806117aa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166117aa565b826001600160a01b031661191082611177565b6001600160a01b0316146119785760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107f6565b6001600160a01b0382166119da5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f6565b6119e56000826116f6565b6001600160a01b0383166000908152600360205260408120805460019290611a0e90849061250f565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a3c9084906123d3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611afa8484846118fd565b611b0684848484611e11565b6115575760405162461bcd60e51b81526004016107f69061261d565b606081611b465750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b705780611b5a81612439565b9150611b699050600a8361253c565b9150611b4a565b60008167ffffffffffffffff811115611b8b57611b8b6121c2565b6040519080825280601f01601f191660200182016040528015611bb5576020820181803683370190505b5090505b84156117aa57611bca60018361250f565b9150611bd7600a8661266f565b611be29060306123d3565b60f81b818381518110611bf757611bf76124da565b60200101906001600160f81b031916908160001a905350611c19600a8661253c565b9450611bb9565b600081815b8551811015611cc4576000868281518110611c4257611c426124da565b60200260200101519050808311611c84576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611cb1565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611cbc81612439565b915050611c25565b509092149392505050565b6001600160a01b038216611d255760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f6565b6000818152600260205260409020546001600160a01b031615611d8a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f6565b6001600160a01b0382166000908152600360205260408120805460019290611db39084906123d3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611f1357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e55903390899088908890600401612683565b602060405180830381600087803b158015611e6f57600080fd5b505af1925050508015611e9f575060408051601f3d908101601f19168201909252611e9c918101906126c0565b60015b611ef9573d808015611ecd576040519150601f19603f3d011682016040523d82523d6000602084013e611ed2565b606091505b508051611ef15760405162461bcd60e51b81526004016107f69061261d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117aa565b506001949350505050565b828054611f2a90612382565b90600052602060002090601f016020900481019282611f4c5760008555611f92565b82601f10611f6557805160ff1916838001178555611f92565b82800160010185558215611f92579182015b82811115611f92578251825591602001919060010190611f77565b506114109291505b808211156114105760008155600101611f9a565b6001600160e01b0319811681146110bb57600080fd5b600060208284031215611fd657600080fd5b8135611fe181611fae565b9392505050565b60005b83811015612003578181015183820152602001611feb565b838111156115575750506000910152565b6000815180845261202c816020860160208601611fe8565b601f01601f19169290920160200192915050565b602081526000611fe16020830184612014565b60006020828403121561206557600080fd5b5035919050565b80356001600160a01b038116811461208357600080fd5b919050565b6000806040838503121561209b57600080fd5b6120a48361206c565b946020939093013593505050565b600080602083850312156120c557600080fd5b823567ffffffffffffffff808211156120dd57600080fd5b818501915085601f8301126120f157600080fd5b81358181111561210057600080fd5b8660208260051b850101111561211557600080fd5b60209290920196919550909350505050565b60008060006060848603121561213c57600080fd5b6121458461206c565b92506121536020850161206c565b9150604084013590509250925092565b60006020828403121561217557600080fd5b611fe18261206c565b6020808252825182820181905260009190848201906040850190845b818110156121b65783518352928401929184019160010161219a565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156121f3576121f36121c2565b604051601f8501601f19908116603f0116810190828211818310171561221b5761221b6121c2565b8160405280935085815286868601111561223457600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561226057600080fd5b813567ffffffffffffffff81111561227757600080fd5b8201601f8101841361228857600080fd5b6117aa848235602084016121d8565b600080604083850312156122aa57600080fd5b6122b38361206c565b9150602083013580151581146122c857600080fd5b809150509250929050565b600080600080608085870312156122e957600080fd5b6122f28561206c565b93506123006020860161206c565b925060408501359150606085013567ffffffffffffffff81111561232357600080fd5b8501601f8101871361233457600080fd5b612343878235602084016121d8565b91505092959194509250565b6000806040838503121561236257600080fd5b61236b8361206c565b91506123796020840161206c565b90509250929050565b600181811c9082168061239657607f821691505b602082108114156123b757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156123e6576123e66123bd565b500190565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b60208082526012908201527113585e0814dd5c1c1b1e481c995858da195960721b604082015260600190565b600060001982141561244d5761244d6123bd565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600081600019048311821515161561250a5761250a6123bd565b500290565b600082821015612521576125216123bd565b500390565b634e487b7160e01b600052601260045260246000fd5b60008261254b5761254b612526565b500490565b8054600090600181811c908083168061256a57607f831692505b602080841082141561258c57634e487b7160e01b600052602260045260246000fd5b8180156125a057600181146125b1576125de565b60ff198616895284890196506125de565b60008881526020902060005b868110156125d65781548b8201529085019083016125bd565b505084890196505b50505050505092915050565b60006125f68286612550565b8451612606818360208901611fe8565b61261281830186612550565b979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261267e5761267e612526565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126b690830184612014565b9695505050505050565b6000602082840312156126d257600080fd5b8151611fe181611fae56fe546f6b656e2077697468207468617420494420646f6573206e6f742065786973742ea26469706673582212202628a3694c07a649d411988cb2d8d098ad8032e409c0ef3d7fe3e82742d9153064736f6c6343000809003368747470733a2f2f796d682e6d7970696e6174612e636c6f75642f697066732f516d554b4778326d61716956786b42514d7959636843717856584434764c69797374686f3476703677536470344c2f

Deployed Bytecode

0x60806040526004361061021a5760003560e01c80637cb6475911610123578063b88d4fde116100ab578063da3ef23f1161006f578063da3ef23f146105df578063e985e9c5146105ff578063eb4f847b14610648578063f0c2d97f1461065d578063f2fde38b1461067d57600080fd5b8063b88d4fde14610546578063c87b56dd14610566578063cc51114914610586578063d53ad5dd146105b3578063d5abeb01146105c957600080fd5b80638da5cb5b116100f25780638da5cb5b146104be57806395c1f638146104dc57806395d89b41146104f1578063a0bcfc7f14610506578063a22cb4651461052657600080fd5b80637cb647591461044e5780637de55fe11461046e57806380a3a7831461048e5780638973123c146104a657600080fd5b806342842e0e116101a65780634875bccb116101755780634875bccb146103d15780635fd8c710146103e45780636352211e146103f957806370a0823114610419578063715018a61461043957600080fd5b806342842e0e1461035b578063436f3c171461037b578063438b63001461039157806344d84381146103be57600080fd5b806318160ddd116101ed57806318160ddd146102d05780631a081330146102f35780632069bbbb1461030857806323b872dd1461031b578063300e39c61461033b57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611fc4565b61069d565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106ef565b60405161024b9190612040565b34801561028257600080fd5b50610296610291366004612053565b610781565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506102ce6102c9366004612088565b61081b565b005b3480156102dc57600080fd5b506102e5610931565b60405190815260200161024b565b3480156102ff57600080fd5b5061023f610941565b6102ce6103163660046120b2565b610978565b34801561032757600080fd5b506102ce610336366004612127565b610b89565b34801561034757600080fd5b506102ce610356366004612163565b610bba565b34801561036757600080fd5b506102ce610376366004612127565b610c06565b34801561038757600080fd5b506102e5600c5481565b34801561039d57600080fd5b506103b16103ac366004612163565b610c21565b60405161024b919061217e565b6102ce6103cc3660046120b2565b610d02565b6102ce6103df366004612053565b610ee9565b3480156103f057600080fd5b506102ce6110be565b34801561040557600080fd5b50610296610414366004612053565b611177565b34801561042557600080fd5b506102e5610434366004612163565b6111ee565b34801561044557600080fd5b506102ce611275565b34801561045a57600080fd5b506102ce610469366004612053565b6112ab565b34801561047a57600080fd5b506102ce610489366004612088565b6112da565b34801561049a57600080fd5b506102e56361ec705081565b3480156104b257600080fd5b506102e56361edc1d081565b3480156104ca57600080fd5b506006546001600160a01b0316610296565b3480156104e857600080fd5b506102e56113af565b3480156104fd57600080fd5b50610269611414565b34801561051257600080fd5b506102ce61052136600461224e565b611423565b34801561053257600080fd5b506102ce610541366004612297565b611460565b34801561055257600080fd5b506102ce6105613660046122d3565b611525565b34801561057257600080fd5b50610269610581366004612053565b61155d565b34801561059257600080fd5b506102e56105a1366004612163565b600f6020526000908152604090205481565b3480156105bf57600080fd5b506102e5600b5481565b3480156105d557600080fd5b506102e561271081565b3480156105eb57600080fd5b506102ce6105fa36600461224e565b6115d0565b34801561060b57600080fd5b5061023f61061a36600461234f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065457600080fd5b5061023f61160d565b34801561066957600080fd5b506102ce610678366004612053565b61162f565b34801561068957600080fd5b506102ce610698366004612163565b61165e565b60006001600160e01b031982166380ac58cd60e01b14806106ce57506001600160e01b03198216635b5e139f60e01b145b806106e957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106fe90612382565b80601f016020809104026020016040519081016040528092919081815260200182805461072a90612382565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107ff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061082682611177565b9050806001600160a01b0316836001600160a01b031614156108945760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f6565b336001600160a01b03821614806108b057506108b0813361061a565b6109225760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f6565b61092c83836116f6565b505050565b600061093c60075490565b905090565b60006361edc1d0421015801561096757506109636361edc1d0620151806123d3565b4211155b156109725750600190565b50600090565b3332146109975760405162461bcd60e51b81526004016107f6906123eb565b61099f61160d565b6109de5760405162461bcd60e51b815260206004820152601060248201526f283932b9b0b632903737ba1037b832b760811b60448201526064016107f6565b336000908152600f60205260409020546001906109fb90826123d3565b1115610a3a5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016107f6565b610a7a8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060095491506117649050565b610ab85760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b60448201526064016107f6565b610ac06117b2565b610ac8610931565b610ad39060016123d3565b1115610af15760405162461bcd60e51b81526004016107f69061240d565b670de0b6b3a76400003414610b3f5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081c1c9a58d9481cd95b9d60621b60448201526064016107f6565b600c8054906000610b4f83612439565b9091555050336000908152600f60205260408120805460019290610b749084906123d3565b90915550610b8590503360016117cf565b5050565b610b93338261180a565b610baf5760405162461bcd60e51b81526004016107f690612454565b61092c8383836118fd565b6006546001600160a01b03163314610be45760405162461bcd60e51b81526004016107f6906124a5565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b61092c83838360405180602001604052806000815250611525565b60606000610c2e836111ee565b905060008167ffffffffffffffff811115610c4b57610c4b6121c2565b604051908082528060200260200182016040528015610c74578160200160208202803683370190505b509050600160005b8381108015610c8d57506127108211155b15610cf8576000610c9d83611177565b9050866001600160a01b0316816001600160a01b03161415610ce55782848381518110610ccc57610ccc6124da565b602090810291909101015281610ce181612439565b9250505b82610cef81612439565b93505050610c7c565b5090949350505050565b333214610d215760405162461bcd60e51b81526004016107f6906123eb565b610d2961160d565b610d685760405162461bcd60e51b815260206004820152601060248201526f283932b9b0b632903737ba1037b832b760811b60448201526064016107f6565b336000908152600f6020526040902054600190610d8590826123d3565b1115610dc45760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016107f6565b610e048282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060085491506117649050565b610e425760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b60448201526064016107f6565b610e4a6117b2565b610e52610931565b610e5d9060016123d3565b1115610e7b5760405162461bcd60e51b81526004016107f69061240d565b670de0b6b3a76400003414610ec95760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081c1c9a58d9481cd95b9d60621b60448201526064016107f6565b336000908152600f60205260408120805460019290610b749084906123d3565b333214610f085760405162461bcd60e51b81526004016107f6906123eb565b610f10610941565b610f4c5760405162461bcd60e51b815260206004820152600d60248201526c29b0b632903737ba1037b832b760991b60448201526064016107f6565b600081118015610f5d5750600a8111155b610f9c5760405162461bcd60e51b815260206004820152601060248201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b60448201526064016107f6565b610fa46117b2565b81610fad610931565b610fb791906123d3565b1115610fd55760405162461bcd60e51b81526004016107f69061240d565b336000908152600f6020526040902054600a90610ff39083906123d3565b11156110335760405162461bcd60e51b815260206004820152600f60248201526e4d617820706572206164647265737360881b60448201526064016107f6565b8061103c6113af565b61104691906124f0565b34101561108c5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08141c9a58d9481cd95b9d60621b60448201526064016107f6565b336000908152600f6020526040812080548392906110ab9084906123d3565b909155506110bb905033826117cf565b50565b6006546001600160a01b031633146110e85760405162461bcd60e51b81526004016107f6906124a5565b600a546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611135576040519150601f19603f3d011682016040523d82523d6000602084013e61113a565b606091505b50509050806110bb5760405162461bcd60e51b81526020600482015260096024820152681d1e0819985a5b195960ba1b60448201526064016107f6565b6000818152600260205260408120546001600160a01b0316806106e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f6565b60006001600160a01b0382166112595760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f6565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461129f5760405162461bcd60e51b81526004016107f6906124a5565b6112a96000611a9d565b565b6006546001600160a01b031633146112d55760405162461bcd60e51b81526004016107f6906124a5565b600855565b6006546001600160a01b031633146113045760405162461bcd60e51b81526004016107f6906124a5565b61271081611310610931565b61131a91906123d3565b11156113385760405162461bcd60e51b81526004016107f69061240d565b603281600b5461134891906123d3565b111561138d5760405162461bcd60e51b815260206004820152601460248201527314995cd95c9d99590813585e081c995858da195960621b60448201526064016107f6565b80600b600082825461139f91906123d3565b90915550610b85905082826117cf565b600080612a306113c36361edc1d04261250f565b6113cd919061253c565b9050600781106113e657670f43fc2c04ee000091505090565b6113f88167016345785d8a00006124f0565b61140a906718fae27693b4000061250f565b91505090565b5090565b6060600180546106fe90612382565b6006546001600160a01b0316331461144d5760405162461bcd60e51b81526004016107f6906124a5565b8051610b8590600d906020840190611f1e565b6001600160a01b0382163314156114b95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f6565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61152f338361180a565b61154b5760405162461bcd60e51b81526004016107f690612454565b61155784848484611aef565b50505050565b606060006040518060600160405280602281526020016126de602291396000848152600260205260409020549091506001600160a01b0316156106e957600d6115a584611b22565b600e6040516020016115b9939291906125ea565b604051602081830303815290604052905092915050565b6006546001600160a01b031633146115fa5760405162461bcd60e51b81526004016107f6906124a5565b8051610b8590600e906020840190611f1e565b60006361ec7050421015801561096757506361edc1d042116109725750600190565b6006546001600160a01b031633146116595760405162461bcd60e51b81526004016107f6906124a5565b600955565b6006546001600160a01b031633146116885760405162461bcd60e51b81526004016107f6906124a5565b6001600160a01b0381166116ed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f6565b6110bb81611a9d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061172b82611177565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040516bffffffffffffffffffffffff193360601b16602082015260009081906034016040516020818303038152906040528051906020012090506117aa848483611c20565b949350505050565b6000600b5460326117c3919061250f565b61093c9061271061250f565b6000805b82811015611557576117e9600780546001019055565b60075491506117f88483611ccf565b8061180281612439565b9150506117d3565b6000818152600260205260408120546001600160a01b03166118835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f6565b600061188e83611177565b9050806001600160a01b0316846001600160a01b031614806118c95750836001600160a01b03166118be84610781565b6001600160a01b0316145b806117aa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166117aa565b826001600160a01b031661191082611177565b6001600160a01b0316146119785760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107f6565b6001600160a01b0382166119da5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f6565b6119e56000826116f6565b6001600160a01b0383166000908152600360205260408120805460019290611a0e90849061250f565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a3c9084906123d3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611afa8484846118fd565b611b0684848484611e11565b6115575760405162461bcd60e51b81526004016107f69061261d565b606081611b465750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b705780611b5a81612439565b9150611b699050600a8361253c565b9150611b4a565b60008167ffffffffffffffff811115611b8b57611b8b6121c2565b6040519080825280601f01601f191660200182016040528015611bb5576020820181803683370190505b5090505b84156117aa57611bca60018361250f565b9150611bd7600a8661266f565b611be29060306123d3565b60f81b818381518110611bf757611bf76124da565b60200101906001600160f81b031916908160001a905350611c19600a8661253c565b9450611bb9565b600081815b8551811015611cc4576000868281518110611c4257611c426124da565b60200260200101519050808311611c84576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611cb1565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611cbc81612439565b915050611c25565b509092149392505050565b6001600160a01b038216611d255760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f6565b6000818152600260205260409020546001600160a01b031615611d8a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f6565b6001600160a01b0382166000908152600360205260408120805460019290611db39084906123d3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611f1357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e55903390899088908890600401612683565b602060405180830381600087803b158015611e6f57600080fd5b505af1925050508015611e9f575060408051601f3d908101601f19168201909252611e9c918101906126c0565b60015b611ef9573d808015611ecd576040519150601f19603f3d011682016040523d82523d6000602084013e611ed2565b606091505b508051611ef15760405162461bcd60e51b81526004016107f69061261d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117aa565b506001949350505050565b828054611f2a90612382565b90600052602060002090601f016020900481019282611f4c5760008555611f92565b82601f10611f6557805160ff1916838001178555611f92565b82800160010185558215611f92579182015b82811115611f92578251825591602001919060010190611f77565b506114109291505b808211156114105760008155600101611f9a565b6001600160e01b0319811681146110bb57600080fd5b600060208284031215611fd657600080fd5b8135611fe181611fae565b9392505050565b60005b83811015612003578181015183820152602001611feb565b838111156115575750506000910152565b6000815180845261202c816020860160208601611fe8565b601f01601f19169290920160200192915050565b602081526000611fe16020830184612014565b60006020828403121561206557600080fd5b5035919050565b80356001600160a01b038116811461208357600080fd5b919050565b6000806040838503121561209b57600080fd5b6120a48361206c565b946020939093013593505050565b600080602083850312156120c557600080fd5b823567ffffffffffffffff808211156120dd57600080fd5b818501915085601f8301126120f157600080fd5b81358181111561210057600080fd5b8660208260051b850101111561211557600080fd5b60209290920196919550909350505050565b60008060006060848603121561213c57600080fd5b6121458461206c565b92506121536020850161206c565b9150604084013590509250925092565b60006020828403121561217557600080fd5b611fe18261206c565b6020808252825182820181905260009190848201906040850190845b818110156121b65783518352928401929184019160010161219a565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156121f3576121f36121c2565b604051601f8501601f19908116603f0116810190828211818310171561221b5761221b6121c2565b8160405280935085815286868601111561223457600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561226057600080fd5b813567ffffffffffffffff81111561227757600080fd5b8201601f8101841361228857600080fd5b6117aa848235602084016121d8565b600080604083850312156122aa57600080fd5b6122b38361206c565b9150602083013580151581146122c857600080fd5b809150509250929050565b600080600080608085870312156122e957600080fd5b6122f28561206c565b93506123006020860161206c565b925060408501359150606085013567ffffffffffffffff81111561232357600080fd5b8501601f8101871361233457600080fd5b612343878235602084016121d8565b91505092959194509250565b6000806040838503121561236257600080fd5b61236b8361206c565b91506123796020840161206c565b90509250929050565b600181811c9082168061239657607f821691505b602082108114156123b757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156123e6576123e66123bd565b500190565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b60208082526012908201527113585e0814dd5c1c1b1e481c995858da195960721b604082015260600190565b600060001982141561244d5761244d6123bd565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600081600019048311821515161561250a5761250a6123bd565b500290565b600082821015612521576125216123bd565b500390565b634e487b7160e01b600052601260045260246000fd5b60008261254b5761254b612526565b500490565b8054600090600181811c908083168061256a57607f831692505b602080841082141561258c57634e487b7160e01b600052602260045260246000fd5b8180156125a057600181146125b1576125de565b60ff198616895284890196506125de565b60008881526020902060005b868110156125d65781548b8201529085019083016125bd565b505084890196505b50505050505092915050565b60006125f68286612550565b8451612606818360208901611fe8565b61261281830186612550565b979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261267e5761267e612526565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126b690830184612014565b9695505050505050565b6000602082840312156126d257600080fd5b8151611fe181611fae56fe546f6b656e2077697468207468617420494420646f6573206e6f742065786973742ea26469706673582212202628a3694c07a649d411988cb2d8d098ad8032e409c0ef3d7fe3e82742d9153064736f6c63430008090033

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.