POL Price: $0.218295 (-0.01%)
Gas: 30 GWei
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...658017302024-12-22 18:50:44121 days ago1734893444IN
0x78b2Fe2a...dcA0a5370
0 POL0.0034240673.86450717
Set Approval For...653251692024-12-10 20:41:26133 days ago1733863286IN
0x78b2Fe2a...dcA0a5370
0 POL0.0016561835.72748226
Set Approval For...646451722024-11-23 18:42:09150 days ago1732387329IN
0x78b2Fe2a...dcA0a5370
0 POL0.0037581281.07093202
Set Approval For...644032462024-11-17 18:00:36156 days ago1731866436IN
0x78b2Fe2a...dcA0a5370
0 POL0.0014833932.0000568
Set Approval For...635680112024-10-27 21:33:38177 days ago1730064818IN
0x78b2Fe2a...dcA0a5370
0 POL0.0008066533.00000002
Set Approval For...635680052024-10-27 21:33:26177 days ago1730064806IN
0x78b2Fe2a...dcA0a5370
0 POL0.0008066533.00000002
Set Approval For...622728652024-09-25 21:17:38209 days ago1727299058IN
0x78b2Fe2a...dcA0a5370
0 POL0.0014032830.27200002
Set Approval For...619834062024-09-18 17:23:52216 days ago1726680232IN
0x78b2Fe2a...dcA0a5370
0 POL0.0015841334.17333335
Set Approval For...619324102024-09-17 11:02:11217 days ago1726570931IN
0x78b2Fe2a...dcA0a5370
0 POL0.0019469542.0000009
Set Approval For...619064472024-09-16 19:33:02218 days ago1726515182IN
0x78b2Fe2a...dcA0a5370
0 POL0.0016688135.99999999
Set Approval For...619042992024-09-16 18:15:22218 days ago1726510522IN
0x78b2Fe2a...dcA0a5370
0 POL0.0016715936.06000003
Set Approval For...618732042024-09-15 23:43:53219 days ago1726443833IN
0x78b2Fe2a...dcA0a5370
0 POL0.0016187634.92018346
Set Approval For...613797142024-09-03 15:09:16231 days ago1725376156IN
0x78b2Fe2a...dcA0a5370
0 POL0.0037415880.71421238
Set Approval For...609015242024-08-22 12:54:30243 days ago1724331270IN
0x78b2Fe2a...dcA0a5370
0 POL0.0015714633.89999996
Set Approval For...602618802024-08-06 12:37:50259 days ago1722947870IN
0x78b2Fe2a...dcA0a5370
0 POL0.0014486231.2500014
Set Approval For...574597432024-05-27 18:18:28330 days ago1716833908IN
0x78b2Fe2a...dcA0a5370
0 POL0.001388230.00106646
Set Approval For...545848682024-03-12 21:59:49406 days ago1710280789IN
0x78b2Fe2a...dcA0a5370
0 POL0.0037193580.38030665
Set Approval For...544441182024-03-09 7:53:58410 days ago1709970838IN
0x78b2Fe2a...dcA0a5370
0 POL0.00603019130.08452976
Set Approval For...517157032023-12-29 23:00:41480 days ago1703890841IN
0x78b2Fe2a...dcA0a5370
0 POL0.00565581122.22978834
Set Approval For...487513972023-10-15 15:28:22555 days ago1697383702IN
0x78b2Fe2a...dcA0a5370
0 POL0.0034410174.36493595
Set Approval For...472674202023-09-07 20:32:08593 days ago1694118728IN
0x78b2Fe2a...dcA0a5370
0 POL0.00626393135.12670318
Set Approval For...470495652023-09-02 9:08:01598 days ago1693645681IN
0x78b2Fe2a...dcA0a5370
0 POL0.00590084127.52521201
Set Approval For...468208882023-08-27 15:09:24604 days ago1693148964IN
0x78b2Fe2a...dcA0a5370
0 POL0.00473971102.2460586
Set Approval For...466519792023-08-23 9:29:00608 days ago1692782940IN
0x78b2Fe2a...dcA0a5370
0 POL0.0041550589.6335175
Set Approval For...466512812023-08-23 9:03:46608 days ago1692781426IN
0x78b2Fe2a...dcA0a5370
0 POL0.00297326112.38536988
View all transactions

Latest 19 internal transactions

Parent Transaction Hash Block From To
250822032022-02-18 13:05:571159 days ago1645189557
0x78b2Fe2a...dcA0a5370
4 POL
228322952021-12-22 15:13:411217 days ago1640186021
0x78b2Fe2a...dcA0a5370
6 POL
226477292021-12-17 22:58:321222 days ago1639781912
0x78b2Fe2a...dcA0a5370
4 POL
226428352021-12-17 19:50:571222 days ago1639770657
0x78b2Fe2a...dcA0a5370
4 POL
224054052021-12-11 17:55:431228 days ago1639245343
0x78b2Fe2a...dcA0a5370
6 POL
222837012021-12-08 16:18:361231 days ago1638980316
0x78b2Fe2a...dcA0a5370
54 POL
222022732021-12-06 13:15:311233 days ago1638796531
0x78b2Fe2a...dcA0a5370
32 POL
221405602021-12-04 21:53:551235 days ago1638654835
0x78b2Fe2a...dcA0a5370
38 POL
219842542021-11-30 19:09:261239 days ago1638299366
0x78b2Fe2a...dcA0a5370
32 POL
219452202021-11-29 18:24:591240 days ago1638210299
0x78b2Fe2a...dcA0a5370
46 POL
218704892021-11-27 18:41:491242 days ago1638038509
0x78b2Fe2a...dcA0a5370
32 POL
218378402021-11-26 22:59:441243 days ago1637967584
0x78b2Fe2a...dcA0a5370
8 POL
218164032021-11-26 9:07:431243 days ago1637917663
0x78b2Fe2a...dcA0a5370
14 POL
218148692021-11-26 8:10:121243 days ago1637914212
0x78b2Fe2a...dcA0a5370
94 POL
217947292021-11-25 19:10:241244 days ago1637867424
0x78b2Fe2a...dcA0a5370
26 POL
217076102021-11-23 13:02:041246 days ago1637672524
0x78b2Fe2a...dcA0a5370
2 POL
217069882021-11-23 12:36:241246 days ago1637670984
0x78b2Fe2a...dcA0a5370
4 POL
216032052021-11-20 18:59:581249 days ago1637434798
0x78b2Fe2a...dcA0a5370
28.0375 POL
210182902021-11-05 16:40:391264 days ago1636130439
0x78b2Fe2a...dcA0a5370
40 POL
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
nAnimals

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

