Contract 0x1De5cFF9C10d7e1c01F19505151ac1b4fBAd309b

 
 
Txn Hash
Method
Block
From
To
Value
0x4ea42d49a7604958b65219653c93253aecbdffa0a42449b7b116fbb4d3997b9aSet Approval For...150773332022-07-04 17:13:21158 days 12 hrs agoENS Name cryptoladygabi.eth IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00237249 51.44285677
0x9598d2b038921d839bcd13cd6a00aca51b9c99266073eeb334294310afa25107Set Approval For...146057092022-04-17 23:21:31236 days 5 hrs agoENS Name kwikfyx.eth IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00044839 18.45920805
0x784252d0d920fb89d59031a4a80fe9cdcffb416fb8920aff38a227adcffc18b2Mint142623922022-02-23 12:46:29289 days 16 hrs ago0x9cbfb0d17d0b9f2cddccfae11583f31d6ae1185e IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0.03 Ether0.00318506 39.5292147
0xc69141bb6ee415acb00aae7c7df4a3e28518dbd2e9d61a1f48e450bb03489bd6Set Base Token U...142484332022-02-21 8:51:10291 days 20 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.0015892 42.05239647
0x3c3e3a0dfef5712103cec98df0f88dc4228c2c0445c2f2558496ebb87ba8d31aSet Approval For...142236102022-02-17 12:21:34295 days 16 hrs agoENS Name cryptopom.eth IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00235946 51.06726175
0xc2a0bb456d85fce422f810006059435dbcf4c5046745f1343953ac318b5503f4Set Approval For...142175762022-02-16 14:06:24296 days 15 hrs agoENS Name cryptoladygabi.eth IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00353696 76.55273696
0x30147f12bceadc00d17c6157dde2c0260136763bd2e972dc56ae3b290556f60eReserve Tokens142098442022-02-15 9:17:57297 days 19 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.01816537 61.82377798
0x93174efa379f5482da0cf2c7ff03d7ac82847efb5f326e6e32bedfe04d469fabReserve Tokens142096912022-02-15 8:39:52297 days 20 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.01406694 48.28610484
0x30315583c8aa6511c72d13e643b8af5b347f45e295e3f503a86db02c64db410bReserve Tokens142096012022-02-15 8:20:54297 days 20 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.01369773 46.61867837
0x50b8401734734d62e3e7bde3f7c63dbbf32f16569dddfc102c47adf72f5ee758Set Price142095982022-02-15 8:20:21297 days 20 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00153116 51.01501069
0x16bb33fc8aac4e597f5d1d7fa36439599db127753df60e420f0ee5f0d8589c80Withdraw142095912022-02-15 8:17:49297 days 20 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00189859 45.55382657
0xb5f6e97bf0aad3bf7c2a918ea7ec87c89f5abbcb9ea05e1fa822c37bbad28d63Set Approval For...141839392022-02-11 9:33:49301 days 19 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.0025925 56.11119227
0x3894df0580dcf4e5d5949797eb2b39bbcc4161d92fdd0f7d98460de2744efb15Mint141651382022-02-08 11:22:14304 days 17 hrs ago0xb5e90a3a2e4e0cc34a43ed4ebeae05712f70a5b7 IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0.01 Ether0.0050094 62.1706886
0x394d3858f7095a1e4874c5fb2165359336509044222a28899a9f1759c5be2dcfSet Approval For...141468822022-02-05 15:46:27307 days 13 hrs ago0x8d92888660a6eafe0e3e7690a08373b2414d7eb9 IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00511946 110.80382637
0xd096b3882b3a77951cc4404b4d51e067042d0370bba0780343c3c6bf4632e39cMint141409032022-02-04 17:35:24308 days 11 hrs ago0xd3dbaa39eb5006b59473ef2c265b42a8f05ea9ec IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0.01 Ether0.00874215 108.49717158
0xd8f605af06bc8e246cb1f00bdb72a9ad5dfc1c70b0452be859fb76a15c64eb4eMint141271892022-02-02 14:33:20310 days 14 hrs ago0x8d92888660a6eafe0e3e7690a08373b2414d7eb9 IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0.2 Ether0.05643224 102.91169414
0x249e6c03d9b207d4643429d4b36a44f879b6f8d214ed864daa2e43f397f518e2Mint141206972022-02-01 14:41:36311 days 14 hrs agoENS Name cryptopom.eth IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0.05 Ether0.02035886 111.46073697
0xe8dbf1eea59b90d129fe800823cd184a2f41cff7eb0f5b102a9456807c3edbb9Set Price141128952022-01-31 9:45:26312 days 19 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00268757 89.54419152
0x5a32017c7a1c524dc8f08f39209d17bc49b228225fea086bc3de9dbdd45f8a70Set Approval For...140897212022-01-27 19:57:00316 days 9 hrs ago0x8d92888660a6eafe0e3e7690a08373b2414d7eb9 IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00923384 199.85373466
0x01b4d8785559982ce3fd49dfa6742182b6742b330066435900b533c219f0126bTransfer From140222302022-01-17 9:27:30326 days 19 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00549232 87.94198364
0x1add27d77fa02eea1f3c5f8ce688437940f1a8da41e5d955ebfb3b1e69fba538Mint140194442022-01-16 23:10:02327 days 6 hrs ago0xdcb0f98de274ec36366d9b44117f963a0f7a8cb1 IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0.03 Ether0.00850456 105.54841318
0xbd9e5acad8e1a6f5932a686aa23fc40ace471f45dc1cf1285b19d4e511594bf9Mint139994282022-01-13 20:54:49330 days 8 hrs ago0x5b9ddceb15ee855fc54640b3179278eaa5a7a9c9 IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0.06 Ether0.01620005 152.69386184
0xeca99c382bd63c299a0718a907c9e39e17ce4525760a3a127a6a4adb88c7e896Transfer From139959742022-01-13 8:01:30330 days 21 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.01025195 164.15211035
0x9e3b859278e0d7d2b117e1deae45cc6967149978c0b843ee1c09be2aa8f8296cTransfer From139896632022-01-12 8:33:51331 days 20 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00849522 136.02378842
0x1b250737daaf00501cddc60ad526e7494e7b0f36c1f8677e14f7f3d21a9cf7ebTransfer From139896622022-01-12 8:33:13331 days 20 hrs ago0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b IN  0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0 Ether0.00549016 121.0834124
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0x16bb33fc8aac4e597f5d1d7fa36439599db127753df60e420f0ee5f0d8589c80142095912022-02-15 8:17:49297 days 20 hrs ago 0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b0.336 Ether
0x16bb33fc8aac4e597f5d1d7fa36439599db127753df60e420f0ee5f0d8589c80142095912022-02-15 8:17:49297 days 20 hrs ago 0x1de5cff9c10d7e1c01f19505151ac1b4fbad309bENS Name franknft.eth0.084 Ether
0x0c544e345afc5194d9fd9bf2045822b8b8b57fefc21921ab94c447e83bbe1b9b139064752021-12-30 11:46:10344 days 17 hrs ago 0x1de5cff9c10d7e1c01f19505151ac1b4fbad309b0xbd9b3a9ee05a19403e4a6dc9c1698901df5d5e8b0.264 Ether
0x0c544e345afc5194d9fd9bf2045822b8b8b57fefc21921ab94c447e83bbe1b9b139064752021-12-30 11:46:10344 days 17 hrs ago 0x1de5cff9c10d7e1c01f19505151ac1b4fbad309bENS Name franknft.eth0.066 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Dragonz

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Dragonz.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9 <0.9.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/utils/math/SafeMath.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/utils/Counters.sol";


