Contract 0xaff60161559C53bf1d3aC8C99A272d04768a1813

 
 
Txn Hash
Method
Block
From
To
Value
0x9fd8d8ec21f1d9938a0514a1b80d30f1a5e78892fe14e4cad452a04f15857869Transfer From157220642022-10-11 3:04:5957 days 3 hrs ago0xb8f9d8a0f34ff0fbe8272e044afabb2b30a61f68 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00286755 29.62166698
0xe32091f2d67d533f34b9a243ea856edc8316499c176f340c6f58a3d1e1e70e14Transfer From139918812022-01-12 16:47:02328 days 14 hrs ago0xcf2e5a9f26794f21386817d64c9931a6d3a09b5d IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.01617229 167.05878395
0x463d66396ccc878e17afb7431eac6f814d4f9ceb7b9e273f025c7d9d32116357Transfer From139914942022-01-12 15:25:14328 days 15 hrs ago0xcf2e5a9f26794f21386817d64c9931a6d3a09b5d IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.01349518 143.55663536
0xe7507072a5ee2af54e83646d7bf08248b0be3309b1adcdc046709e6b6c66a848Batch Mint By Ow...139839812022-01-11 11:37:59329 days 19 hrs ago0xd4057959ca4f481e378581ea0d73f6f3ad727335 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.08317283 129.6597473
0x2c53bb08e454b58dab32cf54e85c36cf57791dc6fd94994856492e4746aa72aaPause Pre Sale139827472022-01-11 7:04:33329 days 23 hrs ago0xd4057959ca4f481e378581ea0d73f6f3ad727335 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00378576 159.34692731
0x426c5e6e2bb2263f536d3e8d83ac8a0d2661cfe6915d3de90b582ff82a9c1ce4Transfer From139641562022-01-08 10:07:03332 days 20 hrs ago0x37b988a8ffd386f24d2792ef4fc2d50c8242a1c3 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00636498 65.74991006
0x7b2dd0265c39cde15c22256241f55d5b4e2c65faf29c247f4db66efb7c684943Transfer From139455232022-01-05 12:52:09335 days 17 hrs ago0x083d6bcd88405c03f8a39da4390894ee3b23fe30 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.01115521 115.23272382
0xdecd6603ba6a6c07f8726aff26de3496ddff6d56b4f7cfa2ab2ea555866ec46bTransfer From139445212022-01-05 9:02:01335 days 21 hrs ago0x083d6bcd88405c03f8a39da4390894ee3b23fe30 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00946154 97.73718716
0x309f6a4da6d10ec57f911dee18c5a57af7eb805f172ecb9875b407c12407ce9eTransfer From139445202022-01-05 9:01:58335 days 21 hrs ago0x083d6bcd88405c03f8a39da4390894ee3b23fe30 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00823392 95.17670446
0x9e7a3829c19dd8bdb92fcca870dbfbff017bd08dec1db619678d5f9273e8bc51Transfer From139445142022-01-05 9:00:49335 days 21 hrs ago0x083d6bcd88405c03f8a39da4390894ee3b23fe30 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00806127 93.18098394
0x7fd6f7a4dd259a47c9c303ee1532bc437676c55ea96ceea428abed2aee229bdcTransfer From139445122022-01-05 9:00:37335 days 21 hrs ago0x083d6bcd88405c03f8a39da4390894ee3b23fe30 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00919239 106.25577002
0x8c6035dc57a5ff5c4bc5c532ba84d68c21c0ac3bea5b0381fa5e0cf5385f42e2Pre Mint139366972022-01-04 4:01:11337 days 2 hrs ago0x6422fb0caf664fb904524abab8db34ae6b674c6e IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130.05 Ether0.01682012 106.86703713
0x581efa5c978fa15e76066ef4a1cd7e1e2633eb0af0f999ab3371fdff817353caAdd Addressess T...139358992022-01-04 0:56:56337 days 5 hrs ago0xd4057959ca4f481e378581ea0d73f6f3ad727335 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00678548 131.98506016
0xf0ee40ce8dccc61ddbd42dae80f356caea053dd2fb920cd6d62ee7e73f9eb005Add Addressess T...139358882022-01-04 0:54:00337 days 5 hrs ago0xd4057959ca4f481e378581ea0d73f6f3ad727335 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.01241435 133.14269905
0x36a2c654968a7b0e11aa5b25f52bb7776a2db387152c31f11e3932dab2783cbeSet Max Pre Sale139358792022-01-04 0:51:05337 days 6 hrs ago0xd4057959ca4f481e378581ea0d73f6f3ad727335 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00337191 117.57420148
0xc5aa854d3311a2a001b6c9b427014867c81d5a4d386e7f33ed8019e56919e85fTransfer From139316802022-01-03 9:25:01337 days 21 hrs ago0xcedc7e1130e7d8dc71bd8e4132ba90f03d6cf52d IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00808001 93.39764879
0x08686b6254058231428bd7bca55f0f83630647e874767cd1d058826c02d0cb87Transfer From139316802022-01-03 9:25:01337 days 21 hrs ago0xcedc7e1130e7d8dc71bd8e4132ba90f03d6cf52d IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00904145 93.39764879
0x2bc7aa066d4addec11190c211e646d916efb72546e6ce89657e4eea53b914cb9Transfer From139316802022-01-03 9:25:01337 days 21 hrs ago0xcedc7e1130e7d8dc71bd8e4132ba90f03d6cf52d IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00808001 93.39764879
0x7236d268780ceb257ec46e67d33dbdf0b6ae08d077a198f90e52231544cf198dPre Mint139300072022-01-03 3:04:32338 days 3 hrs ago0xcf2e5a9f26794f21386817d64c9931a6d3a09b5d IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130.05 Ether0.0246897 154.12472596
0xb0820425b8d1844dbb84af14366adb431a4391b56841897ffb231ec2149e71b8Add Addressess T...139265532022-01-02 14:30:26338 days 16 hrs ago0xd4057959ca4f481e378581ea0d73f6f3ad727335 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130 Ether0.00840774 57.33555579
0x3d490d76041c495bc76574365122ef57e7787aee0e700ead75ec0f45e8061c71Pre Mint139260602022-01-02 12:48:13338 days 18 hrs ago0x26fe8f738bdc8d004eb58a745efbf377d4237ac0 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130.25 Ether0.03624915 57.93848568
0xfed3d620bc83d64b07c354e86900d6734d5cbbda4861a3254ea78e3867465987Pre Mint139260572022-01-02 12:47:51338 days 18 hrs ago0x26fe8f738bdc8d004eb58a745efbf377d4237ac0 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130.25 Ether0.03830236 61.49541897
0x649b76d46fd86d8479be20289cb355fa265de3b3d16cafd00d86b221f985c255Pre Mint139260252022-01-02 12:40:37338 days 18 hrs ago0x0cc4d095296a1ad6bb8eb8583973aad1068d6be0 IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130.5 Ether0.06528071 54.27987063
0x802508ca0c9f2c8c9a173bd4d3c5966165c5c44f14c7d29414ee38d1e4afdb96Pre Mint139260252022-01-02 12:40:37338 days 18 hrs ago0xbb24b325f084eb9e364328d9bb33e804f8cc693a IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130.25 Ether0.03396014 54.27987063
0x2f5e8fc8ce8714486f8617f9116b70d268732495480336c401094e940bf069b3Pre Mint139260102022-01-02 12:37:10338 days 18 hrs ago0xbb24b325f084eb9e364328d9bb33e804f8cc693a IN  0xaff60161559c53bf1d3ac8c99a272d04768a18130.25 Ether0.03291874 52.61534925
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OxyFarmsNFT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1500 runs

