Contract 0x51E5426eDE4e2d4c2586371372313B5782387222 1

 
Txn Hash Method
Index
From
To
Value
0x1334fcfd60746b2400a9291c82a3dd230be2fc5c633776bc2b0c644a0836e203Set Approval For...265181082022-09-30 14:51:448 hrs 55 mins ago0x651f51ababf1e51bd04420f06e97f5becc18cb98 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0001017869330.001
0xdfb05985f99763ef957e9ffed0bb723189f116d436ec892ce94b8438817fb7c6Set Approval For...265011352022-09-30 13:47:479 hrs 59 mins ago0xa3c7a8eaf23d2dd89ed81e19a5de8c84e26b0c4e IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.000064490620.001
0xe19d6344f18e3b04eabd89cf52b1dea616532fb5a175254c09ffcb1dea76fa21Safe Transfer Fr...264735592022-09-30 12:02:5011 hrs 44 mins ago0x431979fc3353b6a0bfc267d434f002a37a132cae IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000792085260.015
0x7573ed16b2fd5057029d0217e0327fc2d0009585245cb4ad9e8fe2865210b41dSafe Transfer Fr...264728282022-09-30 11:59:1911 hrs 48 mins ago0xbe9e28da97fe2cb416314d53d72ef0396eb13c46 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.000047466090.015
0x614e6918c1ab52426c32fe61babf5409b88ab842bacc3c1c255620d437f59c36Safe Transfer Fr...264724712022-09-30 11:57:1811 hrs 50 mins ago0x243ecbbe4604cf8b45a59ec7e741e06d0006855b IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000526485980.015
0x0ec896815885b4ff844c8e081bd9f877ad324367c180794f3331d7c3ee7ba1aeSafe Transfer Fr...264722752022-09-30 11:56:1811 hrs 51 mins ago0xf03b15823200276c48b7b8542ad22598146dade8 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.00004485910.00100155
0xf74ee78ab9deb39ba6cc2fd47025c556d30ea63b70edaafc513c6c15351e6ce1Safe Transfer Fr...264719972022-09-30 11:54:4811 hrs 52 mins ago0x655097fe088a9d3475e6ec394539f7710918eefa IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000402782450.015
0xbb48d2a5ffd414446bf88ddb03b03407b61200aa68ef16c1c443ea4d15d314d8Safe Transfer Fr...264718572022-09-30 11:53:4811 hrs 53 mins ago0x655097fe088a9d3475e6ec394539f7710918eefa IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.000040718060.015
0x3986994bcb43dba12c0bfb12327af3f612723ee2b165d404cfb2b9da0bbb863dSet Approval For...264549652022-09-30 10:25:3413 hrs 21 mins ago0x59617225c006871c2a279089570063f0294ae2c9 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000357587390.00100155
0xf1d1ac785ba869e8507e43e5ec03c540cfb5f0da4b9abdec7f1bdcfc4f19d3e1Set Approval For...264530472022-09-30 10:16:4813 hrs 30 mins ago0xfdd867cc29822f89194f0f9c089f9903183d5423 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000348692250.00100155
0x4daa13c242ce994e29913065556cd383e63f045ad3ae5f48a20dd38dfc946969Safe Transfer Fr...264509162022-09-30 10:04:4613 hrs 42 mins ago0x45e1077d1f83055b1bbe633680189deb0376e26f IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000401909780.00100155
0x3ace26e31039bde31adc8361faff2cb778c4933dbcb247c3de7bb48734d6dbd7Set Approval For...264496412022-09-30 9:58:0113 hrs 49 mins ago0x7aecff66d7f19ce5449305e8ffa41820291bc6d4 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000402022820.00100155
0xc444acb754a1ac9401019b319d89696105ecb432b487bb9cea71714606e91762Set Approval For...264481372022-09-30 9:50:4613 hrs 56 mins ago0x7aecff66d7f19ce5449305e8ffa41820291bc6d4 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000436499060.00100155
0xfedc61212c2ca029ffde41040355ba6ab8c20aa6ea7bb1bf6065da36c59b5081Set Approval For...263864402022-09-30 4:26:4119 hrs 20 mins ago0x4eabb1563e3d74eaa885472a3da33372b29af6ec IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000551325150.00100155
0xfd426cd5e8d00061fc7de586fdf8be7d45a8bbc87e8ff8984955859ab6fc56a4Set Approval For...263833052022-09-30 4:06:4919 hrs 40 mins ago0x9f8b2194f31817a94ecf16231123cb1c53ac9c37 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000495224350.00100155
0x4c32564405633d75a96ef65e420993db28ef260b514a4a7af1ef06baa6987470Set Approval For...263829212022-09-30 4:03:1719 hrs 44 mins ago0xffd47640bea4a27f8b34459920617a5bf45bb53e IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000576893220.00100155
0x16ef1d080de00aa406f10f697977ae832b52991a89f062cbdd081c0541ee7a87Set Approval For...263826202022-09-30 4:00:4319 hrs 46 mins ago0x5dd7808aaef987999914f5b20eec6d75bf33c5ca IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000576893220.00100155
0x97d91b6ac8dfb83c0f79a8b4a3f8d87de781c93b9be5fd9fb9c7fc7f31fc49b2Set Approval For...263733592022-09-30 2:44:0921 hrs 3 mins ago0x648d4460e717618c1a179f703d10612d774c5cec IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0001137101170.00100155
0x6ecbc08b7e2fd6c022a2416adc03b937cb9caf85d4170f3697d572d44e010e32Safe Transfer Fr...263502492022-09-29 23:46:241 day ago0x6414b48d19f647552af2ea6659ace5c3f33c1244 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000463364090.00100155
0x77cb8f1a575212f3b3509d173b8bdc7495aa7d82b28c84c9ea2d21f5c484b555Safe Transfer Fr...263501012022-09-29 23:44:521 day 2 mins ago0x4580be251260a156c183fbdbd9ac626d98f9a29b IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000464537040.00100155
0x52a64abaf90a5f96517b89d39140b10afa9c079ee0e18ca3cd448ded155d6ac1Set Approval For...263392582022-09-29 21:43:431 day 2 hrs ago0x1f916bbf39ab189a9e3d9e1823a7b1a8e9e5f204 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000413708110.00100155
0x29a0562fc97a39e3fd3b3ed24eab2ca463aec7a07c7e29b8af5a14a7dfa59d23Safe Transfer Fr...263346532022-09-29 20:48:431 day 2 hrs ago0xfb414ac5445a6e8e83d5a8cd96fd5afbb8abf24d IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000524341470.00100155
0x82e1586d47d7fe49372eb07325a93e88d193d63af84a8ec9b4df00634bf689afSafe Transfer Fr...263345232022-09-29 20:47:421 day 2 hrs ago0xfb414ac5445a6e8e83d5a8cd96fd5afbb8abf24d IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000526510220.00100155
0x28200b177a216e1559b983a09751df6d8cacfd827b3d4cb803ccc451b7ed36a7Set Approval For...263155642022-09-29 17:54:411 day 5 hrs ago0xcfa1bf8ca39a89b6c0e9aff55454b20e589c0da0 IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000581033790.00100155
0x93d0bfa1c6d4750f92cfab12029ba20ebb9e2c57f62952cff11568aa3a580a06Set Approval For...263140942022-09-29 17:42:421 day 6 hrs ago0xef3623a9599cb59f916d189346ae02486131a98c IN  0x51e5426ede4e2d4c2586371372313b57823872220 Ether0.0000652030320.00100155
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc73e338fce8123ae9e2565a4addf8f19b5fb4dc1dcc9481ca3240437371e8fbc265476852022-09-30 17:35:216 hrs 12 mins ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xc73e338fce8123ae9e2565a4addf8f19b5fb4dc1dcc9481ca3240437371e8fbc265476852022-09-30 17:35:216 hrs 12 mins ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xace5305749a7abd481fb12328577a9481d574ae0a3cb2dc3b6d060492ddc03eb264899642022-09-30 13:03:0910 hrs 44 mins ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xace5305749a7abd481fb12328577a9481d574ae0a3cb2dc3b6d060492ddc03eb264899642022-09-30 13:03:0910 hrs 44 mins ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xe5f28f0fa9d11829f6a181862d52e87de6577255a04d0852ffb3c3f546038594264667162022-09-30 11:26:5612 hrs 20 mins ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xe5f28f0fa9d11829f6a181862d52e87de6577255a04d0852ffb3c3f546038594264667162022-09-30 11:26:5612 hrs 20 mins ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xde379689df8ee133d65e63ddb0c505beb9f0e88d8925073e2cd2b2c2b44a1d02264455362022-09-30 9:37:4414 hrs 9 mins ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xde379689df8ee133d65e63ddb0c505beb9f0e88d8925073e2cd2b2c2b44a1d02264455362022-09-30 9:37:4414 hrs 9 mins ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x120168af0cda1fc8ccb7dc9aff43ee0695bb9db2c0bec88f9a4ab0c4985c2672263862252022-09-30 4:24:5519 hrs 22 mins ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x120168af0cda1fc8ccb7dc9aff43ee0695bb9db2c0bec88f9a4ab0c4985c2672263862252022-09-30 4:24:5519 hrs 22 mins ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x107df51e857db6efc549512711fd0432a125f35e49905e535764a8799dbc2e1c263726932022-09-30 2:38:2121 hrs 9 mins ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x107df51e857db6efc549512711fd0432a125f35e49905e535764a8799dbc2e1c263726932022-09-30 2:38:2121 hrs 9 mins ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x6ef8ad605953e111ab983077959d26ea8dc3175b09705ba881aefa8a4d819723263723242022-09-30 2:35:3521 hrs 11 mins ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x6ef8ad605953e111ab983077959d26ea8dc3175b09705ba881aefa8a4d819723263723242022-09-30 2:35:3521 hrs 11 mins ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xb7ceaeab6e37ae72a8466c7d91617952cf4780b82e9e05fd6684c71a68c73d04263721462022-09-30 2:34:0421 hrs 13 mins ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xb7ceaeab6e37ae72a8466c7d91617952cf4780b82e9e05fd6684c71a68c73d04263721462022-09-30 2:34:0421 hrs 13 mins ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xdaaa13e8a40530e5b416ae733cf3c4b6603b1725e18e306a951821368113c1ab263205492022-09-29 18:32:411 day 5 hrs ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xdaaa13e8a40530e5b416ae733cf3c4b6603b1725e18e306a951821368113c1ab263205492022-09-29 18:32:411 day 5 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x1513d279cef62b3811d2ab1bfe492ab99cbd7f96e400f3003c4d0658a0cdc2f3263090302022-09-29 17:01:051 day 6 hrs ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x1513d279cef62b3811d2ab1bfe492ab99cbd7f96e400f3003c4d0658a0cdc2f3263090302022-09-29 17:01:051 day 6 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x5fc1d5ce471b5b24826c63792c42fbafc8f9b4271a7f076b0fc73adcf49d1a26263025632022-09-29 16:22:331 day 7 hrs ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x5fc1d5ce471b5b24826c63792c42fbafc8f9b4271a7f076b0fc73adcf49d1a26263025632022-09-29 16:22:331 day 7 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x9f40eea89b7289cd0f0fda166deb46b9ea758cc70b50f476be983c09d6968ea5262974112022-09-29 15:43:061 day 8 hrs ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0x9f40eea89b7289cd0f0fda166deb46b9ea758cc70b50f476be983c09d6968ea5262974112022-09-29 15:43:061 day 8 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
0xe8e95d7cf2664087e145a35cbe8586743ead9b521e03b9bc1b26c0c5e5fc00ba262939432022-09-29 15:21:451 day 8 hrs ago 0xc78a09d6a4badecc7614a339fd264b7290361ef1 0x51e5426ede4e2d4c2586371372313b57823872220 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ApetimismNFT

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 13 : ApetimismNFT.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Strings.sol"; 
import "erc721a/contracts/ERC721A.sol";

