Contract 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f3 9

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd87e1c8c4dd5a8a0f9144f45054b8af7a99e9d872a83adb021acc46726073d80Set Approval For...1934674082024-03-23 19:27:105 days 14 hrs ago0xbdfe5dd21b6e0983eb4b9ce5be548275728ce2f7 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.000001040.01
0x618adfa10d07b39bb6b89d3e053b7229630edfcbe70f00f47bfdfce906500948Set Approval For...1917147442024-03-18 17:12:2210 days 16 hrs ago0xeccb9b9c6fb7590a4d0588953b3170a1a84e3341 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.000012270.11331
0x08fd7dadc76ce5e15c9a991af69c508892eaec7538cda946dc0c0c18847eed58Set Approval For...1872160262024-03-05 4:00:2024 days 5 hrs ago0xb3270e06009f0c446c3b9a84fbcb729946d49828 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00015768 0.1
0xb89abdf4b8e9a6e884b0a792e8bbb8d3e79071f13ea284635547e456cf033d31Set Approval For...1870413262024-03-04 15:01:2124 days 18 hrs ago0xbdc7b838cd042f01175521363c2251fd03f24ac8 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00022267 0.1
0x357c82dab1551cf547769691696f01f55dd2cf20b94e6c35357f0cadeae767ccSet Approval For...1870413042024-03-04 15:01:1524 days 18 hrs ago0xbdc7b838cd042f01175521363c2251fd03f24ac8 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00022247 0.1
0x2b21f16b1d617d6caaf82aee4741defb9501397225467970d0e215678cfb6385Set Approval For...1869227862024-03-04 6:33:5925 days 2 hrs ago0xd305dbfcc6c2809f8d9c52e656d9a1d8be67534b IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00013258 0.1
0x1eb31fab4bc65bb62396c42810ecb3153ea19914423a818eff0383b548c2e699Set Approval For...1854763602024-02-28 22:25:2629 days 11 hrs ago0xc7b169b108c5e75991c520aea97140534291c81d IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00008993 0.1
0xa59b638863575eeb0babff2451d42814e2d2b4c39981c8a85c64dadf78bb2301Set Approval For...1846378892024-02-26 10:48:5431 days 22 hrs ago0xe2cb6266cefcc70aabb802fb9e35ea767f4d15dd IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00006533 0.1
0x807feb49512a31ca1daa4e62bf1e76fb738462fdbe0963ad020a4cb23d18a1b7Set Approval For...1846321172024-02-26 10:24:3431 days 23 hrs ago0xe2cb6266cefcc70aabb802fb9e35ea767f4d15dd IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00007345 0.1
0xfd0d9957720d30ed9d96c7eda95838dfee08aadb8f4e6109a84fc151d929f5b5Set Approval For...1842578182024-02-25 7:44:3233 days 1 hr ago0x2e20df63f5ffb0578cf4ccc223cb3003a50200b1 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.000045710.1
0x60352baebecf4816fd099f53e0cd4f66e056ae3703d912251dda200065da40f2Set Approval For...1841489142024-02-24 23:51:3733 days 9 hrs ago0xdb995c1264821e0fe5230ae86db05a6592478723 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.000050370.1
0x4828371738deda7506039c6f18f4597e330c52d0a26d7b5cca759ed4a41130a8Set Approval For...1841285782024-02-24 22:18:3433 days 11 hrs ago0x6b74e713a13b8036d76e07a2e916aae2334eff59 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00005229 0.1
0x3c172d063cc94868fe7a23b51eec940121643ad15a285093680e63152a24abc7Set Approval For...1826231142024-02-20 9:21:5238 days 5 mins ago0xb966396cc6df435e387d119f751d74f1758ba78c IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00008354 0.1
0x802bd7b1bffbcd914f1fc9bdf6698255415c8c7752e56c1f82cd745ce91fc6c8Set Approval For...1826230852024-02-20 9:21:4538 days 5 mins ago0xb966396cc6df435e387d119f751d74f1758ba78c IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00008309 0.1
0xdae30220d4320c425fe735018dac1772e646d7592bf1d50005f81e77c4c88008Set Approval For...1805873472024-02-14 7:03:1744 days 2 hrs ago0xb193ba2a0eef6acfff18391c550f0cffcf36dc27 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00003939 0.1
0xf877ff65e37a45341b90d41b10449574d90b2bb82f73707be8f75dc2356266c4Set Approval For...1782663742024-02-07 7:06:5251 days 2 hrs ago0x2228c185db5d758be6c12e9c2dbb494242e582b9 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00005983 0.1
0x40b0e0ef0ded14865affb3d4f992ab4b1ee49777a16aeca50fa274d7f2e26f3cSet Approval For...1782663522024-02-07 7:06:4651 days 2 hrs ago0x2228c185db5d758be6c12e9c2dbb494242e582b9 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00005983 0.1
0x42bd82d37642c350a992c5109d92c0cf1797ff05aaac5a740fcd04bd3f42c8d1Set Approval For...1781176542024-02-06 20:28:5651 days 12 hrs ago0x520a8ee6a79893108cdaab7a2cdcff314025151c IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.000076340.1
0x74fc13fe07dcc6a9099a21bb266f512d0fc6acf80d4e5b43d6e0f4cd661507f1Set Approval For...1769039782024-02-03 3:09:0355 days 6 hrs ago0xa407b1779dc16c0338d3865154965cd4a9e03034 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00006363 0.1
0x27c6f29695f900e129cfe62be288d400fcf899ac2978d6de4649775f70ec4283Set Approval For...1768340232024-02-02 21:27:5055 days 11 hrs ago0xdc6c1f67e1296332bd5a7fd8cb68e5fd5aff398d IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00004506 0.1
0x4f08fbf85d3f42adc63bc905fe39b80a07376ce3e43cca31a7f44da9674f2378Set Approval For...1758388332024-01-30 21:06:4858 days 12 hrs ago0x2233b04da84900a7fa1508a1cac39df124721bbe IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00004218 0.1
0x432d1df27d3fbc9efe558c9267aa7ead22d9d47156dec29ccda3909b5dfad541Set Approval For...1756893502024-01-30 10:27:2258 days 22 hrs ago0x846ff49d72f4e3ca7a3d318820c6c2debe23c68a IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00004915 0.1
0x75851c7f863ce67a5410f055c97d2add103a9f1debd83bb67df2b28a4c403c72Set Approval For...1751755272024-01-28 21:55:4260 days 11 hrs ago0x74acc173f943abe0c54cc6acdbb1307715a796ab IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.00003066 0.1
0xaa5f154c6c5a63cd0ac1b22685b2c0ffd5de15ab9a25e866df0a1cce5e28ea7cSet Approval For...1741919652024-01-25 23:45:4363 days 9 hrs ago0xd3da981dbb34da127c313cbe87a2f2f0155da67b IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.000041220.1
0xb498468dc42c878fd1c40caa7b962815ab1e80b6398d1893105ec9030fbdb6cbSet Approval For...1741653592024-01-25 21:48:2163 days 11 hrs ago0x0f99f86602dd53f30a2421621e13ce3f7e0c4863 IN  0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH0.000048820.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x308fb6dedf82054d55be2bb23148e45d775fd7dd7a9a0830db63f305a62fbfbb720827372023-03-21 10:02:32373 days 23 hrs ago 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f3 0xe3b4d0bf4f433bf981bd452134657ba1dc28f5580 ETH
0x308fb6dedf82054d55be2bb23148e45d775fd7dd7a9a0830db63f305a62fbfbb720827372023-03-21 10:02:32373 days 23 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0xaefe1e93897641a5074b3d071e87432aa3bc44d4b073b5a7bc6b1b7a1e9cc7c8720825182023-03-21 10:01:37373 days 23 hrs ago 0x3179d0491c8e3a6b6a8eaab3df412c6e90cecb8c 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x2659961f53466073a942638aa8b0dc02d5f118ba5e43424e13a93907fd9d86ae720823212023-03-21 10:00:47373 days 23 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x5e773a04258da1afd0abe044c49c28482d60f78a1ff48ee35f64f7c68773c60a719913842023-03-21 3:46:29374 days 5 hrs ago 0x3179d0491c8e3a6b6a8eaab3df412c6e90cecb8c 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0xc3c30b55fe0d1eb7713b10662b2aee755518bea66db1911fed621fd32542973c719907812023-03-21 3:43:57374 days 5 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0xd48e492fac2fa1c20a07ffaa5964000dceabc6c1447889c7da8e9cd79231b81e719780562023-03-21 2:51:18374 days 6 hrs ago 0x3179d0491c8e3a6b6a8eaab3df412c6e90cecb8c 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x36a191cc3f0c60fdabbe0e29798482259882cfdf5fa55616ed9623042adcc7e2719779082023-03-21 2:50:41374 days 6 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x2c3ee8d9b126d4775365a0be1dd2382b699da796afcbe376b8a388631154b88f719226742023-03-20 22:56:38374 days 10 hrs ago 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f3 0xe3b4d0bf4f433bf981bd452134657ba1dc28f5580 ETH
0x2c3ee8d9b126d4775365a0be1dd2382b699da796afcbe376b8a388631154b88f719226742023-03-20 22:56:38374 days 10 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x1c9dc7ca0850078675f5824a22f51f188c0997c1c6c573223a68077552be68b7719225052023-03-20 22:55:53374 days 10 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x8d3676280ffc99fba512f7e6e9c22e4a04d99ed666d46663f057504a98460878718180662023-03-20 15:37:21374 days 17 hrs ago Treasure DAO: Trove Marketplace 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x0ad8828e7a8377edfd9c2153b7f72f0b279fa5607d0fdd0350c37a08081a561b718086742023-03-20 14:58:43374 days 18 hrs ago 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f3 0xe3b4d0bf4f433bf981bd452134657ba1dc28f5580 ETH
0x0ad8828e7a8377edfd9c2153b7f72f0b279fa5607d0fdd0350c37a08081a561b718086742023-03-20 14:58:43374 days 18 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x8e972cadf7167713dbe0c5cd761aa7b70cff79c51d92074740f969752089c705718085812023-03-20 14:58:19374 days 18 hrs ago 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f3 0xe3b4d0bf4f433bf981bd452134657ba1dc28f5580 ETH
0x8e972cadf7167713dbe0c5cd761aa7b70cff79c51d92074740f969752089c705718085812023-03-20 14:58:19374 days 18 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x68dfd23cc55dfa3120cf7fa66cd336ce1a59ca0da56087a607c8b7d113bb56c6714094952023-03-19 11:13:10375 days 22 hrs ago 0x3179d0491c8e3a6b6a8eaab3df412c6e90cecb8c 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x8dbd7dab34302545c89865772ca1bd8eb5a21a0e4f0c2aec5403c12eeed290ba714091212023-03-19 11:11:35375 days 22 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x103156f01b323ae00c16e4e54d91554371cf55a79fcf3a2d40394c25707ad790714087042023-03-19 11:09:48375 days 22 hrs ago 0x3179d0491c8e3a6b6a8eaab3df412c6e90cecb8c 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0xa040cc4060241242ddd046e1795a3673e48944e861bfe9601d9313ba06a2dfd7714074312023-03-19 11:04:34375 days 22 hrs ago 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x8928a6028b962b4cba39a94a57ac80e5afdcdc17a6271d4d800287f6b59500a6712456512023-03-18 23:36:59376 days 9 hrs ago Treasure DAO: Trove Marketplace 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x8928a6028b962b4cba39a94a57ac80e5afdcdc17a6271d4d800287f6b59500a6712456512023-03-18 23:36:59376 days 9 hrs ago Treasure DAO: Trove Marketplace 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x8c84f147ae7351a2cb2c632fe54dc1145e75cda5061b7eec24d8c6d3b66f0a1b712454642023-03-18 23:36:07376 days 9 hrs ago Treasure DAO: Trove Marketplace 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x8c84f147ae7351a2cb2c632fe54dc1145e75cda5061b7eec24d8c6d3b66f0a1b712454642023-03-18 23:36:07376 days 9 hrs ago Treasure DAO: Trove Marketplace 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f30 ETH
0x29b62fda7ae63e8e3a352b5e66832e46828ba575b1df5f0423157081adaef02a711990472023-03-18 20:12:39376 days 13 hrs ago 0x8762dbd391fd90b29eccbb628cd54bd92f5fc1f3 0xe3b4d0bf4f433bf981bd452134657ba1dc28f5580 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MagicRefinery

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "../lib/ERC721A.sol";
import "../Manager/ManagerModifier.sol";

