ETH Price: $2,346.02 (+2.51%)

Contract

0xD504436868fB65b789dF2189640feB336E815827
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00
Transaction Hash
Method
Block
From
To
Remint163567102023-01-07 18:30:47611 days ago1673116247IN
0xD5044368...36E815827
0 ETH0.0033054116.99240852
Remint157268992022-10-11 19:17:11699 days ago1665515831IN
0xD5044368...36E815827
0 ETH0.0086213727.64582607
Remint156105542022-09-25 13:01:59715 days ago1664110919IN
0xD5044368...36E815827
0 ETH0.001172816.02885107
Remint154467182022-08-31 12:48:07740 days ago1661950087IN
0xD5044368...36E815827
0 ETH0.0051964126.71498245
Remint153375722022-08-14 4:19:03758 days ago1660450743IN
0xD5044368...36E815827
0 ETH0.002695878.56701541
Remint152207422022-07-26 22:17:44776 days ago1658873864IN
0xD5044368...36E815827
0 ETH0.0034948717.96452242
Withdraw147994332022-05-18 14:48:10845 days ago1652885290IN
0xD5044368...36E815827
0 ETH0.001531450
Withdraw Partial147845212022-05-16 5:49:08847 days ago1652680148IN
0xD5044368...36E815827
0 ETH0.0009312930
Remint147513992022-05-10 23:22:50853 days ago1652224970IN
0xD5044368...36E815827
0 ETH0.0120923462.16152372
Remint147369282022-05-08 15:49:26855 days ago1652024966IN
0xD5044368...36E815827
0 ETH0.0057793529.71375052
Remint147241782022-05-06 14:55:30857 days ago1651848930IN
0xD5044368...36E815827
0 ETH0.0070498336.22784969
Withdraw Partial145624202022-04-11 5:09:04883 days ago1649653744IN
0xD5044368...36E815827
0 ETH0.0009309330
Remint145500272022-04-09 6:51:07884 days ago1649487067IN
0xD5044368...36E815827
0 ETH0.0061694331.71570109
Remint144509842022-03-24 19:55:04900 days ago1648151704IN
0xD5044368...36E815827
0 ETH0.0394723159.45529871
Remint144472132022-03-24 5:57:47900 days ago1648101467IN
0xD5044368...36E815827
0 ETH0.0073351123.30879404
Remint144370122022-03-22 15:57:17902 days ago1647964637IN
0xD5044368...36E815827
0 ETH0.0469953937.5778875
Remint144366252022-03-22 14:29:17902 days ago1647959357IN
0xD5044368...36E815827
0 ETH0.0084398443.38694334
Withdraw Partial143971852022-03-16 11:02:01908 days ago1647428521IN
0xD5044368...36E815827
0 ETH0.0007757725
Remint143923322022-03-15 16:43:03909 days ago1647362583IN
0xD5044368...36E815827
0 ETH0.0069362635.65230013
Remint143808502022-03-13 21:58:44911 days ago1647208724IN
0xD5044368...36E815827
0 ETH0.0140451845.03640746
Remint143796532022-03-13 17:37:23911 days ago1647193043IN
0xD5044368...36E815827
0 ETH0.0035844618.42786979
Remint143676792022-03-11 20:31:14913 days ago1647030674IN
0xD5044368...36E815827
0 ETH0.017695841.22878125
Remint143654852022-03-11 12:19:06913 days ago1647001146IN
0xD5044368...36E815827
0 ETH0.0064579215.04474189
Remint143652602022-03-11 11:32:12913 days ago1646998332IN
0xD5044368...36E815827
0 ETH0.0113836417.07473887
Remint143635142022-03-11 4:45:38914 days ago1646973938IN
0xD5044368...36E815827
0 ETH0.024275521.36881199
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
163567102023-01-07 18:30:47611 days ago1673116247
0xD5044368...36E815827
0 ETH
157268992022-10-11 19:17:11699 days ago1665515831
0xD5044368...36E815827
0 ETH
157268992022-10-11 19:17:11699 days ago1665515831
0xD5044368...36E815827
0 ETH
156105542022-09-25 13:01:59715 days ago1664110919
0xD5044368...36E815827
0 ETH
154467182022-08-31 12:48:07740 days ago1661950087
0xD5044368...36E815827
0 ETH
153375722022-08-14 4:19:03758 days ago1660450743
0xD5044368...36E815827
0 ETH
153375722022-08-14 4:19:03758 days ago1660450743
0xD5044368...36E815827
0 ETH
152207422022-07-26 22:17:44776 days ago1658873864
0xD5044368...36E815827
0 ETH
147994332022-05-18 14:48:10845 days ago1652885290
0xD5044368...36E815827
20.38 ETH
147845212022-05-16 5:49:08847 days ago1652680148
0xD5044368...36E815827
20 ETH
147513992022-05-10 23:22:50853 days ago1652224970
0xD5044368...36E815827
0 ETH
147369282022-05-08 15:49:26855 days ago1652024966
0xD5044368...36E815827
0 ETH
147241782022-05-06 14:55:30857 days ago1651848930
0xD5044368...36E815827
0 ETH
145624202022-04-11 5:09:04883 days ago1649653744
0xD5044368...36E815827
12 ETH
145500272022-04-09 6:51:07884 days ago1649487067
0xD5044368...36E815827
0 ETH
144509842022-03-24 19:55:04900 days ago1648151704
0xD5044368...36E815827
0 ETH
144509842022-03-24 19:55:04900 days ago1648151704
0xD5044368...36E815827
0 ETH
144509842022-03-24 19:55:04900 days ago1648151704
0xD5044368...36E815827
0 ETH
144509842022-03-24 19:55:04900 days ago1648151704
0xD5044368...36E815827
0 ETH
144509842022-03-24 19:55:04900 days ago1648151704
0xD5044368...36E815827
0 ETH
144472132022-03-24 5:57:47900 days ago1648101467
0xD5044368...36E815827
0 ETH
144472132022-03-24 5:57:47900 days ago1648101467
0xD5044368...36E815827
0 ETH
144370122022-03-22 15:57:17902 days ago1647964637
0xD5044368...36E815827
0 ETH
144370122022-03-22 15:57:17902 days ago1647964637
0xD5044368...36E815827
0 ETH
144370122022-03-22 15:57:17902 days ago1647964637
0xD5044368...36E815827
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TTTSale

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 23 : TTTSale.sol
pragma solidity ^0.8.0;