interface IWhitelist {
  function isWhitelist(address addr) external view returns (int8);
}

contract ApetimismNFT is ERC721A, Ownable, Pausable {
  event Received(address, uint);
  event RoundChanged(ROUND);
  event Revealed();
  event TotalMintedChanged(uint256);

  enum ROUND { None, Private, Public }

  //////////////
  // Constants
  //////////////

  uint8 public MAX_MINT_PRIVATE_ROUND = 3;
  uint8 public MAX_MINT_PER_TX = 10;
  uint256 public MAX_SUPPLY = 3999;
  uint256 public RESERVED_NFT_COUNT = 90;
  uint256 public TEAM_NFT_COUNT = 49;

  //////////////
  // Internal
  //////////////

  string private _baseURIExtended;
  bool private _isReservedNFTsMinted = false;
  bool private _isTeamNFTsMinted = false;

  address private _signer;

  mapping(uint256 => string) private _reservedNFTTokenURIs;
  
  uint256[] private _unusedURIKeys;
  mapping(uint256 => uint256) private _tokenURIKeys;

  mapping(address => uint256) private _addressTokenMinted;

  mapping(uint256 => uint8) private _nonces;

  mapping(uint256 => bool) private _reservedNFTMetadataFrozen;

  /////////////////////
  // Public Variables
  /////////////////////

  ROUND public round = ROUND.None;
  address public teamAddress;
  address public whitelisterAddress;
  bool public revealed;
  uint16 public maxMintPerAddress = 4;
  uint256 public privateRoundMintPrice = 0;
  uint256 public publicRoundMintPrice = 0;
  bool public metadataFrozen = false;

  ////////////////
  // Actual Code
  ////////////////

  constructor() ERC721A("Apetimism", "APETIMISM") {
    for (uint256 i = 0; i < RESERVED_NFT_COUNT; i++)
      _reservedNFTMetadataFrozen[i] = false;
  }

  //////////////////////
  // Setters for Owner
  //////////////////////

  function setRound(ROUND round_) public onlyOwner {
    round = round_;
    emit RoundChanged(round_);
  }

  function setTeamAddress(address addr) public onlyOwner {
    teamAddress = addr;
  }

  function setWhitelisterAddress(address addr) public onlyOwner {
    whitelisterAddress = addr;
  }

  function setSignerAddress(address addr) public onlyOwner {
    _signer = addr;
  }

  function reveal() public onlyOwner {
    revealed = true;
    emit Revealed();
  }

  function setPrivateRoundMintPrice(uint256 price) public onlyOwner {
    privateRoundMintPrice = price;
  }

  function setPublicRoundMintPrice(uint256 price) public onlyOwner {
    publicRoundMintPrice = price;
  }

  function setMaxMintPerAddress(uint16 count) public onlyOwner {
    maxMintPerAddress = count;
  }

  function setBaseURI(string memory baseURI) external onlyOwner {
    require(!metadataFrozen, "Metadata has already been frozen");
    _baseURIExtended = baseURI;
  }

  function setReservedNFTTokenURI(uint256 tokenId, string memory uri) public onlyOwner {
    require(tokenId < RESERVED_NFT_COUNT, "Invalid tokenId");
    require(!_reservedNFTMetadataFrozen[tokenId], "Cannot modify frozen metadata");

    _reservedNFTTokenURIs[tokenId] = uri;
  }

  function addURIKeys(uint256[] memory keys) public onlyOwner {
    require(keys.length + _unusedURIKeys.length + RESERVED_NFT_COUNT + totalMinted() <= MAX_SUPPLY, "Cannot add URI keys more than max supply");
    for (uint i = 0; i < keys.length; i++)
      _unusedURIKeys.push(keys[i]);
  }

  function freezeMetadata() public onlyOwner {
    metadataFrozen = true;
  }

  function freezeReservedNFTMetadata(uint256 tokenId) public onlyOwner {
    require(tokenId < RESERVED_NFT_COUNT, "Invalid tokenId");

    _reservedNFTMetadataFrozen[tokenId] = true;
  }
  
  ////////////
  // Minting
  ////////////

  function mintReservedNFTs() public onlyOwner {
    require(teamAddress != address(0), "Team wallet is not yet set");
    require(whitelisterAddress != address(0), "Whitelister address is not yet set");
    require(!_isReservedNFTsMinted, "Already minted");

    string memory baseURI = _baseURI();
    require(bytes(baseURI).length != 0, "baseURI is not yet set");

    _safeMint(owner(), RESERVED_NFT_COUNT);
    for (uint16 i = 0; i < RESERVED_NFT_COUNT; i++)
      _reservedNFTTokenURIs[i] = string(abi.encodePacked(baseURI, Strings.toString(i)));

    _isReservedNFTsMinted = true;

    emit TotalMintedChanged(totalMinted());
  }

  function mintTeamNFTs() public onlyOwner {
    require(teamAddress != address(0), "Team wallet is not yet set");
    require(whitelisterAddress != address(0), "Whitelister address is not yet set");
    require(_isReservedNFTsMinted, "Reserved NFTs needs to be minted first");
    require(!_isTeamNFTsMinted, "Already minted");

    string memory baseURI = _baseURI();
    require(bytes(baseURI).length != 0, "baseURI is not yet set");

    _mintRandom(teamAddress, TEAM_NFT_COUNT);

    _isTeamNFTsMinted = true;
  }

  function mint(uint256 quantity, uint256 nonce, uint8 v, bytes32 r, bytes32 s) external payable whenNotPaused {
    if (round == ROUND.Private) {
      require(IWhitelist(whitelisterAddress).isWhitelist(msg.sender) > 0, "You need to be whitelisted to mint in the private round");
    }

    require(_isReservedNFTsMinted && _isTeamNFTsMinted, "Contract is not ready for public mint yet");
    require(round != ROUND.None, "Mint is not yet started");
    require(privateRoundMintPrice > 0, "Price is not yet set");
    require(publicRoundMintPrice > 0, "Price is not yet set");
    require(quantity > 0, "Quantity cannot be zero");
    require(maxMintableForTx(msg.sender) >= quantity, "You have reached maximum allowed");
    require(totalMinted() + quantity <= MAX_SUPPLY, "Cannot mint more than maximum supply");
    require(mintableLeft() >= quantity, "Not enough key left to mint.");

    uint256 cost = 0;
    if (round == ROUND.Private) {
      cost = quantity * privateRoundMintPrice;
    } else {
      cost = quantity * publicRoundMintPrice;
      require(_nonces[nonce] == 0, "Duplicated nonce");
      require(_recoverAddress(nonce, v, r, s) == _signer, "Invalid signature");
      _nonces[nonce] = 1;
    }

    require(msg.value == cost, "Unmatched ether balance");

    _mintRandom(msg.sender, quantity);

    _addressTokenMinted[msg.sender] = _addressTokenMinted[msg.sender] + quantity;
  }

  function _mintRandom(address to, uint256 quantity) private {
    uint256 tokenId = totalMinted();
    for (uint i = 0; i < quantity; i++)
      _tokenURIKeys[tokenId + i] = _pickUnusedURIKey();
    _safeMint(to, quantity);

    emit TotalMintedChanged(totalMinted());
  }

  function _pickUnusedURIKey() private returns (uint256) {
    require(mintableLeft() > 0, "Not enough key left to pick.");

    uint256 randomNum = uint256(
        keccak256(
            abi.encode(
                address(this),
                block.number,
                block.timestamp,
                block.difficulty,
                blockhash(block.number - 1),
                tx.gasprice,
                _unusedURIKeys.length
            )
        )
    );
    uint256 index = randomNum % mintableLeft();
    uint256 picked_key = _unusedURIKeys[index];
    _unusedURIKeys[index] = _unusedURIKeys[_unusedURIKeys.length - 1];
    _unusedURIKeys.pop();
    return picked_key;
  }

  function _recoverAddress(uint256 nonce, uint8 v, bytes32 r, bytes32 s) private pure returns (address) {
    bytes32 msgHash = keccak256(abi.encodePacked(nonce));
    bytes32 messageDigest = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", msgHash));
    return ecrecover(messageDigest, v, r, s);
  }

  //////////////
  // Pausable
  //////////////

  function pause() public onlyOwner {
    _pause();
  }

  function unpause() public onlyOwner {
    _unpause();
  }

  ///////////////////
  // Internal Views
  ///////////////////

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

  /////////////////
  // Public Views
  /////////////////

  function getAllMintedKeys() public onlyOwner() view returns (uint256[] memory) {
    uint256 len = totalMinted();
    uint256[] memory ret = new uint256[](len);
    for (uint i = 0; i < len; i++)
      ret[i] = _tokenURIKeys[i];
    return ret;
  }

  function maxMintable(address addr) public view virtual returns (uint256) {
    uint256 minted = _addressTokenMinted[addr];
    uint256 max_mint = 0;

    if (round == ROUND.Private && IWhitelist(whitelisterAddress).isWhitelist(addr) > 0) {
      max_mint = MAX_MINT_PRIVATE_ROUND;
    } else if (round == ROUND.Public) {
      max_mint = maxMintPerAddress;
    }

    if (minted > max_mint)
      return 0;

    return max_mint - minted;
  }

  function maxMintableForTx(address addr) public view virtual returns (uint256) {
    uint256 mintable = maxMintable(addr);

    if (mintable > MAX_MINT_PER_TX)
      return MAX_MINT_PER_TX;

    return mintable;
  }

  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token');

    if (tokenId == 0)
      return _reservedNFTTokenURIs[tokenId];

    string memory baseURI = _baseURI();

    if (!revealed)
      return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : '';

    if (tokenId < RESERVED_NFT_COUNT)
      return _reservedNFTTokenURIs[tokenId];

    return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, Strings.toString(_tokenURIKeys[tokenId]))) : '';
  }

  function totalMinted() public view returns (uint256) {
    return _totalMinted();
  }

  function mintableLeft() public view returns (uint256) {
    return _unusedURIKeys.length;
  }

  function isReservedNFTMetadataFrozen(uint256 tokenId) public view returns (bool) {
    require(tokenId < RESERVED_NFT_COUNT, "Invalid tokenId");
    return _reservedNFTMetadataFrozen[tokenId];
  }

  ///////////////
  // Withdrawal
  ///////////////

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

  /////////////
  // Fallback
  /////////////

  receive() external payable {
    emit Received(msg.sender, msg.value);
  }
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 4 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 5 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

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

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

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

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

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

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

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

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

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

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

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

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

