Contract 0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c58 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8fca0e59c5c49252758e496c757a1ee976276db80bfb6af065f88135c5bf3df3Set Approval For...230004002022-11-29 17:22:523 days 12 hrs ago0xbde304a3fe8577c3e3ad3f0bffd2a07d3b571d95 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0xdc1395b338894100b658b833e0df76a1d172e6eb05d7f73983da3c1d32f4c171Set Approval For...229601512022-11-28 18:35:544 days 11 hrs ago0x6e40cc074576f5bf489fe6ff3256c7ab922ffa74 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0x7094fafa23fa1152f7d2b2670f99a855528847754c01417d9832f5599a07279bSet Approval For...229110972022-11-27 14:36:095 days 15 hrs ago0x6e40cc074576f5bf489fe6ff3256c7ab922ffa74 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0x3267ac1956fbb9a3230635227fbeb15c02f929d59e216321ee6152665c6c5d9aSet Approval For...225980232022-11-20 3:07:3913 days 2 hrs ago0x1ddbccffb075f9242720554391d6cab8084ad2fc IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0xa77c8c89481b2cbc003c7de6e9ec2cc49f4b8407a802971a067d13ec29169f9aSet Approval For...225387292022-11-18 16:29:3114 days 13 hrs ago0x30f5ea99c6fe99a4e93b0c4a066742bb31111f79 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0x70ec3736f2c5fd4457bee88a331a4129371c20e9753c2e617b60cbeaaf6a2330Set Approval For...225381562022-11-18 16:10:0714 days 13 hrs ago0xa91378acf3870f7aef0f079f930bedd0a702e031 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0x536cb8ab7dada95b0ef00c46d2cb5ba23ee03de50fef059e01ad1dda58ca0036Set Approval For...225378792022-11-18 16:00:3914 days 13 hrs ago0x97249d330a19377e609f23d76f4b042bb639de90 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0xce18aed31c41104895068d9f6d82222482f9be6cbe27e59bea58f82eb64e20d6Set Approval For...225372752022-11-18 15:39:5814 days 14 hrs ago0x09552182f27b44a5b2e057c7b3dcef1da2d60451 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0x086dae112317ce92f1ad5c166f3b9f4d261260cd18657632cf24332d3c7fcf9fSet Approval For...224892502022-11-17 11:43:2415 days 18 hrs ago0xfe941d632381460023aef4455aa456e1b96e45bb IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001248602565 26.701222472
0x22924a233877b2a55189b6300689a747c05603245ce62042657c3ce791dc8e95Set Approval For...223807832022-11-14 20:42:2018 days 9 hrs ago0x6ea39ae73291027ec053a7856e681d26680a8679 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.00128081492 27.39008
0xb2f77ac7d0c5b684685dd9d4255ca651e72aae8acb02b7c52ffae4ba68f3ca12Set Approval For...223653032022-11-14 11:55:2818 days 17 hrs ago0x0cb2a2dcd489f3fdf4e1a9156dce2573cdcd32a5 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0xf9b07b995aa2b795954e9a92e8759c5be62550a6be8ae279527e3c564288e7b6Set Approval For...222891672022-11-12 16:20:1820 days 13 hrs ago0xc7443da5db07ca0b887b0f9cdea3467827f54fe1 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.00128595527.5
0x613b84bb39d87957ace0ddadbdee1c1d52881bec82f6635876ac8a23fd1671feSet Approval For...222100282022-11-10 19:14:5222 days 10 hrs ago0x45732a6ed033e0c8463199f4f9520504a22c2cae IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0x904dbf4516d93326f1e59d9455894e9d4f39bac11e4373025cacf460c4dd1e28Set Approval For...221566302022-11-09 13:45:3423 days 16 hrs ago0x95f102b672be06085d1b971083d9f3275dc518ec IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0x884f2379d7bc5c8f70e0b67388818f26f39a73d9f38c3bd14bf5b132f1147c48Set Approval For...220716712022-11-07 14:08:0825 days 15 hrs ago0x5e3d7a90df956b4c78ada81fd04e2686f52fef67 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001272545155 27.213232025
0x3f3001e2728728f8d103cf3b6486e81149783c852c41ca98e3de98e927744e59Set Approval For...220707282022-11-07 13:36:0025 days 16 hrs ago0xe6d212d20a3c9e90504d657607d6db758f27f7a0 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0xc8b26d5009882943297db85705df369e757e26981dffc83cc4272801ba250aafSet Approval For...219878952022-11-05 14:06:4127 days 15 hrs ago0xb45ef8aec53d763e7b18a01f1c43be2825bd3b36 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.00130933628
0x591bacda592acc530f00de22b7ef2cc068606657fd411f3b89d857ad8fd482acSet Approval For...219850002022-11-05 12:28:0627 days 17 hrs ago0x135bd891920e13ea0980fcb02e85222f7915d0ee IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0xa10fb1006d6fcd96573de38e981163f93476fe4ab84c615e2918663152df2b95Safe Transfer Fr...219702812022-11-05 4:04:0628 days 1 hr ago0x4f4d1c22b802fd650bcac69263507023f9169f75 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.00270076583 26.41
0xc6bb01eb3cb3df5fd525d8c896ab96fe09c05eb3703882022cbb718e1b4cb085Set Approval For...219630012022-11-04 23:56:0628 days 5 hrs ago0x289c158a9a7b9ac03b7717594c1575d5bff2ca5a IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.00126257427
0x2d13509230b1847a270b581817fdc11869a29fc4fe68d411db2257220775d2fbSwitch Sides219578892022-11-04 20:59:5528 days 8 hrs ago0x08565aaa6865e36aaefc016b5a9196e347f67301 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.00130496828
0xac5acf14dff1beef2dbe6749c05a1c3f355b22b46b9534db0a477d0f05414a9dSafe Transfer Fr...219517222022-11-04 17:29:4028 days 12 hrs ago0xca121cfc48f648e631a66feecc4dd74f53321a11 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.002727772775 27.425
0xf869dbc349c98c223dbe0811988de4fdc197cf94d2aa17a611f0d5a4b14ed2ebSet Approval For...219212132022-11-04 0:07:4129 days 5 hrs ago0xe0e68f833ed641cbc684cede6d8fb142eac91fae IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0x0882bfa5b562a471521e99629718493eb5ca8286e3b4eb9468b9f11bbb303279Set Approval For...219211272022-11-04 0:04:4929 days 5 hrs ago0x2ceec8ad179a445a17586e6c2e1e0add91fc3847 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.001239193 26.5
0xf88304dc59ff78d129f78eb0d56c6dadf1713d9a3ab00764e9bfe7eddfc8626dSwitch Sides219169252022-11-03 21:41:1929 days 8 hrs ago0x4e0f33c819d87466c39d3c4caa1d30dc64710159 IN  0x4a01b4dca082967c1f3ab7dd2d70e7ca7c730c580 AVAX0.000781591 26.5
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ilipikakeepers

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : ilipika.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract ilipikakeepers is ERC721, IERC2981, ERC721Enumerable, Pausable, Ownable, ReentrancyGuard {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdCounter;

    constructor(string memory customBaseURI_) ERC721("ilipika forest: The Keepers of Magic", "ifkom") {
        customBaseURI = customBaseURI_;
        //start token ID at 1
        _tokenIdCounter.increment();
    }

    /** Allowlist **/

    bool public _isAllowListOnly = true;

    mapping(address => bool) public _allowList;
    mapping(address => uint256) public _allowListAllocated;

    function setAllowListOnly(bool isAllowListOnlyActive) external onlyOwner {
        _isAllowListOnly = isAllowListOnlyActive;
    }

    function addToAllowList(
        address[] calldata addresses,
        uint256[] memory itemsAllocated
    ) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            _allowList[addresses[i]] = true;
            _allowListAllocated[addresses[i]] = itemsAllocated[i];
        }
    }

    function removeFromAllowList(address[] calldata addresses)
        external
        onlyOwner
    {
        for (uint256 i = 0; i < addresses.length; i++) {
            _allowList[addresses[i]] = false;
            _allowListAllocated[addresses[i]] = 0;
        }
    }

    /** MINTING **/

    uint256 public MAX_SUPPLY = 321;
    uint256 public MAX_MINT = 2;
    uint256 public MAX_IN_WALLET = 2;
    mapping(address => uint256) public addressMinted;


    function mint(uint256 amount) public payable nonReentrant whenNotPaused {
        require(totalSupply() + amount <= MAX_SUPPLY, "Amount exceeds supply.");

        if (msg.sender != owner()) {
            if (_isAllowListOnly) {
                require(
                    _allowList[msg.sender],
                    "You are not on the allowlist, sorry."
                );
                require(
                    _allowListAllocated[msg.sender] > 0,
                    "You have exceeded your allowlist minting allocation."
                );
                _allowListAllocated[msg.sender] -= amount;
            }
            require(amount <= MAX_MINT, "Whoa there! You can't mint that many!");
            require(addressMinted[msg.sender] + amount <= MAX_IN_WALLET, "Whoa there! You can't hold that many!");
            
            addressMinted[msg.sender] += amount;
        }

        for(uint256 i; i < amount; i++){
          _mint(msg.sender, _tokenIdCounter.current());
          _tokenIdCounter.increment();
        }
    }

    /** ACTIVATION **/

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    /** MECHANICS **/
    
    mapping(uint256 => bool) public lightMap;

    function switchSides(uint256 tokenId, bool lightChoice ) public {
      require(msg.sender == ownerOf(tokenId), "You do not own this tokenID");
      lightMap[tokenId] = lightChoice;
    }

    function viewSide(uint256 tokenId) public view returns(bool){
      require(
          _exists(tokenId),
          "This token ID does not exist"
      );
      return lightMap[tokenId];
    }

    /** URI HANDLING **/

    string private customBaseURI;
    string public baseExtension = ".json";

    function setBaseURI(string memory customBaseURI_) external onlyOwner {
        customBaseURI = customBaseURI_;
    }

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

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

        return
            bytes(customBaseURI).length > 0
                ? string(
                    abi.encodePacked(
                        customBaseURI,
                        Strings.toString(tokenId),
                        baseExtension
                    )
                )
                : "";
    }

    /** ROYALTIES **/

    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        return (address(this), (salePrice * 690) / 10000);
    }

    function withdraw() public onlyOwner {
        require(address(this).balance > 0, "Balance is zero");
        payable(owner()).transfer(address(this).balance);
    }

    /** OVERRIDES **/

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

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

