Contract 0xD5eF28e80439f3372F35aDa5529bc6fEA874Af14

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x14fb31e5b7a303cc5f7ca2ef2aac7a4eb510976f94b514f3924543465330166fSafe Transfer Fr...197568792021-10-02 11:58:0013 days 21 hrs ago0xfe5b98dd559dc4b9ffe3c6e96331f4bd2eb65daf IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000285009857
0x53a8381973104f6f14e1e76fc0e84f074ff23775282defd71438591859478a45Approve197568342021-10-02 11:54:3013 days 21 hrs ago0xfe5b98dd559dc4b9ffe3c6e96331f4bd2eb65daf IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.0002340288
0xa0d267abb7717cb57303f994e5bae6f4e3ea7a9844436e4decee13f440af0d2eSet Approval For...191918102021-09-17 3:59:2329 days 5 hrs ago0x57707f0056dbb134efcab4811c19f7f09a52a15f IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.00184672
0xc605851c46bfeaa983a0cf63a124bf0a2d5a530adf4d5c5177565b1f2f0781bdSafe Transfer Fr...191422292021-09-15 16:56:3630 days 16 hrs ago0x180d1994a0d0ce7c3f1490cf901133c2623f57cc IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.00355755
0xbbe1f16eac749559b9406ba4aa775c04df76c6cd7de4c8a300d48435507295feSet Approval For...191262512021-09-15 6:33:2531 days 2 hrs ago0xc1839cea93bdfdf29e08ae3f351813fe7e89afb3 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000236412
0xc664979674095b265184bc3bbc1f63601523311623dade872cb5d8473212a7b5Set Approval For...191262512021-09-15 6:33:2531 days 2 hrs ago0xc1839cea93bdfdf29e08ae3f351813fe7e89afb3 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.00069252
0xce209d7ca0a9bd6372b7d5e90cd80412f2a449f344df425e89a2d9ec016bd314Set Approval For...187800912021-09-05 17:07:5340 days 16 hrs ago0x744c0beaa57102c3a7f9536818f765d0b9f30fed IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000471296794
0x785f13493e26e170d247ae289817f4349677b513a759699ddd68499a9c48ddf4Safe Transfer Fr...187375212021-09-04 12:01:1441 days 21 hrs ago0x50bd2f58d4672302df076fbc54bbc623109cfc85 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000176853
0x3b9716e9a3f7edb1e55716c9ac2feecb922122aac05f9e167ceda327d86c4505Approve187374972021-09-04 12:00:2641 days 21 hrs ago0x50bd2f58d4672302df076fbc54bbc623109cfc85 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000120144535
0x88f15407c6d34374a5ea6b1c81f85bc2674dab9e7474821387651529b05ba061Safe Transfer Fr...187275812021-09-04 5:39:3342 days 3 hrs ago0x8ba8a6069621d8f75e41bb3a29941ef61eb55fe6 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000176853
0x1870b51bf8b5df7cbdb4a10d602c2a73471525d2ff21017ebb51b4499a198d04Approve187275592021-09-04 5:38:0542 days 3 hrs ago0x8ba8a6069621d8f75e41bb3a29941ef61eb55fe6 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000048756
0x069bed1a14b934f388cedaded8e239e1d5bb6517108ee0f867ab02fd06eaf1b9Set Approval For...185564892021-08-30 14:15:3446 days 19 hrs ago0xb08cd8d53c9463935faf555a1ee53e847d98a61a IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000056371128
0x596ba74abdeca8a2ee8d85baf10e7b9c1e8eb25f0736fe72252204e5e358320eSafe Transfer Fr...185192692021-08-29 11:40:1447 days 21 hrs ago0x47a815fdf97dfacd3c538d430f7a2523165edd07 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000056151
0x20c55e9c26dbe94a3210410a3784ab06411d2ad4a7936b61f7a70e64ef500080Approve185192492021-08-29 11:39:3447 days 21 hrs ago0x47a815fdf97dfacd3c538d430f7a2523165edd07 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000048756
0x88b3e1544b350788d6ec071dcb3b954d2ad94eaf0a16357b8e0b6baf4982134aSafe Transfer Fr...185189782021-08-29 11:28:0847 days 22 hrs ago0x808c74b8913277542069726e9f594e582bc103fe IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.0000617661
0xb6064c6fab2efce0a0edc718ed07f8aace5c21af045965608c9a65204ac99d95Approve185189682021-08-29 11:27:3047 days 22 hrs ago0x808c74b8913277542069726e9f594e582bc103fe IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.0000536316
0x384c24b34254b9698c2f505b3a163abc7bd34801c3775153ef8ae058671e5ff3Safe Transfer Fr...184934392021-08-28 17:28:2848 days 16 hrs ago0x47a815fdf97dfacd3c538d430f7a2523165edd07 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000058951
0xd086bda73781258eec48fd99e71e087415533cb0accdc58c43dbe824aa83bc91Approve184934242021-08-28 17:27:5848 days 16 hrs ago0x47a815fdf97dfacd3c538d430f7a2523165edd07 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000048756
0xf94ddae54fcbf7fc662cf4c960d3c979e0c75b19c0841d7b26b1209650e295a0Safe Transfer Fr...184626602021-08-27 20:47:5249 days 12 hrs ago0xdf974829f6d977370b21e065ae445390cb9d010c IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000056151
0x8640e0bb445507e2d9763a7f64e06256b293ff4ca5f4f8f065af6eda46097715Approve184626442021-08-27 20:47:1649 days 12 hrs ago0xdf974829f6d977370b21e065ae445390cb9d010c IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.000048756
0xd1a767d890202caa6bef11d794b5a06ea0eacb501542f8fc89e489a6dded1a6bSafe Transfer Fr...184153382021-08-26 12:32:5850 days 20 hrs ago0x47a815fdf97dfacd3c538d430f7a2523165edd07 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.0019765152
0xef0f4f589fd121885411f82c7a015b33475e5494ab13273ea3c81080ea051831Approve184153162021-08-26 12:31:3050 days 21 hrs ago0x47a815fdf97dfacd3c538d430f7a2523165edd07 IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.001860461399
0xe8221071086ce7628fdf35b308a05d4b7fe0092840a559aa6ce740b347b36251Safe Transfer Fr...184150422021-08-26 12:19:1650 days 21 hrs ago0x808c74b8913277542069726e9f594e582bc103fe IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.002004334
0x7dbb313194b4708c12a614363f45180116b526ac3faa5173b3e98a3b399b138fApprove184150342021-08-26 12:18:4650 days 21 hrs ago0x808c74b8913277542069726e9f594e582bc103fe IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.001657704
0x9bd0d64fec0401aab73a1aa05dc1ea4f2243ea2bced90353395962db76a13dd1Set Approval For...183957282021-08-25 23:08:0751 days 10 hrs ago0x808c74b8913277542069726e9f594e582bc103fe IN  0xd5ef28e80439f3372f35ada5529bc6fea874af140 MATIC0.00010249296
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xfdebdf9519f079b4c5f5cbeb05a7f6d91d925724dad1759d6258ca731ceb63ef145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x320214b6a325a8ededac426f07a50cfa3367dc0153944474fdabae3d71e20be0145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0xbcf2896fb921847aad97c4d9f325b1c3dfdde42cb252ec921f15a5b6fdd312c1145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x1046be818bfd94c93904f947f581331913f7e192c078f3ddedf4399080d59e6d145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x210ce9c9216a19f2e93172a54704f1d8b549a80923a84501348e7b2a293345d5145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x8f7c6cd158daeba0866d16378dd24499b29574b7b72373159b2d63074e002f3a145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0xe9745c729685e6aba8dfd3bedc9d5c0c3a0b2fcb9217e8c2907efbbe03b8bc33145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x696bed0c03fe1020bd5f3d82c4cdbc74893b5d34986d984c49c7850dc2dad6fd145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x1895967b4a557f33d7866ead55f16d2d670533e39d2cf9cd93abd16784d1bbc5145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x8dd96d979cfee1df662a425dfea643de8955cb3b9c0ea87145a136375a3c46da145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x66be5f177e68d34139c9254f9c6b265f94ddf5f27de333041d5b4a13fa486936145315472021-05-15 17:12:40153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x94f8a81d2008492827ef84222404a9ca0618ffa7c7da7f205c373f0e02af0062145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0xb9741f0fff887aeff7353a6441de2f318bd17587ae2139032d5ef1708ba30cef145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x3267ebd273fecf944a80ceb996d0b01ffe4c8bd79a9da9df178a027cafc1a468145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0xf21302636607761e7465e77167add47c5552ed2c51e9fe1bc6fe30ca30cbab8b145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x5526bff395460bf6acf574f9ea8223a302b3f45aebf511dbf8b83f63202692f5145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x51078191aa2a7ae79c85790652a4f373f22b65850f029aea494935ed25271875145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x06a66c135225bad5e160aacef1c9631cb59c3727273d1d8ad75701b777c74b6f145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x69d74e70045f8d58639e073597a87cfa070c57ee8bc2c27e7fd4fc4dde702c59145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x1f3aa96a6c3f2da3bf8f0e2e9301b66a2a935e78fd4c714869451803f38a11bb145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x54cdcf8e125d1ed6435cbca75a20b9deb497fdf0691a928409f2bbef4047f571145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0xb20c343384222fdbfc221ecb72d174abe0f854012a5c7809f5096169effbd286145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0x5107a5c8b5e5aec90bc0bc736aa433288bfea7dc89d2717629caf8d9d025dc7e145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0xe112b5fa2959bb5966c7fbba6953ddae51514bdfe0a367e401a737c675bb8510145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
0xb995447c2d1a8d1b5b1d72fed3ac179e98e45db8f897b4f1548a1b0b9f51733b145315462021-05-15 17:12:38153 days 16 hrs ago 0xd5ef28e80439f3372f35ada5529bc6fea874af140x3cc5d96583e9a7b3415336cf512951ae7fe24890350 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MooseNFT

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-30
*/