File 7 of 13 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721, IERC721Metadata {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

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

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

File 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[],"name":"Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum ApetimismNFT.ROUND","name":"","type":"uint8"}],"name":"RoundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"TotalMintedChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PRIVATE_ROUND","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_NFT_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_NFT_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"keys","type":"uint256[]"}],"name":"addURIKeys","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"freezeReservedNFTMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllMintedKeys","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isReservedNFTMetadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerAddress","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"maxMintable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"maxMintableForTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintReservedNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintTeamNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintableLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateRoundMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicRoundMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"round","outputs":[{"internalType":"enum ApetimismNFT.ROUND","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"}],"name":"setMaxMintPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrivateRoundMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicRoundMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setReservedNFTTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ApetimismNFT.ROUND","name":"round_","type":"uint8"}],"name":"setRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setTeamAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setWhitelisterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelisterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526008805461ffff60a81b1916610a0360a81b179055610f9f600955605a600a556031600b55600d805461ffff19169055601480546000919060ff191660018302179055506015805461ffff60a81b1916600160aa1b179055600060168190556017556018805460ff191690553480156200007d57600080fd5b506040518060400160405280600981526020016841706574696d69736d60b81b8152506040518060400160405280600981526020016841504554494d49534d60b81b8152508160029080519060200190620000da929190620001a1565b508051620000f0906003906020840190620001a1565b5050600080555062000102336200014f565b6008805460ff60a01b1916905560005b600a5481101562000148576000818152601360205260409020805460ff19169055806200013f8162000284565b91505062000112565b50620002ac565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001af9062000247565b90600052602060002090601f016020900481019282620001d357600085556200021e565b82601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b506200022c92915062000230565b5090565b5b808211156200022c576000815560010162000231565b600181811c908216806200025c57607f821691505b602082108114156200027e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620002a557634e487b7160e01b81526011600452602481fd5b5060010190565b61376680620002bc6000396000f3fe6080604052600436106102ef5760003560e01c80636690864e11610186578063a98945f8116100d7578063cbd5bb2b11610085578063cbd5bb2b14610900578063d111515d14610920578063e985e9c514610935578063f2fde38b1461097e578063fb3cc6c21461099e578063fc39c60a146109b8578063fd1b18c7146109cd57600080fd5b8063a98945f814610833578063aa2c73f514610853578063ac7dc68d14610874578063b649270614610889578063b88d4fde1461089e578063bf3167e5146108be578063c87b56dd146108e057600080fd5b8063883d015d11610134578063883d015d1461076c5780638da5cb5b1461078c5780638ecad721146107a157806395d89b41146107d4578063a22cb465146107e9578063a2309ff814610809578063a475b5dd1461081e57600080fd5b80636690864e146106af5780636d30abc5146106cf57806370a08231146106ef578063715018a61461070f57806379a2c3f8146107245780637fb9a063146107445780638456cb591461075757600080fd5b806323b872dd1161024057806342842e0e116101ee57806342842e0e146105c457806351830227146105e457806355f804b314610605578063572849c4146106255780635c975abb1461065a5780635ed88ecf1461066f5780636352211e1461068f57600080fd5b806323b872dd1461050e5780632e22928e1461052e578063312dcaa61461054e57806332cb6b0c146105645780633ccfd60b1461057a5780633f4ba83a1461058f5780633f7da39a146105a457600080fd5b806313396d601161029d57806313396d601461043d578063134c160d14610453578063146ca531146104695780631662da6a1461049057806318160ddd146104b05780631a4e8459146104c95780631c75f085146104e957600080fd5b806301ffc9a714610333578063046dc1661461036857806306fdde031461038a578063081812fc146103ac578063095ea7b3146103d95780630d4db440146103f957806311284a631461041957600080fd5b3661032e57604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561033f57600080fd5b5061035361034e366004613148565b6109ed565b60405190151581526020015b60405180910390f35b34801561037457600080fd5b50610388610383366004612f3f565b610a3f565b005b34801561039657600080fd5b5061039f610aa1565b60405161035f91906133d4565b3480156103b857600080fd5b506103cc6103c7366004613213565b610b33565b60405161035f9190613317565b3480156103e557600080fd5b506103886103f4366004613078565b610b77565b34801561040557600080fd5b5061038861041436600461322b565b610bfe565b34801561042557600080fd5b5061042f600b5481565b60405190815260200161035f565b34801561044957600080fd5b5061042f60165481565b34801561045f57600080fd5b5061042f600a5481565b34801561047557600080fd5b506014546104839060ff1681565b60405161035f91906133ac565b34801561049c57600080fd5b506103886104ab366004612f3f565b610ccc565b3480156104bc57600080fd5b506001546000540361042f565b3480156104d557600080fd5b506103536104e4366004613213565b610d1d565b3480156104f557600080fd5b506014546103cc9061010090046001600160a01b031681565b34801561051a57600080fd5b50610388610529366004612f8b565b610d56565b34801561053a57600080fd5b50610388610549366004613213565b610d61565b34801561055a57600080fd5b5061042f60175481565b34801561057057600080fd5b5061042f60095481565b34801561058657600080fd5b50610388610d95565b34801561059b57600080fd5b50610388610df7565b3480156105b057600080fd5b506015546103cc906001600160a01b031681565b3480156105d057600080fd5b506103886105df366004612f8b565b610e30565b3480156105f057600080fd5b5060155461035390600160a01b900460ff1681565b34801561061157600080fd5b506103886106203660046131bf565b610e4b565b34801561063157600080fd5b5060155461064790600160a81b900461ffff1681565b60405161ffff909116815260200161035f565b34801561066657600080fd5b50610353610ee0565b34801561067b57600080fd5b5061042f61068a366004612f3f565b610ef0565b34801561069b57600080fd5b506103cc6106aa366004613213565b611038565b3480156106bb57600080fd5b506103886106ca366004612f3f565b61104a565b3480156106db57600080fd5b506103886106ea366004613213565b6110a1565b3480156106fb57600080fd5b5061042f61070a366004612f3f565b6110d5565b34801561071b57600080fd5b50610388611123565b34801561073057600080fd5b5061038861073f3660046131f1565b61115c565b61038861075236600461326f565b6111ad565b34801561076357600080fd5b50610388611732565b34801561077857600080fd5b506103886107873660046130a1565b611769565b34801561079857600080fd5b506103cc611882565b3480156107ad57600080fd5b506008546107c290600160b01b900460ff1681565b60405160ff909116815260200161035f565b3480156107e057600080fd5b5061039f611891565b3480156107f557600080fd5b5061038861080436600461303e565b6118a0565b34801561081557600080fd5b5060005461042f565b34801561082a57600080fd5b50610388611936565b34801561083f57600080fd5b5061038861084e366004613213565b6119a3565b34801561085f57600080fd5b506008546107c290600160a81b900460ff1681565b34801561088057600080fd5b50600f5461042f565b34801561089557600080fd5b50610388611a0e565b3480156108aa57600080fd5b506103886108b9366004612fc6565b611b79565b3480156108ca57600080fd5b506108d3611bc3565b60405161035f9190613368565b3480156108ec57600080fd5b5061039f6108fb366004613213565b611cab565b34801561090c57600080fd5b5061038861091b366004613180565b611f06565b34801561092c57600080fd5b50610388611fa1565b34801561094157600080fd5b50610353610950366004612f59565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561098a57600080fd5b50610388610999366004612f3f565b611fdf565b3480156109aa57600080fd5b506018546103539060ff1681565b3480156109c457600080fd5b5061038861207f565b3480156109d957600080fd5b5061042f6109e8366004612f3f565b612225565b60006001600160e01b031982166380ac58cd60e01b1480610a1e57506001600160e01b03198216635b5e139f60e01b145b80610a3957506301ffc9a760e01b6001600160e01b03198316145b92915050565b33610a48611882565b6001600160a01b031614610a775760405162461bcd60e51b8152600401610a6e90613539565b60405180910390fd5b600d80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b606060028054610ab09061362c565b80601f0160208091040260200160405190810160405280929190818152602001828054610adc9061362c565b8015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b5050505050905090565b6000610b3e8261225c565b610b5b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b8282611038565b9050806001600160a01b0316836001600160a01b03161415610bb75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610bee57610bd18133610950565b610bee576040516367d9dca160e11b815260040160405180910390fd5b610bf9838383612287565b505050565b33610c07611882565b6001600160a01b031614610c2d5760405162461bcd60e51b8152600401610a6e90613539565b600a548210610c4e5760405162461bcd60e51b8152600401610a6e906134af565b60008281526013602052604090205460ff1615610cad5760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74206d6f646966792066726f7a656e206d657461646174610000006044820152606401610a6e565b6000828152600e602090815260409091208251610bf992840190612e14565b33610cd5611882565b6001600160a01b031614610cfb5760405162461bcd60e51b8152600401610a6e90613539565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6000600a548210610d405760405162461bcd60e51b8152600401610a6e906134af565b5060009081526013602052604090205460ff1690565b610bf98383836122e3565b33610d6a611882565b6001600160a01b031614610d905760405162461bcd60e51b8152600401610a6e90613539565b601655565b33610d9e611882565b6001600160a01b031614610dc45760405162461bcd60e51b8152600401610a6e90613539565b6040514790339082156108fc029083906000818181858888f19350505050158015610df3573d6000803e3d6000fd5b5050565b33610e00611882565b6001600160a01b031614610e265760405162461bcd60e51b8152600401610a6e90613539565b610e2e6124be565b565b610bf983838360405180602001604052806000815250611b79565b33610e54611882565b6001600160a01b031614610e7a5760405162461bcd60e51b8152600401610a6e90613539565b60185460ff1615610ecd5760405162461bcd60e51b815260206004820181905260248201527f4d657461646174612068617320616c7265616479206265656e2066726f7a656e6044820152606401610a6e565b8051610df390600c906020840190612e14565b600854600160a01b900460ff1690565b6001600160a01b03811660009081526011602052604081205481600160145460ff166002811115610f3157634e487b7160e01b600052602160045260246000fd5b148015610fbf575060155460405163c683630d60e01b81526000916001600160a01b03169063c683630d90610f6a908890600401613317565b60206040518083038186803b158015610f8257600080fd5b505afa158015610f96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fba919061319f565b60000b135b15610fd75750600854600160a81b900460ff16611014565b600260145460ff166002811115610ffe57634e487b7160e01b600052602160045260246000fd5b14156110145750601554600160a81b900461ffff165b80821115611026575060009392505050565b61103082826135e9565b949350505050565b600061104382612550565b5192915050565b33611053611882565b6001600160a01b0316146110795760405162461bcd60e51b8152600401610a6e90613539565b601480546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b336110aa611882565b6001600160a01b0316146110d05760405162461bcd60e51b8152600401610a6e90613539565b601755565b60006001600160a01b0382166110fe576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b3361112c611882565b6001600160a01b0316146111525760405162461bcd60e51b8152600401610a6e90613539565b610e2e600061266a565b33611165611882565b6001600160a01b03161461118b5760405162461bcd60e51b8152600401610a6e90613539565b6015805461ffff909216600160a81b0261ffff60a81b19909216919091179055565b6111b5610ee0565b156111d25760405162461bcd60e51b8152600401610a6e906134d8565b600160145460ff1660028111156111f957634e487b7160e01b600052602160045260246000fd5b14156112f05760155460405163c683630d60e01b81526000916001600160a01b03169063c683630d90611230903390600401613317565b60206040518083038186803b15801561124857600080fd5b505afa15801561125c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611280919061319f565b60000b136112f05760405162461bcd60e51b815260206004820152603760248201527f596f75206e65656420746f2062652077686974656c697374656420746f206d696044820152761b9d081a5b881d1a19481c1c9a5d985d19481c9bdd5b99604a1b6064820152608401610a6e565b600d5460ff1680156113095750600d54610100900460ff165b6113675760405162461bcd60e51b815260206004820152602960248201527f436f6e7472616374206973206e6f7420726561647920666f72207075626c6963604482015268081b5a5b9d081e595d60ba1b6064820152608401610a6e565b600060145460ff16600281111561138e57634e487b7160e01b600052602160045260246000fd5b14156113d65760405162461bcd60e51b8152602060048201526017602482015276135a5b9d081a5cc81b9bdd081e595d081cdd185c9d1959604a1b6044820152606401610a6e565b6000601654116113f85760405162461bcd60e51b8152600401610a6e90613481565b60006017541161141a5760405162461bcd60e51b8152600401610a6e90613481565b600085116114645760405162461bcd60e51b81526020600482015260176024820152765175616e746974792063616e6e6f74206265207a65726f60481b6044820152606401610a6e565b8461146e33612225565b10156114bc5760405162461bcd60e51b815260206004820181905260248201527f596f7520686176652072656163686564206d6178696d756d20616c6c6f7765646044820152606401610a6e565b600954856114c960005490565b6114d3919061359e565b111561152d5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74206d696e74206d6f7265207468616e206d6178696d756d20737560448201526370706c7960e01b6064820152608401610a6e565b84611537600f5490565b10156115855760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f756768206b6579206c65667420746f206d696e742e000000006044820152606401610a6e565b6000600160145460ff1660028111156115ae57634e487b7160e01b600052602160045260246000fd5b14156115c8576016546115c190876135ca565b90506116ac565b6017546115d590876135ca565b60008681526012602052604090205490915060ff161561162a5760405162461bcd60e51b815260206004820152601060248201526f4475706c696361746564206e6f6e636560801b6044820152606401610a6e565b600d546201000090046001600160a01b0316611648868686866126bc565b6001600160a01b0316146116925760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610a6e565b6000858152601260205260409020805460ff191660011790555b8034146116f55760405162461bcd60e51b8152602060048201526017602482015276556e6d6174636865642065746865722062616c616e636560481b6044820152606401610a6e565b6116ff33876127a7565b3360009081526011602052604090205461171a90879061359e565b33600090815260116020526040902055505050505050565b3361173b611882565b6001600160a01b0316146117615760405162461bcd60e51b8152600401610a6e90613539565b610e2e612839565b33611772611882565b6001600160a01b0316146117985760405162461bcd60e51b8152600401610a6e90613539565b600954600054600a54600f5484516117b0919061359e565b6117ba919061359e565b6117c4919061359e565b11156118235760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f742061646420555249206b657973206d6f7265207468616e206d616044820152677820737570706c7960c01b6064820152608401610a6e565b60005b8151811015610df357600f82828151811061185157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922001558061187a81613689565b915050611826565b6008546001600160a01b031690565b606060038054610ab09061362c565b6001600160a01b0382163314156118ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3361193f611882565b6001600160a01b0316146119655760405162461bcd60e51b8152600401610a6e90613539565b6015805460ff60a01b1916600160a01b1790556040517fe2a7169cedebe39671840370ae19ca4fc41be6191d4c77f174f189a4d8cd08c890600090a1565b336119ac611882565b6001600160a01b0316146119d25760405162461bcd60e51b8152600401610a6e90613539565b600a5481106119f35760405162461bcd60e51b8152600401610a6e906134af565b6000908152601360205260409020805460ff19166001179055565b33611a17611882565b6001600160a01b031614611a3d5760405162461bcd60e51b8152600401610a6e90613539565b60145461010090046001600160a01b0316611a6a5760405162461bcd60e51b8152600401610a6e90613502565b6015546001600160a01b0316611a925760405162461bcd60e51b8152600401610a6e9061343f565b600d5460ff16611af35760405162461bcd60e51b815260206004820152602660248201527f5265736572766564204e465473206e6565647320746f206265206d696e74656460448201526508199a5c9cdd60d21b6064820152608401610a6e565b600d54610100900460ff1615611b1b5760405162461bcd60e51b8152600401610a6e906133e7565b6000611b25612899565b9050805160001415611b495760405162461bcd60e51b8152600401610a6e9061340f565b601454600b54611b679161010090046001600160a01b0316906127a7565b50600d805461ff001916610100179055565b611b848484846122e3565b6001600160a01b0383163b15611bbd57611ba0848484846128a8565b611bbd576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606033611bce611882565b6001600160a01b031614611bf45760405162461bcd60e51b8152600401610a6e90613539565b6000805490816001600160401b03811115611c1f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c48578160200160208202803683370190505b50905060005b82811015611ca4576000818152601060205260409020548251839083908110611c8757634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611c9c81613689565b915050611c4e565b5091505090565b6060611cb68261225c565b611d1a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a6e565b81611dbd576000828152600e602052604090208054611d389061362c565b80601f0160208091040260200160405190810160405280929190818152602001828054611d649061362c565b8015611db15780601f10611d8657610100808354040283529160200191611db1565b820191906000526020600020905b815481529060010190602001808311611d9457829003601f168201915b50505050509050919050565b6000611dc7612899565b601554909150600160a01b900460ff16611e28578051611df65760405180602001604052806000815250611e21565b80611e008461299c565b604051602001611e119291906132e8565b6040516020818303038152906040525b9392505050565b600a54831015611ed1576000838152600e602052604090208054611e4b9061362c565b80601f0160208091040260200160405190810160405280929190818152602001828054611e779061362c565b8015611ec45780601f10611e9957610100808354040283529160200191611ec4565b820191906000526020600020905b815481529060010190602001808311611ea757829003601f168201915b5050505050915050919050565b8051611eec5760405180602001604052806000815250611e21565b6000838152601060205260409020548190611e009061299c565b33611f0f611882565b6001600160a01b031614611f355760405162461bcd60e51b8152600401610a6e90613539565b6014805482919060ff19166001836002811115611f6257634e487b7160e01b600052602160045260246000fd5b02179055507f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f4581604051611f9691906133ac565b60405180910390a150565b33611faa611882565b6001600160a01b031614611fd05760405162461bcd60e51b8152600401610a6e90613539565b6018805460ff19166001179055565b33611fe8611882565b6001600160a01b03161461200e5760405162461bcd60e51b8152600401610a6e90613539565b6001600160a01b0381166120735760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a6e565b61207c8161266a565b50565b33612088611882565b6001600160a01b0316146120ae5760405162461bcd60e51b8152600401610a6e90613539565b60145461010090046001600160a01b03166120db5760405162461bcd60e51b8152600401610a6e90613502565b6015546001600160a01b03166121035760405162461bcd60e51b8152600401610a6e9061343f565b600d5460ff16156121265760405162461bcd60e51b8152600401610a6e906133e7565b6000612130612899565b90508051600014156121545760405162461bcd60e51b8152600401610a6e9061340f565b61216761215f611882565b600a54612ab5565b60005b600a548161ffff1610156121df57816121868261ffff1661299c565b6040516020016121979291906132e8565b60408051601f1981840301815291815261ffff83166000908152600e602090815291902082516121cc93919290910190612e14565b50806121d781613667565b91505061216a565b50600d805460ff191660011790557f046d6e23370929e6ffcba08e484c7f34a18aea43c06d0ecc15a56dabe7b0f44961221760005490565b604051908152602001611f96565b60008061223183610ef0565b600854909150600160b01b900460ff16811115610a39575050600854600160b01b900460ff16919050565b6000805482108015610a39575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006122ee82612550565b9050836001600160a01b031681600001516001600160a01b0316146123255760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061234357506123438533610950565b8061235e57503361235384610b33565b6001600160a01b0316145b90508061237e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166123a557604051633a954ecd60e21b815260040160405180910390fd5b6123b160008487612287565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661248557600054821461248557805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061371183398151915260405160405180910390a45050505050565b6124c6610ee0565b6125095760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a6e565b6008805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516125469190613317565b60405180910390a1565b60408051606081018252600080825260208201819052918101919091528160005481101561265157600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061264f5780516001600160a01b0316156125e6579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561264a579392505050565b6125e6565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080856040516020016126d291815260200190565b60405160208183030381529060405280519060200120905060008160405160200161272991907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8916918301919091526060820187905260808201869052915060019060a0016020604051602081039080840390855afa158015612791573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b60008054905b828110156127ee576127bd612acf565b601060006127cb848661359e565b8152602081019190915260400160002055806127e681613689565b9150506127ad565b506127f98383612ab5565b7f046d6e23370929e6ffcba08e484c7f34a18aea43c06d0ecc15a56dabe7b0f44961282360005490565b60405190815260200160405180910390a1505050565b612841610ee0565b1561285e5760405162461bcd60e51b8152600401610a6e906134d8565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125393390565b6060600c8054610ab09061362c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906128dd90339089908890889060040161332b565b602060405180830381600087803b1580156128f757600080fd5b505af1925050508015612927575060408051601f3d908101601f1916820190925261292491810190613164565b60015b612982573d808015612955576040519150601f19603f3d011682016040523d82523d6000602084013e61295a565b606091505b50805161297a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611030565b6060816129c05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156129ea57806129d481613689565b91506129e39050600a836135b6565b91506129c4565b6000816001600160401b03811115612a1257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a3c576020820181803683370190505b5090505b841561103057612a516001836135e9565b9150612a5e600a866136a4565b612a6990603061359e565b60f81b818381518110612a8c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612aae600a866135b6565b9450612a40565b610df3828260405180602001604052806000815250612c82565b600080612adb600f5490565b11612b285760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f756768206b6579206c65667420746f207069636b2e000000006044820152606401610a6e565b600030434244612b396001846135e9565b600f54604080516001600160a01b039097166020880152860194909452606085019290925260808401524060a08301523a60c083015260e0820152610100016040516020818303038152906040528051906020012060001c90506000612b9e600f5490565b612ba890836136a4565b90506000600f8281548110612bcd57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050600f6001600f80549050612bee91906135e9565b81548110612c0c57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154600f8381548110612c3857634e487b7160e01b600052603260045260246000fd5b600091825260209091200155600f805480612c6357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905580935050505090565b6000546001600160a01b038416612cab57604051622e076360e81b815260040160405180910390fd5b82612cc95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546001600160801b031981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612dd1575b60405182906001600160a01b03881690600090600080516020613711833981519152908290a4612d9a60008784806001019550876128a8565b612db7576040516368d2bf6b60e11b815260040160405180910390fd5b808210612d61578260005414612dcc57600080fd5b612e04565b5b6040516001830192906001600160a01b03881690600090600080516020613711833981519152908290a4808210612dd2575b506000908155611bbd9085838684565b828054612e209061362c565b90600052602060002090601f016020900481019282612e425760008555612e88565b82601f10612e5b57805160ff1916838001178555612e88565b82800160010185558215612e88579182015b82811115612e88578251825591602001919060010190612e6d565b50612e94929150612e98565b5090565b5b80821115612e945760008155600101612e99565b60006001600160401b03831115612ec657612ec66136e4565b612ed9601f8401601f191660200161356e565b9050828152838383011115612eed57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612f1b57600080fd5b919050565b600082601f830112612f30578081fd5b611e2183833560208501612ead565b600060208284031215612f50578081fd5b611e2182612f04565b60008060408385031215612f6b578081fd5b612f7483612f04565b9150612f8260208401612f04565b90509250929050565b600080600060608486031215612f9f578081fd5b612fa884612f04565b9250612fb660208501612f04565b9150604084013590509250925092565b60008060008060808587031215612fdb578081fd5b612fe485612f04565b9350612ff260208601612f04565b92506040850135915060608501356001600160401b03811115613013578182fd5b8501601f81018713613023578182fd5b61303287823560208401612ead565b91505092959194509250565b60008060408385031215613050578182fd5b61305983612f04565b91506020830135801515811461306d578182fd5b809150509250929050565b6000806040838503121561308a578182fd5b61309383612f04565b946020939093013593505050565b600060208083850312156130b3578182fd5b82356001600160401b03808211156130c9578384fd5b818501915085601f8301126130dc578384fd5b8135818111156130ee576130ee6136e4565b8060051b91506130ff84830161356e565b8181528481019084860184860187018a1015613119578788fd5b8795505b8386101561313b57803583526001959095019491860191860161311d565b5098975050505050505050565b600060208284031215613159578081fd5b8135611e21816136fa565b600060208284031215613175578081fd5b8151611e21816136fa565b600060208284031215613191578081fd5b813560038110611e21578182fd5b6000602082840312156131b0578081fd5b815180820b8114611e21578182fd5b6000602082840312156131d0578081fd5b81356001600160401b038111156131e5578182fd5b61103084828501612f20565b600060208284031215613202578081fd5b813561ffff81168114611e21578182fd5b600060208284031215613224578081fd5b5035919050565b6000806040838503121561323d578182fd5b8235915060208301356001600160401b03811115613259578182fd5b61326585828601612f20565b9150509250929050565b600080600080600060a08688031215613286578283fd5b8535945060208601359350604086013560ff811681146132a4578384fd5b94979396509394606081013594506080013592915050565b600081518084526132d4816020860160208601613600565b601f01601f19169290920160200192915050565b600083516132fa818460208801613600565b83519083019061330e818360208801613600565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061335e908301846132bc565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156133a057835183529284019291840191600101613384565b50909695505050505050565b60208101600383106133ce57634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000611e2160208301846132bc565b6020808252600e908201526d105b1c9958591e481b5a5b9d195960921b604082015260600190565b60208082526016908201527518985cd9555492481a5cc81b9bdd081e595d081cd95d60521b604082015260600190565b60208082526022908201527f57686974656c69737465722061646472657373206973206e6f74207965742073604082015261195d60f21b606082015260800190565b602080825260149082015273141c9a58d9481a5cc81b9bdd081e595d081cd95d60621b604082015260600190565b6020808252600f908201526e125b9d985b1a59081d1bdad95b9259608a1b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601a908201527f5465616d2077616c6c6574206973206e6f742079657420736574000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613596576135966136e4565b604052919050565b600082198211156135b1576135b16136b8565b500190565b6000826135c5576135c56136ce565b500490565b60008160001904831182151516156135e4576135e46136b8565b500290565b6000828210156135fb576135fb6136b8565b500390565b60005b8381101561361b578181015183820152602001613603565b83811115611bbd5750506000910152565b600181811c9082168061364057607f821691505b6020821081141561366157634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561367f5761367f6136b8565b6001019392505050565b600060001982141561369d5761369d6136b8565b5060010190565b6000826136b3576136b36136ce565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461207c57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200224d5acb115a91fcb71fd451c56c9b4af0dbd34a340cb7ad0d8c4b99a3fa90d64736f6c63430008040033

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