Contract 0x18d4db77f362557563051821952C9aE32a403ab8 5

 

Contract Overview

Balance:
0 Ether

EtherValue:
$0.00

Token:
Txn Hash
Method
Block
From
To
Value
0x4adc143cd2367d622b1025fa732c18dd4aff6c167674bade8b4c6e6aa03a3016Transfer From(pending)2022-08-08 10:58:593 days 7 hrs ago0x8a4b922bace8517452e5d4e46572cb8427b489e1 IN 0x18d4db77f362557563051821952c9ae32a403ab80 Ether(Pending)(Pending)
0x1e1cbc7eb63b84c4549250e8b2e4615d852fb62c6551daeec2b7da32da287dbeSet Approval For...153184402022-08-11 3:50:4014 hrs 13 mins agoENS Name eomsh.eth IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍0004444 17.‍92028982
0x1dcb3dff4f3ab93e658c68e5bc69039443dd9ca8a3d9dc283c236b662d9d7b5cSet Approval For...153095912022-08-09 18:38:551 day 23 hrs ago0x8abc16e919c61d5863b34f920dfb4dc4a97bf036 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00061257 24.‍70162998
0xaba7feecacadf9ddd8d40c028d7ce31d311cb7414979ab9d70f4240635d0b0cfSet Approval For...152996932022-08-08 5:20:453 days 12 hrs ago0x1724afd62fa47ebe07c48f657e5fa679aaaccda8 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍0004053 8.‍69255188
0xee6c4ac5703f70c644b74629de5ee9b8e1edddec16f3117731154786e68124c0Set Approval For...152993602022-08-08 4:03:123 days 14 hrs ago0xbaa5af1e0314ab791cc3c14d95021a43a2600f46 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00047972 10.‍27004304
0xa570aea717f9f831b6b99cd5093d65600d08093fe584a1d7d289d5e0707f5da3Set Approval For...152993572022-08-08 4:02:233 days 14 hrs ago0xbaa5af1e0314ab791cc3c14d95021a43a2600f46 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍0004904 10.‍5175448
0x1f9f3c2c14c324dfce0775860cac5cd84534b1b49fa831124431779a01356aa0Set Approval For...152993562022-08-08 4:02:133 days 14 hrs ago0xbaa5af1e0314ab791cc3c14d95021a43a2600f46 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00051188 10.‍96147245
0xa50aff62d61a1b56667a566c93a89abe0e4cff6e1c767f329fec6b2f2912535dSet Approval For...152988992022-08-08 2:16:043 days 15 hrs agoENS Name ultra.eth IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00070609 15.‍14342861
0x8f7a37f8ce801c50b779d5a303bbf678dc901880cbc5afb37620010346318dfbSet Approval For...152926152022-08-07 2:57:024 days 15 hrs ago0xd3cc80f4147ab7190c6380202ef58bcb220df3d7 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00032734 7.‍00782376
0x4325eba398ba2e9f5e02e63b6f514118a4b8126a29643e070e34c2615ddee547Set Approval For...152908422022-08-06 20:20:114 days 21 hrs agoENS Name ajeje.eth IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍0004371 9.‍37459243
0xa619704dd1107ac1be7282fd273c46902fd8caba2eb0cc193933b35a530059f7Set Approval For...152897622022-08-06 16:24:135 days 1 hr ago0xdf63f8642726aa5d97bd21523da944ba093f335e IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00060287 12.‍92968826
0xaf0fe5cb39252f09ead93e6a2e4201ce9a3e6ffaca2638618fe3b43ee0da63d9Set Approval For...152867712022-08-06 5:02:405 days 13 hrs ago0xfdb69c1d4084a40077dcf27b9799e24407b7cdd7 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍0003369 7.‍22557894
0x45a55ba2f71b0df4d46a24371e86b30f796b6411c99fede34b645dcf4ff7a07fSet Approval For...152839902022-08-05 18:39:385 days 23 hrs ago0x7ecf9b94cf4f7e04af457908a96f5575f765bc06 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00064625 13.‍86019239
0x0e4ee2cf823d9ee64032a562e619a6cb08224f4a8135e097f8ddef48261476b5Transfer From152832552022-08-05 15:57:006 days 2 hrs agoENS Name ste.eth IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00179233 20.‍96789606
0x13fbd7ff5c891593140a32df4781c021dfd42c10ff754df551870979b9bd160bTransfer From152831312022-08-05 15:24:096 days 2 hrs ago0x41fb4d759ecdeea803fa49653a83e94e66cdfc32 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00136633 14.‍25778523
0xf95cef0ad61666f72231ab6320623049479e6fa753eada4f8f8ee6906fb50fe3Set Approval For...152809152022-08-05 7:16:026 days 10 hrs ago0x7a258cf0985300aac919c2e8714e588e5c26dfe6 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00053938 11.‍56807663
0x8df6da32309428d1f2bf2334ce91c12310cd96edb14b6b51e07181980eba9802Set Approval For...152778722022-08-04 19:57:066 days 22 hrs ago0xce41ef6500d469f17224959be74e0cbc4f4815ea IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00062106 13.‍31991317
0x84fc5eef01028e8c98def9707d498491ee3b1e03889ee99d8ead13c68db93f39Set Approval For...152648932022-08-02 19:12:108 days 22 hrs ago0x05cbfb4688f53601d515624c6e65df0fb8ca5769 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00064413 13.‍81459913
0xe19f168acfda99f99ab9c48b5cc2395bc1bfb78f0e548f4083eb31e2f407e2d0Set Approval For...152632522022-08-02 12:57:549 days 5 hrs ago0x36076f5e42ef4842d033fa67de51fea195d5570f IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00053369 11.‍44598319
0xf766316414600ffd64c416783d581feefe2d778fe505d19fc0d462cedc6c34f7Transfer From152527282022-07-31 21:45:3110 days 20 hrs ago0x8a1a9e7e73cad54469895937382e5d522a86ec36 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00105814 11.‍98625969
0x6c5137bb8c5d30f57542dff7924cd80d5c52d0cf0423d85eb71e1bd0ec095c44Set Approval For...152490122022-07-31 8:01:5311 days 10 hrs ago0xd1380a4e089950ee3a23d818e24ccbbef003a432 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00018914 7.‍62709824
0x996ee572197ff78189ed27805e6a2fafe4d54fcdae5cbd5179308d42206d3bc5Set Approval For...152456392022-07-30 19:18:4811 days 22 hrs agoENS Name nftphunk.eth IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00029611 6.‍35075055
0x5bc862d93293cdaa920c8238e34436de950c01d8af406b7940bdcdeea80bd865Set Approval For...152433812022-07-30 10:57:2312 days 7 hrs agoENS Name purplesky.eth IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00027938 5.‍99183795
0xa5b5d9b1e89f0d2b409b6b74ec4ca16c6883a25ed4fb50a7b9354c6c7a87974dSet Approval For...152322962022-07-28 17:18:5714 days 45 mins ago0xbdbfe5f4d8775472b0398f88fc378ec2e5518558 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍00137816 55.‍57334376
0x73e67e487a13581f907756e47d308d3a08a695c4483db9efc25db920372af64eSet Approval For...152322952022-07-28 17:18:5314 days 45 mins ago0xbdbfe5f4d8775472b0398f88fc378ec2e5518558 IN  0x18d4db77f362557563051821952c9ae32a403ab80 Ether0.‍0012402 50.‍01012465
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x4a9876d9a614eeee90da57cf48b25514ef535021575c5afc923dcf5e91e8f38a129555372021-08-04 0:30:14372 days 17 hrs ago 0x18d4db77f362557563051821952c9ae32a403ab8ENS Name kittybutts.eth193.‍62 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KittyButts

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 500 runs