/**
 * @title Dragonz contract
 * @dev Extends ERC721 Non-Fungible Token Standard basic implementation.
 * Optimized to no longer use ERC721Enumarable , but still provide a totalSupply() implementation.
 * @author @FrankPoncelet
 * 
 */

contract Dragonz is Ownable, ERC721 {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenSupply;
    
    uint256 public tokenPrice = 0.03 ether; 
    uint256 public tokens;
    uint public constant MAX_PURCHASE = 25;
    uint public constant MAX_RESERVE = 25;
    
    bool public saleIsActive;
    // Base URI for Meta data
    string private _baseTokenURI;
    
    address private constant FRANK = 0xF40Fd88ac59A206D009A07F8c09828a01e2ACC0d;
    
    event priceChange(address _by, uint256 price);
    event PaymentReleased(address to, uint256 amount);
    
    constructor() ERC721("Dinky Dragonz", "DDZ") {
        tokens = 1000;
        _baseTokenURI = "ipfs://Qmda1qTu9Hr87tBuBYndkqWpUj8CqTdqh2cPrf1z3p2RqL/";
        _tokenSupply.increment();
        _safeMint( FRANK, 0);
    }
    
    /**
     * Used to mint Tokens to the teamMembers
     */
    function reserveTokens(address to,uint numberOfTokens) public onlyOwner {    
        uint supply = _tokenSupply.current();
        require(supply.add(numberOfTokens) <= tokens, "Reserve would exceed max supply of Tokens");
        require(numberOfTokens <= MAX_RESERVE, "Can only mint 25 tokens at a time");
        for (uint i = 0; i < numberOfTokens; i++) {
            _safeMint(to, supply + i);
            _tokenSupply.increment();
        }
    }
    
    function reserveTokens() external onlyOwner {    
        reserveTokens(msg.sender,MAX_RESERVE);
    }

    /**
     * @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 override returns (string memory) {
        return _baseTokenURI;
    }
    /**
     * @dev Set the base token URI
     */
    function setBaseTokenURI(string memory baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }

    /**
     * Pause sale if active, make active if paused
     */
    function flipSaleState() public onlyOwner {
        saleIsActive = !saleIsActive;
    }
    
    /**     
    * Set price 
    */
    function setPrice(uint256 price) public onlyOwner {
        tokenPrice = price;
        emit priceChange(msg.sender, tokenPrice);
    }
    /**    
    * increase the supply
    */
    function addTokens(uint256 tokensToAdd) public onlyOwner {
        tokens += tokensToAdd;
    }

    function mint(uint256 numberOfTokens) external payable {
        require(numberOfTokens > 0, "numberOfNfts cannot be 0");
        require(saleIsActive, "Sale must be active to mint Tokens");
        require(numberOfTokens <= MAX_PURCHASE, "Can only mint 25 tokens at a time");
        uint256 supply = _tokenSupply.current();
        require(supply.add(numberOfTokens) <= tokens, "Purchase would exceed max supply of Tokens");
        require(tokenPrice.mul(numberOfTokens) <= msg.value, "Ether value sent is not correct");  
        for(uint256 i; i < numberOfTokens; i++){
            _safeMint( msg.sender, supply + i );
            _tokenSupply.increment();
        }
    }
    
    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Insufficent balance");
        _withdraw(FRANK, ((balance * 20) / 100));
        _withdraw(owner(), address(this).balance);
        emit PaymentReleased(owner(), balance);
    }
    
    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{ value: _amount }("");
        require(success, "Failed to widthdraw Ether");
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract.
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view returns (uint256) {
        return _tokenSupply.current();
    }
    
    // contract can recieve Ether
    fallback() external payable { }
    receive() external payable { }
}