import "./TTT.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract TTTSale is Ownable {
  using Strings for string;
  using SafeMath for uint256;

  address public tttAddress;
  bytes32 remintRoot;
  bytes32 freeMintRoot;
  bytes32 whitelistRoot;
  bool isRemintOpen = true;
  uint256 price = 20000000000000000;
  uint256 totalQuantity = 7777;
  uint256 preSaleDate = 1643936400;
  uint256 publicSaleDate = 1644282000;
  uint256 preSaleMintLimit = 6;
  uint256 normalMintLimit = 21;

  mapping(address => bool) private holderHasReminted;
  mapping(address => uint) private holderFreeMintsUsed;
  mapping(address => bool) private wlHasMinted;

  constructor(address _tttAddress, bytes32 _remintMerkleRoot, bytes32 _freeMintMerkleRoot, bytes32 whitelistMerkleRoot) {
    tttAddress = _tttAddress;
    remintRoot = _remintMerkleRoot;
    freeMintRoot = _freeMintMerkleRoot;
    whitelistRoot = whitelistMerkleRoot;
  }

  function getBalance() public onlyOwner view returns (uint256) {
    return address(this).balance;
  }

  function withdraw() public onlyOwner {
    uint256 amount = address(this).balance;
    payable(owner()).transfer(amount);
  }

  function withdrawPartial(uint256 _amount) public onlyOwner {
    payable(owner()).transfer(_amount);
  }

  function addressHasReminted(address _address) private view returns (bool) {
    return holderHasReminted[_address];
  }

  function addressHasWLMinted(address _address) private view returns (bool) {
    return wlHasMinted[_address];
  }

  function hasFreeMintsAvailable(address _address, uint256 _quantity, uint256 maxQuantity) private view returns (bool){
    return (maxQuantity - holderFreeMintsUsed[_address] - _quantity) >= 0;
  }

  function remint(address _toAddress, uint256[] calldata _tokens, bytes32[] calldata _proof) public {
    require(isRemintOpen == true, "Reminting is closed");
    require(!addressHasReminted(_toAddress), 'Address has already reminted');
    require(_remintVerify(_remintLeaf(_toAddress, _tokens), _proof), "Invalid merkle proof");
    TTT newTTT = TTT(tttAddress);
    for (uint i = 0; i < _tokens.length; i++){
      newTTT.reMint(_toAddress, _tokens[i]);
    }
    holderHasReminted[_toAddress] = true;
  }

  function freeMint(address _toAddress, uint256 _quantity, uint256 _maxQuantity, bytes32[] calldata _proof) public{
    TTT newTTT = TTT(tttAddress);
    uint256 tttSupply = newTTT.getCurrentTokenId();
    require(block.timestamp < publicSaleDate, 'The free mint period has ended');
    require(tttSupply + _quantity <= totalQuantity, 'Attempted quantity to mint exceeds total supply if minted');
    require(hasFreeMintsAvailable(_toAddress, _quantity, _maxQuantity), 'This will exceed your allowed free Tot mints');
    require(_freeMintVerify(_freeMintLeaf(_toAddress, _maxQuantity), _proof), "Invalid merkle proof");
    newTTT.bulkMint(_toAddress, _quantity);
    holderFreeMintsUsed[_toAddress] = holderFreeMintsUsed[_toAddress].add(_quantity);
  }

  function combinedRemintAndFreeMint(address _toAddress, uint256[]  calldata _remintTokens, bytes32[] calldata _remintProof,
    uint256 _freeMintQuantity, uint256 _freeMintMaxQuantity, bytes32[] calldata _freeMintProof) public
  {
    remint(_toAddress, _remintTokens, _remintProof);
    freeMint(_toAddress, _freeMintQuantity, _freeMintMaxQuantity, _freeMintProof);
  }

  function whitelistMint(uint256 _quantity, bytes32[] calldata proof) public payable{
    TTT newTTT = TTT(tttAddress);
    uint256 tttSupply = newTTT.getCurrentTokenId();
    require(block.timestamp > preSaleDate, 'Pre-sale has not started yet');
    require(_quantity < preSaleMintLimit, 'Quantity exceeds allowed pre-sale quantity');
    require(tttSupply + _quantity < totalQuantity, 'Attempted quantity to mint exceeds total supply if minted');
    require(msg.value >= (_quantity * price), 'Value below price');
    require(!addressHasWLMinted(msg.sender), 'address has already minted for pre-sale');
    require(_whitelistVerify(_whitelistLeaf(msg.sender), proof), "Invalid merkle proof");
    for (uint256 i = 0; i < _quantity; i++) {
      newTTT.mintTo(msg.sender);
    }
    wlHasMinted[msg.sender] = true;
  }

  function mint(address _toAddress, uint256 _quantity) public payable{
    require(block.timestamp >= publicSaleDate, 'Public sale has not started');
    require(msg.value >= (_quantity * price), 'Value below price');
    require(_quantity < normalMintLimit, 'Quantity exceeds amount allowed per transaction');
    TTT newTTT = TTT(tttAddress);
    uint256 tttSupply = newTTT.getCurrentTokenId();
    require(tttSupply + _quantity < totalQuantity, 'Attempted quantity to mint exceeds total supply if minted');

    for (uint256 i = 0; i < _quantity; i++) {
      newTTT.mintTo(_toAddress);
    }
  }

  function bulkMint(address _toAddress, uint256 _quantity) public payable{
    require(block.timestamp >= publicSaleDate, 'Public sale has not started');
    require(msg.value >= (_quantity * price), 'Value below price');
    TTT newTTT = TTT(tttAddress);
    require(_quantity < normalMintLimit, 'Quantity exceeds amount allowed per transaction');
    uint256 tttSupply = newTTT.getCurrentTokenId();
    require(tttSupply + _quantity < totalQuantity, 'Attempted quantity to mint exceeds total supply if minted');
    newTTT.bulkMint(_toAddress, _quantity);
  }

  function updatePreSaleMintLimit(uint256 _quantity) public onlyOwner {
    preSaleMintLimit = _quantity;
  }

  function updatePublicSaleDate(uint256 _newPublicSaleDate) public onlyOwner {
    publicSaleDate = _newPublicSaleDate;
  }

  function getCurrentToken() public view returns (uint256) {
    TTT newTTT = TTT(tttAddress);
    uint256 currentToken = newTTT.getCurrentTokenId();
    return (currentToken);
  }

  function getMinterInformation(address _address) public view returns (uint256, bool, bool) {
    bool hasReminted = addressHasReminted(_address);
    uint256 freeMintsRedeemed = holderFreeMintsUsed[_address];
    bool wlHasMintedBool = wlHasMinted[_address];
    return (freeMintsRedeemed, hasReminted, wlHasMintedBool);
  }

  function _remintLeaf(address account, uint256[] memory _tokens)
  internal pure returns (bytes32)
  {
    return keccak256(abi.encodePacked(account, _tokens));
  }

  function _remintVerify(bytes32 leaf, bytes32[] memory proof)
  internal view returns (bool)
  {
    return MerkleProof.verify(proof, remintRoot, leaf);
  }

  function _whitelistLeaf(address account)
  internal pure returns (bytes32)
  {
    return keccak256(abi.encodePacked(account));
  }

  function _whitelistVerify(bytes32 leaf, bytes32[] memory proof)
  internal view returns (bool)
  {
    return MerkleProof.verify(proof, whitelistRoot, leaf);
  }

  function _freeMintLeaf(address account, uint256 maxQuantity)
  internal pure returns (bytes32)
  {
    return keccak256(abi.encodePacked(account, maxQuantity));
  }

  function _freeMintVerify(bytes32 leaf, bytes32[] memory proof)
  internal view returns (bool)
  {
    return MerkleProof.verify(proof, freeMintRoot, leaf);
  }

  function updateWhiteListRoot(bytes32 newRoot) public onlyOwner {
    whitelistRoot = newRoot;
  }

  function updateRemintRoot(bytes32 newRoot) public onlyOwner {
    remintRoot = newRoot;
  }

  function updateFreeMintRoot(bytes32 newRoot) public onlyOwner {
    freeMintRoot = newRoot;
  }

  function updateIsRemintOpen(bool _isRemintOpen) public onlyOwner {
    isRemintOpen = _isRemintOpen;
  }

  function updateTotalQuantity(uint256 _quantity) public onlyOwner {
    totalQuantity = _quantity;
  }

  function updateNormalMintLimit(uint256 _quantity) public onlyOwner {
    normalMintLimit = _quantity;
  }
}

