Contract 0xf93508b2344ed9fA182D2DE03fAFcEBD70Eb7F8D

 
Txn Hash
Method
Block
From
To
Value
0x66e1ad0a989956e93a95994072a839f2779cccd1c61972b3efd81d49df0f3a6cSet Approval For...153170722022-08-10 22:39:3820 hrs 23 mins agoENS Name rozgoldem.eth IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00101635 40.‍92435185
0xde23b863ca1a6aaaf040db651d63c60f7a10a3f293a34cf39071329ef9f296d3Withdraw All142622522022-02-23 12:14:26169 days 6 hrs ago0xb767fe0b09a1f1de3bfa2ee3791cc67261f2f322 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00162545 53.‍29346143
0x4a8cbd33bab68492011864a4c07bf429f6a87bb8ca2cde113c1a88470d866b34Transfer From142373552022-02-19 15:48:47173 days 3 hrs ago0x735da807b43ee6ecba1bceecb66e3f7431befdc6 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00527604 62.‍11638932
0x8e097677fdd66937cc65d4c564708a19fac22bcd25976343c2502ce48c2e846cSet Approval For...142286252022-02-18 7:07:28174 days 11 hrs ago0x4e4da5abb3c4e27db723db8f543c2f6794c6a212 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00190387 40.‍72711786
0xa3145058531d9142151adf1f063f8b755b9925f195f7562bdc5a541015e5acd9Transfer From142092312022-02-15 6:53:20177 days 12 hrs agoENS Name harrisonfirst.eth IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍0046989 53.‍55608684
0x424a5e8cffdb6186b8035ea6286f0473388e0ec6616be80cbde95ceb76e0b5c8Pause Sale136474142021-11-19 19:28:39264 days 23 hrs ago0xb767fe0b09a1f1de3bfa2ee3791cc67261f2f322 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00276214 115.‍81814988
0xedb114ccd38682a5ec064fc4cdd903406d16986b6e2992237af5ff008e2ddd9dBuy Tard X136025302021-11-12 17:06:24272 days 1 hr ago0xcec14268e0f4e5c0f5779a6a158093448fb86673 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0.‍023 Ether0.‍02773072 177.‍69725399
0x568ad779c8e14aa27c030542230292495eb2d2d2b7a9d2572ef0ab089bfca8acBuy Tard X134997932021-10-27 13:53:19288 days 5 hrs ago0x8da02d597a2616e9ec0c82b2b8366b00d69da29a IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0.‍023 Ether0.‍01910552 120.‍26944729
0x968661ac5d61759cb650c2e28e8da28153967a793dd14ebaabb583ba643be248Buy Tard X134997882021-10-27 13:52:18288 days 5 hrs ago0x8da02d597a2616e9ec0c82b2b8366b00d69da29a IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0.‍023 Ether0.‍02003288 126.‍10720313
0x299585978c8ee11771d867e873e178610155691e26d261766cb25a6a648af1ecSet Approval For...134811832021-10-24 16:13:29291 days 2 hrs ago0x5c145e78c0fbf8e58748b81ca5c29e525e211591 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00385956 82.‍5629298
0xc702af41e495b060d746699426be7acdba1eb5f498443390bc51a35ff3a38a5cBuy Tard X133978142021-10-11 14:25:39304 days 4 hrs ago0x8da02d597a2616e9ec0c82b2b8366b00d69da29a IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0.‍023 Ether0.‍01498105 95.‍99793885
0x0afed8ec7bd479e6e8569dc36dee74f65495348100fb43afcdae53e5f287f869Buy Tard X133978142021-10-11 14:25:39304 days 4 hrs ago0x8da02d597a2616e9ec0c82b2b8366b00d69da29a IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0.‍023 Ether0.‍01498105 95.‍99793885
0xee5d241b425828931ea61777f76b845deabdfa6ce058575e47270f7474109010Buy Tard X133978142021-10-11 14:25:39304 days 4 hrs ago0x8da02d597a2616e9ec0c82b2b8366b00d69da29a IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0.‍023 Ether0.‍01498105 95.‍99793885
0x1339594485d4b753bd4aad94726d18972def84ddf492e0c4e873725d7d798a88Transfer From133241062021-09-30 1:18:30315 days 17 hrs ago0xadb8e447071bfa0a94d3c4078a0c9e074d2af823 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00666957 77.‍64983643
0x53a30c0ffa0aa1fd58194d4745031f36fe5dd5667dd678c21f38fa79f8bf50caTransfer From133240922021-09-30 1:15:06315 days 17 hrs ago0xadb8e447071bfa0a94d3c4078a0c9e074d2af823 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00372928 49.‍42719469
0x4f5b908c571e19dc665f5799574941cf7586a705dce1cbc509c2402febd84ec7Transfer From133240882021-09-30 1:14:25315 days 17 hrs ago0xadb8e447071bfa0a94d3c4078a0c9e074d2af823 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00445274 53.‍57979633
0x3db9b8bfb9d0fd9e9531a9fc0969fa76b8a1486792e4d60ec69864060ddd02e2Transfer From133240752021-09-30 1:12:32315 days 17 hrs ago0xadb8e447071bfa0a94d3c4078a0c9e074d2af823 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00657952 66.‍99791158
0xdeddbcc147a5b8bb768067a4ac3cf5dd3dc258d356c62bb80751f844fb7d39fbTransfer From132490922021-09-18 10:22:02327 days 8 hrs ago0xadb8e447071bfa0a94d3c4078a0c9e074d2af823 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00320602 37.‍32060229
0xc22fa10a0777d93124241427daf1becef6499811818b127e4e3efe122c89ab62Transfer From132490832021-09-18 10:20:00327 days 8 hrs ago0xadb8e447071bfa0a94d3c4078a0c9e074d2af823 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00352028 35.‍84626229
0xa653df9c92ff995b01dd3a9626418fc1eb68d157ffa21e85731af9d496eb66efBuy Tard X132045902021-09-11 13:00:20334 days 6 hrs ago0xab72a297d971f5d035738f39ddbe81f658d8796e IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0.‍023 Ether0.‍00780501 50.‍01419773
0xc3b049a52b5e4d4ba774a0bb82091f449a1ec21085a755f8c4d87dee437c0505Transfer From131994702021-09-10 17:48:32335 days 1 hr agoENS Name harto.eth IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00825004 94.‍03044414
0x147b37ced62d5dcc3dd33430d6724623c91f630da88461073e47cba08214ddfcSet Approval For...131978282021-09-10 11:49:19335 days 7 hrs ago0xfe2a4b65abc248ce032b68b1857c69cd4b9edf42 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00343315 73.‍44122882
0x327cb1397a46a523f9265ec671abe22edf19fa88a3c0839dcf3178a4e7e185ebTransfer From131977592021-09-10 11:32:28335 days 7 hrs agoENS Name cooljamesdean.eth IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00471797 55.‍54607996
0x532e630e25c8d585afdfc76009c7c5cd8241e04435955e3dd689017bc2c17a21Transfer From131903982021-09-09 8:14:27336 days 10 hrs ago0xb767fe0b09a1f1de3bfa2ee3791cc67261f2f322 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0 Ether0.‍00916646 93.‍35155551
0x13e75820311e323bfc29dbf61386c0a280fc8e0704c5f8c839771944ecdb265aBuy Tard X131656082021-09-05 12:06:41340 days 6 hrs ago0xe0c9f660bc79eb8bbe00fbd8872e47261f443a67 IN  0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0.‍023 Ether0.‍01148897 72.‍32320227
[ Download CSV Export 
Latest 3 internal transactions
Parent Txn Hash Block From To Value
0xde23b863ca1a6aaaf040db651d63c60f7a10a3f293a34cf39071329ef9f296d3142622522022-02-23 12:14:26169 days 6 hrs ago 0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0xb767fe0b09a1f1de3bfa2ee3791cc67261f2f3221.‍472 Ether
0xefadf18fe242079d016e2d6ec68c9e4069ddd4e8dde9c05fccaa0ded957f531d130240972021-08-14 15:27:52362 days 3 hrs ago 0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0xb767fe0b09a1f1de3bfa2ee3791cc67261f2f3224.‍272 Ether
0x3bddf25e2bcf2722906a2be7a35831ff2b5b83690636cf9a92b97d96a0f33ca2129414702021-08-01 19:21:46374 days 23 hrs ago 0xf93508b2344ed9fa182d2de03fafcebd70eb7f8d0xb767fe0b09a1f1de3bfa2ee3791cc67261f2f3220.‍356 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TARDX

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : Tardigrade.sol
pragma solidity 0.8.4;

import "./Ownable.sol";
import "./Strings.sol";
import "./SafeMath.sol";
import "./ERC721Enumerable.sol";


contract TARDX is ERC721Enumerable, Ownable {
    using SafeMath for uint256;

    string public defaultURI = "ipfs://QmaNR7LcV2RQ1HN4VEH5XBXZBBcEH6iA6uSnAky8NFPr3s";
    string public baseURI = "ipfs://";
    
    bool public saleIsActive = false;
    bool public initialSaleEnded = false;

    uint public initialDropMaxSupply;
    uint maxTardxPurchase = 3;
    uint256 tardXPrice;
    uint256 airdropSupply;
    
    struct TardX {
        bool initialized;
        string dna;
        uint256 dominantTrait;
        uint256[2] parents;
        uint256[8] fightAttributes;
        uint256 purity;
        uint256 planet;
        uint256 level;
        uint256 xp;
        uint256 version;
    }

    mapping (uint256 => TardX) public tardXs;
    mapping (uint256 => string) tokenCIDs;
    mapping (address => bool) public proxyAddressRegistry;

    constructor(uint _initialDropMaxSupply, uint _airdropSupply, uint _tardXPrice) ERC721("TARDX Fight Club", "TARDX") { 
        initialDropMaxSupply = _initialDropMaxSupply;
        airdropSupply = _airdropSupply;
        setTardxPrice(_tardXPrice);
    }

    function addProxyAddress(address _address) public onlyOwner {
        proxyAddressRegistry[_address] = true;
    }

    function removeProxyAddress(address _address) public onlyOwner {
        proxyAddressRegistry[_address] = false;
    }

    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");

        return bytes(tokenCIDs[_tokenId]).length > 0 ? string(abi.encodePacked(baseURI, tokenCIDs[_tokenId])) : defaultURI;
    }
    
    function setBaseURI(string calldata _baseURI) public onlyOwner {
        baseURI = _baseURI;
    }

    function setDefaultURI(string calldata _defaultURI) public onlyOwner {
        defaultURI = _defaultURI;
    }

    function proxyOrOwner() internal {
        require(msg.sender == owner() || proxyAddressRegistry[msg.sender], "Access Denied");
    }

    function setTardXCID(uint256 _tokenId, string memory _ipfsHash) public {
        proxyOrOwner();
        tokenCIDs[_tokenId] = _ipfsHash;
    }

    function setTokenCIDs(uint[] memory _tokenIds, string[] memory _tokenCIDs) public {
        proxyOrOwner();
        require(_tokenIds.length <= 100, "Limit 100 tokenIds");
        for(uint i = 0; i < _tokenIds.length; i++){
            tokenCIDs[_tokenIds[i]] = _tokenCIDs[i];
        }
    }

    function setTardXData(uint256 _tokenId, string calldata _dna, uint _dominantTrait, uint256 _purity, uint256 _planet, 
    uint256 _level, uint256 _xp, uint256[2] calldata _parents, uint[8] calldata _fightAttributes, uint _version) public {
        proxyOrOwner();
        require(_exists(_tokenId), "This tardX does not exist");
        tardXs[_tokenId].dna = _dna;
        tardXs[_tokenId].dominantTrait = _dominantTrait;
        tardXs[_tokenId].purity = _purity;
        tardXs[_tokenId].planet = _planet;
        tardXs[_tokenId].level = _level;
        tardXs[_tokenId].xp = _xp;
        tardXs[_tokenId].parents = _parents;
        tardXs[_tokenId].fightAttributes = _fightAttributes;
        tardXs[_tokenId].version = _version;
        tardXs[_tokenId].initialized = true;
    }

    function buyTardX(uint _numberOfTokens) public payable {
        require(saleIsActive, "Sale must be active to mint a tardX");
        require(_numberOfTokens <= maxTardxPurchase, "You cannot purchase these many tardXs at a time");
        require(totalSupply().add(_numberOfTokens) < (initialDropMaxSupply - airdropSupply), "Purchase would exceed max supply");
        require(tardXPrice.mul(_numberOfTokens) <= msg.value, "Ether value sent is not correct");

        for (uint i = 0; i < _numberOfTokens; i++) {
            uint mintIndex = totalSupply();
            if (totalSupply() < (initialDropMaxSupply - airdropSupply)) {
                _safeMint(msg.sender, mintIndex);
            }
        }
    }

    function airdropTardX(address _to,uint _numberOfTokens) public onlyOwner {
        require (_numberOfTokens <= airdropSupply, "No more tokens to airdrop");
        for (uint i = 0; i < _numberOfTokens; i++) {
            uint mintIndex = totalSupply();
            if (airdropSupply > 0 && totalSupply() < initialDropMaxSupply) {
                _safeMint(_to, mintIndex);
                airdropSupply --;
            }
        }
    }

    function mintAsProxy(address _to, uint _numberOfTokens) public {
        proxyOrOwner();
        require(!saleIsActive || totalSupply() == initialDropMaxSupply, "Initial sale still active");
        for (uint i = 0; i < _numberOfTokens; i++) {
            uint mintIndex = totalSupply();
            _safeMint(_to, mintIndex);
        }
    }

    function resumeSale() public onlyOwner {
        require(!initialSaleEnded, "Initial sale ended");
        saleIsActive = true;
    }

    function pauseSale() public onlyOwner {
        saleIsActive = false;
    }

    function endInitialSale() public onlyOwner {
        saleIsActive = false;
        initialSaleEnded = true;
    }

    function setTardxPrice(uint256 _tardXPrice) public onlyOwner {
        require(_tardXPrice > 0, "sale price cannot be null");
        tardXPrice = 1 ether / 1000 * _tardXPrice;
    }

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

    function transferOwnership(address newOwner) override public onlyOwner {
        return super.transferOwnership(newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 14 : 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 5 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 14 : 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 14 : 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 "./Strings.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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 8 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 14 : 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 14 of 14 : 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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_initialDropMaxSupply","type":"uint256"},{"internalType":"uint256","name":"_airdropSupply","type":"uint256"},{"internalType":"uint256","name":"_tardXPrice","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addProxyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"airdropTardX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"buyTardX","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endInitialSale","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":"initialDropMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialSaleEnded","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":"_to","type":"address"},{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"mintAsProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxyAddressRegistry","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeProxyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resumeSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_defaultURI","type":"string"}],"name":"setDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"setTardXCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_dna","type":"string"},{"internalType":"uint256","name":"_dominantTrait","type":"uint256"},{"internalType":"uint256","name":"_purity","type":"uint256"},{"internalType":"uint256","name":"_planet","type":"uint256"},{"internalType":"uint256","name":"_level","type":"uint256"},{"internalType":"uint256","name":"_xp","type":"uint256"},{"internalType":"uint256[2]","name":"_parents","type":"uint256[2]"},{"internalType":"uint256[8]","name":"_fightAttributes","type":"uint256[8]"},{"internalType":"uint256","name":"_version","type":"uint256"}],"name":"setTardXData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tardXPrice","type":"uint256"}],"name":"setTardxPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"_tokenCIDs","type":"string[]"}],"name":"setTokenCIDs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tardXs","outputs":[{"internalType":"bool","name":"initialized","type":"bool"},{"internalType":"string","name":"dna","type":"string"},{"internalType":"uint256","name":"dominantTrait","type":"uint256"},{"internalType":"uint256","name":"purity","type":"uint256"},{"internalType":"uint256","name":"planet","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"xp","type":"uint256"},{"internalType":"uint256","name":"version","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260405180606001604052806035815260200162005b2460359139600b908051906020019062000035929190620003c5565b506040518060400160405280600781526020017f697066733a2f2f00000000000000000000000000000000000000000000000000815250600c908051906020019062000083929190620003c5565b506000600d60006101000a81548160ff0219169083151502179055506000600d60016101000a81548160ff0219169083151502179055506003600f55348015620000cc57600080fd5b5060405162005b5938038062005b598339818101604052810190620000f291906200048c565b6040518060400160405280601081526020017f544152445820466967687420436c7562000000000000000000000000000000008152506040518060400160405280600581526020017f5441524458000000000000000000000000000000000000000000000000000000815250816000908051906020019062000176929190620003c5565b5080600190805190602001906200018f929190620003c5565b505050620001b2620001a6620001da60201b60201c565b620001e260201b60201c565b82600e8190555081601181905550620001d181620002a860201b60201c565b505050620006f0565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002b8620001da60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002de6200039b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000337576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200032e9062000530565b60405180910390fd5b600081116200037d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003749062000552565b60405180910390fd5b8066038d7ea4c6800062000392919062000585565b60108190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003d390620005f0565b90600052602060002090601f016020900481019282620003f7576000855562000443565b82601f106200041257805160ff191683800117855562000443565b8280016001018555821562000443579182015b828111156200044257825182559160200191906001019062000425565b5b50905062000452919062000456565b5090565b5b808211156200047157600081600090555060010162000457565b5090565b6000815190506200048681620006d6565b92915050565b600080600060608486031215620004a257600080fd5b6000620004b28682870162000475565b9350506020620004c58682870162000475565b9250506040620004d88682870162000475565b9150509250925092565b6000620004f160208362000574565b9150620004fe8262000684565b602082019050919050565b60006200051860198362000574565b91506200052582620006ad565b602082019050919050565b600060208201905081810360008301526200054b81620004e2565b9050919050565b600060208201905081810360008301526200056d8162000509565b9050919050565b600082825260208201905092915050565b60006200059282620005e6565b91506200059f83620005e6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615620005db57620005da62000626565b5b828202905092915050565b6000819050919050565b600060028204905060018216806200060957607f821691505b6020821081141562000620576200061f62000655565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f73616c652070726963652063616e6e6f74206265206e756c6c00000000000000600082015250565b620006e181620005e6565b8114620006ed57600080fd5b50565b61542480620007006000396000f3fe6080604052600436106102465760003560e01c806370a0823111610139578063b88d4fde116100b6578063da73f4831161007a578063da73f4831461084a578063e14b36b514610873578063e4a21ff61461089c578063e985e9c5146108c5578063eb8d244414610902578063f2fde38b1461092d57610246565b8063b88d4fde14610769578063c304bbab14610792578063c87b56dd146107bb578063d7b72010146107f8578063da1b9e081461082157610246565b80638da5cb5b116100fd5780638da5cb5b146106a857806395d89b41146106d3578063a22cb465146106fe578063abfec4af14610727578063b33b66711461075257610246565b806370a08231146105d0578063715018a61461060d578063723cfd2e14610624578063804346a81461064d578063853828b61461069157610246565b80633a367a67116101c757806355f804b31161018b57806355f804b3146104eb578063569d401d146105145780635d4cbab71461053d5780636352211e146105685780636c0360eb146105a557610246565b80633a367a671461041a5780633b8fcd561461044557806342842e0e1461046e5780634f6ccce71461049757806355367ba9146104d457610246565b806318160ddd1161020e57806318160ddd1461035657806323b872dd14610381578063295cf03e146103aa5780632f745c59146103c657806333e364cb1461040357610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f05780631156186d14610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190613c1f565b610956565b60405161027f91906143cb565b60405180910390f35b34801561029457600080fd5b5061029d6109d0565b6040516102aa919061446b565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190613cb6565b610a62565b6040516102e79190614364565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613b77565b610ae7565b005b34801561032557600080fd5b50610340600480360381019061033b9190613a0c565b610bff565b60405161034d91906143cb565b60405180910390f35b34801561036257600080fd5b5061036b610c1f565b604051610378919061482d565b60405180910390f35b34801561038d57600080fd5b506103a860048036038101906103a39190613a71565b610c2c565b005b6103c460048036038101906103bf9190613cb6565b610c8c565b005b3480156103d257600080fd5b506103ed60048036038101906103e89190613b77565b610e39565b6040516103fa919061482d565b60405180910390f35b34801561040f57600080fd5b50610418610ede565b005b34801561042657600080fd5b5061042f610fc7565b60405161043c919061446b565b60405180910390f35b34801561045157600080fd5b5061046c60048036038101906104679190613b77565b611055565b005b34801561047a57600080fd5b5061049560048036038101906104909190613a71565b611188565b005b3480156104a357600080fd5b506104be60048036038101906104b99190613cb6565b6111a8565b6040516104cb919061482d565b60405180910390f35b3480156104e057600080fd5b506104e961123f565b005b3480156104f757600080fd5b50610512600480360381019061050d9190613c71565b6112d8565b005b34801561052057600080fd5b5061053b60048036038101906105369190613b77565b61136a565b005b34801561054957600080fd5b5061055261140f565b60405161055f91906143cb565b60405180910390f35b34801561057457600080fd5b5061058f600480360381019061058a9190613cb6565b611422565b60405161059c9190614364565b60405180910390f35b3480156105b157600080fd5b506105ba6114d4565b6040516105c7919061446b565b60405180910390f35b3480156105dc57600080fd5b506105f760048036038101906105f29190613a0c565b611562565b604051610604919061482d565b60405180910390f35b34801561061957600080fd5b5061062261161a565b005b34801561063057600080fd5b5061064b60048036038101906106469190613bb3565b6116a2565b005b34801561065957600080fd5b50610674600480360381019061066f9190613cb6565b6117bb565b6040516106889897969594939291906143e6565b60405180910390f35b34801561069d57600080fd5b506106a6611898565b005b3480156106b457600080fd5b506106bd611963565b6040516106ca9190614364565b60405180910390f35b3480156106df57600080fd5b506106e861198d565b6040516106f5919061446b565b60405180910390f35b34801561070a57600080fd5b5061072560048036038101906107209190613b3b565b611a1f565b005b34801561073357600080fd5b5061073c611ba0565b604051610749919061482d565b60405180910390f35b34801561075e57600080fd5b50610767611ba6565b005b34801561077557600080fd5b50610790600480360381019061078b9190613ac0565b611c5a565b005b34801561079e57600080fd5b506107b960048036038101906107b49190613dd7565b611cbc565b005b3480156107c757600080fd5b506107e260048036038101906107dd9190613cb6565b611cf0565b6040516107ef919061446b565b60405180910390f35b34801561080457600080fd5b5061081f600480360381019061081a9190613a0c565b611e2e565b005b34801561082d57600080fd5b5061084860048036038101906108439190613c71565b611f05565b005b34801561085657600080fd5b50610871600480360381019061086c9190613cdf565b611f97565b005b34801561087f57600080fd5b5061089a60048036038101906108959190613cb6565b612137565b005b3480156108a857600080fd5b506108c360048036038101906108be9190613a0c565b612212565b005b3480156108d157600080fd5b506108ec60048036038101906108e79190613a35565b6122e9565b6040516108f991906143cb565b60405180910390f35b34801561090e57600080fd5b5061091761237d565b60405161092491906143cb565b60405180910390f35b34801561093957600080fd5b50610954600480360381019061094f9190613a0c565b612390565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109c957506109c882612418565b5b9050919050565b6060600080546109df90614b43565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0b90614b43565b8015610a585780601f10610a2d57610100808354040283529160200191610a58565b820191906000526020600020905b815481529060010190602001808311610a3b57829003601f168201915b5050505050905090565b6000610a6d826124fa565b610aac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa3906146cd565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610af282611422565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5a9061476d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b82612566565b73ffffffffffffffffffffffffffffffffffffffff161480610bb15750610bb081610bab612566565b6122e9565b5b610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be79061460d565b60405180910390fd5b610bfa838361256e565b505050565b60146020528060005260406000206000915054906101000a900460ff1681565b6000600880549050905090565b610c3d610c37612566565b82612627565b610c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c73906147ad565b60405180910390fd5b610c87838383612705565b505050565b600d60009054906101000a900460ff16610cdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd29061448d565b60405180910390fd5b600f54811115610d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d179061474d565b60405180910390fd5b601154600e54610d309190614a2f565b610d4a82610d3c610c1f565b61296190919063ffffffff16565b10610d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d819061468d565b60405180910390fd5b34610da08260105461297790919063ffffffff16565b1115610de1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd8906145cd565b60405180910390fd5b60005b81811015610e35576000610df6610c1f565b9050601154600e54610e089190614a2f565b610e10610c1f565b1015610e2157610e20338261298d565b5b508080610e2d90614ba6565b915050610de4565b5050565b6000610e4483611562565b8210610e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7c906144cd565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610ee6612566565b73ffffffffffffffffffffffffffffffffffffffff16610f04611963565b73ffffffffffffffffffffffffffffffffffffffff1614610f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f51906146ed565b60405180910390fd5b600d60019054906101000a900460ff1615610faa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa19061480d565b60405180910390fd5b6001600d60006101000a81548160ff021916908315150217905550565b600b8054610fd490614b43565b80601f016020809104026020016040519081016040528092919081815260200182805461100090614b43565b801561104d5780601f106110225761010080835404028352916020019161104d565b820191906000526020600020905b81548152906001019060200180831161103057829003601f168201915b505050505081565b61105d612566565b73ffffffffffffffffffffffffffffffffffffffff1661107b611963565b73ffffffffffffffffffffffffffffffffffffffff16146110d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c8906146ed565b60405180910390fd5b601154811115611116576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110d9061458d565b60405180910390fd5b60005b8181101561118357600061112b610c1f565b905060006011541180156111475750600e54611145610c1f565b105b1561116f57611156848261298d565b6011600081548092919061116990614b19565b91905055505b50808061117b90614ba6565b915050611119565b505050565b6111a383838360405180602001604052806000815250611c5a565b505050565b60006111b2610c1f565b82106111f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ea906147ed565b60405180910390fd5b6008828154811061122d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b611247612566565b73ffffffffffffffffffffffffffffffffffffffff16611265611963565b73ffffffffffffffffffffffffffffffffffffffff16146112bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b2906146ed565b60405180910390fd5b6000600d60006101000a81548160ff021916908315150217905550565b6112e0612566565b73ffffffffffffffffffffffffffffffffffffffff166112fe611963565b73ffffffffffffffffffffffffffffffffffffffff1614611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b906146ed565b60405180910390fd5b8181600c919061136592919061355e565b505050565b6113726129ab565b600d60009054906101000a900460ff1615806113965750600e54611394610c1f565b145b6113d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cc906144ad565b60405180910390fd5b60005b8181101561140a5760006113ea610c1f565b90506113f6848261298d565b50808061140290614ba6565b9150506113d8565b505050565b600d60019054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c29061464d565b60405180910390fd5b80915050919050565b600c80546114e190614b43565b80601f016020809104026020016040519081016040528092919081815260200182805461150d90614b43565b801561155a5780601f1061152f5761010080835404028352916020019161155a565b820191906000526020600020905b81548152906001019060200180831161153d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ca9061462d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611622612566565b73ffffffffffffffffffffffffffffffffffffffff16611640611963565b73ffffffffffffffffffffffffffffffffffffffff1614611696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168d906146ed565b60405180910390fd5b6116a06000612a76565b565b6116aa6129ab565b6064825111156116ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e69061466d565b60405180910390fd5b60005b82518110156117b657818181518110611734577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160136000858481518110611779577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002090805190602001906117a29291906135e4565b5080806117ae90614ba6565b9150506116f2565b505050565b60126020528060005260406000206000915090508060000160009054906101000a900460ff16908060010180546117f190614b43565b80601f016020809104026020016040519081016040528092919081815260200182805461181d90614b43565b801561186a5780601f1061183f5761010080835404028352916020019161186a565b820191906000526020600020905b81548152906001019060200180831161184d57829003601f168201915b50505050509080600201549080600d01549080600e01549080600f0154908060100154908060110154905088565b6118a0612566565b73ffffffffffffffffffffffffffffffffffffffff166118be611963565b73ffffffffffffffffffffffffffffffffffffffff1614611914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190b906146ed565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561195f573d6000803e3d6000fd5b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461199c90614b43565b80601f01602080910402602001604051908101604052809291908181526020018280546119c890614b43565b8015611a155780601f106119ea57610100808354040283529160200191611a15565b820191906000526020600020905b8154815290600101906020018083116119f857829003601f168201915b5050505050905090565b611a27612566565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8c9061456d565b60405180910390fd5b8060056000611aa2612566565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b4f612566565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b9491906143cb565b60405180910390a35050565b600e5481565b611bae612566565b73ffffffffffffffffffffffffffffffffffffffff16611bcc611963565b73ffffffffffffffffffffffffffffffffffffffff1614611c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c19906146ed565b60405180910390fd5b6000600d60006101000a81548160ff0219169083151502179055506001600d60016101000a81548160ff021916908315150217905550565b611c6b611c65612566565b83612627565b611caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca1906147ad565b60405180910390fd5b611cb684848484612b3c565b50505050565b611cc46129ab565b80601360008481526020019081526020016000209080519060200190611ceb9291906135e4565b505050565b6060611cfb826124fa565b611d3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d319061472d565b60405180910390fd5b6000601360008481526020019081526020016000208054611d5a90614b43565b905011611df157600b8054611d6e90614b43565b80601f0160208091040260200160405190810160405280929190818152602001828054611d9a90614b43565b8015611de75780601f10611dbc57610100808354040283529160200191611de7565b820191906000526020600020905b815481529060010190602001808311611dca57829003601f168201915b5050505050611e27565b600c60136000848152602001908152602001600020604051602001611e17929190614340565b6040516020818303038152906040525b9050919050565b611e36612566565b73ffffffffffffffffffffffffffffffffffffffff16611e54611963565b73ffffffffffffffffffffffffffffffffffffffff1614611eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea1906146ed565b60405180910390fd5b6001601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611f0d612566565b73ffffffffffffffffffffffffffffffffffffffff16611f2b611963565b73ffffffffffffffffffffffffffffffffffffffff1614611f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f78906146ed565b60405180910390fd5b8181600b9190611f9292919061355e565b505050565b611f9f6129ab565b611fa88b6124fa565b611fe7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fde9061478d565b60405180910390fd5b8989601260008e8152602001908152602001600020600101919061200c92919061355e565b5087601260008d81526020019081526020016000206002018190555086601260008d8152602001908152602001600020600d018190555085601260008d8152602001908152602001600020600e018190555084601260008d8152602001908152602001600020600f018190555083601260008d81526020019081526020016000206010018190555082601260008d81526020019081526020016000206003019060026120b992919061366a565b5081601260008d81526020019081526020016000206005019060086120df9291906136aa565b5080601260008d8152602001908152602001600020601101819055506001601260008d815260200190815260200160002060000160006101000a81548160ff0219169083151502179055505050505050505050505050565b61213f612566565b73ffffffffffffffffffffffffffffffffffffffff1661215d611963565b73ffffffffffffffffffffffffffffffffffffffff16146121b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121aa906146ed565b60405180910390fd5b600081116121f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ed906147cd565b60405180910390fd5b8066038d7ea4c6800061220991906149d5565b60108190555050565b61221a612566565b73ffffffffffffffffffffffffffffffffffffffff16612238611963565b73ffffffffffffffffffffffffffffffffffffffff161461228e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612285906146ed565b60405180910390fd5b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d60009054906101000a900460ff1681565b612398612566565b73ffffffffffffffffffffffffffffffffffffffff166123b6611963565b73ffffffffffffffffffffffffffffffffffffffff161461240c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612403906146ed565b60405180910390fd5b61241581612b98565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124e357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124f357506124f282612c90565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166125e183611422565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612632826124fa565b612671576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612668906145ed565b60405180910390fd5b600061267c83611422565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806126eb57508373ffffffffffffffffffffffffffffffffffffffff166126d384610a62565b73ffffffffffffffffffffffffffffffffffffffff16145b806126fc57506126fb81856122e9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661272582611422565b73ffffffffffffffffffffffffffffffffffffffff161461277b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127729061470d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e29061454d565b60405180910390fd5b6127f6838383612cfa565b61280160008261256e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128519190614a2f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128a8919061497f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000818361296f919061497f565b905092915050565b6000818361298591906149d5565b905092915050565b6129a7828260405180602001604052806000815250612e0e565b5050565b6129b3611963565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612a355750601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6b906145ad565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b47848484612705565b612b5384848484612e69565b612b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b89906144ed565b60405180910390fd5b50505050565b612ba0612566565b73ffffffffffffffffffffffffffffffffffffffff16612bbe611963565b73ffffffffffffffffffffffffffffffffffffffff1614612c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0b906146ed565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7b9061450d565b60405180910390fd5b612c8d81612a76565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612d05838383613000565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d4857612d4381613005565b612d87565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612d8657612d85838261304e565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612dca57612dc5816131bb565b612e09565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e0857612e0782826132fe565b5b5b505050565b612e18838361337d565b612e256000848484612e69565b612e64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5b906144ed565b60405180910390fd5b505050565b6000612e8a8473ffffffffffffffffffffffffffffffffffffffff1661354b565b15612ff3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612eb3612566565b8786866040518563ffffffff1660e01b8152600401612ed5949392919061437f565b602060405180830381600087803b158015612eef57600080fd5b505af1925050508015612f2057506040513d601f19601f82011682018060405250810190612f1d9190613c48565b60015b612fa3573d8060008114612f50576040519150601f19603f3d011682016040523d82523d6000602084013e612f55565b606091505b50600081511415612f9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f92906144ed565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612ff8565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161305b84611562565b6130659190614a2f565b905060006007600084815260200190815260200160002054905081811461314a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506131cf9190614a2f565b9050600060096000848152602001908152602001600020549050600060088381548110613225577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061326d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806132e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061330983611562565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133e4906146ad565b60405180910390fd5b6133f6816124fa565b15613436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342d9061452d565b60405180910390fd5b61344260008383612cfa565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613492919061497f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b82805461356a90614b43565b90600052602060002090601f01602090048101928261358c57600085556135d3565b82601f106135a557803560ff19168380011785556135d3565b828001600101855582156135d3579182015b828111156135d25782358255916020019190600101906135b7565b5b5090506135e091906136ea565b5090565b8280546135f090614b43565b90600052602060002090601f0160209004810192826136125760008555613659565b82601f1061362b57805160ff1916838001178555613659565b82800160010185558215613659579182015b8281111561365857825182559160200191906001019061363d565b5b50905061366691906136ea565b5090565b8260028101928215613699579160200282015b8281111561369857823582559160200191906001019061367d565b5b5090506136a691906136ea565b5090565b82600881019282156136d9579160200282015b828111156136d85782358255916020019190600101906136bd565b5b5090506136e691906136ea565b5090565b5b808211156137035760008160009055506001016136eb565b5090565b600061371a6137158461486d565b614848565b9050808382526020820190508285602086028201111561373957600080fd5b60005b8581101561378357813567ffffffffffffffff81111561375b57600080fd5b80860161376889826139cd565b8552602085019450602084019350505060018101905061373c565b5050509392505050565b60006137a061379b84614899565b614848565b905080838252602082019050828560208602820111156137bf57600080fd5b60005b858110156137ef57816137d588826139f7565b8452602084019350602083019250506001810190506137c2565b5050509392505050565b600061380c613807846148c5565b614848565b90508281526020810184848401111561382457600080fd5b61382f848285614ad7565b509392505050565b600061384a613845846148f6565b614848565b90508281526020810184848401111561386257600080fd5b61386d848285614ad7565b509392505050565b60008135905061388481615392565b92915050565b600082601f83011261389b57600080fd5b81356138ab848260208601613707565b91505092915050565b6000819050826020600202820111156138cc57600080fd5b92915050565b6000819050826020600802820111156138ea57600080fd5b92915050565b600082601f83011261390157600080fd5b813561391184826020860161378d565b91505092915050565b600081359050613929816153a9565b92915050565b60008135905061393e816153c0565b92915050565b600081519050613953816153c0565b92915050565b600082601f83011261396a57600080fd5b813561397a8482602086016137f9565b91505092915050565b60008083601f84011261399557600080fd5b8235905067ffffffffffffffff8111156139ae57600080fd5b6020830191508360018202830111156139c657600080fd5b9250929050565b600082601f8301126139de57600080fd5b81356139ee848260208601613837565b91505092915050565b600081359050613a06816153d7565b92915050565b600060208284031215613a1e57600080fd5b6000613a2c84828501613875565b91505092915050565b60008060408385031215613a4857600080fd5b6000613a5685828601613875565b9250506020613a6785828601613875565b9150509250929050565b600080600060608486031215613a8657600080fd5b6000613a9486828701613875565b9350506020613aa586828701613875565b9250506040613ab6868287016139f7565b9150509250925092565b60008060008060808587031215613ad657600080fd5b6000613ae487828801613875565b9450506020613af587828801613875565b9350506040613b06878288016139f7565b925050606085013567ffffffffffffffff811115613b2357600080fd5b613b2f87828801613959565b91505092959194509250565b60008060408385031215613b4e57600080fd5b6000613b5c85828601613875565b9250506020613b6d8582860161391a565b9150509250929050565b60008060408385031215613b8a57600080fd5b6000613b9885828601613875565b9250506020613ba9858286016139f7565b9150509250929050565b60008060408385031215613bc657600080fd5b600083013567ffffffffffffffff811115613be057600080fd5b613bec858286016138f0565b925050602083013567ffffffffffffffff811115613c0957600080fd5b613c158582860161388a565b9150509250929050565b600060208284031215613c3157600080fd5b6000613c3f8482850161392f565b91505092915050565b600060208284031215613c5a57600080fd5b6000613c6884828501613944565b91505092915050565b60008060208385031215613c8457600080fd5b600083013567ffffffffffffffff811115613c9e57600080fd5b613caa85828601613983565b92509250509250929050565b600060208284031215613cc857600080fd5b6000613cd6848285016139f7565b91505092915050565b60008060008060008060008060008060006102408c8e031215613d0157600080fd5b6000613d0f8e828f016139f7565b9b505060208c013567ffffffffffffffff811115613d2c57600080fd5b613d388e828f01613983565b9a509a50506040613d4b8e828f016139f7565b9850506060613d5c8e828f016139f7565b9750506080613d6d8e828f016139f7565b96505060a0613d7e8e828f016139f7565b95505060c0613d8f8e828f016139f7565b94505060e0613da08e828f016138b4565b935050610120613db28e828f016138d2565b925050610220613dc48e828f016139f7565b9150509295989b509295989b9093969950565b60008060408385031215613dea57600080fd5b6000613df8858286016139f7565b925050602083013567ffffffffffffffff811115613e1557600080fd5b613e21858286016139cd565b9150509250929050565b613e3481614a63565b82525050565b613e4381614a75565b82525050565b6000613e548261493c565b613e5e8185614952565b9350613e6e818560208601614ae6565b613e7781614c7c565b840191505092915050565b6000613e8d82614947565b613e978185614963565b9350613ea7818560208601614ae6565b613eb081614c7c565b840191505092915050565b60008154613ec881614b43565b613ed28186614974565b94506001821660008114613eed5760018114613efe57613f31565b60ff19831686528186019350613f31565b613f0785614927565b60005b83811015613f2957815481890152600182019150602081019050613f0a565b838801955050505b50505092915050565b6000613f47602383614963565b9150613f5282614c8d565b604082019050919050565b6000613f6a601983614963565b9150613f7582614cdc565b602082019050919050565b6000613f8d602b83614963565b9150613f9882614d05565b604082019050919050565b6000613fb0603283614963565b9150613fbb82614d54565b604082019050919050565b6000613fd3602683614963565b9150613fde82614da3565b604082019050919050565b6000613ff6601c83614963565b915061400182614df2565b602082019050919050565b6000614019602483614963565b915061402482614e1b565b604082019050919050565b600061403c601983614963565b915061404782614e6a565b602082019050919050565b600061405f601983614963565b915061406a82614e93565b602082019050919050565b6000614082600d83614963565b915061408d82614ebc565b602082019050919050565b60006140a5601f83614963565b91506140b082614ee5565b602082019050919050565b60006140c8602c83614963565b91506140d382614f0e565b604082019050919050565b60006140eb603883614963565b91506140f682614f5d565b604082019050919050565b600061410e602a83614963565b915061411982614fac565b604082019050919050565b6000614131602983614963565b915061413c82614ffb565b604082019050919050565b6000614154601283614963565b915061415f8261504a565b602082019050919050565b6000614177602083614963565b915061418282615073565b602082019050919050565b600061419a602083614963565b91506141a58261509c565b602082019050919050565b60006141bd602c83614963565b91506141c8826150c5565b604082019050919050565b60006141e0602083614963565b91506141eb82615114565b602082019050919050565b6000614203602983614963565b915061420e8261513d565b604082019050919050565b6000614226602f83614963565b91506142318261518c565b604082019050919050565b6000614249602f83614963565b9150614254826151db565b604082019050919050565b600061426c602183614963565b91506142778261522a565b604082019050919050565b600061428f601983614963565b915061429a82615279565b602082019050919050565b60006142b2603183614963565b91506142bd826152a2565b604082019050919050565b60006142d5601983614963565b91506142e0826152f1565b602082019050919050565b60006142f8602c83614963565b91506143038261531a565b604082019050919050565b600061431b601283614963565b915061432682615369565b602082019050919050565b61433a81614acd565b82525050565b600061434c8285613ebb565b91506143588284613ebb565b91508190509392505050565b60006020820190506143796000830184613e2b565b92915050565b60006080820190506143946000830187613e2b565b6143a16020830186613e2b565b6143ae6040830185614331565b81810360608301526143c08184613e49565b905095945050505050565b60006020820190506143e06000830184613e3a565b92915050565b6000610100820190506143fc600083018b613e3a565b818103602083015261440e818a613e82565b905061441d6040830189614331565b61442a6060830188614331565b6144376080830187614331565b61444460a0830186614331565b61445160c0830185614331565b61445e60e0830184614331565b9998505050505050505050565b600060208201905081810360008301526144858184613e82565b905092915050565b600060208201905081810360008301526144a681613f3a565b9050919050565b600060208201905081810360008301526144c681613f5d565b9050919050565b600060208201905081810360008301526144e681613f80565b9050919050565b6000602082019050818103600083015261450681613fa3565b9050919050565b6000602082019050818103600083015261452681613fc6565b9050919050565b6000602082019050818103600083015261454681613fe9565b9050919050565b600060208201905081810360008301526145668161400c565b9050919050565b600060208201905081810360008301526145868161402f565b9050919050565b600060208201905081810360008301526145a681614052565b9050919050565b600060208201905081810360008301526145c681614075565b9050919050565b600060208201905081810360008301526145e681614098565b9050919050565b60006020820190508181036000830152614606816140bb565b9050919050565b60006020820190508181036000830152614626816140de565b9050919050565b6000602082019050818103600083015261464681614101565b9050919050565b6000602082019050818103600083015261466681614124565b9050919050565b6000602082019050818103600083015261468681614147565b9050919050565b600060208201905081810360008301526146a68161416a565b9050919050565b600060208201905081810360008301526146c68161418d565b9050919050565b600060208201905081810360008301526146e6816141b0565b9050919050565b60006020820190508181036000830152614706816141d3565b9050919050565b60006020820190508181036000830152614726816141f6565b9050919050565b6000602082019050818103600083015261474681614219565b9050919050565b600060208201905081810360008301526147668161423c565b9050919050565b600060208201905081810360008301526147868161425f565b9050919050565b600060208201905081810360008301526147a681614282565b9050919050565b600060208201905081810360008301526147c6816142a5565b9050919050565b600060208201905081810360008301526147e6816142c8565b9050919050565b60006020820190508181036000830152614806816142eb565b9050919050565b600060208201905081810360008301526148268161430e565b9050919050565b60006020820190506148426000830184614331565b92915050565b6000614852614863565b905061485e8282614b75565b919050565b6000604051905090565b600067ffffffffffffffff82111561488857614887614c4d565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156148b4576148b3614c4d565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156148e0576148df614c4d565b5b6148e982614c7c565b9050602081019050919050565b600067ffffffffffffffff82111561491157614910614c4d565b5b61491a82614c7c565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061498a82614acd565b915061499583614acd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149ca576149c9614bef565b5b828201905092915050565b60006149e082614acd565b91506149eb83614acd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a2457614a23614bef565b5b828202905092915050565b6000614a3a82614acd565b9150614a4583614acd565b925082821015614a5857614a57614bef565b5b828203905092915050565b6000614a6e82614aad565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614b04578082015181840152602081019050614ae9565b83811115614b13576000848401525b50505050565b6000614b2482614acd565b91506000821415614b3857614b37614bef565b5b600182039050919050565b60006002820490506001821680614b5b57607f821691505b60208210811415614b6f57614b6e614c1e565b5b50919050565b614b7e82614c7c565b810181811067ffffffffffffffff82111715614b9d57614b9c614c4d565b5b80604052505050565b6000614bb182614acd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614be457614be3614bef565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f53616c65206d7573742062652061637469766520746f206d696e74206120746160008201527f7264580000000000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c2073616c65207374696c6c2061637469766500000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f206d6f726520746f6b656e7320746f2061697264726f7000000000000000600082015250565b7f4163636573732044656e69656400000000000000000000000000000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4c696d69742031303020746f6b656e4964730000000000000000000000000000600082015250565b7f507572636861736520776f756c6420657863656564206d617820737570706c79600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f596f752063616e6e6f74207075726368617365207468657365206d616e79207460008201527f617264587320617420612074696d650000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468697320746172645820646f6573206e6f7420657869737400000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f73616c652070726963652063616e6e6f74206265206e756c6c00000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f496e697469616c2073616c6520656e6465640000000000000000000000000000600082015250565b61539b81614a63565b81146153a657600080fd5b50565b6153b281614a75565b81146153bd57600080fd5b50565b6153c981614a81565b81146153d457600080fd5b50565b6153e081614acd565b81146153eb57600080fd5b5056fea264697066735822122065294628f4b171622dbde40f7603a0406befcd50fa887407e7bbbb78a218b6a064736f6c63430008040033697066733a2f2f516d614e52374c635632525131484e34564548355842585a42426345483669413675536e416b79384e46507233730000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000029a0000000000000000000000000000000000000000000000000000000000000059

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

0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000029a0000000000000000000000000000000000000000000000000000000000000059

-----Decoded View---------------
Arg [0] : _initialDropMaxSupply (uint256): 10000
Arg [1] : _airdropSupply (uint256): 666
Arg [2] : _tardXPrice (uint256): 89

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 000000000000000000000000000000000000000000000000000000000000029a
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000059


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

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