Contract 0x9ef75b412D8466B9b35F3A1Bf7a809a5C6d0Aa7C

 
 
Txn Hash
Method
Block
From
To
Value
0x981e12ce2337ffc0ab1d50e8622582e2edbfa7f049d9204efc946b5bf74e3affSafe Transfer Fr...156488962022-09-30 21:39:352 hrs 4 mins ago0x14451984659ae67feb192c41373a763281df8537 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.0013829615.78046153
0xaaa8e6a36d114618e40cb172976dbd66904c71550606e0e35a2970fd7242288eSet Approval For...156475182022-09-30 17:03:116 hrs 40 mins agoENS Name 0xkyosuke.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00101405 21.74499194
0x23f6754962550673d1c8c1030a97693b3fb280a6e6ddc1861827e99ca7e7ff59Set Approval For...156432382022-09-30 2:41:4721 hrs 2 mins ago0xe4fe6dfd36b8d12076f856d482bdd38afd6f79a6 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00065966 14.12016985
0x74156e1399c588e658418a3317d65b076936b0c42caf975b2b7bb54eb9092178Safe Transfer Fr...156423132022-09-29 23:36:111 day 7 mins ago0x9cefd6dea5eae107dc3b1fcec33059da7a8d597e IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00090253 10.29984015
0x1419047cbf99af5cded40fbc245eb1c0268c327f838710c3afc89f60a91fa9c6Safe Transfer Fr...156420392022-09-29 22:41:231 day 1 hr agoENS Name jasonmeinzer.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00096166 11.20910175
0x6c4c7b5af53384b96fcdba7f513f47f55b700c8001ec2c4aca03de1fb6aa4e80Safe Transfer Fr...156413322022-09-29 20:18:231 day 3 hrs ago0xeec0b04b5f0d96a2a6a0c31c669a5ec738ee1fe8 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00261982 30.54089902
0x4f44b9708fd4fd5176d6945fa8719d74389eaf01f08137f0307bc374928c32c8Safe Transfer Fr...156411902022-09-29 19:49:351 day 3 hrs ago0xeec0b04b5f0d96a2a6a0c31c669a5ec738ee1fe8 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00134559 14.87862906
0x67baf7acdfd3deeed141ad61410fdd0ed099bef803aeabccba10e6e526b2ec81Set Approval For...156399622022-09-29 15:42:231 day 8 hrs ago0x62b31d8934a04f1243e1674c4aad21091e2737b3 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00090747 19.45950979
0xdc4a7247cc2c1838dce27a99186f75e5e2ca06a51a7cabf4f75ed4fea1490496Safe Transfer Fr...156396472022-09-29 14:38:591 day 9 hrs ago0x9cefd6dea5eae107dc3b1fcec33059da7a8d597e IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00253273 25.81976582
0x1981046bd512181776e840e09c87ce9c013085b4a1d5f78c34ed5214afeb2956Safe Transfer Fr...156373502022-09-29 6:56:111 day 16 hrs agoENS Name jasonmeinzer.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00105152 10.4234242
0xe3ab0e5c03baa3f36429a9339161ad0d1e1621076f3176e6fbc1d42c264d64e0Set Approval For...156359932022-09-29 2:23:111 day 21 hrs agoENS Name fallingwedge.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00048481 10.39625543
0x122e95257b0d61d0b4021fb816c1a0a99a4e42fb803f448fbfb7145b8ae3325fSet Approval For...156355692022-09-29 0:58:231 day 22 hrs ago0x73bcd8e9bbd2c18e8473e46c56cc5a9b798f36f2 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00039001 8.36336673
0x6a6d95cf657485c80f641fb675936201c70f76e5a2ebc713325e8f120d3feb08Set Approval For...156344982022-09-28 21:23:112 days 2 hrs ago0xd2dd1da988be017b92ef478f70ea99493379634b IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00052177 11.1886469
0x0bf79f4161d6dcedbd262589cf40f6965dafdcc3c22a052d6b950d6b7c5eb80bSet Approval For...156341932022-09-28 20:21:592 days 3 hrs ago0x0bcf236552fa88c15cafacc927dacd684aac34cf IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.0006189 13.24761564
0xd69a40f21a7269728adf44dbb6a691d9e25ea7760ded3861b9173f2526d37e19Set Approval For...156340202022-09-28 19:46:592 days 3 hrs agoENS Name deg3ntastic.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00069622 14.9026605
0xbb7a9bca3b1178a0b8035d9b9e3ec11da992cee22b556725b794be7bd0df81f2Set Approval For...156331632022-09-28 16:54:592 days 6 hrs ago0xca339bd4739227f71b646f8b23ca098c86f6c3a5 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00073552 15.74402522
0x970a151323cdb1158340ffd7e8b49236771fef580d8a881d46d64ea1872e6f49Safe Transfer Fr...156311802022-09-28 10:16:112 days 13 hrs ago0x1deb8c0e50b2368a385b1d2811ca7e41c999119e IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.0008574 9.48182617
0xce8849d60ac6b5776c4ffc40bfa61e7a91f27af1ff3c31d00e31ab7c68c55997Safe Transfer Fr...156311762022-09-28 10:15:232 days 13 hrs ago0x1deb8c0e50b2368a385b1d2811ca7e41c999119e IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00091374 10.10350839
0xc96e1816c2493bf81e1671e2ebed6baad64fe609f86f523ca2bc8c19c31c0b4fSafe Transfer Fr...156306312022-09-28 8:26:112 days 15 hrs ago0xe66e1e9e37e4e148b21eb22001431818e980d060 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00118672 13.54117638
0xbff26d95a89ec8b5f6a72c839ff0308fad549f38f1e5e366663ade73cf7a4315Set Approval For...156306002022-09-28 8:19:592 days 15 hrs ago0x77836cc3aef05a57a1f9e0841cab14bef1601796 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00083247 17.85131038
0xda9b6e6caeb83930424d7720dd81588e4301532b944ff5237af30113e274140cSafe Transfer Fr...156305872022-09-28 8:17:232 days 15 hrs ago0x77836cc3aef05a57a1f9e0841cab14bef1601796 IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00165963 16.91903913
0x7e3df49e9b2cc16494ec249d299160d9fb77340b63ed1e4312b9fb96ef04408bSafe Transfer Fr...156301732022-09-28 6:54:232 days 16 hrs agoENS Name arnaldo.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00082562 10.95894598
0x4a13260e81bd78786c67a23dc3f46864fcf1f7540412dbe164bbd099e7d03a93Set Approval For...156254032022-09-27 14:52:113 days 8 hrs agoENS Name silass.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00161949 34.72784502
0x94ca850b1c420b870eac0162ee238e18f8c5fe7181e3cc1b78e2d28838e96e29Set Approval For...156237682022-09-27 9:22:233 days 14 hrs agoENS Name mrtrapie.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00041225 8.84030796
0x3026946d5c7d82eab8f61434ca286073c986d6810b2071bb31aa980dfad04e01Set Approval For...156217082022-09-27 2:27:473 days 21 hrs agoENS Name guttersnipe.eth IN  0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0 Ether0.00053778 11.53195361
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6b0543873f4a5e082863621b14a88ac357aa62f4bc340b9ea05a691b583cfc56155899532022-09-22 16:04:358 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x4fb7723a1136170623318e3df08cd6f96956dcd9973fe7b46b4d41bbb96c84bf155899512022-09-22 16:04:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x81efc3420b1ecd0bad24ee8910a75c70a78583458aa6bdc1827b916b70bd100c155899512022-09-22 16:04:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0xd8a40b25ef23e969699d44d659ac11e51839a55a4c84bc47b746b38f88550ce9155899512022-09-22 16:04:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x0aac9b46b1943c6e1a4e290114d17ba54cb19daf7c1f70523d47bb6837dde743155899512022-09-22 16:04:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0xfa17fe50e15282ddf1dfbf30dfa74cfc5d5ab510d890a407a007a8f87e77d237155899502022-09-22 16:03:598 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x98d2133cf6b77abe6540b67ed3dab4897ef0a085e95dc47f19d59ac94842cffa155899502022-09-22 16:03:598 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x7c60321976c25fe08c1a8677f8a0080cff4f2f38191d60eb6ca6a375daf496d1155899502022-09-22 16:03:598 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x9008d6871b3d9440df2424cd01a6a0a32a1d4c0f7204cf2d71469f4eedec2e3b155899502022-09-22 16:03:598 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x2ec857ebddbe2c2574f5e2004e6baa4b082a06d94bddd78169356fb0154be89e155899482022-09-22 16:03:358 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x1b722efb4e66f08514debceffe4a4d57dcab94ecef4f792e071cef81c699cf6e155899482022-09-22 16:03:358 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x9fee78d6f581a90bb7a2add6490598d842ca7039da115d2422f6ed0a84b7e1cb155899472022-09-22 16:03:238 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x31bd38f777f02b72fac655e7067572b0345381188b4e7c83a0e483b744d17143155899472022-09-22 16:03:238 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.17 Ether
0x4fe469edafcfd11bdf62f93237944d0c0a81e77692c820c748c8f400e7d35949155899472022-09-22 16:03:238 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.17 Ether
0xe1e43efb54fe5e79b74c4ad25876744d314804fdf5aacc74e0fe27fc51770c2b155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.17 Ether
0x2eff2292e86aa914e4a5ef1231b62056eb58331e7a1e5b3beb9421b7399c4722155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.17 Ether
0x729bc5946b9c359ddb59b6c6115db26eaf302d779eb84d88c8c3b3680ee6e869155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0xeea703b1ebda2d9396b8083cfa4b6335daad9a030f582da40bf884bfa4562431155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x052490eaf3e6b2b7bca0d9614bbbfd2d7d6d681defa2e054be4489efe0a01d25155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x128cae27afbd123afbfbeff2fed69a2f9950e2f5c5ec9c19ec46cedb837b1e52155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.17 Ether
0xafc471ac8672c7954f4f9edba2fe92e75d1b4399c81211aace60d84702c522d7155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x00c8792d51d9d1fe0ffa7998b499f811f1f4b15e8862d1234bd2758d7dfdb1b0155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x6c7542b2effc336ab57376d6c69dc890337b8f70f1748adcf81d854c9a591d32155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.17 Ether
0x868054108c66d6ea93024700403348a717f7f6a4e76d0efe511678163b0db3dd155899462022-09-22 16:03:118 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
0x2d8e0fb64d64e884e5f0910442a8bee0739faacca4cd1caa757bcbdcdb5f30c4155899452022-09-22 16:02:598 days 7 hrs ago 0x9ef75b412d8466b9b35f3a1bf7a809a5c6d0aa7c0x7bed83806f969942431825588b6bd389a3cedf750.085 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Another721

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : Another721.sol
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ████████████████████████          ██████████
//                            ████████████████████████          ██████████
//                            ████████████████████████          ██████████
//                            ████████████████████████          ██████████
//                                                    ████████████████████
//                                                    ████████████████████
//                                                    ████████████████████
//                                                    ████████████████████
//
//
//  █████╗ ███╗   ██╗ ██████╗ ████████╗██╗  ██╗███████╗██████╗ ██████╗ ██╗      ██████╗  ██████╗██╗  ██╗
// ██╔══██╗████╗  ██║██╔═══██╗╚══██╔══╝██║  ██║██╔════╝██╔══██╗██╔══██╗██║     ██╔═══██╗██╔════╝██║ ██╔╝
// ███████║██╔██╗ ██║██║   ██║   ██║   ███████║█████╗  ██████╔╝██████╔╝██║     ██║   ██║██║     █████╔╝
// ██╔══██║██║╚██╗██║██║   ██║   ██║   ██╔══██║██╔══╝  ██╔══██╗██╔══██╗██║     ██║   ██║██║     ██╔═██╗
// ██║  ██║██║ ╚████║╚██████╔╝   ██║   ██║  ██║███████╗██║  ██║██████╔╝███████╗╚██████╔╝╚██████╗██║  ██╗
// ╚═╝  ╚═╝╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝╚═╝  ╚═╝
//
/**
 * @title Another721
 * @author Anotherblock Technical Team
 * @notice Anotherblock NFT contract
 **/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import './ERC721AB.sol';

