Contract 0xe64966e62B7E8De5260983D4ae89Ad75cC452a91 1

 
 
Txn Hash
Method
Block
From
To
Value
0x5d52609256c07c41afa1edb1cf9463b61d88462677b28d9f46c18f0b8b530462Set Approval For...156929052022-10-07 1:21:4751 days 17 hrs agoENS Name jzs.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00025619 5.48515227
0x545dfff2f222db15f0f3e29816da333d173fef44d614e1a34fa72310ad93db34Set Approval For...155404212022-09-15 16:56:5973 days 2 hrs ago0x6a4406f5be648b406c0c20334e8a5de6b4999516 IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00087395 18.71149634
0x536b625afbf731a477a6bcd0626393a6c7f73fba0caef4b2b7b448a637da040aSet Approval For...153832372022-08-21 9:41:0498 days 9 hrs ago0xfabd58c9993e9978a255cf3f74065903ed8b1cc8 IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00012844 2.75
0x9411c7ea6a54dc1317b61cbb9fff7268cf53a06f8fdebe83736e372c188703e9Set Approval For...153521762022-08-16 11:51:11103 days 7 hrs agoENS Name leafsfud.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00049376 10.57145839
0x528aef2d39c02acfc60ea87a7f35c1eb6c32ad1ff780c8e79b50cb1040651790Set Approval For...153497252022-08-16 2:22:15103 days 16 hrs agoENS Name *satoshi.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00051921 11.09636564
0x34e0c06102965d240bb6d8c92adf855c9e1815bbdeeae690bc10ca956a57c770Set Approval For...152791192022-08-05 0:36:23114 days 18 hrs agoENS Name honeyrugged.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00024379 5.21959982
0xf44f332f46d51108281989ddd3d396ab9512cecbcde0af1e79b897d91b53e8edSet Approval For...151943702022-07-22 19:39:52127 days 23 hrs agoENS Name teeg.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00067512 14.45438318
0x1c444e32c2d96b465007cd5b41df061fb06373193d800da380ca19a92addd36dSet Approval For...151862492022-07-21 13:49:31129 days 5 hrs agoENS Name minori.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00054109 21.7490244
0x91db8043594f2e528141720754a7366520e1deafaaa08f34c6b998c179a9a099Set Approval For...151646152022-07-18 5:04:05132 days 14 hrs agoENS Name dizi.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00077563 16.60647392
0x13db266c25b73e8a7b3812fe3e04ba16f213a2a3e0d6cde9fc25e6585a5d9dc4Set Approval For...151603862022-07-17 13:18:27133 days 5 hrs agoENS Name b0bert.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00070624 15.12071639
0x126c353905f0dbee4b38105921dc0288fea0800430c6aa73a2fdf258ab539bf4Transfer From151588442022-07-17 7:33:39133 days 11 hrs ago0x0aa84675306126dd9e36cb0852efa2d287222d51 IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00107916 12.6962611
0x61d731edf43ca9252c85e927083b4e7bf657e2bdfc5b94cb4881069ab790e646Transfer From151588262022-07-17 7:29:22133 days 11 hrs ago0x0aa84675306126dd9e36cb0852efa2d287222d51 IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00139983 14.66321955
0x04d72ee3d55617b7461de9a8e8e8fca3b30ee28b19cb5a3b0d215d2c59fa700cSet Approval For...150743412022-07-04 6:21:26146 days 12 hrs ago0xc4c55ba570b8add86fe7b0232fae76564af4534b IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00081486 17.41505377
0x69b70d1d42156fbd3272e0bcf88070dfbe3c3d2a13251fd12589197f380332c4Set Approval For...150743402022-07-04 6:21:05146 days 12 hrs ago0xc4c55ba570b8add86fe7b0232fae76564af4534b IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00073221 15.6485543
0xc38ea8043821d9b86515de8f69e04e19d6f781a738b68ed6dbbfbea98692fad5Set Approval For...150743402022-07-04 6:21:05146 days 12 hrs ago0xc4c55ba570b8add86fe7b0232fae76564af4534b IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00073089 15.6485543
0x2bf12d89ac780265fe81540582709ee837929550020c45aed26d0690cc52fa35Set Approval For...150676302022-07-03 5:20:44147 days 13 hrs agoENS Name kapluie.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00068578 14.68265821
0x0dc5b0db975b90468eabfbe6333e35e0429dbf878a151776b0be3e39fd9c43acSet Approval For...150378882022-06-28 4:16:50152 days 15 hrs agoENS Name aussie533.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.0018106138.76539921
0x615530c3bc9615cb94fc29116fe10028b7a51deefb6eb1c1412f3e84bf93b727Set Approval For...150317382022-06-27 0:53:35153 days 18 hrs agoENS Name 4four4.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.0011859925.39231195
0x9b2fe3cbcb8e2ad468a8833509136d1e98cb346d6d88e8a61aa893de5f71e686Set Approval For...149985562022-06-20 20:36:16159 days 22 hrs agoENS Name hotdead.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00122122 26.09957721
0x247e39076e419809611e776eb7e76c7d93555a226c1b22978e29fe09a127c385Set Approval For...149002922022-06-04 0:50:20176 days 18 hrs agoENS Name rkd.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00131089 52.71624523
0x85cf3d9110fd31e8debb3c8aef1bc49845e6ff751094ee8adf6210cd4f65042fSafe Transfer Fr...148781712022-05-31 10:20:40180 days 8 hrs ago0x176ad2ae7804f0e23fa7905d6c73cefc5c851ea3 IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.0004334814
0xdf9432ad844b8331603a79f9f18754f622612bf0f6bfd52e8022be0ea7e14c4aSafe Transfer Fr...148781712022-05-31 10:20:40180 days 8 hrs ago0x176ad2ae7804f0e23fa7905d6c73cefc5c851ea3 IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.000495416
0xbe4cc2aa3a36d0f108d01a082217c2d865159f70d5baf03ce6378ed96b96ae4eSafe Transfer Fr...148781712022-05-31 10:20:40180 days 8 hrs ago0x176ad2ae7804f0e23fa7905d6c73cefc5c851ea3 IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.0004334814
0x3527c1e3ba7b044bfa1df5e67fd6f2c440d02c9d55c6e4d30e2ad7e849480ad8Set Approval For...148705222022-05-30 4:25:27181 days 14 hrs agoENS Name xicago.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.0009507 20.31805127
0xc87e35dd0d58cbfb3f255e8514dd57d7e6d392583e4efcecea209765d9fbe7a0Set Approval For...148188912022-05-21 18:46:37190 days 30 mins agoENS Name *$vision.eth IN  0xe64966e62b7e8de5260983d4ae89ad75cc452a910 Ether0.00136794 29.23518069
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0x29ffef724adda0696364bdc3286c7e9837621554215832d8f56563268f7efedd139760132022-01-10 5:55:44321 days 13 hrs ago 0xe64966e62b7e8de5260983d4ae89ad75cc452a910x0b2612285cdd2577f4ddda46673d26876007d3cb2.9025 Ether
0x29ffef724adda0696364bdc3286c7e9837621554215832d8f56563268f7efedd139760132022-01-10 5:55:44321 days 13 hrs ago 0xe64966e62b7e8de5260983d4ae89ad75cc452a910xd747d1c09c7c9a69c2d2bc407d3e91405d4698e22.9025 Ether
0x29ffef724adda0696364bdc3286c7e9837621554215832d8f56563268f7efedd139760132022-01-10 5:55:44321 days 13 hrs ago 0xe64966e62b7e8de5260983d4ae89ad75cc452a910xe12744c41bec092b7b38d66ee68c14cdb1366a080.3225 Ether
0x29ffef724adda0696364bdc3286c7e9837621554215832d8f56563268f7efedd139760132022-01-10 5:55:44321 days 13 hrs ago 0xe64966e62b7e8de5260983d4ae89ad75cc452a91ENS Name mannynotdev.eth0.3225 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BlockFlock

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : BlockFlock_contract.sol
// SPDX-License-Identifier: MIT

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

