Contract 0x5f73f4d79580d855dee138557d1c1fb0bbb3af95

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7b921c9648f6bc4d1315375e89046d091ad45689d588467344ee063a90ecc4a4Set Approval For...286380952022-05-22 17:30:595 hrs 6 mins ago0xec76ab92e5403683e92e032520aafd6acbf7cc62 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.00143370656 31.04
0xce00a08652eef8f42a44fb2cdbb609c87f14645b7732666881ba075b2de2a9d9Set Approval For...285177022022-05-19 18:17:373 days 4 hrs ago0xe16e97d40496602c384a83c1a828a06b829c12f3 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000850185094 32.339955669
0x009baf30245a915bb8d9ed9cc6aac71fd9db25d7f06ff8f8abbb3872b8aefa85Set Approval For...285176862022-05-19 18:17:013 days 4 hrs ago0xe16e97d40496602c384a83c1a828a06b829c12f3 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.00151870929 32.880324115
0x5ca84dbc6eb51ac5b038953c9d067ab8e026bbeabee94acc27f216cf90cbda68Set Approval For...278057792022-05-01 18:46:2421 days 3 hrs ago0x5c2ef5d5d1061ad4326a6474abf37a05cae7ae15 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000065722501 2.500000044
0x069cf0bff6dee0183796d8ca4c700e2bc6d3cb610438493f5f57ee10f0db0c7dSet Approval For...277921052022-05-01 10:34:1921 days 12 hrs ago0x26735e85fed1869efbd3849a5ea6fdd3f94f3c68 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.00144848704 31.360000011
0x40e6e16da2fcd09dccdebbbc133bffa673f5df7d4172141f3ea19ec139ef65f6Set Approval For...277759232022-05-01 1:03:4121 days 21 hrs ago0x5c2ef5d5d1061ad4326a6474abf37a05cae7ae15 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000115472501 2.500000024
0xa9444d6ebb59ad193c8eb6616bee583dd3ece705f9e19ff6bc3e54c0fa9b0076Safe Transfer Fr...277352302022-04-30 0:08:2222 days 22 hrs ago0x7e4715653b563f63eeb1dae804d0387e7d2f11cc IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.0000748425 2.500000007
0x5bd37884c422e44af1962f7a3e2a7580b6d9d238e2af52b98f897d8c7337227fSet Approval For...276904762022-04-28 20:50:5724 days 1 hr ago0x992f8d6dde1dd6873a8e0b076cebde73fb09f2ae IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.0000657225 2.500000026
0x5c0c254ee1ac8470a6c966f857e6ea0f5f5031a81ee8630c3cc83645da4dd576Safe Transfer Fr...276904702022-04-28 20:50:4524 days 1 hr ago0x7e4715653b563f63eeb1dae804d0387e7d2f11cc IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000074857693 2.500507506
0x9eac6b1b73f375920e66b355c8564e1d436385588515c6e264a693a75823f08dSafe Transfer Fr...276904702022-04-28 20:50:4524 days 1 hr ago0x7e4715653b563f63eeb1dae804d0387e7d2f11cc IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.0000748425 2.500000026
0xc1cc850653d36eff8a7a38f1e11d63c67797ceceb977a42b955416103fdab09cSafe Transfer Fr...276569522022-04-28 0:32:1924 days 22 hrs ago0x848c81eb377a0328dbb9c9b8ccb6b80c11239151 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.0000748425 2.500000026
0x786dbc4030774f2b944ce10ecf537c74fe734e25c57e8439ca2502b6b86280c0Safe Transfer Fr...276209272022-04-27 2:54:2025 days 19 hrs ago0x375aab5c5d18e6854f95ebd61fb812250d142af3 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000074872996 2.500016592
0x572b221c05cbb56425ff807c66639edbe8fb067e8aa3b31688a0ba3ba524b788Safe Transfer Fr...276209272022-04-27 2:54:2025 days 19 hrs ago0x375aab5c5d18e6854f95ebd61fb812250d142af3 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000074873702 2.500040146
0x2327eaa84ef05aaa30989a464d76bdfed8d977c073f0d84ed08b4657db90b42bSafe Transfer Fr...276209272022-04-27 2:54:2025 days 19 hrs ago0x375aab5c5d18e6854f95ebd61fb812250d142af3 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.0000748725 2.500000028
0xc61919bc2f493b73e27da10eff630a8cfc6eb0ba6d371b4f1f0ed03d1a0a7ddaSet Approval For...276200632022-04-27 2:22:3225 days 20 hrs ago0xa1332968ed8044ebd3f841db72067bdcc04f275a IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000065722501 2.500000042
0xa5c325add1822938fd8031afd38d916c0b5631cb09da15f10e2b865fcfb7fc6dSafe Transfer Fr...276200442022-04-27 2:21:5425 days 20 hrs ago0x375aab5c5d18e6854f95ebd61fb812250d142af3 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000074872501 2.500000052
0xc71dd20a2f61a155e13c609a479c0ad420e6f382e6d274e157db779ca3519c3eSet Approval For...276198302022-04-27 2:13:3725 days 20 hrs ago0x18996b6b9ddbbaa0b5f0fffc2d18bd0f821447d1 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.00006572257 2.500002675
0x0cddc9daf18d5bbec174e6bed319c23ee7e969fe7eb8e8ee31c94b6f9401af1cSet Approval For...276198282022-04-27 2:13:2925 days 20 hrs ago0x18996b6b9ddbbaa0b5f0fffc2d18bd0f821447d1 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000115472597 2.500002114
0xa346a02228a1018f4db96e075619a51e8bb56a781e648d7875aaa5500ea96826Set Approval For...275122082022-04-24 8:17:3128 days 14 hrs ago0x98fbe647232874fdb70698c891925e4497749d36 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.00184756 40
0x46a6d63eaa42ea67b04fbe1cefe8db8d59eb529f73261572404ff7a01e3147f2Set Approval For...275121192022-04-24 8:14:2528 days 14 hrs ago0xd3bd0888175b5a4632b1d3cc60d8f987d2b76f18 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.00184756 40
0xf166e3dcfc3ff7ba9fe8b7c38621e6116b6b1624405f0a1d47186a31a6d3dbedSet Approval For...274761902022-04-23 9:26:4129 days 13 hrs ago0xb9d62df8643e0b6f236321f151b244c5c92d08d5 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.0013856730
0xc95a5a5167f04c2bb695185b30be758627d5cbe1ce9a658f0edc95c2583e1f7bSet Approval For...274708002022-04-23 6:10:5829 days 16 hrs ago0x469762a2f8dd6e9fac65e3e134870e4fafdd4c80 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.00138796512130.049689793
0x881b119a65f8fbac6613d2971ae1eb472a7733b48bad3f2c94da1d757b26418cSafe Transfer Fr...274501492022-04-22 17:30:2430 days 5 hrs ago0x7e4715653b563f63eeb1dae804d0387e7d2f11cc IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.000999866081 33.399007286
0x3062bb2166c0f78f37b538138a82b22495e766f2e64236f36b2ee6764981d6faSafe Transfer Fr...274499582022-04-22 17:23:4830 days 5 hrs ago0x7e4715653b563f63eeb1dae804d0387e7d2f11cc IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.002072768829 34.298625407
0x2de01b1c8f05ee740deddad4318dc75bb144b2772087ef0c47c325d955653464Safe Transfer Fr...272529502022-04-17 17:31:2935 days 5 hrs ago0xd00d5e636e3f92ce4c821b36535c85c98286d799 IN  0x5f73f4d79580d855dee138557d1c1fb0bbb3af950 MATIC0.00196288309 30.0903391
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc07710cc08e704e26a7b1145b8b7618ee2c65300371e954a1a48c38caae3f7b6218510102021-11-27 6:49:28176 days 15 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0xba149df4c4025841a4205b7198a35d4c6cb851c26b7b576eceb46a76772a3382218492732021-11-27 5:47:34176 days 16 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x8131d25d0ba5f61fa040ffc8e635ec4ae34434b4ace8c02b5b43164e0e368058218428942021-11-27 1:54:14176 days 20 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x495995b36e38d34ef25665412de42c974341c654bb2d831e05cc2dcf185ea99b218428862021-11-27 1:53:58176 days 20 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0xf5c760b9e7dc6420c252913af19423cf84d915ebc85d4c8d75ff5be5a99c0821218424672021-11-27 1:39:32176 days 20 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x912ec33329863423b6a9e7a73de4cd3d06c6f96df5263240663ae9f2032219de218424412021-11-27 1:38:40176 days 20 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x0a8a505e122c3ef6669e6e7c80fa0fb9ea4722314e4a3b77628a99ed1f1b6f9a218424332021-11-27 1:38:24176 days 20 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x3371e7d2883f2b97c6e34afc20c776d36b1dd66fab38ab1c5d7793d97c217207218424272021-11-27 1:38:08176 days 20 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x6a38fb34dc0525cb54eeda3576b2bc2461956cc4999d51776b25dac8502e2924218424132021-11-27 1:37:40176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x41f7ef4f88b4be43dc60e11fd3b1318f62ce2ee4c029b6d3a999fc55951db84c218424032021-11-27 1:37:20176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x555e5aa288890ac40e90dcc30911d64ad790497dcf019097770046123771d3d2218423732021-11-27 1:36:20176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0xbe75ec84b1a98028d852e08c5b24f6d30c38ad3091f7bf28bfcc65a86b82afee218422702021-11-27 1:32:46176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x2857bb3dba2934127d4a7ff41da584e40fc4398a59dee9cd84a814da7fc6f203218419132021-11-27 1:20:22176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x7e1eab9228dd25464c145557b9dfa992323a1f02f9bd896dfae4ad89fc094cb8218418402021-11-27 1:17:52176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x8a629646e5e5116ea9d2e6831f8ad92ec346faf6e2079ae4d885010ac10b9b51218414382021-11-27 1:04:04176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x5af04250de0e614ddfc02d59d2cffab26edf159f930d0add0d118be0d69ae6b5218414132021-11-27 1:03:14176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0xad2d2da876bad4f6c069afc12988e0fa861bf896a20a7d8f76b120897aaed75a218412472021-11-27 0:57:30176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x633d5d57fc09664c02676f940d13b4f4c45cc8eaa72f1fbcb2877e707659007e218411932021-11-27 0:55:38176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x19c79055d2161eeab5d8188ae3a13e12ba95c79ba2f3d3f74c64f7edd8dc2548218411562021-11-27 0:54:24176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x1944f7759e3168fc77eec0d7f09eac2926dc91d927c7aecc5561dd058b53a848218411502021-11-27 0:54:08176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x01e640ec300cbda33b49ad44f4753caedc514f2ce4936eb1d88a5f2afa9f7bce218410342021-11-27 0:50:12176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x2cb5ef11450ebdf994b1d943804de222f506c0d2302801bdba7c36c9af7012ae218410342021-11-27 0:50:12176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0x0b39d744b5bf85bd42753cc7371a26aa35f6233419b7e4c143581153fac03148218410332021-11-27 0:50:10176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0xf9d35715c02d7a76f042c8896e33ba18849a7ea18e57821ce551d0c59eae8314218410322021-11-27 0:50:08176 days 21 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
0xca6579b6be8808833f69db158c31e36bb5d2183f375ceaed1bbb2429652c0d7e218406572021-11-27 0:37:14176 days 22 hrs ago 0x5f73f4d79580d855dee138557d1c1fb0bbb3af950xc9ec8ad5e1e118d9e8e736ded68e12d96fba283b30 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YoconautRinkeby

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : 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 "https://bonez.mypinata.cloud/ipfs/QmXNZedQHgrGcVHcZnPo1qJxK7HPZAg78QAo773akhRVTD";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 2 of 11 : 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 3 of 11 : 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 4 of 11 : 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 5 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 11 : 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 7 of 11 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 11 : 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 9 of 11 : 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 10 of 11 : 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 11 of 11 : YoconautRinkeby.sol
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT

