ETH Price: $3,100.85 (-5.81%)
Gas: 7 Gwei

Token

CockaDoodles (CDOODS)
 

Overview

Max Total Supply

4,444 CDOODS

Holders

1,423

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CDOODS
0xcbfc78d7e26c2ff131867ed74fa65572dad6fc90
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Cock-A-Doodles- a and fun collection of randomly generated, early access tokens for our upcoming web3 NFT merchandise marketplace, where all projects can set up exclusive merch drops.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CockaDoodles

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : CockaDoodles.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/access/Ownable.sol";



error InsufficientPayment();

interface NftContract {
    function balanceOf(address) external view returns (uint256);
}



contract CockaDoodles is ERC721A, EIP712, Ownable {
    // EIP712 Feature
    bytes32 public constant TYPEHASH =
        keccak256("PassReq(address receiver,uint256 amount)");
    struct PassReq {
        address receiver;
        uint256 amount;
    }

     

    // BF Contract Addresss for Claim
    NftContract public bfNft =
        NftContract(0xBAB7dF6D042F4b83b62070b670Da929b62eD22d8);
   
            

    address private constant core1Address =
        0x3002E0E7Db1FB99072516033b8dc2BE9897178bA;
    uint256 private constant core1Shares = 73000;

    address private constant core2Address =
        0x2D97a5A8Da17227b9b393ca9Be92bfa1a46dF179;
    uint256 private constant core2Shares = 7000;

    address private constant core3Address =
        0x4EA87748D54957ed4e6e09E18dFB8F52A492C51e;
    uint256 private constant core3Shares = 7000;

    address private constant core4Address =
        0x8520201Ec6Ab08AA35270efDCF28b51a826bcd97;
    uint256 private constant core4Shares = 7000;

    address private constant core5Address =
        0xbeB3B8BD01a842Be859A5a92cA3758132C08B546;
    uint256 private constant core5Shares = 5000;    

    address private constant core6Address =
        0x81863F0Cf78358fAdA029B7D5fa0b84674802eF1; 
    uint256 private constant core6Shares = 500;

    address private constant core7Address =
        0xa808208Bb50e2395c63ce3fd41990d2E009E3053; 
    uint256 private constant core7Shares = 500;


    // Merkle Tree 
    bytes32 public merkleRoot;

    string public baseURI;
    uint256 public MAX_SUPPLY = 4444;
    uint256 public MAX_SUPPLY_PLUS_ONE = 4445;
    uint256 public MAX_TX_PLUS_ONE = 6; //actual value 5 for public sale tx
    uint256 public price = 0.04 ether;
    address public store;
    uint256 public MAX_PRESALE_MINTS = 2;
    uint256 public MAX_PRESALE_MINTS_PLUS_ONE = 3;

    mapping(address => uint256) private claimedAmount; 
    mapping(address => uint256) private premintedAmount; 

    uint256 private constant baseMod = 100000;

    event SetStore(address store);
    event SetBaseURI(string baseURI);
    event FashionistaClaim(address claimer, uint256 amount);
    event MintPresaleHash(address claimer, uint256 amount);
    event MintPresaleMerkle(address claimer, uint256 amount);

    bool public claimOn = false;
    bool public presaleOn = false;
    bool public mainSaleOn = false;

    constructor(
        string memory __name,
        string memory __symbol,
        string memory __baseURI
    ) ERC721A(__name, __symbol) EIP712(__name, "1") {
        baseURI = __baseURI;
    }

    modifier onlyOwnerOrStore() {
        require(
            store == msg.sender || owner() == msg.sender,
            "caller is neither store nor owner"
        );
        _;
    }

    modifier onlyOwnerOrTeam() {
        require(
            core1Address == msg.sender || core2Address == msg.sender || core3Address == msg.sender || core4Address == msg.sender || core6Address == msg.sender|| owner() == msg.sender,
            "caller is neither Team Wallet nor Owner"
        );
        _;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    } 


    /**
        Lowers the Max Supply
     */
    function lowerMaxSupply(uint256 _newmax) external onlyOwner {
        require(_newmax < MAX_SUPPLY,"Can only lower supply");
        require(_newmax > totalSupply(),"Can't set below current");
        MAX_SUPPLY = _newmax;
        MAX_SUPPLY_PLUS_ONE = _newmax + 1;
    }

    function setStore(address _store) external onlyOwner {
        store = _store;
        emit SetStore(_store);
    }

    function setBaseURI(string memory __baseURI) external onlyOwner {
        baseURI = __baseURI;
        emit SetBaseURI(__baseURI);
    }

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

    function setPrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }

    function amountClaimed(address _address) external view returns (uint256) {
        return claimedAmount[_address];
    }

    function amountPreminted(address _address) external view returns (uint256) {
        return premintedAmount[_address];
    }


    // Sale Toggles
    function toggleClaim() external onlyOwner {
        claimOn = !claimOn;
    }

    function togglePresale() external onlyOwner {
        presaleOn = !presaleOn;
    }

    function toggleMainSale() external onlyOwner {
        mainSaleOn = !mainSaleOn;
    }    
  

    // Merkel Tree
    function setMerkleRoot( bytes32 _merkleRoot ) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function _generateMerkleLeaf(address account) internal pure returns (bytes32){
        return keccak256(abi.encodePacked(account) );
    }


    /**
        New Presale with Merkle Method to as msg.sender
     */
    function mintPresaleMerkle(
        uint256 amount, 
        bytes32[] calldata proof
    ) external payable {
        require(presaleOn, "Presale Not Live");
        require(premintedAmount[msg.sender] + amount < MAX_PRESALE_MINTS_PLUS_ONE, "Over max presale allowed");
        require(totalSupply() + amount < MAX_SUPPLY_PLUS_ONE, "Exceeds max supply");

        uint256 cost = amount * price;
        if (msg.value < cost) revert InsufficientPayment();

        require( 
            MerkleProof.verify(proof, merkleRoot, _generateMerkleLeaf(msg.sender)), "User not in WL" 
        );

        premintedAmount[msg.sender] += amount;
        _safeMint(msg.sender, amount);


        emit MintPresaleMerkle(msg.sender, amount);
    }


    /**
        Fashionista Claim Function
     */
    function fashionistaClaim(
        uint256 amount,
        uint256 _passAmount,
        uint8 vSig,
        bytes32 rSig,
        bytes32 sSig
    ) external payable {

        require(claimOn, "Claim Not On");
        require(totalSupply() + amount < MAX_SUPPLY_PLUS_ONE, "Exceeds max supply");

        uint256 totalClaim = claimedAmount[msg.sender] + amount;
        require(totalClaim <= _passAmount, "Claiming Too Many");

        uint256 _balance = bfNft.balanceOf(msg.sender);
        require(totalClaim <= _balance, "Claiming Too Many");

        // hash verification
        bytes32 digest = _hashTypedDataV4(
            keccak256(abi.encode(TYPEHASH, msg.sender, _passAmount))
        );
        address signer = ecrecover(digest, vSig, rSig, sSig);
        require(signer == owner(), "Signature is not from the owner");


        claimedAmount[msg.sender] += amount;

        _safeMint(msg.sender, amount);

        emit FashionistaClaim(msg.sender, amount);

    }



    // PUBLIC SALE

    /**
        main mint
     */
    function mint(address to, uint256 amount) external payable callerIsUser {
        require(mainSaleOn, "Main Sale Not On");
        require(totalSupply() + amount < MAX_SUPPLY_PLUS_ONE, "Exceeds max supply");
        require(amount < MAX_TX_PLUS_ONE, "Over Max per Mint");

        uint256 cost = amount * price;
        if (msg.value < cost) revert InsufficientPayment();


        _safeMint(to, amount);

    }

    // PUBLIC SALE

    /**
        Mint with external store function (backup)
     */
    function mintStore(address to, uint256 amount) external onlyOwnerOrStore {
        require(totalSupply() + amount < MAX_SUPPLY_PLUS_ONE, "Exceeds max supply");

        _safeMint(to, amount);
    }


    //  **** Withdraw Functions

    /**
        Main Withdraw
     */
    function withdrawCore() external onlyOwnerOrTeam {
        uint256 balance = address(this).balance;
        require(balance > 0);

        _splitAll(balance);

    }

    function _splitAll(uint256 _amount) private {
        uint256 singleShare = _amount / baseMod;
        _withdraw(core1Address, singleShare * core1Shares);
        _withdraw(core2Address, singleShare * core2Shares);
        _withdraw(core3Address, singleShare * core3Shares);
        _withdraw(core4Address, singleShare * core4Shares);
        _withdraw(core5Address, singleShare * core5Shares);
        _withdraw(core6Address, singleShare * core6Shares);
        _withdraw(core7Address, address(this).balance);
    }

    /**
        Backup Withdrawal
     */
    function withdrawBU() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);

        _withdraw(core1Address, balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        payable(_address).transfer(_amount);
    }    


}