// Sources flattened with hardhat v2.1.1 https://hardhat.org

// File @openzeppelin/contracts/utils/introspection/[email protected]


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 @openzeppelin/contracts/token/ERC721/[email protected]


pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/[email protected]


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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]


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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}


// File @openzeppelin/contracts/utils/introspection/[email protected]


pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/[email protected]


pragma solidity ^0.8.0;








/**
 * @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}. 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 || ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;


/**
 * @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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;


/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}


// File @openzeppelin/contracts/security/[email protected]


pragma solidity ^0.8.0;

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

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

    bool private _paused;

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);
    function getRoleAdmin(bytes32 role) external view returns (bytes32);
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping (address => bool) members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override {
        require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/utils/structs/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping (bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}


// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. 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;
        }
    }
}


// File @openzeppelin/contracts/security/[email protected]


pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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


// File contracts/MooseNFT.sol


pragma solidity ^0.8.0;








/**
 * @dev {ERC721} token, including:
 *
 *  - ability for holders to burn (destroy) their tokens
 *  - a minter role that allows for token minting (creation)
 *  - a pauser role that allows to stop all token transfers
 *  - token ID and URI autogeneration
 *
 * This contract uses {AccessControl} to lock permissioned functions using the
 * different roles - head to its documentation for details.
 *
 * The account that deploys the contract will be granted the minter and pauser
 * roles, as well as the default admin role, which will let it grant both minter
 * and pauser roles to other accounts.
 */