Other Settings:
byzantium EvmVersion
File 1 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 3 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 5 of 15 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 6 of 15 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 7 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 tokenId);

    /**
     * @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 8 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 10 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 11 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 15 : KittyButts.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// @title: The KittyButts
// @author: KittyButt G

//@@@@@@@@@@@@@@@@@@@@@@@[email protected]@@@@@@@@@@@@@@@@@@@@@@@//
//@01011001 01001000 00100000 01000110 01000100 [email protected]//
//@01010001 01011000 01001001 01010010 01010001 [email protected]//
//@01000001 00100000 01000100 01001010 00100000 [email protected]//
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@//
//@@@@@@@@@@@@@#S?*****?%#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@//
//@@@@@@@@@@%**+++++++++****[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@//
//@@@@@@@@S+*++;::;;;:;;++++*[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@//
//@@@@@@@@?**;:;+*****;;:++++*[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@//
//@@@@@@@#***;+*********;;;++*%@@@@@@@@@@@@@@@@@@@@@@@@@@//
//@@@@@@@@@*++;*?S#@@%**+:;+**[email protected]@@S*@@@@@@@@@@@@@@@@@@@@@//
//@@@@@@@@@@S??*@@@@@@**++;+*[email protected]@@@#*;%@@@@%[email protected]@@@@@@@@@@@@//
//@@@@@@@@@@@@@@@@@@@S**;:[email protected]@@@@#?+;;*%S%*@@@@@@@@@@@@@//
//@@@@@@@@@@@@@@@@@@@?*+;[email protected]@@?+%%,:+:?++,[email protected]@@@@@@@@@@@@//
//@@@@@@@@@@@@@@@@@%:+*+*%;:%@@#S;:;.:;::::,.%@@@@@@@@@@@//
//@@@@@@@@@@@@@@@%...,+,......,S+............:@@@@@@@@@@@//
//@@@@@@@@@@@@@@#,...?,.........:%,.........*@@@@@@@@@@@@//
//@@@@@@@@@@@@@@S................,S?:,,...:*@@@@@@@@@@@@@//
//@@@@@@@@@@@@@@%.................,:.......,@@@@@@@@@@@@@//
//@@@@@@@@@@@@@@*..........................,@@@@@@@@@@@@@//
//@@@@@@@@@@@@@S,,,,,,,,,,,,,,,,,,,,,,,,,,[email protected]@@@@@@@@@@@@//
//@@@@@@@@@@@@?,,,,::,,,,,,,,,,,:,:*,,,,,,;?;@@@@@@@@@@@@//
//@@@@@@@@@@S,,::::,,:[email protected]?:,:::::,;S:,,,,:?;,,[email protected]@@@@@@@@@@//
//@@@@@@@@@#::::::::+#@@@@@*::::::;*:%@@@%:::::[email protected]@@@@@@@@//
//@@@@@@@@@@@+;;:[email protected]@@@@@@%*@@*;;;;+***@@[email protected]@@#S%%#@@@@@@@@//
//@@@@@@####@@@#S#@##########@@S%[email protected]@####@@@@@@@@@@@@@@//
//@@@@@@@@@############################@@@@@@@@@@@@@@@@@@//
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@//
//@01000100 01010000 01010100 01001100 01001111 [email protected]//
//@00100000 01010110 01000100 01010001 01000011 [email protected]//
//@00100010 01001001 01010010 01010001 01010001 [email protected]//
//@@@@@@@@@@@@@@@@@@@@@@@[email protected]@@@@@@@@@@@@@@@@@@@@@@@//


import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";

contract KittyButts is ERC721, ERC721Enumerable, Ownable {

    using SafeMath for uint256;
    uint256 public startingIndexBlock;
    uint256 public startingIndex;
    uint public constant maxPurchase = 10;
    uint256 public MAX_KITTIES;
    bool public saleIsActive = false;
    uint256 public REVEAL_TIMESTAMP;

    uint256 private _reserved = 320;
    uint256 private _kittyPrice = 20000000000000000; //0.02 ETH
    string private baseURI;

    constructor(string memory name, string memory symbol, uint256 maxNftSupply, uint256 saleStart) ERC721(name, symbol) {
        MAX_KITTIES = maxNftSupply;     
        REVEAL_TIMESTAMP = saleStart + (86400 * 7); //7 days
    }
    
    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }
    
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

	function withdraw() public onlyOwner {
		uint256 balance = address(this).balance;
		payable(msg.sender).transfer(balance);
	}    

    function reserveTokens(uint256 amount) public onlyOwner {    
        require( amount <= _reserved, "Reserve limit reached" );

        uint supply = totalSupply();
        for (uint i; i < amount; i++) {
            _safeMint(msg.sender, supply + i);
        }

        _reserved -= amount;
    }

    function setPrice(uint256 _newPrice) public onlyOwner() {
        _kittyPrice = _newPrice;
    }

    function getPrice() public view returns (uint256){
        return _kittyPrice;
    }

    function mintKittyButt(uint numberOfTokens) public payable {
        require(saleIsActive, "Sale must be active to mint a Kitty Butt");
        require(numberOfTokens <= maxPurchase, "Can only mint 10 tokens at a time");
        require(totalSupply().add(numberOfTokens) <= MAX_KITTIES, "Purchase would exceed max supply of Kitty Butts");
        require(_kittyPrice.mul(numberOfTokens) <= msg.value, "Ether value sent is not correct");
        
        for(uint i = 0; i < numberOfTokens; i++) {
            uint mintIndex = totalSupply();
            if (totalSupply() < MAX_KITTIES) {
                _safeMint(msg.sender, mintIndex);
            }
        }

        //We set the starting index only once all the presale time has elapsed or when the last token has sold
        if (startingIndexBlock == 0 && (totalSupply() == MAX_KITTIES || block.timestamp >= REVEAL_TIMESTAMP)) {
            startingIndexBlock = block.number;
        } 
    }

    function setRevealTimestamp(uint256 revealTimeStamp) public onlyOwner {
        REVEAL_TIMESTAMP = revealTimeStamp;
    }     

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

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }
    
    function setBaseURI(string memory newBaseURI) public onlyOwner {
        baseURI = newBaseURI;
    }

    //Credit to 0xc2c747e0f7004f9e8817db2ca4997657a7746928
    function setStartingIndex() public {
        require(startingIndex == 0, "Starting index is already set");
        require(startingIndexBlock != 0, "Starting index block must be set");
        
        startingIndex = uint(blockhash(startingIndexBlock)) % MAX_KITTIES;
        // Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes)
        if (block.number.sub(startingIndexBlock) > 255) {
            startingIndex = uint(blockhash(block.number - 1)) % MAX_KITTIES;
        }
        // Prevent default sequence
        if (startingIndex == 0) {
            startingIndex = startingIndex.add(1);
        }
    }

    function emergencySetStartingIndexBlock() public onlyOwner {
        require(startingIndex == 0, "Starting index is already set");
        
        startingIndexBlock = block.number;
    }    

}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxNftSupply","type":"uint256"},{"internalType":"uint256","name":"saleStart","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_KITTIES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEAL_TIMESTAMP","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":"emergencySetStartingIndexBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintKittyButt","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"revealTimeStamp","type":"uint256"}],"name":"setRevealTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStartingIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndexBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600e805460ff1916905561014060105566470de4df8200006011553480156200002c57600080fd5b5060405162002d3e38038062002d3e8339810160408190526200004f9162000276565b8351849084906200006890600090602085019062000125565b5080516200007e90600190602084019062000125565b505050620000ad6200009e620000cf640100000000026401000000009004565b640100000000620000d3810204565b600d829055620000c18162093a80620002ed565b600f5550620003b092505050565b3390565b600a8054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000133906200032b565b90600052602060002090601f016020900481019282620001575760008555620001a2565b82601f106200017257805160ff1916838001178555620001a2565b82800160010185558215620001a2579182015b82811115620001a257825182559160200191906001019062000185565b50620001b0929150620001b4565b5090565b5b80821115620001b05760008155600101620001b5565b600082601f830112620001dc578081fd5b81516001604060020a0380821115620001f957620001f962000381565b6040516020601f8401601f191682018101838111838210171562000221576200022162000381565b604052838252858401810187101562000238578485fd5b8492505b838310156200025b57858301810151828401820152918201916200023c565b838311156200026c57848185840101525b5095945050505050565b600080600080608085870312156200028c578384fd5b84516001604060020a0380821115620002a3578586fd5b620002b188838901620001cb565b95506020870151915080821115620002c7578485fd5b50620002d687828801620001cb565b604087015160609097015195989097509350505050565b6000821982111562000326577f4e487b710000000000000000000000000000000000000000000000000000000081526011600452602481fd5b500190565b6002810460018216806200034057607f821691505b602082108114156200037b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61297e80620003c06000396000f3fe608060405260043610610221576000357c010000000000000000000000000000000000000000000000000000000090048063715018a611610135578063b88d4fde116100bd578063e36d64981161008c578063e36d649814610589578063e985e9c51461059e578063e9866550146105be578063eb8d2444146105d3578063f2fde38b146105e857610221565b8063b88d4fde14610514578063c87b56dd14610534578063cb774d4714610554578063d031370b1461056957610221565b806391b7f5ed1161010457806391b7f5ed1461049557806395d89b41146104b5578063977b055b146104ca57806398d5fdca146104df578063a22cb465146104f457610221565b8063715018a6146104435780637d17fcbe1461045857806384d31e7a1461046d5780638da5cb5b1461048057610221565b80632f745c59116101b85780634f6ccce7116101875780634f6ccce7146103ae57806355f804b3146103ce5780636352211e146103ee5780636dd9a49d1461040e57806370a082311461042357610221565b80632f745c591461034457806334918dfd146103645780633ccfd60b1461037957806342842e0e1461038e57610221565b8063095ea7b3116101f4578063095ea7b3146102cd57806318160ddd146102ed57806318e20a381461030f57806323b872dd1461032457610221565b8063018a2c371461022657806301ffc9a71461024857806306fdde031461027e578063081812fc146102a0575b600080fd5b34801561023257600080fd5b50610246610241366004611ede565b610608565b005b34801561025457600080fd5b50610268610263366004611e60565b610658565b6040516102759190611fa1565b60405180910390f35b34801561028a57600080fd5b5061029361066b565b6040516102759190611fac565b3480156102ac57600080fd5b506102c06102bb366004611ede565b6106fd565b6040516102759190611f51565b3480156102d957600080fd5b506102466102e8366004611e37565b610743565b3480156102f957600080fd5b506103026107e1565b604051610275919061279e565b34801561031b57600080fd5b506103026107e7565b34801561033057600080fd5b5061024661033f366004611d49565b6107ed565b34801561035057600080fd5b5061030261035f366004611e37565b610828565b34801561037057600080fd5b5061024661087d565b34801561038557600080fd5b506102466108d3565b34801561039a57600080fd5b506102466103a9366004611d49565b610949565b3480156103ba57600080fd5b506103026103c9366004611ede565b610964565b3480156103da57600080fd5b506102466103e9366004611e98565b6109c9565b3480156103fa57600080fd5b506102c0610409366004611ede565b610a1e565b34801561041a57600080fd5b50610302610a56565b34801561042f57600080fd5b5061030261043e366004611cfd565b610a5c565b34801561044f57600080fd5b50610246610aa3565b34801561046457600080fd5b50610246610af1565b61024661047b366004611ede565b610b5c565b34801561048c57600080fd5b506102c0610c82565b3480156104a157600080fd5b506102466104b0366004611ede565b610c91565b3480156104c157600080fd5b50610293610cd8565b3480156104d657600080fd5b50610302610ce7565b3480156104eb57600080fd5b50610302610cec565b34801561050057600080fd5b5061024661050f366004611dfd565b610cf2565b34801561052057600080fd5b5061024661052f366004611d84565b610dc3565b34801561054057600080fd5b5061029361054f366004611ede565b610e05565b34801561056057600080fd5b50610302610e8b565b34801561057557600080fd5b50610246610584366004611ede565b610e91565b34801561059557600080fd5b50610302610f50565b3480156105aa57600080fd5b506102686105b9366004611d17565b610f56565b3480156105ca57600080fd5b50610246610f84565b3480156105df57600080fd5b5061026861102b565b3480156105f457600080fd5b50610246610603366004611cfd565b611034565b6106106110a8565b600160a060020a0316610621610c82565b600160a060020a0316146106535760405160e560020a62461bcd02815260040161064a90612472565b60405180910390fd5b600f55565b6000610663826110ac565b90505b919050565b60606000805461067a90612835565b80601f01602080910402602001604051908101604052809291908181526020018280546106a690612835565b80156106f35780601f106106c8576101008083540402835291602001916106f3565b820191906000526020600020905b8154815290600101906020018083116106d657829003601f168201915b5050505050905090565b6000610708826110ff565b6107275760405160e560020a62461bcd02815260040161064a90612415565b50600090815260046020526040902054600160a060020a031690565b600061074e82610a1e565b905080600160a060020a031683600160a060020a031614156107855760405160e560020a62461bcd02815260040161064a90612598565b80600160a060020a03166107976110a8565b600160a060020a031614806107b357506107b3816105b96110a8565b6107d25760405160e560020a62461bcd02815260040161064a906122c9565b6107dc838361111c565b505050565b60085490565b600f5481565b6107fe6107f86110a8565b82611197565b61081d5760405160e560020a62461bcd02815260040161064a9061262a565b6107dc83838361121f565b600061083383610a5c565b82106108545760405160e560020a62461bcd02815260040161064a90611fbf565b50600160a060020a03919091166000908152600660209081526040808320938352929052205490565b6108856110a8565b600160a060020a0316610896610c82565b600160a060020a0316146108bf5760405160e560020a62461bcd02815260040161064a90612472565b600e805460ff19811660ff90911615179055565b6108db6110a8565b600160a060020a03166108ec610c82565b600160a060020a0316146109155760405160e560020a62461bcd02815260040161064a90612472565b604051303190339082156108fc029083906000818181858888f19350505050158015610945573d6000803e3d6000fd5b5050565b6107dc83838360405180602001604052806000815250610dc3565b600061096e6107e1565b821061098f5760405160e560020a62461bcd02815260040161064a90612687565b600882815481106109b757600080516020612929833981519152600052603260045260246000fd5b90600052602060002001549050919050565b6109d16110a8565b600160a060020a03166109e2610c82565b600160a060020a031614610a0b5760405160e560020a62461bcd02815260040161064a90612472565b8051610945906012906020840190611bdd565b600081815260026020526040812054600160a060020a0316806106635760405160e560020a62461bcd02815260040161064a90612383565b600d5481565b6000600160a060020a038216610a875760405160e560020a62461bcd02815260040161064a90612326565b50600160a060020a031660009081526003602052604090205490565b610aab6110a8565b600160a060020a0316610abc610c82565b600160a060020a031614610ae55760405160e560020a62461bcd02815260040161064a90612472565b610aef600061135f565b565b610af96110a8565b600160a060020a0316610b0a610c82565b600160a060020a031614610b335760405160e560020a62461bcd02815260040161064a90612472565b600c5415610b565760405160e560020a62461bcd02815260040161064a90612292565b43600b55565b600e5460ff16610b815760405160e560020a62461bcd02815260040161064a90612235565b600a811115610ba55760405160e560020a62461bcd02815260040161064a90612741565b600d54610bba82610bb46107e1565b906113be565b1115610bdb5760405160e560020a62461bcd02815260040161064a906126e4565b6011543490610bea90836113ca565b1115610c0b5760405160e560020a62461bcd02815260040161064a906121a1565b60005b81811015610c50576000610c206107e1565b9050600d54610c2d6107e1565b1015610c3d57610c3d33826113d6565b5080610c4881612877565b915050610c0e565b50600b54158015610c755750600d54610c676107e1565b1480610c755750600f544210155b15610c7f5743600b555b50565b600a54600160a060020a031690565b610c996110a8565b600160a060020a0316610caa610c82565b600160a060020a031614610cd35760405160e560020a62461bcd02815260040161064a90612472565b601155565b60606001805461067a90612835565b600a81565b60115490565b610cfa6110a8565b600160a060020a031682600160a060020a03161415610d2e5760405160e560020a62461bcd02815260040161064a9061216a565b8060056000610d3b6110a8565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d7f6110a8565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610db79190611fa1565b60405180910390a35050565b610dd4610dce6110a8565b83611197565b610df35760405160e560020a62461bcd02815260040161064a9061262a565b610dff848484846113f0565b50505050565b6060610e10826110ff565b610e2f5760405160e560020a62461bcd02815260040161064a9061253b565b6000610e39611426565b90506000815111610e595760405180602001604052806000815250610e84565b80610e6384611435565b604051602001610e74929190611f22565b6040516020818303038152906040525b9392505050565b600c5481565b610e996110a8565b600160a060020a0316610eaa610c82565b600160a060020a031614610ed35760405160e560020a62461bcd02815260040161064a90612472565b601054811115610ef85760405160e560020a62461bcd02815260040161064a90612504565b6000610f026107e1565b905060005b82811015610f3457610f2233610f1d83856127a7565b6113d6565b80610f2c81612877565b915050610f07565b508160106000828254610f4791906127f2565b90915550505050565b600b5481565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600c5415610fa75760405160e560020a62461bcd02815260040161064a90612292565b600b54610fc95760405160e560020a62461bcd02815260040161064a906125f5565b600d54600b54610fda919040612892565b600c55600b5460ff90610fee9043906115b1565b111561101157600d546110026001436127f2565b61100d919040612892565b600c555b600c54610aef57600c546110269060016113be565b600c55565b600e5460ff1681565b61103c6110a8565b600160a060020a031661104d610c82565b600160a060020a0316146110765760405160e560020a62461bcd02815260040161064a90612472565b600160a060020a03811661109f5760405160e560020a62461bcd02815260040161064a90612079565b610c7f8161135f565b3390565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1982167f780e9d630000000000000000000000000000000000000000000000000000000014806106635750610663826115bd565b600090815260026020526040902054600160a060020a0316151590565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038416908117909155819061115e82610a1e565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006111a2826110ff565b6111c15760405160e560020a62461bcd02815260040161064a906121d8565b60006111cc83610a1e565b905080600160a060020a031684600160a060020a03161480611207575083600160a060020a03166111fc846106fd565b600160a060020a0316145b8061121757506112178185610f56565b949350505050565b82600160a060020a031661123282610a1e565b600160a060020a03161461125b5760405160e560020a62461bcd02815260040161064a906124a7565b600160a060020a0382166112845760405160e560020a62461bcd02815260040161064a9061210d565b61128f838383611659565b61129a60008261111c565b600160a060020a03831660009081526003602052604081208054600192906112c39084906127f2565b9091555050600160a060020a03821660009081526003602052604081208054600192906112f19084906127a7565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a8054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610e8482846127a7565b6000610e8482846127d3565b610945828260405180602001604052806000815250611664565b6113fb84848461121f565b6114078484848461169a565b610dff5760405160e560020a62461bcd02815260040161064a9061201c565b60606012805461067a90612835565b606081611476575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610666565b8160005b81156114a0578061148a81612877565b91506114999050600a836127bf565b915061147a565b60008167ffffffffffffffff8111156114d057600080516020612929833981519152600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114fa576020820181803683370190505b5090505b84156112175761150f6001836127f2565b915061151c600a86612892565b6115279060306127a7565b7f01000000000000000000000000000000000000000000000000000000000000000281838151811061157057600080516020612929833981519152600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506115aa600a866127bf565b94506114fe565b6000610e8482846127f2565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061164a57507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610663575061066382611802565b6107dc838383611849565b61166e83836118d2565b61167b600084848461169a565b6107dc5760405160e560020a62461bcd02815260040161064a9061201c565b60006116ae84600160a060020a03166119c4565b156117f75783600160a060020a031663150b7a026116ca6110a8565b8786866040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016117089493929190611f65565b602060405180830381600087803b15801561172257600080fd5b505af1925050508015611752575060408051601f3d908101601f1916820190925261174f91810190611e7c565b60015b6117af573d808015611780576040519150601f19603f3d011682016040523d82523d6000602084013e611785565b606091505b5080516117a75760405160e560020a62461bcd02815260040161064a9061201c565b805181602001fd5b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f150b7a0200000000000000000000000000000000000000000000000000000000149050611217565b506001949350505050565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6118548383836107dc565b600160a060020a0383166118705761186b816119ca565b611893565b81600160a060020a031683600160a060020a031614611893576118938382611a0e565b600160a060020a0382166118af576118aa81611aab565b6107dc565b82600160a060020a031682600160a060020a0316146107dc576107dc8282611b99565b600160a060020a0382166118fb5760405160e560020a62461bcd02815260040161064a906123e0565b611904816110ff565b156119245760405160e560020a62461bcd02815260040161064a906120d6565b61193060008383611659565b600160a060020a03821660009081526003602052604081208054600192906119599084906127a7565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611a1b84610a5c565b611a2591906127f2565b600083815260076020526040902054909150808214611a7857600160a060020a03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b506000918252600760209081526040808420849055600160a060020a039094168352600681528383209183525290812055565b600854600090611abd906001906127f2565b60008381526009602052604081205460088054939450909284908110611afa57600080516020612929833981519152600052603260045260246000fd5b906000526020600020015490508060088381548110611b3057600080516020612929833981519152600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611b7d57600080516020612929833981519152600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611ba483610a5c565b600160a060020a039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054611be990612835565b90600052602060002090601f016020900481019282611c0b5760008555611c51565b82601f10611c2457805160ff1916838001178555611c51565b82800160010185558215611c51579182015b82811115611c51578251825591602001919060010190611c36565b50611c5d929150611c61565b5090565b5b80821115611c5d5760008155600101611c62565b600067ffffffffffffffff80841115611c9157611c916128e0565b604051601f8501601f191681016020018281118282101715611cb557611cb56128e0565b604052848152915081838501861015611ccd57600080fd5b8484602083013760006020868301015250509392505050565b8035600160a060020a038116811461066657600080fd5b600060208284031215611d0e578081fd5b610e8482611ce6565b60008060408385031215611d29578081fd5b611d3283611ce6565b9150611d4060208401611ce6565b90509250929050565b600080600060608486031215611d5d578081fd5b611d6684611ce6565b9250611d7460208501611ce6565b9150604084013590509250925092565b60008060008060808587031215611d99578081fd5b611da285611ce6565b9350611db060208601611ce6565b925060408501359150606085013567ffffffffffffffff811115611dd2578182fd5b8501601f81018713611de2578182fd5b611df187823560208401611c76565b91505092959194509250565b60008060408385031215611e0f578182fd5b611e1883611ce6565b915060208301358015158114611e2c578182fd5b809150509250929050565b60008060408385031215611e49578182fd5b611e5283611ce6565b946020939093013593505050565b600060208284031215611e71578081fd5b8135610e84816128fd565b600060208284031215611e8d578081fd5b8151610e84816128fd565b600060208284031215611ea9578081fd5b813567ffffffffffffffff811115611ebf578182fd5b8201601f81018413611ecf578182fd5b61121784823560208401611c76565b600060208284031215611eef578081fd5b5035919050565b60008151808452611f0e816020860160208601612809565b601f01601f19169290920160200192915050565b60008351611f34818460208801612809565b835190830190611f48818360208801612809565b01949350505050565b600160a060020a0391909116815260200190565b6000600160a060020a03808716835280861660208401525083604083015260806060830152611f976080830184611ef6565b9695505050505050565b901515815260200190565b600060208252610e846020830184611ef6565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f53616c65206d7573742062652061637469766520746f206d696e742061204b6960408201527f7474792042757474000000000000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f5374617274696e6720696e64657820697320616c726561647920736574000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526015908201527f52657365727665206c696d697420726561636865640000000000000000000000604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f5374617274696e6720696e64657820626c6f636b206d75737420626520736574604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f507572636861736520776f756c6420657863656564206d617820737570706c7960408201527f206f66204b697474792042757474730000000000000000000000000000000000606082015260800190565b60208082526021908201527f43616e206f6e6c79206d696e7420313020746f6b656e7320617420612074696d60408201527f6500000000000000000000000000000000000000000000000000000000000000606082015260800190565b90815260200190565b600082198211156127ba576127ba6128a6565b500190565b6000826127ce576127ce6128c3565b500490565b60008160001904831182151516156127ed576127ed6128a6565b500290565b600082821015612804576128046128a6565b500390565b60005b8381101561282457818101518382015260200161280c565b83811115610dff5750506000910152565b60028104600182168061284957607f821691505b6020821081141561287157600080516020612929833981519152600052602260045260246000fd5b50919050565b600060001982141561288b5761288b6128a6565b5060010190565b6000826128a1576128a16128c3565b500690565b600080516020612929833981519152600052601160045260246000fd5b600080516020612929833981519152600052601260045260246000fd5b600080516020612929833981519152600052604160045260246000fd5b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1981168114610c7f57600080fdfe4e487b7100000000000000000000000000000000000000000000000000000000a26469706673582212204be792fc57aaee86ea3fa35a511b3cae9831a35a5dcb775f4f507f1f39b5e60464736f6c63430008000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000061048470000000000000000000000000000000000000000000000000000000000000000e546865204b69747479427574747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054255545453000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000061048470000000000000000000000000000000000000000000000000000000000000000e546865204b69747479427574747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054255545453000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): The KittyButts
Arg [1] : symbol (string): BUTTS
Arg [2] : maxNftSupply (uint256): 10000
Arg [3] : saleStart (uint256): 1627686000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [3] : 0000000000000000000000000000000000000000000000000000000061048470
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [5] : 546865204b697474794275747473000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 4255545453000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.