contract Another721 is ERC721AB {
    // Base Token URI
    string private baseTokenURI;

    /**
     * @notice
     *  Another721 contract constructor
     *
     * @param _anotherblock : Anotherblock contract address
     * @param _baseUri : base token URI
     * @param _name : name of the NFT contract
     * @param _symbol : symbol / ticker of the NFT contract
     **/
    constructor(
        address _anotherblock,
        string memory _baseUri,
        string memory _name,
        string memory _symbol
    ) ERC721AB(_anotherblock, _name, _symbol) {
        // Sets the base token URI
        baseTokenURI = _baseUri;
    }

    //     ______     __                        __   ______                 __  _
    //    / ____/  __/ /____  _________  ____ _/ /  / ____/_  ______  _____/ /_(_)___  ____  _____
    //   / __/ | |/_/ __/ _ \/ ___/ __ \/ __ `/ /  / /_  / / / / __ \/ ___/ __/ / __ \/ __ \/ ___/
    //  / /____>  </ /_/  __/ /  / / / / /_/ / /  / __/ / /_/ / / / / /__/ /_/ / /_/ / / / (__  )
    // /_____/_/|_|\__/\___/_/  /_/ /_/\__,_/_/  /_/    \__,_/_/ /_/\___/\__/_/\____/_/ /_/____/

    /**
     * @notice
     *  Let a whitelisted user mint `_quantity` token(s) of the given `_dropId`
     *
     * @param _to : address to receive the token
     * @param _dropId : drop identifier
     * @param _quantity : amount of tokens to be minted
     * @param _proof : merkle tree proof used to verify whitelisted user
     */
    function mint(
        address _to,
        uint256 _dropId,
        uint256 _quantity,
        bytes32[] memory _proof
    ) external payable {
        _mintAB(_to, _dropId, _quantity, _proof);
    }

    /**
     * @notice
     *  Let a user mint `_quantity` token(s) of the given `_dropId`
     *
     * @param _userWallet : address to receive the token
     * @param _quantity : amount of tokens to be minted
     * @param _tokenId : drop identifier
     */
    function claimTo(
        address _userWallet,
        uint256 _quantity,
        uint256 _tokenId
    ) external payable {
        bytes32[] memory emptyBytes;

        _mintAB(_userWallet, _tokenId, _quantity, emptyBytes);
    }

    /**
     * @notice
     *  Returns the remaining supply for a given `_dropId`
     *
     * @param _tokenId : drop identifier
     * @return unclaimedSupply : the remaining supply to be minted for `_dropId`
     */
    function unclaimedSupply(uint256 _tokenId) public view returns (uint256) {
        IABDropManager.Drop memory drop = IABDropManager(anotherblock).drops(
            _tokenId
        );

        return drop.tokenInfo.supply - drop.sold;
    }

    /**
     * @notice
     *  Returns the mint price for a given `_dropId`
     *
     * @param _tokenId : drop identifier
     * @return price : the mint price for `_dropId`
     */
    function price(uint256 _tokenId) public view returns (uint256) {
        IABDropManager.Drop memory drop = IABDropManager(anotherblock).drops(
            _tokenId
        );
        return drop.tokenInfo.price;
    }

    /**
     * @notice
     *  Returns the reason why `_to` cannot mint `_quantity` token from `_dropId`
     *
     * @param _userWallet : wallet to receive the minted NFT(s)
     * @param _quantity : quantity to be minted
     * @param _tokenId : drop identifier
     * @return reason : the reason why the user cannot mint
     */
    function getClaimIneligibilityReason(
        address _userWallet,
        uint256 _quantity,
        uint256 _tokenId
    ) public view returns (string memory) {
        IABDropManager.Drop memory drop = IABDropManager(anotherblock).drops(
            _tokenId
        );

        // Check if the drop is not sold-out
        if (drop.sold == drop.tokenInfo.supply) return 'DropSoldOut';

        // Check that the whitelisted sale started
        if (block.timestamp < drop.salesInfo.privateSaleTime)
            return 'SaleNotStarted';

        // Check that there are enough tokens available for sale
        if (drop.sold + _quantity > drop.tokenInfo.supply)
            return 'NotEnoughTokensAvailable';

        if (
            drop.merkleRoot != 0x0 &&
            block.timestamp < drop.salesInfo.publicSaleTime
        ) {
            // Check that user did not mint the maximum amount per address for the private sale
            if (
                mintedPerDropPrivateSale[drop.dropId][_userWallet] + _quantity >
                drop.salesInfo.privateSaleMaxMint
            ) return 'MaxMintPerAddress';
        } else {
            // Check that user did not mint the maximum amount per address for the public sale
            if (
                mintedPerDropPublicSale[drop.dropId][_userWallet] + _quantity >
                drop.salesInfo.publicSaleMaxMint
            ) return 'MaxMintPerAddress';
        }
        return '';
    }

    /**
     * @notice
     *  Withdraw mint proceeds to Anotherblock Treasury address
     *
     */
    function withdrawAll() external {
        payable(IABDropManager(anotherblock).treasury()).transfer(
            address(this).balance
        );
    }

    //
    //     ____        __         ____                              ______                 __  _
    //    / __ \____  / /_  __   / __ \_      ______  ___  _____   / ____/_  ______  _____/ /_(_)___  ____  _____
    //   / / / / __ \/ / / / /  / / / / | /| / / __ \/ _ \/ ___/  / /_  / / / / __ \/ ___/ __/ / __ \/ __ \/ ___/
    //  / /_/ / / / / / /_/ /  / /_/ /| |/ |/ / / / /  __/ /     / __/ / /_/ / / / / /__/ /_/ / /_/ / / / (__  )
    //  \____/_/ /_/_/\__, /   \____/ |__/|__/_/ /_/\___/_/     /_/    \__,_/_/ /_/\___/\__/_/\____/_/ /_/____/
    //               /____/

    /**
     * @notice
     *  Update the Base URI
     *  Only the contract owner can perform this operation
     *
     * @param _newBaseURI : new base URI
     */
    function setBaseURI(string calldata _newBaseURI) external onlyOwner {
        baseTokenURI = _newBaseURI;
    }

    //     ____      __                        __   ______                 __  _
    //    /  _/___  / /____  _________  ____ _/ /  / ____/_  ______  _____/ /_(_)___  ____  _____
    //    / // __ \/ __/ _ \/ ___/ __ \/ __ `/ /  / /_  / / / / __ \/ ___/ __/ / __ \/ __ \/ ___/
    //  _/ // / / / /_/  __/ /  / / / / /_/ / /  / __/ / /_/ / / / / /__/ /_/ / /_/ / / / (__  )
    // /___/_/ /_/\__/\___/_/  /_/ /_/\__,_/_/  /_/    \__,_/_/ /_/\___/\__/_/\____/_/ /_/____/

    /**
     * @notice
     *  Returns the base URI
     *
     * @return baseTokenURI base token URI state
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }
}

File 2 of 20 : ERC721AB.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import './interfaces/IABDropManager.sol';
import './interfaces/IERC721AB.sol';
import './ERC721ABErrors.sol';

import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165Checker.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165Storage.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import {MerkleProof} from '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

contract ERC721AB is ERC721Enumerable, ERC721ABErrors, ERC165Storage, Ownable {
    // AnotherblockV1 address
    address public anotherblock;

    // Denominator used to calculate fees
    uint256 private constant DENOMINATOR = 1e6;

    // Stores the drop ID for a given Token ID
    mapping(uint256 => uint256) public dropIdPerToken;

    // Stores the amounts of tokens minted per address and per drop for the public sale
    mapping(uint256 => mapping(address => uint256))
        public mintedPerDropPublicSale;

    // Stores the amounts of tokens minted per address and per drop for the private sale
    mapping(uint256 => mapping(address => uint256))
        public mintedPerDropPrivateSale;

    /**
     * @notice
     *  ERC721AB contract constructor
     *
     * @param _anotherblock : Anotherblock contract address
     * @param _name : name of the NFT contract
     * @param _symbol : symbol / ticker of the NFT contract
     **/
    constructor(
        address _anotherblock,
        string memory _name,
        string memory _symbol
    ) ERC721(_name, _symbol) {
        // Check that _anotherblock address matches IABDropManager interface
        if (
            !ERC165Checker.supportsInterface(
                _anotherblock,
                type(IABDropManager).interfaceId
            )
        ) revert IncorrectInterface();
        anotherblock = _anotherblock;

        // Grant the DEFAULT_ADMIN_ROLE to the contract deployer
        _registerInterface(type(IERC721AB).interfaceId);
    }

    //     ______     __                        __   ______                 __  _
    //    / ____/  __/ /____  _________  ____ _/ /  / ____/_  ______  _____/ /_(_)___  ____  _____
    //   / __/ | |/_/ __/ _ \/ ___/ __ \/ __ `/ /  / /_  / / / / __ \/ ___/ __/ / __ \/ __ \/ ___/
    //  / /____>  </ /_/  __/ /  / / / / /_/ / /  / __/ / /_/ / / / / /__/ /_/ / /_/ / / / (__  )
    // /_____/_/|_|\__/\___/_/  /_/ /_/\__,_/_/  /_/    \__,_/_/ /_/\___/\__/_/\____/_/ /_/____/

    /**
     * @notice
     *  Return an array containing the token IDs owned by the given address
     *
     * @param _owner : owner address
     * @return result : array containing all the token IDs owned by `_owner`
     */
    function tokensOfOwner(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);
        // If _owner doesnt own any tokens, return an empty array
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            for (uint256 index = 0; index < tokenCount; ++index) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

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

    //
    //     ____        __         ____                              ______                 __  _
    //    / __ \____  / /_  __   / __ \_      ______  ___  _____   / ____/_  ______  _____/ /_(_)___  ____  _____
    //   / / / / __ \/ / / / /  / / / / | /| / / __ \/ _ \/ ___/  / /_  / / / / __ \/ ___/ __/ / __ \/ __ \/ ___/
    //  / /_/ / / / / / /_/ /  / /_/ /| |/ |/ / / / /  __/ /     / __/ / /_/ / / / / /__/ /_/ / /_/ / / / (__  )
    //  \____/_/ /_/_/\__, /   \____/ |__/|__/_/ /_/\___/_/     /_/    \__,_/_/ /_/\___/\__/_/\____/_/ /_/____/
    //               /____/

    /**
     * @notice
     *  Update anotherblock address
     *  Only the contract owner can perform this operation
     *
     * @param _anotherblock : new anotherblock address
     */
    function setAnotherblock(address _anotherblock) external onlyOwner {
        // Check that the new address corresponds to IABDropManager interface
        if (
            !ERC165Checker.supportsInterface(
                _anotherblock,
                type(IABDropManager).interfaceId
            )
        ) revert IncorrectInterface();
        anotherblock = _anotherblock;
    }

    //     ____      __                        __   ______                 __  _
    //    /  _/___  / /____  _________  ____ _/ /  / ____/_  ______  _____/ /_(_)___  ____  _____
    //    / // __ \/ __/ _ \/ ___/ __ \/ __ `/ /  / /_  / / / / __ \/ ___/ __/ / __ \/ __ \/ ___/
    //  _/ // / / / /_/  __/ /  / / / / /_/ / /  / __/ / /_/ / / / / /__/ /_/ / /_/ / / / (__  )
    // /___/_/ /_/\__/\___/_/  /_/ /_/\__,_/_/  /_/    \__,_/_/ /_/\___/\__/_/\____/_/ /_/____/

    /**
     * @notice
     *  Let a whitelisted user mint `_quantity` token(s) of the given `_dropId`
     *
     * @param _dropId : drop identifier
     * @param _quantity : amount of tokens to be minted
     * @param _proof : merkle tree proof used to verify whitelisted user
     */
    function _mintAB(
        address _to,
        uint256 _dropId,
        uint256 _quantity,
        bytes32[] memory _proof
    ) internal virtual {
        IABDropManager.Drop memory drop = IABDropManager(anotherblock).drops(
            _dropId
        );

        // Check if the drop is not sold-out
        if (drop.sold == drop.tokenInfo.supply) revert DropSoldOut();

        // Check that the whitelisted sale started
        if (block.timestamp < drop.salesInfo.privateSaleTime)
            revert SaleNotStarted();

        // Check that there are enough tokens available for sale
        if (drop.sold + _quantity > drop.tokenInfo.supply)
            revert NotEnoughTokensAvailable();

        // Check that user is sending the correct amount of ETH (will revert if user send too much or not enough)
        if (msg.value != drop.tokenInfo.price * _quantity)
            revert IncorrectETHSent();

        // Check that user is whitelisted in case the public sale did not start yet
        if (
            drop.merkleRoot != 0x0 &&
            block.timestamp < drop.salesInfo.publicSaleTime
        ) {
            // Check that user did not mint the maximum amount per address for the private sale
            if (
                mintedPerDropPrivateSale[drop.dropId][_to] + _quantity >
                drop.salesInfo.privateSaleMaxMint
            ) revert MaxMintPerAddress();

            bool isWhitelisted = MerkleProof.verify(
                _proof,
                drop.merkleRoot,
                keccak256(abi.encodePacked(_to))
            );

            // Revert if user is not whitelisted
            if (!isWhitelisted) {
                revert NotInMerkle();
            }

            mintedPerDropPrivateSale[drop.dropId][_to] += _quantity;
        } else {
            // Check that user did not mint the maximum amount per address for the public sale
            if (
                mintedPerDropPublicSale[drop.dropId][_to] + _quantity >
                drop.salesInfo.publicSaleMaxMint
            ) revert MaxMintPerAddress();
            mintedPerDropPublicSale[drop.dropId][_to] += _quantity;
        }

        uint256 currentDropTokenIndex = drop.firstTokenIndex + drop.sold;
        for (uint256 i = 0; i < _quantity; ++i) {
            dropIdPerToken[currentDropTokenIndex + i] = drop.dropId;
            _safeMint(_to, currentDropTokenIndex + i);
        }

        IABDropManager(anotherblock).updateDropCounter(_dropId, _quantity);

        // Send Right Holder Fee to the owner address
        if (msg.value > 0) {
            uint256 feeToRightHolder = (msg.value * drop.rightHolderFee) /
                DENOMINATOR;
            if (feeToRightHolder > 0) {
                payable(drop.owner).transfer(feeToRightHolder);
            }
        }
    }

    /**
     * @dev See {ERC721Enumerable-beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }
}

File 3 of 20 : IABDropManager.sol
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████    
//                            ████████████████████████          ██████████        
//                            ████████████████████████          ██████████        
//                            ████████████████████████          ██████████        
//                            ████████████████████████          ██████████        
//                                                    ████████████████████ 
//                                                    ████████████████████ 
//                                                    ████████████████████            
//                                                    ████████████████████
//
//
//  █████╗ ███╗   ██╗ ██████╗ ████████╗██╗  ██╗███████╗██████╗ ██████╗ ██╗      ██████╗  ██████╗██╗  ██╗
// ██╔══██╗████╗  ██║██╔═══██╗╚══██╔══╝██║  ██║██╔════╝██╔══██╗██╔══██╗██║     ██╔═══██╗██╔════╝██║ ██╔╝
// ███████║██╔██╗ ██║██║   ██║   ██║   ███████║█████╗  ██████╔╝██████╔╝██║     ██║   ██║██║     █████╔╝ 
// ██╔══██║██║╚██╗██║██║   ██║   ██║   ██╔══██║██╔══╝  ██╔══██╗██╔══██╗██║     ██║   ██║██║     ██╔═██╗ 
// ██║  ██║██║ ╚████║╚██████╔╝   ██║   ██║  ██║███████╗██║  ██║██████╔╝███████╗╚██████╔╝╚██████╗██║  ██╗
// ╚═╝  ╚═╝╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝╚═╝  ╚═╝                                                                                             
//
/**
 * @title IABDropManager
 * @author Anotherblock Technical Team
 * @notice ABDropManager Interface
 **/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IABDropManager {
    /**
     * @notice
     *  Drop Structure format
     *
     * @param dropId : drop unique identifier
     * @param sold : total number of sold tokens for this drop (accross all associated tokenId)
     * @param rightHolderFee : right Holder fee on each mint expressed in basis point
     * @param firstTokenIndex : TokenId at which this drop starts
     * @param salesInfo : Sale Info struct defining the private and public sales opening date
     * @param tokenInfo : Token Info struct defining the token information (see TokenInfo structure)
     * @param currencyPayout : address of the currency used for the royalty payout (zero-address if ETH)
     * @param owner : right holder address
     * @param nft :  NFT contract address
     * @param merkleRoot : merkle tree root used for whitelist
     */
    struct Drop {
        uint256 dropId;
        uint256 sold;
        uint256 rightHolderFee;
        uint256 firstTokenIndex;
        TokenInfo tokenInfo;
        SaleInfo salesInfo;
        address currencyPayout;
        address owner;
        address nft;
        bytes32 merkleRoot;
    }

    /**
     * @notice
     *  TokenInfo Structure format
     *
     * @param price : initial price in ETH(?) of 1 token
     * @param supply : total number of tokens for this drop (accross all associated tokenId)
     * @param royaltySharePerToken : total percentage of royalty evenly distributed among tokens holders
     */
    struct TokenInfo {
        uint256 price;
        uint256 supply;
        uint256 royaltySharePerToken;
    }

    /**
     * @notice
     *  SaleInfo Structure format
     *
     * @param privateSaleMaxMint : Maximum number of token to be minted per address for the private sale
     * @param privateSaleTime : timestamp at which the private sale is opened
     * @param publicSaleMaxMint : Maximum number of token to be minted per address for the public sale
     * @param publicSaleTime : timestamp at which the public sale is opened
     */
    struct SaleInfo {
        uint256 privateSaleMaxMint;
        uint256 privateSaleTime;
        uint256 publicSaleMaxMint;
        uint256 publicSaleTime;
    }

    /**
     * @notice
     *  Returns Anotherblock Treasury address
     *
     */
    function treasury() external view returns (address);

    /**
     * @notice
     *  Returns the drop `_dropId`
     *
     * @param _dropId : drop identifier
     */
    function drops(uint256 _dropId) external view returns (Drop memory);

    /**
     * @notice
     *  Create a Drop
     *
     * @param _owner : right holder address
     * @param _nft : NFT contract address
     * @param _price : initial price in ETH(?) of 1 NFT
     * @param _supply : total number of NFT for this drop (accross all associated tokenId)
     * @param _royaltySharePerToken : total percentage of royalty evenly distributed among NFT holders
     * @param _rightHolderFee : right Holder fee on each mint expressed in basis point
     * @param _maxAmountPerAddress : Maximum number of token to be minted per address
     * @param _salesInfo : Array of Timestamps at which the private and public sales are opened (in seconds)
     * @param _merkle : merkle tree root used for whitelist
     */
    function create(
        address _owner,
        address _nft,
        uint256 _price,
        uint256 _supply,
        uint256 _royaltySharePerToken,
        uint256 _rightHolderFee,
        uint256 _maxAmountPerAddress,
        uint256[2] calldata _salesInfo,
        bytes32 _merkle
    ) external;

    function updateDropCounter(uint256 _dropId, uint256 _quantity) external;

    /**
     * @notice
     *  Update the treasury address
     *  Only the contract owner can perform this operation
     *
     * @param _newTreasury : new treasury address
     */
    function setTreasury(address _newTreasury) external;

    /**
     * @notice
     *  Update the Drop `_dropId` sale information
     *  Only the contract owner can perform this operation
     *
     * @param _dropId :  drop identifier of the drop to be updated
     * @param _saleInfo : array containing the new informations to be updated
     */
    function setSalesInfo(uint256 _dropId, uint256[4] calldata _saleInfo)
        external;

    /**
     * @notice
     *  Update the Drop `_dropId` drop information
     *  Only the contract owner can perform this operation
     *
     * @param _dropId :  drop identifier of the drop to be updated
     * @param _rightHolderFee : fees paid to right holder
     * @param _owner : right holder address
     */
    function setRightHolderInfo(
        uint256 _dropId,
        uint256 _rightHolderFee,
        address _owner
    ) external;

    /**
     * @notice
     *  Update the Drop `_dropId` token information
     *  Only the contract owner can perform this operation
     *
     *  Return true if `tokenCount` and `supply` are updated, false otherwise
     *
     * @param _dropId :  drop identifier of the drop to be updated
     * @param _tokenInfo : array containing the new informations to be updated
     */
    function setTokenInfo(uint256 _dropId, uint256[3] calldata _tokenInfo)
        external
        returns (bool);
}

File 4 of 20 : IERC721AB.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IERC721AB {
    /**
     * @notice
     *  Update anotherblock address
     *  Revoke the AB_ROLE from the previous anotherblock address
     *  Grant the AB_ROLE role to the new address
     *  Only DEFAULT_ADMIN_ROLE can perform this operation
     *
     * @param _anotherblock : new anotherblock address
     */
    function setAnotherblock(address _anotherblock) external;

    /**
     * @notice
     *  Return an array containing the token IDs owned by the given address
     *
     * @param _owner : owner address
     * @return result : array containing all the token IDs owned by `_owner`
     */
    function tokensOfOwner(address _owner)
        external
        view
        returns (uint256[] memory);
}

File 5 of 20 : ERC721ABErrors.sol
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████
//                            ██████████████████████████████████    
//                            ████████████████████████          ██████████        
//                            ████████████████████████          ██████████        
//                            ████████████████████████          ██████████        
//                            ████████████████████████          ██████████        
//                                                    ████████████████████ 
//                                                    ████████████████████ 
//                                                    ████████████████████            
//                                                    ████████████████████
//
//
//  █████╗ ███╗   ██╗ ██████╗ ████████╗██╗  ██╗███████╗██████╗ ██████╗ ██╗      ██████╗  ██████╗██╗  ██╗
// ██╔══██╗████╗  ██║██╔═══██╗╚══██╔══╝██║  ██║██╔════╝██╔══██╗██╔══██╗██║     ██╔═══██╗██╔════╝██║ ██╔╝
// ███████║██╔██╗ ██║██║   ██║   ██║   ███████║█████╗  ██████╔╝██████╔╝██║     ██║   ██║██║     █████╔╝ 
// ██╔══██║██║╚██╗██║██║   ██║   ██║   ██╔══██║██╔══╝  ██╔══██╗██╔══██╗██║     ██║   ██║██║     ██╔═██╗ 
// ██║  ██║██║ ╚████║╚██████╔╝   ██║   ██║  ██║███████╗██║  ██║██████╔╝███████╗╚██████╔╝╚██████╗██║  ██╗
// ╚═╝  ╚═╝╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝╚═╝  ╚═╝                                                                                             
//
/**
 * @title ERC721ABErrors
 * @author Anotherblock Technical Team
 * @notice ERC721AB Custom Errors contract
 **/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

contract ERC721ABErrors {
    /**
    @notice Error returned if the drop is sold-out
    **/
    error DropSoldOut();

    /**
    @notice Error returned if the whitelist sale has not started yet
    **/
    error SaleNotStarted();

    /**
    @notice Error returned if user attempt to mint more than allowed by the drop
    **/
    error MaxMintPerAddress();

    /**
    @notice Error returned if the supply is sold out
    **/
    error NotEnoughTokensAvailable();

    /**
    @notice Error returned if user did not send the correct amount of ETH
    **/
    error IncorrectETHSent();

    /**
    @notice Error returned if non-whitelisted user attempts to mint prior to public sale  
    **/
    error NotInMerkle();

    /**
    @notice Error returned if the contract passed as parameters does not implement the expected interface  
    **/
    error IncorrectInterface();

    /**
    @notice Error returned if there are no ETH to withdraw from the contract
    **/
    error NothingToWithdraw();
}

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 7 of 20 : ERC165Checker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.2) (utils/introspection/ERC165Checker.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return
            _supportsERC165Interface(account, type(IERC165).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) && _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds)
        internal
        view
        returns (bool[] memory)
    {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        // prepare call
        bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId);

        // perform static call
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly {
            success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0x00)
        }

        return success && returnSize >= 0x20 && returnValue > 0;
    }
}