//import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
//learn more: https://docs.openzeppelin.com/contracts/3.x/erc721

/*
 Made by @blind_nabler with scaffold-eth
 Fork this project on github!

*/

contract YoconautRinkeby is ERC721  {

  address public constant receiver = 0xc9EC8Ad5e1e118D9E8e736DEd68E12d96fba283b;
  uint256 public price = 30 ether;

  using Counters for Counters.Counter;
  Counters.Counter private _tokenIds;

  constructor() ERC721("Yoconaut", "YOCONAUT") {
  }

  function claim() public payable returns (uint256) {
      (bool success,) = receiver.call{value:price}("");
      require( success, "could not send");
      _tokenIds.increment();
      uint256 id = _tokenIds.current();
      _mint(msg.sender, id);
      return id;
  }

  function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
          if (_i == 0) {
              return "0";
          }
          uint j = _i;
          uint len;
          while (j != 0) {
              len++;
              j /= 10;
          }
          bytes memory bstr = new bytes(len);
          uint k = len;
          while (_i != 0) {
              k = k-1;
              uint8 temp = (48 + uint8(_i - _i / 10 * 10));
              bytes1 b1 = bytes1(temp);
              bstr[k] = b1;
              _i /= 10;
          }
          return string(bstr);
   }


  function tokenURI(uint256 tokenId) public view override returns (string memory) {
      require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
      require(tokenId <= 400, 'Invalid tokenID');
      string memory base = _baseURI();
      return string(abi.encodePacked(base, '/', uint2str(tokenId), ".json"));
}
  function contractURI() public view returns (string memory) {
      return "https://bonez.mypinata.cloud/ipfs/QmUnTbsdUoPttRBMSrrDDogYtSBi3uWeT6khwh2nsJw8Dx";
  }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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"}]