File 2 of 13 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)

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 3 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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 4 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

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 {
        _setApprovalForAll(_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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 6 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 7 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

File 12 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"priceChange","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToAdd","type":"uint256"}],"name":"addTokens","outputs":[],"stateMutability":"nonpayable","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":"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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","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":[],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","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":"baseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","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":"tokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"stateMutability":"payable","type":"receive"}]

6080604052666a94d74f4300006008553480156200001c57600080fd5b506040518060400160405280600d81526020016c2234b735bc90223930b3b7b73d60991b8152506040518060400160405280600381526020016222222d60e91b81525062000079620000736200011b60201b60201c565b6200011f565b81516200008e906001906020850190620004c1565b508051620000a4906002906020840190620004c1565b50506103e860095550604080516060810190915260368082526200266b60208301398051620000dc91600b91602090910190620004c1565b50620000f460076200016f60201b620010941760201c565b6200011573f40fd88ac59a206d009a07f8c09828a01e2acc0d600062000178565b62000679565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80546001019055565b6200019a8282604051806020016040528060008152506200019e60201b60201c565b5050565b620001aa83836200021a565b620001b9600084848462000362565b620002155760405162461bcd60e51b81526020600482015260326024820152600080516020620026a183398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084015b60405180910390fd5b505050565b6001600160a01b038216620002725760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016200020c565b6000818152600360205260409020546001600160a01b031615620002d95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016200020c565b6001600160a01b03821660009081526004602052604081208054600192906200030490849062000567565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600062000383846001600160a01b0316620004bb60201b6200109d1760201c565b15620004af57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620003bd9033908990889088906004016200058e565b6020604051808303816000875af1925050508015620003fb575060408051601f3d908101601f19168201909252620003f89181019062000609565b60015b62000494573d8080156200042c576040519150601f19603f3d011682016040523d82523d6000602084013e62000431565b606091505b5080516200048c5760405162461bcd60e51b81526020600482015260326024820152600080516020620026a183398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016200020c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620004b3565b5060015b949350505050565b3b151590565b828054620004cf906200063c565b90600052602060002090601f016020900481019282620004f357600085556200053e565b82601f106200050e57805160ff19168380011785556200053e565b828001600101855582156200053e579182015b828111156200053e57825182559160200191906001019062000521565b506200054c92915062000550565b5090565b5b808211156200054c576000815560010162000551565b600082198211156200058957634e487b7160e01b600052601160045260246000fd5b500190565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620005dd5785810182015185820160a001528101620005bf565b82811115620005f057600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200061c57600080fd5b81516001600160e01b0319811681146200063557600080fd5b9392505050565b600181811c908216806200065157607f821691505b602082108114156200067357634e487b7160e01b600052602260045260246000fd5b50919050565b611fe280620006896000396000f3fe6080604052600436106101b95760003560e01c806378cf19e9116100eb578063a22cb4651161008f578063e985e9c511610061578063e985e9c5146104cf578063eb8d244414610518578063eff31e9e14610373578063f2fde38b1461053257005b8063a22cb4651461044f578063b88d4fde1461046f578063c6ed89901461048f578063c87b56dd146104af57005b806391b7f5ed116100c857806391b7f5ed146103f157806395d89b41146104115780639d63848a14610426578063a0712d681461043c57005b806378cf19e91461039d5780637ff9b596146103bd5780638da5cb5b146103d357005b806330176e131161015d5780636352211e1161012f5780636352211e1461033357806370a08231146103535780637146bd0814610373578063715018a61461038857005b806330176e13146102c957806334918dfd146102e95780633ccfd60b146102fe57806342842e0e1461031357005b8063095ea7b311610196578063095ea7b31461025157806318160ddd1461027157806323b872dd1461029457806327ac36c4146102b457005b806301ffc9a7146101c257806306fdde03146101f7578063081812fc1461021957005b366101c057005b005b3480156101ce57600080fd5b506101e26101dd3660046119fe565b610552565b60405190151581526020015b60405180910390f35b34801561020357600080fd5b5061020c6105a4565b6040516101ee9190611a73565b34801561022557600080fd5b50610239610234366004611a86565b610636565b6040516001600160a01b0390911681526020016101ee565b34801561025d57600080fd5b506101c061026c366004611abb565b6106d0565b34801561027d57600080fd5b506102866107e6565b6040519081526020016101ee565b3480156102a057600080fd5b506101c06102af366004611ae5565b6107f6565b3480156102c057600080fd5b506101c0610827565b3480156102d557600080fd5b506101c06102e4366004611bad565b61085e565b3480156102f557600080fd5b506101c061089f565b34801561030a57600080fd5b506101c06108dd565b34801561031f57600080fd5b506101c061032e366004611ae5565b6109f2565b34801561033f57600080fd5b5061023961034e366004611a86565b610a0d565b34801561035f57600080fd5b5061028661036e366004611bf6565b610a84565b34801561037f57600080fd5b50610286601981565b34801561039457600080fd5b506101c0610b0b565b3480156103a957600080fd5b506101c06103b8366004611abb565b610b3f565b3480156103c957600080fd5b5061028660085481565b3480156103df57600080fd5b506000546001600160a01b0316610239565b3480156103fd57600080fd5b506101c061040c366004611a86565b610c49565b34801561041d57600080fd5b5061020c610cae565b34801561043257600080fd5b5061028660095481565b6101c061044a366004611a86565b610cbd565b34801561045b57600080fd5b506101c061046a366004611c11565b610e9d565b34801561047b57600080fd5b506101c061048a366004611c4d565b610ea8565b34801561049b57600080fd5b506101c06104aa366004611a86565b610eda565b3480156104bb57600080fd5b5061020c6104ca366004611a86565b610f1e565b3480156104db57600080fd5b506101e26104ea366004611cc9565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561052457600080fd5b50600a546101e29060ff1681565b34801561053e57600080fd5b506101c061054d366004611bf6565b610ff9565b60006001600160e01b031982166380ac58cd60e01b148061058357506001600160e01b03198216635b5e139f60e01b145b8061059e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546105b390611cfc565b80601f01602080910402602001604051908101604052809291908181526020018280546105df90611cfc565b801561062c5780601f106106015761010080835404028352916020019161062c565b820191906000526020600020905b81548152906001019060200180831161060f57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166106b45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006106db82610a0d565b9050806001600160a01b0316836001600160a01b031614156107495760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106ab565b336001600160a01b0382161480610765575061076581336104ea565b6107d75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106ab565b6107e183836110a3565b505050565b60006107f160075490565b905090565b6108003382611111565b61081c5760405162461bcd60e51b81526004016106ab90611d37565b6107e1838383611208565b6000546001600160a01b031633146108515760405162461bcd60e51b81526004016106ab90611d88565b61085c336019610b3f565b565b6000546001600160a01b031633146108885760405162461bcd60e51b81526004016106ab90611d88565b805161089b90600b90602084019061194f565b5050565b6000546001600160a01b031633146108c95760405162461bcd60e51b81526004016106ab90611d88565b600a805460ff19811660ff90911615179055565b6000546001600160a01b031633146109075760405162461bcd60e51b81526004016106ab90611d88565b478061094b5760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b60448201526064016106ab565b61097f73f40fd88ac59a206d009a07f8c09828a01e2acc0d6064610970846014611dd3565b61097a9190611e08565b6113a8565b61099a6109946000546001600160a01b031690565b476113a8565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0566109cd6000546001600160a01b031690565b604080516001600160a01b03909216825260208201849052015b60405180910390a150565b6107e183838360405180602001604052806000815250610ea8565b6000818152600360205260408120546001600160a01b03168061059e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106ab565b60006001600160a01b038216610aef5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106ab565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610b355760405162461bcd60e51b81526004016106ab90611d88565b61085c600061144b565b6000546001600160a01b03163314610b695760405162461bcd60e51b81526004016106ab90611d88565b6000610b7460075490565b600954909150610b84828461149b565b1115610be45760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c79206044820152686f6620546f6b656e7360b81b60648201526084016106ab565b6019821115610c055760405162461bcd60e51b81526004016106ab90611e1c565b60005b82811015610c4357610c2384610c1e8385611e5d565b6114a7565b610c31600780546001019055565b80610c3b81611e75565b915050610c08565b50505050565b6000546001600160a01b03163314610c735760405162461bcd60e51b81526004016106ab90611d88565b600881905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add091016109e7565b6060600280546105b390611cfc565b60008111610d0d5760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f742062652030000000000000000060448201526064016106ab565b600a5460ff16610d6a5760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420546f6b656044820152616e7360f01b60648201526084016106ab565b6019811115610d8b5760405162461bcd60e51b81526004016106ab90611e1c565b6000610d9660075490565b600954909150610da6828461149b565b1115610e075760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b60648201526084016106ab565b6008543490610e1690846114c1565b1115610e645760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016106ab565b60005b828110156107e157610e7d33610c1e8385611e5d565b610e8b600780546001019055565b80610e9581611e75565b915050610e67565b61089b3383836114cd565b610eb23383611111565b610ece5760405162461bcd60e51b81526004016106ab90611d37565b610c438484848461159c565b6000546001600160a01b03163314610f045760405162461bcd60e51b81526004016106ab90611d88565b8060096000828254610f169190611e5d565b909155505050565b6000818152600360205260409020546060906001600160a01b0316610f9d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106ab565b6000610fa76115cf565b90506000815111610fc75760405180602001604052806000815250610ff2565b80610fd1846115de565b604051602001610fe2929190611e90565b6040516020818303038152906040525b9392505050565b6000546001600160a01b031633146110235760405162461bcd60e51b81526004016106ab90611d88565b6001600160a01b0381166110885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ab565b6110918161144b565b50565b80546001019055565b3b151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906110d882610a0d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b031661118a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106ab565b600061119583610a0d565b9050806001600160a01b0316846001600160a01b031614806111d05750836001600160a01b03166111c584610636565b6001600160a01b0316145b8061120057506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661121b82610a0d565b6001600160a01b0316146112835760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106ab565b6001600160a01b0382166112e55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106ab565b6112f06000826110a3565b6001600160a01b0383166000908152600460205260408120805460019290611319908490611ebf565b90915550506001600160a01b0382166000908152600460205260408120805460019290611347908490611e5d565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146113f5576040519150601f19603f3d011682016040523d82523d6000602084013e6113fa565b606091505b50509050806107e15760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f207769647468647261772045746865720000000000000060448201526064016106ab565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610ff28284611e5d565b61089b8282604051806020016040528060008152506116dc565b6000610ff28284611dd3565b816001600160a01b0316836001600160a01b0316141561152f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106ab565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6115a7848484611208565b6115b38484848461170f565b610c435760405162461bcd60e51b81526004016106ab90611ed6565b6060600b80546105b390611cfc565b6060816116025750506040805180820190915260018152600360fc1b602082015290565b8160005b811561162c578061161681611e75565b91506116259050600a83611e08565b9150611606565b60008167ffffffffffffffff81111561164757611647611b21565b6040519080825280601f01601f191660200182016040528015611671576020820181803683370190505b5090505b841561120057611686600183611ebf565b9150611693600a86611f28565b61169e906030611e5d565b60f81b8183815181106116b3576116b3611f3c565b60200101906001600160f81b031916908160001a9053506116d5600a86611e08565b9450611675565b6116e6838361180d565b6116f3600084848461170f565b6107e15760405162461bcd60e51b81526004016106ab90611ed6565b60006001600160a01b0384163b1561180257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611753903390899088908890600401611f52565b6020604051808303816000875af192505050801561178e575060408051601f3d908101601f1916820190925261178b91810190611f8f565b60015b6117e8573d8080156117bc576040519150601f19603f3d011682016040523d82523d6000602084013e6117c1565b606091505b5080516117e05760405162461bcd60e51b81526004016106ab90611ed6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611200565b506001949350505050565b6001600160a01b0382166118635760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106ab565b6000818152600360205260409020546001600160a01b0316156118c85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106ab565b6001600160a01b03821660009081526004602052604081208054600192906118f1908490611e5d565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461195b90611cfc565b90600052602060002090601f01602090048101928261197d57600085556119c3565b82601f1061199657805160ff19168380011785556119c3565b828001600101855582156119c3579182015b828111156119c35782518255916020019190600101906119a8565b506119cf9291506119d3565b5090565b5b808211156119cf57600081556001016119d4565b6001600160e01b03198116811461109157600080fd5b600060208284031215611a1057600080fd5b8135610ff2816119e8565b60005b83811015611a36578181015183820152602001611a1e565b83811115610c435750506000910152565b60008151808452611a5f816020860160208601611a1b565b601f01601f19169290920160200192915050565b602081526000610ff26020830184611a47565b600060208284031215611a9857600080fd5b5035919050565b80356001600160a01b0381168114611ab657600080fd5b919050565b60008060408385031215611ace57600080fd5b611ad783611a9f565b946020939093013593505050565b600080600060608486031215611afa57600080fd5b611b0384611a9f565b9250611b1160208501611a9f565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611b5257611b52611b21565b604051601f8501601f19908116603f01168101908282118183101715611b7a57611b7a611b21565b81604052809350858152868686011115611b9357600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611bbf57600080fd5b813567ffffffffffffffff811115611bd657600080fd5b8201601f81018413611be757600080fd5b61120084823560208401611b37565b600060208284031215611c0857600080fd5b610ff282611a9f565b60008060408385031215611c2457600080fd5b611c2d83611a9f565b915060208301358015158114611c4257600080fd5b809150509250929050565b60008060008060808587031215611c6357600080fd5b611c6c85611a9f565b9350611c7a60208601611a9f565b925060408501359150606085013567ffffffffffffffff811115611c9d57600080fd5b8501601f81018713611cae57600080fd5b611cbd87823560208401611b37565b91505092959194509250565b60008060408385031215611cdc57600080fd5b611ce583611a9f565b9150611cf360208401611a9f565b90509250929050565b600181811c90821680611d1057607f821691505b60208210811415611d3157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611ded57611ded611dbd565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611e1757611e17611df2565b500490565b60208082526021908201527f43616e206f6e6c79206d696e7420323520746f6b656e7320617420612074696d6040820152606560f81b606082015260800190565b60008219821115611e7057611e70611dbd565b500190565b6000600019821415611e8957611e89611dbd565b5060010190565b60008351611ea2818460208801611a1b565b835190830190611eb6818360208801611a1b565b01949350505050565b600082821015611ed157611ed1611dbd565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082611f3757611f37611df2565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f8590830184611a47565b9695505050505050565b600060208284031215611fa157600080fd5b8151610ff2816119e856fea2646970667358221220cfe8b324a89cd55389f46939a0067c3b4e7ef8b7628798e9bf3fe072771ec96b64736f6c634300080a0033697066733a2f2f516d646131715475394872383774427542596e646b715770556a384371546471683263507266317a33703252714c2f4552433732313a207472616e7366657220746f206e6f6e204552433732315265

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.