contract MooseNFT is Context, AccessControlEnumerable, ReentrancyGuard, ERC721Enumerable, ERC721Burnable,ERC721Pausable {
    using Counters for Counters.Counter;

    uint public constant TOKEN_LIMIT = 100; // 4 for testing, 100 for prod;
    uint public constant OWNER_MINTS = 6; // 1 for testing, 6 for prod;

    uint public constant MAX_MINTS_PER_ADDRESS = 2;

    uint public constant PRICE = 350000000000000000000;

    // The beneficiary is the ELK community wallet
    address payable public constant BENEFICIARY = payable(address(0x3cC5D96583E9a7b3415336cf512951Ae7Fe24890));

    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    enum TokenType { Legendary, Epic, Rare, Uncommon }

    Counters.Counter private _tokenIdTracker;
    TokenType[] private _tokenTypes = [TokenType.Legendary, TokenType.Epic, TokenType.Epic, TokenType.Epic, TokenType.Epic, TokenType.Epic, TokenType.Epic, TokenType.Rare, TokenType.Uncommon, TokenType.Rare, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Rare, TokenType.Rare, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Epic, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Rare, TokenType.Rare, TokenType.Rare, TokenType.Epic, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Rare, TokenType.Rare, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Epic, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Rare, TokenType.Rare, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Uncommon, TokenType.Rare];

    mapping (address => uint8) private _mintCounts;

    string private _baseTokenURI;

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the
     * account that deploys the contract.
     *
     * Token URIs will be autogenerated based on `baseURI` and their token IDs.
     * See {ERC721-tokenURI}.
     */
    constructor(string memory name, string memory symbol, string memory baseTokenURI) ERC721(name, symbol) {
        _baseTokenURI = baseTokenURI;

        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

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

    /*
     * @dev Indicates whether more tokens can be minted.
    */
    function mintAvailable() public view virtual returns (bool) {
        return _tokenIdTracker.current() < TOKEN_LIMIT;
    }

    /*
     * @dev Indicates whether the given address can mint more tokens.
    */
    function addressMintAvailable(address to) public view virtual returns (bool) {
        return _mintCounts[to] < MAX_MINTS_PER_ADDRESS;
    }

    /*
     * @dev Returns the token type for a given tokenId.
    */
    function tokenType(uint tokenId) public view virtual returns (TokenType) {
        require(tokenId >= 0 && tokenId < TOKEN_LIMIT, 'MooseNFT: token does not exist!');
        return _tokenTypes[tokenId];
    }

    /**
     * @dev Creates a new token for `to`. Its token ID will be automatically
     * assigned (and available on the emitted {IERC721-Transfer} event), and the token
     * URI autogenerated based on the base URI passed at construction.
     *
     * See {ERC721-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(address to) public payable virtual nonReentrant() {
        require(_tokenIdTracker.current() < TOKEN_LIMIT, "MooseNFT: mint limit reached!");
        require(_mintCounts[to] < MAX_MINTS_PER_ADDRESS || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "MooseNFT: mint limit per address reached!");

        uint price = 0;
        if (_tokenIdTracker.current() >= OWNER_MINTS) {
            price = PRICE;
            require(msg.value >= price);
        }

        if (msg.value > 0) {
            BENEFICIARY.transfer(msg.value);
        }

        // We cannot just use balanceOf to create the new tokenId because tokens
        // can be burned (destroyed), so we need a separate counter.
        _mint(to, _tokenIdTracker.current());
        _tokenIdTracker.increment();
        _mintCounts[to] = _mintCounts[to] + 1;
    }

    /**
     * @dev Pauses all token transfers.
     *
     * See {ERC721Pausable} and {Pausable-_pause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function pause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "MooseNFT: must have pauser role to pause");
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     *
     * See {ERC721Pausable} and {Pausable-_unpause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function unpause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "MooseNFT: must have pauser role to unpause");
        _unpause();
    }

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"BENEFICIARY","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"addressMintAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenType","outputs":[{"internalType":"enum MooseNFT.TokenType","name":"","type":"uint8"}],"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610d0060405260006080908152600160a081905260c081905260e0819052610100819052610120819052610140819052600261016081905260036101808190526101a08290526101c08290526101e08190526102008190526102208290526102408190526102608290526102808190526102a08190526102c08190526102e08290526103008190526103208290526103408290526103608190526103808290526103a08190526103c08190526103e08290526104008190526104208190526104408190526104608190526104808190526104a08190526104c08190526104e08290526105008390526105208190526105408190526105608190526105808190526105a08190526105c08190526105e08290526106008190526106208190526106408190526106608190526106808290526106a08190526106c08190526106e08190526107008190526107208190526107408290526107608290526107808290526107a08290526107c08390526107e08190526108008190526108208290526108408190526108608190526108808290526108a08290526108c08290526108e08290526109008190526109208190526109408190526109608190526109808190526109a08190526109c08190526109e0819052610a0092909252610a20829052610a40829052610a60819052610a80819052610aa0819052610ac0819052610ae0829052610b00829052610b20819052610b40829052610b60829052610b80829052610ba0819052610bc0829052610be0829052610c00829052610c20829052610c40819052610c60829052610c80829052610ca0829052610cc091909152610ce0526200027190600f906064620004a0565b503480156200027f57600080fd5b506040516200348f3803806200348f833981016040819052620002a291620006b1565b6001600255825183908390620002c09060039060208501906200056a565b508051620002d69060049060208401906200056a565b5050600d805460ff19169055508051620002f89060119060208401906200056a565b50620003066000336200033b565b620003327f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336200033b565b50505062000791565b6200035282826200037e60201b620014cf1760201c565b600082815260016020908152604090912062000379918390620014dd6200038e821b17901c565b505050565b6200038a8282620003ae565b5050565b6000620003a5836001600160a01b0384166200044e565b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200038a576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200040a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546200049757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620003a8565b506000620003a8565b82805482825590600052602060002090601f01602090048101928215620005585791602002820160005b838211156200052757835183826101000a81548160ff021916908360038111156200050557634e487b7160e01b600052602160045260246000fd5b02179055509260200192600101602081600001049283019260010302620004ca565b8015620005565782816101000a81549060ff021916905560010160208160000104928301926001030262000527565b505b5062000566929150620005e7565b5090565b82805462000578906200073e565b90600052602060002090601f0160209004810192826200059c576000855562000558565b82601f10620005b757805160ff191683800117855562000558565b8280016001018555821562000558579182015b8281111562000558578251825591602001919060010190620005ca565b5b80821115620005665760008155600101620005e8565b600082601f8301126200060f578081fd5b81516001600160401b03808211156200062c576200062c6200077b565b604051601f8301601f19908116603f011681019082821181831017156200065757620006576200077b565b8160405283815260209250868385880101111562000673578485fd5b8491505b8382101562000696578582018301518183018401529082019062000677565b83821115620006a757848385830101525b9695505050505050565b600080600060608486031215620006c6578283fd5b83516001600160401b0380821115620006dd578485fd5b620006eb87838801620005fe565b9450602086015191508082111562000701578384fd5b6200070f87838801620005fe565b9350604086015191508082111562000725578283fd5b506200073486828701620005fe565b9150509250925092565b600181811c908216806200075357607f821691505b602082108114156200077557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612cee80620007a16000396000f3fe6080604052600436106102855760003560e01c80636a62784211610153578063a22cb465116100cb578063d547741f1161007f578063e63ab1e911610064578063e63ab1e914610708578063e6c3b1f61461073c578063e985e9c51461076957600080fd5b8063d547741f146106aa578063e1fb6f7c146106ca57600080fd5b8063b88d4fde116100b0578063b88d4fde1461064a578063c87b56dd1461066a578063ca15c8731461068a57600080fd5b8063a22cb46514610615578063b874ff431461063557600080fd5b80639010d07c1161012257806395d89b411161010757806395d89b41146105d657806399f19cea146105eb578063a217fddf1461060057600080fd5b80639010d07c1461057257806391d148541461059257600080fd5b80636a6278421461050d57806370a08231146105205780638456cb59146105405780638d859f3e1461055557600080fd5b80632f745c591161020157806342966c68116101b55780635c975abb1161019a5780635c975abb146104c05780636352211e146104d8578063639e576d146104f857600080fd5b806342966c68146104805780634f6ccce7146104a057600080fd5b806336568abe116101e657806336568abe1461042b5780633f4ba83a1461044b57806342842e0e1461046057600080fd5b80632f745c59146103e35780632f99c6cc1461040357600080fd5b8063095ea7b31161025857806323b872dd1161023d57806323b872dd14610373578063248a9ca3146103935780632f2ff15d146103c357600080fd5b8063095ea7b31461033c57806318160ddd1461035e57600080fd5b806301ffc9a71461028a578063031bd4c4146102bf57806306fdde03146102e2578063081812fc14610304575b600080fd5b34801561029657600080fd5b506102aa6102a5366004612a58565b6107b2565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102d4606481565b6040519081526020016102b6565b3480156102ee57600080fd5b506102f76107c3565b6040516102b69190612b4f565b34801561031057600080fd5b5061032461031f3660046129fd565b610855565b6040516001600160a01b0390911681526020016102b6565b34801561034857600080fd5b5061035c6103573660046129d4565b6108ef565b005b34801561036a57600080fd5b50600b546102d4565b34801561037f57600080fd5b5061035c61038e36600461288a565b610a21565b34801561039f57600080fd5b506102d46103ae3660046129fd565b60009081526020819052604090206001015490565b3480156103cf57600080fd5b5061035c6103de366004612a15565b610aa9565b3480156103ef57600080fd5b506102d46103fe3660046129d4565b610acb565b34801561040f57600080fd5b50610324733cc5d96583e9a7b3415336cf512951ae7fe2489081565b34801561043757600080fd5b5061035c610446366004612a15565b610b73565b34801561045757600080fd5b5061035c610b95565b34801561046c57600080fd5b5061035c61047b36600461288a565b610c3b565b34801561048c57600080fd5b5061035c61049b3660046129fd565b610c56565b3480156104ac57600080fd5b506102d46104bb3660046129fd565b610cdd565b3480156104cc57600080fd5b50600d5460ff166102aa565b3480156104e457600080fd5b506103246104f33660046129fd565b610d8f565b34801561050457600080fd5b506102d4600681565b61035c61051b36600461283e565b610e1a565b34801561052c57600080fd5b506102d461053b36600461283e565b61105a565b34801561054c57600080fd5b5061035c6110f4565b34801561056157600080fd5b506102d46812f939c99edab8000081565b34801561057e57600080fd5b5061032461058d366004612a37565b611198565b34801561059e57600080fd5b506102aa6105ad366004612a15565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156105e257600080fd5b506102f76111b7565b3480156105f757600080fd5b506102aa6111c6565b34801561060c57600080fd5b506102d4600081565b34801561062157600080fd5b5061035c61063036600461299a565b6111d9565b34801561064157600080fd5b506102d4600281565b34801561065657600080fd5b5061035c6106653660046128c5565b61129e565b34801561067657600080fd5b506102f76106853660046129fd565b61132c565b34801561069657600080fd5b506102d46106a53660046129fd565b611414565b3480156106b657600080fd5b5061035c6106c5366004612a15565b61142b565b3480156106d657600080fd5b506102aa6106e536600461283e565b6001600160a01b0316600090815260106020526040902054600260ff9091161090565b34801561071457600080fd5b506102d47f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b34801561074857600080fd5b5061075c6107573660046129fd565b611435565b6040516102b69190612b27565b34801561077557600080fd5b506102aa610784366004612858565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b60006107bd826114f2565b92915050565b6060600380546107d290612bf6565b80601f01602080910402602001604051908101604052809291908181526020018280546107fe90612bf6565b801561084b5780601f106108205761010080835404028352916020019161084b565b820191906000526020600020905b81548152906001019060200180831161082e57829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166108d35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006108fa82610d8f565b9050806001600160a01b0316836001600160a01b031614156109845760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016108ca565b336001600160a01b03821614806109a057506109a08133610784565b610a125760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108ca565b610a1c8383611530565b505050565b610a2c335b826115ab565b610a9e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108ca565b610a1c8383836116a2565b610ab38282611887565b6000828152600160205260409020610a1c90826114dd565b6000610ad68361105a565b8210610b4a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016108ca565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b610b7d8282611916565b6000828152600160205260409020610a1c908261199e565b610bbf7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336105ad565b610c315760405162461bcd60e51b815260206004820152602a60248201527f4d6f6f73654e46543a206d75737420686176652070617573657220726f6c652060448201527f746f20756e70617573650000000000000000000000000000000000000000000060648201526084016108ca565b610c396119b3565b565b610a1c8383836040518060200160405280600081525061129e565b610c5f33610a26565b610cd15760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f7665640000000000000000000000000000000060648201526084016108ca565b610cda81611a4f565b50565b6000610ce8600b5490565b8210610d5c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016108ca565b600b8281548110610d7d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600560205260408120546001600160a01b0316806107bd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016108ca565b600280541415610e6c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108ca565b600280556064610e7b600e5490565b10610ec85760405162461bcd60e51b815260206004820152601d60248201527f4d6f6f73654e46543a206d696e74206c696d697420726561636865642100000060448201526064016108ca565b6001600160a01b038116600090815260106020526040902054600260ff9091161080610efa5750610efa6000336105ad565b610f6c5760405162461bcd60e51b815260206004820152602960248201527f4d6f6f73654e46543a206d696e74206c696d697420706572206164647265737360448201527f207265616368656421000000000000000000000000000000000000000000000060648201526084016108ca565b60006006610f79600e5490565b10610f97576812f939c99edab80000905080341015610f9757600080fd5b3415610fdf57604051733cc5d96583e9a7b3415336cf512951ae7fe24890903480156108fc02916000818181858888f19350505050158015610fdd573d6000803e3d6000fd5b505b610ff182610fec600e5490565b611b03565b610fff600e80546001019055565b6001600160a01b0382166000908152601060205260409020546110269060ff166001612b7a565b6001600160a01b03929092166000908152601060205260409020805460ff191660ff90931692909217909155506001600255565b60006001600160a01b0382166110d85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016108ca565b506001600160a01b031660009081526006602052604090205490565b61111e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336105ad565b6111905760405162461bcd60e51b815260206004820152602860248201527f4d6f6f73654e46543a206d75737420686176652070617573657220726f6c652060448201527f746f20706175736500000000000000000000000000000000000000000000000060648201526084016108ca565b610c39611c5e565b60008281526001602052604081206111b09083611ce6565b9392505050565b6060600480546107d290612bf6565b600060646111d3600e5490565b10905090565b6001600160a01b0382163314156112325760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108ca565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112a833836115ab565b61131a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108ca565b61132684848484611cf2565b50505050565b6000818152600560205260409020546060906001600160a01b03166113b95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016108ca565b60006113c3611d7b565b905060008151116113e357604051806020016040528060008152506111b0565b806113ed84611d8a565b6040516020016113fe929190612abc565b6040516020818303038152906040529392505050565b60008181526001602052604081206107bd90611ed8565b610b7d8282611ee2565b6000606482106114875760405162461bcd60e51b815260206004820152601f60248201527f4d6f6f73654e46543a20746f6b656e20646f6573206e6f74206578697374210060448201526064016108ca565b600f82815481106114a857634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff169050919050565b6114d98282611f6f565b5050565b60006111b0836001600160a01b03841661200d565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806107bd57506107bd8261205c565b6000818152600760205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061157282610d8f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166116245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108ca565b600061162f83610d8f565b9050806001600160a01b0316846001600160a01b0316148061166a5750836001600160a01b031661165f84610855565b6001600160a01b0316145b8061169a57506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166116b582610d8f565b6001600160a01b0316146117315760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016108ca565b6001600160a01b0382166117ac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108ca565b6117b78383836120ce565b6117c2600082611530565b6001600160a01b03831660009081526006602052604081208054600192906117eb908490612bb3565b90915550506001600160a01b0382166000908152600660205260408120805460019290611819908490612b62565b9091555050600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152602081905260409020600101546118a4905b336105ad565b6114cf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201527f2061646d696e20746f206772616e74000000000000000000000000000000000060648201526084016108ca565b6001600160a01b03811633146119945760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016108ca565b6114d982826120d9565b60006111b0836001600160a01b038416612158565b600d5460ff16611a055760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016108ca565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611a5a82610d8f565b9050611a68816000846120ce565b611a73600083611530565b6001600160a01b0381166000908152600660205260408120805460019290611a9c908490612bb3565b9091555050600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216611b595760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108ca565b6000818152600560205260409020546001600160a01b031615611bbe5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108ca565b611bca600083836120ce565b6001600160a01b0382166000908152600660205260408120805460019290611bf3908490612b62565b9091555050600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600d5460ff1615611cb15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016108ca565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a323390565b60006111b08383612275565b611cfd8484846116a2565b611d0984848484612324565b6113265760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108ca565b6060601180546107d290612bf6565b606081611dca57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611df45780611dde81612c31565b9150611ded9050600a83612b9f565b9150611dce565b60008167ffffffffffffffff811115611e1d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e47576020820181803683370190505b5090505b841561169a57611e5c600183612bb3565b9150611e69600a86612c4c565b611e74906030612b62565b60f81b818381518110611e9757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ed1600a86612b9f565b9450611e4b565b60006107bd825490565b600082815260208190526040902060010154611efd9061189e565b6119945760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201527f2061646d696e20746f207265766f6b650000000000000000000000000000000060648201526084016108ca565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166114d9576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611fc93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054612054575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107bd565b5060006107bd565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806120bf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107bd57506107bd82612487565b610a1c8383836124c5565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156114d9576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561226b57600061217c600183612bb3565b855490915060009061219090600190612bb3565b905060008660000182815481106121b757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106121e857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001556121ff836001612b62565b6000828152600189016020526040902055865487908061222f57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107bd565b60009150506107bd565b815460009082106122ee5760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016108ca565b82600001828154811061231157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006001600160a01b0384163b1561247c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612368903390899088908890600401612aeb565b602060405180830381600087803b15801561238257600080fd5b505af19250505080156123b2575060408051601f3d908101601f191682019092526123af91810190612a74565b60015b612462573d8080156123e0576040519150601f19603f3d011682016040523d82523d6000602084013e6123e5565b606091505b50805161245a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108ca565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061169a565b506001949350505050565b60006001600160e01b031982167f5a05180f0000000000000000000000000000000000000000000000000000000014806107bd57506107bd82612549565b6124d08383836125b0565b600d5460ff1615610a1c5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c652070617573656400000000000000000000000000000000000000000060648201526084016108ca565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806107bd57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107bd565b6001600160a01b03831661260b5761260681600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b61262e565b816001600160a01b0316836001600160a01b03161461262e5761262e8382612668565b6001600160a01b03821661264557610a1c81612705565b826001600160a01b0316826001600160a01b031614610a1c57610a1c82826127de565b600060016126758461105a565b61267f9190612bb3565b6000838152600a60205260409020549091508082146126d2576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b5460009061271790600190612bb3565b6000838152600c6020526040812054600b805493945090928490811061274d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600b838154811061277c57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b8054806127c257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006127e98361105a565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b80356001600160a01b038116811461283957600080fd5b919050565b60006020828403121561284f578081fd5b6111b082612822565b6000806040838503121561286a578081fd5b61287383612822565b915061288160208401612822565b90509250929050565b60008060006060848603121561289e578081fd5b6128a784612822565b92506128b560208501612822565b9150604084013590509250925092565b600080600080608085870312156128da578081fd5b6128e385612822565b93506128f160208601612822565b925060408501359150606085013567ffffffffffffffff80821115612914578283fd5b818701915087601f830112612927578283fd5b81358181111561293957612939612c8c565b604051601f8201601f19908116603f0116810190838211818310171561296157612961612c8c565b816040528281528a6020848701011115612979578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156129ac578182fd5b6129b583612822565b9150602083013580151581146129c9578182fd5b809150509250929050565b600080604083850312156129e6578182fd5b6129ef83612822565b946020939093013593505050565b600060208284031215612a0e578081fd5b5035919050565b60008060408385031215612a27578182fd5b8235915061288160208401612822565b60008060408385031215612a49578182fd5b50508035926020909101359150565b600060208284031215612a69578081fd5b81356111b081612ca2565b600060208284031215612a85578081fd5b81516111b081612ca2565b60008151808452612aa8816020860160208601612bca565b601f01601f19169290920160200192915050565b60008351612ace818460208801612bca565b835190830190612ae2818360208801612bca565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b1d6080830184612a90565b9695505050505050565b6020810160048310612b4957634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260006111b06020830184612a90565b60008219821115612b7557612b75612c60565b500190565b600060ff821660ff84168060ff03821115612b9757612b97612c60565b019392505050565b600082612bae57612bae612c76565b500490565b600082821015612bc557612bc5612c60565b500390565b60005b83811015612be5578181015183820152602001612bcd565b838111156113265750506000910152565b600181811c90821680612c0a57607f821691505b60208210811415612c2b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c4557612c45612c60565b5060010190565b600082612c5b57612c5b612c76565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610cda57600080fdfea2646970667358221220168cb48002d9676ea7caaa6920001de533f51e3944b7e814704bd15cdd3ef46864736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000084d6f6f736520563100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d4f4f5345000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f6e66742e656c6b2e66696e616e63652f6d617469632f636f6c6c656374696f6e312f746f6b656e732f000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000084d6f6f736520563100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d4f4f5345000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f6e66742e656c6b2e66696e616e63652f6d617469632f636f6c6c656374696f6e312f746f6b656e732f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Moose V1
Arg [1] : symbol (string): MOOSE
Arg [2] : baseTokenURI (string): https://nft.elk.finance/matic/collection1/tokens/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 4d6f6f7365205631000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 4d4f4f5345000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000031
Arg [8] : 68747470733a2f2f6e66742e656c6b2e66696e616e63652f6d617469632f636f
Arg [9] : 6c6c656374696f6e312f746f6b656e732f000000000000000000000000000000


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.