contract MagicRefinery is ERC721A, ReentrancyGuard, ManagerModifier {
  string public defaultBaseURI;

  //=======================================
  // Events
  //=======================================
  event MintedFor(address minter, uint256 quantity);
  event Burned(address burner, uint256 tokenId);

  //=======================================
  // Constructor
  //=======================================
  constructor(address _manager)
    ERC721A("MagicRefinery", "MAGIC_REFINERY")
    ManagerModifier(_manager)
  {}

  //=======================================
  // External
  //=======================================
  function mintFor(address _for, uint256 _quantity)
    external
    nonReentrant
    onlyMinter
    returns (uint256)
  {
    emit MintedFor(_for, _quantity);

    // Mint
    return _safeMint(_for, _quantity);
  }

  function burn(uint256 _tokenId) external nonReentrant {
    // Check if sender owns token
    require(
      ownerOf(_tokenId) == msg.sender,
      "MagicRefinery: You do not own this token"
    );

    // Burn
    _burn(_tokenId);

    emit Burned(msg.sender, _tokenId);
  }

  function tokenURI(uint256) public view override returns (string memory) {
    return defaultBaseURI;
  }

  //=======================================
  // Admin
  //=======================================
  function setBaseURI(string calldata _baseUri) external onlyAdmin {
    defaultBaseURI = _baseUri;
  }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 3 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  // Compiler will pack this into a single 256bit word.
  struct TokenOwnership {
    // The address of the owner.
    address addr;
    // Keeps track of the start time of ownership with minimal overhead for tokenomics.
    uint64 startTimestamp;
    // Whether the token has been burned.
    bool burned;
  }

  // Compiler will pack this into a single 256bit word.
  struct AddressData {
    // Realistically, 2**64-1 is more than enough.
    uint64 balance;
    // Keeps track of mint count with minimal overhead for tokenomics.
    uint64 numberMinted;
    // Keeps track of burn count with minimal overhead for tokenomics.
    uint64 numberBurned;
  }

  // The tokenId of the next token to be minted.
  uint256 internal _currentIndex;

  // The number of tokens burned.
  uint256 internal _burnCounter;

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

  // Mapping from token ID to ownership details
  // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
  mapping(uint256 => TokenOwnership) internal _ownerships;

  // Mapping owner address to address data
  mapping(address => AddressData) private _addressData;

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

  constructor(string memory name_, string memory symbol_) {
    _name = name_;
    _symbol = symbol_;
  }

  /**
   * @dev See {IERC721Enumerable-totalSupply}.
   */
  function totalSupply() public view override returns (uint256) {
    // Counter underflow is impossible as _burnCounter cannot be incremented
    // more than _currentIndex times
    unchecked {
      return _currentIndex - _burnCounter;
    }
  }

  /**
   * @dev See {IERC721Enumerable-tokenByIndex}.
   * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenByIndex(uint256 index) public view override returns (uint256) {
    uint256 numMintedSoFar = _currentIndex;
    uint256 tokenIdsIdx;

    // Counter overflow is impossible as the loop breaks when
    // uint256 i is equal to another uint256 numMintedSoFar.
    unchecked {
      for (uint256 i; i < numMintedSoFar; i++) {
        TokenOwnership memory ownership = _ownerships[i];
        if (!ownership.burned) {
          if (tokenIdsIdx == index) {
            return i;
          }
          tokenIdsIdx++;
        }
      }
    }
    revert TokenIndexOutOfBounds();
  }

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index)
    public
    view
    override
    returns (uint256)
  {
    if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
    uint256 numMintedSoFar = _currentIndex;
    uint256 tokenIdsIdx;
    address currOwnershipAddr;

    // Counter overflow is impossible as the loop breaks when
    // uint256 i is equal to another uint256 numMintedSoFar.
    unchecked {
      for (uint256 i; i < numMintedSoFar; i++) {
        TokenOwnership memory ownership = _ownerships[i];
        if (ownership.burned) {
          continue;
        }
        if (ownership.addr != address(0)) {
          currOwnershipAddr = ownership.addr;
        }
        if (currOwnershipAddr == owner) {
          if (tokenIdsIdx == index) {
            return i;
          }
          tokenIdsIdx++;
        }
      }
    }

    // Execution should never reach this point.
    revert();
  }

  /**
   * @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 ||
      interfaceId == type(IERC721Enumerable).interfaceId ||
      super.supportsInterface(interfaceId);
  }

  /**
   * @dev See {IERC721-balanceOf}.
   */
  function balanceOf(address owner) public view override returns (uint256) {
    if (owner == address(0)) revert BalanceQueryForZeroAddress();
    return uint256(_addressData[owner].balance);
  }

  function _numberMinted(address owner) internal view returns (uint256) {
    if (owner == address(0)) revert MintedQueryForZeroAddress();
    return uint256(_addressData[owner].numberMinted);
  }

  function _numberBurned(address owner) internal view returns (uint256) {
    if (owner == address(0)) revert BurnedQueryForZeroAddress();
    return uint256(_addressData[owner].numberBurned);
  }

  /**
   * Gas spent here starts off proportional to the maximum mint batch size.
   * It gradually moves to O(1) as tokens get transferred around in the collection over time.
   */
  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    uint256 curr = tokenId;

    unchecked {
      if (curr < _currentIndex) {
        TokenOwnership memory ownership = _ownerships[curr];
        if (!ownership.burned) {
          if (ownership.addr != address(0)) {
            return ownership;
          }
          // Invariant:
          // There will always be an ownership that has an address and is not burned
          // before an ownership that does not have an address and is not burned.
          // Hence, curr will not underflow.
          while (true) {
            curr--;
            ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
              return ownership;
            }
          }
        }
      }
    }
    revert OwnerQueryForNonexistentToken();
  }

  /**
   * @dev See {IERC721-ownerOf}.
   */
  function ownerOf(uint256 tokenId) public view override returns (address) {
    return ownershipOf(tokenId).addr;
  }

  /**
   * @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)
  {
    if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

  /**
   * @dev See {IERC721-approve}.
   */
  function approve(address to, uint256 tokenId) public override {
    address owner = ERC721A.ownerOf(tokenId);
    if (to == owner) revert ApprovalToCurrentOwner();

    if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
      revert ApprovalCallerNotOwnerNorApproved();
    }

    _approve(to, tokenId, owner);
  }

  /**
   * @dev See {IERC721-getApproved}.
   */
  function getApproved(uint256 tokenId) public view override returns (address) {
    if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

    return _tokenApprovals[tokenId];
  }

  /**
   * @dev See {IERC721-setApprovalForAll}.
   */
  function setApprovalForAll(address operator, bool approved) public override {
    if (operator == _msgSender()) revert ApproveToCaller();

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

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

  /**
   * @dev See {IERC721-transferFrom}.
   */
  function transferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public virtual override {
    _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 {
    _transfer(from, to, tokenId);
    if (!_checkOnERC721Received(from, to, tokenId, _data)) {
      revert TransferToNonERC721ReceiverImplementer();
    }
  }

  /**
   * @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`),
   */
  function _exists(uint256 tokenId) internal view returns (bool) {
    return tokenId < _currentIndex && !_ownerships[tokenId].burned;
  }

  function _safeMint(address to, uint256 quantity) internal returns (uint256) {
    return _safeMint(to, quantity, "");
  }

  /**
   * @dev Safely mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
   * - `quantity` must be greater than 0.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal returns (uint256) {
    return _mint(to, quantity, _data, true);
  }

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - `quantity` must be greater than 0.
   *
   * Emits a {Transfer} event.
   */
  function _mint(
    address to,
    uint256 quantity,
    bytes memory _data,
    bool safe
  ) internal returns (uint256) {
    uint256 startTokenId = _currentIndex;
    if (to == address(0)) revert MintToZeroAddress();
    if (quantity == 0) revert MintZeroQuantity();

    _beforeTokenTransfers(address(0), to, startTokenId, quantity);

    // Overflows are incredibly unrealistic.
    // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
    // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
    unchecked {
      _addressData[to].balance += uint64(quantity);
      _addressData[to].numberMinted += uint64(quantity);

      _ownerships[startTokenId].addr = to;
      _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

      uint256 updatedIndex = startTokenId;

      for (uint256 i; i < quantity; i++) {
        emit Transfer(address(0), to, updatedIndex);
        if (
          safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)
        ) {
          revert TransferToNonERC721ReceiverImplementer();
        }
        updatedIndex++;
      }

      _currentIndex = updatedIndex;
    }
    _afterTokenTransfers(address(0), to, startTokenId, quantity);

    return startTokenId;
  }

  /**
   * @dev Transfers `tokenId` from `from` to `to`.
   *
   * 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
  ) private {
    TokenOwnership memory prevOwnership = ownershipOf(tokenId);

    bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
      isApprovedForAll(prevOwnership.addr, _msgSender()) ||
      getApproved(tokenId) == _msgSender());

    if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
    if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
    if (to == address(0)) revert TransferToZeroAddress();

    _beforeTokenTransfers(from, to, tokenId, 1);

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

    // Underflow of the sender's balance is impossible because we check for
    // ownership above and the recipient's balance can't realistically overflow.
    // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
    unchecked {
      _addressData[from].balance -= 1;
      _addressData[to].balance += 1;

      _ownerships[tokenId].addr = to;
      _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

      // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
      // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
      uint256 nextTokenId = tokenId + 1;
      if (_ownerships[nextTokenId].addr == address(0)) {
        // This will suffice for checking _exists(nextTokenId),
        // as a burned slot cannot contain the zero address.
        if (nextTokenId < _currentIndex) {
          _ownerships[nextTokenId].addr = prevOwnership.addr;
          _ownerships[nextTokenId].startTimestamp = prevOwnership
            .startTimestamp;
        }
      }
    }

    emit Transfer(from, to, tokenId);
    _afterTokenTransfers(from, to, tokenId, 1);
  }

  /**
   * @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 {
    TokenOwnership memory prevOwnership = ownershipOf(tokenId);

    _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

    // Underflow of the sender's balance is impossible because we check for
    // ownership above and the recipient's balance can't realistically overflow.
    // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
    unchecked {
      _addressData[prevOwnership.addr].balance -= 1;
      _addressData[prevOwnership.addr].numberBurned += 1;

      // Keep track of who burned the token, and the timestamp of burning.
      _ownerships[tokenId].addr = prevOwnership.addr;
      _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
      _ownerships[tokenId].burned = true;

      // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
      // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
      uint256 nextTokenId = tokenId + 1;
      if (_ownerships[nextTokenId].addr == address(0)) {
        // This will suffice for checking _exists(nextTokenId),
        // as a burned slot cannot contain the zero address.
        if (nextTokenId < _currentIndex) {
          _ownerships[nextTokenId].addr = prevOwnership.addr;
          _ownerships[nextTokenId].startTimestamp = prevOwnership
            .startTimestamp;
        }
      }
    }

    emit Transfer(prevOwnership.addr, address(0), tokenId);
    _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

    // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
    unchecked {
      _burnCounter++;
    }
  }

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

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

  /**
   * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
   * And also called before burning one token.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * 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, `tokenId` will be burned by `from`.
   * - `from` and `to` are never both zero.
   */
  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

  /**
   * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
   * minting.
   * And also called after one token has been burned.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * Calling conditions:
   *
   * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
   * transferred to `to`.
   * - When `from` is zero, `tokenId` has been minted for `to`.
   * - When `to` is zero, `tokenId` has been burned by `from`.
   * - `from` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

File 4 of 14 : ManagerModifier.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "../Manager/IManager.sol";

abstract contract ManagerModifier {
  //=======================================
  // Immutables
  //=======================================
  IManager public immutable MANAGER;

  //=======================================
  // Constructor
  //=======================================
  constructor(address _manager) {
    MANAGER = IManager(_manager);
  }

  //=======================================
  // Modifiers
  //=======================================
  modifier onlyAdmin() {
    require(MANAGER.isAdmin(msg.sender), "Manager: Not an Admin");
    _;
  }

  modifier onlyManager() {
    require(MANAGER.isManager(msg.sender, 0), "Manager: Not manager");
    _;
  }

  modifier onlyMinter() {
    require(MANAGER.isManager(msg.sender, 1), "Manager: Not minter");
    _;
  }
}

File 5 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 8 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 tokenId);

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

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

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 14 of 14 : IManager.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

interface IManager {
  function isAdmin(address _addr) external view returns (bool);

  function isManager(address _addr, uint256 _type) external view returns (bool);

  function addManager(address _addr, uint256 _type) external;

  function removeManager(address _addr, uint256 _type) external;

  function addAdmin(address _addr) external;

  function removeAdmin(address _addr) external;
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":false,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"MintedFor","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":"MANAGER","outputs":[{"internalType":"contract IManager","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":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","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":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162001b1f38038062001b1f83398101604081905262000034916200016b565b604080518082018252600d81526c4d61676963526566696e65727960981b60208083019182528351808501909452600e84526d4d414749435f524546494e45525960901b908401528151849391620000909160029190620000c5565b508051620000a6906003906020840190620000c5565b505060016008555060601b6001600160601b03191660805250620001d8565b828054620000d3906200019b565b90600052602060002090601f016020900481019282620000f7576000855562000142565b82601f106200011257805160ff191683800117855562000142565b8280016001018555821562000142579182015b828111156200014257825182559160200191906001019062000125565b506200015092915062000154565b5090565b5b8082111562000150576000815560010162000155565b6000602082840312156200017d578081fd5b81516001600160a01b038116811462000194578182fd5b9392505050565b600181811c90821680620001b057607f821691505b60208210811415620001d257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c61191a62000205600039600081816101d4015281816107e00152610b8a015261191a6000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80634f6ccce7116100b8578063a22cb4651161007c578063a22cb46514610296578063abcbb7b4146102a9578063b88d4fde146102b1578063c87b56dd146102c4578063da1919b3146102d7578063e985e9c5146102ea57600080fd5b80634f6ccce71461024257806355f804b3146102555780636352211e1461026857806370a082311461027b57806395d89b411461028e57600080fd5b80631b2df850116100ff5780631b2df850146101cf57806323b872dd146101f65780632f745c591461020957806342842e0e1461021c57806342966c681461022f57600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a457806318160ddd146101b9575b600080fd5b61014f61014a366004611714565b610326565b60405190151581526020015b60405180910390f35b61016c610393565b60405161015b9190611859565b61018c6101873660046117b9565b610425565b6040516001600160a01b03909116815260200161015b565b6101b76101b23660046116cf565b610469565b005b600154600054035b60405190815260200161015b565b61018c7f000000000000000000000000000000000000000000000000000000000000000081565b6101b7610204366004611589565b6104f7565b6101c16102173660046116cf565b610502565b6101b761022a366004611589565b6105f6565b6101b761023d3660046117b9565b610611565b6101c16102503660046117b9565b610729565b6101b761026336600461174c565b6107cb565b61018c6102763660046117b9565b6108b2565b6101c161028936600461153d565b6108c4565b61016c610913565b6101b76102a4366004611699565b610922565b61016c6109b8565b6101b76102bf3660046115c4565b610a46565b61016c6102d23660046117b9565b610a80565b6101c16102e53660046116cf565b610b14565b61014f6102f8366004611557565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061035757506001600160e01b03198216635b5e139f60e01b145b8061037257506001600160e01b0319821663780e9d6360e01b145b8061038d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546103a29061186c565b80601f01602080910402602001604051908101604052809291908181526020018280546103ce9061186c565b801561041b5780601f106103f05761010080835404028352916020019161041b565b820191906000526020600020905b8154815290600101906020018083116103fe57829003601f168201915b5050505050905090565b600061043082610ca6565b61044d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610474826108b2565b9050806001600160a01b0316836001600160a01b031614156104a95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906104c957506104c781336102f8565b155b156104e7576040516367d9dca160e11b815260040160405180910390fd5b6104f2838383610cd1565b505050565b6104f2838383610d2d565b600061050d836108c4565b821061052c576040516306ed618760e11b815260040160405180910390fd5b600080549080805b838110156105f057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061059c57506105e8565b80516001600160a01b0316156105b157805192505b876001600160a01b0316836001600160a01b031614156105e657868414156105df5750935061038d92505050565b6001909301925b505b600101610534565b50600080fd5b6104f283838360405180602001604052806000815250610a46565b600260085414156106695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260085533610678826108b2565b6001600160a01b0316146106df5760405162461bcd60e51b815260206004820152602860248201527f4d61676963526566696e6572793a20596f7520646f206e6f74206f776e20746860448201526734b9903a37b5b2b760c11b6064820152608401610660565b6106e881610f42565b60408051338152602081018390527f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df7910160405180910390a1506001600855565b6000805481805b828110156107b157600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906107a857858314156107a15750949350505050565b6001909201915b50600101610730565b506040516329c8c00760e21b815260040160405180910390fd5b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b15801561082a57600080fd5b505afa15801561083e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086291906116f8565b6108a65760405162461bcd60e51b815260206004820152601560248201527426b0b730b3b2b91d102737ba1030b71020b236b4b760591b6044820152606401610660565b6104f260098383611488565b60006108bd826110c0565b5192915050565b60006001600160a01b0382166108ed576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060600380546103a29061186c565b6001600160a01b03821633141561094c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600980546109c59061186c565b80601f01602080910402602001604051908101604052809291908181526020018280546109f19061186c565b8015610a3e5780601f10610a1357610100808354040283529160200191610a3e565b820191906000526020600020905b815481529060010190602001808311610a2157829003601f168201915b505050505081565b610a51848484610d2d565b610a5d848484846111db565b610a7a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606060098054610a8f9061186c565b80601f0160208091040260200160405190810160405280929190818152602001828054610abb9061186c565b8015610b085780601f10610add57610100808354040283529160200191610b08565b820191906000526020600020905b815481529060010190602001808311610aeb57829003601f168201915b50505050509050919050565b600060026008541415610b695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610660565b60026008556040516365e6a4df60e11b8152336004820152600160248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063cbcd49be9060440160206040518083038186803b158015610bd457600080fd5b505afa158015610be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0c91906116f8565b610c4e5760405162461bcd60e51b815260206004820152601360248201527226b0b730b3b2b91d102737ba1036b4b73a32b960691b6044820152606401610660565b604080516001600160a01b0385168152602081018490527f806cd60f2e685a1e396a8baa63258d7a53ee827529ff0b205284da9c8e19e2e1910160405180910390a1610c9a83836112ea565b60016008559392505050565b600080548210801561038d575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d38826110c0565b80519091506000906001600160a01b0316336001600160a01b03161480610d6657508151610d6690336102f8565b80610d81575033610d7684610425565b6001600160a01b0316145b905080610da157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614610dd65760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416610dfd57604051633a954ecd60e21b815260040160405180910390fd5b610e0d6000848460000151610cd1565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116610ef957600054811015610ef9578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6000610f4d826110c0565b9050610f5f6000838360000151610cd1565b80516001600160a01b039081166000908152600560209081526040808320805467ffffffffffffffff19811667ffffffffffffffff91821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260049094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b191693909317905590850180835291205490911661107857600054811015611078578151600082815260046020908152604090912080549185015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506001805481019055565b60408051606081018252600080825260208201819052918101829052905482908110156111c257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906111c05780516001600160a01b031615611156579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156111bb579392505050565b611156565b505b604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b0384163b156112de57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061121f90339089908890889060040161181c565b602060405180830381600087803b15801561123957600080fd5b505af1925050508015611269575060408051601f3d908101601f1916820190925261126691810190611730565b60015b6112c4573d808015611297576040519150601f19603f3d011682016040523d82523d6000602084013e61129c565b606091505b5080516112bc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112e2565b5060015b949350505050565b600061130683836040518060200160405280600081525061130d565b9392505050565b60006112e28484846001600080546001600160a01b03861661134157604051622e076360e81b815260040160405180910390fd5b8461135f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168d0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168d018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8681101561147b5760405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4848015611451575061144f60008984896111db565b155b1561146f576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016113fa565b5060005595945050505050565b8280546114949061186c565b90600052602060002090601f0160209004810192826114b657600085556114fc565b82601f106114cf5782800160ff198235161785556114fc565b828001600101855582156114fc579182015b828111156114fc5782358255916020019190600101906114e1565b5061150892915061150c565b5090565b5b80821115611508576000815560010161150d565b80356001600160a01b038116811461153857600080fd5b919050565b60006020828403121561154e578081fd5b61130682611521565b60008060408385031215611569578081fd5b61157283611521565b915061158060208401611521565b90509250929050565b60008060006060848603121561159d578081fd5b6115a684611521565b92506115b460208501611521565b9150604084013590509250925092565b600080600080608085870312156115d9578081fd5b6115e285611521565b93506115f060208601611521565b925060408501359150606085013567ffffffffffffffff80821115611613578283fd5b818701915087601f830112611626578283fd5b813581811115611638576116386118a7565b604051601f8201601f19908116603f01168101908382118183101715611660576116606118a7565b816040528281528a6020848701011115611678578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156116ab578182fd5b6116b483611521565b915060208301356116c4816118bd565b809150509250929050565b600080604083850312156116e1578182fd5b6116ea83611521565b946020939093013593505050565b600060208284031215611709578081fd5b8151611306816118bd565b600060208284031215611725578081fd5b8135611306816118ce565b600060208284031215611741578081fd5b8151611306816118ce565b6000806020838503121561175e578182fd5b823567ffffffffffffffff80821115611775578384fd5b818501915085601f830112611788578384fd5b813581811115611796578485fd5b8660208285010111156117a7578485fd5b60209290920196919550909350505050565b6000602082840312156117ca578081fd5b5035919050565b60008151808452815b818110156117f6576020818501810151868301820152016117da565b818111156118075782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061184f908301846117d1565b9695505050505050565b60208152600061130660208301846117d1565b600181811c9082168061188057607f821691505b602082108114156118a157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b80151581146118cb57600080fd5b50565b6001600160e01b0319811681146118cb57600080fdfea26469706673582212205d4b6216fbb94e19b815fe1e6307d16900960b1edd9501a7e5936ecbe96a821364736f6c634300080400330000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c80634f6ccce7116100b8578063a22cb4651161007c578063a22cb46514610296578063abcbb7b4146102a9578063b88d4fde146102b1578063c87b56dd146102c4578063da1919b3146102d7578063e985e9c5146102ea57600080fd5b80634f6ccce71461024257806355f804b3146102555780636352211e1461026857806370a082311461027b57806395d89b411461028e57600080fd5b80631b2df850116100ff5780631b2df850146101cf57806323b872dd146101f65780632f745c591461020957806342842e0e1461021c57806342966c681461022f57600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a457806318160ddd146101b9575b600080fd5b61014f61014a366004611714565b610326565b60405190151581526020015b60405180910390f35b61016c610393565b60405161015b9190611859565b61018c6101873660046117b9565b610425565b6040516001600160a01b03909116815260200161015b565b6101b76101b23660046116cf565b610469565b005b600154600054035b60405190815260200161015b565b61018c7f0000000000000000000000004e572433a3bfa336b6396d13afc9f69b5825286181565b6101b7610204366004611589565b6104f7565b6101c16102173660046116cf565b610502565b6101b761022a366004611589565b6105f6565b6101b761023d3660046117b9565b610611565b6101c16102503660046117b9565b610729565b6101b761026336600461174c565b6107cb565b61018c6102763660046117b9565b6108b2565b6101c161028936600461153d565b6108c4565b61016c610913565b6101b76102a4366004611699565b610922565b61016c6109b8565b6101b76102bf3660046115c4565b610a46565b61016c6102d23660046117b9565b610a80565b6101c16102e53660046116cf565b610b14565b61014f6102f8366004611557565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061035757506001600160e01b03198216635b5e139f60e01b145b8061037257506001600160e01b0319821663780e9d6360e01b145b8061038d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546103a29061186c565b80601f01602080910402602001604051908101604052809291908181526020018280546103ce9061186c565b801561041b5780601f106103f05761010080835404028352916020019161041b565b820191906000526020600020905b8154815290600101906020018083116103fe57829003601f168201915b5050505050905090565b600061043082610ca6565b61044d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610474826108b2565b9050806001600160a01b0316836001600160a01b031614156104a95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906104c957506104c781336102f8565b155b156104e7576040516367d9dca160e11b815260040160405180910390fd5b6104f2838383610cd1565b505050565b6104f2838383610d2d565b600061050d836108c4565b821061052c576040516306ed618760e11b815260040160405180910390fd5b600080549080805b838110156105f057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061059c57506105e8565b80516001600160a01b0316156105b157805192505b876001600160a01b0316836001600160a01b031614156105e657868414156105df5750935061038d92505050565b6001909301925b505b600101610534565b50600080fd5b6104f283838360405180602001604052806000815250610a46565b600260085414156106695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260085533610678826108b2565b6001600160a01b0316146106df5760405162461bcd60e51b815260206004820152602860248201527f4d61676963526566696e6572793a20596f7520646f206e6f74206f776e20746860448201526734b9903a37b5b2b760c11b6064820152608401610660565b6106e881610f42565b60408051338152602081018390527f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df7910160405180910390a1506001600855565b6000805481805b828110156107b157600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906107a857858314156107a15750949350505050565b6001909201915b50600101610730565b506040516329c8c00760e21b815260040160405180910390fd5b604051630935e01b60e21b81523360048201527f0000000000000000000000004e572433a3bfa336b6396d13afc9f69b582528616001600160a01b0316906324d7806c9060240160206040518083038186803b15801561082a57600080fd5b505afa15801561083e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086291906116f8565b6108a65760405162461bcd60e51b815260206004820152601560248201527426b0b730b3b2b91d102737ba1030b71020b236b4b760591b6044820152606401610660565b6104f260098383611488565b60006108bd826110c0565b5192915050565b60006001600160a01b0382166108ed576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060600380546103a29061186c565b6001600160a01b03821633141561094c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600980546109c59061186c565b80601f01602080910402602001604051908101604052809291908181526020018280546109f19061186c565b8015610a3e5780601f10610a1357610100808354040283529160200191610a3e565b820191906000526020600020905b815481529060010190602001808311610a2157829003601f168201915b505050505081565b610a51848484610d2d565b610a5d848484846111db565b610a7a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606060098054610a8f9061186c565b80601f0160208091040260200160405190810160405280929190818152602001828054610abb9061186c565b8015610b085780601f10610add57610100808354040283529160200191610b08565b820191906000526020600020905b815481529060010190602001808311610aeb57829003601f168201915b50505050509050919050565b600060026008541415610b695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610660565b60026008556040516365e6a4df60e11b8152336004820152600160248201527f0000000000000000000000004e572433a3bfa336b6396d13afc9f69b582528616001600160a01b03169063cbcd49be9060440160206040518083038186803b158015610bd457600080fd5b505afa158015610be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0c91906116f8565b610c4e5760405162461bcd60e51b815260206004820152601360248201527226b0b730b3b2b91d102737ba1036b4b73a32b960691b6044820152606401610660565b604080516001600160a01b0385168152602081018490527f806cd60f2e685a1e396a8baa63258d7a53ee827529ff0b205284da9c8e19e2e1910160405180910390a1610c9a83836112ea565b60016008559392505050565b600080548210801561038d575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d38826110c0565b80519091506000906001600160a01b0316336001600160a01b03161480610d6657508151610d6690336102f8565b80610d81575033610d7684610425565b6001600160a01b0316145b905080610da157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614610dd65760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416610dfd57604051633a954ecd60e21b815260040160405180910390fd5b610e0d6000848460000151610cd1565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116610ef957600054811015610ef9578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6000610f4d826110c0565b9050610f5f6000838360000151610cd1565b80516001600160a01b039081166000908152600560209081526040808320805467ffffffffffffffff19811667ffffffffffffffff91821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260049094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b191693909317905590850180835291205490911661107857600054811015611078578151600082815260046020908152604090912080549185015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506001805481019055565b60408051606081018252600080825260208201819052918101829052905482908110156111c257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906111c05780516001600160a01b031615611156579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156111bb579392505050565b611156565b505b604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b0384163b156112de57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061121f90339089908890889060040161181c565b602060405180830381600087803b15801561123957600080fd5b505af1925050508015611269575060408051601f3d908101601f1916820190925261126691810190611730565b60015b6112c4573d808015611297576040519150601f19603f3d011682016040523d82523d6000602084013e61129c565b606091505b5080516112bc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112e2565b5060015b949350505050565b600061130683836040518060200160405280600081525061130d565b9392505050565b60006112e28484846001600080546001600160a01b03861661134157604051622e076360e81b815260040160405180910390fd5b8461135f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168d0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168d018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8681101561147b5760405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4848015611451575061144f60008984896111db565b155b1561146f576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016113fa565b5060005595945050505050565b8280546114949061186c565b90600052602060002090601f0160209004810192826114b657600085556114fc565b82601f106114cf5782800160ff198235161785556114fc565b828001600101855582156114fc579182015b828111156114fc5782358255916020019190600101906114e1565b5061150892915061150c565b5090565b5b80821115611508576000815560010161150d565b80356001600160a01b038116811461153857600080fd5b919050565b60006020828403121561154e578081fd5b61130682611521565b60008060408385031215611569578081fd5b61157283611521565b915061158060208401611521565b90509250929050565b60008060006060848603121561159d578081fd5b6115a684611521565b92506115b460208501611521565b9150604084013590509250925092565b600080600080608085870312156115d9578081fd5b6115e285611521565b93506115f060208601611521565b925060408501359150606085013567ffffffffffffffff80821115611613578283fd5b818701915087601f830112611626578283fd5b813581811115611638576116386118a7565b604051601f8201601f19908116603f01168101908382118183101715611660576116606118a7565b816040528281528a6020848701011115611678578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156116ab578182fd5b6116b483611521565b915060208301356116c4816118bd565b809150509250929050565b600080604083850312156116e1578182fd5b6116ea83611521565b946020939093013593505050565b600060208284031215611709578081fd5b8151611306816118bd565b600060208284031215611725578081fd5b8135611306816118ce565b600060208284031215611741578081fd5b8151611306816118ce565b6000806020838503121561175e578182fd5b823567ffffffffffffffff80821115611775578384fd5b818501915085601f830112611788578384fd5b813581811115611796578485fd5b8660208285010111156117a7578485fd5b60209290920196919550909350505050565b6000602082840312156117ca578081fd5b5035919050565b60008151808452815b818110156117f6576020818501810151868301820152016117da565b818111156118075782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061184f908301846117d1565b9695505050505050565b60208152600061130660208301846117d1565b600181811c9082168061188057607f821691505b602082108114156118a157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b80151581146118cb57600080fd5b50565b6001600160e01b0319811681146118cb57600080fdfea26469706673582212205d4b6216fbb94e19b815fe1e6307d16900960b1edd9501a7e5936ecbe96a821364736f6c63430008040033

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

0000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861

-----Decoded View---------------
Arg [0] : _manager (address): 0x4E572433A3Bfa336b6396D13AfC9F69b58252861

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861


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