Contract 0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x13c6a88d8e0c516bfe02ad49c7946cbe81a754cec679f43a56f74146f8921555Set Approval For...364107162022-12-04 10:23:203 days 17 hrs ago0xca599eadb12633a45575a9920964f5b586993435 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001725600266 37.338532211
0x919e38e852f6f39f2b92419ee042e801cfc5f8429038186570308ca127fc91f8Approve359821652022-11-23 21:34:4714 days 6 hrs ago0xfda0b8b79209e6ab60010d45f485704200af7be3 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.000800520008 30.000000337
0xe4f072a47cceefe04f844bcb151f3c38f0ba603c93443aacd6a272af82a010dbSet Approval For...359821502022-11-23 21:34:1714 days 6 hrs ago0xfda0b8b79209e6ab60010d45f485704200af7be3 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.000731610013 30.000000549
0xf7383223a97bc323a70f46478fa92d7d40a6ee746e857e72ec30a6d5bfaf9befApprove359810332022-11-23 20:55:4414 days 6 hrs ago0xbcf827fde975c675309585bd353bbb7bcb785b75 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.000882093348 30.752103921
0x40919a743516f0678a6389e122f1e7d6ac2d03e1038755fc13bcaaa161b3e6e6Approve359810292022-11-23 20:55:3614 days 6 hrs ago0xbcf827fde975c675309585bd353bbb7bcb785b75 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.000800520009 30.000000357
0x64bb4624bcaa281b33790532b76193162d1f13d796a000c0a30efa36e542a4b0Set Approval For...359810252022-11-23 20:55:2814 days 6 hrs ago0xbcf827fde975c675309585bd353bbb7bcb785b75 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.000731610009 30.000000402
0x9ae0da68a694c95769c4fbf6e49ff0f7bc0a107b62264035920eb54c0b63be44Set Approval For...347061342022-10-23 15:58:4645 days 11 hrs ago0x7cf39e8d6f6f9f25e925dad7eb371276231780d7 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.003332886757 72.116991394
0x88fd85c253b6cc1bbaad35fb1eabbd56d652499dc937def87d030c51e18cb875Set Approval For...346931022022-10-23 8:17:0545 days 19 hrs ago0x538d5d262932a80c7b5badde482a5427a3b6a86b IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.003911221866 84.631004366
0xc3b9a391194fd3d550369fde62a1523d189ccb1ce41d79c3a63726d3b9dcaa79Set Approval For...339591502022-10-05 11:07:3363 days 16 hrs ago0x338571a641d8c43f9e5a306300c5d89e0cb2cfaf IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.00073161 30.000000014
0x9120c5458615438659cc0b2c98f24451f90390696c7b0b197ec0eb020459de1bSet Approval For...337864222022-10-01 7:16:3167 days 20 hrs ago0x00237b0bdf93f91bd6f1eaec2840af60dbf420ab IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.00073161 30.000000012
0x65bfd03b478e56f6b523c910137402e978e0d90b56ae5ca83f6ff7d9331fc05aSafe Transfer Fr...325904612022-09-02 8:37:0796 days 19 hrs ago0x5ae2b03cf9516cfd6ad09bbb6dfe44abae71534a IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.00124455 30.000000012
0x834ebe5386b5670d05e9fa23523f8473569c9ccdab493aaf3926326c86e9b3e5Safe Transfer Fr...325904472022-09-02 8:36:3996 days 19 hrs ago0x5ae2b03cf9516cfd6ad09bbb6dfe44abae71534a IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001571699745 33.957000013
0x0cd80c9a8b460de183fc63ed3a11c43cbb105582116de81839ab49d5601c9b75Safe Transfer Fr...325904342022-09-02 8:36:1396 days 19 hrs ago0x5ae2b03cf9516cfd6ad09bbb6dfe44abae71534a IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.0014514976 31.36
0x85a4ba3e43d545a04ab7dba1bdf06314707c056792c44b4b4628c3566fc5fdbbSafe Transfer Fr...325904212022-09-02 8:35:4796 days 19 hrs ago0x5ae2b03cf9516cfd6ad09bbb6dfe44abae71534a IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001678294099 36.259999999
0x9dfd613f1add852e8163f584b7979f78a560b413844b0cb3d3b9d26d48e234daSafe Transfer Fr...325904092022-09-02 8:35:2396 days 19 hrs ago0x5ae2b03cf9516cfd6ad09bbb6dfe44abae71534a IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001451951193 31.369800017
0xc791612a832a7164402f423afe2f5f92dc611b424edfb7c9a821d961e2093eceSafe Transfer Fr...325903992022-09-02 8:34:5996 days 19 hrs ago0x5ae2b03cf9516cfd6ad09bbb6dfe44abae71534a IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.00142881795 30.870000013
0xf8df03760e030ea33b7b232b07f15b56d953f27205f8be92f426a723d67d37a6Safe Transfer Fr...325903882022-09-02 8:34:3796 days 19 hrs ago0x5ae2b03cf9516cfd6ad09bbb6dfe44abae71534a IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.0015142176 31.360000017
0x3b98a5f76123235f1037eeed9fa3b6d49a7026fcb2ddcf266d9a96b9f8ba28eeSet Approval For...325311542022-08-31 21:47:5098 days 6 hrs ago0xe3aa892a11b5362607a7d73686b656dabffd6df7 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001857883289 76.183347275
0x071368dfa5bc29391034f9249409f17ecb53a27ac89267afe9a14c8baf4961a3Set Approval For...323922762022-08-27 22:32:56102 days 5 hrs ago0xf4069d0ffd963cf5e731990cbb9333bd85d1e424 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.000933060878 38.26058466
0x7fc9df352271735efcb4b1773de4b4a0c59e507a0e206761c1e3bea14c7de1a4Expire Token322624242022-08-24 9:17:17105 days 18 hrs ago0xf30d72488163833a6aec72b690ba571ba278bd73 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001703229004 33.000000084
0x13641eba58cc7a530bdda987e7df59a5db67360eca5734bfde260fc62660d92dExpire Token322624202022-08-24 9:17:09105 days 18 hrs ago0xf30d72488163833a6aec72b690ba571ba278bd73 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001773453004 33.000000093
0xd5479500bfe6c40677003304eebdf0c801ffe937df5e960b85cdda8e269a7f8cExpire Token322624152022-08-24 9:16:59105 days 18 hrs ago0xf30d72488163833a6aec72b690ba571ba278bd73 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001703229006 33.00000012
0x6e8ad97f8e22db6c615983cd66a26f3211605ebaac1a3ebbe5ac1c0f16a9a176Expire Token322624082022-08-24 9:16:45105 days 18 hrs ago0xf30d72488163833a6aec72b690ba571ba278bd73 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001703229007 33.000000147
0x63d9dce6ba2db06a128e68ddafc2abf549ed65fb22c79db96d29e3a5f327293eExpire Token322624042022-08-24 9:16:37105 days 18 hrs ago0xf30d72488163833a6aec72b690ba571ba278bd73 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001703229008 33.00000016
0xb93f3ff17869b3006c5cebd788e6fdcce61d12e9c23db09f2df546a96c4d6accExpire Token322624012022-08-24 9:16:31105 days 18 hrs ago0xf30d72488163833a6aec72b690ba571ba278bd73 IN  0x5ac3d1eaf37090b6ad47143ada7038930a4e4ecb0 MATIC0.001703229007 33.000000147
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
G2FknMintPass

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : G2FknMintPass.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract G2FknMintPass is ERC721, Ownable {


    using Strings for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private counterObj;

    uint256 public cost = 1000 ether;
    uint256 public maxSupply = 3333;
    uint256 public maxMintAmountPerTx = 500;

    bool public pauseOfMint = false;

    // Token status
    enum tokenStatus {ACTIVE, EXPIRED, USED}
    mapping(uint256 => tokenStatus) private _tokenStatuses;

    mapping(tokenStatus => string) public metaPrefixByStatus;
    string public baseMetaPrefix = "https://fknapesclub.com/ntf/metabonus/";

    constructor() ERC721("G2 Fkn Mint Pass", "G2FMP") {
        setMetaPrefixByStatus(tokenStatus.ACTIVE, 'active/');
        setMetaPrefixByStatus(tokenStatus.EXPIRED, 'expired/');
        setMetaPrefixByStatus(tokenStatus.USED, 'used/');
    }

    modifier isPossibleMint(uint256 mintAmount) {
        require(mintAmount > 0 && mintAmount <= maxMintAmountPerTx, "Invalid mint amount!");
        require(counterObj.current() + mintAmount <= maxSupply, "Max supply exceeded!");
        _;
    }

    modifier existsToken(uint256 tokenId) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        _;
    }

    modifier isApprovedOrOwnerOrContractOwner(uint256 tokenId) {
        require(_isApprovedOrOwner(_msgSender(), tokenId) || owner() == _msgSender(), "ERC721: transfer caller is not owner or approved or contract owner ");
        _;
    }

    // tokenURI
    function setBaseMetaPrefix(string memory metaPrefix) public onlyOwner {
        baseMetaPrefix = metaPrefix;
    }

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

    function setMetaPrefixByStatus(tokenStatus tokenStatusFor, string memory metaPrefix) public onlyOwner {
        metaPrefixByStatus[tokenStatusFor] = string(abi.encodePacked(_baseURI(), metaPrefix));
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        return string(abi.encodePacked(metaPrefixByStatus[getTokenStatus(tokenId)], tokenId.toString(), '.json'));
    }

    // Supply
    function getTotalSupply() public view returns (uint256) {
        return counterObj.current();
    }

    function setMaxSupply(uint256 _maxSupply) public onlyOwner {
        maxSupply = _maxSupply;
    }

    // Mint
    function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner {
        maxMintAmountPerTx = _maxMintAmountPerTx;
    }

    function setPauseOfMint(bool _state) public onlyOwner {
        pauseOfMint = _state;
    }

    // Statuses
    function useToken(uint256 tokenId) public existsToken(tokenId) isApprovedOrOwnerOrContractOwner(tokenId) {
        require(_tokenStatuses[tokenId] == tokenStatus.ACTIVE, "Token must be ACTIVE");
        _tokenStatuses[tokenId] = tokenStatus.USED;
    }

    function useAndTransferToken(uint256 tokenId) public existsToken(tokenId) isApprovedOrOwnerOrContractOwner(tokenId) {
        useToken(tokenId);
        safeTransferFrom(ownerOf(tokenId), owner(), tokenId);

    }

    function expireToken(uint256 tokenId) public existsToken(tokenId) isApprovedOrOwnerOrContractOwner(tokenId) {
        require(_tokenStatuses[tokenId] == tokenStatus.ACTIVE, "Token must be ACTIVE");
        _tokenStatuses[tokenId] = tokenStatus.EXPIRED;
    }

    function getTokenStatus(uint256 tokenId) public view existsToken(tokenId) returns (tokenStatus) {
        return _tokenStatuses[tokenId];
    }

    function getTokensStatus(uint256[] memory _tokens) public view returns (tokenStatus[] memory) {
        tokenStatus[] memory resStatuses = new tokenStatus[](_tokens.length);
        for (uint256 i = 0; i < _tokens.length; i++) {
            uint256 tokenId = _tokens[i];
            resStatuses[i] = getTokenStatus(tokenId);
        }
        return resStatuses;
    }

    function setTokensStatus(uint256[] memory _tokens, tokenStatus _status) public onlyOwner {
        for (uint256 i = 0; i < _tokens.length; i++) {
            uint256 tokenId = _tokens[i];
            _tokenStatuses[tokenId] = _status;
        }
    }

    // Mint
    function mint(uint256 mintAmount) public payable isPossibleMint(mintAmount) {
        require(!pauseOfMint, "The contract is paused!");
        require(msg.value >= cost * mintAmount, "Insufficient funds!");

        _mintLoop(_msgSender(), mintAmount);
    }

    function mintForAddress(uint256 mintAmount, address _addr) public isPossibleMint(mintAmount) onlyOwner {
        _mintLoop(_addr, mintAmount);
    }

    function _mintLoop(address _addr, uint256 _mintAmount) internal {
        for (uint256 i = 0; i < _mintAmount; i++) {
            counterObj.increment();
            _safeMint(_addr, counterObj.current() - 1);
        }
        if (_addr != owner()) {
            setApprovalForContractOwner(_addr, true);
        }
    }

    // misc
    function setCost(uint256 _cost) public onlyOwner {
        cost = _cost;
    }

    function setApprovalForContractOwner(address dstAddress, bool approved) public {
        require(_msgSender() == dstAddress || _msgSender() == owner(), "Only owner or contract owner");

        _setApprovalForAll(dstAddress, owner(), approved);
    }

    function getTokensByOwner(address _addr) public view returns (uint256[] memory) {
        uint256[] memory ownTokens = new uint256[](balanceOf(_addr));
        uint256 tokenId = 0;
        uint256 indx = 0;

        while (tokenId < counterObj.current()) {
            if (_exists(tokenId) && ownerOf(tokenId) == _addr) {
                ownTokens[indx] = tokenId;
                indx++;
            }
            tokenId++;
        }

        return ownTokens;
    }

    function getTokensStatusByOwner(address _addr) public view returns (uint256[] memory, tokenStatus[] memory) {
        uint256[] memory tokens = getTokensByOwner(_addr);
        return (tokens, getTokensStatus(tokens));
    }

    function getTotalTokenByStatus(address _addr, tokenStatus _status) public view returns (uint256) {
        uint resCnt;
        (, tokenStatus[] memory statuses) = getTokensStatusByOwner(_addr);

        for (uint256 i = 0; i < statuses.length; i++) {
            if (statuses[i] == _status) {
                resCnt++;
            }
        }
        return resCnt;
    }

    function withdraw() public onlyOwner {
        (bool os,) = payable(owner()).call{value : address(this).balance}("");
        require(os);
    }

}

