ETH Price: $3,527.94 (-1.74%)
Gas: 4 Gwei

Contract

0x2F14F1b6c350C41801b2b7BA9445670D7E2FFc70
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00
Transaction Hash
Method
Block
From
To
Value
Set Approval For...200463072024-06-08 9:46:239 days ago1717839983IN
The Real Goat Society: GS Token
0 ETH0.000158056.02109035
Set Approval For...200463012024-06-08 9:45:119 days ago1717839911IN
The Real Goat Society: GS Token
0 ETH0.000149886.18102167
Set Approval For...200124872024-06-03 16:27:5913 days ago1717432079IN
The Real Goat Society: GS Token
0 ETH0.0007709716.73199985
Set Approval For...199843932024-05-30 18:18:1117 days ago1717093091IN
The Real Goat Society: GS Token
0 ETH0.0009798621.26536866
Set Approval For...199465472024-05-25 11:19:1123 days ago1716635951IN
The Real Goat Society: GS Token
0 ETH0.000187654.07246359
Set Approval For...199381002024-05-24 6:57:4724 days ago1716533867IN
The Real Goat Society: GS Token
0 ETH0.000385838.37341079
Set Approval For...199016032024-05-19 4:28:4729 days ago1716092927IN
The Real Goat Society: GS Token
0 ETH0.000080823.33300931
Set Approval For...198887702024-05-17 9:22:3531 days ago1715937755IN
The Real Goat Society: GS Token
0 ETH0.000325627.06687533
Set Approval For...198772032024-05-15 18:33:5932 days ago1715798039IN
The Real Goat Society: GS Token
0 ETH0.000395468.58247895
Set Approval For...198610252024-05-13 12:14:1135 days ago1715602451IN
The Real Goat Society: GS Token
0 ETH0.000148726.13288894
Set Approval For...198566302024-05-12 21:29:5935 days ago1715549399IN
The Real Goat Society: GS Token
0 ETH0.000171073.71264843
Set Approval For...198561402024-05-12 19:51:2335 days ago1715543483IN
The Real Goat Society: GS Token
0 ETH0.00016973.68294874
Set Approval For...198299732024-05-09 4:02:2339 days ago1715227343IN
The Real Goat Society: GS Token
0 ETH0.000184354.00084285
Transfer From198047832024-05-05 15:27:3542 days ago1714922855IN
The Real Goat Society: GS Token
0 ETH0.000439527.62
Set Approval For...197560132024-04-28 19:51:1149 days ago1714333871IN
The Real Goat Society: GS Token
0 ETH0.000352367.63516823
Set Approval For...197468672024-04-27 13:08:5951 days ago1714223339IN
The Real Goat Society: GS Token
0 ETH0.000185857.66405516
Set Approval For...197117522024-04-22 15:11:4755 days ago1713798707IN
The Real Goat Society: GS Token
0 ETH0.0011570225.11005079
Set Approval For...196264412024-04-10 16:32:3567 days ago1712766755IN
The Real Goat Society: GS Token
0 ETH0.0011048523.97797082
Transfer From195852312024-04-04 21:59:4773 days ago1712267987IN
The Real Goat Society: GS Token
0 ETH0.0013238222.95116205
Set Approval For...195712742024-04-02 23:07:5975 days ago1712099279IN
The Real Goat Society: GS Token
0 ETH0.0011363924.66234617
Set Approval For...194318752024-03-14 7:50:3595 days ago1710402635IN
The Real Goat Society: GS Token
0 ETH0.0023596151.12929777
Transfer From194262552024-03-13 12:48:4796 days ago1710334127IN
The Real Goat Society: GS Token
0 ETH0.0046718880.99664239
Transfer From193802342024-03-07 2:12:23102 days ago1709777543IN
The Real Goat Society: GS Token
0 ETH0.0025226662.16531231
Transfer From193802312024-03-07 2:11:47102 days ago1709777507IN
The Real Goat Society: GS Token
0 ETH0.0037352759.78347755
Set Approval For...193436792024-03-01 23:41:35107 days ago1709336495IN
The Real Goat Society: GS Token
0 ETH0.0011235646.49353925
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
135733162021-11-08 3:02:15952 days ago1636340535
The Real Goat Society: GS Token
605.97 ETH
135732712021-11-08 2:51:36952 days ago1636339896
The Real Goat Society: GS Token
33.665 ETH
135732712021-11-08 2:51:36952 days ago1636339896
The Real Goat Society: GS Token
33.665 ETH
135732482021-11-08 2:46:34952 days ago1636339594
The Real Goat Society: GS Token
10 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TheGoatSociety

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : Goat.sol
// SPDX-License-Identifier: None

pragma solidity ^0.8.4;

import "./Ownable.sol";
import "./ERC721.sol";
import "./SafeMath.sol";
import "./String.sol";
                                                 