File 2 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

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 17 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

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 Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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 5 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 17 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

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 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 8 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 9 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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 making 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 10 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 11 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 14 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 15 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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);

    /**
     * @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);
}

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"customBaseURI_","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":[],"name":"MAX_IN_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_allowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_allowListAllocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isAllowListOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"itemsAllocated","type":"uint256[]"}],"name":"addToAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lightMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"addresses","type":"address[]"}],"name":"removeFromAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"bool","name":"isAllowListOnlyActive","type":"bool"}],"name":"setAllowListOnly","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":"customBaseURI_","type":"string"}],"name":"setBaseURI","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"lightChoice","type":"bool"}],"name":"switchSides","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"tokenId","type":"uint256"}],"name":"viewSide","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600d60006101000a81548160ff021916908315150217905550610141601055600260115560026012556040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250601690805190602001906200007c92919062000292565b503480156200008a57600080fd5b506040516200516e3803806200516e8339818101604052810190620000b09190620004df565b6040518060600160405280602481526020016200514a602491396040518060400160405280600581526020017f69666b6f6d00000000000000000000000000000000000000000000000000000081525081600090805190602001906200011892919062000292565b5080600190805190602001906200013192919062000292565b5050506000600a60006101000a81548160ff0219169083151502179055506200016f62000163620001ae60201b60201c565b620001b660201b60201c565b6001600b8190555080601590805190602001906200018f92919062000292565b50620001a7600c6200027c60201b62001b3a1760201c565b5062000595565b600033905090565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001816000016000828254019250508190555050565b828054620002a0906200055f565b90600052602060002090601f016020900481019282620002c4576000855562000310565b82601f10620002df57805160ff191683800117855562000310565b8280016001018555821562000310579182015b828111156200030f578251825591602001919060010190620002f2565b5b5090506200031f919062000323565b5090565b5b808211156200033e57600081600090555060010162000324565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003ab8262000360565b810181811067ffffffffffffffff82111715620003cd57620003cc62000371565b5b80604052505050565b6000620003e262000342565b9050620003f08282620003a0565b919050565b600067ffffffffffffffff82111562000413576200041262000371565b5b6200041e8262000360565b9050602081019050919050565b60005b838110156200044b5780820151818401526020810190506200042e565b838111156200045b576000848401525b50505050565b6000620004786200047284620003f5565b620003d6565b9050828152602081018484840111156200049757620004966200035b565b5b620004a48482856200042b565b509392505050565b600082601f830112620004c457620004c362000356565b5b8151620004d684826020860162000461565b91505092915050565b600060208284031215620004f857620004f76200034c565b5b600082015167ffffffffffffffff81111562000519576200051862000351565b5b6200052784828501620004ac565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200057857607f821691505b602082108114156200058f576200058e62000530565b5b50919050565b614ba580620005a56000396000f3fe60806040526004361061023b5760003560e01c806370a082311161012e578063a51312c8116100ab578063cb7946191161006f578063cb79461914610875578063e985e9c5146108b2578063f0292a03146108ef578063f2fde38b1461091a578063fa30297e146109435761023b565b8063a51312c814610790578063b516b168146107b9578063b88d4fde146107e4578063c66828621461080d578063c87b56dd146108385761023b565b80638da5cb5b116100f25780638da5cb5b146106b857806395d89b41146106e35780639f0017911461070e578063a0712d681461074b578063a22cb465146107675761023b565b806370a08231146105fb578063715018a61461063857806375930bd01461064f5780638456cb59146106785780638cd370ed1461068f5761023b565b806332cb6b0c116101bc5780634f6ccce7116101805780634f6ccce7146104f057806355f804b31461052d5780635c975abb146105565780635ccba052146105815780636352211e146105be5761023b565b806332cb6b0c146104435780633ccfd60b1461046e5780633f4ba83a1461048557806342842e0e1461049c5780634e91cf1d146104c55761023b565b8063218f197e11610203578063218f197e1461033957806323b872dd1461036257806326e285421461038b5780632a55205a146103c85780632f745c59146104065761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e557806318160ddd1461030e575b600080fd5b34801561024c57600080fd5b506102676004803603810190610262919061303e565b610980565b6040516102749190613086565b60405180910390f35b34801561028957600080fd5b50610292610992565b60405161029f919061313a565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190613192565b610a24565b6040516102dc9190613200565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613247565b610a6a565b005b34801561031a57600080fd5b50610323610b82565b6040516103309190613296565b60405180910390f35b34801561034557600080fd5b50610360600480360381019061035b9190613454565b610b8f565b005b34801561036e57600080fd5b50610389600480360381019061038491906134d0565b610cc2565b005b34801561039757600080fd5b506103b260048036038101906103ad9190613192565b610d22565b6040516103bf9190613086565b60405180910390f35b3480156103d457600080fd5b506103ef60048036038101906103ea9190613523565b610d42565b6040516103fd929190613563565b60405180910390f35b34801561041257600080fd5b5061042d60048036038101906104289190613247565b610d6c565b60405161043a9190613296565b60405180910390f35b34801561044f57600080fd5b50610458610e11565b6040516104659190613296565b60405180910390f35b34801561047a57600080fd5b50610483610e17565b005b34801561049157600080fd5b5061049a610eb2565b005b3480156104a857600080fd5b506104c360048036038101906104be91906134d0565b610ec4565b005b3480156104d157600080fd5b506104da610ee4565b6040516104e79190613086565b60405180910390f35b3480156104fc57600080fd5b5061051760048036038101906105129190613192565b610ef7565b6040516105249190613296565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f9190613641565b610f68565b005b34801561056257600080fd5b5061056b610f8a565b6040516105789190613086565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a3919061368a565b610fa1565b6040516105b59190613086565b60405180910390f35b3480156105ca57600080fd5b506105e560048036038101906105e09190613192565b610fc1565b6040516105f29190613200565b60405180910390f35b34801561060757600080fd5b50610622600480360381019061061d919061368a565b611073565b60405161062f9190613296565b60405180910390f35b34801561064457600080fd5b5061064d61112b565b005b34801561065b57600080fd5b50610676600480360381019061067191906136e3565b61113f565b005b34801561068457600080fd5b5061068d6111e4565b005b34801561069b57600080fd5b506106b660048036038101906106b19190613723565b6111f6565b005b3480156106c457600080fd5b506106cd61121b565b6040516106da9190613200565b60405180910390f35b3480156106ef57600080fd5b506106f8611245565b604051610705919061313a565b60405180910390f35b34801561071a57600080fd5b5061073560048036038101906107309190613192565b6112d7565b6040516107429190613086565b60405180910390f35b61076560048036038101906107609190613192565b611349565b005b34801561077357600080fd5b5061078e60048036038101906107899190613750565b61171c565b005b34801561079c57600080fd5b506107b760048036038101906107b29190613790565b611732565b005b3480156107c557600080fd5b506107ce61184b565b6040516107db9190613296565b60405180910390f35b3480156107f057600080fd5b5061080b6004803603810190610806919061387e565b611851565b005b34801561081957600080fd5b506108226118b3565b60405161082f919061313a565b60405180910390f35b34801561084457600080fd5b5061085f600480360381019061085a9190613192565b611941565b60405161086c919061313a565b60405180910390f35b34801561088157600080fd5b5061089c6004803603810190610897919061368a565b6119ec565b6040516108a99190613296565b60405180910390f35b3480156108be57600080fd5b506108d960048036038101906108d49190613901565b611a04565b6040516108e69190613086565b60405180910390f35b3480156108fb57600080fd5b50610904611a98565b6040516109119190613296565b60405180910390f35b34801561092657600080fd5b50610941600480360381019061093c919061368a565b611a9e565b005b34801561094f57600080fd5b5061096a6004803603810190610965919061368a565b611b22565b6040516109779190613296565b60405180910390f35b600061098b82611b50565b9050919050565b6060600080546109a190613970565b80601f01602080910402602001604051908101604052809291908181526020018280546109cd90613970565b8015610a1a5780601f106109ef57610100808354040283529160200191610a1a565b820191906000526020600020905b8154815290600101906020018083116109fd57829003601f168201915b5050505050905090565b6000610a2f82611bca565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a7582610fc1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610add90613a14565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b05611c15565b73ffffffffffffffffffffffffffffffffffffffff161480610b345750610b3381610b2e611c15565b611a04565b5b610b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6a90613aa6565b60405180910390fd5b610b7d8383611c1d565b505050565b6000600880549050905090565b610b97611cd6565b60005b83839050811015610cbc576001600e6000868685818110610bbe57610bbd613ac6565b5b9050602002016020810190610bd3919061368a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550818181518110610c3757610c36613ac6565b5b6020026020010151600f6000868685818110610c5657610c55613ac6565b5b9050602002016020810190610c6b919061368a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080610cb490613b24565b915050610b9a565b50505050565b610cd3610ccd611c15565b82611d54565b610d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0990613bdf565b60405180910390fd5b610d1d838383611de9565b505050565b60146020528060005260406000206000915054906101000a900460ff1681565b600080306127106102b285610d579190613bff565b610d619190613c88565b915091509250929050565b6000610d7783611073565b8210610db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daf90613d2b565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60105481565b610e1f611cd6565b60004711610e62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5990613d97565b60405180910390fd5b610e6a61121b565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610eaf573d6000803e3d6000fd5b50565b610eba611cd6565b610ec2612050565b565b610edf83838360405180602001604052806000815250611851565b505050565b600d60009054906101000a900460ff1681565b6000610f01610b82565b8210610f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3990613e29565b60405180910390fd5b60088281548110610f5657610f55613ac6565b5b90600052602060002001549050919050565b610f70611cd6565b8060159080519060200190610f86929190612f2f565b5050565b6000600a60009054906101000a900460ff16905090565b600e6020528060005260406000206000915054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561106a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106190613e95565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110db90613f27565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611133611cd6565b61113d60006120b3565b565b61114882610fc1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ac90613f93565b60405180910390fd5b806014600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6111ec611cd6565b6111f4612179565b565b6111fe611cd6565b80600d60006101000a81548160ff02191690831515021790555050565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461125490613970565b80601f016020809104026020016040519081016040528092919081815260200182805461128090613970565b80156112cd5780601f106112a2576101008083540402835291602001916112cd565b820191906000526020600020905b8154815290600101906020018083116112b057829003601f168201915b5050505050905090565b60006112e2826121dc565b611321576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131890613fff565b60405180910390fd5b6014600083815260200190815260200160002060009054906101000a900460ff169050919050565b6002600b54141561138f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113869061406b565b60405180910390fd5b6002600b8190555061139f612248565b601054816113ab610b82565b6113b5919061408b565b11156113f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ed9061412d565b60405180910390fd5b6113fe61121b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116d557600d60009054906101000a900460ff16156115aa57600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166114d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c8906141bf565b60405180910390fd5b6000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611553576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154a90614251565b60405180910390fd5b80600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115a29190614271565b925050819055505b6011548111156115ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e690614317565b60405180910390fd5b60125481601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461163d919061408b565b111561167e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611675906143a9565b60405180910390fd5b80601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116cd919061408b565b925050819055505b60005b81811015611710576116f3336116ee600c612292565b6122a0565b6116fd600c611b3a565b808061170890613b24565b9150506116d8565b506001600b8190555050565b61172e611727611c15565b838361247a565b5050565b61173a611cd6565b60005b82829050811015611846576000600e600085858581811061176157611760613ac6565b5b9050602002016020810190611776919061368a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600f60008585858181106117e0576117df613ac6565b5b90506020020160208101906117f5919061368a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061183e90613b24565b91505061173d565b505050565b60125481565b61186261185c611c15565b83611d54565b6118a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189890613bdf565b60405180910390fd5b6118ad848484846125e7565b50505050565b601680546118c090613970565b80601f01602080910402602001604051908101604052809291908181526020018280546118ec90613970565b80156119395780601f1061190e57610100808354040283529160200191611939565b820191906000526020600020905b81548152906001019060200180831161191c57829003601f168201915b505050505081565b606061194c826121dc565b61198b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119829061443b565b60405180910390fd5b60006015805461199a90613970565b9050116119b657604051806020016040528060008152506119e5565b60156119c183612643565b60166040516020016119d59392919061452b565b6040516020818303038152906040525b9050919050565b600f6020528060005260406000206000915090505481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60115481565b611aa6611cd6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0d906145ce565b60405180910390fd5b611b1f816120b3565b50565b60136020528060005260406000206000915090505481565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bc35750611bc2826127a4565b5b9050919050565b611bd3816121dc565b611c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0990613e95565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c9083610fc1565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611cde611c15565b73ffffffffffffffffffffffffffffffffffffffff16611cfc61121b565b73ffffffffffffffffffffffffffffffffffffffff1614611d52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d499061463a565b60405180910390fd5b565b600080611d6083610fc1565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611da25750611da18185611a04565b5b80611de057508373ffffffffffffffffffffffffffffffffffffffff16611dc884610a24565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e0982610fc1565b73ffffffffffffffffffffffffffffffffffffffff1614611e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e56906146cc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec69061475e565b60405180910390fd5b611eda838383612886565b611ee5600082611c1d565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f359190614271565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8c919061408b565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461204b83838361289e565b505050565b6120586128a3565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61209c611c15565b6040516120a99190613200565b60405180910390a1565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612181612248565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121c5611c15565b6040516121d29190613200565b60405180910390a1565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612250610f8a565b15612290576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612287906147ca565b60405180910390fd5b565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230790614836565b60405180910390fd5b612319816121dc565b15612359576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612350906148a2565b60405180910390fd5b61236560008383612886565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123b5919061408b565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124766000838361289e565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156124e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e09061490e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125da9190613086565b60405180910390a3505050565b6125f2848484611de9565b6125fe848484846128ec565b61263d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612634906149a0565b60405180910390fd5b50505050565b6060600082141561268b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061279f565b600082905060005b600082146126bd5780806126a690613b24565b915050600a826126b69190613c88565b9150612693565b60008167ffffffffffffffff8111156126d9576126d8613316565b5b6040519080825280601f01601f19166020018201604052801561270b5781602001600182028036833780820191505090505b5090505b60008514612798576001826127249190614271565b9150600a8561273391906149c0565b603061273f919061408b565b60f81b81838151811061275557612754613ac6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127919190613c88565b945061270f565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061286f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061287f575061287e82612a83565b5b9050919050565b61288e612248565b612899838383612aed565b505050565b505050565b6128ab610f8a565b6128ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e190614a3d565b60405180910390fd5b565b600061290d8473ffffffffffffffffffffffffffffffffffffffff16612c01565b15612a76578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612936611c15565b8786866040518563ffffffff1660e01b81526004016129589493929190614ab2565b602060405180830381600087803b15801561297257600080fd5b505af19250505080156129a357506040513d601f19601f820116820180604052508101906129a09190614b13565b60015b612a26573d80600081146129d3576040519150601f19603f3d011682016040523d82523d6000602084013e6129d8565b606091505b50600081511415612a1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a15906149a0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612a7b565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612af8838383612c24565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b3b57612b3681612c29565b612b7a565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b7957612b788382612c72565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bbd57612bb881612ddf565b612bfc565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612bfb57612bfa8282612eb0565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612c7f84611073565b612c899190614271565b9050600060076000848152602001908152602001600020549050818114612d6e576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612df39190614271565b9050600060096000848152602001908152602001600020549050600060088381548110612e2357612e22613ac6565b5b906000526020600020015490508060088381548110612e4557612e44613ac6565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612e9457612e93614b40565b5b6001900381819060005260206000200160009055905550505050565b6000612ebb83611073565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054612f3b90613970565b90600052602060002090601f016020900481019282612f5d5760008555612fa4565b82601f10612f7657805160ff1916838001178555612fa4565b82800160010185558215612fa4579182015b82811115612fa3578251825591602001919060010190612f88565b5b509050612fb19190612fb5565b5090565b5b80821115612fce576000816000905550600101612fb6565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301b81612fe6565b811461302657600080fd5b50565b60008135905061303881613012565b92915050565b60006020828403121561305457613053612fdc565b5b600061306284828501613029565b91505092915050565b60008115159050919050565b6130808161306b565b82525050565b600060208201905061309b6000830184613077565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130db5780820151818401526020810190506130c0565b838111156130ea576000848401525b50505050565b6000601f19601f8301169050919050565b600061310c826130a1565b61311681856130ac565b93506131268185602086016130bd565b61312f816130f0565b840191505092915050565b600060208201905081810360008301526131548184613101565b905092915050565b6000819050919050565b61316f8161315c565b811461317a57600080fd5b50565b60008135905061318c81613166565b92915050565b6000602082840312156131a8576131a7612fdc565b5b60006131b68482850161317d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131ea826131bf565b9050919050565b6131fa816131df565b82525050565b600060208201905061321560008301846131f1565b92915050565b613224816131df565b811461322f57600080fd5b50565b6000813590506132418161321b565b92915050565b6000806040838503121561325e5761325d612fdc565b5b600061326c85828601613232565b925050602061327d8582860161317d565b9150509250929050565b6132908161315c565b82525050565b60006020820190506132ab6000830184613287565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126132d6576132d56132b1565b5b8235905067ffffffffffffffff8111156132f3576132f26132b6565b5b60208301915083602082028301111561330f5761330e6132bb565b5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61334e826130f0565b810181811067ffffffffffffffff8211171561336d5761336c613316565b5b80604052505050565b6000613380612fd2565b905061338c8282613345565b919050565b600067ffffffffffffffff8211156133ac576133ab613316565b5b602082029050602081019050919050565b60006133d06133cb84613391565b613376565b905080838252602082019050602084028301858111156133f3576133f26132bb565b5b835b8181101561341c5780613408888261317d565b8452602084019350506020810190506133f5565b5050509392505050565b600082601f83011261343b5761343a6132b1565b5b813561344b8482602086016133bd565b91505092915050565b60008060006040848603121561346d5761346c612fdc565b5b600084013567ffffffffffffffff81111561348b5761348a612fe1565b5b613497868287016132c0565b9350935050602084013567ffffffffffffffff8111156134ba576134b9612fe1565b5b6134c686828701613426565b9150509250925092565b6000806000606084860312156134e9576134e8612fdc565b5b60006134f786828701613232565b935050602061350886828701613232565b92505060406135198682870161317d565b9150509250925092565b6000806040838503121561353a57613539612fdc565b5b60006135488582860161317d565b92505060206135598582860161317d565b9150509250929050565b600060408201905061357860008301856131f1565b6135856020830184613287565b9392505050565b600080fd5b600067ffffffffffffffff8211156135ac576135ab613316565b5b6135b5826130f0565b9050602081019050919050565b82818337600083830152505050565b60006135e46135df84613591565b613376565b905082815260208101848484011115613600576135ff61358c565b5b61360b8482856135c2565b509392505050565b600082601f830112613628576136276132b1565b5b81356136388482602086016135d1565b91505092915050565b60006020828403121561365757613656612fdc565b5b600082013567ffffffffffffffff81111561367557613674612fe1565b5b61368184828501613613565b91505092915050565b6000602082840312156136a05761369f612fdc565b5b60006136ae84828501613232565b91505092915050565b6136c08161306b565b81146136cb57600080fd5b50565b6000813590506136dd816136b7565b92915050565b600080604083850312156136fa576136f9612fdc565b5b60006137088582860161317d565b9250506020613719858286016136ce565b9150509250929050565b60006020828403121561373957613738612fdc565b5b6000613747848285016136ce565b91505092915050565b6000806040838503121561376757613766612fdc565b5b600061377585828601613232565b9250506020613786858286016136ce565b9150509250929050565b600080602083850312156137a7576137a6612fdc565b5b600083013567ffffffffffffffff8111156137c5576137c4612fe1565b5b6137d1858286016132c0565b92509250509250929050565b600067ffffffffffffffff8211156137f8576137f7613316565b5b613801826130f0565b9050602081019050919050565b600061382161381c846137dd565b613376565b90508281526020810184848401111561383d5761383c61358c565b5b6138488482856135c2565b509392505050565b600082601f830112613865576138646132b1565b5b813561387584826020860161380e565b91505092915050565b6000806000806080858703121561389857613897612fdc565b5b60006138a687828801613232565b94505060206138b787828801613232565b93505060406138c88782880161317d565b925050606085013567ffffffffffffffff8111156138e9576138e8612fe1565b5b6138f587828801613850565b91505092959194509250565b6000806040838503121561391857613917612fdc565b5b600061392685828601613232565b925050602061393785828601613232565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061398857607f821691505b6020821081141561399c5761399b613941565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006139fe6021836130ac565b9150613a09826139a2565b604082019050919050565b60006020820190508181036000830152613a2d816139f1565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613a90603e836130ac565b9150613a9b82613a34565b604082019050919050565b60006020820190508181036000830152613abf81613a83565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613b2f8261315c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613b6257613b61613af5565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613bc9602e836130ac565b9150613bd482613b6d565b604082019050919050565b60006020820190508181036000830152613bf881613bbc565b9050919050565b6000613c0a8261315c565b9150613c158361315c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c4e57613c4d613af5565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c938261315c565b9150613c9e8361315c565b925082613cae57613cad613c59565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613d15602b836130ac565b9150613d2082613cb9565b604082019050919050565b60006020820190508181036000830152613d4481613d08565b9050919050565b7f42616c616e6365206973207a65726f0000000000000000000000000000000000600082015250565b6000613d81600f836130ac565b9150613d8c82613d4b565b602082019050919050565b60006020820190508181036000830152613db081613d74565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613e13602c836130ac565b9150613e1e82613db7565b604082019050919050565b60006020820190508181036000830152613e4281613e06565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613e7f6018836130ac565b9150613e8a82613e49565b602082019050919050565b60006020820190508181036000830152613eae81613e72565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613f116029836130ac565b9150613f1c82613eb5565b604082019050919050565b60006020820190508181036000830152613f4081613f04565b9050919050565b7f596f7520646f206e6f74206f776e207468697320746f6b656e49440000000000600082015250565b6000613f7d601b836130ac565b9150613f8882613f47565b602082019050919050565b60006020820190508181036000830152613fac81613f70565b9050919050565b7f5468697320746f6b656e20494420646f6573206e6f7420657869737400000000600082015250565b6000613fe9601c836130ac565b9150613ff482613fb3565b602082019050919050565b6000602082019050818103600083015261401881613fdc565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614055601f836130ac565b91506140608261401f565b602082019050919050565b6000602082019050818103600083015261408481614048565b9050919050565b60006140968261315c565b91506140a18361315c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140d6576140d5613af5565b5b828201905092915050565b7f416d6f756e74206578636565647320737570706c792e00000000000000000000600082015250565b60006141176016836130ac565b9150614122826140e1565b602082019050919050565b600060208201905081810360008301526141468161410a565b9050919050565b7f596f7520617265206e6f74206f6e2074686520616c6c6f776c6973742c20736f60008201527f7272792e00000000000000000000000000000000000000000000000000000000602082015250565b60006141a96024836130ac565b91506141b48261414d565b604082019050919050565b600060208201905081810360008301526141d88161419c565b9050919050565b7f596f75206861766520657863656564656420796f757220616c6c6f776c69737460008201527f206d696e74696e6720616c6c6f636174696f6e2e000000000000000000000000602082015250565b600061423b6034836130ac565b9150614246826141df565b604082019050919050565b6000602082019050818103600083015261426a8161422e565b9050919050565b600061427c8261315c565b91506142878361315c565b92508282101561429a57614299613af5565b5b828203905092915050565b7f57686f612074686572652120596f752063616e2774206d696e7420746861742060008201527f6d616e7921000000000000000000000000000000000000000000000000000000602082015250565b60006143016025836130ac565b915061430c826142a5565b604082019050919050565b60006020820190508181036000830152614330816142f4565b9050919050565b7f57686f612074686572652120596f752063616e277420686f6c6420746861742060008201527f6d616e7921000000000000000000000000000000000000000000000000000000602082015250565b60006143936025836130ac565b915061439e82614337565b604082019050919050565b600060208201905081810360008301526143c281614386565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614425602f836130ac565b9150614430826143c9565b604082019050919050565b6000602082019050818103600083015261445481614418565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461448881613970565b614492818661445b565b945060018216600081146144ad57600181146144be576144f1565b60ff198316865281860193506144f1565b6144c785614466565b60005b838110156144e9578154818901526001820191506020810190506144ca565b838801955050505b50505092915050565b6000614505826130a1565b61450f818561445b565b935061451f8185602086016130bd565b80840191505092915050565b6000614537828661447b565b915061454382856144fa565b915061454f828461447b565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145b86026836130ac565b91506145c38261455c565b604082019050919050565b600060208201905081810360008301526145e7816145ab565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006146246020836130ac565b915061462f826145ee565b602082019050919050565b6000602082019050818103600083015261465381614617565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006146b66025836130ac565b91506146c18261465a565b604082019050919050565b600060208201905081810360008301526146e5816146a9565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006147486024836130ac565b9150614753826146ec565b604082019050919050565b600060208201905081810360008301526147778161473b565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006147b46010836130ac565b91506147bf8261477e565b602082019050919050565b600060208201905081810360008301526147e3816147a7565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006148206020836130ac565b915061482b826147ea565b602082019050919050565b6000602082019050818103600083015261484f81614813565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061488c601c836130ac565b915061489782614856565b602082019050919050565b600060208201905081810360008301526148bb8161487f565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006148f86019836130ac565b9150614903826148c2565b602082019050919050565b60006020820190508181036000830152614927816148eb565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061498a6032836130ac565b91506149958261492e565b604082019050919050565b600060208201905081810360008301526149b98161497d565b9050919050565b60006149cb8261315c565b91506149d68361315c565b9250826149e6576149e5613c59565b5b828206905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614a276014836130ac565b9150614a32826149f1565b602082019050919050565b60006020820190508181036000830152614a5681614a1a565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614a8482614a5d565b614a8e8185614a68565b9350614a9e8185602086016130bd565b614aa7816130f0565b840191505092915050565b6000608082019050614ac760008301876131f1565b614ad460208301866131f1565b614ae16040830185613287565b8181036060830152614af38184614a79565b905095945050505050565b600081519050614b0d81613012565b92915050565b600060208284031215614b2957614b28612fdc565b5b6000614b3784828501614afe565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212205d3fa38445a9e86ec92af79ab9dfc468b14be5ea1708646efda5fe966820cf7d64736f6c63430008090033696c6970696b6120666f726573743a20546865204b656570657273206f66204d6167696300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696469766f6e6d6f6f756d63367072366163356562713368706c37667172676335336d37747537716f7178626d377a7936626263342f0000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696469766f6e6d6f6f756d63367072366163356562713368706c37667172676335336d37747537716f7178626d377a7936626263342f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : customBaseURI_ (string): ipfs://bafybeidivonmooumc6pr6ac5ebq3hpl7fqrgc53m7tu7qoqxbm7zy6bbc4/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [2] : 697066733a2f2f626166796265696469766f6e6d6f6f756d6336707236616335
Arg [3] : 6562713368706c37667172676335336d37747537716f7178626d377a79366262
Arg [4] : 63342f0000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.