File 2 of 12 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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: balance query for the zero address");
        return _balances[owner];
    }

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _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: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 12 : 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 4 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 5 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 6 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 12 : 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 8 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

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

File 9 of 12 : 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 10 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 11 of 12 : 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 12 of 12 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"baseMetaPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expireToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenStatus","outputs":[{"internalType":"enum G2FknMintPass.tokenStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTokensByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"}],"name":"getTokensStatus","outputs":[{"internalType":"enum G2FknMintPass.tokenStatus[]","name":"","type":"uint8[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTokensStatusByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"enum G2FknMintPass.tokenStatus[]","name":"","type":"uint8[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"enum G2FknMintPass.tokenStatus","name":"_status","type":"uint8"}],"name":"getTotalTokenByStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum G2FknMintPass.tokenStatus","name":"","type":"uint8"}],"name":"metaPrefixByStatus","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseOfMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dstAddress","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForContractOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metaPrefix","type":"string"}],"name":"setBaseMetaPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum G2FknMintPass.tokenStatus","name":"tokenStatusFor","type":"uint8"},{"internalType":"string","name":"metaPrefix","type":"string"}],"name":"setMetaPrefixByStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPauseOfMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"},{"internalType":"enum G2FknMintPass.tokenStatus","name":"_status","type":"uint8"}],"name":"setTokensStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"useAndTransferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"useToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