contract TheGoatSociety is Ownable, ERC721 {
    using SafeMath for uint256;
    using Strings for uint256;
    
    uint256 public sumonCost = 2;
    uint256 public sumonSupply = 0;
    uint256 public supply = 0;
    uint256 public price = 0.06 ether;
    uint256 public supplyL;
    uint256 public presaleSupplyL; //CONFIRM 
    uint256 public maxGoatMint = 10;
    uint256 public sumon_token_id = 10001;

    string public baseURI = "";
    bool public initiateSale = false;
    bool public initiatePreSale = false;

    bool public sumonActive = false;
    bool public calledWithdrawES = false;
    bool public presaleWhitelistActive = true;

    address[] public GoatPresale;

    address public partner1 = 0xc17B2B0E69954B4a12eb68a26F32487B53C0b11a;
    address public partner2 = 0x9dA11374A782497EB29FfFdd977D29a7c6D09e27;
    address public partner3 = 0xEF35c3Ed3B47f681F4d2D92630a65b91b007f24c;
    address public partner4 = 0x5b4a0c29161d8e1CbBCA06c32B353073d8bd351C;
    address public partner5 = 0xA099484Fba126dF3D753d20c7EcD8a283f00377F;
    address public partner6 = 0x89b8c1794BB616E5775BF8bdecd5567fa943b97B;
    address public partner7 = 0xC2071Daece8561381EDF09Bf58FE4D834490297E;
    address public partner8 = 0x7a984C84F0FafadaAb7D0395e6abe560E26Ff370;
    address public partner9 = 0xfA02f156c508DF8bC2fFd1fd34Ac7Fa4A598b6b5;
    address public partner10 = 0xf5D71a9d75AbCAB2fC79Cf7306Fbc38e33ED6f2D;
    address public partner11 = 0xb3CEd66d05495fdDD35e65CAa5Da7805755E51EF;
    
    address public partner12 = 0xc1Dda59c40ef5A972858610f680cd64c8d349cdd;
    address public partner13 = 0x3D2A172487456bF11F7300e8Ae0AB801A56eA5dB;
    address public splitAddy = 0xe58895118D9585340a341b17B0874f8C0EDce746;

    constructor(
        uint256 amount,
        uint256 presaleAmount,
        string memory _baseURI
    ) ERC721("Goat Society", "GS") {
        supplyL = amount;
        presaleSupplyL = presaleAmount;
        baseURI = _baseURI;
    }
    
    function tokenURI(uint256 token_id) public view override returns (string memory) {
        require(_exists(token_id), "nonexistent token");
        return bytes(baseURI).length > 0 ? 
        string(abi.encodePacked(baseURI, token_id.toString())) : "";
    }

    function flipValues(uint256 flip) external onlyOwner {
        if (flip == 0) {
            initiateSale = !initiateSale;
        } else if (flip == 1) {
            initiatePreSale = !initiatePreSale;
        } else if (flip == 2) {
            presaleWhitelistActive = !presaleWhitelistActive;
        } else if (flip == 3) {
            sumonActive = !sumonActive;
        }
    }
    
    function change_sumon_token(uint256 _sumon_token_id) external onlyOwner {
        sumon_token_id = _sumon_token_id;
    }
    
    function sumonAmount(uint256 _supplyLimit) external onlyOwner {
        require(_supplyLimit >= supply, "Error ");
        supplyL = _supplyLimit;
    }
    
    function sumon_maxGoatMint(uint256 _mintLimit) external onlyOwner {
        maxGoatMint = _mintLimit;
    }
    
    function sumon_mintPrice(uint256 _mintPrice) external onlyOwner {
        price = _mintPrice;
    }
    
    function set_uri(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }




    function withdrawES() external onlyOwner {
        require(address(this).balance > 10 ether, "None");
        require(calledWithdrawES == false, "Already ran the withdraw method.");
        (bool withES,) = splitAddy.call{value: 10 ether}("");
        calledWithdrawES = true;
        require(withES, "Not enough ethereum to withdraw");
    }

    function withdraw() external onlyOwner {
        require(address(this).balance > 0, "None");
        require(calledWithdrawES == true, "Already Ran");
        uint256 walletBalance = address(this).balance;
        
        (bool w1,) = partner12.call{value: walletBalance.mul(5).div(100)}(""); //5
        (bool w2,) = partner13.call{value: walletBalance.mul(5).div(100)}(""); //5
        
        partner1.call{value: walletBalance.mul(5).div(100)}; //5
        partner2.call{value: walletBalance.mul(5).div(100)}; //5
        partner3.call{value: walletBalance.mul(1).div(100)}; //1
        partner4.call{value: walletBalance.mul(5).div(100)}; //5
        partner5.call{value: walletBalance.mul(15).div(100)}; //15
        partner6.call{value: walletBalance.mul(145).div(1000)}; //14.5
        partner7.call{value: walletBalance.mul(295).div(1000)}; //29.5
        partner8.call{value: walletBalance.mul(10).div(100)}; //10
        partner9.call{value: walletBalance.mul(25).div(1000)}; //2.5
        partner10.call{value: walletBalance.mul(15).div(1000)}; //1.5
        partner11.call{value: walletBalance.mul(1).div(100)}; //1

        require(w1 && w2, "Failed withdraw");
    }
    
    //Incase withdraw() fails run this method
    function emergencyWithdraw() external onlyOwner {
        (bool withES,) = splitAddy.call{value: address(this).balance}("");
        require(withES, "Not enough ethereum to withdraw");
    }
    
    function populate_PreSaleWhitelist(address[] calldata preSaleWalletAddresses) external onlyOwner {
        delete GoatPresale;
        GoatPresale = preSaleWalletAddresses;
  	    return;
  	}
    
    function giveaway_goats() external onlyOwner {
        require(supply.add(25) <= supplyL, "Token error");

        uint256 token_id = supply;
        for(uint i = 0; i < 25; i++) {
            token_id += 1;
            supply = supply.add(1);
            _safeMint(msg.sender, token_id);
        }
    }
    
    function buy(uint nft) external payable {
        require(initiateSale, "Sale not available");
        require(nft <= maxGoatMint, "Too many");
        require(msg.value >= price.mul(nft), "Payment error");
        require(supply.add(nft) <= supplyL, "Token error");

        uint256 token_id = supply;
        for(uint i = 0; i < nft; i++) {
            token_id += 1;
            supply = supply.add(1);

            _safeMint(msg.sender, token_id);
        }
    }
    
    function buy_presale(uint nft) external payable {
        require(initiatePreSale, "Presale not available"); //YES
        require(nft <= maxGoatMint, "Too many"); //YES
        require(msg.value >= price.mul(nft), "Payment error"); //YES
        require(supply.add(nft) <= presaleSupplyL, "Token error"); //NO

        if (presaleWhitelistActive) {
            require(isWalletInPreSale(msg.sender), "Not in Presale");
            uint256 token_id = supply;
            for(uint i = 0; i < nft; i++) {
                token_id += 1;
                supply = supply.add(1);
        
                _safeMint(msg.sender, token_id);
            }
        } else {
            uint256 token_id = supply;
            for(uint i = 0; i < nft; i++) {
                token_id += 1;
                supply = supply.add(1);
        
                _safeMint(msg.sender, token_id);
            }
        }

    }
    
    function isWalletInPreSale(address _address) public view returns (bool) {
        for(uint256 i = 0; i < GoatPresale.length; i++) {
            if (GoatPresale[i] == _address) {
                return true;
            }
        }
        return false;
    }
    
    function sumon(uint256[] memory token_ids) public meetsOwnership(token_ids) {
        require(sumonActive, "Goat Summonings is not active");
        require(sumonSupply > 0, "No Summon Supply left");
        require(token_ids.length >= sumonCost, "Not enough Goats provided");
      
        for (uint256 i = 0; i < token_ids.length; i++) {
          _burn(token_ids[i]);
        }
        
        uint256 token_id = sumon_token_id;
        
        token_id += 1;
        sumon_token_id = sumon_token_id.add(1);
        _safeMint(msg.sender, token_id);

        sumonSupply -= 1;
    }
    
    function setsumonCost(uint256 newCost) public onlyOwner {
        require(newCost > 0, "sumonCost should be more than 0");
        sumonCost = newCost;
    }
         
    function setsumonSupply(uint256 newsumonSupply) public onlyOwner {
        sumonSupply = newsumonSupply;
    }
      
    modifier meetsOwnership(uint256[] memory token_ids) {
        for (uint256 i = 0; i < token_ids.length; i++) {
          require(this.ownerOf(token_ids[i]) == msg.sender, "You don't own these tokens");
        }
        _;
    }
}

File 2 of 12 : String.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 3 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 12 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./Context.sol";
import "./String.sol";
import "./ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 5 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Context.sol";

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

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

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

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

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

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

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

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

File 6 of 12 : 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 12 : 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 8 of 12 : 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 9 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";

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

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

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