File 8 of 20 : ERC165Storage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol)

pragma solidity ^0.8.0;

import "./ERC165.sol";

/**
 * @dev Storage based implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

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

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

File 9 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 10 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

File 12 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 19 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 20 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_anotherblock","type":"address"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DropSoldOut","type":"error"},{"inputs":[],"name":"IncorrectETHSent","type":"error"},{"inputs":[],"name":"IncorrectInterface","type":"error"},{"inputs":[],"name":"MaxMintPerAddress","type":"error"},{"inputs":[],"name":"NotEnoughTokensAvailable","type":"error"},{"inputs":[],"name":"NotInMerkle","type":"error"},{"inputs":[],"name":"NothingToWithdraw","type":"error"},{"inputs":[],"name":"SaleNotStarted","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"anotherblock","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"_userWallet","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dropIdPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_userWallet","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getClaimIneligibilityReason","outputs":[{"internalType":"string","name":"","type":"string"}],"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"},{"internalType":"uint256","name":"_dropId","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"mintedPerDropPrivateSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"mintedPerDropPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_anotherblock","type":"address"}],"name":"setAnotherblock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unclaimedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620056e7380380620056e78339818101604052810190620000379190620005cd565b838282818181600090805190602001906200005492919062000494565b5080600190805190602001906200006d92919062000494565b50505062000090620000846200019660201b60201c565b6200019e60201b60201c565b620000c7837fc35b3779000000000000000000000000000000000000000000000000000000006200026460201b620018b81760201c565b620000fe576040517f16fab9ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001707f11865f78000000000000000000000000000000000000000000000000000000006200029a60201b60201c565b50505082601090805190602001906200018b92919062000494565b50505050506200091f565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600062000277836200037360201b60201c565b8015620002925750620002918383620003d160201b60201c565b5b905092915050565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000306576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002fd90620006d9565b60405180910390fd5b6001600a6000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000620003a7827f01ffc9a700000000000000000000000000000000000000000000000000000000620003d160201b60201c565b8015620003ca5750620003c88263ffffffff60e01b620003d160201b60201c565b155b9050919050565b6000806301ffc9a760e01b83604051602401620003ef9190620006bc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d915060005190508280156200047b575060208210155b8015620004885750600081115b94505050505092915050565b828054620004a29062000801565b90600052602060002090601f016020900481019282620004c6576000855562000512565b82601f10620004e157805160ff191683800117855562000512565b8280016001018555821562000512579182015b8281111562000511578251825591602001919060010190620004f4565b5b50905062000521919062000525565b5090565b5b808211156200054057600081600090555060010162000526565b5090565b60006200055b620005558462000724565b620006fb565b9050828152602081018484840111156200057457600080fd5b62000581848285620007cb565b509392505050565b6000815190506200059a8162000905565b92915050565b600082601f830112620005b257600080fd5b8151620005c484826020860162000544565b91505092915050565b60008060008060808587031215620005e457600080fd5b6000620005f48782880162000589565b945050602085015167ffffffffffffffff8111156200061257600080fd5b6200062087828801620005a0565b935050604085015167ffffffffffffffff8111156200063e57600080fd5b6200064c87828801620005a0565b925050606085015167ffffffffffffffff8111156200066a57600080fd5b6200067887828801620005a0565b91505092959194509250565b6200068f816200077f565b82525050565b6000620006a4601c836200075a565b9150620006b182620008dc565b602082019050919050565b6000602082019050620006d3600083018462000684565b92915050565b60006020820190508181036000830152620006f48162000695565b9050919050565b6000620007076200071a565b905062000715828262000837565b919050565b6000604051905090565b600067ffffffffffffffff8211156200074257620007416200089c565b5b6200074d82620008cb565b9050602081019050919050565b600082825260208201905092915050565b60006200077882620007ab565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620007eb578082015181840152602081019050620007ce565b83811115620007fb576000848401525b50505050565b600060028204905060018216806200081a57607f821691505b602082108114156200083157620008306200086d565b5b50919050565b6200084282620008cb565b810181811067ffffffffffffffff821117156200086457620008636200089c565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433136353a20696e76616c696420696e7465726661636520696400000000600082015250565b62000910816200076b565b81146200091c57600080fd5b50565b614db8806200092f6000396000f3fe6080604052600436106101e35760003560e01c80635ef1e8fd1161010257806395d89b4111610095578063b88d4fde11610064578063b88d4fde14610734578063c87b56dd1461075d578063e985e9c51461079a578063f2fde38b146107d7576101e3565b806395d89b411461067a57806395e44a64146106a5578063a22cb465146106ce578063a849c36e146106f7576101e3565b8063715018a6116100d1578063715018a6146105e45780638462151c146105fb578063853828b6146106385780638da5cb5b1461064f576101e3565b80635ef1e8fd146105115780636096a2781461052d5780636352211e1461056a57806370a08231146105a7576101e3565b806337eff47e1161017a578063544270e211610149578063544270e21461045257806355f804b31461048f578063597d78e1146104b85780635db24868146104d4576101e3565b806337eff47e14610384578063419a8d1b146103af57806342842e0e146103ec5780634f6ccce714610415576101e3565b806318160ddd116101b657806318160ddd146102b657806323b872dd146102e157806326a49e371461030a5780632f745c5914610347576101e3565b806301ffc9a7146101e857806306fdde0314610225578063081812fc14610250578063095ea7b31461028d575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190613c8c565b610800565b60405161021c9190614202565b60405180910390f35b34801561023157600080fd5b5061023a610812565b6040516102479190614238565b60405180910390f35b34801561025c57600080fd5b5061027760048036038101906102729190613d4d565b6108a4565b6040516102849190614179565b60405180910390f35b34801561029957600080fd5b506102b460048036038101906102af9190613b86565b6108ea565b005b3480156102c257600080fd5b506102cb610a02565b6040516102d8919061443a565b60405180910390f35b3480156102ed57600080fd5b5061030860048036038101906103039190613a80565b610a0f565b005b34801561031657600080fd5b50610331600480360381019061032c9190613d4d565b610a6f565b60405161033e919061443a565b60405180910390f35b34801561035357600080fd5b5061036e60048036038101906103699190613b86565b610b31565b60405161037b919061443a565b60405180910390f35b34801561039057600080fd5b50610399610bd6565b6040516103a69190614179565b60405180910390f35b3480156103bb57600080fd5b506103d660048036038101906103d19190613d4d565b610bfc565b6040516103e3919061443a565b60405180910390f35b3480156103f857600080fd5b50610413600480360381019061040e9190613a80565b610ccd565b005b34801561042157600080fd5b5061043c60048036038101906104379190613d4d565b610ced565b604051610449919061443a565b60405180910390f35b34801561045e57600080fd5b5061047960048036038101906104749190613bc2565b610d84565b6040516104869190614238565b60405180910390f35b34801561049b57600080fd5b506104b660048036038101906104b19190613cde565b6110d2565b005b6104d260048036038101906104cd9190613c11565b6110f0565b005b3480156104e057600080fd5b506104fb60048036038101906104f69190613d76565b611102565b604051610508919061443a565b60405180910390f35b61052b60048036038101906105269190613bc2565b611127565b005b34801561053957600080fd5b50610554600480360381019061054f9190613d4d565b61113b565b604051610561919061443a565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c9190613d4d565b611153565b60405161059e9190614179565b60405180910390f35b3480156105b357600080fd5b506105ce60048036038101906105c991906139f2565b611205565b6040516105db919061443a565b60405180910390f35b3480156105f057600080fd5b506105f96112bd565b005b34801561060757600080fd5b50610622600480360381019061061d91906139f2565b6112d1565b60405161062f91906141e0565b60405180910390f35b34801561064457600080fd5b5061064d61144b565b005b34801561065b57600080fd5b50610664611533565b6040516106719190614179565b60405180910390f35b34801561068657600080fd5b5061068f61155d565b60405161069c9190614238565b60405180910390f35b3480156106b157600080fd5b506106cc60048036038101906106c791906139f2565b6115ef565b005b3480156106da57600080fd5b506106f560048036038101906106f09190613b4a565b61169b565b005b34801561070357600080fd5b5061071e60048036038101906107199190613d76565b6116b1565b60405161072b919061443a565b60405180910390f35b34801561074057600080fd5b5061075b60048036038101906107569190613acf565b6116d6565b005b34801561076957600080fd5b50610784600480360381019061077f9190613d4d565b611738565b6040516107919190614238565b60405180910390f35b3480156107a657600080fd5b506107c160048036038101906107bc9190613a44565b6117a0565b6040516107ce9190614202565b60405180910390f35b3480156107e357600080fd5b506107fe60048036038101906107f991906139f2565b611834565b005b600061080b826118dd565b9050919050565b60606000805461082190614751565b80601f016020809104026020016040519081016040528092919081815260200182805461084d90614751565b801561089a5780601f1061086f5761010080835404028352916020019161089a565b820191906000526020600020905b81548152906001019060200180831161087d57829003601f168201915b5050505050905090565b60006108af82611955565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108f582611153565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095d906143da565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109856119a0565b73ffffffffffffffffffffffffffffffffffffffff1614806109b457506109b3816109ae6119a0565b6117a0565b5b6109f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ea9061435a565b60405180910390fd5b6109fd83836119a8565b505050565b6000600880549050905090565b610a20610a1a6119a0565b82611a61565b610a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a569061441a565b60405180910390fd5b610a6a838383611af6565b505050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635eb39968846040518263ffffffff1660e01b8152600401610acd919061443a565b6101e06040518083038186803b158015610ae657600080fd5b505afa158015610afa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1e9190613d23565b9050806080015160000151915050919050565b6000610b3c83611205565b8210610b7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b749061425a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635eb39968846040518263ffffffff1660e01b8152600401610c5a919061443a565b6101e06040518083038186803b158015610c7357600080fd5b505afa158015610c87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cab9190613d23565b90508060200151816080015160200151610cc5919061465d565b915050919050565b610ce8838383604051806020016040528060008152506116d6565b505050565b6000610cf7610a02565b8210610d38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2f906143fa565b60405180910390fd5b60088281548110610d72577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60606000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635eb39968846040518263ffffffff1660e01b8152600401610de3919061443a565b6101e06040518083038186803b158015610dfc57600080fd5b505afa158015610e10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e349190613d23565b905080608001516020015181602001511415610e88576040518060400160405280600b81526020017f44726f70536f6c644f75740000000000000000000000000000000000000000008152509150506110cb565b8060a0015160200151421015610ed6576040518060400160405280600e81526020017f53616c654e6f74537461727465640000000000000000000000000000000000008152509150506110cb565b806080015160200151848260200151610eef919061457c565b1115610f33576040518060400160405280601881526020017f4e6f74456e6f756768546f6b656e73417661696c61626c6500000000000000008152509150506110cb565b6000801b81610120015114158015610f5257508060a001516060015142105b15611009578060a001516000015184600f60008460000151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fc0919061457c565b1115611004576040518060400160405280601181526020017f4d61784d696e74506572416464726573730000000000000000000000000000008152509150506110cb565b6110b7565b8060a001516040015184600e60008460000151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611072919061457c565b11156110b6576040518060400160405280601181526020017f4d61784d696e74506572416464726573730000000000000000000000000000008152509150506110cb565b5b604051806020016040528060008152509150505b9392505050565b6110da611d5d565b8181601091906110eb929190613582565b505050565b6110fc84848484611ddb565b50505050565b600f602052816000526040600020602052806000526040600020600091509150505481565b606061113584838584611ddb565b50505050565b600d6020528060005260406000206000915090505481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f3906143ba565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611276576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126d9061433a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112c5611d5d565b6112cf60006123ee565b565b606060006112de83611205565b9050600081141561136157600067ffffffffffffffff81111561132a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113585781602001602082028036833780820191505090505b50915050611446565b60008167ffffffffffffffff8111156113a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113d15781602001602082028036833780820191505090505b50905060005b8281101561143f576113e98582610b31565b828281518110611422577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080611438906147b4565b90506113d7565b5080925050505b919050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b1580156114b357600080fd5b505afa1580156114c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114eb9190613a1b565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611530573d6000803e3d6000fd5b50565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461156c90614751565b80601f016020809104026020016040519081016040528092919081815260200182805461159890614751565b80156115e55780601f106115ba576101008083540402835291602001916115e5565b820191906000526020600020905b8154815290600101906020018083116115c857829003601f168201915b5050505050905090565b6115f7611d5d565b611621817fc35b3779000000000000000000000000000000000000000000000000000000006118b8565b611657576040517f16fab9ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6116ad6116a66119a0565b83836124b4565b5050565b600e602052816000526040600020602052806000526040600020600091509150505481565b6116e76116e16119a0565b83611a61565b611726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171d9061441a565b60405180910390fd5b61173284848484612621565b50505050565b606061174382611955565b600061174d61267d565b9050600081511161176d5760405180602001604052806000815250611798565b806117778461270f565b604051602001611788929190614155565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61183c611d5d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a39061429a565b60405180910390fd5b6118b5816123ee565b50565b60006118c3836128bc565b80156118d557506118d48383612909565b5b905092915050565b60006118e8826129c8565b8061194e5750600a6000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff165b9050919050565b61195e81612a42565b61199d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611994906143ba565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a1b83611153565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a6d83611153565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611aaf5750611aae81856117a0565b5b80611aed57508373ffffffffffffffffffffffffffffffffffffffff16611ad5846108a4565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611b1682611153565b73ffffffffffffffffffffffffffffffffffffffff1614611b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b63906142ba565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd3906142fa565b60405180910390fd5b611be7838383612aae565b611bf26000826119a8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c42919061465d565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c99919061457c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611d58838383612abe565b505050565b611d656119a0565b73ffffffffffffffffffffffffffffffffffffffff16611d83611533565b73ffffffffffffffffffffffffffffffffffffffff1614611dd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd09061439a565b60405180910390fd5b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635eb39968856040518263ffffffff1660e01b8152600401611e38919061443a565b6101e06040518083038186803b158015611e5157600080fd5b505afa158015611e65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e899190613d23565b905080608001516020015181602001511415611ed1576040517fdad62a2000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060a0015160200151421015611f13576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806080015160200151838260200151611f2c919061457c565b1115611f64576040517f2d400a1b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82816080015160000151611f789190614603565b3414611fb0576040517f22790dad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b81610120015114158015611fcf57508060a001516060015142105b15612157578060a001516000015183600f60008460000151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461203d919061457c565b1115612075576040517fd3e153b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006120ad8383610120015188604051602001612092919061413a565b60405160208183030381529060405280519060200120612ac3565b9050806120e6576040517f8a585be200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600f60008460000151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461214a919061457c565b9250508190555050612264565b8060a001516040015183600e60008460000151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121c0919061457c565b11156121f8576040517fd3e153b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600e60008360000151815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461225c919061457c565b925050819055505b60008160200151826060015161227a919061457c565b905060005b848110156122d4578260000151600d6000838561229c919061457c565b8152602001908152602001600020819055506122c38782846122be919061457c565b612ada565b806122cd906147b4565b905061227f565b50600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a113438c86866040518363ffffffff1660e01b8152600401612332929190614455565b600060405180830381600087803b15801561234c57600080fd5b505af1158015612360573d6000803e3d6000fd5b5050505060003411156123e6576000620f42408360400151346123839190614603565b61238d91906145d2565b905060008111156123e4578260e0015173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156123e2573d6000803e3d6000fd5b505b505b505050505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612523576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251a9061431a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516126149190614202565b60405180910390a3505050565b61262c848484611af6565b61263884848484612af8565b612677576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266e9061427a565b60405180910390fd5b50505050565b60606010805461268c90614751565b80601f01602080910402602001604051908101604052809291908181526020018280546126b890614751565b80156127055780601f106126da57610100808354040283529160200191612705565b820191906000526020600020905b8154815290600101906020018083116126e857829003601f168201915b5050505050905090565b60606000821415612757576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506128b7565b600082905060005b60008214612789578080612772906147b4565b915050600a8261278291906145d2565b915061275f565b60008167ffffffffffffffff8111156127cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127fd5781602001600182028036833780820191505090505b5090505b600085146128b057600182612816919061465d565b9150600a856128259190614821565b6030612831919061457c565b60f81b81838151811061286d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128a991906145d2565b9450612801565b8093505050505b919050565b60006128e8827f01ffc9a700000000000000000000000000000000000000000000000000000000612909565b801561290257506129008263ffffffff60e01b612909565b155b9050919050565b6000806301ffc9a760e01b83604051602401612925919061421d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d915060005190508280156129b0575060208210155b80156129bc5750600081115b94505050505092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a3b5750612a3a82612c8f565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612ab9838383612d71565b505050565b505050565b600082612ad08584612e85565b1490509392505050565b612af4828260405180602001604052806000815250612f01565b5050565b6000612b198473ffffffffffffffffffffffffffffffffffffffff16612f5c565b15612c82578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b426119a0565b8786866040518563ffffffff1660e01b8152600401612b649493929190614194565b602060405180830381600087803b158015612b7e57600080fd5b505af1925050508015612baf57506040513d601f19601f82011682018060405250810190612bac9190613cb5565b60015b612c32573d8060008114612bdf576040519150601f19603f3d011682016040523d82523d6000602084013e612be4565b606091505b50600081511415612c2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c219061427a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c87565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d5a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d6a5750612d6982612f7f565b5b9050919050565b612d7c838383612fe9565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612dbf57612dba81612fee565b612dfe565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612dfd57612dfc8382613037565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612e4157612e3c816131a4565b612e80565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e7f57612e7e82826132e7565b5b5b505050565b60008082905060005b8451811015612ef657612ee182868381518110612ed4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151613366565b91508080612eee906147b4565b915050612e8e565b508091505092915050565b612f0b8383613391565b612f186000848484612af8565b612f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4e9061427a565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161304484611205565b61304e919061465d565b9050600060076000848152602001908152602001600020549050818114613133576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506131b8919061465d565b905060006009600084815260200190815260200160002054905060006008838154811061320e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613256577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806132cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006132f283611205565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600081831061337e57613379828461356b565b613389565b613388838361356b565b5b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133f89061437a565b60405180910390fd5b61340a81612a42565b1561344a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613441906142da565b60405180910390fd5b61345660008383612aae565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134a6919061457c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461356760008383612abe565b5050565b600082600052816020526040600020905092915050565b82805461358e90614751565b90600052602060002090601f0160209004810192826135b057600085556135f7565b82601f106135c957803560ff19168380011785556135f7565b828001600101855582156135f7579182015b828111156135f65782358255916020019190600101906135db565b5b5090506136049190613608565b5090565b5b80821115613621576000816000905550600101613609565b5090565b6000613638613633846144a3565b61447e565b9050808382526020820190508285602086028201111561365757600080fd5b60005b85811015613687578161366d8882613738565b84526020840193506020830192505060018101905061365a565b5050509392505050565b60006136a461369f846144cf565b61447e565b9050828152602081018484840111156136bc57600080fd5b6136c784828561470f565b509392505050565b6000813590506136de81614d0f565b92915050565b6000815190506136f381614d0f565b92915050565b600082601f83011261370a57600080fd5b813561371a848260208601613625565b91505092915050565b60008135905061373281614d26565b92915050565b60008135905061374781614d3d565b92915050565b60008151905061375c81614d3d565b92915050565b60008135905061377181614d54565b92915050565b60008151905061378681614d54565b92915050565b600082601f83011261379d57600080fd5b81356137ad848260208601613691565b91505092915050565b60008083601f8401126137c857600080fd5b8235905067ffffffffffffffff8111156137e157600080fd5b6020830191508360018202830111156137f957600080fd5b9250929050565b60006101e0828403121561381357600080fd5b61381e61014061447e565b9050600061382e848285016139dd565b6000830152506020613842848285016139dd565b6020830152506040613856848285016139dd565b604083015250606061386a848285016139dd565b606083015250608061387e84828501613968565b60808301525060e0613892848285016138f4565b60a0830152506101606138a7848285016136e4565b60c0830152506101806138bc848285016136e4565b60e0830152506101a06138d1848285016136e4565b610100830152506101c06138e78482850161374d565b6101208301525092915050565b60006080828403121561390657600080fd5b613910608061447e565b90506000613920848285016139dd565b6000830152506020613934848285016139dd565b6020830152506040613948848285016139dd565b604083015250606061395c848285016139dd565b60608301525092915050565b60006060828403121561397a57600080fd5b613984606061447e565b90506000613994848285016139dd565b60008301525060206139a8848285016139dd565b60208301525060406139bc848285016139dd565b60408301525092915050565b6000813590506139d781614d6b565b92915050565b6000815190506139ec81614d6b565b92915050565b600060208284031215613a0457600080fd5b6000613a12848285016136cf565b91505092915050565b600060208284031215613a2d57600080fd5b6000613a3b848285016136e4565b91505092915050565b60008060408385031215613a5757600080fd5b6000613a65858286016136cf565b9250506020613a76858286016136cf565b9150509250929050565b600080600060608486031215613a9557600080fd5b6000613aa3868287016136cf565b9350506020613ab4868287016136cf565b9250506040613ac5868287016139c8565b9150509250925092565b60008060008060808587031215613ae557600080fd5b6000613af3878288016136cf565b9450506020613b04878288016136cf565b9350506040613b15878288016139c8565b925050606085013567ffffffffffffffff811115613b3257600080fd5b613b3e8782880161378c565b91505092959194509250565b60008060408385031215613b5d57600080fd5b6000613b6b858286016136cf565b9250506020613b7c85828601613723565b9150509250929050565b60008060408385031215613b9957600080fd5b6000613ba7858286016136cf565b9250506020613bb8858286016139c8565b9150509250929050565b600080600060608486031215613bd757600080fd5b6000613be5868287016136cf565b9350506020613bf6868287016139c8565b9250506040613c07868287016139c8565b9150509250925092565b60008060008060808587031215613c2757600080fd5b6000613c35878288016136cf565b9450506020613c46878288016139c8565b9350506040613c57878288016139c8565b925050606085013567ffffffffffffffff811115613c7457600080fd5b613c80878288016136f9565b91505092959194509250565b600060208284031215613c9e57600080fd5b6000613cac84828501613762565b91505092915050565b600060208284031215613cc757600080fd5b6000613cd584828501613777565b91505092915050565b60008060208385031215613cf157600080fd5b600083013567ffffffffffffffff811115613d0b57600080fd5b613d17858286016137b6565b92509250509250929050565b60006101e08284031215613d3657600080fd5b6000613d4484828501613800565b91505092915050565b600060208284031215613d5f57600080fd5b6000613d6d848285016139c8565b91505092915050565b60008060408385031215613d8957600080fd5b6000613d97858286016139c8565b9250506020613da8858286016136cf565b9150509250929050565b6000613dbe838361411c565b60208301905092915050565b613dd381614691565b82525050565b613dea613de582614691565b6147fd565b82525050565b6000613dfb82614510565b613e05818561453e565b9350613e1083614500565b8060005b83811015613e41578151613e288882613db2565b9750613e3383614531565b925050600181019050613e14565b5085935050505092915050565b613e57816146a3565b82525050565b613e66816146b9565b82525050565b6000613e778261451b565b613e81818561454f565b9350613e9181856020860161471e565b613e9a8161490e565b840191505092915050565b6000613eb082614526565b613eba8185614560565b9350613eca81856020860161471e565b613ed38161490e565b840191505092915050565b6000613ee982614526565b613ef38185614571565b9350613f0381856020860161471e565b80840191505092915050565b6000613f1c602b83614560565b9150613f278261492c565b604082019050919050565b6000613f3f603283614560565b9150613f4a8261497b565b604082019050919050565b6000613f62602683614560565b9150613f6d826149ca565b604082019050919050565b6000613f85602583614560565b9150613f9082614a19565b604082019050919050565b6000613fa8601c83614560565b9150613fb382614a68565b602082019050919050565b6000613fcb602483614560565b9150613fd682614a91565b604082019050919050565b6000613fee601983614560565b9150613ff982614ae0565b602082019050919050565b6000614011602983614560565b915061401c82614b09565b604082019050919050565b6000614034603e83614560565b915061403f82614b58565b604082019050919050565b6000614057602083614560565b915061406282614ba7565b602082019050919050565b600061407a602083614560565b915061408582614bd0565b602082019050919050565b600061409d601883614560565b91506140a882614bf9565b602082019050919050565b60006140c0602183614560565b91506140cb82614c22565b604082019050919050565b60006140e3602c83614560565b91506140ee82614c71565b604082019050919050565b6000614106602e83614560565b915061411182614cc0565b604082019050919050565b61412581614705565b82525050565b61413481614705565b82525050565b60006141468284613dd9565b60148201915081905092915050565b60006141618285613ede565b915061416d8284613ede565b91508190509392505050565b600060208201905061418e6000830184613dca565b92915050565b60006080820190506141a96000830187613dca565b6141b66020830186613dca565b6141c3604083018561412b565b81810360608301526141d58184613e6c565b905095945050505050565b600060208201905081810360008301526141fa8184613df0565b905092915050565b60006020820190506142176000830184613e4e565b92915050565b60006020820190506142326000830184613e5d565b92915050565b600060208201905081810360008301526142528184613ea5565b905092915050565b6000602082019050818103600083015261427381613f0f565b9050919050565b6000602082019050818103600083015261429381613f32565b9050919050565b600060208201905081810360008301526142b381613f55565b9050919050565b600060208201905081810360008301526142d381613f78565b9050919050565b600060208201905081810360008301526142f381613f9b565b9050919050565b6000602082019050818103600083015261431381613fbe565b9050919050565b6000602082019050818103600083015261433381613fe1565b9050919050565b6000602082019050818103600083015261435381614004565b9050919050565b6000602082019050818103600083015261437381614027565b9050919050565b600060208201905081810360008301526143938161404a565b9050919050565b600060208201905081810360008301526143b38161406d565b9050919050565b600060208201905081810360008301526143d381614090565b9050919050565b600060208201905081810360008301526143f3816140b3565b9050919050565b60006020820190508181036000830152614413816140d6565b9050919050565b60006020820190508181036000830152614433816140f9565b9050919050565b600060208201905061444f600083018461412b565b92915050565b600060408201905061446a600083018561412b565b614477602083018461412b565b9392505050565b6000614488614499565b90506144948282614783565b919050565b6000604051905090565b600067ffffffffffffffff8211156144be576144bd6148df565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156144ea576144e96148df565b5b6144f38261490e565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061458782614705565b915061459283614705565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145c7576145c6614852565b5b828201905092915050565b60006145dd82614705565b91506145e883614705565b9250826145f8576145f7614881565b5b828204905092915050565b600061460e82614705565b915061461983614705565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561465257614651614852565b5b828202905092915050565b600061466882614705565b915061467383614705565b92508282101561468657614685614852565b5b828203905092915050565b600061469c826146e5565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561473c578082015181840152602081019050614721565b8381111561474b576000848401525b50505050565b6000600282049050600182168061476957607f821691505b6020821081141561477d5761477c6148b0565b5b50919050565b61478c8261490e565b810181811067ffffffffffffffff821117156147ab576147aa6148df565b5b80604052505050565b60006147bf82614705565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156147f2576147f1614852565b5b600182019050919050565b60006148088261480f565b9050919050565b600061481a8261491f565b9050919050565b600061482c82614705565b915061483783614705565b92508261484757614846614881565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b614d1881614691565b8114614d2357600080fd5b50565b614d2f816146a3565b8114614d3a57600080fd5b50565b614d46816146af565b8114614d5157600080fd5b50565b614d5d816146b9565b8114614d6857600080fd5b50565b614d7481614705565b8114614d7f57600080fd5b5056fea2646970667358221220f5f9c54d9fac252d195eaf8a1865543298886e4cf072c45c5a32e82bf03cb8a564736f6c63430008040033000000000000000000000000ea143996ddfaf5f2318eea25d311b5e6bc8d912e000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6d657461646174612e616e6f74686572626c6f636b2e696f2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c616e6f74686572626c6f636b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000541424e4654000000000000000000000000000000000000000000000000000000

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

000000000000000000000000ea143996ddfaf5f2318eea25d311b5e6bc8d912e000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6d657461646174612e616e6f74686572626c6f636b2e696f2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c616e6f74686572626c6f636b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000541424e4654000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _anotherblock (address): 0xEA143996DdFaF5f2318eEa25D311B5e6Bc8D912E
Arg [1] : _baseUri (string): https://metadata.anotherblock.io/
Arg [2] : _name (string): anotherblock
Arg [3] : _symbol (string): ABNFT

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000ea143996ddfaf5f2318eea25d311b5e6bc8d912e
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [5] : 68747470733a2f2f6d657461646174612e616e6f74686572626c6f636b2e696f
Arg [6] : 2f00000000000000000000000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [8] : 616e6f74686572626c6f636b0000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 41424e4654000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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