File 2 of 23 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 3 of 23 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 4 of 23 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 5 of 23 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 6 of 23 : TTT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721Tradable.sol";

/**
 * @title Time Travel Tots
 * A Contract for the Time Travel Tots
 */
contract TTT is ERC721Tradable {
    constructor(address _proxyRegistryAddress)
        ERC721Tradable("Time Travel Tots", "TTT", _proxyRegistryAddress)
    {}

    function baseTokenURI() override public pure returns (string memory) {
      return "https://api2.shaggysheep.life/api/meta/time-travel-tots-2/";
    }

    function contractURI() public pure returns (string memory) {
      return "https://api2.shaggysheep.life/api/meta/contract/time/travel-tots-2/";
    }
}

File 7 of 23 : ERC721Tradable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
 * @title ERC721Tradable
 * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
 */

//TODO need function to update current token id, current reserved token id and total supply
abstract contract ERC721Tradable is ERC721Enumerable, ContextMixin, NativeMetaTransaction, Ownable, AccessControl{
    using SafeMath for uint256;
    using Strings for string;
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");

    address proxyRegistryAddress;
    uint256 private _currentTokenId = 1521;
    uint256 private _maxReservedTokenId = 350;
    uint256 TOTAL_SUPPLY = 7777;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
      proxyRegistryAddress = _proxyRegistryAddress;
      _initializeEIP712(_name);
      _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
      _setupRole(MINTER_ROLE, _msgSender());
      _setupRole(BURNER_ROLE, _msgSender());
    }

  function reserveMint(address _to, uint256 _quantity, uint256 _startTokenId) public onlyOwner {
    require(hasRole(MINTER_ROLE, _msgSender()), "Caller is not a minter");
    assert((_startTokenId + _quantity) <= TOTAL_SUPPLY);
    for (uint256 i = _startTokenId; i < _startTokenId+_quantity; i++) {
        _mint(_to, i);
      }
  }

  function reMint(address _to, uint256 _newTokenId) public {
    require(hasRole(MINTER_ROLE, _msgSender()), "Caller is not a minter");
    assert(_newTokenId > 19);
    assert(_newTokenId < 1522);
    _mint(_to, _newTokenId);
  }

  /**
   * @dev Mints a token to an address with a tokenURI.
   * @param _to address of the future owner of the token
   */
  function mintTo(address _to) public {
    require(hasRole(MINTER_ROLE, _msgSender()), "Caller is not a minter");
    uint256 newTokenId = _getNextTokenId();
    assert(newTokenId <= TOTAL_SUPPLY);
    _mint(_to, newTokenId);
    _incrementTokenId();
  }

  function bulkMint(address _to, uint256 _quantity) public {
    require(hasRole(MINTER_ROLE, _msgSender()), "Caller is not a minter");
    uint256 newTokenId = _getNextTokenId();
    assert(newTokenId + _quantity <= TOTAL_SUPPLY);

    for (uint256 i = newTokenId; i < newTokenId + _quantity; i++) {
      _mint(_to, i);
      _incrementTokenId();
    }
  }

    /**
     * @dev calculates the next token ID based on value of _currentTokenId
     * @return uint256 for the next token ID
     */

    function _getNextTokenId() private view returns (uint256) {
        return _currentTokenId.add(1);
    }

    function getCurrentTokenId() public view returns (uint256) {
      return _currentTokenId;
    }
  /**
 * @dev increments the value of _currentTokenId
 */
  function _incrementTokenId() private {
    _currentTokenId++;
  }


  function burn(uint256 tokenId) public virtual {
      //solhint-disable-next-line max-line-length
      require(hasRole(BURNER_ROLE, _msgSender()), "ERC721Burnable: caller is not owner nor approved");
      _burn(tokenId);
    }

    function baseTokenURI() virtual public pure returns (string memory);

    function tokenURI(uint256 _tokenId) override public pure returns (string memory) {
        return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId)));
    }

    function transferOwnership(address newOwner) override public onlyOwner {
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override
        public
        view
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }


        return super.isApprovedForAll(owner, operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender()
        internal
        override
        view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }

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

  function updateTotalSupply(uint256 _newTotalSupply) public onlyOwner {
    TOTAL_SUPPLY = _newTotalSupply;
  }

  function updateCurrentTokenId(uint256 _newCurrentTokenId) public onlyOwner {
    _currentTokenId = _newCurrentTokenId;
  }
}

File 8 of 23 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 23 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 10 of 23 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 11 of 23 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

File 12 of 23 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 of 23 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 14 of 23 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 15 of 23 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 16 of 23 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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 17 of 23 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 18 of 23 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 19 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 20 of 23 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 21 of 23 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 22 of 23 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

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