60806040526801a055690d9db800006006553480156200001e57600080fd5b5060405180604001604052806008815260200167165bd8dbdb985d5d60c21b815250604051806040016040528060088152602001671653d0d3d390555560c21b81525081600090805190602001906200007992919062000098565b5080516200008f90600190602084019062000098565b5050506200017b565b828054620000a6906200013e565b90600052602060002090601f016020900481019282620000ca576000855562000115565b82601f10620000e557805160ff191683800117855562000115565b8280016001018555821562000115579182015b8281111562000115578251825591602001919060010190620000f8565b506200012392915062000127565b5090565b5b8082111562000123576000815560010162000128565b600181811c908216806200015357607f821691505b602082108114156200017557634e487b7160e01b600052602260045260246000fd5b50919050565b6116e7806200018b6000396000f3fe6080604052600436106100fe5760003560e01c806370a0823111610095578063b88d4fde11610064578063b88d4fde14610295578063c87b56dd146102b5578063e8a3d485146102d5578063e985e9c5146102ea578063f7260d3e1461033357600080fd5b806370a082311461022a57806395d89b411461024a578063a035b1fe1461025f578063a22cb4651461027557600080fd5b806323b872dd116100d157806323b872dd146101b457806342842e0e146101d45780634e71d92d146101f45780636352211e1461020a57600080fd5b806301ffc9a71461010357806306fdde0314610138578063081812fc1461015a578063095ea7b314610192575b600080fd5b34801561010f57600080fd5b5061012361011e3660046112fa565b61035b565b60405190151581526020015b60405180910390f35b34801561014457600080fd5b5061014d6103ad565b60405161012f9190611401565b34801561016657600080fd5b5061017a610175366004611332565b61043f565b6040516001600160a01b03909116815260200161012f565b34801561019e57600080fd5b506101b26101ad3660046112d1565b6104d9565b005b3480156101c057600080fd5b506101b26101cf366004611187565b6105ef565b3480156101e057600080fd5b506101b26101ef366004611187565b610620565b6101fc61063b565b60405190815260200161012f565b34801561021657600080fd5b5061017a610225366004611332565b610701565b34801561023657600080fd5b506101fc610245366004611134565b610778565b34801561025657600080fd5b5061014d6107ff565b34801561026b57600080fd5b506101fc60065481565b34801561028157600080fd5b506101b2610290366004611297565b61080e565b3480156102a157600080fd5b506101b26102b03660046111c2565b6108d3565b3480156102c157600080fd5b5061014d6102d0366004611332565b61090b565b3480156102e157600080fd5b5061014d610a0c565b3480156102f657600080fd5b50610123610305366004611155565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561033f57600080fd5b5061017a73c9ec8ad5e1e118d9e8e736ded68e12d96fba283b81565b60006001600160e01b031982166380ac58cd60e01b148061038c57506001600160e01b03198216635b5e139f60e01b145b806103a757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546103bc90611576565b80601f01602080910402602001604051908101604052809291908181526020018280546103e890611576565b80156104355780601f1061040a57610100808354040283529160200191610435565b820191906000526020600020905b81548152906001019060200180831161041857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104e482610701565b9050806001600160a01b0316836001600160a01b031614156105525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104b4565b336001600160a01b038216148061056e575061056e8133610305565b6105e05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016104b4565b6105ea8383610a2c565b505050565b6105f93382610a9a565b6106155760405162461bcd60e51b81526004016104b490611466565b6105ea838383610b91565b6105ea838383604051806020016040528060008152506108d3565b600654604051600091829173c9ec8ad5e1e118d9e8e736ded68e12d96fba283b91908381818185875af1925050503d8060008114610695576040519150601f19603f3d011682016040523d82523d6000602084013e61069a565b606091505b50509050806106dc5760405162461bcd60e51b815260206004820152600e60248201526d18dbdd5b19081b9bdd081cd95b9960921b60448201526064016104b4565b6106ea600780546001019055565b60006106f560075490565b90506103a73382610d31565b6000818152600260205260408120546001600160a01b0316806103a75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016104b4565b60006001600160a01b0382166107e35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104b4565b506001600160a01b031660009081526003602052604090205490565b6060600180546103bc90611576565b6001600160a01b0382163314156108675760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104b4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6108dd3383610a9a565b6108f95760405162461bcd60e51b81526004016104b490611466565b61090584848484610e73565b50505050565b6000818152600260205260409020546060906001600160a01b031661098a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016104b4565b6101908211156109ce5760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081d1bdad95b9251608a1b60448201526064016104b4565b60006109d8610ea6565b9050806109e484610ec6565b6040516020016109f5929190611376565b604051602081830303815290604052915050919050565b606060405180608001604052806050815260200161166260509139905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610a6182610701565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610b135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104b4565b6000610b1e83610701565b9050806001600160a01b0316846001600160a01b03161480610b595750836001600160a01b0316610b4e8461043f565b6001600160a01b0316145b80610b8957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610ba482610701565b6001600160a01b031614610c0c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016104b4565b6001600160a01b038216610c6e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104b4565b610c79600082610a2c565b6001600160a01b0383166000908152600360205260408120805460019290610ca2908490611533565b90915550506001600160a01b0382166000908152600360205260408120805460019290610cd09084906114b7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610d875760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104b4565b6000818152600260205260409020546001600160a01b031615610dec5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104b4565b6001600160a01b0382166000908152600360205260408120805460019290610e159084906114b7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610e7e848484610b91565b610e8a8484848461100b565b6109055760405162461bcd60e51b81526004016104b490611414565b606060405180608001604052806050815260200161161260509139905090565b606081610eea5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610f145780610efe816115b1565b9150610f0d9050600a836114f4565b9150610eee565b60008167ffffffffffffffff811115610f3d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610f67576020820181803683370190505b509050815b851561100257610f7d600182611533565b90506000610f8c600a886114f4565b610f9790600a611514565b610fa19088611533565b610fac9060306114cf565b905060008160f81b905080848481518110610fd757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350610ff9600a896114f4565b97505050610f6c565b50949350505050565b60006001600160a01b0384163b1561110d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061104f9033908990889088906004016113c4565b602060405180830381600087803b15801561106957600080fd5b505af1925050508015611099575060408051601f3d908101601f1916820190925261109691810190611316565b60015b6110f3573d8080156110c7576040519150601f19603f3d011682016040523d82523d6000602084013e6110cc565b606091505b5080516110eb5760405162461bcd60e51b81526004016104b490611414565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b89565b506001949350505050565b80356001600160a01b038116811461112f57600080fd5b919050565b600060208284031215611145578081fd5b61114e82611118565b9392505050565b60008060408385031215611167578081fd5b61117083611118565b915061117e60208401611118565b90509250929050565b60008060006060848603121561119b578081fd5b6111a484611118565b92506111b260208501611118565b9150604084013590509250925092565b600080600080608085870312156111d7578081fd5b6111e085611118565b93506111ee60208601611118565b925060408501359150606085013567ffffffffffffffff80821115611211578283fd5b818701915087601f830112611224578283fd5b813581811115611236576112366115e2565b604051601f8201601f19908116603f0116810190838211818310171561125e5761125e6115e2565b816040528281528a6020848701011115611276578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156112a9578182fd5b6112b283611118565b9150602083013580151581146112c6578182fd5b809150509250929050565b600080604083850312156112e3578182fd5b6112ec83611118565b946020939093013593505050565b60006020828403121561130b578081fd5b813561114e816115f8565b600060208284031215611327578081fd5b815161114e816115f8565b600060208284031215611343578081fd5b5035919050565b6000815180845261136281602086016020860161154a565b601f01601f19169290920160200192915050565b6000835161138881846020880161154a565b602f60f81b90830190815283516113a681600184016020880161154a565b64173539b7b760d91b60019290910191820152600601949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906113f79083018461134a565b9695505050505050565b60208152600061114e602083018461134a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156114ca576114ca6115cc565b500190565b600060ff821660ff84168060ff038211156114ec576114ec6115cc565b019392505050565b60008261150f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561152e5761152e6115cc565b500290565b600082821015611545576115456115cc565b500390565b60005b8381101561156557818101518382015260200161154d565b838111156109055750506000910152565b600181811c9082168061158a57607f821691505b602082108114156115ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156115c5576115c56115cc565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461160e57600080fd5b5056fe68747470733a2f2f626f6e657a2e6d7970696e6174612e636c6f75642f697066732f516d584e5a65645148677247635648635a6e506f31714a784b3748505a4167373851416f373733616b685256544468747470733a2f2f626f6e657a2e6d7970696e6174612e636c6f75642f697066732f516d556e54627364556f50747452424d53727244446f6759745342693375576554366b687768326e734a77384478a264697066735822122025ed9d82781e72c2a5e56d4597857a5c3723dfb802efbae9f7865eeb4bc2bb4464736f6c63430008040033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.