File 2 of 15 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 3 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 15 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 15 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"string","name":"__baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FashionistaClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintPresaleHash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintPresaleMerkle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"store","type":"address"}],"name":"SetStore","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PRESALE_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_MINTS_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TX_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"amountClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"amountPreminted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bfNft","outputs":[{"internalType":"contract NftContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_passAmount","type":"uint256"},{"internalType":"uint8","name":"vSig","type":"uint8"},{"internalType":"bytes32","name":"rSig","type":"bytes32"},{"internalType":"bytes32","name":"sSig","type":"bytes32"}],"name":"fashionistaClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmax","type":"uint256"}],"name":"lowerMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mainSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintPresaleMerkle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintStore","outputs":[],"stateMutability":"nonpayable","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":"presaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_store","type":"address"}],"name":"setStore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"store","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMainSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawBU","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawCore","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610140604052600880546001600160a01b03191673bab7df6d042f4b83b62070b670da929b62ed22d817905561115c600b5561115d600c556006600d55668e1bc9bf040000600e55600260105560036011556014805462ffffff191690553480156200006a57600080fd5b50604051620031ed380380620031ed8339810160408190526200008d9162000359565b82604051806040016040528060018152602001603160f81b81525084848160019080519060200190620000c2929190620001e6565b508051620000d8906002906020840190620001e6565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909601209052929092526101205250620001753362000194565b80516200018a90600a906020840190620001e6565b5050505062000427565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001f490620003ea565b90600052602060002090601f01602090048101928262000218576000855562000263565b82601f106200023357805160ff191683800117855562000263565b8280016001018555821562000263579182015b828111156200026357825182559160200191906001019062000246565b506200027192915062000275565b5090565b5b8082111562000271576000815560010162000276565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002b457600080fd5b81516001600160401b0380821115620002d157620002d16200028c565b604051601f8301601f19908116603f01168101908282118183101715620002fc57620002fc6200028c565b816040528381526020925086838588010111156200031957600080fd5b600091505b838210156200033d57858201830151818301840152908201906200031e565b838211156200034f5760008385830101525b9695505050505050565b6000806000606084860312156200036f57600080fd5b83516001600160401b03808211156200038757600080fd5b6200039587838801620002a2565b94506020860151915080821115620003ac57600080fd5b620003ba87838801620002a2565b93506040860151915080821115620003d157600080fd5b50620003e086828701620002a2565b9150509250925092565b600181811c90821680620003ff57607f821691505b602082108114156200042157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051612d7662000477600039600061241f0152600061246e01526000612449015260006123a2015260006123cc015260006123f60152612d766000f3fe6080604052600436106102ae5760003560e01c806370a0823111610175578063990cb753116100dc578063c4e9374d11610095578063d7e1ea171161006f578063d7e1ea17146107cd578063de1444c214610803578063e985e9c514610839578063f2fde38b1461088257600080fd5b8063c4e9374d14610778578063c87b56dd14610798578063d1129745146107b857600080fd5b8063990cb753146106de5780639edede9f146106f8578063a035b1fe1461070d578063a22cb46514610723578063b88d4fde14610743578063c36554ce1461076357600080fd5b80638a9382621161012e5780638a9382621461063f5780638da5cb5b1461065557806391b7f5ed146106735780639208383a1461069357806395d89b41146106a9578063975057e7146106be57600080fd5b806370a082311461059e578063715018a6146105be5780637cb64759146105d357806382d5b249146105f357806386543be2146106095780638836581c1461062957600080fd5b8063343937431161021957806352b94491116101d257806352b9449114610503578063536301961461052357806355f804b3146105365780636352211e146105565780636c0360eb146105765780636e20d9681461058b57600080fd5b806334393743146104475780633b639e6f1461045c5780633eb0acf61461049057806340c10f19146104b057806342842e0e146104c35780634f6ccce7146104e357600080fd5b806318160ddd1161026b57806318160ddd146103995780631ad874b4146103bc57806323b872dd146103db5780632eb4a7ab146103fb5780632f745c591461041157806332cb6b0c1461043157600080fd5b806301ffc9a7146102b357806306fdde03146102e8578063081812fc1461030a578063087cbd4014610342578063095ea7b314610364578063128bd9f914610384575b600080fd5b3480156102bf57600080fd5b506102d36102ce366004612767565b6108a2565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b506102fd61090f565b6040516102df91906127dc565b34801561031657600080fd5b5061032a6103253660046127ef565b6109a1565b6040516001600160a01b0390911681526020016102df565b34801561034e57600080fd5b5061036261035d366004612824565b6109e5565b005b34801561037057600080fd5b5061036261037f36600461283f565b610a6d565b34801561039057600080fd5b50610362610afb565b3480156103a557600080fd5b506103ae610b51565b6040519081526020016102df565b3480156103c857600080fd5b506014546102d390610100900460ff1681565b3480156103e757600080fd5b506103626103f6366004612869565b610b70565b34801561040757600080fd5b506103ae60095481565b34801561041d57600080fd5b506103ae61042c36600461283f565b610b7b565b34801561043d57600080fd5b506103ae600b5481565b34801561045357600080fd5b50610362610c77565b34801561046857600080fd5b506103ae7f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f081565b34801561049c57600080fd5b5060085461032a906001600160a01b031681565b6103626104be36600461283f565b610cbe565b3480156104cf57600080fd5b506103626104de366004612869565b610e0d565b3480156104ef57600080fd5b506103ae6104fe3660046127ef565b610e28565b34801561050f57600080fd5b5061036261051e36600461283f565b610ed2565b6103626105313660046128a5565b610f9b565b34801561054257600080fd5b5061036261055136600461297f565b6112d9565b34801561056257600080fd5b5061032a6105713660046127ef565b611346565b34801561058257600080fd5b506102fd611358565b6103626105993660046129c7565b6113e6565b3480156105aa57600080fd5b506103ae6105b9366004612824565b611624565b3480156105ca57600080fd5b50610362611672565b3480156105df57600080fd5b506103626105ee3660046127ef565b6116a8565b3480156105ff57600080fd5b506103ae600c5481565b34801561061557600080fd5b506014546102d39062010000900460ff1681565b34801561063557600080fd5b506103ae600d5481565b34801561064b57600080fd5b506103ae60115481565b34801561066157600080fd5b506007546001600160a01b031661032a565b34801561067f57600080fd5b5061036261068e3660046127ef565b6116d7565b34801561069f57600080fd5b506103ae60105481565b3480156106b557600080fd5b506102fd611706565b3480156106ca57600080fd5b50600f5461032a906001600160a01b031681565b3480156106ea57600080fd5b506014546102d39060ff1681565b34801561070457600080fd5b50610362611715565b34801561071957600080fd5b506103ae600e5481565b34801561072f57600080fd5b5061036261073e366004612a45565b61175e565b34801561074f57600080fd5b5061036261075e366004612a81565b6117f4565b34801561076f57600080fd5b5061036261182e565b34801561078457600080fd5b506103626107933660046127ef565b611951565b3480156107a457600080fd5b506102fd6107b33660046127ef565b611a30565b3480156107c457600080fd5b50610362611ab5565b3480156107d957600080fd5b506103ae6107e8366004612824565b6001600160a01b031660009081526012602052604090205490565b34801561080f57600080fd5b506103ae61081e366004612824565b6001600160a01b031660009081526013602052604090205490565b34801561084557600080fd5b506102d3610854366004612afc565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561088e57600080fd5b5061036261089d366004612824565b611af3565b60006001600160e01b031982166380ac58cd60e01b14806108d357506001600160e01b03198216635b5e139f60e01b145b806108ee57506001600160e01b0319821663780e9d6360e01b145b8061090957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461091e90612b2f565b80601f016020809104026020016040519081016040528092919081815260200182805461094a90612b2f565b80156109975780601f1061096c57610100808354040283529160200191610997565b820191906000526020600020905b81548152906001019060200180831161097a57829003601f168201915b5050505050905090565b60006109ac82611b8b565b6109c9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6007546001600160a01b03163314610a185760405162461bcd60e51b8152600401610a0f90612b6a565b60405180910390fd5b600f80546001600160a01b0319166001600160a01b0383169081179091556040519081527fec34dc6727fd40c7fd53fc86371efbd64041b901499e3acc929598ace9a87033906020015b60405180910390a150565b6000610a7882611346565b9050806001600160a01b0316836001600160a01b03161415610aad5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610acd5750610acb8133610854565b155b15610aeb576040516367d9dca160e11b815260040160405180910390fd5b610af6838383611bbf565b505050565b6007546001600160a01b03163314610b255760405162461bcd60e51b8152600401610a0f90612b6a565b4780610b3057600080fd5b610b4e733002e0e7db1fb99072516033b8dc2be9897178ba82611c1b565b50565b6000546001600160801b03600160801b82048116918116919091031690565b610af6838383611c51565b6000610b8683611624565b8210610ba5576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610c7157600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610c1d5750610c69565b80516001600160a01b031615610c3257805192505b876001600160a01b0316836001600160a01b03161415610c675786841415610c605750935061090992505050565b6001909301925b505b600101610bb6565b50600080fd5b6007546001600160a01b03163314610ca15760405162461bcd60e51b8152600401610a0f90612b6a565b6014805461ff001981166101009182900460ff1615909102179055565b323314610d0d5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610a0f565b60145462010000900460ff16610d585760405162461bcd60e51b815260206004820152601060248201526f26b0b4b71029b0b632902737ba1027b760811b6044820152606401610a0f565b600c5481610d64610b51565b610d6e9190612bb5565b10610d8b5760405162461bcd60e51b8152600401610a0f90612bcd565b600d548110610dd05760405162461bcd60e51b815260206004820152601160248201527013dd995c8813585e081c195c88135a5b9d607a1b6044820152606401610a0f565b6000600e5482610de09190612bf9565b905080341015610e035760405163cd1c886760e01b815260040160405180910390fd5b610af68383611e6e565b610af6838383604051806020016040528060008152506117f4565b600080546001600160801b031681805b82811015610eb857600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290610eaf5785831415610ea85750949350505050565b6001909201915b50600101610e38565b506040516329c8c00760e21b815260040160405180910390fd5b600f546001600160a01b0316331480610f04575033610ef96007546001600160a01b031690565b6001600160a01b0316145b610f5a5760405162461bcd60e51b815260206004820152602160248201527f63616c6c6572206973206e6569746865722073746f7265206e6f72206f776e656044820152603960f91b6064820152608401610a0f565b600c5481610f66610b51565b610f709190612bb5565b10610f8d5760405162461bcd60e51b8152600401610a0f90612bcd565b610f978282611e6e565b5050565b60145460ff16610fdc5760405162461bcd60e51b815260206004820152600c60248201526b21b630b4b6902737ba1027b760a11b6044820152606401610a0f565b600c5485610fe8610b51565b610ff29190612bb5565b1061100f5760405162461bcd60e51b8152600401610a0f90612bcd565b3360009081526012602052604081205461102a908790612bb5565b9050848111156110705760405162461bcd60e51b8152602060048201526011602482015270436c61696d696e6720546f6f204d616e7960781b6044820152606401610a0f565b6008546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156110b457600080fd5b505afa1580156110c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ec9190612c18565b9050808211156111325760405162461bcd60e51b8152602060048201526011602482015270436c61696d696e6720546f6f204d616e7960781b6044820152606401610a0f565b604080517f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f060208201523391810191909152606081018790526000906111909060800160405160208183030381529060405280519060200120611e88565b6040805160008082526020820180845284905260ff8a169282019290925260608101889052608081018790529192509060019060a0016020604051602081039080840390855afa1580156111e8573d6000803e3d6000fd5b5050506020604051035190506112066007546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146112665760405162461bcd60e51b815260206004820152601f60248201527f5369676e6174757265206973206e6f742066726f6d20746865206f776e6572006044820152606401610a0f565b33600090815260126020526040812080548b9290611285908490612bb5565b909155506112959050338a611e6e565b60408051338152602081018b90527f37f579d665a0851e3ac9ab8857462c14b6f6fd254f03ec1a832136b72f71bcd8910160405180910390a1505050505050505050565b6007546001600160a01b031633146113035760405162461bcd60e51b8152600401610a0f90612b6a565b805161131690600a9060208401906126b8565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051610a6291906127dc565b600061135182611ed6565b5192915050565b600a805461136590612b2f565b80601f016020809104026020016040519081016040528092919081815260200182805461139190612b2f565b80156113de5780601f106113b3576101008083540402835291602001916113de565b820191906000526020600020905b8154815290600101906020018083116113c157829003601f168201915b505050505081565b601454610100900460ff166114305760405162461bcd60e51b815260206004820152601060248201526f50726573616c65204e6f74204c69766560801b6044820152606401610a0f565b6011543360009081526013602052604090205461144e908590612bb5565b1061149b5760405162461bcd60e51b815260206004820152601860248201527f4f766572206d61782070726573616c6520616c6c6f77656400000000000000006044820152606401610a0f565b600c54836114a7610b51565b6114b19190612bb5565b106114ce5760405162461bcd60e51b8152600401610a0f90612bcd565b6000600e54846114de9190612bf9565b9050803410156115015760405163cd1c886760e01b815260040160405180910390fd5b61157983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600954604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101209092509050611ff8565b6115b65760405162461bcd60e51b815260206004820152600e60248201526d155cd95c881b9bdd081a5b8815d360921b6044820152606401610a0f565b33600090815260136020526040812080548692906115d5908490612bb5565b909155506115e590503385611e6e565b60408051338152602081018690527f4e7eaf3fc8cae9ff9667e1cf0c04f734672c5ad6ff09bda109fc5649712ea7df910160405180910390a150505050565b60006001600160a01b03821661164d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b0316331461169c5760405162461bcd60e51b8152600401610a0f90612b6a565b6116a6600061200e565b565b6007546001600160a01b031633146116d25760405162461bcd60e51b8152600401610a0f90612b6a565b600955565b6007546001600160a01b031633146117015760405162461bcd60e51b8152600401610a0f90612b6a565b600e55565b60606002805461091e90612b2f565b6007546001600160a01b0316331461173f5760405162461bcd60e51b8152600401610a0f90612b6a565b6014805462ff0000198116620100009182900460ff1615909102179055565b6001600160a01b0382163314156117885760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117ff848484611c51565b61180b84848484612060565b611828576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b733002e0e7db1fb99072516033b8dc2be9897178ba3314806118635750732d97a5a8da17227b9b393ca9be92bfa1a46df17933145b806118815750734ea87748d54957ed4e6e09e18dfb8f52a492c51e33145b8061189f5750738520201ec6ab08aa35270efdcf28b51a826bcd9733145b806118bd57507381863f0cf78358fada029b7d5fa0b84674802ef133145b806118e15750336118d66007546001600160a01b031690565b6001600160a01b0316145b61193d5760405162461bcd60e51b815260206004820152602760248201527f63616c6c6572206973206e656974686572205465616d2057616c6c6574206e6f604482015266391027bbb732b960c91b6064820152608401610a0f565b478061194857600080fd5b610b4e8161216f565b6007546001600160a01b0316331461197b5760405162461bcd60e51b8152600401610a0f90612b6a565b600b5481106119c45760405162461bcd60e51b815260206004820152601560248201527443616e206f6e6c79206c6f77657220737570706c7960581b6044820152606401610a0f565b6119cc610b51565b8111611a1a5760405162461bcd60e51b815260206004820152601760248201527f43616e2774207365742062656c6f772063757272656e740000000000000000006044820152606401610a0f565b600b819055611a2a816001612bb5565b600c5550565b6060611a3b82611b8b565b611a5857604051630a14c4b560e41b815260040160405180910390fd5b6000611a6261227c565b9050805160001415611a835760405180602001604052806000815250611aae565b80611a8d8461228b565b604051602001611a9e929190612c31565b6040516020818303038152906040525b9392505050565b6007546001600160a01b03163314611adf5760405162461bcd60e51b8152600401610a0f90612b6a565b6014805460ff19811660ff90911615179055565b6007546001600160a01b03163314611b1d5760405162461bcd60e51b8152600401610a0f90612b6a565b6001600160a01b038116611b825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a0f565b610b4e8161200e565b600080546001600160801b031682108015610909575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610af6573d6000803e3d6000fd5b6000611c5c82611ed6565b80519091506000906001600160a01b0316336001600160a01b03161480611c8a57508151611c8a9033610854565b80611ca5575033611c9a846109a1565b6001600160a01b0316145b905080611cc557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611cfa5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611d2157604051633a954ecd60e21b815260040160405180910390fd5b611d316000848460000151611bbf565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611e24576000546001600160801b0316811015611e2457825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610f97828260405180602001604052806000815250612388565b6000610909611e95612395565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b0316811015611fdf57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611fdd5780516001600160a01b031615611f74579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611fd8579392505050565b611f74565b505b604051636f96cda160e11b815260040160405180910390fd5b60008261200585846124bc565b14949350505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561216357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120a4903390899088908890600401612c60565b602060405180830381600087803b1580156120be57600080fd5b505af19250505080156120ee575060408051601f3d908101601f191682019092526120eb91810190612c9d565b60015b612149573d80801561211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b508051612141576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612167565b5060015b949350505050565b600061217e620186a083612cd0565b90506121aa733002e0e7db1fb99072516033b8dc2be9897178ba6121a562011d2884612bf9565b611c1b565b6121ce732d97a5a8da17227b9b393ca9be92bfa1a46df1796121a5611b5884612bf9565b6121f2734ea87748d54957ed4e6e09e18dfb8f52a492c51e6121a5611b5884612bf9565b612216738520201ec6ab08aa35270efdcf28b51a826bcd976121a5611b5884612bf9565b61223a73beb3b8bd01a842be859a5a92ca3758132c08b5466121a561138884612bf9565b61225e7381863f0cf78358fada029b7d5fa0b84674802ef16121a56101f484612bf9565b610f9773a808208bb50e2395c63ce3fd41990d2e009e305347611c1b565b6060600a805461091e90612b2f565b6060816122af5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d957806122c381612ce4565b91506122d29050600a83612cd0565b91506122b3565b6000816001600160401b038111156122f3576122f36128f4565b6040519080825280601f01601f19166020018201604052801561231d576020820181803683370190505b5090505b841561216757612332600183612cff565b915061233f600a86612d16565b61234a906030612bb5565b60f81b81838151811061235f5761235f612d2a565b60200101906001600160f81b031916908160001a905350612381600a86612cd0565b9450612321565b610af68383836001612530565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156123ee57507f000000000000000000000000000000000000000000000000000000000000000046145b1561241857507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b600081815b84518110156125285760008582815181106124de576124de612d2a565b602002602001015190508083116125045760008381526020829052604090209250612515565b600081815260208490526040902092505b508061252081612ce4565b9150506124c1565b509392505050565b6000546001600160801b03166001600160a01b03851661256257604051622e076360e81b815260040160405180910390fd5b836125805760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156126925760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561266857506126666000888488612060565b155b15612686576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612611565b50600080546001600160801b0319166001600160801b0392909216919091179055611e67565b8280546126c490612b2f565b90600052602060002090601f0160209004810192826126e6576000855561272c565b82601f106126ff57805160ff191683800117855561272c565b8280016001018555821561272c579182015b8281111561272c578251825591602001919060010190612711565b5061273892915061273c565b5090565b5b80821115612738576000815560010161273d565b6001600160e01b031981168114610b4e57600080fd5b60006020828403121561277957600080fd5b8135611aae81612751565b60005b8381101561279f578181015183820152602001612787565b838111156118285750506000910152565b600081518084526127c8816020860160208601612784565b601f01601f19169290920160200192915050565b602081526000611aae60208301846127b0565b60006020828403121561280157600080fd5b5035919050565b80356001600160a01b038116811461281f57600080fd5b919050565b60006020828403121561283657600080fd5b611aae82612808565b6000806040838503121561285257600080fd5b61285b83612808565b946020939093013593505050565b60008060006060848603121561287e57600080fd5b61288784612808565b925061289560208501612808565b9150604084013590509250925092565b600080600080600060a086880312156128bd57600080fd5b8535945060208601359350604086013560ff811681146128dc57600080fd5b94979396509394606081013594506080013592915050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612924576129246128f4565b604051601f8501601f19908116603f0116810190828211818310171561294c5761294c6128f4565b8160405280935085815286868601111561296557600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561299157600080fd5b81356001600160401b038111156129a757600080fd5b8201601f810184136129b857600080fd5b6121678482356020840161290a565b6000806000604084860312156129dc57600080fd5b8335925060208401356001600160401b03808211156129fa57600080fd5b818601915086601f830112612a0e57600080fd5b813581811115612a1d57600080fd5b8760208260051b8501011115612a3257600080fd5b6020830194508093505050509250925092565b60008060408385031215612a5857600080fd5b612a6183612808565b915060208301358015158114612a7657600080fd5b809150509250929050565b60008060008060808587031215612a9757600080fd5b612aa085612808565b9350612aae60208601612808565b92506040850135915060608501356001600160401b03811115612ad057600080fd5b8501601f81018713612ae157600080fd5b612af08782356020840161290a565b91505092959194509250565b60008060408385031215612b0f57600080fd5b612b1883612808565b9150612b2660208401612808565b90509250929050565b600181811c90821680612b4357607f821691505b60208210811415612b6457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612bc857612bc8612b9f565b500190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b6000816000190483118215151615612c1357612c13612b9f565b500290565b600060208284031215612c2a57600080fd5b5051919050565b60008351612c43818460208801612784565b835190830190612c57818360208801612784565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c93908301846127b0565b9695505050505050565b600060208284031215612caf57600080fd5b8151611aae81612751565b634e487b7160e01b600052601260045260246000fd5b600082612cdf57612cdf612cba565b500490565b6000600019821415612cf857612cf8612b9f565b5060010190565b600082821015612d1157612d11612b9f565b500390565b600082612d2557612d25612cba565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220c229ece6bf212a5b5f32e9ccdfdafd3732b91a04c6694042d667a6ec129845c964736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000c436f636b61446f6f646c65730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000643444f4f44530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f636f636b61646f6f646c65732e696f2f6170692f00000000