contract nAnimals is ERC721, ERC721Enumerable, ReentrancyGuard, Ownable, Pausable {
    using Counters for Counters.Counter;
    using Strings for uint256;
    using SafeERC20 for IERC20;
    
    string public baseURI;
    string public hatchURI;
    address public contractAddress = address(this);
    uint256 public mintPrice = 2 ether;
    uint256 public hatchPrice = 2 ether;
    uint256 public maxMintSupply = 2000;
    uint256 public genStart;
    uint256 public maxMintQuantity = 20;
    bool public hatchingActive = false;
    Counters.Counter _tokenIds;
    
    mapping(uint256 => string) _tokenURIs;
    mapping (address => bool) public inclusionlisted;
    
    struct RenderUserToken {
        uint256 id;
        string uri;
    }
    
    constructor(string memory _initBaseURI) ERC721("nANIMALs", "NANI") {
        setBaseURI(_initBaseURI);
    }

    // public
    function mint(uint256 _mintQuantity) 
        public 
        payable 
        whenNotPaused
        nonReentrant 
        {
            uint256 supply = totalSupply();
            uint256 mintCost = _calculatePrice(_mintQuantity);
            string memory uri = baseURI;
            require(_mintQuantity > 0, "Mint amount must be greater than 0");
            require(_mintQuantity <= maxMintQuantity, _concatStrings("You can currently only mint up to ", Strings.toString(maxMintQuantity), " nEGGs"));
            if (msg.sender != owner()) {
                require(balanceOf(msg.sender) + _mintQuantity <=10, "You can only mint up to 10 nEGGs per wallet");
            }
            require(supply + _mintQuantity <= maxMintSupply, "You're trying to mint more nEGGs than we have left!");
            if (msg.sender != owner()) {
                if(inclusionlisted[msg.sender] != true) {
                    require(msg.value >= mintCost, "You haven't sent enough MATIC in the transaction to mint your nEGGs");
                }
            }
            for (uint256 i = 0; i < _mintQuantity; i++) {
                uint256 newId = _tokenIds.current();
                string memory newUri = _concatJSON(uri, Strings.toString(newId));
                _safeMint(msg.sender, newId);
                _setTokenURI(newId, newUri);
                _tokenIds.increment();
            }
        }
    
    function hatch(uint256 tokenId) 
        public 
        payable 
        whenNotPaused 
        nonReentrant 
        {
            string memory uri = _concatJSON(hatchURI, Strings.toString(tokenId));
            require(hatchingActive == true, "Hatching not active");
            require(0 <= tokenId && tokenId <= 2000, "nEGG out of range");
            require(balanceOf(_msgSender()) > 0, "nEGG needed to be able to hatch");
            require(_msgSender() == ownerOf(tokenId), "You don't own this nEGG");
            if (msg.sender != owner()) {
                if(inclusionlisted[msg.sender] != true) {
                    require(msg.value >= hatchPrice, "You haven't sent enough MATIC in the transaction to hatch your nEGG");
                }
            }
            _safeMint(msg.sender, tokenId+genStart);
            _setTokenURI(tokenId+genStart, uri);
            _tokenIds.increment();
        }

    function getUserTokens(address _owner) 
        public 
        view 
        returns(RenderUserToken[] memory) 
        {
            uint256 ownerTokenCount = balanceOf(_owner);
            RenderUserToken[] memory res = new RenderUserToken[](ownerTokenCount);
            for(uint256 i = 0; i < ownerTokenCount; i++) {
                uint256 tokenId = tokenOfOwnerByIndex(_owner, i);
                res[i] = RenderUserToken(tokenId, tokenURI(tokenId));
            }
            return res;
        }

    function tokenURI(uint256 tokenId) 
        public 
        view 
        virtual 
        override 
        returns(string memory) 
        {
            require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
            string memory _tokenURI = _tokenURIs[tokenId];
            return _tokenURI;
        }
    
    function supportsInterface(bytes4 interfaceId) 
        public 
        view 
        virtual 
        override(ERC721, ERC721Enumerable) 
        returns (bool) 
        {
            return super.supportsInterface(interfaceId);
        }

    // only owner
    function setBaseURI(string memory _newBaseURI) 
        public 
        onlyOwner 
        {
            baseURI = _newBaseURI;
        }
    
    function setGenStart(uint256 _newGenStart) 
        public 
        onlyOwner 
        {
            require(_newGenStart >= maxMintSupply);
            genStart = _newGenStart;
        }
    
    function setHatchURI(string memory _newHatchURI) 
        public 
        onlyOwner 
        {
            hatchURI = _newHatchURI;
        }
        
    function pause() 
        public 
        onlyOwner 
        {
            _pause();
        }
    
    function unpause() 
        public 
        onlyOwner 
        {
            _unpause();
        }
    
    function hatchingOn() 
        public 
        onlyOwner 
        {
            require(genStart >= totalSupply() && genStart >= 2000, "genStart must be higher than the current supply");
            require (keccak256(abi.encodePacked(hatchURI)) != keccak256(abi.encodePacked("")), "Remember to set the hatchURI");
            hatchingActive = true;
        }

    function hatchingOff() 
        public 
        onlyOwner 
            {
            hatchingActive = false;
        }
    
    function setMintPrice(uint256 newMintPrice) 
        public 
        onlyOwner 
        {
            mintPrice = newMintPrice;
        }
    
    function setHatchPrice(uint256 newHatchPrice) 
        public 
        onlyOwner 
        {
            hatchPrice = newHatchPrice;
        }
      
    function setmaxMintQuantity(uint256 _newmaxMintQuantity) 
        public 
        onlyOwner
        {
            maxMintQuantity = _newmaxMintQuantity;
        }
  
    function inclusionlistUser(address _user) 
        public 
        onlyOwner 
        {
            inclusionlisted[_user] = true;
        }
     
    function removeinclusionlistUser(address _user) 
        public 
        onlyOwner 
        {
            inclusionlisted[_user] = false;
        }
    
    function withdrawMatic() 
        public 
        onlyOwner 
        {
            uint256 balance = address(this).balance;
            payable(msg.sender).transfer(balance);
        }

    function withdrawERC20(IERC20 token) public onlyOwner {
        token.transfer(msg.sender, token.balanceOf(address(this)));
    }

    // internal
    function _baseURI() 
        internal 
        view 
        virtual 
        override 
        returns (string memory) 
        {
            return baseURI;
        }
    
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) 
        internal 
        {
            _tokenURIs[tokenId] = _tokenURI;
        }
    
    function _calculatePrice(uint256 numberOfTokens) 
        internal 
        view 
        returns (uint256)
        {
            return mintPrice * numberOfTokens;
        }

    function _concatJSON(string memory strOne, string memory strTwo) 
        private 
        pure 
        returns (string memory) 
        {
            return string(abi.encodePacked(strOne, strTwo, ".json"));
        }
    
    function _concatStrings(string memory strOne, string memory strTwo, string memory strThree) 
        private 
        pure 
        returns (string memory) 
        {
            return string(abi.encodePacked(strOne, strTwo, strThree));
        }
    
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) 
        internal 
        virtual 
        override(ERC721, ERC721Enumerable) 
        {
            super._beforeTokenTransfer(from, to, tokenId);
        }
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 18 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 18 : 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 8 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

File 11 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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);
}