pragma solidity ^0.8.0;

contract BlockFlock is ERC721, ERC721Enumerable, Ownable {
    
    using SafeMath for uint256;

    string private _baseURIextended;
    
    uint public price = 0.05 ether;
    uint public constant maxBirdsPurchase = 10;
    uint public mintChickStartDate = 1637254800; // Thursday, November 18, 2021 12:00:00 PM EST
    bool public presaleIsActive = false;
    bool public saleIsActive = false;

    uint16[] birds;
    uint public constant MAX_BIRDS = 4444;
    uint public constant MAX_CHICKS = 888;
    mapping(uint => bool) public birdsUsedForBreeding;
    uint public chickSupply = 0;

    uint public reserveAmount = 100; // Reserve - Giveaways etc...
    mapping(address => uint8) private _allowList;

    address public w1 = 0xEca3B7627DEef983A4D4EEE096B0B33A2D880429; // dev
    address public w2 = 0xE12744C41beC092b7b38d66eE68C14Cdb1366a08; // charity
    address public w3 = 0xd747D1c09c7c9A69C2d2bC407d3e91405D4698E2; // partner

    constructor() ERC721("Block Flock", "BLOCKFLOCK") {
        for(uint16 i = 1; i <= MAX_BIRDS; i++) {
            birds.push(i);
        }
    }
    
    function withdraw() public onlyOwner {
        uint w1Cut = address(this).balance * 5/100;
        uint w2Cut = address(this).balance * 5/100;
        uint w3Cut = address(this).balance * 45/100;
        uint ownerCut = address(this).balance * 45/100;
        require(payable(w1).send(w1Cut));
        require(payable(w2).send(w2Cut));
        require(payable(w3).send(w3Cut));
        require(payable(msg.sender).send(ownerCut));
    }
    
    function reserveBirds(address _to, uint _amount) public onlyOwner {        
        require(_amount > 0 && _amount <= birds.length && _amount <= reserveAmount, "Not enough reserve left for team");
        reserveAmount -= _amount;
        for (uint i = 0; i < _amount; i++) {
            uint randBird = getRandom(birds);
            _safeMint(_to, randBird);
        }
    }

    function setAllowList(address[] calldata addresses, uint8 numAllowedToMint) external onlyOwner {
        for (uint i = 0; i < addresses.length; i++) {
            _allowList[addresses[i]] = numAllowedToMint;
        }
    }

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

    function flipPresaleState() public onlyOwner {
        presaleIsActive = !presaleIsActive;
    }
    
    function setChickStartDate(uint timestamp) public onlyOwner {
        mintChickStartDate = timestamp;
    }

    function setPrice(uint256 newPrice) public onlyOwner {
        price = newPrice;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseURIextended;
    }

    function setBaseURI(string memory baseURI_) external onlyOwner() {
        _baseURIextended = baseURI_;
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function getRandom(uint16[] storage _arr) private returns (uint) {
        uint random = _getRandomNumber(_arr);
        uint tokenId = uint(_arr[random]);

        _arr[random] = _arr[_arr.length - 1];
        _arr.pop();

        return tokenId;
    }

    function _getRandomNumber(uint16[] storage _arr) private view returns (uint) {
        uint random = uint(
            keccak256(
                abi.encodePacked(
                    _arr.length,
                    blockhash(block.number - 1),
                    block.coinbase,
                    block.difficulty,
                    msg.sender
                )
            )
        );

        return random % _arr.length;
    }
    
    function tokensOfOwner(address _owner) external view returns(uint[] memory ) {
        uint tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            // Return an empty array
            return new uint[](0);
        } else {
            uint[] memory result = new uint[](tokenCount);
            uint index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    function getBirdsLeft() external view returns(uint) {
        return birds.length;
    }

    function mintBirds(uint numberOfTokens) public payable {
        if (presaleIsActive) {
            require(numberOfTokens <= _allowList[msg.sender], "Exceeded max available to mint");
        } else {
            require(saleIsActive, "Sale must be active to mint a bird");
        }
        require(numberOfTokens > 0 && numberOfTokens <= maxBirdsPurchase, "Can only mint 10 birds at a time");
        require(numberOfTokens <= birds.length, "Purchase would exceed max supply of birds");
        require(msg.value >= price.mul(numberOfTokens), "Ether value sent is not correct");

        if (presaleIsActive) {
            _allowList[msg.sender] -= uint8(numberOfTokens);
        }

        for (uint i = 0; i < numberOfTokens; i++) {
            uint randBird = getRandom(birds);
            _safeMint(msg.sender, randBird);
        }
    }

    function mintChick(uint birdA, uint birdB) public {
        require(block.timestamp >= mintChickStartDate, "Chicks are not available to mint yet");
        require(birdA != birdB, "Must be different birds");
        require(this.ownerOf(birdA) == msg.sender && this.ownerOf(birdB) == msg.sender, "Must own both birds");
        require(!birdsUsedForBreeding[birdA], "Already used birdA");
        require(!birdsUsedForBreeding[birdB], "Already used birdB");
        require(chickSupply < MAX_CHICKS, "No more chicks left to breed");

        bool canMint = false;
        if ((birdA >= 1 && birdA <= 120 && birdB >= 1 && birdB <= 600) || 
            (birdA >= 601 && birdA <= 700 && birdB >= 601 && birdB <= 1100) || 
            (birdA >= 1101 && birdA <= 1200 && birdB >= 1101 && birdB <= 1600) || 
            (birdA >= 1601 && birdA <= 1690 && birdB >= 1601 && birdB <= 2050) || 
            (birdA >= 2051 && birdA <= 2140 && birdB >= 2051 && birdB <= 2500) || 
            (birdA >= 2501 && birdA <= 2580 && birdB >= 2501 && birdB <= 2900) || 
            (birdA >= 2901 && birdA <= 2980 && birdB >= 2901 && birdB <= 3300) || 
            (birdA >= 3301 && birdA <= 3360 && birdB >= 3301 && birdB <= 3600) || 
            (birdA >= 3601 && birdA <= 3660 && birdB >= 3601 && birdB <= 3900) || 
            (birdA >= 3901 && birdA <= 3954 && birdB >= 3901 && birdB <= 4172) || 
            (birdA >= 4173 && birdA <= 4226 && birdB >= 4173 && birdB <= 4444)) {
            canMint = true;
        }
        require(canMint, "Birds are not a breed match");

        chickSupply += 1;
        birdsUsedForBreeding[birdA] = true;
        birdsUsedForBreeding[birdB] = true;
        _safeMint(msg.sender, MAX_BIRDS + chickSupply);
    }
    
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 6 of 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 7 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 8 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 9 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 10 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);
    }

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

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

File 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 : 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 13 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 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",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_BIRDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CHICKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"birdsUsedForBreeding","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chickSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBirdsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBirdsPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintBirds","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"birdA","type":"uint256"},{"internalType":"uint256","name":"birdB","type":"uint256"}],"name":"mintChick","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintChickStartDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"reserveBirds","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":"addresses","type":"address[]"},{"internalType":"uint8","name":"numAllowedToMint","type":"uint8"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setChickStartDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"w1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405266b1a2bc2ec50000600c556361968690600d556000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff0219169083151502179055506000601155606460125573eca3b7627deef983a4d4eee096b0b33a2d880429601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073e12744c41bec092b7b38d66ee68c14cdb1366a08601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073d747d1c09c7c9a69c2d2bc407d3e91405d4698e2601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200016357600080fd5b506040518060400160405280600b81526020017f426c6f636b20466c6f636b0000000000000000000000000000000000000000008152506040518060400160405280600a81526020017f424c4f434b464c4f434b000000000000000000000000000000000000000000008152508160009080519060200190620001e89291906200036e565b508060019080519060200190620002019291906200036e565b5050506200022462000218620002a060201b60201c565b620002a860201b60201c565b6000600190505b61115c8161ffff16116200029957600f8190806001815401808255809150506001900390600052602060002090601091828204019190066002029091909190916101000a81548161ffff021916908361ffff1602179055508080620002909062000462565b9150506200022b565b50620004f0565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200037c906200042c565b90600052602060002090601f016020900481019282620003a05760008555620003ec565b82601f10620003bb57805160ff1916838001178555620003ec565b82800160010185558215620003ec579182015b82811115620003eb578251825591602001919060010190620003ce565b5b509050620003fb9190620003ff565b5090565b5b808211156200041a57600081600090555060010162000400565b5090565b600061ffff82169050919050565b600060028204905060018216806200044557607f821691505b602082108114156200045c576200045b620004c1565b5b50919050565b60006200046f826200041e565b915061ffff82141562000487576200048662000492565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61592e80620005006000396000f3fe6080604052600436106102675760003560e01c80638295784d11610144578063ac47eb27116100b6578063d3e864401161007a578063d3e864401461091e578063e985e9c514610949578063eb8d244414610986578063f2fde38b146109b1578063f3f5b6e2146109da578063f81227d4146109f657610267565b8063ac47eb2714610827578063af75240314610852578063b88d4fde1461087b578063c742a899146108a4578063c87b56dd146108e157610267565b80639bffccfe116101085780639bffccfe14610727578063a035b1fe14610752578063a044c9871461077d578063a2018240146107a8578063a22cb465146107d3578063a763b147146107fc57610267565b80638295784d146106425780638462151c1461066b5780638da5cb5b146106a857806391b7f5ed146106d357806395d89b41146106fc57610267565b806334918dfd116101dd5780635283e60a116101a15780635283e60a1461053257806355f804b31461055d5780636352211e1461058657806370a08231146105c3578063715018a6146106005780637e44755b1461061757610267565b806334918dfd146104735780633ccfd60b1461048a57806342842e0e146104a15780634b09b72a146104ca5780634f6ccce7146104f557610267565b8063095ea7b31161022f578063095ea7b31461036557806318160ddd1461038e57806323b872dd146103b95780632f745c59146103e257806330f72cd41461041f578063338148e41461044a57610267565b806301ffc9a71461026c57806303cf8a20146102a957806306a37bbd146102d457806306fdde03146102fd578063081812fc14610328575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613f1e565b610a0d565b6040516102a09190614728565b60405180910390f35b3480156102b557600080fd5b506102be610a1f565b6040516102cb919061469f565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f69190613fee565b610a45565b005b34801561030957600080fd5b506103126110b9565b60405161031f9190614743565b60405180910390f35b34801561033457600080fd5b5061034f600480360381019061034a9190613fc1565b61114b565b60405161035c919061469f565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190613e7e565b6111d0565b005b34801561039a57600080fd5b506103a36112e8565b6040516103b09190614b45565b60405180910390f35b3480156103c557600080fd5b506103e060048036038101906103db9190613d68565b6112f5565b005b3480156103ee57600080fd5b5061040960048036038101906104049190613e7e565b611355565b6040516104169190614b45565b60405180910390f35b34801561042b57600080fd5b506104346113fa565b6040516104419190614728565b60405180910390f35b34801561045657600080fd5b50610471600480360381019061046c9190613fc1565b61140d565b005b34801561047f57600080fd5b50610488611493565b005b34801561049657600080fd5b5061049f61153b565b005b3480156104ad57600080fd5b506104c860048036038101906104c39190613d68565b61178f565b005b3480156104d657600080fd5b506104df6117af565b6040516104ec9190614b45565b60405180910390f35b34801561050157600080fd5b5061051c60048036038101906105179190613fc1565b6117b5565b6040516105299190614b45565b60405180910390f35b34801561053e57600080fd5b50610547611826565b6040516105549190614b45565b60405180910390f35b34801561056957600080fd5b50610584600480360381019061057f9190613f78565b61182c565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613fc1565b6118c2565b6040516105ba919061469f565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e59190613cce565b611974565b6040516105f79190614b45565b60405180910390f35b34801561060c57600080fd5b50610615611a2c565b005b34801561062357600080fd5b5061062c611ab4565b604051610639919061469f565b60405180910390f35b34801561064e57600080fd5b5061066960048036038101906106649190613ebe565b611ada565b005b34801561067757600080fd5b50610692600480360381019061068d9190613cce565b611bfc565b60405161069f9190614706565b60405180910390f35b3480156106b457600080fd5b506106bd611d06565b6040516106ca919061469f565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f59190613fc1565b611d30565b005b34801561070857600080fd5b50610711611db6565b60405161071e9190614743565b60405180910390f35b34801561073357600080fd5b5061073c611e48565b6040516107499190614b45565b60405180910390f35b34801561075e57600080fd5b50610767611e4e565b6040516107749190614b45565b60405180910390f35b34801561078957600080fd5b50610792611e54565b60405161079f919061469f565b60405180910390f35b3480156107b457600080fd5b506107bd611e7a565b6040516107ca9190614b45565b60405180910390f35b3480156107df57600080fd5b506107fa60048036038101906107f59190613e3e565b611e7f565b005b34801561080857600080fd5b50610811612000565b60405161081e9190614b45565b60405180910390f35b34801561083357600080fd5b5061083c61200d565b6040516108499190614b45565b60405180910390f35b34801561085e57600080fd5b5061087960048036038101906108749190613e7e565b612013565b005b34801561088757600080fd5b506108a2600480360381019061089d9190613dbb565b612146565b005b3480156108b057600080fd5b506108cb60048036038101906108c69190613fc1565b6121a8565b6040516108d89190614728565b60405180910390f35b3480156108ed57600080fd5b5061090860048036038101906109039190613fc1565b6121c8565b6040516109159190614743565b60405180910390f35b34801561092a57600080fd5b5061093361226f565b6040516109409190614b45565b60405180910390f35b34801561095557600080fd5b50610970600480360381019061096b9190613d28565b612275565b60405161097d9190614728565b60405180910390f35b34801561099257600080fd5b5061099b612309565b6040516109a89190614728565b60405180910390f35b3480156109bd57600080fd5b506109d860048036038101906109d39190613cce565b61231c565b005b6109f460048036038101906109ef9190613fc1565b612414565b005b348015610a0257600080fd5b50610a0b6126c3565b005b6000610a188261276b565b9050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d54421015610a8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8190614785565b60405180910390fd5b80821415610acd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac490614865565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401610b1d9190614b45565b60206040518083038186803b158015610b3557600080fd5b505afa158015610b49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6d9190613cfb565b73ffffffffffffffffffffffffffffffffffffffff16148015610c4357503373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610bdb9190614b45565b60206040518083038186803b158015610bf357600080fd5b505afa158015610c07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2b9190613cfb565b73ffffffffffffffffffffffffffffffffffffffff16145b610c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7990614765565b60405180910390fd5b6010600083815260200190815260200160002060009054906101000a900460ff1615610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda906147e5565b60405180910390fd5b6010600082815260200190815260200160002060009054906101000a900460ff1615610d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3b906149a5565b60405180910390fd5b61037860115410610d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8190614ae5565b60405180910390fd5b600060018310158015610d9e575060788311155b8015610dab575060018210155b8015610db957506102588211155b80610df057506102598310158015610dd357506102bc8311155b8015610de157506102598210155b8015610def575061044c8211155b5b80610e27575061044d8310158015610e0a57506104b08311155b8015610e18575061044d8210155b8015610e2657506106408211155b5b80610e5e57506106418310158015610e41575061069a8311155b8015610e4f57506106418210155b8015610e5d57506108028211155b5b80610e9557506108038310158015610e78575061085c8311155b8015610e8657506108038210155b8015610e9457506109c48211155b5b80610ecc57506109c58310158015610eaf5750610a148311155b8015610ebd57506109c58210155b8015610ecb5750610b548211155b5b80610f035750610b558310158015610ee65750610ba48311155b8015610ef45750610b558210155b8015610f025750610ce48211155b5b80610f3a5750610ce58310158015610f1d5750610d208311155b8015610f2b5750610ce58210155b8015610f395750610e108211155b5b80610f715750610e118310158015610f545750610e4c8311155b8015610f625750610e118210155b8015610f705750610f3c8211155b5b80610fa85750610f3d8310158015610f8b5750610f728311155b8015610f995750610f3d8210155b8015610fa7575061104c8211155b5b80610fdf575061104d8310158015610fc257506110828311155b8015610fd0575061104d8210155b8015610fde575061115c8211155b5b15610fe957600190505b80611029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102090614885565b60405180910390fd5b60016011600082825461103c9190614c63565b9250508190555060016010600085815260200190815260200160002060006101000a81548160ff02191690831515021790555060016010600084815260200190815260200160002060006101000a81548160ff0219169083151502179055506110b43360115461115c6110af9190614c63565b6127e5565b505050565b6060600080546110c890614e8b565b80601f01602080910402602001604051908101604052809291908181526020018280546110f490614e8b565b80156111415780601f1061111657610100808354040283529160200191611141565b820191906000526020600020905b81548152906001019060200180831161112457829003601f168201915b5050505050905090565b600061115682612803565b611195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118c90614a45565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006111db826118c2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561124c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124390614ac5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661126b61286f565b73ffffffffffffffffffffffffffffffffffffffff16148061129a57506112998161129461286f565b612275565b5b6112d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d090614965565b60405180910390fd5b6112e38383612877565b505050565b6000600880549050905090565b61130661130061286f565b82612930565b611345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133c90614b05565b60405180910390fd5b611350838383612a0e565b505050565b600061136083611974565b82106113a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611398906147a5565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600e60009054906101000a900460ff1681565b61141561286f565b73ffffffffffffffffffffffffffffffffffffffff16611433611d06565b73ffffffffffffffffffffffffffffffffffffffff1614611489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148090614a65565b60405180910390fd5b80600d8190555050565b61149b61286f565b73ffffffffffffffffffffffffffffffffffffffff166114b9611d06565b73ffffffffffffffffffffffffffffffffffffffff161461150f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150690614a65565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b61154361286f565b73ffffffffffffffffffffffffffffffffffffffff16611561611d06565b73ffffffffffffffffffffffffffffffffffffffff16146115b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ae90614a65565b60405180910390fd5b600060646005476115c89190614cea565b6115d29190614cb9565b9050600060646005476115e59190614cea565b6115ef9190614cb9565b905060006064602d476116029190614cea565b61160c9190614cb9565b905060006064602d4761161f9190614cea565b6116299190614cb9565b9050601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f1935050505061168b57600080fd5b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050506116eb57600080fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505061174b57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061178957600080fd5b50505050565b6117aa83838360405180602001604052806000815250612146565b505050565b60125481565b60006117bf6112e8565b8210611800576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f790614b25565b60405180910390fd5b600882815481106118145761181361506e565b5b90600052602060002001549050919050565b600d5481565b61183461286f565b73ffffffffffffffffffffffffffffffffffffffff16611852611d06565b73ffffffffffffffffffffffffffffffffffffffff16146118a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189f90614a65565b60405180910390fd5b80600b90805190602001906118be929190613a62565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561196b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611962906149c5565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dc90614985565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a3461286f565b73ffffffffffffffffffffffffffffffffffffffff16611a52611d06565b73ffffffffffffffffffffffffffffffffffffffff1614611aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9f90614a65565b60405180910390fd5b611ab26000612c6a565b565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ae261286f565b73ffffffffffffffffffffffffffffffffffffffff16611b00611d06565b73ffffffffffffffffffffffffffffffffffffffff1614611b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4d90614a65565b60405180910390fd5b60005b83839050811015611bf6578160136000868685818110611b7c57611b7b61506e565b5b9050602002016020810190611b919190613cce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080611bee90614eee565b915050611b59565b50505050565b60606000611c0983611974565b90506000811415611c6657600067ffffffffffffffff811115611c2f57611c2e61509d565b5b604051908082528060200260200182016040528015611c5d5781602001602082028036833780820191505090505b50915050611d01565b60008167ffffffffffffffff811115611c8257611c8161509d565b5b604051908082528060200260200182016040528015611cb05781602001602082028036833780820191505090505b50905060005b82811015611cfa57611cc88582611355565b828281518110611cdb57611cda61506e565b5b6020026020010181815250508080611cf290614eee565b915050611cb6565b8193505050505b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d3861286f565b73ffffffffffffffffffffffffffffffffffffffff16611d56611d06565b73ffffffffffffffffffffffffffffffffffffffff1614611dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da390614a65565b60405180910390fd5b80600c8190555050565b606060018054611dc590614e8b565b80601f0160208091040260200160405190810160405280929190818152602001828054611df190614e8b565b8015611e3e5780601f10611e1357610100808354040283529160200191611e3e565b820191906000526020600020905b815481529060010190602001808311611e2157829003601f168201915b5050505050905090565b61037881565b600c5481565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a81565b611e8761286f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eec906148e5565b60405180910390fd5b8060056000611f0261286f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611faf61286f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ff49190614728565b60405180910390a35050565b6000600f80549050905090565b60115481565b61201b61286f565b73ffffffffffffffffffffffffffffffffffffffff16612039611d06565b73ffffffffffffffffffffffffffffffffffffffff161461208f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208690614a65565b60405180910390fd5b6000811180156120a45750600f805490508111155b80156120b257506012548111155b6120f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e8906148a5565b60405180910390fd5b80601260008282546121039190614d44565b9250508190555060005b81811015612141576000612121600f612d30565b905061212d84826127e5565b50808061213990614eee565b91505061210d565b505050565b61215761215161286f565b83612930565b612196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218d90614b05565b60405180910390fd5b6121a284848484612e4f565b50505050565b60106020528060005260406000206000915054906101000a900460ff1681565b60606121d382612803565b612212576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220990614aa5565b60405180910390fd5b600061221c612eab565b9050600081511161223c5760405180602001604052806000815250612267565b8061224684612f3d565b60405160200161225792919061461c565b6040516020818303038152906040525b915050919050565b61115c81565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e60019054906101000a900460ff1681565b61232461286f565b73ffffffffffffffffffffffffffffffffffffffff16612342611d06565b73ffffffffffffffffffffffffffffffffffffffff1614612398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238f90614a65565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612408576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ff90614805565b60405180910390fd5b61241181612c6a565b50565b600e60009054906101000a900460ff16156124c057601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff168111156124bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b290614825565b60405180910390fd5b612510565b600e60019054906101000a900460ff1661250f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250690614a25565b60405180910390fd5b5b6000811180156125215750600a8111155b612560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255790614945565b60405180910390fd5b600f805490508111156125a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259f906149e5565b60405180910390fd5b6125bd81600c5461309e90919063ffffffff16565b3410156125ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f690614905565b60405180910390fd5b600e60009054906101000a900460ff16156126885780601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff1661266f9190614d78565b92506101000a81548160ff021916908360ff1602179055505b60005b818110156126bf57600061269f600f612d30565b90506126ab33826127e5565b5080806126b790614eee565b91505061268b565b5050565b6126cb61286f565b73ffffffffffffffffffffffffffffffffffffffff166126e9611d06565b73ffffffffffffffffffffffffffffffffffffffff161461273f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273690614a65565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127de57506127dd826130b4565b5b9050919050565b6127ff828260405180602001604052806000815250613196565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128ea836118c2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061293b82612803565b61297a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297190614925565b60405180910390fd5b6000612985836118c2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806129f457508373ffffffffffffffffffffffffffffffffffffffff166129dc8461114b565b73ffffffffffffffffffffffffffffffffffffffff16145b80612a055750612a048185612275565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612a2e826118c2565b73ffffffffffffffffffffffffffffffffffffffff1614612a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7b90614a85565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612af4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aeb906148c5565b60405180910390fd5b612aff8383836131f1565b612b0a600082612877565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b5a9190614d44565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bb19190614c63565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080612d3c83613201565b90506000838281548110612d5357612d5261506e565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1690508360018580549050612d8f9190614d44565b81548110612da057612d9f61506e565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff16848381548110612dd757612dd661506e565b5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555083805480612e1757612e1661503f565b5b60019003818190600052602060002090601091828204019190066002026101000a81549061ffff021916905590558092505050919050565b612e5a848484612a0e565b612e6684848484613261565b612ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9c906147c5565b60405180910390fd5b50505050565b6060600b8054612eba90614e8b565b80601f0160208091040260200160405190810160405280929190818152602001828054612ee690614e8b565b8015612f335780601f10612f0857610100808354040283529160200191612f33565b820191906000526020600020905b815481529060010190602001808311612f1657829003601f168201915b5050505050905090565b60606000821415612f85576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613099565b600082905060005b60008214612fb7578080612fa090614eee565b915050600a82612fb09190614cb9565b9150612f8d565b60008167ffffffffffffffff811115612fd357612fd261509d565b5b6040519080825280601f01601f1916602001820160405280156130055781602001600182028036833780820191505090505b5090505b600085146130925760018261301e9190614d44565b9150600a8561302d9190614f81565b60306130399190614c63565b60f81b81838151811061304f5761304e61506e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561308b9190614cb9565b9450613009565b8093505050505b919050565b600081836130ac9190614cea565b905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061317f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061318f575061318e826133f8565b5b9050919050565b6131a08383613462565b6131ad6000848484613261565b6131ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131e3906147c5565b60405180910390fd5b505050565b6131fc838383613630565b505050565b60008082805490506001436132169190614d44565b4041443360405160200161322e959493929190614640565b6040516020818303038152906040528051906020012060001c90508280549050816132599190614f81565b915050919050565b60006132828473ffffffffffffffffffffffffffffffffffffffff16613744565b156133eb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132ab61286f565b8786866040518563ffffffff1660e01b81526004016132cd94939291906146ba565b602060405180830381600087803b1580156132e757600080fd5b505af192505050801561331857506040513d601f19601f820116820180604052508101906133159190613f4b565b60015b61339b573d8060008114613348576040519150601f19603f3d011682016040523d82523d6000602084013e61334d565b606091505b50600081511415613393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338a906147c5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506133f0565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c990614a05565b60405180910390fd5b6134db81612803565b1561351b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161351290614845565b60405180910390fd5b613527600083836131f1565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135779190614c63565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b61363b838383613757565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561367e576136798161375c565b6136bd565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146136bc576136bb83826137a5565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613700576136fb81613912565b61373f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461373e5761373d82826139e3565b5b5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016137b284611974565b6137bc9190614d44565b90506000600760008481526020019081526020016000205490508181146138a1576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506139269190614d44565b90506000600960008481526020019081526020016000205490506000600883815481106139565761395561506e565b5b9060005260206000200154905080600883815481106139785761397761506e565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806139c7576139c661503f565b5b6001900381819060005260206000200160009055905550505050565b60006139ee83611974565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613a6e90614e8b565b90600052602060002090601f016020900481019282613a905760008555613ad7565b82601f10613aa957805160ff1916838001178555613ad7565b82800160010185558215613ad7579182015b82811115613ad6578251825591602001919060010190613abb565b5b509050613ae49190613ae8565b5090565b5b80821115613b01576000816000905550600101613ae9565b5090565b6000613b18613b1384614b85565b614b60565b905082815260208101848484011115613b3457613b336150db565b5b613b3f848285614e49565b509392505050565b6000613b5a613b5584614bb6565b614b60565b905082815260208101848484011115613b7657613b756150db565b5b613b81848285614e49565b509392505050565b600081359050613b9881615885565b92915050565b600081519050613bad81615885565b92915050565b60008083601f840112613bc957613bc86150d1565b5b8235905067ffffffffffffffff811115613be657613be56150cc565b5b602083019150836020820283011115613c0257613c016150d6565b5b9250929050565b600081359050613c188161589c565b92915050565b600081359050613c2d816158b3565b92915050565b600081519050613c42816158b3565b92915050565b600082601f830112613c5d57613c5c6150d1565b5b8135613c6d848260208601613b05565b91505092915050565b600082601f830112613c8b57613c8a6150d1565b5b8135613c9b848260208601613b47565b91505092915050565b600081359050613cb3816158ca565b92915050565b600081359050613cc8816158e1565b92915050565b600060208284031215613ce457613ce36150e5565b5b6000613cf284828501613b89565b91505092915050565b600060208284031215613d1157613d106150e5565b5b6000613d1f84828501613b9e565b91505092915050565b60008060408385031215613d3f57613d3e6150e5565b5b6000613d4d85828601613b89565b9250506020613d5e85828601613b89565b9150509250929050565b600080600060608486031215613d8157613d806150e5565b5b6000613d8f86828701613b89565b9350506020613da086828701613b89565b9250506040613db186828701613ca4565b9150509250925092565b60008060008060808587031215613dd557613dd46150e5565b5b6000613de387828801613b89565b9450506020613df487828801613b89565b9350506040613e0587828801613ca4565b925050606085013567ffffffffffffffff811115613e2657613e256150e0565b5b613e3287828801613c48565b91505092959194509250565b60008060408385031215613e5557613e546150e5565b5b6000613e6385828601613b89565b9250506020613e7485828601613c09565b9150509250929050565b60008060408385031215613e9557613e946150e5565b5b6000613ea385828601613b89565b9250506020613eb485828601613ca4565b9150509250929050565b600080600060408486031215613ed757613ed66150e5565b5b600084013567ffffffffffffffff811115613ef557613ef46150e0565b5b613f0186828701613bb3565b93509350506020613f1486828701613cb9565b9150509250925092565b600060208284031215613f3457613f336150e5565b5b6000613f4284828501613c1e565b91505092915050565b600060208284031215613f6157613f606150e5565b5b6000613f6f84828501613c33565b91505092915050565b600060208284031215613f8e57613f8d6150e5565b5b600082013567ffffffffffffffff811115613fac57613fab6150e0565b5b613fb884828501613c76565b91505092915050565b600060208284031215613fd757613fd66150e5565b5b6000613fe584828501613ca4565b91505092915050565b60008060408385031215614005576140046150e5565b5b600061401385828601613ca4565b925050602061402485828601613ca4565b9150509250929050565b600061403a83836145e7565b60208301905092915050565b61405761405282614dbe565b614f49565b82525050565b61406681614dac565b82525050565b61407d61407882614dac565b614f37565b82525050565b600061408e82614bf7565b6140988185614c25565b93506140a383614be7565b8060005b838110156140d45781516140bb888261402e565b97506140c683614c18565b9250506001810190506140a7565b5085935050505092915050565b6140ea81614dd0565b82525050565b6141016140fc82614ddc565b614f5b565b82525050565b600061411282614c02565b61411c8185614c36565b935061412c818560208601614e58565b614135816150ea565b840191505092915050565b600061414b82614c0d565b6141558185614c47565b9350614165818560208601614e58565b61416e816150ea565b840191505092915050565b600061418482614c0d565b61418e8185614c58565b935061419e818560208601614e58565b80840191505092915050565b60006141b7601383614c47565b91506141c282615108565b602082019050919050565b60006141da602483614c47565b91506141e582615131565b604082019050919050565b60006141fd602b83614c47565b915061420882615180565b604082019050919050565b6000614220603283614c47565b915061422b826151cf565b604082019050919050565b6000614243601283614c47565b915061424e8261521e565b602082019050919050565b6000614266602683614c47565b915061427182615247565b604082019050919050565b6000614289601e83614c47565b915061429482615296565b602082019050919050565b60006142ac601c83614c47565b91506142b7826152bf565b602082019050919050565b60006142cf601783614c47565b91506142da826152e8565b602082019050919050565b60006142f2601b83614c47565b91506142fd82615311565b602082019050919050565b6000614315602083614c47565b91506143208261533a565b602082019050919050565b6000614338602483614c47565b915061434382615363565b604082019050919050565b600061435b601983614c47565b9150614366826153b2565b602082019050919050565b600061437e601f83614c47565b9150614389826153db565b602082019050919050565b60006143a1602c83614c47565b91506143ac82615404565b604082019050919050565b60006143c4602083614c47565b91506143cf82615453565b602082019050919050565b60006143e7603883614c47565b91506143f28261547c565b604082019050919050565b600061440a602a83614c47565b9150614415826154cb565b604082019050919050565b600061442d601283614c47565b91506144388261551a565b602082019050919050565b6000614450602983614c47565b915061445b82615543565b604082019050919050565b6000614473602983614c47565b915061447e82615592565b604082019050919050565b6000614496602083614c47565b91506144a1826155e1565b602082019050919050565b60006144b9602283614c47565b91506144c48261560a565b604082019050919050565b60006144dc602c83614c47565b91506144e782615659565b604082019050919050565b60006144ff602083614c47565b915061450a826156a8565b602082019050919050565b6000614522602983614c47565b915061452d826156d1565b604082019050919050565b6000614545602f83614c47565b915061455082615720565b604082019050919050565b6000614568602183614c47565b91506145738261576f565b604082019050919050565b600061458b601c83614c47565b9150614596826157be565b602082019050919050565b60006145ae603183614c47565b91506145b9826157e7565b604082019050919050565b60006145d1602c83614c47565b91506145dc82615836565b604082019050919050565b6145f081614e32565b82525050565b6145ff81614e32565b82525050565b61461661461182614e32565b614f77565b82525050565b60006146288285614179565b91506146348284614179565b91508190509392505050565b600061464c8288614605565b60208201915061465c82876140f0565b60208201915061466c8286614046565b60148201915061467c8285614605565b60208201915061468c828461406c565b6014820191508190509695505050505050565b60006020820190506146b4600083018461405d565b92915050565b60006080820190506146cf600083018761405d565b6146dc602083018661405d565b6146e960408301856145f6565b81810360608301526146fb8184614107565b905095945050505050565b600060208201905081810360008301526147208184614083565b905092915050565b600060208201905061473d60008301846140e1565b92915050565b6000602082019050818103600083015261475d8184614140565b905092915050565b6000602082019050818103600083015261477e816141aa565b9050919050565b6000602082019050818103600083015261479e816141cd565b9050919050565b600060208201905081810360008301526147be816141f0565b9050919050565b600060208201905081810360008301526147de81614213565b9050919050565b600060208201905081810360008301526147fe81614236565b9050919050565b6000602082019050818103600083015261481e81614259565b9050919050565b6000602082019050818103600083015261483e8161427c565b9050919050565b6000602082019050818103600083015261485e8161429f565b9050919050565b6000602082019050818103600083015261487e816142c2565b9050919050565b6000602082019050818103600083015261489e816142e5565b9050919050565b600060208201905081810360008301526148be81614308565b9050919050565b600060208201905081810360008301526148de8161432b565b9050919050565b600060208201905081810360008301526148fe8161434e565b9050919050565b6000602082019050818103600083015261491e81614371565b9050919050565b6000602082019050818103600083015261493e81614394565b9050919050565b6000602082019050818103600083015261495e816143b7565b9050919050565b6000602082019050818103600083015261497e816143da565b9050919050565b6000602082019050818103600083015261499e816143fd565b9050919050565b600060208201905081810360008301526149be81614420565b9050919050565b600060208201905081810360008301526149de81614443565b9050919050565b600060208201905081810360008301526149fe81614466565b9050919050565b60006020820190508181036000830152614a1e81614489565b9050919050565b60006020820190508181036000830152614a3e816144ac565b9050919050565b60006020820190508181036000830152614a5e816144cf565b9050919050565b60006020820190508181036000830152614a7e816144f2565b9050919050565b60006020820190508181036000830152614a9e81614515565b9050919050565b60006020820190508181036000830152614abe81614538565b9050919050565b60006020820190508181036000830152614ade8161455b565b9050919050565b60006020820190508181036000830152614afe8161457e565b9050919050565b60006020820190508181036000830152614b1e816145a1565b9050919050565b60006020820190508181036000830152614b3e816145c4565b9050919050565b6000602082019050614b5a60008301846145f6565b92915050565b6000614b6a614b7b565b9050614b768282614ebd565b919050565b6000604051905090565b600067ffffffffffffffff821115614ba057614b9f61509d565b5b614ba9826150ea565b9050602081019050919050565b600067ffffffffffffffff821115614bd157614bd061509d565b5b614bda826150ea565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614c6e82614e32565b9150614c7983614e32565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614cae57614cad614fb2565b5b828201905092915050565b6000614cc482614e32565b9150614ccf83614e32565b925082614cdf57614cde614fe1565b5b828204905092915050565b6000614cf582614e32565b9150614d0083614e32565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614d3957614d38614fb2565b5b828202905092915050565b6000614d4f82614e32565b9150614d5a83614e32565b925082821015614d6d57614d6c614fb2565b5b828203905092915050565b6000614d8382614e3c565b9150614d8e83614e3c565b925082821015614da157614da0614fb2565b5b828203905092915050565b6000614db782614e12565b9050919050565b6000614dc982614e12565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614e76578082015181840152602081019050614e5b565b83811115614e85576000848401525b50505050565b60006002820490506001821680614ea357607f821691505b60208210811415614eb757614eb6615010565b5b50919050565b614ec6826150ea565b810181811067ffffffffffffffff82111715614ee557614ee461509d565b5b80604052505050565b6000614ef982614e32565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f2c57614f2b614fb2565b5b600182019050919050565b6000614f4282614f65565b9050919050565b6000614f5482614f65565b9050919050565b6000819050919050565b6000614f70826150fb565b9050919050565b6000819050919050565b6000614f8c82614e32565b9150614f9783614e32565b925082614fa757614fa6614fe1565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d757374206f776e20626f746820626972647300000000000000000000000000600082015250565b7f436869636b7320617265206e6f7420617661696c61626c6520746f206d696e7460008201527f2079657400000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f416c726561647920757365642062697264410000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4578636565646564206d617820617661696c61626c6520746f206d696e740000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4d75737420626520646966666572656e74206269726473000000000000000000600082015250565b7f426972647320617265206e6f742061206272656564206d617463680000000000600082015250565b7f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f43616e206f6e6c79206d696e7420313020626972647320617420612074696d65600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f416c726561647920757365642062697264420000000000000000000000000000600082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f507572636861736520776f756c6420657863656564206d617820737570706c7960008201527f206f662062697264730000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53616c65206d7573742062652061637469766520746f206d696e74206120626960008201527f7264000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e6f206d6f726520636869636b73206c65667420746f20627265656400000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b61588e81614dac565b811461589957600080fd5b50565b6158a581614dd0565b81146158b057600080fd5b50565b6158bc81614de6565b81146158c757600080fd5b50565b6158d381614e32565b81146158de57600080fd5b50565b6158ea81614e3c565b81146158f557600080fd5b5056fea26469706673582212209f3ccd76b53d7b4a4f4bf203fe9d0f60df0300bdc0300d142ae49b74c9b9c61264736f6c63430008070033

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.