Other Settings:
default evmVersion
File 1 of 14 : OxyFarms.sol
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT

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

/**
 * @title OxyFarmsNFT
 * @dev The NFTrees token contract for the first OxyFarm of Oxychain
 * Taken from https://github.com/oxychain-earth/oxyfarms-contracts/blob/master/contracts/OxyFarmsNFT.sol
 *
 * @author The Storm Network & Dandelion Labs team
 */
contract OxyFarmsNFT is ERC721Enumerable, Ownable {
    using SafeMath for uint;
    
    string baseURI;                          // BASE URI FOR TOKEN METADATA URL CREATION
    string public contractURI;               // CONTRACT URI FOR PUBLIC MARKETPLACES
    
    uint public constant MAX_NFTREES = 4444; // MAX NFTREES EVER MINTED
    uint public constant MAX_SALE = 50;      // MAX NFTREES TO BE SOLD DURING PUBLIC SALE
    
    address saleAddress;                     // ADDRESS THAT WILL RECEIVE THE PROCEEDS OF THE SALE

    uint public maxPreSale;                  // MAX AMOUNT OF NFTREES MINTED DURING PRESALE
    uint public price;                       // PRICE PER NFT DURING SALE
    
    mapping(address => uint256) private whitelistedAllowance; // ALLOWANCE INDEX
    
    bool public hasPreSaleStarted = false;   // INDICATES IF PRE SALE IS STARTED
    bool public preSaleOver = false;         // INDICATES IF PRE SALE IS OVER
    bool public hasSaleStarted = false;      // INDICATES IF SALE HAS STARTED
    
    event NFTreeMinted(uint indexed tokenId, address indexed owner); //THROWN EVERY TIME AN NFTREE IS MINTED
    
    /**
     * @dev constructor instantiates ERC721 with URI params for the sale and sets up
     * the basic params of the sale, price per nft and max pre sale values.
     *
     * @param baseURI_ receives a string as the base for the token URI creation
     * @param contractURI_ receives a string as the contract URI for public marketplaces
     */
    constructor(string memory baseURI_, string memory contractURI_) ERC721("OxyFarms NFTrees", "OXF") {

        price = 0.05 ether;
        maxPreSale = 10;
        saleAddress = msg.sender;
        baseURI = baseURI_;
        contractURI = contractURI_;
    }
    
    /**
     * @dev mintTo is an internal function with the business logic for minting.
     * 
     * @param _to address which we are going to mint the NFTree to.
     */
    function mintTo(address _to) internal {
        uint mintIndex = totalSupply();
        _safeMint(_to, mintIndex);
        emit NFTreeMinted(mintIndex, _to);
    }
    
    /**
     * @dev mint is an external function that allows the minting process to happen during public sale.
     * 
     * @param _quantity number of NFTrees we want to mint.
     */
    function mint(uint _quantity) external payable  {
        require(hasSaleStarted, "OxyFarmsNFT::mint: Sale hasn't started.");
        require(_quantity > 0, "OxyFarmsNFT::mint: Quantity cannot be zero.");
        require(_quantity <= MAX_SALE, "OxyFarmsNFT::mint: Quantity cannot be bigger than MAX_BUYING.");
        require(totalSupply().add(_quantity) <= MAX_NFTREES, "OxyFarmsNFT::mint: Sold out.");
        require(msg.value >= price.mul(_quantity) || msg.sender == owner(), "OxyFarmsNFT::mint: Ether value sent is below the price.");
        
        for (uint i = 0; i < _quantity; i++) {
            mintTo(msg.sender);
        }
    }

    /**
     * @dev preMint is an external function that allows the minting process to happen during pre sale.
     * 
     * @param _quantity number of NFTrees we want to mint.
     */ 
    function preMint(uint _quantity) external payable  {
        require(hasPreSaleStarted, "OxyFarmsNFT::preMint: Presale hasn't started.");
        require(!preSaleOver, "OxyFarmsNFT::preMint: Presale is over, no more allowances.");
        require(_quantity > 0, "OxyFarmsNFT::preMint: Quantity cannot be zero.");
        require(_quantity <= maxPreSale, "OxyFarmsNFT::preMint: Quantity cannot be bigger than maxPreSale.");
        require(whitelistedAllowance[msg.sender].sub(_quantity) >= 0, "OxyFarmsNFT::preMint: The user is not allowed to do further presale buyings.");
        require(whitelistedAllowance[msg.sender] >= _quantity, "OxyFarmsNFT::preMint: This address is not allowed to buy that quantity.");
        require(totalSupply().add(_quantity) <= MAX_NFTREES, "OxyFarmsNFT::preMint: Sold out");
        require(msg.value >= price.mul(_quantity) || msg.sender == owner(), "OxyFarmsNFT::preMint: Ether value sent is below the price.");
        
        whitelistedAllowance[msg.sender] = whitelistedAllowance[msg.sender].sub(_quantity);
        
        for (uint i = 0; i < _quantity; i++) {
            mintTo(msg.sender);
        }
    }
    
    /**
     * @dev mintByOwner is a function to allow the preminting for team, partners, and community reserve.
     * Only the contract owner can access this function.
     * 
     * @param _to address we are going to mint the NFTrees to.
     * @param _quantity number of NFTrees we want to mint.
     */ 
    function mintByOwner(address _to, uint256 _quantity) public onlyOwner {
        require(_quantity > 0, "OxyFarmsNFT::mintByOwner: Quantity cannot be zero.");
        require(_quantity <= MAX_SALE, "OxyFarmsNFT::mintByOwner: Quantity cannot be bigger than MAX_SALE.");
        require(totalSupply().add(_quantity) <= MAX_NFTREES, "OxyFarmsNFT::mintByOwner: Sold out.");
        
        for (uint i = 0; i < _quantity; i++) {
            mintTo(_to);
        }
    }

    /**
     * @dev batchMintByOwner is a function to allow the preminting for team, partners, and community reserve in batch.
     * Only the contract owner can access this function.
     * 
     * @param _mintAddressList list of addresses we are going to mint the NFTrees to.
     * @param _quantityList list with the number of NFTrees we want to mint to each address.
     */ 
    function batchMintByOwner(address[] memory _mintAddressList, uint256[] memory _quantityList) external onlyOwner {
        require (_mintAddressList.length == _quantityList.length, "OxyFarmsNFT::batchMintByOwner: The length should be same");

        for (uint256 i = 0; i < _mintAddressList.length; i += 1) {
            mintByOwner(_mintAddressList[i], _quantityList[i]);
        }
    }

    function tokensOfOwner(address _owner) public view returns(uint[] memory ) {
        uint tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            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 setBaseURI(string memory _URI) external onlyOwner {
        baseURI = _URI;
    }
    
    function setContractURI(string memory _URI) external onlyOwner {
        contractURI = _URI;
    }
    
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function setPrice(uint _price) external onlyOwner {
        price = _price;
    }

    function setMaxPreSale(uint _quantity) external onlyOwner {
        maxPreSale = _quantity;
    }
    
    function startSale() external onlyOwner {
        require(!hasSaleStarted, "OxyFarmsNFT::startSale: Sale already active.");
        
        hasSaleStarted = true;
        hasPreSaleStarted = false;
        preSaleOver = true;
    }

    function pauseSale() external onlyOwner {
        require(hasSaleStarted, "OxyFarmsNFT::pauseSale: Sale is not active.");
        
        hasSaleStarted = false;
    }
    
    function startPreSale() external onlyOwner {
        require(!preSaleOver, "OxyFarmsNFT::startPreSale: Presale is over, cannot start again.");
        require(!hasPreSaleStarted, "OxyFarmsNFT::startPreSale: Presale already active.");
        
        hasPreSaleStarted = true;
    }

    function pausePreSale() external onlyOwner {
        require(hasPreSaleStarted, "OxyFarmsNFT::pausePreSale: Presale is not active.");
        
        hasPreSaleStarted = false;
    }

    function setSaleAddress(address _saleAddress) external onlyOwner {
        saleAddress = _saleAddress;
    }
    
    /**
     * @dev checkWhitelisting() allows us to check how many tokens the address
     * is still able to mint during the presale.
     * 
     * @param _addressToCheck address to be checked.
     *
     * @return allowed quantity
     */
    function checkWhitelisting(address _addressToCheck) public view returns (uint) {
        return whitelistedAllowance[_addressToCheck];
    }
    
    /**
     * @dev addAddressessToWhitelist() allows to add new addresses to the presale whitelist.
     * 
     * @param addressesToWhitelist receives a list of addresses to whitelist.
     */
    function addAddressessToWhitelist(address[] memory addressesToWhitelist) external onlyOwner {
        require(!preSaleOver, "OxyFarmsNFT::addAddressessToWhitelist: presale is over, no more allowances");
        
        for (uint i = 0; i < addressesToWhitelist.length; i++) {
            whitelistedAllowance[addressesToWhitelist[i]] = maxPreSale;
        }
    }
    
    /**
     * @dev withdrawAll() allows to withdraw all the funds of the contract during
     * or after the sale is ended, to the sale address (by default contract creator).
     */
    function withdrawAll() external onlyOwner {

        (bool withdrawSale, ) = saleAddress.call{value: address(this).balance}("");
        require(withdrawSale, "OxyFarmsNFT::withdrawAll: Withdrawing failed to the sale address.");
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 14 : 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 6 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 7 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 8 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 9 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 10 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 11 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 12 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 13 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 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": true,
    "runs": 1500
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"NFTreeMinted","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_NFTREES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addressesToWhitelist","type":"address[]"}],"name":"addAddressessToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_mintAddressList","type":"address[]"},{"internalType":"uint256[]","name":"_quantityList","type":"uint256[]"}],"name":"batchMintByOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addressToCheck","type":"address"}],"name":"checkWhitelisting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasPreSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPreSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintByOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pausePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSaleOver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMaxPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_saleAddress","type":"address"}],"name":"setSaleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","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":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526011805462ffffff191690553480156200001d57600080fd5b5060405162003d8138038062003d818339810160408190526200004091620002cf565b604080518082018252601081526f4f78794661726d73204e46547265657360801b60208083019182528351808501909452600384526227ac2360e91b908401528151919291620000939160009162000172565b508051620000a990600190602084019062000172565b505050620000c6620000c06200011c60201b60201c565b62000120565b66b1a2bc2ec50000600f55600a600e55600d80546001600160a01b031916331790558151620000fd90600b90602085019062000172565b5080516200011390600c90602084019062000172565b5050506200038c565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001809062000339565b90600052602060002090601f016020900481019282620001a45760008555620001ef565b82601f10620001bf57805160ff1916838001178555620001ef565b82800160010185558215620001ef579182015b82811115620001ef578251825591602001919060010190620001d2565b50620001fd92915062000201565b5090565b5b80821115620001fd576000815560010162000202565b600082601f8301126200022a57600080fd5b81516001600160401b038082111562000247576200024762000376565b604051601f8301601f19908116603f0116810190828211818310171562000272576200027262000376565b816040528381526020925086838588010111156200028f57600080fd5b600091505b83821015620002b3578582018301518183018401529082019062000294565b83821115620002c55760008385830101525b9695505050505050565b60008060408385031215620002e357600080fd5b82516001600160401b0380821115620002fb57600080fd5b620003098683870162000218565b935060208501519150808211156200032057600080fd5b506200032f8582860162000218565b9150509250929050565b600181811c908216806200034e57607f821691505b602082108114156200037057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6139e5806200039c6000396000f3fe6080604052600436106102e75760003560e01c80638462151c11610184578063a7c677ee116100d6578063db8ff1fd1161008a578063f2fde38b11610064578063f2fde38b146107f2578063f8fb491f14610812578063fad3f8f71461083257600080fd5b8063db8ff1fd14610774578063e8a3d48514610794578063e985e9c5146107a957600080fd5b8063b88d4fde116100bb578063b88d4fde14610714578063c69ae2dd14610734578063c87b56dd1461075457600080fd5b8063a7c677ee146106c9578063b66a0e5d146106ff57600080fd5b806391b7f5ed11610138578063a035b1fe11610112578063a035b1fe14610680578063a0712d6814610696578063a22cb465146106a957600080fd5b806391b7f5ed1461062b578063938e3d7b1461064b57806395d89b411461066b57600080fd5b8063858f254311610169578063858f2543146105e45780638ad433ac146105fa5780638da5cb5b1461060d57600080fd5b80638462151c146105a2578063853828b6146105cf57600080fd5b80634357da581161023d5780636352211e116101f157806370a08231116101cb57806370a082311461054d578063715018a61461056d57806381221c141461058257600080fd5b80636352211e146104f45780636a5928f5146105145780636bb6bf8b1461052e57600080fd5b806355367ba91161022257806355367ba9146104aa57806355dd574c146104bf57806355f804b3146104d457600080fd5b80634357da58146104755780634f6ccce71461048a57600080fd5b806318160ddd1161029f5780632f745c59116102795780632f745c59146104155780633542aee21461043557806342842e0e1461045557600080fd5b806318160ddd146103c05780631c8b232d146103d557806323b872dd146103f557600080fd5b8063081812fc116102d0578063081812fc14610343578063095ea7b31461037b578063136f3cfc1461039d57600080fd5b806301ffc9a7146102ec57806306fdde0314610321575b600080fd5b3480156102f857600080fd5b5061030c61030736600461365a565b610848565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b5061033661088c565b60405161031891906137d1565b34801561034f57600080fd5b5061036361035e3660046136dd565b61091e565b6040516001600160a01b039091168152602001610318565b34801561038757600080fd5b5061039b610396366004613539565b6109c9565b005b3480156103a957600080fd5b506103b2603281565b604051908152602001610318565b3480156103cc57600080fd5b506008546103b2565b3480156103e157600080fd5b5060115461030c9062010000900460ff1681565b34801561040157600080fd5b5061039b610410366004613445565b610afb565b34801561042157600080fd5b506103b2610430366004613539565b610b82565b34801561044157600080fd5b5061039b610450366004613539565b610c2a565b34801561046157600080fd5b5061039b610470366004613445565b610e47565b34801561048157600080fd5b5061039b610e62565b34801561049657600080fd5b506103b26104a53660046136dd565b610f40565b3480156104b657600080fd5b5061039b610fe4565b3480156104cb57600080fd5b5061039b6110ca565b3480156104e057600080fd5b5061039b6104ef366004613694565b61122a565b34801561050057600080fd5b5061036361050f3660046136dd565b61129b565b34801561052057600080fd5b5060115461030c9060ff1681565b34801561053a57600080fd5b5060115461030c90610100900460ff1681565b34801561055957600080fd5b506103b26105683660046133f7565b611326565b34801561057957600080fd5b5061039b6113c0565b34801561058e57600080fd5b5061039b61059d3660046136dd565b611426565b3480156105ae57600080fd5b506105c26105bd3660046133f7565b611485565b604051610318919061378d565b3480156105db57600080fd5b5061039b611544565b3480156105f057600080fd5b506103b261115c81565b61039b6106083660046136dd565b611690565b34801561061957600080fd5b50600a546001600160a01b0316610363565b34801561063757600080fd5b5061039b6106463660046136dd565b611b1b565b34801561065757600080fd5b5061039b610666366004613694565b611b7a565b34801561067757600080fd5b50610336611be7565b34801561068c57600080fd5b506103b2600f5481565b61039b6106a43660046136dd565b611bf6565b3480156106b557600080fd5b5061039b6106c43660046134fd565b611e7c565b3480156106d557600080fd5b506103b26106e43660046133f7565b6001600160a01b031660009081526010602052604090205490565b34801561070b57600080fd5b5061039b611f41565b34801561072057600080fd5b5061039b61072f366004613481565b61202d565b34801561074057600080fd5b5061039b61074f366004613563565b6120bb565b34801561076057600080fd5b5061033661076f3660046136dd565b61221d565b34801561078057600080fd5b5061039b61078f366004613598565b612306565b3480156107a057600080fd5b50610336612431565b3480156107b557600080fd5b5061030c6107c4366004613412565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107fe57600080fd5b5061039b61080d3660046133f7565b6124bf565b34801561081e57600080fd5b5061039b61082d3660046133f7565b61259e565b34801561083e57600080fd5b506103b2600e5481565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610886575061088682612627565b92915050565b60606000805461089b906138c7565b80601f01602080910402602001604051908101604052809291908181526020018280546108c7906138c7565b80156109145780601f106108e957610100808354040283529160200191610914565b820191906000526020600020905b8154815290600101906020018083116108f757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109ad5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109d48261129b565b9050806001600160a01b0316836001600160a01b03161415610a5e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109a4565b336001600160a01b0382161480610a7a5750610a7a81336107c4565b610aec5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a4565b610af683836126c2565b505050565b610b05338261273d565b610b775760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109a4565b610af6838383612845565b6000610b8d83611326565b8210610c015760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109a4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610c845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b60008111610cfa5760405162461bcd60e51b815260206004820152603260248201527f4f78794661726d734e46543a3a6d696e7442794f776e65723a205175616e746960448201527f74792063616e6e6f74206265207a65726f2e000000000000000000000000000060648201526084016109a4565b6032811115610d975760405162461bcd60e51b815260206004820152604260248201527f4f78794661726d734e46543a3a6d696e7442794f776e65723a205175616e746960448201527f74792063616e6e6f7420626520626967676572207468616e204d41585f53414c60648201527f452e000000000000000000000000000000000000000000000000000000000000608482015260a4016109a4565b61115c610dad82610da760085490565b90612a2a565b1115610e215760405162461bcd60e51b815260206004820152602360248201527f4f78794661726d734e46543a3a6d696e7442794f776e65723a20536f6c64206f60448201527f75742e000000000000000000000000000000000000000000000000000000000060648201526084016109a4565b60005b81811015610af657610e3583612a36565b80610e3f816138fc565b915050610e24565b610af68383836040518060200160405280600081525061202d565b600a546001600160a01b03163314610ebc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b60115460ff16610f345760405162461bcd60e51b815260206004820152603160248201527f4f78794661726d734e46543a3a706175736550726553616c653a20507265736160448201527f6c65206973206e6f74206163746976652e00000000000000000000000000000060648201526084016109a4565b6011805460ff19169055565b6000610f4b60085490565b8210610fbf5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016109a4565b60088281548110610fd257610fd261396d565b90600052602060002001549050919050565b600a546001600160a01b0316331461103e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b60115462010000900460ff166110bc5760405162461bcd60e51b815260206004820152602b60248201527f4f78794661726d734e46543a3a706175736553616c653a2053616c652069732060448201527f6e6f74206163746976652e00000000000000000000000000000000000000000060648201526084016109a4565b6011805462ff000019169055565b600a546001600160a01b031633146111245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b601154610100900460ff16156111a25760405162461bcd60e51b815260206004820152603f60248201527f4f78794661726d734e46543a3a737461727450726553616c653a20507265736160448201527f6c65206973206f7665722c2063616e6e6f7420737461727420616761696e2e0060648201526084016109a4565b60115460ff161561121b5760405162461bcd60e51b815260206004820152603260248201527f4f78794661726d734e46543a3a737461727450726553616c653a20507265736160448201527f6c6520616c7265616479206163746976652e000000000000000000000000000060648201526084016109a4565b6011805460ff19166001179055565b600a546001600160a01b031633146112845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b805161129790600b906020840190613271565b5050565b6000818152600260205260408120546001600160a01b0316806108865760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109a4565b60006001600160a01b0382166113a45760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109a4565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461141a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b6114246000612a87565b565b600a546001600160a01b031633146114805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b600e55565b6060600061149283611326565b9050806114b35760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156114ce576114ce613983565b6040519080825280602002602001820160405280156114f7578160200160208202803683370190505b50905060005b828110156114ab5761150f8582610b82565b8282815181106115215761152161396d565b602090810291909101015280611536816138fc565b9150506114fd565b50919050565b600a546001600160a01b0316331461159e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b600d546040516000916001600160a01b03169047908381818185875af1925050503d80600081146115eb576040519150601f19603f3d011682016040523d82523d6000602084013e6115f0565b606091505b505090508061168d5760405162461bcd60e51b815260206004820152604160248201527f4f78794661726d734e46543a3a7769746864726177416c6c3a2057697468647260448201527f6177696e67206661696c656420746f207468652073616c65206164647265737360648201527f2e00000000000000000000000000000000000000000000000000000000000000608482015260a4016109a4565b50565b60115460ff166117085760405162461bcd60e51b815260206004820152602d60248201527f4f78794661726d734e46543a3a7072654d696e743a2050726573616c6520686160448201527f736e277420737461727465642e0000000000000000000000000000000000000060648201526084016109a4565b601154610100900460ff16156117865760405162461bcd60e51b815260206004820152603a60248201527f4f78794661726d734e46543a3a7072654d696e743a2050726573616c6520697360448201527f206f7665722c206e6f206d6f726520616c6c6f77616e6365732e00000000000060648201526084016109a4565b600081116117fc5760405162461bcd60e51b815260206004820152602e60248201527f4f78794661726d734e46543a3a7072654d696e743a205175616e74697479206360448201527f616e6e6f74206265207a65726f2e00000000000000000000000000000000000060648201526084016109a4565b600e54811115611876576040805162461bcd60e51b81526020600482015260248101919091527f4f78794661726d734e46543a3a7072654d696e743a205175616e74697479206360448201527f616e6e6f7420626520626967676572207468616e206d617850726553616c652e60648201526084016109a4565b336000908152601060205260408120546118909083612ae6565b101561192a5760405162461bcd60e51b815260206004820152604c60248201527f4f78794661726d734e46543a3a7072654d696e743a205468652075736572206960448201527f73206e6f7420616c6c6f77656420746f20646f2066757274686572207072657360648201527f616c6520627579696e67732e0000000000000000000000000000000000000000608482015260a4016109a4565b336000908152601060205260409020548111156119d55760405162461bcd60e51b815260206004820152604760248201527f4f78794661726d734e46543a3a7072654d696e743a205468697320616464726560448201527f7373206973206e6f7420616c6c6f77656420746f20627579207468617420717560648201527f616e746974792e00000000000000000000000000000000000000000000000000608482015260a4016109a4565b61115c6119e582610da760085490565b1115611a335760405162461bcd60e51b815260206004820152601e60248201527f4f78794661726d734e46543a3a7072654d696e743a20536f6c64206f7574000060448201526064016109a4565b600f54611a409082612af2565b34101580611a585750600a546001600160a01b031633145b611aca5760405162461bcd60e51b815260206004820152603a60248201527f4f78794661726d734e46543a3a7072654d696e743a2045746865722076616c7560448201527f652073656e742069732062656c6f77207468652070726963652e00000000000060648201526084016109a4565b33600090815260106020526040902054611ae49082612ae6565b336000908152601060205260408120919091555b8181101561129757611b0933612a36565b80611b13816138fc565b915050611af8565b600a546001600160a01b03163314611b755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b600f55565b600a546001600160a01b03163314611bd45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b805161129790600c906020840190613271565b60606001805461089b906138c7565b60115462010000900460ff16611c745760405162461bcd60e51b815260206004820152602760248201527f4f78794661726d734e46543a3a6d696e743a2053616c65206861736e2774207360448201527f7461727465642e0000000000000000000000000000000000000000000000000060648201526084016109a4565b60008111611cea5760405162461bcd60e51b815260206004820152602b60248201527f4f78794661726d734e46543a3a6d696e743a205175616e746974792063616e6e60448201527f6f74206265207a65726f2e00000000000000000000000000000000000000000060648201526084016109a4565b6032811115611d615760405162461bcd60e51b815260206004820152603d60248201527f4f78794661726d734e46543a3a6d696e743a205175616e746974792063616e6e60448201527f6f7420626520626967676572207468616e204d41585f425559494e472e00000060648201526084016109a4565b61115c611d7182610da760085490565b1115611dbf5760405162461bcd60e51b815260206004820152601c60248201527f4f78794661726d734e46543a3a6d696e743a20536f6c64206f75742e0000000060448201526064016109a4565b600f54611dcc9082612af2565b34101580611de45750600a546001600160a01b031633145b611e565760405162461bcd60e51b815260206004820152603760248201527f4f78794661726d734e46543a3a6d696e743a2045746865722076616c7565207360448201527f656e742069732062656c6f77207468652070726963652e00000000000000000060648201526084016109a4565b60005b8181101561129757611e6a33612a36565b80611e74816138fc565b915050611e59565b6001600160a01b038216331415611ed55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611f9b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b60115462010000900460ff161561201a5760405162461bcd60e51b815260206004820152602c60248201527f4f78794661726d734e46543a3a737461727453616c653a2053616c6520616c7260448201527f65616479206163746976652e000000000000000000000000000000000000000060648201526084016109a4565b6011805462ffffff191662010100179055565b612037338361273d565b6120a95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109a4565b6120b584848484612afe565b50505050565b600a546001600160a01b031633146121155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b601154610100900460ff16156121b95760405162461bcd60e51b815260206004820152604a60248201527f4f78794661726d734e46543a3a61646441646472657373657373546f5768697460448201527f656c6973743a2070726573616c65206973206f7665722c206e6f206d6f72652060648201527f616c6c6f77616e63657300000000000000000000000000000000000000000000608482015260a4016109a4565b60005b815181101561129757600e54601060008484815181106121de576121de61396d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080612215906138fc565b9150506121bc565b6000818152600260205260409020546060906001600160a01b03166122aa5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109a4565b60006122b4612b87565b905060008151116122d457604051806020016040528060008152506122ff565b806122de84612b96565b6040516020016122ef929190613722565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146123605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b80518251146123d75760405162461bcd60e51b815260206004820152603860248201527f4f78794661726d734e46543a3a62617463684d696e7442794f776e65723a205460448201527f6865206c656e6774682073686f756c642062652073616d65000000000000000060648201526084016109a4565b60005b8251811015610af65761241f8382815181106123f8576123f861396d565b60200260200101518383815181106124125761241261396d565b6020026020010151610c2a565b61242a600182613839565b90506123da565b600c805461243e906138c7565b80601f016020809104026020016040519081016040528092919081815260200182805461246a906138c7565b80156124b75780601f1061248c576101008083540402835291602001916124b7565b820191906000526020600020905b81548152906001019060200180831161249a57829003601f168201915b505050505081565b600a546001600160a01b031633146125195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b6001600160a01b0381166125955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109a4565b61168d81612a87565b600a546001600160a01b031633146125f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a4565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061268a57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061088657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610886565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906127048261129b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166127c75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109a4565b60006127d28361129b565b9050806001600160a01b0316846001600160a01b0316148061280d5750836001600160a01b03166128028461091e565b6001600160a01b0316145b8061283d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166128588261129b565b6001600160a01b0316146128d45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109a4565b6001600160a01b03821661294f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109a4565b61295a838383612cc8565b6129656000826126c2565b6001600160a01b038316600090815260036020526040812080546001929061298e908490613884565b90915550506001600160a01b03821660009081526003602052604081208054600192906129bc908490613839565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006122ff8284613839565b6000612a4160085490565b9050612a4d8282612d80565b6040516001600160a01b0383169082907f63a726a8fd1046bcf49ddcc347e7ee0c11df28dbbbab4924c560ebb850634a9d90600090a35050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006122ff8284613884565b60006122ff8284613865565b612b09848484612845565b612b1584848484612d9a565b6120b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109a4565b6060600b805461089b906138c7565b606081612bd657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612c005780612bea816138fc565b9150612bf99050600a83613851565b9150612bda565b60008167ffffffffffffffff811115612c1b57612c1b613983565b6040519080825280601f01601f191660200182016040528015612c45576020820181803683370190505b5090505b841561283d57612c5a600183613884565b9150612c67600a86613917565b612c72906030613839565b60f81b818381518110612c8757612c8761396d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612cc1600a86613851565b9450612c49565b6001600160a01b038316612d2357612d1e81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d46565b816001600160a01b0316836001600160a01b031614612d4657612d468382612efd565b6001600160a01b038216612d5d57610af681612f9a565b826001600160a01b0316826001600160a01b031614610af657610af68282613049565b61129782826040518060200160405280600081525061308d565b60006001600160a01b0384163b15612ef257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612dde903390899088908890600401613751565b602060405180830381600087803b158015612df857600080fd5b505af1925050508015612e28575060408051601f3d908101601f19168201909252612e2591810190613677565b60015b612ed8573d808015612e56576040519150601f19603f3d011682016040523d82523d6000602084013e612e5b565b606091505b508051612ed05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109a4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061283d565b506001949350505050565b60006001612f0a84611326565b612f149190613884565b600083815260076020526040902054909150808214612f67576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612fac90600190613884565b60008381526009602052604081205460088054939450909284908110612fd457612fd461396d565b906000526020600020015490508060088381548110612ff557612ff561396d565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061302d5761302d613957565b6001900381819060005260206000200160009055905550505050565b600061305483611326565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6130978383613116565b6130a46000848484612d9a565b610af65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109a4565b6001600160a01b03821661316c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a4565b6000818152600260205260409020546001600160a01b0316156131d15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a4565b6131dd60008383612cc8565b6001600160a01b0382166000908152600360205260408120805460019290613206908490613839565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461327d906138c7565b90600052602060002090601f01602090048101928261329f57600085556132e5565b82601f106132b857805160ff19168380011785556132e5565b828001600101855582156132e5579182015b828111156132e55782518255916020019190600101906132ca565b506132f19291506132f5565b5090565b5b808211156132f157600081556001016132f6565b600067ffffffffffffffff83111561332457613324613983565b613337601f8401601f19166020016137e4565b905082815283838301111561334b57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461337957600080fd5b919050565b600082601f83011261338f57600080fd5b813560206133a461339f83613815565b6137e4565b80838252828201915082860187848660051b89010111156133c457600080fd5b60005b858110156133ea576133d882613362565b845292840192908401906001016133c7565b5090979650505050505050565b60006020828403121561340957600080fd5b6122ff82613362565b6000806040838503121561342557600080fd5b61342e83613362565b915061343c60208401613362565b90509250929050565b60008060006060848603121561345a57600080fd5b61346384613362565b925061347160208501613362565b9150604084013590509250925092565b6000806000806080858703121561349757600080fd5b6134a085613362565b93506134ae60208601613362565b925060408501359150606085013567ffffffffffffffff8111156134d157600080fd5b8501601f810187136134e257600080fd5b6134f18782356020840161330a565b91505092959194509250565b6000806040838503121561351057600080fd5b61351983613362565b91506020830135801515811461352e57600080fd5b809150509250929050565b6000806040838503121561354c57600080fd5b61355583613362565b946020939093013593505050565b60006020828403121561357557600080fd5b813567ffffffffffffffff81111561358c57600080fd5b61283d8482850161337e565b600080604083850312156135ab57600080fd5b823567ffffffffffffffff808211156135c357600080fd5b6135cf8683870161337e565b93506020915081850135818111156135e657600080fd5b85019050601f810186136135f957600080fd5b803561360761339f82613815565b80828252848201915084840189868560051b870101111561362757600080fd5b600094505b8385101561364a57803583526001949094019391850191850161362c565b5080955050505050509250929050565b60006020828403121561366c57600080fd5b81356122ff81613999565b60006020828403121561368957600080fd5b81516122ff81613999565b6000602082840312156136a657600080fd5b813567ffffffffffffffff8111156136bd57600080fd5b8201601f810184136136ce57600080fd5b61283d8482356020840161330a565b6000602082840312156136ef57600080fd5b5035919050565b6000815180845261370e81602086016020860161389b565b601f01601f19169290920160200192915050565b6000835161373481846020880161389b565b83519083019061374881836020880161389b565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261378360808301846136f6565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156137c5578351835292840192918401916001016137a9565b50909695505050505050565b6020815260006122ff60208301846136f6565b604051601f8201601f1916810167ffffffffffffffff8111828210171561380d5761380d613983565b604052919050565b600067ffffffffffffffff82111561382f5761382f613983565b5060051b60200190565b6000821982111561384c5761384c61392b565b500190565b60008261386057613860613941565b500490565b600081600019048311821515161561387f5761387f61392b565b500290565b6000828210156138965761389661392b565b500390565b60005b838110156138b657818101518382015260200161389e565b838111156120b55750506000910152565b600181811c908216806138db57607f821691505b6020821081141561153e57634e487b7160e01b600052602260045260246000fd5b60006000198214156139105761391061392b565b5060010190565b60008261392657613926613941565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461168d57600080fdfea2646970667358221220b3705f8b2701fc4be66923cc70b7522ef59d1f53c63661cb9575d938bcf49a0d64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6170692e6f78796661726d732e65617274682f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6170692e6f78796661726d732e65617274682f636f6e74726163742f00000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6170692e6f78796661726d732e65617274682f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6170692e6f78796661726d732e65617274682f636f6e74726163742f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI_ (string): https://api.oxyfarms.earth/token/
Arg [1] : contractURI_ (string): https://api.oxyfarms.earth/contract/

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [3] : 68747470733a2f2f6170692e6f78796661726d732e65617274682f746f6b656e
Arg [4] : 2f00000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [6] : 68747470733a2f2f6170692e6f78796661726d732e65617274682f636f6e7472
Arg [7] : 6163742f00000000000000000000000000000000000000000000000000000000


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.