File 17 of 18 : 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 18 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getUserTokens","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"internalType":"struct nAnimals.RenderUserToken[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"hatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"hatchPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hatchURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hatchingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hatchingOff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hatchingOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"inclusionlistUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"inclusionlisted","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":"maxMintQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintQuantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeinclusionlistUser","outputs":[],"stateMutability":"nonpayable","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newGenStart","type":"uint256"}],"name":"setGenStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newHatchPrice","type":"uint256"}],"name":"setHatchPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newHatchURI","type":"string"}],"name":"setHatchURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintQuantity","type":"uint256"}],"name":"setmaxMintQuantity","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":[],"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMatic","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600e80546001600160a01b03191630179055671bc16d674ec80000600f8190556010556107d060115560146013819055805460ff191690553480156200004957600080fd5b5060405162003925380380620039258339810160408190526200006c916200027c565b60408051808201825260088152676e414e494d414c7360c01b6020808301918252835180850190945260048452634e414e4960e01b908401528151919291620000b891600091620001d6565b508051620000ce906001906020840190620001d6565b50506001600a5550620000ea620000e462000109565b6200010d565b600b805460ff60a01b1916905562000102816200015f565b50620003d3565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200016962000109565b6001600160a01b03166200017c620001c7565b6001600160a01b031614620001ae5760405162461bcd60e51b8152600401620001a5906200034b565b60405180910390fd5b8051620001c390600c906020840190620001d6565b5050565b600b546001600160a01b031690565b828054620001e49062000380565b90600052602060002090601f01602090048101928262000208576000855562000253565b82601f106200022357805160ff191683800117855562000253565b8280016001018555821562000253579182015b828111156200025357825182559160200191906001019062000236565b506200026192915062000265565b5090565b5b8082111562000261576000815560010162000266565b600060208083850312156200028f578182fd5b82516001600160401b0380821115620002a6578384fd5b818501915085601f830112620002ba578384fd5b815181811115620002cf57620002cf620003bd565b604051601f8201601f1916810185018381118282101715620002f557620002f5620003bd565b60405281815283820185018810156200030c578586fd5b8592505b818310156200032f578383018501518184018601529184019162000310565b818311156200034057858583830101525b979650505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6002810460018216806200039557607f821691505b60208210811415620003b757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61354280620003e36000396000f3fe6080604052600436106102885760003560e01c8063715018a61161015a578063c285e107116100c1578063e985e9c51161007a578063e985e9c51461070e578063eeb2f3c61461072e578063f2fde38b1461074e578063f4a0a5281461076e578063f4f3b2001461078e578063f6b4dfb4146107ae57610288565b8063c285e10714610671578063c87b56dd14610686578063c8c18842146106a6578063cefcc858146106b9578063d20ae6ed146106d9578063e57f3e1e146106ee57610288565b8063a22cb46511610113578063a22cb465146105bc578063a26b4627146105dc578063a912adb2146105fc578063ae9aea6d1461061c578063b2801de414610631578063b88d4fde1461065157610288565b8063715018a614610540578063810074c6146105555780638456cb591461056a5780638da5cb5b1461057f57806395d89b4114610594578063a0712d68146105a957610288565b806342842e0e116101fe5780636352211e116101b75780636352211e146104a15780636633b12d146104c15780636817c76c146104d657806369074dfa146104eb5780636c0360eb1461050b57806370a082311461052057610288565b806342842e0e146103ea5780634f6ccce71461040a578063519dc8d21461042a57806355f804b31461045757806356982e30146104775780635c975abb1461048c57610288565b806318160ddd1161025057806318160ddd1461034957806318ecf3651461036b5780631aa2948a1461038057806323b872dd146103955780632f745c59146103b55780633f4ba83a146103d557610288565b806301ffc9a71461028d578063055f6341146102c357806306fdde03146102da578063081812fc146102fc578063095ea7b314610329575b600080fd5b34801561029957600080fd5b506102ad6102a83660046127e5565b6107c3565b6040516102ba9190612aba565b60405180910390f35b3480156102cf57600080fd5b506102d86107d6565b005b3480156102e657600080fd5b506102ef6108d1565b6040516102ba9190612ac5565b34801561030857600080fd5b5061031c610317366004612863565b610963565b6040516102ba91906129df565b34801561033557600080fd5b506102d861034436600461279e565b6109a6565b34801561035557600080fd5b5061035e610a3e565b6040516102ba9190613362565b34801561037757600080fd5b5061035e610a44565b34801561038c57600080fd5b5061035e610a4a565b3480156103a157600080fd5b506102d86103b03660046126b4565b610a50565b3480156103c157600080fd5b5061035e6103d036600461279e565b610a88565b3480156103e157600080fd5b506102d8610ada565b3480156103f657600080fd5b506102d86104053660046126b4565b610b23565b34801561041657600080fd5b5061035e610425366004612863565b610b3e565b34801561043657600080fd5b5061044a610445366004612659565b610b99565b6040516102ba9190612a49565b34801561046357600080fd5b506102d861047236600461281d565b610c8a565b34801561048357600080fd5b506102ef610ce0565b34801561049857600080fd5b506102ad610d6e565b3480156104ad57600080fd5b5061031c6104bc366004612863565b610d7e565b3480156104cd57600080fd5b506102d8610db3565b3480156104e257600080fd5b5061035e610dfe565b3480156104f757600080fd5b506102d8610506366004612863565b610e04565b34801561051757600080fd5b506102ef610e48565b34801561052c57600080fd5b5061035e61053b366004612659565b610e55565b34801561054c57600080fd5b506102d8610e99565b34801561056157600080fd5b506102d8610ee2565b34801561057657600080fd5b506102d8610f50565b34801561058b57600080fd5b5061031c610f97565b3480156105a057600080fd5b506102ef610fa6565b6102d86105b7366004612863565b610fb5565b3480156105c857600080fd5b506102d86105d7366004612771565b611283565b3480156105e857600080fd5b506102d86105f7366004612659565b611351565b34801561060857600080fd5b506102d8610617366004612659565b6113b1565b34801561062857600080fd5b5061035e611414565b34801561063d57600080fd5b506102d861064c36600461281d565b61141a565b34801561065d57600080fd5b506102d861066c3660046126f4565b61146c565b34801561067d57600080fd5b5061035e6114ab565b34801561069257600080fd5b506102ef6106a1366004612863565b6114b1565b6102d86106b4366004612863565b611577565b3480156106c557600080fd5b506102d86106d4366004612863565b6117b4565b3480156106e557600080fd5b506102ad6117f8565b3480156106fa57600080fd5b506102ad610709366004612659565b611801565b34801561071a57600080fd5b506102ad61072936600461267c565b611816565b34801561073a57600080fd5b506102d8610749366004612863565b611844565b34801561075a57600080fd5b506102d8610769366004612659565b611897565b34801561077a57600080fd5b506102d8610789366004612863565b611908565b34801561079a57600080fd5b506102d86107a9366004612659565b61194c565b3480156107ba57600080fd5b5061031c611a80565b60006107ce82611a8f565b90505b919050565b6107de611ab4565b6001600160a01b03166107ef610f97565b6001600160a01b03161461081e5760405162461bcd60e51b8152600401610815906130cc565b60405180910390fd5b610826610a3e565b6012541015801561083b57506107d060125410155b6108575760405162461bcd60e51b815260040161081590612c20565b604051602001610866906129dc565b60405160208183030381529060405280519060200120600d60405160200161088e9190612941565b6040516020818303038152906040528051906020012014156108c25760405162461bcd60e51b815260040161081590612cc7565b6014805460ff19166001179055565b6060600080546108e090613405565b80601f016020809104026020016040519081016040528092919081815260200182805461090c90613405565b80156109595780601f1061092e57610100808354040283529160200191610959565b820191906000526020600020905b81548152906001019060200180831161093c57829003601f168201915b5050505050905090565b600061096e82611ab8565b61098a5760405162461bcd60e51b815260040161081590613080565b506000908152600460205260409020546001600160a01b031690565b60006109b182610d7e565b9050806001600160a01b0316836001600160a01b031614156109e55760405162461bcd60e51b815260040161081590613199565b806001600160a01b03166109f7611ab4565b6001600160a01b03161480610a135750610a1381610729611ab4565b610a2f5760405162461bcd60e51b815260040161081590612ec6565b610a398383611ad5565b505050565b60085490565b60105481565b60125481565b610a61610a5b611ab4565b82611b43565b610a7d5760405162461bcd60e51b81526004016108159061328e565b610a39838383611bc8565b6000610a9383610e55565b8210610ab15760405162461bcd60e51b815260040161081590612b06565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610ae2611ab4565b6001600160a01b0316610af3610f97565b6001600160a01b031614610b195760405162461bcd60e51b8152600401610815906130cc565b610b21611cf5565b565b610a398383836040518060200160405280600081525061146c565b6000610b48610a3e565b8210610b665760405162461bcd60e51b8152600401610815906132df565b60088281548110610b8757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b60606000610ba683610e55565b905060008167ffffffffffffffff811115610bd157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c0a57816020015b610bf7612536565b815260200190600190039081610bef5790505b50905060005b82811015610c82576000610c248683610a88565b90506040518060400160405280828152602001610c40836114b1565b815250838381518110610c6357634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080610c7a90613440565b915050610c10565b509392505050565b610c92611ab4565b6001600160a01b0316610ca3610f97565b6001600160a01b031614610cc95760405162461bcd60e51b8152600401610815906130cc565b8051610cdc90600c906020840190612550565b5050565b600d8054610ced90613405565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1990613405565b8015610d665780601f10610d3b57610100808354040283529160200191610d66565b820191906000526020600020905b815481529060010190602001808311610d4957829003601f168201915b505050505081565b600b54600160a01b900460ff1690565b6000818152600260205260408120546001600160a01b0316806107ce5760405162461bcd60e51b815260040161081590612f6d565b610dbb611ab4565b6001600160a01b0316610dcc610f97565b6001600160a01b031614610df25760405162461bcd60e51b8152600401610815906130cc565b6014805460ff19169055565b600f5481565b610e0c611ab4565b6001600160a01b0316610e1d610f97565b6001600160a01b031614610e435760405162461bcd60e51b8152600401610815906130cc565b601055565b600c8054610ced90613405565b60006001600160a01b038216610e7d5760405162461bcd60e51b815260040161081590612f23565b506001600160a01b031660009081526003602052604090205490565b610ea1611ab4565b6001600160a01b0316610eb2610f97565b6001600160a01b031614610ed85760405162461bcd60e51b8152600401610815906130cc565b610b216000611d66565b610eea611ab4565b6001600160a01b0316610efb610f97565b6001600160a01b031614610f215760405162461bcd60e51b8152600401610815906130cc565b6040514790339082156108fc029083906000818181858888f19350505050158015610cdc573d6000803e3d6000fd5b610f58611ab4565b6001600160a01b0316610f69610f97565b6001600160a01b031614610f8f5760405162461bcd60e51b8152600401610815906130cc565b610b21611db8565b600b546001600160a01b031690565b6060600180546108e090613405565b610fbd610d6e565b15610fda5760405162461bcd60e51b815260040161081590612e33565b6002600a541415610ffd5760405162461bcd60e51b81526004016108159061332b565b6002600a55600061100c610a3e565b9050600061101983611e19565b90506000600c805461102a90613405565b80601f016020809104026020016040519081016040528092919081815260200182805461105690613405565b80156110a35780601f10611078576101008083540402835291602001916110a3565b820191906000526020600020905b81548152906001019060200180831161108657829003601f168201915b50505050509050600084116110ca5760405162461bcd60e51b815260040161081590612fb6565b60135484111561111b6040518060600160405280602281526020016134eb602291396110f7601354611e29565b60405180604001604052806006815260200165206e4547477360d01b815250611f44565b906111395760405162461bcd60e51b81526004016108159190612ac5565b50611142610f97565b6001600160a01b0316336001600160a01b03161461118e57600a8461116633610e55565b6111709190613377565b111561118e5760405162461bcd60e51b8152600401610815906131da565b60115461119b8585613377565b11156111b95760405162461bcd60e51b81526004016108159061302d565b6111c1610f97565b6001600160a01b0316336001600160a01b031614611215573360009081526017602052604090205460ff16151560011461121557813410156112155760405162461bcd60e51b815260040161081590612e5d565b60005b8481101561127757600061122c6015611f73565b905060006112428461123d84611e29565b611f77565b905061124e3383611fa3565b6112588282611fbd565b6112626015611fdc565b5050808061126f90613440565b915050611218565b50506001600a55505050565b61128b611ab4565b6001600160a01b0316826001600160a01b031614156112bc5760405162461bcd60e51b815260040161081590612d42565b80600560006112c9611ab4565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561130d611ab4565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113459190612aba565b60405180910390a35050565b611359611ab4565b6001600160a01b031661136a610f97565b6001600160a01b0316146113905760405162461bcd60e51b8152600401610815906130cc565b6001600160a01b03166000908152601760205260409020805460ff19169055565b6113b9611ab4565b6001600160a01b03166113ca610f97565b6001600160a01b0316146113f05760405162461bcd60e51b8152600401610815906130cc565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b60135481565b611422611ab4565b6001600160a01b0316611433610f97565b6001600160a01b0316146114595760405162461bcd60e51b8152600401610815906130cc565b8051610cdc90600d906020840190612550565b61147d611477611ab4565b83611b43565b6114995760405162461bcd60e51b81526004016108159061328e565b6114a584848484611fe5565b50505050565b60115481565b60606114bc82611ab8565b6114d85760405162461bcd60e51b81526004016108159061314a565b600082815260166020526040812080546114f190613405565b80601f016020809104026020016040519081016040528092919081815260200182805461151d90613405565b801561156a5780601f1061153f5761010080835404028352916020019161156a565b820191906000526020600020905b81548152906001019060200180831161154d57829003601f168201915b5093979650505050505050565b61157f610d6e565b1561159c5760405162461bcd60e51b815260040161081590612e33565b6002600a5414156115bf5760405162461bcd60e51b81526004016108159061332b565b6002600a55600d805460009161165f916115d890613405565b80601f016020809104026020016040519081016040528092919081815260200182805461160490613405565b80156116515780601f1061162657610100808354040283529160200191611651565b820191906000526020600020905b81548152906001019060200180831161163457829003601f168201915b505050505061123d84611e29565b60145490915060ff1615156001146116895760405162461bcd60e51b815260040161081590612c6f565b6107d08211156116ab5760405162461bcd60e51b815260040161081590612c9c565b60006116b861053b611ab4565b116116d55760405162461bcd60e51b815260040161081590612d79565b6116de82610d7e565b6001600160a01b03166116ef611ab4565b6001600160a01b0316146117155760405162461bcd60e51b815260040161081590612dfc565b61171d610f97565b6001600160a01b0316336001600160a01b031614611773573360009081526017602052604090205460ff161515600114611773576010543410156117735760405162461bcd60e51b815260040161081590613225565b61178a33601254846117859190613377565b611fa3565b6117a16012548361179b9190613377565b82611fbd565b6117ab6015611fdc565b50506001600a55565b6117bc611ab4565b6001600160a01b03166117cd610f97565b6001600160a01b0316146117f35760405162461bcd60e51b8152600401610815906130cc565b601355565b60145460ff1681565b60176020526000908152604090205460ff1681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61184c611ab4565b6001600160a01b031661185d610f97565b6001600160a01b0316146118835760405162461bcd60e51b8152600401610815906130cc565b60115481101561189257600080fd5b601255565b61189f611ab4565b6001600160a01b03166118b0610f97565b6001600160a01b0316146118d65760405162461bcd60e51b8152600401610815906130cc565b6001600160a01b0381166118fc5760405162461bcd60e51b815260040161081590612ba3565b61190581611d66565b50565b611910611ab4565b6001600160a01b0316611921610f97565b6001600160a01b0316146119475760405162461bcd60e51b8152600401610815906130cc565b600f55565b611954611ab4565b6001600160a01b0316611965610f97565b6001600160a01b03161461198b5760405162461bcd60e51b8152600401610815906130cc565b6040516370a0823160e01b81526001600160a01b0382169063a9059cbb90339083906370a08231906119c19030906004016129df565b60206040518083038186803b1580156119d957600080fd5b505afa1580156119ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a11919061287b565b6040518363ffffffff1660e01b8152600401611a2e929190612a30565b602060405180830381600087803b158015611a4857600080fd5b505af1158015611a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdc91906127c9565b600e546001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b14806107ce57506107ce82612018565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b0a82610d7e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b4e82611ab8565b611b6a5760405162461bcd60e51b815260040161081590612db0565b6000611b7583610d7e565b9050806001600160a01b0316846001600160a01b03161480611bb05750836001600160a01b0316611ba584610963565b6001600160a01b0316145b80611bc05750611bc08185611816565b949350505050565b826001600160a01b0316611bdb82610d7e565b6001600160a01b031614611c015760405162461bcd60e51b815260040161081590613101565b6001600160a01b038216611c275760405162461bcd60e51b815260040161081590612cfe565b611c32838383612058565b611c3d600082611ad5565b6001600160a01b0383166000908152600360205260408120805460019290611c669084906133c2565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c94908490613377565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611cfd610d6e565b611d195760405162461bcd60e51b815260040161081590612ad8565b600b805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d4f611ab4565b604051611d5c91906129df565b60405180910390a1565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611dc0610d6e565b15611ddd5760405162461bcd60e51b815260040161081590612e33565b600b805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d4f611ab4565b600081600f546107ce91906133a3565b606081611e4e57506040805180820190915260018152600360fc1b60208201526107d1565b8160005b8115611e785780611e6281613440565b9150611e719050600a8361338f565b9150611e52565b60008167ffffffffffffffff811115611ea157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ecb576020820181803683370190505b5090505b8415611bc057611ee06001836133c2565b9150611eed600a8661345b565b611ef8906030613377565b60f81b818381518110611f1b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f3d600a8661338f565b9450611ecf565b6060838383604051602001611f5b939291906128bf565b60405160208183030381529060405290509392505050565b5490565b60608282604051602001611f8c929190612902565b604051602081830303815290604052905092915050565b610cdc828260405180602001604052806000815250612063565b60008281526016602090815260409091208251610a3992840190612550565b80546001019055565b611ff0848484611bc8565b611ffc84848484612096565b6114a55760405162461bcd60e51b815260040161081590612b51565b60006001600160e01b031982166380ac58cd60e01b148061204957506001600160e01b03198216635b5e139f60e01b145b806107ce57506107ce826121b1565b610a398383836121ca565b61206d8383612253565b61207a6000848484612096565b610a395760405162461bcd60e51b815260040161081590612b51565b60006120aa846001600160a01b0316612332565b156121a657836001600160a01b031663150b7a026120c6611ab4565b8786866040518563ffffffff1660e01b81526004016120e894939291906129f3565b602060405180830381600087803b15801561210257600080fd5b505af1925050508015612132575060408051601f3d908101601f1916820190925261212f91810190612801565b60015b61218c573d808015612160576040519150601f19603f3d011682016040523d82523d6000602084013e612165565b606091505b5080516121845760405162461bcd60e51b815260040161081590612b51565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bc0565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b6121d5838383610a39565b6001600160a01b0383166121f1576121ec81612338565b612214565b816001600160a01b0316836001600160a01b03161461221457612214838261237c565b6001600160a01b0382166122305761222b81612419565b610a39565b826001600160a01b0316826001600160a01b031614610a3957610a3982826124f2565b6001600160a01b0382166122795760405162461bcd60e51b815260040161081590612ff8565b61228281611ab8565b1561229f5760405162461bcd60e51b815260040161081590612be9565b6122ab60008383612058565b6001600160a01b03821660009081526003602052604081208054600192906122d4908490613377565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161238984610e55565b61239391906133c2565b6000838152600760205260409020549091508082146123e6576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061242b906001906133c2565b6000838152600960205260408120546008805493945090928490811061246157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061249057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806124d657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006124fd83610e55565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b604051806040016040528060008152602001606081525090565b82805461255c90613405565b90600052602060002090601f01602090048101928261257e57600085556125c4565b82601f1061259757805160ff19168380011785556125c4565b828001600101855582156125c4579182015b828111156125c45782518255916020019190600101906125a9565b506125d09291506125d4565b5090565b5b808211156125d057600081556001016125d5565b600067ffffffffffffffff808411156126045761260461349b565b604051601f8501601f1916810160200182811182821017156126285761262861349b565b60405284815291508183850186101561264057600080fd5b8484602083013760006020868301015250509392505050565b60006020828403121561266a578081fd5b8135612675816134b1565b9392505050565b6000806040838503121561268e578081fd5b8235612699816134b1565b915060208301356126a9816134b1565b809150509250929050565b6000806000606084860312156126c8578081fd5b83356126d3816134b1565b925060208401356126e3816134b1565b929592945050506040919091013590565b60008060008060808587031215612709578081fd5b8435612714816134b1565b93506020850135612724816134b1565b925060408501359150606085013567ffffffffffffffff811115612746578182fd5b8501601f81018713612756578182fd5b612765878235602084016125e9565b91505092959194509250565b60008060408385031215612783578182fd5b823561278e816134b1565b915060208301356126a9816134c6565b600080604083850312156127b0578182fd5b82356127bb816134b1565b946020939093013593505050565b6000602082840312156127da578081fd5b8151612675816134c6565b6000602082840312156127f6578081fd5b8135612675816134d4565b600060208284031215612812578081fd5b8151612675816134d4565b60006020828403121561282e578081fd5b813567ffffffffffffffff811115612844578182fd5b8201601f81018413612854578182fd5b611bc0848235602084016125e9565b600060208284031215612874578081fd5b5035919050565b60006020828403121561288c578081fd5b5051919050565b600081518084526128ab8160208601602086016133d9565b601f01601f19169290920160200192915050565b600084516128d18184602089016133d9565b8451908301906128e58183602089016133d9565b84519101906128f88183602088016133d9565b0195945050505050565b600083516129148184602088016133d9565b8351908301906129288183602088016133d9565b64173539b7b760d91b9101908152600501949350505050565b815460009081906002810460018083168061295d57607f831692505b602080841082141561297d57634e487b7160e01b87526022600452602487fd5b81801561299157600181146129a2576129ce565b60ff198616895284890196506129ce565b6129ab8a61336b565b885b868110156129c65781548b8201529085019083016129ad565b505084890196505b509498975050505050505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a2690830184612893565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b60208082528251828201819052600091906040908185019080840286018301878501865b83811015612aac57888303603f19018552815180518452870151878401879052612a9987850182612893565b9588019593505090860190600101612a6d565b509098975050505050505050565b901515815260200190565b6000602082526126756020830184612893565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252602f908201527f67656e5374617274206d75737420626520686967686572207468616e2074686560408201526e2063757272656e7420737570706c7960881b606082015260800190565b6020808252601390820152724861746368696e67206e6f742061637469766560681b604082015260600190565b6020808252601190820152706e454747206f7574206f662072616e676560781b604082015260600190565b6020808252601c908201527f52656d656d62657220746f207365742074686520686174636855524900000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f6e454747206e656564656420746f2062652061626c6520746f20686174636800604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526017908201527f596f7520646f6e2774206f776e2074686973206e454747000000000000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526043908201527f596f7520686176656e27742073656e7420656e6f756768204d4154494320696e60408201527f20746865207472616e73616374696f6e20746f206d696e7420796f7572206e4560608201526247477360e81b608082015260a00190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526022908201527f4d696e7420616d6f756e74206d7573742062652067726561746572207468616e604082015261020360f41b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526033908201527f596f7527726520747279696e6720746f206d696e74206d6f7265206e45474773604082015272207468616e2077652068617665206c6566742160681b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252602b908201527f596f752063616e206f6e6c79206d696e7420757020746f203130206e4547477360408201526a081c195c881dd85b1b195d60aa1b606082015260800190565b60208082526043908201527f596f7520686176656e27742073656e7420656e6f756768204d4154494320696e60408201527f20746865207472616e73616374696f6e20746f20686174636820796f7572206e60608201526245474760e81b608082015260a00190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b60009081526020902090565b6000821982111561338a5761338a61346f565b500190565b60008261339e5761339e613485565b500490565b60008160001904831182151516156133bd576133bd61346f565b500290565b6000828210156133d4576133d461346f565b500390565b60005b838110156133f45781810151838201526020016133dc565b838111156114a55750506000910152565b60028104600182168061341957607f821691505b6020821081141561343a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156134545761345461346f565b5060010190565b60008261346a5761346a613485565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461190557600080fd5b801515811461190557600080fd5b6001600160e01b03198116811461190557600080fdfe596f752063616e2063757272656e746c79206f6e6c79206d696e7420757020746f20a26469706673582212209827fd1eb7d986cc53994cedfbc237d18f784677486b5b98b652ac1c38e92df364736f6c634300080000330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6e616e696d616c732e6d7970696e6174612e636c6f75642f697066732f516d58346675426e3667455071597375576b58664c594d5476655650544d5133776b503268536a51554e4367424e2f000000000000000000000000