File 10 of 12 : 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 11 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"presaleAmount","type":"uint256"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"GoatPresale","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nft","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nft","type":"uint256"}],"name":"buy_presale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"calledWithdrawES","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sumon_token_id","type":"uint256"}],"name":"change_sumon_token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"flip","type":"uint256"}],"name":"flipValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giveaway_goats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initiatePreSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initiateSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_address","type":"address"}],"name":"isWalletInPreSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxGoatMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner10","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner11","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner12","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner13","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner5","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner6","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner7","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner8","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"preSaleWalletAddresses","type":"address[]"}],"name":"populate_PreSaleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleSupplyL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleWhitelistActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"set_uri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setsumonCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newsumonSupply","type":"uint256"}],"name":"setsumonSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitAddy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"token_ids","type":"uint256[]"}],"name":"sumon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sumonActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supplyLimit","type":"uint256"}],"name":"sumonAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sumonCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sumonSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintLimit","type":"uint256"}],"name":"sumon_maxGoatMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"sumon_mintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sumon_token_id","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token_id","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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawES","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600260075560006008819055600981905566d529ae9e860000600a908155600d55612711600e5560a0604081905260808290526200004191600f91906200033c565b506010805464ffffffffff1916640100000000179055601280546001600160a01b031990811673c17b2b0e69954b4a12eb68a26f32487b53c0b11a17909155601380548216739da11374a782497eb29fffdd977d29a7c6d09e2717905560148054821673ef35c3ed3b47f681f4d2d92630a65b91b007f24c179055601580548216735b4a0c29161d8e1cbbca06c32b353073d8bd351c17905560168054821673a099484fba126df3d753d20c7ecd8a283f00377f1790556017805482167389b8c1794bb616e5775bf8bdecd5567fa943b97b17905560188054821673c2071daece8561381edf09bf58fe4d834490297e179055601980548216737a984c84f0fafadaab7d0395e6abe560e26ff370179055601a8054821673fa02f156c508df8bc2ffd1fd34ac7fa4a598b6b5179055601b8054821673f5d71a9d75abcab2fc79cf7306fbc38e33ed6f2d179055601c8054821673b3ced66d05495fddd35e65caa5da7805755e51ef179055601d8054821673c1dda59c40ef5a972858610f680cd64c8d349cdd179055601e80548216733d2a172487456bf11f7300e8ae0ab801a56ea5db179055601f805490911673e58895118d9585340a341b17b0874f8c0edce7461790553480156200021457600080fd5b5060405162003763380380620037638339810160408190526200023791620003e2565b6040518060400160405280600c81526020016b476f617420536f636965747960a01b81525060405180604001604052806002815260200161475360f01b815250620002916200028b620002e860201b60201c565b620002ec565b8151620002a69060019060208501906200033c565b508051620002bc9060029060208401906200033c565b505050600b839055600c8290558051620002de90600f9060208401906200033c565b5050505062000528565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200034a90620004d5565b90600052602060002090601f0160209004810192826200036e5760008555620003b9565b82601f106200038957805160ff1916838001178555620003b9565b82800160010185558215620003b9579182015b82811115620003b95782518255916020019190600101906200039c565b50620003c7929150620003cb565b5090565b5b80821115620003c75760008155600101620003cc565b600080600060608486031215620003f857600080fd5b835160208086015160408701519295509350906001600160401b03808211156200042157600080fd5b818701915087601f8301126200043657600080fd5b8151818111156200044b576200044b62000512565b604051601f8201601f19908116603f0116810190838211818310171562000476576200047662000512565b816040528281528a868487010111156200048f57600080fd5b600093505b82841015620004b3578484018601518185018701529285019262000494565b82841115620004c55760008684830101525b8096505050505050509250925092565b600181811c90821680620004ea57607f821691505b602082108114156200050c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61322b80620005386000396000f3fe6080604052600436106103ad5760003560e01c80638b35a244116101e7578063b88d4fde1161010d578063e3d48880116100a0578063e985e9c51161006f578063e985e9c514610a7e578063f2fde38b14610ac7578063fb02df1514610ae7578063fcd8d15114610afd57600080fd5b8063e3d48880146109ff578063e449f7c314610a1f578063e6f1704514610a3e578063e7e8214c14610a5e57600080fd5b8063cfd5e8ac116100dc578063cfd5e8ac14610997578063d676819f146109b7578063d96a094a146109d7578063db2e21bc146109ea57600080fd5b8063b88d4fde14610924578063ba47861c14610944578063bb2841c514610964578063c87b56dd1461097757600080fd5b8063a22cb46511610185578063ae2b7f2211610154578063ae2b7f22146108bf578063ae8e5ec9146108d4578063b14b2664146108f4578063b789e6711461090a57600080fd5b8063a22cb46514610849578063a3ee642f14610869578063a4c7c7b31461087f578063aa4981e51461089f57600080fd5b806395d89b41116101c157806395d89b41146107f357806398d331af14610808578063996a9f971461081e578063a035b1fe1461083357600080fd5b80638b35a244146107955780638da5cb5b146107b557806391f58daa146107d357600080fd5b80633ccfd60b116102d75780636dab4c691161026a5780638024e6f3116102395780638024e6f31461071f57806384a299c31461073f57806389eb727c146107555780638a41048c1461077557600080fd5b80636dab4c69146106aa5780636f1527e8146106ca57806370a08231146106ea578063715018a61461070a57600080fd5b80635f4ce48a116102a65780635f4ce48a146106335780636352211e146106555780636a5c1957146106755780636c0360eb1461069557600080fd5b80633ccfd60b146105c857806342842e0e146105dd578063462194e9146105fd5780635a8c2fe61461061357600080fd5b80630f8847f11161034f5780631a12c13d1161031e5780631a12c13d146105475780631d91b2ae1461056757806323b872dd146105875780632b2d7626146105a757600080fd5b80630f8847f1146104c7578063133a8f6f146104e757806314703a471461050757806317b6b8eb1461052757600080fd5b8063081812fc1161038b578063081812fc1461042d578063095ea7b3146104655780630a04472b146104875780630f37f762146104a757600080fd5b806301ffc9a7146103b2578063047fc9aa146103e757806306fdde031461040b575b600080fd5b3480156103be57600080fd5b506103d26103cd366004612d71565b610b1d565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fd60095481565b6040519081526020016103de565b34801561041757600080fd5b50610420610b6f565b6040516103de9190612f39565b34801561043957600080fd5b5061044d610448366004612df4565b610c01565b6040516001600160a01b0390911681526020016103de565b34801561047157600080fd5b50610485610480366004612c23565b610c9b565b005b34801561049357600080fd5b506104856104a2366004612dab565b610db1565b3480156104b357600080fd5b5060185461044d906001600160a01b031681565b3480156104d357600080fd5b5061044d6104e2366004612df4565b610df2565b3480156104f357600080fd5b5060195461044d906001600160a01b031681565b34801561051357600080fd5b50601e5461044d906001600160a01b031681565b34801561053357600080fd5b50610485610542366004612df4565b610e1c565b34801561055357600080fd5b50610485610562366004612df4565b610e4b565b34801561057357600080fd5b50610485610582366004612cc4565b610e7a565b34801561059357600080fd5b506104856105a2366004612b2f565b611110565b3480156105b357600080fd5b506010546103d2906301000000900460ff1681565b3480156105d457600080fd5b50610485611141565b3480156105e957600080fd5b506104856105f8366004612b2f565b611459565b34801561060957600080fd5b506103fd60075481565b34801561061f57600080fd5b5061048561062e366004612df4565b611474565b34801561063f57600080fd5b506010546103d290640100000000900460ff1681565b34801561066157600080fd5b5061044d610670366004612df4565b6114a3565b34801561068157600080fd5b50610485610690366004612df4565b61151a565b3480156106a157600080fd5b50610420611599565b3480156106b657600080fd5b50601c5461044d906001600160a01b031681565b3480156106d657600080fd5b5060175461044d906001600160a01b031681565b3480156106f657600080fd5b506103fd610705366004612abc565b611627565b34801561071657600080fd5b506104856116ae565b34801561072b57600080fd5b5061048561073a366004612df4565b6116e4565b34801561074b57600080fd5b506103fd600d5481565b34801561076157600080fd5b5060145461044d906001600160a01b031681565b34801561078157600080fd5b50601f5461044d906001600160a01b031681565b3480156107a157600080fd5b5060135461044d906001600160a01b031681565b3480156107c157600080fd5b506000546001600160a01b031661044d565b3480156107df57600080fd5b50601b5461044d906001600160a01b031681565b3480156107ff57600080fd5b5061042061174e565b34801561081457600080fd5b506103fd600e5481565b34801561082a57600080fd5b5061048561175d565b34801561083f57600080fd5b506103fd600a5481565b34801561085557600080fd5b50610485610864366004612bf0565b611800565b34801561087557600080fd5b506103fd60085481565b34801561088b57600080fd5b5060125461044d906001600160a01b031681565b3480156108ab57600080fd5b506104856108ba366004612df4565b6118c5565b3480156108cb57600080fd5b506104856118f4565b3480156108e057600080fd5b506103d26108ef366004612abc565b611a79565b34801561090057600080fd5b506103fd600c5481565b34801561091657600080fd5b506010546103d29060ff1681565b34801561093057600080fd5b5061048561093f366004612b70565b611ae3565b34801561095057600080fd5b506010546103d29062010000900460ff1681565b610485610972366004612df4565b611b1b565b34801561098357600080fd5b50610420610992366004612df4565b611d0c565b3480156109a357600080fd5b5060155461044d906001600160a01b031681565b3480156109c357600080fd5b506104856109d2366004612df4565b611dc3565b6104856109e5366004612df4565b611e84565b3480156109f657600080fd5b50610485611fcb565b348015610a0b57600080fd5b5060165461044d906001600160a01b031681565b348015610a2b57600080fd5b506010546103d290610100900460ff1681565b348015610a4a57600080fd5b50610485610a59366004612c4f565b612098565b348015610a6a57600080fd5b50601a5461044d906001600160a01b031681565b348015610a8a57600080fd5b506103d2610a99366004612af6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610ad357600080fd5b50610485610ae2366004612abc565b6120da565b348015610af357600080fd5b506103fd600b5481565b348015610b0957600080fd5b50601d5461044d906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610b4e57506001600160e01b03198216635b5e139f60e01b145b80610b6957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610b7e90613108565b80601f0160208091040260200160405190810160405280929190818152602001828054610baa90613108565b8015610bf75780601f10610bcc57610100808354040283529160200191610bf7565b820191906000526020600020905b815481529060010190602001808311610bda57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610c7f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610ca6826114a3565b9050806001600160a01b0316836001600160a01b03161415610d145760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c76565b336001600160a01b0382161480610d305750610d308133610a99565b610da25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c76565b610dac8383612172565b505050565b6000546001600160a01b03163314610ddb5760405162461bcd60e51b8152600401610c7690612f9e565b8051610dee90600f90602084019061295a565b5050565b60118181548110610e0257600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610e465760405162461bcd60e51b8152600401610c7690612f9e565b600d55565b6000546001600160a01b03163314610e755760405162461bcd60e51b8152600401610c7690612f9e565b600a55565b8060005b8151811015610f9057336001600160a01b0316306001600160a01b0316636352211e848481518110610eb257610eb261319e565b60200260200101516040518263ffffffff1660e01b8152600401610ed891815260200190565b60206040518083038186803b158015610ef057600080fd5b505afa158015610f04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f289190612ad9565b6001600160a01b031614610f7e5760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f6e2774206f776e20746865736520746f6b656e730000000000006044820152606401610c76565b80610f8881613143565b915050610e7e565b5060105462010000900460ff16610fe95760405162461bcd60e51b815260206004820152601d60248201527f476f61742053756d6d6f6e696e6773206973206e6f74206163746976650000006044820152606401610c76565b6000600854116110335760405162461bcd60e51b8152602060048201526015602482015274139bc814dd5b5b5bdb8814dd5c1c1b1e481b19599d605a1b6044820152606401610c76565b600754825110156110865760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f75676820476f6174732070726f7669646564000000000000006044820152606401610c76565b60005b82518110156110c6576110b48382815181106110a7576110a761319e565b60200260200101516121e0565b806110be81613143565b915050611089565b50600e546110d560018261307a565b600e549091506110e690600161227b565b600e556110f3338261228e565b60016008600082825461110691906130c5565b9091555050505050565b61111a33826122a8565b6111365760405162461bcd60e51b8152600401610c7690612fd3565b610dac83838361239f565b6000546001600160a01b0316331461116b5760405162461bcd60e51b8152600401610c7690612f9e565b600047116111a45760405162461bcd60e51b8152600401610c76906020808252600490820152634e6f6e6560e01b604082015260600190565b6010546301000000900460ff1615156001146111f05760405162461bcd60e51b815260206004820152600b60248201526a20b63932b0b23c902930b760a91b6044820152606401610c76565b601d5447906000906001600160a01b0316611217606461121185600561253f565b9061254b565b604051600081818185875af1925050503d8060008114611253576040519150601f19603f3d011682016040523d82523d6000602084013e611258565b606091505b5050601e549091506000906001600160a01b031661127c606461121186600561253f565b604051600081818185875af1925050503d80600081146112b8576040519150601f19603f3d011682016040523d82523d6000602084013e6112bd565b606091505b50506012549091506001600160a01b03166112de606461121186600561253f565b50506013546001600160a01b03166112fc606461121186600561253f565b50506014546001600160a01b031661131a606461121186600161253f565b50506015546001600160a01b0316611338606461121186600561253f565b50506016546001600160a01b0316611356606461121186600f61253f565b50506017546001600160a01b03166113756103e861121186609161253f565b50506018546001600160a01b03166113956103e86112118661012761253f565b50506019546001600160a01b03166113b3606461121186600a61253f565b5050601a546001600160a01b03166113d26103e861121186601961253f565b5050601b546001600160a01b03166113f16103e861121186600f61253f565b5050601c546001600160a01b031661140f606461121186600161253f565b505081801561141b5750805b610dac5760405162461bcd60e51b815260206004820152600f60248201526e4661696c656420776974686472617760881b6044820152606401610c76565b610dac83838360405180602001604052806000815250611ae3565b6000546001600160a01b0316331461149e5760405162461bcd60e51b8152600401610c7690612f9e565b600855565b6000818152600360205260408120546001600160a01b031680610b695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c76565b6000546001600160a01b031633146115445760405162461bcd60e51b8152600401610c7690612f9e565b600081116115945760405162461bcd60e51b815260206004820152601f60248201527f73756d6f6e436f73742073686f756c64206265206d6f7265207468616e2030006044820152606401610c76565b600755565b600f80546115a690613108565b80601f01602080910402602001604051908101604052809291908181526020018280546115d290613108565b801561161f5780601f106115f45761010080835404028352916020019161161f565b820191906000526020600020905b81548152906001019060200180831161160257829003601f168201915b505050505081565b60006001600160a01b0382166116925760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c76565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146116d85760405162461bcd60e51b8152600401610c7690612f9e565b6116e26000612557565b565b6000546001600160a01b0316331461170e5760405162461bcd60e51b8152600401610c7690612f9e565b6009548110156117495760405162461bcd60e51b8152602060048201526006602482015265022b93937b9160d51b6044820152606401610c76565b600b55565b606060028054610b7e90613108565b6000546001600160a01b031633146117875760405162461bcd60e51b8152600401610c7690612f9e565b600b5460095461179890601961227b565b11156117b65760405162461bcd60e51b8152600401610c7690613024565b60095460005b6019811015610dee576117d060018361307a565b6009549092506117e190600161227b565b6009556117ee338361228e565b806117f881613143565b9150506117bc565b6001600160a01b0382163314156118595760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c76565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146118ef5760405162461bcd60e51b8152600401610c7690612f9e565b600e55565b6000546001600160a01b0316331461191e5760405162461bcd60e51b8152600401610c7690612f9e565b678ac7230489e80000471161195e5760405162461bcd60e51b8152600401610c76906020808252600490820152634e6f6e6560e01b604082015260600190565b6010546301000000900460ff16156119b85760405162461bcd60e51b815260206004820181905260248201527f416c72656164792072616e20746865207769746864726177206d6574686f642e6044820152606401610c76565b601f546040516000916001600160a01b031690678ac7230489e80000908381818185875af1925050503d8060008114611a0d576040519150601f19603f3d011682016040523d82523d6000602084013e611a12565b606091505b50506010805463ff00000019166301000000179055905080611a765760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820657468657265756d20746f207769746864726177006044820152606401610c76565b50565b6000805b601154811015611ada57826001600160a01b031660118281548110611aa457611aa461319e565b6000918252602090912001546001600160a01b03161415611ac85750600192915050565b80611ad281613143565b915050611a7d565b50600092915050565b611aed33836122a8565b611b095760405162461bcd60e51b8152600401610c7690612fd3565b611b15848484846125a7565b50505050565b601054610100900460ff16611b6a5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206e6f7420617661696c61626c6560581b6044820152606401610c76565b600d54811115611ba75760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610c76565b600a54611bb4908261253f565b341015611bf35760405162461bcd60e51b815260206004820152600d60248201526c2830bcb6b2b73a1032b93937b960991b6044820152606401610c76565b600c54600954611c03908361227b565b1115611c215760405162461bcd60e51b8152600401610c7690613024565b601054640100000000900460ff1615611cc357611c3d33611a79565b611c7a5760405162461bcd60e51b815260206004820152600e60248201526d4e6f7420696e2050726573616c6560901b6044820152606401610c76565b60095460005b82811015610dac57611c9360018361307a565b600954909250611ca490600161227b565b600955611cb1338361228e565b80611cbb81613143565b915050611c80565b60095460005b82811015610dac57611cdc60018361307a565b600954909250611ced90600161227b565b600955611cfa338361228e565b80611d0481613143565b915050611cc9565b6000818152600360205260409020546060906001600160a01b0316611d675760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610c76565b6000600f8054611d7690613108565b905011611d925760405180602001604052806000815250610b69565b600f611d9d836125da565b604051602001611dae929190612e55565b60405160208183030381529060405292915050565b6000546001600160a01b03163314611ded5760405162461bcd60e51b8152600401610c7690612f9e565b80611e07576010805460ff19811660ff9091161517905550565b8060011415611e2e57506010805461ff001981166101009182900460ff1615909102179055565b8060021415611e5b57506010805464ff000000001981166401000000009182900460ff1615909102179055565b8060031415611a7657506010805462ff0000198116620100009182900460ff1615909102179055565b60105460ff16611ecb5760405162461bcd60e51b815260206004820152601260248201527153616c65206e6f7420617661696c61626c6560701b6044820152606401610c76565b600d54811115611f085760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610c76565b600a54611f15908261253f565b341015611f545760405162461bcd60e51b815260206004820152600d60248201526c2830bcb6b2b73a1032b93937b960991b6044820152606401610c76565b600b54600954611f64908361227b565b1115611f825760405162461bcd60e51b8152600401610c7690613024565b60095460005b82811015610dac57611f9b60018361307a565b600954909250611fac90600161227b565b600955611fb9338361228e565b80611fc381613143565b915050611f88565b6000546001600160a01b03163314611ff55760405162461bcd60e51b8152600401610c7690612f9e565b601f546040516000916001600160a01b03169047908381818185875af1925050503d8060008114612042576040519150601f19603f3d011682016040523d82523d6000602084013e612047565b606091505b5050905080611a765760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820657468657265756d20746f207769746864726177006044820152606401610c76565b6000546001600160a01b031633146120c25760405162461bcd60e51b8152600401610c7690612f9e565b6120ce601160006129de565b610dac601183836129fc565b6000546001600160a01b031633146121045760405162461bcd60e51b8152600401610c7690612f9e565b6001600160a01b0381166121695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c76565b611a7681612557565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121a7826114a3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121eb826114a3565b90506121f8600083612172565b6001600160a01b03811660009081526004602052604081208054600192906122219084906130c5565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000612287828461307a565b9392505050565b610dee8282604051806020016040528060008152506126d8565b6000818152600360205260408120546001600160a01b03166123215760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c76565b600061232c836114a3565b9050806001600160a01b0316846001600160a01b031614806123675750836001600160a01b031661235c84610c01565b6001600160a01b0316145b8061239757506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123b2826114a3565b6001600160a01b03161461241a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c76565b6001600160a01b03821661247c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c76565b612487600082612172565b6001600160a01b03831660009081526004602052604081208054600192906124b09084906130c5565b90915550506001600160a01b03821660009081526004602052604081208054600192906124de90849061307a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061228782846130a6565b60006122878284613092565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6125b284848461239f565b6125be8484848461270b565b611b155760405162461bcd60e51b8152600401610c7690612f4c565b6060816125fe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612628578061261281613143565b91506126219050600a83613092565b9150612602565b60008167ffffffffffffffff811115612643576126436131b4565b6040519080825280601f01601f19166020018201604052801561266d576020820181803683370190505b5090505b8415612397576126826001836130c5565b915061268f600a8661315e565b61269a90603061307a565b60f81b8183815181106126af576126af61319e565b60200101906001600160f81b031916908160001a9053506126d1600a86613092565b9450612671565b6126e28383612818565b6126ef600084848461270b565b610dac5760405162461bcd60e51b8152600401610c7690612f4c565b60006001600160a01b0384163b1561280d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061274f903390899088908890600401612efc565b602060405180830381600087803b15801561276957600080fd5b505af1925050508015612799575060408051601f3d908101601f1916820190925261279691810190612d8e565b60015b6127f3573d8080156127c7576040519150601f19603f3d011682016040523d82523d6000602084013e6127cc565b606091505b5080516127eb5760405162461bcd60e51b8152600401610c7690612f4c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612397565b506001949350505050565b6001600160a01b03821661286e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c76565b6000818152600360205260409020546001600160a01b0316156128d35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c76565b6001600160a01b03821660009081526004602052604081208054600192906128fc90849061307a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461296690613108565b90600052602060002090601f01602090048101928261298857600085556129ce565b82601f106129a157805160ff19168380011785556129ce565b828001600101855582156129ce579182015b828111156129ce5782518255916020019190600101906129b3565b506129da929150612a4f565b5090565b5080546000825590600052602060002090810190611a769190612a4f565b8280548282559060005260206000209081019282156129ce579160200282015b828111156129ce5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612a1c565b5b808211156129da5760008155600101612a50565b600067ffffffffffffffff831115612a7e57612a7e6131b4565b612a91601f8401601f1916602001613049565b9050828152838383011115612aa557600080fd5b828260208301376000602084830101529392505050565b600060208284031215612ace57600080fd5b8135612287816131ca565b600060208284031215612aeb57600080fd5b8151612287816131ca565b60008060408385031215612b0957600080fd5b8235612b14816131ca565b91506020830135612b24816131ca565b809150509250929050565b600080600060608486031215612b4457600080fd5b8335612b4f816131ca565b92506020840135612b5f816131ca565b929592945050506040919091013590565b60008060008060808587031215612b8657600080fd5b8435612b91816131ca565b93506020850135612ba1816131ca565b925060408501359150606085013567ffffffffffffffff811115612bc457600080fd5b8501601f81018713612bd557600080fd5b612be487823560208401612a64565b91505092959194509250565b60008060408385031215612c0357600080fd5b8235612c0e816131ca565b915060208301358015158114612b2457600080fd5b60008060408385031215612c3657600080fd5b8235612c41816131ca565b946020939093013593505050565b60008060208385031215612c6257600080fd5b823567ffffffffffffffff80821115612c7a57600080fd5b818501915085601f830112612c8e57600080fd5b813581811115612c9d57600080fd5b8660208260051b8501011115612cb257600080fd5b60209290920196919550909350505050565b60006020808385031215612cd757600080fd5b823567ffffffffffffffff80821115612cef57600080fd5b818501915085601f830112612d0357600080fd5b813581811115612d1557612d156131b4565b8060051b9150612d26848301613049565b8181528481019084860184860187018a1015612d4157600080fd5b600095505b83861015612d64578035835260019590950194918601918601612d46565b5098975050505050505050565b600060208284031215612d8357600080fd5b8135612287816131df565b600060208284031215612da057600080fd5b8151612287816131df565b600060208284031215612dbd57600080fd5b813567ffffffffffffffff811115612dd457600080fd5b8201601f81018413612de557600080fd5b61239784823560208401612a64565b600060208284031215612e0657600080fd5b5035919050565b60008151808452612e258160208601602086016130dc565b601f01601f19169290920160200192915050565b60008151612e4b8185602086016130dc565b9290920192915050565b600080845481600182811c915080831680612e7157607f831692505b6020808410821415612e9157634e487b7160e01b86526022600452602486fd5b818015612ea55760018114612eb657612ee3565b60ff19861689528489019650612ee3565b60008b81526020902060005b86811015612edb5781548b820152908501908301612ec2565b505084890196505b505050505050612ef38185612e39565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f2f90830184612e0d565b9695505050505050565b6020815260006122876020830184612e0d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a2a37b5b2b71032b93937b960a91b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613072576130726131b4565b604052919050565b6000821982111561308d5761308d613172565b500190565b6000826130a1576130a1613188565b500490565b60008160001904831182151516156130c0576130c0613172565b500290565b6000828210156130d7576130d7613172565b500390565b60005b838110156130f75781810151838201526020016130df565b83811115611b155750506000910152565b600181811c9082168061311c57607f821691505b6020821081141561313d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561315757613157613172565b5060010190565b60008261316d5761316d613188565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611a7657600080fd5b6001600160e01b031981168114611a7657600080fdfea26469706673582212203fce60963f36f70abc575223f5bb73322a30b710dffc229b67018823f1d3968764736f6c63430008070033000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103ad5760003560e01c80638b35a244116101e7578063b88d4fde1161010d578063e3d48880116100a0578063e985e9c51161006f578063e985e9c514610a7e578063f2fde38b14610ac7578063fb02df1514610ae7578063fcd8d15114610afd57600080fd5b8063e3d48880146109ff578063e449f7c314610a1f578063e6f1704514610a3e578063e7e8214c14610a5e57600080fd5b8063cfd5e8ac116100dc578063cfd5e8ac14610997578063d676819f146109b7578063d96a094a146109d7578063db2e21bc146109ea57600080fd5b8063b88d4fde14610924578063ba47861c14610944578063bb2841c514610964578063c87b56dd1461097757600080fd5b8063a22cb46511610185578063ae2b7f2211610154578063ae2b7f22146108bf578063ae8e5ec9146108d4578063b14b2664146108f4578063b789e6711461090a57600080fd5b8063a22cb46514610849578063a3ee642f14610869578063a4c7c7b31461087f578063aa4981e51461089f57600080fd5b806395d89b41116101c157806395d89b41146107f357806398d331af14610808578063996a9f971461081e578063a035b1fe1461083357600080fd5b80638b35a244146107955780638da5cb5b146107b557806391f58daa146107d357600080fd5b80633ccfd60b116102d75780636dab4c691161026a5780638024e6f3116102395780638024e6f31461071f57806384a299c31461073f57806389eb727c146107555780638a41048c1461077557600080fd5b80636dab4c69146106aa5780636f1527e8146106ca57806370a08231146106ea578063715018a61461070a57600080fd5b80635f4ce48a116102a65780635f4ce48a146106335780636352211e146106555780636a5c1957146106755780636c0360eb1461069557600080fd5b80633ccfd60b146105c857806342842e0e146105dd578063462194e9146105fd5780635a8c2fe61461061357600080fd5b80630f8847f11161034f5780631a12c13d1161031e5780631a12c13d146105475780631d91b2ae1461056757806323b872dd146105875780632b2d7626146105a757600080fd5b80630f8847f1146104c7578063133a8f6f146104e757806314703a471461050757806317b6b8eb1461052757600080fd5b8063081812fc1161038b578063081812fc1461042d578063095ea7b3146104655780630a04472b146104875780630f37f762146104a757600080fd5b806301ffc9a7146103b2578063047fc9aa146103e757806306fdde031461040b575b600080fd5b3480156103be57600080fd5b506103d26103cd366004612d71565b610b1d565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fd60095481565b6040519081526020016103de565b34801561041757600080fd5b50610420610b6f565b6040516103de9190612f39565b34801561043957600080fd5b5061044d610448366004612df4565b610c01565b6040516001600160a01b0390911681526020016103de565b34801561047157600080fd5b50610485610480366004612c23565b610c9b565b005b34801561049357600080fd5b506104856104a2366004612dab565b610db1565b3480156104b357600080fd5b5060185461044d906001600160a01b031681565b3480156104d357600080fd5b5061044d6104e2366004612df4565b610df2565b3480156104f357600080fd5b5060195461044d906001600160a01b031681565b34801561051357600080fd5b50601e5461044d906001600160a01b031681565b34801561053357600080fd5b50610485610542366004612df4565b610e1c565b34801561055357600080fd5b50610485610562366004612df4565b610e4b565b34801561057357600080fd5b50610485610582366004612cc4565b610e7a565b34801561059357600080fd5b506104856105a2366004612b2f565b611110565b3480156105b357600080fd5b506010546103d2906301000000900460ff1681565b3480156105d457600080fd5b50610485611141565b3480156105e957600080fd5b506104856105f8366004612b2f565b611459565b34801561060957600080fd5b506103fd60075481565b34801561061f57600080fd5b5061048561062e366004612df4565b611474565b34801561063f57600080fd5b506010546103d290640100000000900460ff1681565b34801561066157600080fd5b5061044d610670366004612df4565b6114a3565b34801561068157600080fd5b50610485610690366004612df4565b61151a565b3480156106a157600080fd5b50610420611599565b3480156106b657600080fd5b50601c5461044d906001600160a01b031681565b3480156106d657600080fd5b5060175461044d906001600160a01b031681565b3480156106f657600080fd5b506103fd610705366004612abc565b611627565b34801561071657600080fd5b506104856116ae565b34801561072b57600080fd5b5061048561073a366004612df4565b6116e4565b34801561074b57600080fd5b506103fd600d5481565b34801561076157600080fd5b5060145461044d906001600160a01b031681565b34801561078157600080fd5b50601f5461044d906001600160a01b031681565b3480156107a157600080fd5b5060135461044d906001600160a01b031681565b3480156107c157600080fd5b506000546001600160a01b031661044d565b3480156107df57600080fd5b50601b5461044d906001600160a01b031681565b3480156107ff57600080fd5b5061042061174e565b34801561081457600080fd5b506103fd600e5481565b34801561082a57600080fd5b5061048561175d565b34801561083f57600080fd5b506103fd600a5481565b34801561085557600080fd5b50610485610864366004612bf0565b611800565b34801561087557600080fd5b506103fd60085481565b34801561088b57600080fd5b5060125461044d906001600160a01b031681565b3480156108ab57600080fd5b506104856108ba366004612df4565b6118c5565b3480156108cb57600080fd5b506104856118f4565b3480156108e057600080fd5b506103d26108ef366004612abc565b611a79565b34801561090057600080fd5b506103fd600c5481565b34801561091657600080fd5b506010546103d29060ff1681565b34801561093057600080fd5b5061048561093f366004612b70565b611ae3565b34801561095057600080fd5b506010546103d29062010000900460ff1681565b610485610972366004612df4565b611b1b565b34801561098357600080fd5b50610420610992366004612df4565b611d0c565b3480156109a357600080fd5b5060155461044d906001600160a01b031681565b3480156109c357600080fd5b506104856109d2366004612df4565b611dc3565b6104856109e5366004612df4565b611e84565b3480156109f657600080fd5b50610485611fcb565b348015610a0b57600080fd5b5060165461044d906001600160a01b031681565b348015610a2b57600080fd5b506010546103d290610100900460ff1681565b348015610a4a57600080fd5b50610485610a59366004612c4f565b612098565b348015610a6a57600080fd5b50601a5461044d906001600160a01b031681565b348015610a8a57600080fd5b506103d2610a99366004612af6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610ad357600080fd5b50610485610ae2366004612abc565b6120da565b348015610af357600080fd5b506103fd600b5481565b348015610b0957600080fd5b50601d5461044d906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610b4e57506001600160e01b03198216635b5e139f60e01b145b80610b6957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610b7e90613108565b80601f0160208091040260200160405190810160405280929190818152602001828054610baa90613108565b8015610bf75780601f10610bcc57610100808354040283529160200191610bf7565b820191906000526020600020905b815481529060010190602001808311610bda57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610c7f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610ca6826114a3565b9050806001600160a01b0316836001600160a01b03161415610d145760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c76565b336001600160a01b0382161480610d305750610d308133610a99565b610da25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c76565b610dac8383612172565b505050565b6000546001600160a01b03163314610ddb5760405162461bcd60e51b8152600401610c7690612f9e565b8051610dee90600f90602084019061295a565b5050565b60118181548110610e0257600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610e465760405162461bcd60e51b8152600401610c7690612f9e565b600d55565b6000546001600160a01b03163314610e755760405162461bcd60e51b8152600401610c7690612f9e565b600a55565b8060005b8151811015610f9057336001600160a01b0316306001600160a01b0316636352211e848481518110610eb257610eb261319e565b60200260200101516040518263ffffffff1660e01b8152600401610ed891815260200190565b60206040518083038186803b158015610ef057600080fd5b505afa158015610f04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f289190612ad9565b6001600160a01b031614610f7e5760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f6e2774206f776e20746865736520746f6b656e730000000000006044820152606401610c76565b80610f8881613143565b915050610e7e565b5060105462010000900460ff16610fe95760405162461bcd60e51b815260206004820152601d60248201527f476f61742053756d6d6f6e696e6773206973206e6f74206163746976650000006044820152606401610c76565b6000600854116110335760405162461bcd60e51b8152602060048201526015602482015274139bc814dd5b5b5bdb8814dd5c1c1b1e481b19599d605a1b6044820152606401610c76565b600754825110156110865760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f75676820476f6174732070726f7669646564000000000000006044820152606401610c76565b60005b82518110156110c6576110b48382815181106110a7576110a761319e565b60200260200101516121e0565b806110be81613143565b915050611089565b50600e546110d560018261307a565b600e549091506110e690600161227b565b600e556110f3338261228e565b60016008600082825461110691906130c5565b9091555050505050565b61111a33826122a8565b6111365760405162461bcd60e51b8152600401610c7690612fd3565b610dac83838361239f565b6000546001600160a01b0316331461116b5760405162461bcd60e51b8152600401610c7690612f9e565b600047116111a45760405162461bcd60e51b8152600401610c76906020808252600490820152634e6f6e6560e01b604082015260600190565b6010546301000000900460ff1615156001146111f05760405162461bcd60e51b815260206004820152600b60248201526a20b63932b0b23c902930b760a91b6044820152606401610c76565b601d5447906000906001600160a01b0316611217606461121185600561253f565b9061254b565b604051600081818185875af1925050503d8060008114611253576040519150601f19603f3d011682016040523d82523d6000602084013e611258565b606091505b5050601e549091506000906001600160a01b031661127c606461121186600561253f565b604051600081818185875af1925050503d80600081146112b8576040519150601f19603f3d011682016040523d82523d6000602084013e6112bd565b606091505b50506012549091506001600160a01b03166112de606461121186600561253f565b50506013546001600160a01b03166112fc606461121186600561253f565b50506014546001600160a01b031661131a606461121186600161253f565b50506015546001600160a01b0316611338606461121186600561253f565b50506016546001600160a01b0316611356606461121186600f61253f565b50506017546001600160a01b03166113756103e861121186609161253f565b50506018546001600160a01b03166113956103e86112118661012761253f565b50506019546001600160a01b03166113b3606461121186600a61253f565b5050601a546001600160a01b03166113d26103e861121186601961253f565b5050601b546001600160a01b03166113f16103e861121186600f61253f565b5050601c546001600160a01b031661140f606461121186600161253f565b505081801561141b5750805b610dac5760405162461bcd60e51b815260206004820152600f60248201526e4661696c656420776974686472617760881b6044820152606401610c76565b610dac83838360405180602001604052806000815250611ae3565b6000546001600160a01b0316331461149e5760405162461bcd60e51b8152600401610c7690612f9e565b600855565b6000818152600360205260408120546001600160a01b031680610b695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c76565b6000546001600160a01b031633146115445760405162461bcd60e51b8152600401610c7690612f9e565b600081116115945760405162461bcd60e51b815260206004820152601f60248201527f73756d6f6e436f73742073686f756c64206265206d6f7265207468616e2030006044820152606401610c76565b600755565b600f80546115a690613108565b80601f01602080910402602001604051908101604052809291908181526020018280546115d290613108565b801561161f5780601f106115f45761010080835404028352916020019161161f565b820191906000526020600020905b81548152906001019060200180831161160257829003601f168201915b505050505081565b60006001600160a01b0382166116925760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c76565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146116d85760405162461bcd60e51b8152600401610c7690612f9e565b6116e26000612557565b565b6000546001600160a01b0316331461170e5760405162461bcd60e51b8152600401610c7690612f9e565b6009548110156117495760405162461bcd60e51b8152602060048201526006602482015265022b93937b9160d51b6044820152606401610c76565b600b55565b606060028054610b7e90613108565b6000546001600160a01b031633146117875760405162461bcd60e51b8152600401610c7690612f9e565b600b5460095461179890601961227b565b11156117b65760405162461bcd60e51b8152600401610c7690613024565b60095460005b6019811015610dee576117d060018361307a565b6009549092506117e190600161227b565b6009556117ee338361228e565b806117f881613143565b9150506117bc565b6001600160a01b0382163314156118595760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c76565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146118ef5760405162461bcd60e51b8152600401610c7690612f9e565b600e55565b6000546001600160a01b0316331461191e5760405162461bcd60e51b8152600401610c7690612f9e565b678ac7230489e80000471161195e5760405162461bcd60e51b8152600401610c76906020808252600490820152634e6f6e6560e01b604082015260600190565b6010546301000000900460ff16156119b85760405162461bcd60e51b815260206004820181905260248201527f416c72656164792072616e20746865207769746864726177206d6574686f642e6044820152606401610c76565b601f546040516000916001600160a01b031690678ac7230489e80000908381818185875af1925050503d8060008114611a0d576040519150601f19603f3d011682016040523d82523d6000602084013e611a12565b606091505b50506010805463ff00000019166301000000179055905080611a765760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820657468657265756d20746f207769746864726177006044820152606401610c76565b50565b6000805b601154811015611ada57826001600160a01b031660118281548110611aa457611aa461319e565b6000918252602090912001546001600160a01b03161415611ac85750600192915050565b80611ad281613143565b915050611a7d565b50600092915050565b611aed33836122a8565b611b095760405162461bcd60e51b8152600401610c7690612fd3565b611b15848484846125a7565b50505050565b601054610100900460ff16611b6a5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206e6f7420617661696c61626c6560581b6044820152606401610c76565b600d54811115611ba75760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610c76565b600a54611bb4908261253f565b341015611bf35760405162461bcd60e51b815260206004820152600d60248201526c2830bcb6b2b73a1032b93937b960991b6044820152606401610c76565b600c54600954611c03908361227b565b1115611c215760405162461bcd60e51b8152600401610c7690613024565b601054640100000000900460ff1615611cc357611c3d33611a79565b611c7a5760405162461bcd60e51b815260206004820152600e60248201526d4e6f7420696e2050726573616c6560901b6044820152606401610c76565b60095460005b82811015610dac57611c9360018361307a565b600954909250611ca490600161227b565b600955611cb1338361228e565b80611cbb81613143565b915050611c80565b60095460005b82811015610dac57611cdc60018361307a565b600954909250611ced90600161227b565b600955611cfa338361228e565b80611d0481613143565b915050611cc9565b6000818152600360205260409020546060906001600160a01b0316611d675760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610c76565b6000600f8054611d7690613108565b905011611d925760405180602001604052806000815250610b69565b600f611d9d836125da565b604051602001611dae929190612e55565b60405160208183030381529060405292915050565b6000546001600160a01b03163314611ded5760405162461bcd60e51b8152600401610c7690612f9e565b80611e07576010805460ff19811660ff9091161517905550565b8060011415611e2e57506010805461ff001981166101009182900460ff1615909102179055565b8060021415611e5b57506010805464ff000000001981166401000000009182900460ff1615909102179055565b8060031415611a7657506010805462ff0000198116620100009182900460ff1615909102179055565b60105460ff16611ecb5760405162461bcd60e51b815260206004820152601260248201527153616c65206e6f7420617661696c61626c6560701b6044820152606401610c76565b600d54811115611f085760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610c76565b600a54611f15908261253f565b341015611f545760405162461bcd60e51b815260206004820152600d60248201526c2830bcb6b2b73a1032b93937b960991b6044820152606401610c76565b600b54600954611f64908361227b565b1115611f825760405162461bcd60e51b8152600401610c7690613024565b60095460005b82811015610dac57611f9b60018361307a565b600954909250611fac90600161227b565b600955611fb9338361228e565b80611fc381613143565b915050611f88565b6000546001600160a01b03163314611ff55760405162461bcd60e51b8152600401610c7690612f9e565b601f546040516000916001600160a01b03169047908381818185875af1925050503d8060008114612042576040519150601f19603f3d011682016040523d82523d6000602084013e612047565b606091505b5050905080611a765760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820657468657265756d20746f207769746864726177006044820152606401610c76565b6000546001600160a01b031633146120c25760405162461bcd60e51b8152600401610c7690612f9e565b6120ce601160006129de565b610dac601183836129fc565b6000546001600160a01b031633146121045760405162461bcd60e51b8152600401610c7690612f9e565b6001600160a01b0381166121695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c76565b611a7681612557565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121a7826114a3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121eb826114a3565b90506121f8600083612172565b6001600160a01b03811660009081526004602052604081208054600192906122219084906130c5565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000612287828461307a565b9392505050565b610dee8282604051806020016040528060008152506126d8565b6000818152600360205260408120546001600160a01b03166123215760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c76565b600061232c836114a3565b9050806001600160a01b0316846001600160a01b031614806123675750836001600160a01b031661235c84610c01565b6001600160a01b0316145b8061239757506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123b2826114a3565b6001600160a01b03161461241a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c76565b6001600160a01b03821661247c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c76565b612487600082612172565b6001600160a01b03831660009081526004602052604081208054600192906124b09084906130c5565b90915550506001600160a01b03821660009081526004602052604081208054600192906124de90849061307a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061228782846130a6565b60006122878284613092565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6125b284848461239f565b6125be8484848461270b565b611b155760405162461bcd60e51b8152600401610c7690612f4c565b6060816125fe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612628578061261281613143565b91506126219050600a83613092565b9150612602565b60008167ffffffffffffffff811115612643576126436131b4565b6040519080825280601f01601f19166020018201604052801561266d576020820181803683370190505b5090505b8415612397576126826001836130c5565b915061268f600a8661315e565b61269a90603061307a565b60f81b8183815181106126af576126af61319e565b60200101906001600160f81b031916908160001a9053506126d1600a86613092565b9450612671565b6126e28383612818565b6126ef600084848461270b565b610dac5760405162461bcd60e51b8152600401610c7690612f4c565b60006001600160a01b0384163b1561280d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061274f903390899088908890600401612efc565b602060405180830381600087803b15801561276957600080fd5b505af1925050508015612799575060408051601f3d908101601f1916820190925261279691810190612d8e565b60015b6127f3573d8080156127c7576040519150601f19603f3d011682016040523d82523d6000602084013e6127cc565b606091505b5080516127eb5760405162461bcd60e51b8152600401610c7690612f4c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612397565b506001949350505050565b6001600160a01b03821661286e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c76565b6000818152600360205260409020546001600160a01b0316156128d35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c76565b6001600160a01b03821660009081526004602052604081208054600192906128fc90849061307a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461296690613108565b90600052602060002090601f01602090048101928261298857600085556129ce565b82601f106129a157805160ff19168380011785556129ce565b828001600101855582156129ce579182015b828111156129ce5782518255916020019190600101906129b3565b506129da929150612a4f565b5090565b5080546000825590600052602060002090810190611a769190612a4f565b8280548282559060005260206000209081019282156129ce579160200282015b828111156129ce5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612a1c565b5b808211156129da5760008155600101612a50565b600067ffffffffffffffff831115612a7e57612a7e6131b4565b612a91601f8401601f1916602001613049565b9050828152838383011115612aa557600080fd5b828260208301376000602084830101529392505050565b600060208284031215612ace57600080fd5b8135612287816131ca565b600060208284031215612aeb57600080fd5b8151612287816131ca565b60008060408385031215612b0957600080fd5b8235612b14816131ca565b91506020830135612b24816131ca565b809150509250929050565b600080600060608486031215612b4457600080fd5b8335612b4f816131ca565b92506020840135612b5f816131ca565b929592945050506040919091013590565b60008060008060808587031215612b8657600080fd5b8435612b91816131ca565b93506020850135612ba1816131ca565b925060408501359150606085013567ffffffffffffffff811115612bc457600080fd5b8501601f81018713612bd557600080fd5b612be487823560208401612a64565b91505092959194509250565b60008060408385031215612c0357600080fd5b8235612c0e816131ca565b915060208301358015158114612b2457600080fd5b60008060408385031215612c3657600080fd5b8235612c41816131ca565b946020939093013593505050565b60008060208385031215612c6257600080fd5b823567ffffffffffffffff80821115612c7a57600080fd5b818501915085601f830112612c8e57600080fd5b813581811115612c9d57600080fd5b8660208260051b8501011115612cb257600080fd5b60209290920196919550909350505050565b60006020808385031215612cd757600080fd5b823567ffffffffffffffff80821115612cef57600080fd5b818501915085601f830112612d0357600080fd5b813581811115612d1557612d156131b4565b8060051b9150612d26848301613049565b8181528481019084860184860187018a1015612d4157600080fd5b600095505b83861015612d64578035835260019590950194918601918601612d46565b5098975050505050505050565b600060208284031215612d8357600080fd5b8135612287816131df565b600060208284031215612da057600080fd5b8151612287816131df565b600060208284031215612dbd57600080fd5b813567ffffffffffffffff811115612dd457600080fd5b8201601f81018413612de557600080fd5b61239784823560208401612a64565b600060208284031215612e0657600080fd5b5035919050565b60008151808452612e258160208601602086016130dc565b601f01601f19169290920160200192915050565b60008151612e4b8185602086016130dc565b9290920192915050565b600080845481600182811c915080831680612e7157607f831692505b6020808410821415612e9157634e487b7160e01b86526022600452602486fd5b818015612ea55760018114612eb657612ee3565b60ff19861689528489019650612ee3565b60008b81526020902060005b86811015612edb5781548b820152908501908301612ec2565b505084890196505b505050505050612ef38185612e39565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f2f90830184612e0d565b9695505050505050565b6020815260006122876020830184612e0d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600b908201526a2a37b5b2b71032b93937b960a91b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613072576130726131b4565b604052919050565b6000821982111561308d5761308d613172565b500190565b6000826130a1576130a1613188565b500490565b60008160001904831182151516156130c0576130c0613172565b500290565b6000828210156130d7576130d7613172565b500390565b60005b838110156130f75781810151838201526020016130df565b83811115611b155750506000910152565b600181811c9082168061311c57607f821691505b6020821081141561313d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561315757613157613172565b5060010190565b60008261316d5761316d613188565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611a7657600080fd5b6001600160e01b031981168114611a7657600080fdfea26469706673582212203fce60963f36f70abc575223f5bb73322a30b710dffc229b67018823f1d3968764736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : amount (uint256): 10000
Arg [1] : presaleAmount (uint256): 1500
Arg [2] : _baseURI (string):

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

The collection includes 9,000 generative goats and 1,000 unique hand-drawn goats. Each goat is stored as ERC-721 tokens on the Ethereum blockchain.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.