File 23 of 23 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

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

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

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

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tttAddress","type":"address"},{"internalType":"bytes32","name":"_remintMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_freeMintMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"whitelistMerkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_toAddress","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"bulkMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_toAddress","type":"address"},{"internalType":"uint256[]","name":"_remintTokens","type":"uint256[]"},{"internalType":"bytes32[]","name":"_remintProof","type":"bytes32[]"},{"internalType":"uint256","name":"_freeMintQuantity","type":"uint256"},{"internalType":"uint256","name":"_freeMintMaxQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"_freeMintProof","type":"bytes32[]"}],"name":"combinedRemintAndFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_toAddress","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_maxQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMinterInformation","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toAddress","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toAddress","type":"address"},{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"remint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tttAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"updateFreeMintRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRemintOpen","type":"bool"}],"name":"updateIsRemintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"updateNormalMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"updatePreSaleMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPublicSaleDate","type":"uint256"}],"name":"updatePublicSaleDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"updateRemintRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"updateTotalQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"updateWhiteListRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawPartial","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600560006101000a81548160ff02191690831515021790555066470de4df820000600655611e616007556361fc7a90600855636201c0906009556006600a556015600b553480156200005757600080fd5b506040516200336f3803806200336f83398181016040528101906200007d91906200026e565b6200009d62000091620000fd60201b60201c565b6200010560201b60201c565b83600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600281905550816003819055508060048190555050505050620002e0565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001fb82620001ce565b9050919050565b6200020d81620001ee565b81146200021957600080fd5b50565b6000815190506200022d8162000202565b92915050565b6000819050919050565b620002488162000233565b81146200025457600080fd5b50565b60008151905062000268816200023d565b92915050565b600080600080608085870312156200028b576200028a620001c9565b5b60006200029b878288016200021c565b9450506020620002ae8782880162000257565b9350506040620002c18782880162000257565b9250506060620002d48782880162000257565b91505092959194509250565b61307f80620002f06000396000f3fe6080604052600436106101405760003560e01c80638db94633116100b6578063c0b445d91161006f578063c0b445d9146103c6578063ceb4a50014610405578063d2cab0561461042e578063e89443481461044a578063ef2d174614610473578063f2fde38b1461049e57610140565b80638db94633146102db578063941e79fc1461030457806396bda71e1461032d578063a7c5241314610356578063a8c90cb214610381578063ba03bc6e1461039d57610140565b80634ac01be8116101085780634ac01be8146101f55780636cf2745b1461021e57806370eeefd514610247578063715018a6146102705780638d3b48c5146102875780638da5cb5b146102b057610140565b806312065fe0146101455780631211540c14610170578063311137f2146101995780633ccfd60b146101c257806340c10f19146101d9575b600080fd5b34801561015157600080fd5b5061015a6104c7565b6040516101679190611ff1565b60405180910390f35b34801561017c57600080fd5b5061019760048036038101906101929190612042565b61054b565b005b3480156101a557600080fd5b506101c060048036038101906101bb9190612132565b610618565b005b3480156101ce57600080fd5b506101d761092e565b005b6101f360048036038101906101ee91906121ba565b610a00565b005b34801561020157600080fd5b5061021c60048036038101906102179190612042565b610c52565b005b34801561022a57600080fd5b5061024560048036038101906102409190612250565b610cd8565b005b34801561025357600080fd5b5061026e60048036038101906102699190612377565b610cfd565b005b34801561027c57600080fd5b50610285610d96565b005b34801561029357600080fd5b506102ae60048036038101906102a99190612042565b610e1e565b005b3480156102bc57600080fd5b506102c5610ea4565b6040516102d291906123b3565b60405180910390f35b3480156102e757600080fd5b5061030260048036038101906102fd9190612404565b610ecd565b005b34801561031057600080fd5b5061032b60048036038101906103269190612042565b610f53565b005b34801561033957600080fd5b50610354600480360381019061034f9190612042565b610fd9565b005b34801561036257600080fd5b5061036b61105f565b60405161037891906123b3565b60405180910390f35b61039b600480360381019061039691906121ba565b611085565b005b3480156103a957600080fd5b506103c460048036038101906103bf9190612404565b6112ba565b005b3480156103d257600080fd5b506103ed60048036038101906103e89190612431565b611340565b6040516103fc9392919061246d565b60405180910390f35b34801561041157600080fd5b5061042c60048036038101906104279190612404565b6113f9565b005b610448600480360381019061044391906124a4565b61147f565b005b34801561045657600080fd5b50610471600480360381019061046c9190612504565b611804565b005b34801561047f57600080fd5b50610488611aa6565b6040516104959190611ff1565b60405180910390f35b3480156104aa57600080fd5b506104c560048036038101906104c09190612431565b611b49565b005b60006104d1611c41565b73ffffffffffffffffffffffffffffffffffffffff166104ef610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610545576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053c906125f6565b60405180910390fd5b47905090565b610553611c41565b73ffffffffffffffffffffffffffffffffffffffff16610571610ea4565b73ffffffffffffffffffffffffffffffffffffffff16146105c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105be906125f6565b60405180910390fd5b6105cf610ea4565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610614573d6000803e3d6000fd5b5050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa15801561068c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b0919061262b565b905060095442106106f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ed906126a4565b60405180910390fd5b600754868261070591906126f3565b1115610746576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073d906127bb565b60405180910390fd5b610751878787611c49565b610790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107879061284d565b60405180910390fd5b6107e461079d8887611cad565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611ce0565b610823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081a906128b9565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a8c90cb288886040518363ffffffff1660e01b815260040161085e9291906128d9565b600060405180830381600087803b15801561087857600080fd5b505af115801561088c573d6000803e3d6000fd5b505050506108e286600d60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611cf790919063ffffffff16565b600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050505050565b610936611c41565b73ffffffffffffffffffffffffffffffffffffffff16610954610ea4565b73ffffffffffffffffffffffffffffffffffffffff16146109aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a1906125f6565b60405180910390fd5b60004790506109b7610ea4565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109fc573d6000803e3d6000fd5b5050565b600954421015610a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3c9061294e565b60405180910390fd5b60065481610a53919061296e565b341015610a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8c90612a14565b60405180910390fd5b600b548110610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad090612aa6565b60405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b71919061262b565b90506007548382610b8291906126f3565b10610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb9906127bb565b60405180910390fd5b60005b83811015610c4b578273ffffffffffffffffffffffffffffffffffffffff1663755edd17866040518263ffffffff1660e01b8152600401610c0691906123b3565b600060405180830381600087803b158015610c2057600080fd5b505af1158015610c34573d6000803e3d6000fd5b505050508080610c4390612ac6565b915050610bc5565b5050505050565b610c5a611c41565b73ffffffffffffffffffffffffffffffffffffffff16610c78610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610cce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc5906125f6565b60405180910390fd5b8060098190555050565b610ce58989898989611804565b610cf28985858585610618565b505050505050505050565b610d05611c41565b73ffffffffffffffffffffffffffffffffffffffff16610d23610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d70906125f6565b60405180910390fd5b80600560006101000a81548160ff02191690831515021790555050565b610d9e611c41565b73ffffffffffffffffffffffffffffffffffffffff16610dbc610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e09906125f6565b60405180910390fd5b610e1c6000611d0d565b565b610e26611c41565b73ffffffffffffffffffffffffffffffffffffffff16610e44610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610e9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e91906125f6565b60405180910390fd5b80600b8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610ed5611c41565b73ffffffffffffffffffffffffffffffffffffffff16610ef3610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f40906125f6565b60405180910390fd5b8060048190555050565b610f5b611c41565b73ffffffffffffffffffffffffffffffffffffffff16610f79610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610fcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc6906125f6565b60405180910390fd5b80600a8190555050565b610fe1611c41565b73ffffffffffffffffffffffffffffffffffffffff16610fff610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c906125f6565b60405180910390fd5b8060078190555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6009544210156110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c19061294e565b60405180910390fd5b600654816110d8919061296e565b34101561111a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111190612a14565b60405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600b548210611185576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117c90612aa6565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f6919061262b565b9050600754838261120791906126f3565b10611247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123e906127bb565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a8c90cb285856040518363ffffffff1660e01b81526004016112829291906128d9565b600060405180830381600087803b15801561129c57600080fd5b505af11580156112b0573d6000803e3d6000fd5b5050505050505050565b6112c2611c41565b73ffffffffffffffffffffffffffffffffffffffff166112e0610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614611336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132d906125f6565b60405180910390fd5b8060038190555050565b60008060008061134f85611dd1565b90506000600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600e60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690508183829550955095505050509193909250565b611401611c41565b73ffffffffffffffffffffffffffffffffffffffff1661141f610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c906125f6565b60405180910390fd5b8060028190555050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611517919061262b565b9050600854421161155d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155490612b5b565b60405180910390fd5b600a5485106115a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159890612bed565b60405180910390fd5b60075485826115b091906126f3565b106115f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e7906127bb565b60405180910390fd5b600654856115fe919061296e565b341015611640576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163790612a14565b60405180910390fd5b61164933611e27565b15611689576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168090612c7f565b60405180910390fd5b6116dc61169533611e7d565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611ead565b61171b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611712906128b9565b60405180910390fd5b60005b858110156117a4578273ffffffffffffffffffffffffffffffffffffffff1663755edd17336040518263ffffffff1660e01b815260040161175f91906123b3565b600060405180830381600087803b15801561177957600080fd5b505af115801561178d573d6000803e3d6000fd5b50505050808061179c90612ac6565b91505061171e565b506001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050505050565b60011515600560009054906101000a900460ff1615151461185a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185190612ceb565b60405180910390fd5b61186385611dd1565b156118a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189a90612d57565b60405180910390fd5b6119386118f186868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611ec4565b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611ef7565b611977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196e906128b9565b60405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b85859050811015611a45578173ffffffffffffffffffffffffffffffffffffffff1663b9bc85db888888858181106119dc576119db612d77565b5b905060200201356040518363ffffffff1660e01b8152600401611a009291906128d9565b600060405180830381600087803b158015611a1a57600080fd5b505af1158015611a2e573d6000803e3d6000fd5b505050508080611a3d90612ac6565b9150506119a1565b506001600c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050505050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3f919061262b565b9050809250505090565b611b51611c41565b73ffffffffffffffffffffffffffffffffffffffff16611b6f610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614611bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbc906125f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2c90612e18565b60405180910390fd5b611c3e81611d0d565b50565b600033905090565b60008083600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484611c989190612e38565b611ca29190612e38565b101590509392505050565b60008282604051602001611cc2929190612ed5565b60405160208183030381529060405280519060200120905092915050565b6000611cef8260035485611f0e565b905092915050565b60008183611d0591906126f3565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600081604051602001611e909190612f01565b604051602081830303815290604052805190602001209050919050565b6000611ebc8260045485611f0e565b905092915050565b60008282604051602001611ed9929190612fd4565b60405160208183030381529060405280519060200120905092915050565b6000611f068260025485611f0e565b905092915050565b600082611f1b8584611f25565b1490509392505050565b60008082905060005b8451811015611fcd576000858281518110611f4c57611f4b612d77565b5b60200260200101519050808311611f8d578281604051602001611f7092919061301d565b604051602081830303815290604052805190602001209250611fb9565b8083604051602001611fa092919061301d565b6040516020818303038152906040528051906020012092505b508080611fc590612ac6565b915050611f2e565b508091505092915050565b6000819050919050565b611feb81611fd8565b82525050565b60006020820190506120066000830184611fe2565b92915050565b600080fd5b600080fd5b61201f81611fd8565b811461202a57600080fd5b50565b60008135905061203c81612016565b92915050565b6000602082840312156120585761205761200c565b5b60006120668482850161202d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061209a8261206f565b9050919050565b6120aa8161208f565b81146120b557600080fd5b50565b6000813590506120c7816120a1565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126120f2576120f16120cd565b5b8235905067ffffffffffffffff81111561210f5761210e6120d2565b5b60208301915083602082028301111561212b5761212a6120d7565b5b9250929050565b60008060008060006080868803121561214e5761214d61200c565b5b600061215c888289016120b8565b955050602061216d8882890161202d565b945050604061217e8882890161202d565b935050606086013567ffffffffffffffff81111561219f5761219e612011565b5b6121ab888289016120dc565b92509250509295509295909350565b600080604083850312156121d1576121d061200c565b5b60006121df858286016120b8565b92505060206121f08582860161202d565b9150509250929050565b60008083601f8401126122105761220f6120cd565b5b8235905067ffffffffffffffff81111561222d5761222c6120d2565b5b602083019150836020820283011115612249576122486120d7565b5b9250929050565b600080600080600080600080600060c08a8c0312156122725761227161200c565b5b60006122808c828d016120b8565b99505060208a013567ffffffffffffffff8111156122a1576122a0612011565b5b6122ad8c828d016121fa565b985098505060408a013567ffffffffffffffff8111156122d0576122cf612011565b5b6122dc8c828d016120dc565b965096505060606122ef8c828d0161202d565b94505060806123008c828d0161202d565b93505060a08a013567ffffffffffffffff81111561232157612320612011565b5b61232d8c828d016120dc565b92509250509295985092959850929598565b60008115159050919050565b6123548161233f565b811461235f57600080fd5b50565b6000813590506123718161234b565b92915050565b60006020828403121561238d5761238c61200c565b5b600061239b84828501612362565b91505092915050565b6123ad8161208f565b82525050565b60006020820190506123c860008301846123a4565b92915050565b6000819050919050565b6123e1816123ce565b81146123ec57600080fd5b50565b6000813590506123fe816123d8565b92915050565b60006020828403121561241a5761241961200c565b5b6000612428848285016123ef565b91505092915050565b6000602082840312156124475761244661200c565b5b6000612455848285016120b8565b91505092915050565b6124678161233f565b82525050565b60006060820190506124826000830186611fe2565b61248f602083018561245e565b61249c604083018461245e565b949350505050565b6000806000604084860312156124bd576124bc61200c565b5b60006124cb8682870161202d565b935050602084013567ffffffffffffffff8111156124ec576124eb612011565b5b6124f8868287016120dc565b92509250509250925092565b6000806000806000606086880312156125205761251f61200c565b5b600061252e888289016120b8565b955050602086013567ffffffffffffffff81111561254f5761254e612011565b5b61255b888289016121fa565b9450945050604086013567ffffffffffffffff81111561257e5761257d612011565b5b61258a888289016120dc565b92509250509295509295909350565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006125e0602083612599565b91506125eb826125aa565b602082019050919050565b6000602082019050818103600083015261260f816125d3565b9050919050565b60008151905061262581612016565b92915050565b6000602082840312156126415761264061200c565b5b600061264f84828501612616565b91505092915050565b7f5468652066726565206d696e7420706572696f642068617320656e6465640000600082015250565b600061268e601e83612599565b915061269982612658565b602082019050919050565b600060208201905081810360008301526126bd81612681565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006126fe82611fd8565b915061270983611fd8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561273e5761273d6126c4565b5b828201905092915050565b7f417474656d70746564207175616e7469747920746f206d696e7420657863656560008201527f647320746f74616c20737570706c79206966206d696e74656400000000000000602082015250565b60006127a5603983612599565b91506127b082612749565b604082019050919050565b600060208201905081810360008301526127d481612798565b9050919050565b7f546869732077696c6c2065786365656420796f757220616c6c6f77656420667260008201527f656520546f74206d696e74730000000000000000000000000000000000000000602082015250565b6000612837602c83612599565b9150612842826127db565b604082019050919050565b600060208201905081810360008301526128668161282a565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b60006128a3601483612599565b91506128ae8261286d565b602082019050919050565b600060208201905081810360008301526128d281612896565b9050919050565b60006040820190506128ee60008301856123a4565b6128fb6020830184611fe2565b9392505050565b7f5075626c69632073616c6520686173206e6f7420737461727465640000000000600082015250565b6000612938601b83612599565b915061294382612902565b602082019050919050565b600060208201905081810360008301526129678161292b565b9050919050565b600061297982611fd8565b915061298483611fd8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129bd576129bc6126c4565b5b828202905092915050565b7f56616c75652062656c6f77207072696365000000000000000000000000000000600082015250565b60006129fe601183612599565b9150612a09826129c8565b602082019050919050565b60006020820190508181036000830152612a2d816129f1565b9050919050565b7f5175616e74697479206578636565647320616d6f756e7420616c6c6f7765642060008201527f706572207472616e73616374696f6e0000000000000000000000000000000000602082015250565b6000612a90602f83612599565b9150612a9b82612a34565b604082019050919050565b60006020820190508181036000830152612abf81612a83565b9050919050565b6000612ad182611fd8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612b0457612b036126c4565b5b600182019050919050565b7f5072652d73616c6520686173206e6f7420737461727465642079657400000000600082015250565b6000612b45601c83612599565b9150612b5082612b0f565b602082019050919050565b60006020820190508181036000830152612b7481612b38565b9050919050565b7f5175616e74697479206578636565647320616c6c6f776564207072652d73616c60008201527f65207175616e7469747900000000000000000000000000000000000000000000602082015250565b6000612bd7602a83612599565b9150612be282612b7b565b604082019050919050565b60006020820190508181036000830152612c0681612bca565b9050919050565b7f616464726573732068617320616c7265616479206d696e74656420666f72207060008201527f72652d73616c6500000000000000000000000000000000000000000000000000602082015250565b6000612c69602783612599565b9150612c7482612c0d565b604082019050919050565b60006020820190508181036000830152612c9881612c5c565b9050919050565b7f52656d696e74696e6720697320636c6f73656400000000000000000000000000600082015250565b6000612cd5601383612599565b9150612ce082612c9f565b602082019050919050565b60006020820190508181036000830152612d0481612cc8565b9050919050565b7f416464726573732068617320616c72656164792072656d696e74656400000000600082015250565b6000612d41601c83612599565b9150612d4c82612d0b565b602082019050919050565b60006020820190508181036000830152612d7081612d34565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612e02602683612599565b9150612e0d82612da6565b604082019050919050565b60006020820190508181036000830152612e3181612df5565b9050919050565b6000612e4382611fd8565b9150612e4e83611fd8565b925082821015612e6157612e606126c4565b5b828203905092915050565b60008160601b9050919050565b6000612e8482612e6c565b9050919050565b6000612e9682612e79565b9050919050565b612eae612ea98261208f565b612e8b565b82525050565b6000819050919050565b612ecf612eca82611fd8565b612eb4565b82525050565b6000612ee18285612e9d565b601482019150612ef18284612ebe565b6020820191508190509392505050565b6000612f0d8284612e9d565b60148201915081905092915050565b600081519050919050565b600081905092915050565b6000819050602082019050919050565b612f4b81611fd8565b82525050565b6000612f5d8383612f42565b60208301905092915050565b6000602082019050919050565b6000612f8182612f1c565b612f8b8185612f27565b9350612f9683612f32565b8060005b83811015612fc7578151612fae8882612f51565b9750612fb983612f69565b925050600181019050612f9a565b5085935050505092915050565b6000612fe08285612e9d565b601482019150612ff08284612f76565b91508190509392505050565b6000819050919050565b613017613012826123ce565b612ffc565b82525050565b60006130298285613006565b6020820191506130398284613006565b602082019150819050939250505056fea26469706673582212208bcf3015a08e9e5fa969433587ae9411a0b209784fb87e7fbebc527c89881fc764736f6c634300080a0033000000000000000000000000ba9e9e3c437ee98b88973b95e405fb5092939917779e916162d6c7037b1add89e051daf1d20b7369d5e5526ce85dc3c40b92277a115ae507ac719ffcaa85ff1df9ffd004cbf9cd50c20ff9db62e905a1cc8fd5589ace29188e87bf92e6896aaf366ae2462ee3ff6285be43291bc029941fea9d42

Deployed Bytecode

0x6080604052600436106101405760003560e01c80638db94633116100b6578063c0b445d91161006f578063c0b445d9146103c6578063ceb4a50014610405578063d2cab0561461042e578063e89443481461044a578063ef2d174614610473578063f2fde38b1461049e57610140565b80638db94633146102db578063941e79fc1461030457806396bda71e1461032d578063a7c5241314610356578063a8c90cb214610381578063ba03bc6e1461039d57610140565b80634ac01be8116101085780634ac01be8146101f55780636cf2745b1461021e57806370eeefd514610247578063715018a6146102705780638d3b48c5146102875780638da5cb5b146102b057610140565b806312065fe0146101455780631211540c14610170578063311137f2146101995780633ccfd60b146101c257806340c10f19146101d9575b600080fd5b34801561015157600080fd5b5061015a6104c7565b6040516101679190611ff1565b60405180910390f35b34801561017c57600080fd5b5061019760048036038101906101929190612042565b61054b565b005b3480156101a557600080fd5b506101c060048036038101906101bb9190612132565b610618565b005b3480156101ce57600080fd5b506101d761092e565b005b6101f360048036038101906101ee91906121ba565b610a00565b005b34801561020157600080fd5b5061021c60048036038101906102179190612042565b610c52565b005b34801561022a57600080fd5b5061024560048036038101906102409190612250565b610cd8565b005b34801561025357600080fd5b5061026e60048036038101906102699190612377565b610cfd565b005b34801561027c57600080fd5b50610285610d96565b005b34801561029357600080fd5b506102ae60048036038101906102a99190612042565b610e1e565b005b3480156102bc57600080fd5b506102c5610ea4565b6040516102d291906123b3565b60405180910390f35b3480156102e757600080fd5b5061030260048036038101906102fd9190612404565b610ecd565b005b34801561031057600080fd5b5061032b60048036038101906103269190612042565b610f53565b005b34801561033957600080fd5b50610354600480360381019061034f9190612042565b610fd9565b005b34801561036257600080fd5b5061036b61105f565b60405161037891906123b3565b60405180910390f35b61039b600480360381019061039691906121ba565b611085565b005b3480156103a957600080fd5b506103c460048036038101906103bf9190612404565b6112ba565b005b3480156103d257600080fd5b506103ed60048036038101906103e89190612431565b611340565b6040516103fc9392919061246d565b60405180910390f35b34801561041157600080fd5b5061042c60048036038101906104279190612404565b6113f9565b005b610448600480360381019061044391906124a4565b61147f565b005b34801561045657600080fd5b50610471600480360381019061046c9190612504565b611804565b005b34801561047f57600080fd5b50610488611aa6565b6040516104959190611ff1565b60405180910390f35b3480156104aa57600080fd5b506104c560048036038101906104c09190612431565b611b49565b005b60006104d1611c41565b73ffffffffffffffffffffffffffffffffffffffff166104ef610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610545576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053c906125f6565b60405180910390fd5b47905090565b610553611c41565b73ffffffffffffffffffffffffffffffffffffffff16610571610ea4565b73ffffffffffffffffffffffffffffffffffffffff16146105c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105be906125f6565b60405180910390fd5b6105cf610ea4565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610614573d6000803e3d6000fd5b5050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa15801561068c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b0919061262b565b905060095442106106f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ed906126a4565b60405180910390fd5b600754868261070591906126f3565b1115610746576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073d906127bb565b60405180910390fd5b610751878787611c49565b610790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107879061284d565b60405180910390fd5b6107e461079d8887611cad565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611ce0565b610823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081a906128b9565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a8c90cb288886040518363ffffffff1660e01b815260040161085e9291906128d9565b600060405180830381600087803b15801561087857600080fd5b505af115801561088c573d6000803e3d6000fd5b505050506108e286600d60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611cf790919063ffffffff16565b600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050505050565b610936611c41565b73ffffffffffffffffffffffffffffffffffffffff16610954610ea4565b73ffffffffffffffffffffffffffffffffffffffff16146109aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a1906125f6565b60405180910390fd5b60004790506109b7610ea4565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109fc573d6000803e3d6000fd5b5050565b600954421015610a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3c9061294e565b60405180910390fd5b60065481610a53919061296e565b341015610a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8c90612a14565b60405180910390fd5b600b548110610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad090612aa6565b60405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b71919061262b565b90506007548382610b8291906126f3565b10610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb9906127bb565b60405180910390fd5b60005b83811015610c4b578273ffffffffffffffffffffffffffffffffffffffff1663755edd17866040518263ffffffff1660e01b8152600401610c0691906123b3565b600060405180830381600087803b158015610c2057600080fd5b505af1158015610c34573d6000803e3d6000fd5b505050508080610c4390612ac6565b915050610bc5565b5050505050565b610c5a611c41565b73ffffffffffffffffffffffffffffffffffffffff16610c78610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610cce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc5906125f6565b60405180910390fd5b8060098190555050565b610ce58989898989611804565b610cf28985858585610618565b505050505050505050565b610d05611c41565b73ffffffffffffffffffffffffffffffffffffffff16610d23610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d70906125f6565b60405180910390fd5b80600560006101000a81548160ff02191690831515021790555050565b610d9e611c41565b73ffffffffffffffffffffffffffffffffffffffff16610dbc610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e09906125f6565b60405180910390fd5b610e1c6000611d0d565b565b610e26611c41565b73ffffffffffffffffffffffffffffffffffffffff16610e44610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610e9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e91906125f6565b60405180910390fd5b80600b8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610ed5611c41565b73ffffffffffffffffffffffffffffffffffffffff16610ef3610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f40906125f6565b60405180910390fd5b8060048190555050565b610f5b611c41565b73ffffffffffffffffffffffffffffffffffffffff16610f79610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614610fcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc6906125f6565b60405180910390fd5b80600a8190555050565b610fe1611c41565b73ffffffffffffffffffffffffffffffffffffffff16610fff610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c906125f6565b60405180910390fd5b8060078190555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6009544210156110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c19061294e565b60405180910390fd5b600654816110d8919061296e565b34101561111a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111190612a14565b60405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600b548210611185576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117c90612aa6565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f6919061262b565b9050600754838261120791906126f3565b10611247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123e906127bb565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a8c90cb285856040518363ffffffff1660e01b81526004016112829291906128d9565b600060405180830381600087803b15801561129c57600080fd5b505af11580156112b0573d6000803e3d6000fd5b5050505050505050565b6112c2611c41565b73ffffffffffffffffffffffffffffffffffffffff166112e0610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614611336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132d906125f6565b60405180910390fd5b8060038190555050565b60008060008061134f85611dd1565b90506000600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600e60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690508183829550955095505050509193909250565b611401611c41565b73ffffffffffffffffffffffffffffffffffffffff1661141f610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c906125f6565b60405180910390fd5b8060028190555050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611517919061262b565b9050600854421161155d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155490612b5b565b60405180910390fd5b600a5485106115a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159890612bed565b60405180910390fd5b60075485826115b091906126f3565b106115f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e7906127bb565b60405180910390fd5b600654856115fe919061296e565b341015611640576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163790612a14565b60405180910390fd5b61164933611e27565b15611689576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168090612c7f565b60405180910390fd5b6116dc61169533611e7d565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611ead565b61171b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611712906128b9565b60405180910390fd5b60005b858110156117a4578273ffffffffffffffffffffffffffffffffffffffff1663755edd17336040518263ffffffff1660e01b815260040161175f91906123b3565b600060405180830381600087803b15801561177957600080fd5b505af115801561178d573d6000803e3d6000fd5b50505050808061179c90612ac6565b91505061171e565b506001600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050505050565b60011515600560009054906101000a900460ff1615151461185a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185190612ceb565b60405180910390fd5b61186385611dd1565b156118a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189a90612d57565b60405180910390fd5b6119386118f186868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611ec4565b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611ef7565b611977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196e906128b9565b60405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b85859050811015611a45578173ffffffffffffffffffffffffffffffffffffffff1663b9bc85db888888858181106119dc576119db612d77565b5b905060200201356040518363ffffffff1660e01b8152600401611a009291906128d9565b600060405180830381600087803b158015611a1a57600080fd5b505af1158015611a2e573d6000803e3d6000fd5b505050508080611a3d90612ac6565b9150506119a1565b506001600c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050505050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663561892366040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3f919061262b565b9050809250505090565b611b51611c41565b73ffffffffffffffffffffffffffffffffffffffff16611b6f610ea4565b73ffffffffffffffffffffffffffffffffffffffff1614611bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbc906125f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2c90612e18565b60405180910390fd5b611c3e81611d0d565b50565b600033905090565b60008083600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484611c989190612e38565b611ca29190612e38565b101590509392505050565b60008282604051602001611cc2929190612ed5565b60405160208183030381529060405280519060200120905092915050565b6000611cef8260035485611f0e565b905092915050565b60008183611d0591906126f3565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600081604051602001611e909190612f01565b604051602081830303815290604052805190602001209050919050565b6000611ebc8260045485611f0e565b905092915050565b60008282604051602001611ed9929190612fd4565b60405160208183030381529060405280519060200120905092915050565b6000611f068260025485611f0e565b905092915050565b600082611f1b8584611f25565b1490509392505050565b60008082905060005b8451811015611fcd576000858281518110611f4c57611f4b612d77565b5b60200260200101519050808311611f8d578281604051602001611f7092919061301d565b604051602081830303815290604052805190602001209250611fb9565b8083604051602001611fa092919061301d565b6040516020818303038152906040528051906020012092505b508080611fc590612ac6565b915050611f2e565b508091505092915050565b6000819050919050565b611feb81611fd8565b82525050565b60006020820190506120066000830184611fe2565b92915050565b600080fd5b600080fd5b61201f81611fd8565b811461202a57600080fd5b50565b60008135905061203c81612016565b92915050565b6000602082840312156120585761205761200c565b5b60006120668482850161202d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061209a8261206f565b9050919050565b6120aa8161208f565b81146120b557600080fd5b50565b6000813590506120c7816120a1565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126120f2576120f16120cd565b5b8235905067ffffffffffffffff81111561210f5761210e6120d2565b5b60208301915083602082028301111561212b5761212a6120d7565b5b9250929050565b60008060008060006080868803121561214e5761214d61200c565b5b600061215c888289016120b8565b955050602061216d8882890161202d565b945050604061217e8882890161202d565b935050606086013567ffffffffffffffff81111561219f5761219e612011565b5b6121ab888289016120dc565b92509250509295509295909350565b600080604083850312156121d1576121d061200c565b5b60006121df858286016120b8565b92505060206121f08582860161202d565b9150509250929050565b60008083601f8401126122105761220f6120cd565b5b8235905067ffffffffffffffff81111561222d5761222c6120d2565b5b602083019150836020820283011115612249576122486120d7565b5b9250929050565b600080600080600080600080600060c08a8c0312156122725761227161200c565b5b60006122808c828d016120b8565b99505060208a013567ffffffffffffffff8111156122a1576122a0612011565b5b6122ad8c828d016121fa565b985098505060408a013567ffffffffffffffff8111156122d0576122cf612011565b5b6122dc8c828d016120dc565b965096505060606122ef8c828d0161202d565b94505060806123008c828d0161202d565b93505060a08a013567ffffffffffffffff81111561232157612320612011565b5b61232d8c828d016120dc565b92509250509295985092959850929598565b60008115159050919050565b6123548161233f565b811461235f57600080fd5b50565b6000813590506123718161234b565b92915050565b60006020828403121561238d5761238c61200c565b5b600061239b84828501612362565b91505092915050565b6123ad8161208f565b82525050565b60006020820190506123c860008301846123a4565b92915050565b6000819050919050565b6123e1816123ce565b81146123ec57600080fd5b50565b6000813590506123fe816123d8565b92915050565b60006020828403121561241a5761241961200c565b5b6000612428848285016123ef565b91505092915050565b6000602082840312156124475761244661200c565b5b6000612455848285016120b8565b91505092915050565b6124678161233f565b82525050565b60006060820190506124826000830186611fe2565b61248f602083018561245e565b61249c604083018461245e565b949350505050565b6000806000604084860312156124bd576124bc61200c565b5b60006124cb8682870161202d565b935050602084013567ffffffffffffffff8111156124ec576124eb612011565b5b6124f8868287016120dc565b92509250509250925092565b6000806000806000606086880312156125205761251f61200c565b5b600061252e888289016120b8565b955050602086013567ffffffffffffffff81111561254f5761254e612011565b5b61255b888289016121fa565b9450945050604086013567ffffffffffffffff81111561257e5761257d612011565b5b61258a888289016120dc565b92509250509295509295909350565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006125e0602083612599565b91506125eb826125aa565b602082019050919050565b6000602082019050818103600083015261260f816125d3565b9050919050565b60008151905061262581612016565b92915050565b6000602082840312156126415761264061200c565b5b600061264f84828501612616565b91505092915050565b7f5468652066726565206d696e7420706572696f642068617320656e6465640000600082015250565b600061268e601e83612599565b915061269982612658565b602082019050919050565b600060208201905081810360008301526126bd81612681565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006126fe82611fd8565b915061270983611fd8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561273e5761273d6126c4565b5b828201905092915050565b7f417474656d70746564207175616e7469747920746f206d696e7420657863656560008201527f647320746f74616c20737570706c79206966206d696e74656400000000000000602082015250565b60006127a5603983612599565b91506127b082612749565b604082019050919050565b600060208201905081810360008301526127d481612798565b9050919050565b7f546869732077696c6c2065786365656420796f757220616c6c6f77656420667260008201527f656520546f74206d696e74730000000000000000000000000000000000000000602082015250565b6000612837602c83612599565b9150612842826127db565b604082019050919050565b600060208201905081810360008301526128668161282a565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b60006128a3601483612599565b91506128ae8261286d565b602082019050919050565b600060208201905081810360008301526128d281612896565b9050919050565b60006040820190506128ee60008301856123a4565b6128fb6020830184611fe2565b9392505050565b7f5075626c69632073616c6520686173206e6f7420737461727465640000000000600082015250565b6000612938601b83612599565b915061294382612902565b602082019050919050565b600060208201905081810360008301526129678161292b565b9050919050565b600061297982611fd8565b915061298483611fd8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129bd576129bc6126c4565b5b828202905092915050565b7f56616c75652062656c6f77207072696365000000000000000000000000000000600082015250565b60006129fe601183612599565b9150612a09826129c8565b602082019050919050565b60006020820190508181036000830152612a2d816129f1565b9050919050565b7f5175616e74697479206578636565647320616d6f756e7420616c6c6f7765642060008201527f706572207472616e73616374696f6e0000000000000000000000000000000000602082015250565b6000612a90602f83612599565b9150612a9b82612a34565b604082019050919050565b60006020820190508181036000830152612abf81612a83565b9050919050565b6000612ad182611fd8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612b0457612b036126c4565b5b600182019050919050565b7f5072652d73616c6520686173206e6f7420737461727465642079657400000000600082015250565b6000612b45601c83612599565b9150612b5082612b0f565b602082019050919050565b60006020820190508181036000830152612b7481612b38565b9050919050565b7f5175616e74697479206578636565647320616c6c6f776564207072652d73616c60008201527f65207175616e7469747900000000000000000000000000000000000000000000602082015250565b6000612bd7602a83612599565b9150612be282612b7b565b604082019050919050565b60006020820190508181036000830152612c0681612bca565b9050919050565b7f616464726573732068617320616c7265616479206d696e74656420666f72207060008201527f72652d73616c6500000000000000000000000000000000000000000000000000602082015250565b6000612c69602783612599565b9150612c7482612c0d565b604082019050919050565b60006020820190508181036000830152612c9881612c5c565b9050919050565b7f52656d696e74696e6720697320636c6f73656400000000000000000000000000600082015250565b6000612cd5601383612599565b9150612ce082612c9f565b602082019050919050565b60006020820190508181036000830152612d0481612cc8565b9050919050565b7f416464726573732068617320616c72656164792072656d696e74656400000000600082015250565b6000612d41601c83612599565b9150612d4c82612d0b565b602082019050919050565b60006020820190508181036000830152612d7081612d34565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612e02602683612599565b9150612e0d82612da6565b604082019050919050565b60006020820190508181036000830152612e3181612df5565b9050919050565b6000612e4382611fd8565b9150612e4e83611fd8565b925082821015612e6157612e606126c4565b5b828203905092915050565b60008160601b9050919050565b6000612e8482612e6c565b9050919050565b6000612e9682612e79565b9050919050565b612eae612ea98261208f565b612e8b565b82525050565b6000819050919050565b612ecf612eca82611fd8565b612eb4565b82525050565b6000612ee18285612e9d565b601482019150612ef18284612ebe565b6020820191508190509392505050565b6000612f0d8284612e9d565b60148201915081905092915050565b600081519050919050565b600081905092915050565b6000819050602082019050919050565b612f4b81611fd8565b82525050565b6000612f5d8383612f42565b60208301905092915050565b6000602082019050919050565b6000612f8182612f1c565b612f8b8185612f27565b9350612f9683612f32565b8060005b83811015612fc7578151612fae8882612f51565b9750612fb983612f69565b925050600181019050612f9a565b5085935050505092915050565b6000612fe08285612e9d565b601482019150612ff08284612f76565b91508190509392505050565b6000819050919050565b613017613012826123ce565b612ffc565b82525050565b60006130298285613006565b6020820191506130398284613006565b602082019150819050939250505056fea26469706673582212208bcf3015a08e9e5fa969433587ae9411a0b209784fb87e7fbebc527c89881fc764736f6c634300080a0033

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

000000000000000000000000ba9e9e3c437ee98b88973b95e405fb5092939917779e916162d6c7037b1add89e051daf1d20b7369d5e5526ce85dc3c40b92277a115ae507ac719ffcaa85ff1df9ffd004cbf9cd50c20ff9db62e905a1cc8fd5589ace29188e87bf92e6896aaf366ae2462ee3ff6285be43291bc029941fea9d42

-----Decoded View---------------
Arg [0] : _tttAddress (address): 0xBa9e9E3C437eE98b88973b95e405Fb5092939917
Arg [1] : _remintMerkleRoot (bytes32): 0x779e916162d6c7037b1add89e051daf1d20b7369d5e5526ce85dc3c40b92277a
Arg [2] : _freeMintMerkleRoot (bytes32): 0x115ae507ac719ffcaa85ff1df9ffd004cbf9cd50c20ff9db62e905a1cc8fd558
Arg [3] : whitelistMerkleRoot (bytes32): 0x9ace29188e87bf92e6896aaf366ae2462ee3ff6285be43291bc029941fea9d42

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000ba9e9e3c437ee98b88973b95e405fb5092939917
Arg [1] : 779e916162d6c7037b1add89e051daf1d20b7369d5e5526ce85dc3c40b92277a
Arg [2] : 115ae507ac719ffcaa85ff1df9ffd004cbf9cd50c20ff9db62e905a1cc8fd558
Arg [3] : 9ace29188e87bf92e6896aaf366ae2462ee3ff6285be43291bc029941fea9d42


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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