Deployed Bytecode

0x6080604052600436106102885760003560e01c8063715018a61161015a578063c285e107116100c1578063e985e9c51161007a578063e985e9c51461070e578063eeb2f3c61461072e578063f2fde38b1461074e578063f4a0a5281461076e578063f4f3b2001461078e578063f6b4dfb4146107ae57610288565b8063c285e10714610671578063c87b56dd14610686578063c8c18842146106a6578063cefcc858146106b9578063d20ae6ed146106d9578063e57f3e1e146106ee57610288565b8063a22cb46511610113578063a22cb465146105bc578063a26b4627146105dc578063a912adb2146105fc578063ae9aea6d1461061c578063b2801de414610631578063b88d4fde1461065157610288565b8063715018a614610540578063810074c6146105555780638456cb591461056a5780638da5cb5b1461057f57806395d89b4114610594578063a0712d68146105a957610288565b806342842e0e116101fe5780636352211e116101b75780636352211e146104a15780636633b12d146104c15780636817c76c146104d657806369074dfa146104eb5780636c0360eb1461050b57806370a082311461052057610288565b806342842e0e146103ea5780634f6ccce71461040a578063519dc8d21461042a57806355f804b31461045757806356982e30146104775780635c975abb1461048c57610288565b806318160ddd1161025057806318160ddd1461034957806318ecf3651461036b5780631aa2948a1461038057806323b872dd146103955780632f745c59146103b55780633f4ba83a146103d557610288565b806301ffc9a71461028d578063055f6341146102c357806306fdde03146102da578063081812fc146102fc578063095ea7b314610329575b600080fd5b34801561029957600080fd5b506102ad6102a83660046127e5565b6107c3565b6040516102ba9190612aba565b60405180910390f35b3480156102cf57600080fd5b506102d86107d6565b005b3480156102e657600080fd5b506102ef6108d1565b6040516102ba9190612ac5565b34801561030857600080fd5b5061031c610317366004612863565b610963565b6040516102ba91906129df565b34801561033557600080fd5b506102d861034436600461279e565b6109a6565b34801561035557600080fd5b5061035e610a3e565b6040516102ba9190613362565b34801561037757600080fd5b5061035e610a44565b34801561038c57600080fd5b5061035e610a4a565b3480156103a157600080fd5b506102d86103b03660046126b4565b610a50565b3480156103c157600080fd5b5061035e6103d036600461279e565b610a88565b3480156103e157600080fd5b506102d8610ada565b3480156103f657600080fd5b506102d86104053660046126b4565b610b23565b34801561041657600080fd5b5061035e610425366004612863565b610b3e565b34801561043657600080fd5b5061044a610445366004612659565b610b99565b6040516102ba9190612a49565b34801561046357600080fd5b506102d861047236600461281d565b610c8a565b34801561048357600080fd5b506102ef610ce0565b34801561049857600080fd5b506102ad610d6e565b3480156104ad57600080fd5b5061031c6104bc366004612863565b610d7e565b3480156104cd57600080fd5b506102d8610db3565b3480156104e257600080fd5b5061035e610dfe565b3480156104f757600080fd5b506102d8610506366004612863565b610e04565b34801561051757600080fd5b506102ef610e48565b34801561052c57600080fd5b5061035e61053b366004612659565b610e55565b34801561054c57600080fd5b506102d8610e99565b34801561056157600080fd5b506102d8610ee2565b34801561057657600080fd5b506102d8610f50565b34801561058b57600080fd5b5061031c610f97565b3480156105a057600080fd5b506102ef610fa6565b6102d86105b7366004612863565b610fb5565b3480156105c857600080fd5b506102d86105d7366004612771565b611283565b3480156105e857600080fd5b506102d86105f7366004612659565b611351565b34801561060857600080fd5b506102d8610617366004612659565b6113b1565b34801561062857600080fd5b5061035e611414565b34801561063d57600080fd5b506102d861064c36600461281d565b61141a565b34801561065d57600080fd5b506102d861066c3660046126f4565b61146c565b34801561067d57600080fd5b5061035e6114ab565b34801561069257600080fd5b506102ef6106a1366004612863565b6114b1565b6102d86106b4366004612863565b611577565b3480156106c557600080fd5b506102d86106d4366004612863565b6117b4565b3480156106e557600080fd5b506102ad6117f8565b3480156106fa57600080fd5b506102ad610709366004612659565b611801565b34801561071a57600080fd5b506102ad61072936600461267c565b611816565b34801561073a57600080fd5b506102d8610749366004612863565b611844565b34801561075a57600080fd5b506102d8610769366004612659565b611897565b34801561077a57600080fd5b506102d8610789366004612863565b611908565b34801561079a57600080fd5b506102d86107a9366004612659565b61194c565b3480156107ba57600080fd5b5061031c611a80565b60006107ce82611a8f565b90505b919050565b6107de611ab4565b6001600160a01b03166107ef610f97565b6001600160a01b03161461081e5760405162461bcd60e51b8152600401610815906130cc565b60405180910390fd5b610826610a3e565b6012541015801561083b57506107d060125410155b6108575760405162461bcd60e51b815260040161081590612c20565b604051602001610866906129dc565b60405160208183030381529060405280519060200120600d60405160200161088e9190612941565b6040516020818303038152906040528051906020012014156108c25760405162461bcd60e51b815260040161081590612cc7565b6014805460ff19166001179055565b6060600080546108e090613405565b80601f016020809104026020016040519081016040528092919081815260200182805461090c90613405565b80156109595780601f1061092e57610100808354040283529160200191610959565b820191906000526020600020905b81548152906001019060200180831161093c57829003601f168201915b5050505050905090565b600061096e82611ab8565b61098a5760405162461bcd60e51b815260040161081590613080565b506000908152600460205260409020546001600160a01b031690565b60006109b182610d7e565b9050806001600160a01b0316836001600160a01b031614156109e55760405162461bcd60e51b815260040161081590613199565b806001600160a01b03166109f7611ab4565b6001600160a01b03161480610a135750610a1381610729611ab4565b610a2f5760405162461bcd60e51b815260040161081590612ec6565b610a398383611ad5565b505050565b60085490565b60105481565b60125481565b610a61610a5b611ab4565b82611b43565b610a7d5760405162461bcd60e51b81526004016108159061328e565b610a39838383611bc8565b6000610a9383610e55565b8210610ab15760405162461bcd60e51b815260040161081590612b06565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610ae2611ab4565b6001600160a01b0316610af3610f97565b6001600160a01b031614610b195760405162461bcd60e51b8152600401610815906130cc565b610b21611cf5565b565b610a398383836040518060200160405280600081525061146c565b6000610b48610a3e565b8210610b665760405162461bcd60e51b8152600401610815906132df565b60088281548110610b8757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b60606000610ba683610e55565b905060008167ffffffffffffffff811115610bd157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c0a57816020015b610bf7612536565b815260200190600190039081610bef5790505b50905060005b82811015610c82576000610c248683610a88565b90506040518060400160405280828152602001610c40836114b1565b815250838381518110610c6357634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080610c7a90613440565b915050610c10565b509392505050565b610c92611ab4565b6001600160a01b0316610ca3610f97565b6001600160a01b031614610cc95760405162461bcd60e51b8152600401610815906130cc565b8051610cdc90600c906020840190612550565b5050565b600d8054610ced90613405565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1990613405565b8015610d665780601f10610d3b57610100808354040283529160200191610d66565b820191906000526020600020905b815481529060010190602001808311610d4957829003601f168201915b505050505081565b600b54600160a01b900460ff1690565b6000818152600260205260408120546001600160a01b0316806107ce5760405162461bcd60e51b815260040161081590612f6d565b610dbb611ab4565b6001600160a01b0316610dcc610f97565b6001600160a01b031614610df25760405162461bcd60e51b8152600401610815906130cc565b6014805460ff19169055565b600f5481565b610e0c611ab4565b6001600160a01b0316610e1d610f97565b6001600160a01b031614610e435760405162461bcd60e51b8152600401610815906130cc565b601055565b600c8054610ced90613405565b60006001600160a01b038216610e7d5760405162461bcd60e51b815260040161081590612f23565b506001600160a01b031660009081526003602052604090205490565b610ea1611ab4565b6001600160a01b0316610eb2610f97565b6001600160a01b031614610ed85760405162461bcd60e51b8152600401610815906130cc565b610b216000611d66565b610eea611ab4565b6001600160a01b0316610efb610f97565b6001600160a01b031614610f215760405162461bcd60e51b8152600401610815906130cc565b6040514790339082156108fc029083906000818181858888f19350505050158015610cdc573d6000803e3d6000fd5b610f58611ab4565b6001600160a01b0316610f69610f97565b6001600160a01b031614610f8f5760405162461bcd60e51b8152600401610815906130cc565b610b21611db8565b600b546001600160a01b031690565b6060600180546108e090613405565b610fbd610d6e565b15610fda5760405162461bcd60e51b815260040161081590612e33565b6002600a541415610ffd5760405162461bcd60e51b81526004016108159061332b565b6002600a55600061100c610a3e565b9050600061101983611e19565b90506000600c805461102a90613405565b80601f016020809104026020016040519081016040528092919081815260200182805461105690613405565b80156110a35780601f10611078576101008083540402835291602001916110a3565b820191906000526020600020905b81548152906001019060200180831161108657829003601f168201915b50505050509050600084116110ca5760405162461bcd60e51b815260040161081590612fb6565b60135484111561111b6040518060600160405280602281526020016134eb602291396110f7601354611e29565b60405180604001604052806006815260200165206e4547477360d01b815250611f44565b906111395760405162461bcd60e51b81526004016108159190612ac5565b50611142610f97565b6001600160a01b0316336001600160a01b03161461118e57600a8461116633610e55565b6111709190613377565b111561118e5760405162461bcd60e51b8152600401610815906131da565b60115461119b8585613377565b11156111b95760405162461bcd60e51b81526004016108159061302d565b6111c1610f97565b6001600160a01b0316336001600160a01b031614611215573360009081526017602052604090205460ff16151560011461121557813410156112155760405162461bcd60e51b815260040161081590612e5d565b60005b8481101561127757600061122c6015611f73565b905060006112428461123d84611e29565b611f77565b905061124e3383611fa3565b6112588282611fbd565b6112626015611fdc565b5050808061126f90613440565b915050611218565b50506001600a55505050565b61128b611ab4565b6001600160a01b0316826001600160a01b031614156112bc5760405162461bcd60e51b815260040161081590612d42565b80600560006112c9611ab4565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561130d611ab4565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113459190612aba565b60405180910390a35050565b611359611ab4565b6001600160a01b031661136a610f97565b6001600160a01b0316146113905760405162461bcd60e51b8152600401610815906130cc565b6001600160a01b03166000908152601760205260409020805460ff19169055565b6113b9611ab4565b6001600160a01b03166113ca610f97565b6001600160a01b0316146113f05760405162461bcd60e51b8152600401610815906130cc565b6001600160a01b03166000908152601760205260409020805460ff19166001179055565b60135481565b611422611ab4565b6001600160a01b0316611433610f97565b6001600160a01b0316146114595760405162461bcd60e51b8152600401610815906130cc565b8051610cdc90600d906020840190612550565b61147d611477611ab4565b83611b43565b6114995760405162461bcd60e51b81526004016108159061328e565b6114a584848484611fe5565b50505050565b60115481565b60606114bc82611ab8565b6114d85760405162461bcd60e51b81526004016108159061314a565b600082815260166020526040812080546114f190613405565b80601f016020809104026020016040519081016040528092919081815260200182805461151d90613405565b801561156a5780601f1061153f5761010080835404028352916020019161156a565b820191906000526020600020905b81548152906001019060200180831161154d57829003601f168201915b5093979650505050505050565b61157f610d6e565b1561159c5760405162461bcd60e51b815260040161081590612e33565b6002600a5414156115bf5760405162461bcd60e51b81526004016108159061332b565b6002600a55600d805460009161165f916115d890613405565b80601f016020809104026020016040519081016040528092919081815260200182805461160490613405565b80156116515780601f1061162657610100808354040283529160200191611651565b820191906000526020600020905b81548152906001019060200180831161163457829003601f168201915b505050505061123d84611e29565b60145490915060ff1615156001146116895760405162461bcd60e51b815260040161081590612c6f565b6107d08211156116ab5760405162461bcd60e51b815260040161081590612c9c565b60006116b861053b611ab4565b116116d55760405162461bcd60e51b815260040161081590612d79565b6116de82610d7e565b6001600160a01b03166116ef611ab4565b6001600160a01b0316146117155760405162461bcd60e51b815260040161081590612dfc565b61171d610f97565b6001600160a01b0316336001600160a01b031614611773573360009081526017602052604090205460ff161515600114611773576010543410156117735760405162461bcd60e51b815260040161081590613225565b61178a33601254846117859190613377565b611fa3565b6117a16012548361179b9190613377565b82611fbd565b6117ab6015611fdc565b50506001600a55565b6117bc611ab4565b6001600160a01b03166117cd610f97565b6001600160a01b0316146117f35760405162461bcd60e51b8152600401610815906130cc565b601355565b60145460ff1681565b60176020526000908152604090205460ff1681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61184c611ab4565b6001600160a01b031661185d610f97565b6001600160a01b0316146118835760405162461bcd60e51b8152600401610815906130cc565b60115481101561189257600080fd5b601255565b61189f611ab4565b6001600160a01b03166118b0610f97565b6001600160a01b0316146118d65760405162461bcd60e51b8152600401610815906130cc565b6001600160a01b0381166118fc5760405162461bcd60e51b815260040161081590612ba3565b61190581611d66565b50565b611910611ab4565b6001600160a01b0316611921610f97565b6001600160a01b0316146119475760405162461bcd60e51b8152600401610815906130cc565b600f55565b611954611ab4565b6001600160a01b0316611965610f97565b6001600160a01b03161461198b5760405162461bcd60e51b8152600401610815906130cc565b6040516370a0823160e01b81526001600160a01b0382169063a9059cbb90339083906370a08231906119c19030906004016129df565b60206040518083038186803b1580156119d957600080fd5b505afa1580156119ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a11919061287b565b6040518363ffffffff1660e01b8152600401611a2e929190612a30565b602060405180830381600087803b158015611a4857600080fd5b505af1158015611a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdc91906127c9565b600e546001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b14806107ce57506107ce82612018565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b0a82610d7e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b4e82611ab8565b611b6a5760405162461bcd60e51b815260040161081590612db0565b6000611b7583610d7e565b9050806001600160a01b0316846001600160a01b03161480611bb05750836001600160a01b0316611ba584610963565b6001600160a01b0316145b80611bc05750611bc08185611816565b949350505050565b826001600160a01b0316611bdb82610d7e565b6001600160a01b031614611c015760405162461bcd60e51b815260040161081590613101565b6001600160a01b038216611c275760405162461bcd60e51b815260040161081590612cfe565b611c32838383612058565b611c3d600082611ad5565b6001600160a01b0383166000908152600360205260408120805460019290611c669084906133c2565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c94908490613377565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611cfd610d6e565b611d195760405162461bcd60e51b815260040161081590612ad8565b600b805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d4f611ab4565b604051611d5c91906129df565b60405180910390a1565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611dc0610d6e565b15611ddd5760405162461bcd60e51b815260040161081590612e33565b600b805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d4f611ab4565b600081600f546107ce91906133a3565b606081611e4e57506040805180820190915260018152600360fc1b60208201526107d1565b8160005b8115611e785780611e6281613440565b9150611e719050600a8361338f565b9150611e52565b60008167ffffffffffffffff811115611ea157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ecb576020820181803683370190505b5090505b8415611bc057611ee06001836133c2565b9150611eed600a8661345b565b611ef8906030613377565b60f81b818381518110611f1b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f3d600a8661338f565b9450611ecf565b6060838383604051602001611f5b939291906128bf565b60405160208183030381529060405290509392505050565b5490565b60608282604051602001611f8c929190612902565b604051602081830303815290604052905092915050565b610cdc828260405180602001604052806000815250612063565b60008281526016602090815260409091208251610a3992840190612550565b80546001019055565b611ff0848484611bc8565b611ffc84848484612096565b6114a55760405162461bcd60e51b815260040161081590612b51565b60006001600160e01b031982166380ac58cd60e01b148061204957506001600160e01b03198216635b5e139f60e01b145b806107ce57506107ce826121b1565b610a398383836121ca565b61206d8383612253565b61207a6000848484612096565b610a395760405162461bcd60e51b815260040161081590612b51565b60006120aa846001600160a01b0316612332565b156121a657836001600160a01b031663150b7a026120c6611ab4565b8786866040518563ffffffff1660e01b81526004016120e894939291906129f3565b602060405180830381600087803b15801561210257600080fd5b505af1925050508015612132575060408051601f3d908101601f1916820190925261212f91810190612801565b60015b61218c573d808015612160576040519150601f19603f3d011682016040523d82523d6000602084013e612165565b606091505b5080516121845760405162461bcd60e51b815260040161081590612b51565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bc0565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b6121d5838383610a39565b6001600160a01b0383166121f1576121ec81612338565b612214565b816001600160a01b0316836001600160a01b03161461221457612214838261237c565b6001600160a01b0382166122305761222b81612419565b610a39565b826001600160a01b0316826001600160a01b031614610a3957610a3982826124f2565b6001600160a01b0382166122795760405162461bcd60e51b815260040161081590612ff8565b61228281611ab8565b1561229f5760405162461bcd60e51b815260040161081590612be9565b6122ab60008383612058565b6001600160a01b03821660009081526003602052604081208054600192906122d4908490613377565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161238984610e55565b61239391906133c2565b6000838152600760205260409020549091508082146123e6576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061242b906001906133c2565b6000838152600960205260408120546008805493945090928490811061246157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061249057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806124d657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006124fd83610e55565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b604051806040016040528060008152602001606081525090565b82805461255c90613405565b90600052602060002090601f01602090048101928261257e57600085556125c4565b82601f1061259757805160ff19168380011785556125c4565b828001600101855582156125c4579182015b828111156125c45782518255916020019190600101906125a9565b506125d09291506125d4565b5090565b5b808211156125d057600081556001016125d5565b600067ffffffffffffffff808411156126045761260461349b565b604051601f8501601f1916810160200182811182821017156126285761262861349b565b60405284815291508183850186101561264057600080fd5b8484602083013760006020868301015250509392505050565b60006020828403121561266a578081fd5b8135612675816134b1565b9392505050565b6000806040838503121561268e578081fd5b8235612699816134b1565b915060208301356126a9816134b1565b809150509250929050565b6000806000606084860312156126c8578081fd5b83356126d3816134b1565b925060208401356126e3816134b1565b929592945050506040919091013590565b60008060008060808587031215612709578081fd5b8435612714816134b1565b93506020850135612724816134b1565b925060408501359150606085013567ffffffffffffffff811115612746578182fd5b8501601f81018713612756578182fd5b612765878235602084016125e9565b91505092959194509250565b60008060408385031215612783578182fd5b823561278e816134b1565b915060208301356126a9816134c6565b600080604083850312156127b0578182fd5b82356127bb816134b1565b946020939093013593505050565b6000602082840312156127da578081fd5b8151612675816134c6565b6000602082840312156127f6578081fd5b8135612675816134d4565b600060208284031215612812578081fd5b8151612675816134d4565b60006020828403121561282e578081fd5b813567ffffffffffffffff811115612844578182fd5b8201601f81018413612854578182fd5b611bc0848235602084016125e9565b600060208284031215612874578081fd5b5035919050565b60006020828403121561288c578081fd5b5051919050565b600081518084526128ab8160208601602086016133d9565b601f01601f19169290920160200192915050565b600084516128d18184602089016133d9565b8451908301906128e58183602089016133d9565b84519101906128f88183602088016133d9565b0195945050505050565b600083516129148184602088016133d9565b8351908301906129288183602088016133d9565b64173539b7b760d91b9101908152600501949350505050565b815460009081906002810460018083168061295d57607f831692505b602080841082141561297d57634e487b7160e01b87526022600452602487fd5b81801561299157600181146129a2576129ce565b60ff198616895284890196506129ce565b6129ab8a61336b565b885b868110156129c65781548b8201529085019083016129ad565b505084890196505b509498975050505050505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a2690830184612893565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b60208082528251828201819052600091906040908185019080840286018301878501865b83811015612aac57888303603f19018552815180518452870151878401879052612a9987850182612893565b9588019593505090860190600101612a6d565b509098975050505050505050565b901515815260200190565b6000602082526126756020830184612893565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252602f908201527f67656e5374617274206d75737420626520686967686572207468616e2074686560408201526e2063757272656e7420737570706c7960881b606082015260800190565b6020808252601390820152724861746368696e67206e6f742061637469766560681b604082015260600190565b6020808252601190820152706e454747206f7574206f662072616e676560781b604082015260600190565b6020808252601c908201527f52656d656d62657220746f207365742074686520686174636855524900000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f6e454747206e656564656420746f2062652061626c6520746f20686174636800604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526017908201527f596f7520646f6e2774206f776e2074686973206e454747000000000000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526043908201527f596f7520686176656e27742073656e7420656e6f756768204d4154494320696e60408201527f20746865207472616e73616374696f6e20746f206d696e7420796f7572206e4560608201526247477360e81b608082015260a00190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526022908201527f4d696e7420616d6f756e74206d7573742062652067726561746572207468616e604082015261020360f41b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526033908201527f596f7527726520747279696e6720746f206d696e74206d6f7265206e45474773604082015272207468616e2077652068617665206c6566742160681b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252602b908201527f596f752063616e206f6e6c79206d696e7420757020746f203130206e4547477360408201526a081c195c881dd85b1b195d60aa1b606082015260800190565b60208082526043908201527f596f7520686176656e27742073656e7420656e6f756768204d4154494320696e60408201527f20746865207472616e73616374696f6e20746f20686174636820796f7572206e60608201526245474760e81b608082015260a00190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b60009081526020902090565b6000821982111561338a5761338a61346f565b500190565b60008261339e5761339e613485565b500490565b60008160001904831182151516156133bd576133bd61346f565b500290565b6000828210156133d4576133d461346f565b500390565b60005b838110156133f45781810151838201526020016133dc565b838111156114a55750506000910152565b60028104600182168061341957607f821691505b6020821081141561343a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156134545761345461346f565b5060010190565b60008261346a5761346a613485565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461190557600080fd5b801515811461190557600080fd5b6001600160e01b03198116811461190557600080fdfe596f752063616e2063757272656e746c79206f6e6c79206d696e7420757020746f20a26469706673582212209827fd1eb7d986cc53994cedfbc237d18f784677486b5b98b652ac1c38e92df364736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6e616e696d616c732e6d7970696e6174612e636c6f75642f697066732f516d58346675426e3667455071597375576b58664c594d5476655650544d5133776b503268536a51554e4367424e2f000000000000000000000000

-----Decoded View---------------
Arg [0] : _initBaseURI (string): https://nanimals.mypinata.cloud/ipfs/QmX4fuBn6gEPqYsuWkXfLYMTveVPTMQ3wkP2hSjQUNCgBN/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [2] : 68747470733a2f2f6e616e696d616c732e6d7970696e6174612e636c6f75642f
Arg [3] : 697066732f516d58346675426e3667455071597375576b58664c594d54766556
Arg [4] : 50544d5133776b503268536a51554e4367424e2f000000000000000000000000


Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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