683635c9adc5dea00000600855610d056009556101f4600a55600b805460ff1916905560e060405260266080818152906200311b60a03980516200004c91600e9160209091019062000367565b503480156200005a57600080fd5b50604080518082018252601081526f473220466b6e204d696e74205061737360801b60208083019182528351808501909452600584526404732464d560dc1b908401528151919291620000b09160009162000367565b508051620000c690600190602084019062000367565b505050620000e3620000dd6200017e60201b60201c565b62000182565b620001156000604051806040016040528060078152602001666163746976652f60c81b815250620001d460201b60201c565b62000148600160405180604001604052806008815260200167657870697265642f60c01b815250620001d460201b60201c565b62000178600260405180604001604052806005815260200164757365642f60d81b815250620001d460201b60201c565b620004a7565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620002335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6200023d620002cd565b816040516020016200025192919062000449565b604051602081830303815290604052600d60008460028111156200028557634e487b7160e01b600052602160045260246000fd5b6002811115620002a557634e487b7160e01b600052602160045260246000fd5b81526020019081526020016000209080519060200190620002c892919062000367565b505050565b6060600e8054620002de906200046a565b80601f01602080910402602001604051908101604052809291908181526020018280546200030c906200046a565b80156200035d5780601f1062000331576101008083540402835291602001916200035d565b820191906000526020600020905b8154815290600101906020018083116200033f57829003601f168201915b5050505050905090565b82805462000375906200046a565b90600052602060002090601f016020900481019282620003995760008555620003e4565b82601f10620003b457805160ff1916838001178555620003e4565b82800160010185558215620003e4579182015b82811115620003e4578251825591602001919060010190620003c7565b50620003f2929150620003f6565b5090565b5b80821115620003f25760008155600101620003f7565b60008151815b818110156200042f576020818501810151868301520162000413565b818111156200043e5782828601525b509290920192915050565b6000620004626200045b83866200040d565b846200040d565b949350505050565b600181811c908216806200047f57607f821691505b60208210811415620004a157634e487b7160e01b600052602260045260246000fd5b50919050565b612c6480620004b76000396000f3fe6080604052600436106102515760003560e01c80638296477f11610139578063b88d4fde116100b6578063da70ab7b1161007a578063da70ab7b146106e6578063de2c5b8314610700578063e985e9c514610720578063efbd73f414610769578063f2fde38b14610789578063fdd560c0146107a957600080fd5b8063b88d4fde1461065b578063c4e41b221461067b578063c87b56dd14610690578063ce6ffaa8146106b0578063d5abeb01146106d057600080fd5b806394354fd0116100fd57806394354fd0146105dd57806395d89b41146105f3578063a0712d6814610608578063a22cb4651461061b578063b071401b1461063b57600080fd5b80638296477f146105255780638319d7f41461054557806388a8b353146105725780638da5cb5b146105925780638f07c2b4146105b057600080fd5b80632be1541e116101d257806344a0d68a1161019657806344a0d68a146104705780636352211e146104905780636f7a49eb146104b05780636f8b44b0146104d057806370a08231146104f0578063715018a61461051057600080fd5b80632be1541e146103ce578063380244ae146103ee5780633ccfd60b1461040e57806340398d671461042357806342842e0e1461045057600080fd5b80630e00b68c116102195780630e00b68c1461032757806313faede6146103555780631d1179d91461037957806320fa8f391461039957806323b872dd146103ae57600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e557806309aa3a2c14610307575b600080fd5b34801561026257600080fd5b506102766102713660046125af565b6107c9565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a061081b565b6040516102829190612913565b3480156102b957600080fd5b506102cd6102c8366004612680565b6108ad565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b506103056103003660046124f6565b61093a565b005b34801561031357600080fd5b506102a06103223660046125e7565b610a50565b34801561033357600080fd5b506103476103423660046123a4565b610aea565b6040516102829291906128e0565b34801561036157600080fd5b5061036b60085481565b604051908152602001610282565b34801561038557600080fd5b50610305610394366004612595565b610b0e565b3480156103a557600080fd5b506102a0610b4b565b3480156103ba57600080fd5b506103056103c93660046123f0565b610b58565b3480156103da57600080fd5b506103056103e936600461264d565b610b8a565b3480156103fa57600080fd5b50610305610409366004612552565b610bcb565b34801561041a57600080fd5b50610305610c84565b34801561042f57600080fd5b5061044361043e3660046123a4565b610d22565b60405161028291906128cd565b34801561045c57600080fd5b5061030561046b3660046123f0565b610e17565b34801561047c57600080fd5b5061030561048b366004612680565b610e32565b34801561049c57600080fd5b506102cd6104ab366004612680565b610e61565b3480156104bc57600080fd5b506103056104cb3660046124a4565b610ed8565b3480156104dc57600080fd5b506103056104eb366004612680565b610f61565b3480156104fc57600080fd5b5061036b61050b3660046123a4565b610f90565b34801561051c57600080fd5b50610305611017565b34801561053157600080fd5b5061036b6105403660046124cd565b61104d565b34801561055157600080fd5b5061056561056036600461251f565b611101565b60405161028291906128ba565b34801561057e57600080fd5b5061030561058d366004612601565b611220565b34801561059e57600080fd5b506006546001600160a01b03166102cd565b3480156105bc57600080fd5b506105d06105cb366004612680565b6112d7565b6040516102829190612905565b3480156105e957600080fd5b5061036b600a5481565b3480156105ff57600080fd5b506102a061131a565b610305610616366004612680565b611329565b34801561062757600080fd5b506103056106363660046124a4565b61148b565b34801561064757600080fd5b50610305610656366004612680565b611496565b34801561066757600080fd5b5061030561067636600461242b565b6114c5565b34801561068757600080fd5b5061036b6114fd565b34801561069c57600080fd5b506102a06106ab366004612680565b61150d565b3480156106bc57600080fd5b506103056106cb366004612680565b611598565b3480156106dc57600080fd5b5061036b60095481565b3480156106f257600080fd5b50600b546102769060ff1681565b34801561070c57600080fd5b5061030561071b366004612680565b611620565b34801561072c57600080fd5b5061027661073b3660046123be565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561077557600080fd5b50610305610784366004612698565b61171b565b34801561079557600080fd5b506103056107a43660046123a4565b611801565b3480156107b557600080fd5b506103056107c4366004612680565b611899565b60006001600160e01b031982166380ac58cd60e01b14806107fa57506001600160e01b03198216635b5e139f60e01b145b8061081557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461082a90612b72565b80601f016020809104026020016040519081016040528092919081815260200182805461085690612b72565b80156108a35780601f10610878576101008083540402835291602001916108a3565b820191906000526020600020905b81548152906001019060200180831161088657829003601f168201915b5050505050905090565b60006108b88261198f565b61091e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061094582610e61565b9050806001600160a01b0316836001600160a01b031614156109b35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610915565b336001600160a01b03821614806109cf57506109cf813361073b565b610a415760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610915565b610a4b83836119ac565b505050565b600d6020526000908152604090208054610a6990612b72565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9590612b72565b8015610ae25780601f10610ab757610100808354040283529160200191610ae2565b820191906000526020600020905b815481529060010190602001808311610ac557829003601f168201915b505050505081565b6060806000610af884610d22565b905080610b0482611101565b9250925050915091565b6006546001600160a01b03163314610b385760405162461bcd60e51b8152600401610915906129c4565b600b805460ff1916911515919091179055565b600e8054610a6990612b72565b610b63335b82611a1a565b610b7f5760405162461bcd60e51b815260040161091590612a62565b610a4b838383611abf565b6006546001600160a01b03163314610bb45760405162461bcd60e51b8152600401610915906129c4565b8051610bc790600e9060208401906121cf565b5050565b6006546001600160a01b03163314610bf55760405162461bcd60e51b8152600401610915906129c4565b60005b8251811015610a4b576000838281518110610c2357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516000818152600c90925260409091208054919250849160ff19166001836002811115610c6b57634e487b7160e01b600052602160045260246000fd5b0217905550508080610c7c90612ba7565b915050610bf8565b6006546001600160a01b03163314610cae5760405162461bcd60e51b8152600401610915906129c4565b6000610cc26006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610d0c576040519150601f19603f3d011682016040523d82523d6000602084013e610d11565b606091505b5050905080610d1f57600080fd5b50565b60606000610d2f83610f90565b67ffffffffffffffff811115610d5557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d7e578160200160208202803683370190505b5090506000805b600754821015610e0e57610d988261198f565b8015610dbd5750846001600160a01b0316610db283610e61565b6001600160a01b0316145b15610dfc5781838281518110610de357634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610df881612ba7565b9150505b81610e0681612ba7565b925050610d85565b50909392505050565b610a4b838383604051806020016040528060008152506114c5565b6006546001600160a01b03163314610e5c5760405162461bcd60e51b8152600401610915906129c4565b600855565b6000818152600260205260408120546001600160a01b0316806108155760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610915565b336001600160a01b0383161480610ef957506006546001600160a01b031633145b610f455760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206f776e6572206f7220636f6e7472616374206f776e6572000000006044820152606401610915565b610bc782610f5b6006546001600160a01b031690565b83611c5b565b6006546001600160a01b03163314610f8b5760405162461bcd60e51b8152600401610915906129c4565b600955565b60006001600160a01b038216610ffb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610915565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146110415760405162461bcd60e51b8152600401610915906129c4565b61104b6000611d2a565b565b600080600061105b85610aea565b91505060005b81518110156110f75784600281111561108a57634e487b7160e01b600052602160045260246000fd5b8282815181106110aa57634e487b7160e01b600052603260045260246000fd5b602002602001015160028111156110d157634e487b7160e01b600052602160045260246000fd5b14156110e557826110e181612ba7565b9350505b806110ef81612ba7565b915050611061565b5090949350505050565b60606000825167ffffffffffffffff81111561112d57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611156578160200160208202803683370190505b50905060005b835181101561121957600084828151811061118757634e487b7160e01b600052603260045260246000fd5b6020026020010151905061119a816112d7565b8383815181106111ba57634e487b7160e01b600052603260045260246000fd5b602002602001019060028111156111e157634e487b7160e01b600052602160045260246000fd5b9081600281111561120257634e487b7160e01b600052602160045260246000fd5b90525081905061121181612ba7565b91505061115c565b5092915050565b6006546001600160a01b0316331461124a5760405162461bcd60e51b8152600401610915906129c4565b611252611d7c565b81604051602001611264929190612794565b604051602081830303815290604052600d600084600281111561129757634e487b7160e01b600052602160045260246000fd5b60028111156112b657634e487b7160e01b600052602160045260246000fd5b81526020019081526020016000209080519060200190610a4b9291906121cf565b6000816112e38161198f565b6112ff5760405162461bcd60e51b815260040161091590612978565b6000838152600c602052604090205460ff1691505b50919050565b60606001805461082a90612b72565b8060008111801561133c5750600a548111155b61137f5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610915565b6009548161138c60075490565b6113969190612ae4565b11156113db5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610915565b600b5460ff161561142e5760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610915565b8160085461143c9190612b10565b3410156114815760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610915565b610bc73383611d8b565b610bc7338383611c5b565b6006546001600160a01b031633146114c05760405162461bcd60e51b8152600401610915906129c4565b600a55565b6114cf3383611a1a565b6114eb5760405162461bcd60e51b815260040161091590612a62565b6114f784848484611df5565b50505050565b600061150860075490565b905090565b6060600d600061151c846112d7565b600281111561153b57634e487b7160e01b600052602160045260246000fd5b600281111561155a57634e487b7160e01b600052602160045260246000fd5b815260200190815260200160002061157183611e28565b6040516020016115829291906127c3565b6040516020818303038152906040529050919050565b806115a28161198f565b6115be5760405162461bcd60e51b815260040161091590612978565b816115c833610b5d565b806115dd57506006546001600160a01b031633145b6115f95760405162461bcd60e51b8152600401610915906129f9565b61160283611899565b610a4b61160e84610e61565b6006546001600160a01b031685610e17565b8061162a8161198f565b6116465760405162461bcd60e51b815260040161091590612978565b8161165033610b5d565b8061166557506006546001600160a01b031633145b6116815760405162461bcd60e51b8152600401610915906129f9565b6000838152600c602052604081205460ff1660028111156116b257634e487b7160e01b600052602160045260246000fd5b146116f65760405162461bcd60e51b8152602060048201526014602482015273546f6b656e206d7573742062652041435449564560601b6044820152606401610915565b6000838152600c6020526040902080546001919060ff191682805b0217905550505050565b8160008111801561172e5750600a548111155b6117715760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610915565b6009548161177e60075490565b6117889190612ae4565b11156117cd5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610915565b6006546001600160a01b031633146117f75760405162461bcd60e51b8152600401610915906129c4565b610a4b8284611d8b565b6006546001600160a01b0316331461182b5760405162461bcd60e51b8152600401610915906129c4565b6001600160a01b0381166118905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610915565b610d1f81611d2a565b806118a38161198f565b6118bf5760405162461bcd60e51b815260040161091590612978565b816118c933610b5d565b806118de57506006546001600160a01b031633145b6118fa5760405162461bcd60e51b8152600401610915906129f9565b6000838152600c602052604081205460ff16600281111561192b57634e487b7160e01b600052602160045260246000fd5b1461196f5760405162461bcd60e51b8152602060048201526014602482015273546f6b656e206d7573742062652041435449564560601b6044820152606401610915565b6000838152600c6020526040902080546002919060ff1916600183611711565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119e182610e61565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611a258261198f565b611a415760405162461bcd60e51b815260040161091590612978565b6000611a4c83610e61565b9050806001600160a01b0316846001600160a01b03161480611a875750836001600160a01b0316611a7c846108ad565b6001600160a01b0316145b80611ab757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ad282610e61565b6001600160a01b031614611b365760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610915565b6001600160a01b038216611b985760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610915565b611ba36000826119ac565b6001600160a01b0383166000908152600360205260408120805460019290611bcc908490612b2f565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bfa908490612ae4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415611cbd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610915565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060600e805461082a90612b72565b60005b81811015611dd457611da4600780546001019055565b611dc2836001611db360075490565b611dbd9190612b2f565b611f42565b80611dcc81612ba7565b915050611d8e565b506006546001600160a01b03838116911614610bc757610bc7826001610ed8565b611e00848484611abf565b611e0c84848484611f5c565b6114f75760405162461bcd60e51b815260040161091590612926565b606081611e4c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e765780611e6081612ba7565b9150611e6f9050600a83612afc565b9150611e50565b60008167ffffffffffffffff811115611e9f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ec9576020820181803683370190505b5090505b8415611ab757611ede600183612b2f565b9150611eeb600a86612bc2565b611ef6906030612ae4565b60f81b818381518110611f1957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f3b600a86612afc565b9450611ecd565b610bc7828260405180602001604052806000815250612069565b60006001600160a01b0384163b1561205e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fa090339089908890889060040161287d565b602060405180830381600087803b158015611fba57600080fd5b505af1925050508015611fea575060408051601f3d908101601f19168201909252611fe7918101906125cb565b60015b612044573d808015612018576040519150601f19603f3d011682016040523d82523d6000602084013e61201d565b606091505b50805161203c5760405162461bcd60e51b815260040161091590612926565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ab7565b506001949350505050565b612073838361209c565b6120806000848484611f5c565b610a4b5760405162461bcd60e51b815260040161091590612926565b6001600160a01b0382166120f25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610915565b6120fb8161198f565b156121485760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610915565b6001600160a01b0382166000908152600360205260408120805460019290612171908490612ae4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546121db90612b72565b90600052602060002090601f0160209004810192826121fd5760008555612243565b82601f1061221657805160ff1916838001178555612243565b82800160010185558215612243579182015b82811115612243578251825591602001919060010190612228565b5061224f929150612253565b5090565b5b8082111561224f5760008155600101612254565b600067ffffffffffffffff83111561228257612282612c02565b612295601f8401601f1916602001612ab3565b90508281528383830111156122a957600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146122d757600080fd5b919050565b600082601f8301126122ec578081fd5b8135602067ffffffffffffffff82111561230857612308612c02565b8160051b612317828201612ab3565b838152828101908684018388018501891015612331578687fd5b8693505b85841015612353578035835260019390930192918401918401612335565b50979650505050505050565b803580151581146122d757600080fd5b8035600381106122d757600080fd5b600082601f83011261238e578081fd5b61239d83833560208501612268565b9392505050565b6000602082840312156123b5578081fd5b61239d826122c0565b600080604083850312156123d0578081fd5b6123d9836122c0565b91506123e7602084016122c0565b90509250929050565b600080600060608486031215612404578081fd5b61240d846122c0565b925061241b602085016122c0565b9150604084013590509250925092565b60008060008060808587031215612440578081fd5b612449856122c0565b9350612457602086016122c0565b925060408501359150606085013567ffffffffffffffff811115612479578182fd5b8501601f81018713612489578182fd5b61249887823560208401612268565b91505092959194509250565b600080604083850312156124b6578182fd5b6124bf836122c0565b91506123e76020840161235f565b600080604083850312156124df578182fd5b6124e8836122c0565b91506123e76020840161236f565b60008060408385031215612508578182fd5b612511836122c0565b946020939093013593505050565b600060208284031215612530578081fd5b813567ffffffffffffffff811115612546578182fd5b611ab7848285016122dc565b60008060408385031215612564578182fd5b823567ffffffffffffffff81111561257a578283fd5b612586858286016122dc565b9250506123e76020840161236f565b6000602082840312156125a6578081fd5b61239d8261235f565b6000602082840312156125c0578081fd5b813561239d81612c18565b6000602082840312156125dc578081fd5b815161239d81612c18565b6000602082840312156125f8578081fd5b61239d8261236f565b60008060408385031215612613578182fd5b61261c8361236f565b9150602083013567ffffffffffffffff811115612637578182fd5b6126438582860161237e565b9150509250929050565b60006020828403121561265e578081fd5b813567ffffffffffffffff811115612674578182fd5b611ab78482850161237e565b600060208284031215612691578081fd5b5035919050565b600080604083850312156126aa578182fd5b823591506123e7602084016122c0565b6000815180845260208085019450808401835b838110156126f0576126e0878351612756565b95820195908201906001016126cd565b509495945050505050565b6000815180845260208085019450808401835b838110156126f05781518752958201959082019060010161270e565b60008151808452612742816020860160208601612b46565b601f01601f19169290920160200192915050565b6003811061277457634e487b7160e01b600052602160045260246000fd5b9052565b6000815161278a818560208601612b46565b9290920192915050565b600083516127a6818460208801612b46565b8351908301906127ba818360208801612b46565b01949350505050565b600080845482600182811c9150808316806127df57607f831692505b60208084108214156127ff57634e487b7160e01b87526022600452602487fd5b818015612813576001811461282457612850565b60ff19861689528489019650612850565b60008b815260209020885b868110156128485781548b82015290850190830161282f565b505084890196505b5050505050506128746128638286612778565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128b09083018461272a565b9695505050505050565b60208152600061239d60208301846126ba565b60208152600061239d60208301846126fb565b6040815260006128f360408301856126fb565b828103602084015261287481856126ba565b602081016108158284612756565b60208152600061239d602083018461272a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526043908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206f7220617070726f766564206f7220636f6e7472616374206f776e606082015262032b9160ed1b608082015260a00190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612adc57612adc612c02565b604052919050565b60008219821115612af757612af7612bd6565b500190565b600082612b0b57612b0b612bec565b500490565b6000816000190483118215151615612b2a57612b2a612bd6565b500290565b600082821015612b4157612b41612bd6565b500390565b60005b83811015612b61578181015183820152602001612b49565b838111156114f75750506000910152565b600181811c90821680612b8657607f821691505b6020821081141561131457634e487b7160e01b600052602260045260246000fd5b6000600019821415612bbb57612bbb612bd6565b5060010190565b600082612bd157612bd1612bec565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d1f57600080fdfea2646970667358221220d2b697eb674c9d8b769d6329b875ae01f153f8e9ee5976b424de7b0f9ade3f1964736f6c6343000804003368747470733a2f2f666b6e61706573636c75622e636f6d2f6e74662f6d657461626f6e75732f

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