Deployed Bytecode

0x6080604052600436106102ae5760003560e01c806370a0823111610175578063990cb753116100dc578063c4e9374d11610095578063d7e1ea171161006f578063d7e1ea17146107cd578063de1444c214610803578063e985e9c514610839578063f2fde38b1461088257600080fd5b8063c4e9374d14610778578063c87b56dd14610798578063d1129745146107b857600080fd5b8063990cb753146106de5780639edede9f146106f8578063a035b1fe1461070d578063a22cb46514610723578063b88d4fde14610743578063c36554ce1461076357600080fd5b80638a9382621161012e5780638a9382621461063f5780638da5cb5b1461065557806391b7f5ed146106735780639208383a1461069357806395d89b41146106a9578063975057e7146106be57600080fd5b806370a082311461059e578063715018a6146105be5780637cb64759146105d357806382d5b249146105f357806386543be2146106095780638836581c1461062957600080fd5b8063343937431161021957806352b94491116101d257806352b9449114610503578063536301961461052357806355f804b3146105365780636352211e146105565780636c0360eb146105765780636e20d9681461058b57600080fd5b806334393743146104475780633b639e6f1461045c5780633eb0acf61461049057806340c10f19146104b057806342842e0e146104c35780634f6ccce7146104e357600080fd5b806318160ddd1161026b57806318160ddd146103995780631ad874b4146103bc57806323b872dd146103db5780632eb4a7ab146103fb5780632f745c591461041157806332cb6b0c1461043157600080fd5b806301ffc9a7146102b357806306fdde03146102e8578063081812fc1461030a578063087cbd4014610342578063095ea7b314610364578063128bd9f914610384575b600080fd5b3480156102bf57600080fd5b506102d36102ce366004612767565b6108a2565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b506102fd61090f565b6040516102df91906127dc565b34801561031657600080fd5b5061032a6103253660046127ef565b6109a1565b6040516001600160a01b0390911681526020016102df565b34801561034e57600080fd5b5061036261035d366004612824565b6109e5565b005b34801561037057600080fd5b5061036261037f36600461283f565b610a6d565b34801561039057600080fd5b50610362610afb565b3480156103a557600080fd5b506103ae610b51565b6040519081526020016102df565b3480156103c857600080fd5b506014546102d390610100900460ff1681565b3480156103e757600080fd5b506103626103f6366004612869565b610b70565b34801561040757600080fd5b506103ae60095481565b34801561041d57600080fd5b506103ae61042c36600461283f565b610b7b565b34801561043d57600080fd5b506103ae600b5481565b34801561045357600080fd5b50610362610c77565b34801561046857600080fd5b506103ae7f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f081565b34801561049c57600080fd5b5060085461032a906001600160a01b031681565b6103626104be36600461283f565b610cbe565b3480156104cf57600080fd5b506103626104de366004612869565b610e0d565b3480156104ef57600080fd5b506103ae6104fe3660046127ef565b610e28565b34801561050f57600080fd5b5061036261051e36600461283f565b610ed2565b6103626105313660046128a5565b610f9b565b34801561054257600080fd5b5061036261055136600461297f565b6112d9565b34801561056257600080fd5b5061032a6105713660046127ef565b611346565b34801561058257600080fd5b506102fd611358565b6103626105993660046129c7565b6113e6565b3480156105aa57600080fd5b506103ae6105b9366004612824565b611624565b3480156105ca57600080fd5b50610362611672565b3480156105df57600080fd5b506103626105ee3660046127ef565b6116a8565b3480156105ff57600080fd5b506103ae600c5481565b34801561061557600080fd5b506014546102d39062010000900460ff1681565b34801561063557600080fd5b506103ae600d5481565b34801561064b57600080fd5b506103ae60115481565b34801561066157600080fd5b506007546001600160a01b031661032a565b34801561067f57600080fd5b5061036261068e3660046127ef565b6116d7565b34801561069f57600080fd5b506103ae60105481565b3480156106b557600080fd5b506102fd611706565b3480156106ca57600080fd5b50600f5461032a906001600160a01b031681565b3480156106ea57600080fd5b506014546102d39060ff1681565b34801561070457600080fd5b50610362611715565b34801561071957600080fd5b506103ae600e5481565b34801561072f57600080fd5b5061036261073e366004612a45565b61175e565b34801561074f57600080fd5b5061036261075e366004612a81565b6117f4565b34801561076f57600080fd5b5061036261182e565b34801561078457600080fd5b506103626107933660046127ef565b611951565b3480156107a457600080fd5b506102fd6107b33660046127ef565b611a30565b3480156107c457600080fd5b50610362611ab5565b3480156107d957600080fd5b506103ae6107e8366004612824565b6001600160a01b031660009081526012602052604090205490565b34801561080f57600080fd5b506103ae61081e366004612824565b6001600160a01b031660009081526013602052604090205490565b34801561084557600080fd5b506102d3610854366004612afc565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561088e57600080fd5b5061036261089d366004612824565b611af3565b60006001600160e01b031982166380ac58cd60e01b14806108d357506001600160e01b03198216635b5e139f60e01b145b806108ee57506001600160e01b0319821663780e9d6360e01b145b8061090957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461091e90612b2f565b80601f016020809104026020016040519081016040528092919081815260200182805461094a90612b2f565b80156109975780601f1061096c57610100808354040283529160200191610997565b820191906000526020600020905b81548152906001019060200180831161097a57829003601f168201915b5050505050905090565b60006109ac82611b8b565b6109c9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6007546001600160a01b03163314610a185760405162461bcd60e51b8152600401610a0f90612b6a565b60405180910390fd5b600f80546001600160a01b0319166001600160a01b0383169081179091556040519081527fec34dc6727fd40c7fd53fc86371efbd64041b901499e3acc929598ace9a87033906020015b60405180910390a150565b6000610a7882611346565b9050806001600160a01b0316836001600160a01b03161415610aad5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610acd5750610acb8133610854565b155b15610aeb576040516367d9dca160e11b815260040160405180910390fd5b610af6838383611bbf565b505050565b6007546001600160a01b03163314610b255760405162461bcd60e51b8152600401610a0f90612b6a565b4780610b3057600080fd5b610b4e733002e0e7db1fb99072516033b8dc2be9897178ba82611c1b565b50565b6000546001600160801b03600160801b82048116918116919091031690565b610af6838383611c51565b6000610b8683611624565b8210610ba5576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610c7157600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610c1d5750610c69565b80516001600160a01b031615610c3257805192505b876001600160a01b0316836001600160a01b03161415610c675786841415610c605750935061090992505050565b6001909301925b505b600101610bb6565b50600080fd5b6007546001600160a01b03163314610ca15760405162461bcd60e51b8152600401610a0f90612b6a565b6014805461ff001981166101009182900460ff1615909102179055565b323314610d0d5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610a0f565b60145462010000900460ff16610d585760405162461bcd60e51b815260206004820152601060248201526f26b0b4b71029b0b632902737ba1027b760811b6044820152606401610a0f565b600c5481610d64610b51565b610d6e9190612bb5565b10610d8b5760405162461bcd60e51b8152600401610a0f90612bcd565b600d548110610dd05760405162461bcd60e51b815260206004820152601160248201527013dd995c8813585e081c195c88135a5b9d607a1b6044820152606401610a0f565b6000600e5482610de09190612bf9565b905080341015610e035760405163cd1c886760e01b815260040160405180910390fd5b610af68383611e6e565b610af6838383604051806020016040528060008152506117f4565b600080546001600160801b031681805b82811015610eb857600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290610eaf5785831415610ea85750949350505050565b6001909201915b50600101610e38565b506040516329c8c00760e21b815260040160405180910390fd5b600f546001600160a01b0316331480610f04575033610ef96007546001600160a01b031690565b6001600160a01b0316145b610f5a5760405162461bcd60e51b815260206004820152602160248201527f63616c6c6572206973206e6569746865722073746f7265206e6f72206f776e656044820152603960f91b6064820152608401610a0f565b600c5481610f66610b51565b610f709190612bb5565b10610f8d5760405162461bcd60e51b8152600401610a0f90612bcd565b610f978282611e6e565b5050565b60145460ff16610fdc5760405162461bcd60e51b815260206004820152600c60248201526b21b630b4b6902737ba1027b760a11b6044820152606401610a0f565b600c5485610fe8610b51565b610ff29190612bb5565b1061100f5760405162461bcd60e51b8152600401610a0f90612bcd565b3360009081526012602052604081205461102a908790612bb5565b9050848111156110705760405162461bcd60e51b8152602060048201526011602482015270436c61696d696e6720546f6f204d616e7960781b6044820152606401610a0f565b6008546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156110b457600080fd5b505afa1580156110c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ec9190612c18565b9050808211156111325760405162461bcd60e51b8152602060048201526011602482015270436c61696d696e6720546f6f204d616e7960781b6044820152606401610a0f565b604080517f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f060208201523391810191909152606081018790526000906111909060800160405160208183030381529060405280519060200120611e88565b6040805160008082526020820180845284905260ff8a169282019290925260608101889052608081018790529192509060019060a0016020604051602081039080840390855afa1580156111e8573d6000803e3d6000fd5b5050506020604051035190506112066007546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146112665760405162461bcd60e51b815260206004820152601f60248201527f5369676e6174757265206973206e6f742066726f6d20746865206f776e6572006044820152606401610a0f565b33600090815260126020526040812080548b9290611285908490612bb5565b909155506112959050338a611e6e565b60408051338152602081018b90527f37f579d665a0851e3ac9ab8857462c14b6f6fd254f03ec1a832136b72f71bcd8910160405180910390a1505050505050505050565b6007546001600160a01b031633146113035760405162461bcd60e51b8152600401610a0f90612b6a565b805161131690600a9060208401906126b8565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051610a6291906127dc565b600061135182611ed6565b5192915050565b600a805461136590612b2f565b80601f016020809104026020016040519081016040528092919081815260200182805461139190612b2f565b80156113de5780601f106113b3576101008083540402835291602001916113de565b820191906000526020600020905b8154815290600101906020018083116113c157829003601f168201915b505050505081565b601454610100900460ff166114305760405162461bcd60e51b815260206004820152601060248201526f50726573616c65204e6f74204c69766560801b6044820152606401610a0f565b6011543360009081526013602052604090205461144e908590612bb5565b1061149b5760405162461bcd60e51b815260206004820152601860248201527f4f766572206d61782070726573616c6520616c6c6f77656400000000000000006044820152606401610a0f565b600c54836114a7610b51565b6114b19190612bb5565b106114ce5760405162461bcd60e51b8152600401610a0f90612bcd565b6000600e54846114de9190612bf9565b9050803410156115015760405163cd1c886760e01b815260040160405180910390fd5b61157983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600954604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101209092509050611ff8565b6115b65760405162461bcd60e51b815260206004820152600e60248201526d155cd95c881b9bdd081a5b8815d360921b6044820152606401610a0f565b33600090815260136020526040812080548692906115d5908490612bb5565b909155506115e590503385611e6e565b60408051338152602081018690527f4e7eaf3fc8cae9ff9667e1cf0c04f734672c5ad6ff09bda109fc5649712ea7df910160405180910390a150505050565b60006001600160a01b03821661164d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b0316331461169c5760405162461bcd60e51b8152600401610a0f90612b6a565b6116a6600061200e565b565b6007546001600160a01b031633146116d25760405162461bcd60e51b8152600401610a0f90612b6a565b600955565b6007546001600160a01b031633146117015760405162461bcd60e51b8152600401610a0f90612b6a565b600e55565b60606002805461091e90612b2f565b6007546001600160a01b0316331461173f5760405162461bcd60e51b8152600401610a0f90612b6a565b6014805462ff0000198116620100009182900460ff1615909102179055565b6001600160a01b0382163314156117885760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117ff848484611c51565b61180b84848484612060565b611828576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b733002e0e7db1fb99072516033b8dc2be9897178ba3314806118635750732d97a5a8da17227b9b393ca9be92bfa1a46df17933145b806118815750734ea87748d54957ed4e6e09e18dfb8f52a492c51e33145b8061189f5750738520201ec6ab08aa35270efdcf28b51a826bcd9733145b806118bd57507381863f0cf78358fada029b7d5fa0b84674802ef133145b806118e15750336118d66007546001600160a01b031690565b6001600160a01b0316145b61193d5760405162461bcd60e51b815260206004820152602760248201527f63616c6c6572206973206e656974686572205465616d2057616c6c6574206e6f604482015266391027bbb732b960c91b6064820152608401610a0f565b478061194857600080fd5b610b4e8161216f565b6007546001600160a01b0316331461197b5760405162461bcd60e51b8152600401610a0f90612b6a565b600b5481106119c45760405162461bcd60e51b815260206004820152601560248201527443616e206f6e6c79206c6f77657220737570706c7960581b6044820152606401610a0f565b6119cc610b51565b8111611a1a5760405162461bcd60e51b815260206004820152601760248201527f43616e2774207365742062656c6f772063757272656e740000000000000000006044820152606401610a0f565b600b819055611a2a816001612bb5565b600c5550565b6060611a3b82611b8b565b611a5857604051630a14c4b560e41b815260040160405180910390fd5b6000611a6261227c565b9050805160001415611a835760405180602001604052806000815250611aae565b80611a8d8461228b565b604051602001611a9e929190612c31565b6040516020818303038152906040525b9392505050565b6007546001600160a01b03163314611adf5760405162461bcd60e51b8152600401610a0f90612b6a565b6014805460ff19811660ff90911615179055565b6007546001600160a01b03163314611b1d5760405162461bcd60e51b8152600401610a0f90612b6a565b6001600160a01b038116611b825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a0f565b610b4e8161200e565b600080546001600160801b031682108015610909575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610af6573d6000803e3d6000fd5b6000611c5c82611ed6565b80519091506000906001600160a01b0316336001600160a01b03161480611c8a57508151611c8a9033610854565b80611ca5575033611c9a846109a1565b6001600160a01b0316145b905080611cc557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611cfa5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611d2157604051633a954ecd60e21b815260040160405180910390fd5b611d316000848460000151611bbf565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611e24576000546001600160801b0316811015611e2457825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610f97828260405180602001604052806000815250612388565b6000610909611e95612395565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b0316811015611fdf57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611fdd5780516001600160a01b031615611f74579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611fd8579392505050565b611f74565b505b604051636f96cda160e11b815260040160405180910390fd5b60008261200585846124bc565b14949350505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561216357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120a4903390899088908890600401612c60565b602060405180830381600087803b1580156120be57600080fd5b505af19250505080156120ee575060408051601f3d908101601f191682019092526120eb91810190612c9d565b60015b612149573d80801561211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b508051612141576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612167565b5060015b949350505050565b600061217e620186a083612cd0565b90506121aa733002e0e7db1fb99072516033b8dc2be9897178ba6121a562011d2884612bf9565b611c1b565b6121ce732d97a5a8da17227b9b393ca9be92bfa1a46df1796121a5611b5884612bf9565b6121f2734ea87748d54957ed4e6e09e18dfb8f52a492c51e6121a5611b5884612bf9565b612216738520201ec6ab08aa35270efdcf28b51a826bcd976121a5611b5884612bf9565b61223a73beb3b8bd01a842be859a5a92ca3758132c08b5466121a561138884612bf9565b61225e7381863f0cf78358fada029b7d5fa0b84674802ef16121a56101f484612bf9565b610f9773a808208bb50e2395c63ce3fd41990d2e009e305347611c1b565b6060600a805461091e90612b2f565b6060816122af5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d957806122c381612ce4565b91506122d29050600a83612cd0565b91506122b3565b6000816001600160401b038111156122f3576122f36128f4565b6040519080825280601f01601f19166020018201604052801561231d576020820181803683370190505b5090505b841561216757612332600183612cff565b915061233f600a86612d16565b61234a906030612bb5565b60f81b81838151811061235f5761235f612d2a565b60200101906001600160f81b031916908160001a905350612381600a86612cd0565b9450612321565b610af68383836001612530565b6000306001600160a01b037f000000000000000000000000a86359c1ad8c0483a1a49b37ea3646deaf6e342a161480156123ee57507f000000000000000000000000000000000000000000000000000000000000000146145b1561241857507f60f634fa2bf86b3b49bc5dd5b912d33cbb79792a141d0c2180fab782f30b1a2f90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f04f6bbb696d18202fa06acb3f331ac3c657aeada2a9e745c7aa46c26eb88bf21828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b600081815b84518110156125285760008582815181106124de576124de612d2a565b602002602001015190508083116125045760008381526020829052604090209250612515565b600081815260208490526040902092505b508061252081612ce4565b9150506124c1565b509392505050565b6000546001600160801b03166001600160a01b03851661256257604051622e076360e81b815260040160405180910390fd5b836125805760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156126925760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561266857506126666000888488612060565b155b15612686576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612611565b50600080546001600160801b0319166001600160801b0392909216919091179055611e67565b8280546126c490612b2f565b90600052602060002090601f0160209004810192826126e6576000855561272c565b82601f106126ff57805160ff191683800117855561272c565b8280016001018555821561272c579182015b8281111561272c578251825591602001919060010190612711565b5061273892915061273c565b5090565b5b80821115612738576000815560010161273d565b6001600160e01b031981168114610b4e57600080fd5b60006020828403121561277957600080fd5b8135611aae81612751565b60005b8381101561279f578181015183820152602001612787565b838111156118285750506000910152565b600081518084526127c8816020860160208601612784565b601f01601f19169290920160200192915050565b602081526000611aae60208301846127b0565b60006020828403121561280157600080fd5b5035919050565b80356001600160a01b038116811461281f57600080fd5b919050565b60006020828403121561283657600080fd5b611aae82612808565b6000806040838503121561285257600080fd5b61285b83612808565b946020939093013593505050565b60008060006060848603121561287e57600080fd5b61288784612808565b925061289560208501612808565b9150604084013590509250925092565b600080600080600060a086880312156128bd57600080fd5b8535945060208601359350604086013560ff811681146128dc57600080fd5b94979396509394606081013594506080013592915050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612924576129246128f4565b604051601f8501601f19908116603f0116810190828211818310171561294c5761294c6128f4565b8160405280935085815286868601111561296557600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561299157600080fd5b81356001600160401b038111156129a757600080fd5b8201601f810184136129b857600080fd5b6121678482356020840161290a565b6000806000604084860312156129dc57600080fd5b8335925060208401356001600160401b03808211156129fa57600080fd5b818601915086601f830112612a0e57600080fd5b813581811115612a1d57600080fd5b8760208260051b8501011115612a3257600080fd5b6020830194508093505050509250925092565b60008060408385031215612a5857600080fd5b612a6183612808565b915060208301358015158114612a7657600080fd5b809150509250929050565b60008060008060808587031215612a9757600080fd5b612aa085612808565b9350612aae60208601612808565b92506040850135915060608501356001600160401b03811115612ad057600080fd5b8501601f81018713612ae157600080fd5b612af08782356020840161290a565b91505092959194509250565b60008060408385031215612b0f57600080fd5b612b1883612808565b9150612b2660208401612808565b90509250929050565b600181811c90821680612b4357607f821691505b60208210811415612b6457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612bc857612bc8612b9f565b500190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b6000816000190483118215151615612c1357612c13612b9f565b500290565b600060208284031215612c2a57600080fd5b5051919050565b60008351612c43818460208801612784565b835190830190612c57818360208801612784565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c93908301846127b0565b9695505050505050565b600060208284031215612caf57600080fd5b8151611aae81612751565b634e487b7160e01b600052601260045260246000fd5b600082612cdf57612cdf612cba565b500490565b6000600019821415612cf857612cf8612b9f565b5060010190565b600082821015612d1157612d11612b9f565b500390565b600082612d2557612d25612cba565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220c229ece6bf212a5b5f32e9ccdfdafd3732b91a04c6694042d667a6ec129845c964736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000c436f636b61446f6f646c65730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000643444f4f44530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f636f636b61646f6f646c65732e696f2f6170692f00000000

-----Decoded View---------------
Arg [0] : __name (string): CockaDoodles
Arg [1] : __symbol (string): CDOODS
Arg [2] : __baseURI (string): https://cockadoodles.io/api/

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 436f636b61446f6f646c65730000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 43444f4f44530000000000000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [8] : 68747470733a2f2f636f636b61646f6f646c65732e696f2f6170692f00000000


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.