ETH Price: $3,712.69 (+6.85%)
Gas: 64 Gwei

Contract

0xd9b51D069752a1D0770849bbb6f0Bf78F572b02c
 

Overview

ETH Balance

0.04 ETH

Eth Value

$148.51 (@ $3,712.69/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...185133262023-11-06 13:45:59119 days ago1699278359IN
0xd9b51D06...8F572b02c
0 ETH0.0018290839.6927925
Mint176215082023-07-04 15:41:23244 days ago1688485283IN
0xd9b51D06...8F572b02c
0.04 ETH0.0015433122.00934899
Set Approval For...173064552023-05-21 8:06:47288 days ago1684656407IN
0xd9b51D06...8F572b02c
0 ETH0.0013686529.70098486
Set Approval For...172542622023-05-13 23:21:11296 days ago1684020071IN
0xd9b51D06...8F572b02c
0 ETH0.0008322834.31675449
Set Approval For...168620362023-03-19 13:22:47351 days ago1679232167IN
0xd9b51D06...8F572b02c
0 ETH0.0006890814.95380804
Set Approval For...166880132023-02-23 2:04:35376 days ago1677117875IN
0xd9b51D06...8F572b02c
0 ETH0.001691736.71148484
Withdraw163448632023-01-06 2:48:59424 days ago1672973339IN
0xd9b51D06...8F572b02c
0 ETH0.0008583916.87254089
Withdraw163447962023-01-06 2:35:35424 days ago1672972535IN
0xd9b51D06...8F572b02c
0 ETH0.0015333816.83655061
Set Approval For...162842992022-12-28 15:58:35432 days ago1672243115IN
0xd9b51D06...8F572b02c
0 ETH0.0010001121.70341251
Set Approval For...162714262022-12-26 20:50:35434 days ago1672087835IN
0xd9b51D06...8F572b02c
0 ETH0.0005856212.70861124
Set Approval For...162151202022-12-19 0:20:47442 days ago1671409247IN
0xd9b51D06...8F572b02c
0 ETH0.0006248713.53921003
Set Approval For...161165462022-12-05 5:35:11456 days ago1670218511IN
0xd9b51D06...8F572b02c
0 ETH0.0003228513.31179141
Set Approval For...161165442022-12-05 5:34:47456 days ago1670218487IN
0xd9b51D06...8F572b02c
0 ETH0.0002833111.72241382
Set Approval For...159758702022-11-15 13:55:59475 days ago1668520559IN
0xd9b51D06...8F572b02c
0 ETH0.000745616.15096584
Mint159241142022-11-08 8:27:47482 days ago1667896067IN
0xd9b51D06...8F572b02c
0.02 ETH0.0015179517.80379998
Set Approval For...158842772022-11-02 18:58:59488 days ago1667415539IN
0xd9b51D06...8F572b02c
0 ETH0.0015729934.13551611
Safe Transfer Fr...158589982022-10-30 6:10:59492 days ago1667110259IN
0xd9b51D06...8F572b02c
0 ETH0.000521017.53995744
Set Approval For...158382422022-10-27 8:32:47494 days ago1666859567IN
0xd9b51D06...8F572b02c
0 ETH0.0006082613.2
Safe Transfer Fr...158376322022-10-27 6:30:47495 days ago1666852247IN
0xd9b51D06...8F572b02c
0 ETH0.0011158711.65416642
Mint156736922022-10-04 8:50:23517 days ago1664873423IN
0xd9b51D06...8F572b02c
0.02 ETH0.00060118.81907568
Transfer From156637032022-10-02 23:19:11519 days ago1664752751IN
0xd9b51D06...8F572b02c
0 ETH0.000400138.12343708
Transfer From156637032022-10-02 23:19:11519 days ago1664752751IN
0xd9b51D06...8F572b02c
0 ETH0.000539048.12343708
Mint156420612022-09-29 22:45:47522 days ago1664491547IN
0xd9b51D06...8F572b02c
0.16 ETH0.0012158812.28325925
Transfer From156150502022-09-26 4:06:11526 days ago1664165171IN
0xd9b51D06...8F572b02c
0 ETH0.000295986.01041602
Transfer From156150462022-09-26 4:05:23526 days ago1664165123IN
0xd9b51D06...8F572b02c
0 ETH0.000409686.17399874
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
163447962023-01-06 2:35:35424 days ago1672972535
0xd9b51D06...8F572b02c
0.0432 ETH
163447962023-01-06 2:35:35424 days ago1672972535
0xd9b51D06...8F572b02c
0.072 ETH
163447962023-01-06 2:35:35424 days ago1672972535
0xd9b51D06...8F572b02c
0.048 ETH
163447962023-01-06 2:35:35424 days ago1672972535
0xd9b51D06...8F572b02c
0.144 ETH
163447962023-01-06 2:35:35424 days ago1672972535
0xd9b51D06...8F572b02c
0.024 ETH
163447962023-01-06 2:35:35424 days ago1672972535
0xd9b51D06...8F572b02c
0.1488 ETH
152454352022-07-30 18:33:04583 days ago1659205984
0xd9b51D06...8F572b02c
0.03465 ETH
152454352022-07-30 18:33:04583 days ago1659205984
0xd9b51D06...8F572b02c
0.05775 ETH
152454352022-07-30 18:33:04583 days ago1659205984
0xd9b51D06...8F572b02c
0.0385 ETH
152454352022-07-30 18:33:04583 days ago1659205984
0xd9b51D06...8F572b02c
0.1155 ETH
152454352022-07-30 18:33:04583 days ago1659205984
0xd9b51D06...8F572b02c
0.01925 ETH
152454352022-07-30 18:33:04583 days ago1659205984
0xd9b51D06...8F572b02c
0.11935 ETH
148672362022-05-29 15:31:32645 days ago1653838292
0xd9b51D06...8F572b02c
0.06615 ETH
148672362022-05-29 15:31:32645 days ago1653838292
0xd9b51D06...8F572b02c
0.11025 ETH
148672362022-05-29 15:31:32645 days ago1653838292
0xd9b51D06...8F572b02c
0.0735 ETH
148672362022-05-29 15:31:32645 days ago1653838292
0xd9b51D06...8F572b02c
0.2205 ETH
148672362022-05-29 15:31:32645 days ago1653838292
0xd9b51D06...8F572b02c
0.03675 ETH
148672362022-05-29 15:31:32645 days ago1653838292
0xd9b51D06...8F572b02c
0.22785 ETH
147019292022-05-03 2:06:39672 days ago1651543599
0xd9b51D06...8F572b02c
0.3285 ETH
147019292022-05-03 2:06:39672 days ago1651543599
0xd9b51D06...8F572b02c
0.5475 ETH
147019292022-05-03 2:06:39672 days ago1651543599
0xd9b51D06...8F572b02c
0.365 ETH
147019292022-05-03 2:06:39672 days ago1651543599
0xd9b51D06...8F572b02c
1.095 ETH
147019292022-05-03 2:06:39672 days ago1651543599
0xd9b51D06...8F572b02c
0.1825 ETH
147019292022-05-03 2:06:39672 days ago1651543599
0xd9b51D06...8F572b02c
1.1315 ETH
146833882022-04-30 4:09:34675 days ago1651291774
0xd9b51D06...8F572b02c
0.1512 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PastelPersons

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : PastelPersons.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

// β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–‘β–‘β–‘β–‘β–‘
// β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘
// β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘
// β–ˆβ–ˆβ•”β•β•β•β•β–‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–‘β•šβ•β•β•β–ˆβ–ˆβ•—β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ•”β•β•β•β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘
// β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
// β•šβ•β•β–‘β–‘β–‘β–‘β–‘β•šβ•β•β–‘β–‘β•šβ•β•β•šβ•β•β•β•β•β•β–‘β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•
// β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
// β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•
// β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘
// β–ˆβ–ˆβ•”β•β•β•β•β–‘β–ˆβ–ˆβ•”β•β•β•β–‘β–‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–‘β•šβ•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–‘β•šβ•β•β•β–ˆβ–ˆβ•—
// β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–‘β•šβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•
// β•šβ•β•β–‘β–‘β–‘β–‘β–‘β•šβ•β•β•β•β•β•β•β•šβ•β•β–‘β–‘β•šβ•β•β•šβ•β•β•β•β•β•β–‘β–‘β•šβ•β•β•β•β•β–‘β•šβ•β•β–‘β–‘β•šβ•β•β•β•šβ•β•β•β•β•β•β–‘
// β–‘β–‘β–‘β–‘β–‘ AN β–‘β–‘β–‘ INCLUSIVE β–‘β–‘β–‘ FAMILY-FRIENDLY β–‘β–‘β–‘ NFT β–‘β–‘β–‘β–‘β–‘β–‘

contract PastelPersons is ERC721A, Ownable {

  using Strings for uint256;

  address public futureContract;
  address public w1;
  address public w2;
  address public w3; 
  address public w4;
  address public w5; 
  address public w6;
   
  string public baseTokenURI; 
  bytes32 public prelistRoot;
 
  uint16 public maxMintPerPrelist = 2;
  uint16 public maxMintPerPresale = 5;
  uint16 public maxMintPerTx = 5; 
  uint16 public maxMintPerWallet = 12; 

  uint256 public maxSupply = 8900; 
  uint256 public prelistCost = 0.04 ether;
  uint256 public presaleCost = 0.05 ether;
  uint256 public cost = 0.06 ether;


  bool public prelistOpen = false;
  bool public presaleOpen = false;
  bool public publicOpen = false;
  bool public isRevealed = false; 

  mapping(address => uint256) private prelistRedeemed; // see if spots have already been minted (prelisted mints)

  
  constructor(
    string memory _name, 
    string memory _symbol,
    string memory _initBaseTokenURI, 
    address[] memory _withdrawAddresses,
    bytes32 _initRoot) 
    ERC721A(_name, _symbol)
     {
        baseTokenURI = _initBaseTokenURI; 
        setWithdrawAddresses(_withdrawAddresses);
        prelistRoot = _initRoot;
     }

    // to set future contracts for utility
    function setFutureContractAddress(address _bAddress) public onlyOwner {
      futureContract = _bAddress;
    }

    // this function can be called only from the extending future contract 
    function mintExternal(address _address, uint256 _mintAmount) external {
        require(
            msg.sender == futureContract,
            "Sorry you dont have permission to mint"
        );
        _safeMint(_address, _mintAmount);
    }
    
    function setBaseTokenURI(string calldata _baseTokenURI) external onlyOwner { 
        baseTokenURI = _baseTokenURI; 
    }

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

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

        if(isRevealed == false) {
            return bytes(baseTokenURI).length > 0 ? string(abi.encodePacked(baseTokenURI, "prereveal.json")) : "";
        }

        return bytes(baseTokenURI).length > 0 ? string(abi.encodePacked(baseTokenURI, tokenId.toString(), ".json")) : ""; 
    }

    // start token ID at 1 (erc721a f(x))
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }
    
    // set costs per mitning phase
    function setPrelistRoot(bytes32 _root) external onlyOwner {
        prelistRoot = _root;
    }
    function setPrelistCost(uint256 _newCost) external onlyOwner {
        prelistCost = _newCost;
    }
    function setPresaleCost(uint256 _newCost) external onlyOwner {
        presaleCost = _newCost;
    }
    function setCost(uint256 _newCost) external onlyOwner {
        cost = _newCost;
    }

    //  set max mints allowed per minting phase
    function setMaxMintPerPrelist(uint16 _amount) external onlyOwner {
        maxMintPerPrelist = _amount;
    }
    function setMaxMintPerPresale(uint16 _amount) external onlyOwner {
        maxMintPerPresale = _amount;
    }
    function setMaxMintPerTx(uint16 _amount) external onlyOwner {
        maxMintPerTx = _amount;
    }
    function setMaxMintPerWallet(uint16 _amount) external onlyOwner {
        maxMintPerWallet = _amount;
    }

    // toggle phases
    function togglePrelist() external onlyOwner {
        prelistOpen = !prelistOpen;  // false by default
    }
    function togglePresale() external onlyOwner {
        presaleOpen = !presaleOpen;  // false by default
    }
    function togglePublic() external onlyOwner {
        publicOpen = !publicOpen; // false by default
    }
    function toggleReveal(string calldata _revealedMetadataURI) external onlyOwner {
        isRevealed = !isRevealed;
        baseTokenURI = _revealedMetadataURI;
    }

    function _mintLoop(address _receiver, uint256 _mintAmount) internal {
        _safeMint(_receiver, _mintAmount);
    }

    // Verify that a given leaf is in the tree.
    function _verify(
        bytes32 _leafNode,
        bytes32[] memory _merkleProof
    ) internal view returns (bool) {
        return MerkleProof.verify(_merkleProof, prelistRoot, _leafNode);
    }

    // Generate the leaf node (the hash of tokenID concatenated with the account address)
    function _leaf(address account) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(account));
    }

    // prelist mint
    function mintPrelist(
        address account,
        bytes32[] calldata _merkleProof,
        uint256 _mintAmount
    ) external payable {
                require(msg.sender == account, "Not allowed");
                require(prelistOpen == true, "The prelist not open");
                require(
                    _verify(_leaf(msg.sender), _merkleProof),
                    "Invalid proof"
                );
                require(_mintAmount > 0, "Your mint amount should be greater than 0");
                require(
                    (prelistRedeemed[msg.sender] + _mintAmount) <=
                        maxMintPerPrelist,
                    "Your mint amount exceeds the max mint per prelist (2)"
                );
                require(totalSupply() + _mintAmount <= maxSupply,
                    "You would exceed the max supply of tokens"
                );
                 require(
                    msg.value == (prelistCost * _mintAmount),
                    "Insuffient funds"
                );
                // update state before external call to avoid reentrency
                prelistRedeemed[msg.sender] += _mintAmount;

                  //Mint
                _mintLoop(msg.sender, _mintAmount);
    }

    //  presale mint
    function mintPresale(uint256 _mintAmount) 
        external 
        payable 
    {
        // if (msg.sender != owner()) {
            require(!prelistOpen, "Prelist is open");
            require(presaleOpen == true, "Presale is not open"); // false by default
            require(!publicOpen, "Public sale is open"); // public is closed
            require(_mintAmount > 0, "Your mint amount should be greater than 0");
            require(
                _mintAmount <= maxMintPerPresale,
                "Your mint amount exceeds the max mint per presale (5)"
            );
            require(
                totalSupply() + _mintAmount <= maxSupply,
                "You would exceed the max supply of tokens"
            );
            require(msg.value == (presaleCost * _mintAmount), "Insuffient funds");
        _mintLoop(msg.sender, _mintAmount);
    }
    
    // public mint
    function mint(uint256 _mintAmount) 
        external 
        payable  
    {
        // if (msg.sender != owner()) {
            uint256 ownerTokenCount = balanceOf(msg.sender);

            require(!prelistOpen, "Prelist is open");
            require(!presaleOpen, "Presale is open");
            require(publicOpen == true, "Public sale is not open");
            require(_mintAmount > 0, "Your mint amount should be greater than 0");
            require(
                _mintAmount <= maxMintPerTx,
                "Your mint amount exceeds the max mint per public sale (5)"
            );
            require(
                totalSupply() + _mintAmount <= maxSupply,
                "Exceeds Max Supply"
            );
            require(
                (ownerTokenCount + _mintAmount) <= maxMintPerWallet,
                "Sorry, you cant mint more than (8) per wallet total"
            );

            require( msg.value == (cost * _mintAmount), "Insuffient funds");
        _mintLoop(msg.sender, _mintAmount);
    }

    function gift(address _to, uint256 _mintAmount) external onlyOwner {
        require(
            totalSupply() + _mintAmount <= maxSupply,
            "Gifting this amount would exceed the max supply"
        );
        _mintLoop(_to, _mintAmount);
    }

    function airdrop(address[] calldata _airdropAddresses) external onlyOwner {
        for (uint256 i = 0; i < _airdropAddresses.length; i++) {
            address to = _airdropAddresses[i];
            require(
                _airdropAddresses.length + totalSupply() <= maxSupply,
                "Airdropping this many addresses would exceed the max supply"
            );
            _mintLoop(to, 1);
        }
    }

    function setWithdrawAddresses(address[] memory wAddresses) public onlyOwner {
        w1 = wAddresses[0]; 
        w2 = wAddresses[1];
        w3 = wAddresses[2];
        w4 = wAddresses[3];
        w5 = wAddresses[4]; 
        w6 = wAddresses[5];
    }

    function withdraw() external onlyOwner {
        uint256 amount = address(this).balance;
        (bool s1, ) = payable(w1).call{value: (amount * 31) / 100}("");
        (bool s2, ) = payable(w2).call{value: (amount * 5) / 100}(""); 
        (bool s3, ) = payable(w3).call{value: (amount * 30) / 100}("");
        (bool s4, ) = payable(w4).call{value: (amount * 10) / 100}("");
        (bool s5, ) = payable(w5).call{value: (amount * 15) / 100}("");
        (bool s6, ) = payable(w6).call{value: (amount * 9) / 100}("");

        if (s1 && s2 && s3 && s4 && s5 && s6) return;
        // fallback to paying all to treasury
        (bool s7, ) = w1.call{value: amount}("");
        require(s7, "Not successful, the withdrawal failed");
    }

}

File 2 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata 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, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public 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() && !_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;
    }

    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 {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        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 (safe && 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 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 This is 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 3 of 12 : 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 4 of 12 : 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 5 of 12 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 8 of 12 : 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 9 of 12 : 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 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 11 of 12 : 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 12 of 12 : 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": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseTokenURI","type":"string"},{"internalType":"address[]","name":"_withdrawAddresses","type":"address[]"},{"internalType":"bytes32","name":"_initRoot","type":"bytes32"}],"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"}],"name":"airdrop","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"futureContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerPrelist","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerPresale","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerWallet","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPrelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","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":"prelistCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prelistOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prelistRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bAddress","type":"address"}],"name":"setFutureContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxMintPerPrelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxMintPerPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setPrelistCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setPrelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setPresaleCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wAddresses","type":"address[]"}],"name":"setWithdrawAddresses","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":"togglePrelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_revealedMetadataURI","type":"string"}],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"w1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w5","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w6","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052601280546001600160401b031916660c0005000500021790556122c4601355668e1bc9bf04000060145566b1a2bc2ec5000060155566d529ae9e8600006016556017805463ffffffff191690553480156200005e57600080fd5b5060405162003acc38038062003acc8339810160408190526200008191620004c2565b8451859085906200009a9060029060208501906200033e565b508051620000b09060039060208401906200033e565b5050600160005550620000c333620000f2565b8251620000d89060109060208601906200033e565b50620000e48262000144565b601155506200065c92505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620001a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b80600081518110620001b957620001b96200060a565b6020026020010151600a60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600181518110620001fd57620001fd6200060a565b6020026020010151600b60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806002815181106200024157620002416200060a565b6020026020010151600c60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806003815181106200028557620002856200060a565b6020026020010151600d60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600481518110620002c957620002c96200060a565b6020026020010151600e60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806005815181106200030d576200030d6200060a565b6020026020010151600f60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b8280546200034c9062000620565b90600052602060002090601f016020900481019282620003705760008555620003bb565b82601f106200038b57805160ff1916838001178555620003bb565b82800160010185558215620003bb579182015b82811115620003bb5782518255916020019190600101906200039e565b50620003c9929150620003cd565b5090565b5b80821115620003c95760008155600101620003ce565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620004255762000425620003e4565b604052919050565b600082601f8301126200043f57600080fd5b81516001600160401b038111156200045b576200045b620003e4565b602062000471601f8301601f19168201620003fa565b82815285828487010111156200048657600080fd5b60005b83811015620004a657858101830151828201840152820162000489565b83811115620004b85760008385840101525b5095945050505050565b600080600080600060a08688031215620004db57600080fd5b85516001600160401b0380821115620004f357600080fd5b6200050189838a016200042d565b96506020915081880151818111156200051957600080fd5b620005278a828b016200042d565b9650506040880151818111156200053d57600080fd5b6200054b8a828b016200042d565b9550506060880151818111156200056157600080fd5b8801601f81018a136200057357600080fd5b805182811115620005885762000588620003e4565b8060051b92506200059b848401620003fa565b818152928201840192848101908c851115620005b657600080fd5b928501925b84841015620005f057835192506001600160a01b0383168314620005df5760008081fd5b8282529285019290850190620005bb565b809750505050505050608086015190509295509295909350565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806200063557607f821691505b6020821081036200065657634e487b7160e01b600052602260045260246000fd5b50919050565b613460806200066c6000396000f3fe6080604052600436106103975760003560e01c8063715018a6116101dc578063a22cb46511610102578063cbce4c97116100a0578063e985e9c51161006f578063e985e9c514610a43578063f2fde38b14610a8c578063f4da184614610aac578063f759867a14610acc57600080fd5b8063cbce4c97146109d5578063d547cfb7146109f5578063d5abeb0114610a0a578063de7fcb1d14610a2057600080fd5b8063b88d4fde116100dc578063b88d4fde14610956578063ba70c51514610976578063bee6348a14610996578063c87b56dd146109b557600080fd5b8063a22cb465146108f4578063b228d92514610914578063b6a741211461093657600080fd5b80638ba086461161017a578063981d877111610149578063981d87711461088c5780639dfd8d2e146108a1578063a044c987146108c1578063a0712d68146108e157600080fd5b80638ba08646146108195780638da5cb5b146108395780638fdcf9421461085757806395d89b411461087757600080fd5b806375bef513116101b657806375bef513146107a25780637c7fc64d146107c25780637e44755b146107d85780637f517807146107f857600080fd5b8063715018a61461074d578063729ad39e1461076257806374ea7fc11461078257600080fd5b806334393743116102c157806352be319e1161025f5780635d8c2efd1161022e5780635d8c2efd146106cd5780636352211e146106ed57806368a9145b1461070d57806370a082311461072d57600080fd5b806352be319e1461065257806353db9da01461066c57806354214f691461068c5780635a6da7e8146106ad57600080fd5b80633ccfd60b1161029b5780633ccfd60b146105ea57806342842e0e146105ff57806344a0d68a1461061f578063493907c91461063f57600080fd5b8063343937431461059f5780633602deb2146105b457806337b6b5b5146105d457600080fd5b80630f640156116103395780631ea5f589116103085780631ea5f5891461052957806323b872dd146105495780632a23d07d1461056957806330176e131461057f57600080fd5b80630f640156146104bb57806313faede6146104d057806318160ddd146104f45780631abd07df1461050957600080fd5b806303cf8a201161037557806303cf8a201461043757806306fdde0314610457578063081812fc14610479578063095ea7b31461049957600080fd5b806301ffc9a71461039c57806302290f5d146103d157806302a7880914610409575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612c04565b610adf565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b50600f546103f1906001600160a01b031681565b6040516001600160a01b0390911681526020016103c8565b34801561041557600080fd5b506012546104249061ffff1681565b60405161ffff90911681526020016103c8565b34801561044357600080fd5b50600b546103f1906001600160a01b031681565b34801561046357600080fd5b5061046c610b31565b6040516103c89190612c79565b34801561048557600080fd5b506103f1610494366004612c8c565b610bc3565b3480156104a557600080fd5b506104b96104b4366004612cc1565b610c07565b005b3480156104c757600080fd5b506104b9610c94565b3480156104dc57600080fd5b506104e660165481565b6040519081526020016103c8565b34801561050057600080fd5b506104e6610cdb565b34801561051557600080fd5b506104b9610524366004612ceb565b610ce9565b34801561053557600080fd5b50600e546103f1906001600160a01b031681565b34801561055557600080fd5b506104b9610564366004612d06565b610d35565b34801561057557600080fd5b506104e660155481565b34801561058b57600080fd5b506104b961059a366004612d42565b610d40565b3480156105ab57600080fd5b506104b9610d76565b3480156105c057600080fd5b50600d546103f1906001600160a01b031681565b3480156105e057600080fd5b506104e660115481565b3480156105f657600080fd5b506104b9610dbd565b34801561060b57600080fd5b506104b961061a366004612d06565b611168565b34801561062b57600080fd5b506104b961063a366004612c8c565b611183565b6104b961064d366004612dfe565b6111b2565b34801561065e57600080fd5b506017546103bc9060ff1681565b34801561067857600080fd5b506104b9610687366004612e57565b61143c565b34801561069857600080fd5b506017546103bc906301000000900460ff1681565b3480156106b957600080fd5b506104b96106c8366004612c8c565b611486565b3480156106d957600080fd5b506104b96106e8366004612d42565b6114b5565b3480156106f957600080fd5b506103f1610708366004612c8c565b61150a565b34801561071957600080fd5b506104b9610728366004612c8c565b61151c565b34801561073957600080fd5b506104e6610748366004612ceb565b61154b565b34801561075957600080fd5b506104b9611599565b34801561076e57600080fd5b506104b961077d366004612e7b565b6115cd565b34801561078e57600080fd5b506104b961079d366004612e57565b6116d4565b3480156107ae57600080fd5b506104b96107bd366004612e57565b611723565b3480156107ce57600080fd5b506104e660145481565b3480156107e457600080fd5b50600a546103f1906001600160a01b031681565b34801561080457600080fd5b506012546104249062010000900461ffff1681565b34801561082557600080fd5b506009546103f1906001600160a01b031681565b34801561084557600080fd5b506008546001600160a01b03166103f1565b34801561086357600080fd5b506104b9610872366004612c8c565b611765565b34801561088357600080fd5b5061046c611794565b34801561089857600080fd5b506104b96117a3565b3480156108ad57600080fd5b506104b96108bc366004612f02565b6117ec565b3480156108cd57600080fd5b50600c546103f1906001600160a01b031681565b6104b96108ef366004612c8c565b61199f565b34801561090057600080fd5b506104b961090f366004612fae565b611c52565b34801561092057600080fd5b5060125461042490600160301b900461ffff1681565b34801561094257600080fd5b506104b9610951366004612e57565b611ce7565b34801561096257600080fd5b506104b9610971366004612fea565b611d35565b34801561098257600080fd5b506017546103bc9062010000900460ff1681565b3480156109a257600080fd5b506017546103bc90610100900460ff1681565b3480156109c157600080fd5b5061046c6109d0366004612c8c565b611d80565b3480156109e157600080fd5b506104b96109f0366004612cc1565b611e9e565b348015610a0157600080fd5b5061046c611f4e565b348015610a1657600080fd5b506104e660135481565b348015610a2c57600080fd5b5060125461042490640100000000900461ffff1681565b348015610a4f57600080fd5b506103bc610a5e3660046130a9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a9857600080fd5b506104b9610aa7366004612ceb565b611fdc565b348015610ab857600080fd5b506104b9610ac7366004612cc1565b612077565b6104b9610ada366004612c8c565b6120ea565b60006001600160e01b031982166380ac58cd60e01b1480610b1057506001600160e01b03198216635b5e139f60e01b145b80610b2b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610b40906130dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6c906130dc565b8015610bb95780601f10610b8e57610100808354040283529160200191610bb9565b820191906000526020600020905b815481529060010190602001808311610b9c57829003601f168201915b5050505050905090565b6000610bce826122d5565b610beb576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c128261150a565b9050806001600160a01b0316836001600160a01b031603610c465760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c665750610c648133610a5e565b155b15610c84576040516367d9dca160e11b815260040160405180910390fd5b610c8f83838361230e565b505050565b6008546001600160a01b03163314610cc75760405162461bcd60e51b8152600401610cbe90613116565b60405180910390fd5b6017805460ff19811660ff90911615179055565b600154600054036000190190565b6008546001600160a01b03163314610d135760405162461bcd60e51b8152600401610cbe90613116565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b610c8f83838361236a565b6008546001600160a01b03163314610d6a5760405162461bcd60e51b8152600401610cbe90613116565b610c8f60108383612b55565b6008546001600160a01b03163314610da05760405162461bcd60e51b8152600401610cbe90613116565b6017805461ff001981166101009182900460ff1615909102179055565b6008546001600160a01b03163314610de75760405162461bcd60e51b8152600401610cbe90613116565b600a5447906000906001600160a01b03166064610e0584601f613161565b610e0f9190613196565b604051600081818185875af1925050503d8060008114610e4b576040519150601f19603f3d011682016040523d82523d6000602084013e610e50565b606091505b5050600b549091506000906001600160a01b03166064610e71856005613161565b610e7b9190613196565b604051600081818185875af1925050503d8060008114610eb7576040519150601f19603f3d011682016040523d82523d6000602084013e610ebc565b606091505b5050600c549091506000906001600160a01b03166064610edd86601e613161565b610ee79190613196565b604051600081818185875af1925050503d8060008114610f23576040519150601f19603f3d011682016040523d82523d6000602084013e610f28565b606091505b5050600d549091506000906001600160a01b03166064610f4987600a613161565b610f539190613196565b604051600081818185875af1925050503d8060008114610f8f576040519150601f19603f3d011682016040523d82523d6000602084013e610f94565b606091505b5050600e549091506000906001600160a01b03166064610fb588600f613161565b610fbf9190613196565b604051600081818185875af1925050503d8060008114610ffb576040519150601f19603f3d011682016040523d82523d6000602084013e611000565b606091505b5050600f549091506000906001600160a01b03166064611021896009613161565b61102b9190613196565b604051600081818185875af1925050503d8060008114611067576040519150601f19603f3d011682016040523d82523d6000602084013e61106c565b606091505b5050905085801561107a5750845b80156110835750835b801561108c5750825b80156110955750815b801561109e5750805b156110ac5750505050505050565b600a546040516000916001600160a01b03169089908381818185875af1925050503d80600081146110f9576040519150601f19603f3d011682016040523d82523d6000602084013e6110fe565b606091505b505090508061115d5760405162461bcd60e51b815260206004820152602560248201527f4e6f74207375636365737366756c2c20746865207769746864726177616c2066604482015264185a5b195960da1b6064820152608401610cbe565b50505050505050505b565b610c8f83838360405180602001604052806000815250611d35565b6008546001600160a01b031633146111ad5760405162461bcd60e51b8152600401610cbe90613116565b601655565b336001600160a01b038516146111f85760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610cbe565b60175460ff1615156001146112465760405162461bcd60e51b81526020600482015260146024820152732a343290383932b634b9ba103737ba1037b832b760611b6044820152606401610cbe565b604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101206112ba9084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061255892505050565b6112f65760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610cbe565b600081116113165760405162461bcd60e51b8152600401610cbe906131aa565b6012543360009081526018602052604090205461ffff9091169061133b9083906131f3565b11156113a75760405162461bcd60e51b815260206004820152603560248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015274206d696e7420706572207072656c6973742028322960581b6064820152608401610cbe565b601354816113b3610cdb565b6113bd91906131f3565b11156113db5760405162461bcd60e51b8152600401610cbe9061320b565b806014546113e99190613161565b34146114075760405162461bcd60e51b8152600401610cbe90613254565b33600090815260186020526040812080548392906114269084906131f3565b90915550611436905033826120e0565b50505050565b6008546001600160a01b031633146114665760405162461bcd60e51b8152600401610cbe90613116565b6012805461ffff909216620100000263ffff000019909216919091179055565b6008546001600160a01b031633146114b05760405162461bcd60e51b8152600401610cbe90613116565b601455565b6008546001600160a01b031633146114df5760405162461bcd60e51b8152600401610cbe90613116565b6017805463ff00000019811663010000009182900460ff1615909102179055610c8f60108383612b55565b60006115158261256e565b5192915050565b6008546001600160a01b031633146115465760405162461bcd60e51b8152600401610cbe90613116565b601155565b60006001600160a01b038216611574576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146115c35760405162461bcd60e51b8152600401610cbe90613116565b6111666000612695565b6008546001600160a01b031633146115f75760405162461bcd60e51b8152600401610cbe90613116565b60005b81811015610c8f5760008383838181106116165761161661327e565b905060200201602081019061162b9190612ceb565b9050601354611638610cdb565b61164290856131f3565b11156116b65760405162461bcd60e51b815260206004820152603b60248201527f41697264726f7070696e672074686973206d616e79206164647265737365732060448201527f776f756c642065786365656420746865206d617820737570706c7900000000006064820152608401610cbe565b6116c18160016120e0565b50806116cc81613294565b9150506115fa565b6008546001600160a01b031633146116fe5760405162461bcd60e51b8152600401610cbe90613116565b6012805461ffff909216600160301b0267ffff00000000000019909216919091179055565b6008546001600160a01b0316331461174d5760405162461bcd60e51b8152600401610cbe90613116565b6012805461ffff191661ffff92909216919091179055565b6008546001600160a01b0316331461178f5760405162461bcd60e51b8152600401610cbe90613116565b601555565b606060038054610b40906130dc565b6008546001600160a01b031633146117cd5760405162461bcd60e51b8152600401610cbe90613116565b6017805462ff0000198116620100009182900460ff1615909102179055565b6008546001600160a01b031633146118165760405162461bcd60e51b8152600401610cbe90613116565b806000815181106118295761182961327e565b6020026020010151600a60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060018151811061186a5761186a61327e565b6020026020010151600b60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806002815181106118ab576118ab61327e565b6020026020010151600c60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806003815181106118ec576118ec61327e565b6020026020010151600d60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060048151811061192d5761192d61327e565b6020026020010151600e60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060058151811061196e5761196e61327e565b6020026020010151600f60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b60006119aa3361154b565b60175490915060ff16156119f25760405162461bcd60e51b815260206004820152600f60248201526e283932b634b9ba1034b99037b832b760891b6044820152606401610cbe565b601754610100900460ff1615611a3c5760405162461bcd60e51b815260206004820152600f60248201526e283932b9b0b6329034b99037b832b760891b6044820152606401610cbe565b60175462010000900460ff161515600114611a995760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e0000000000000000006044820152606401610cbe565b60008211611ab95760405162461bcd60e51b8152600401610cbe906131aa565b601254640100000000900461ffff16821115611b3d5760405162461bcd60e51b815260206004820152603960248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d617860448201527f206d696e7420706572207075626c69632073616c6520283529000000000000006064820152608401610cbe565b60135482611b49610cdb565b611b5391906131f3565b1115611b965760405162461bcd60e51b815260206004820152601260248201527145786365656473204d617820537570706c7960701b6044820152606401610cbe565b601254600160301b900461ffff16611bae83836131f3565b1115611c185760405162461bcd60e51b815260206004820152603360248201527f536f7272792c20796f752063616e74206d696e74206d6f7265207468616e20286044820152720e0a481c195c881dd85b1b195d081d1bdd185b606a1b6064820152608401610cbe565b81601654611c269190613161565b3414611c445760405162461bcd60e51b8152600401610cbe90613254565b611c4e33836120e0565b5050565b336001600160a01b03831603611c7b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611d115760405162461bcd60e51b8152600401610cbe90613116565b6012805461ffff9092166401000000000265ffff0000000019909216919091179055565b611d4084848461236a565b6001600160a01b0383163b15158015611d625750611d60848484846126e7565b155b15611436576040516368d2bf6b60e11b815260040160405180910390fd5b6060611d8b826122d5565b611def5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610cbe565b6017546301000000900460ff161515600003611e5757600060108054611e14906130dc565b905011611e305760405180602001604052806000815250610b2b565b6010604051602001611e429190613346565b60405160208183030381529060405292915050565b600060108054611e66906130dc565b905011611e825760405180602001604052806000815250610b2b565b6010611e8d836127d3565b604051602001611e42929190613370565b6008546001600160a01b03163314611ec85760405162461bcd60e51b8152600401610cbe90613116565b60135481611ed4610cdb565b611ede91906131f3565b1115611f445760405162461bcd60e51b815260206004820152602f60248201527f47696674696e67207468697320616d6f756e7420776f756c642065786365656460448201526e20746865206d617820737570706c7960881b6064820152608401610cbe565b611c4e82826120e0565b60108054611f5b906130dc565b80601f0160208091040260200160405190810160405280929190818152602001828054611f87906130dc565b8015611fd45780601f10611fa957610100808354040283529160200191611fd4565b820191906000526020600020905b815481529060010190602001808311611fb757829003601f168201915b505050505081565b6008546001600160a01b031633146120065760405162461bcd60e51b8152600401610cbe90613116565b6001600160a01b03811661206b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbe565b61207481612695565b50565b6009546001600160a01b031633146120e05760405162461bcd60e51b815260206004820152602660248201527f536f72727920796f7520646f6e742068617665207065726d697373696f6e20746044820152651bc81b5a5b9d60d21b6064820152608401610cbe565b611c4e82826128d3565b60175460ff161561212f5760405162461bcd60e51b815260206004820152600f60248201526e283932b634b9ba1034b99037b832b760891b6044820152606401610cbe565b60175460ff6101009091041615156001146121825760405162461bcd60e51b8152602060048201526013602482015272283932b9b0b6329034b9903737ba1037b832b760691b6044820152606401610cbe565b60175462010000900460ff16156121d15760405162461bcd60e51b8152602060048201526013602482015272283ab13634b19039b0b6329034b99037b832b760691b6044820152606401610cbe565b600081116121f15760405162461bcd60e51b8152600401610cbe906131aa565b60125462010000900461ffff1681111561226b5760405162461bcd60e51b815260206004820152603560248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015274206d696e74207065722070726573616c652028352960581b6064820152608401610cbe565b60135481612277610cdb565b61228191906131f3565b111561229f5760405162461bcd60e51b8152600401610cbe9061320b565b806015546122ad9190613161565b34146122cb5760405162461bcd60e51b8152600401610cbe90613254565b61207433826120e0565b6000816001111580156122e9575060005482105b8015610b2b575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006123758261256e565b9050836001600160a01b031681600001516001600160a01b0316146123ac5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806123ca57506123ca8533610a5e565b806123e55750336123da84610bc3565b6001600160a01b0316145b90508061240557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661242c57604051633a954ecd60e21b815260040160405180910390fd5b6124386000848761230e565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661250c57600054821461250c57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600061256782601154856128ed565b9392505050565b6040805160608101825260008082526020820181905291810191909152818060011115801561259e575060005481105b1561267c57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061267a5780516001600160a01b031615612611579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612675579392505050565b612611565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061271c9033908990889088906004016133a5565b6020604051808303816000875af1925050508015612757575060408051601f3d908101601f19168201909252612754918101906133e2565b60015b6127b5573d808015612785576040519150601f19603f3d011682016040523d82523d6000602084013e61278a565b606091505b5080516000036127ad576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036127fa5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612824578061280e81613294565b915061281d9050600a83613196565b91506127fe565b6000816001600160401b0381111561283e5761283e612ebc565b6040519080825280601f01601f191660200182016040528015612868576020820181803683370190505b5090505b84156127cb5761287d6001836133ff565b915061288a600a86613416565b6128959060306131f3565b60f81b8183815181106128aa576128aa61327e565b60200101906001600160f81b031916908160001a9053506128cc600a86613196565b945061286c565b611c4e828260405180602001604052806000815250612903565b6000826128fa8584612910565b14949350505050565b610c8f8383836001612984565b600081815b845181101561297c5760008582815181106129325761293261327e565b602002602001015190508083116129585760008381526020829052604090209250612969565b600081815260208490526040902092505b508061297481613294565b915050612915565b509392505050565b6000546001600160a01b0385166129ad57604051622e076360e81b815260040160405180910390fd5b836000036129ce5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612a7f57506001600160a01b0387163b15155b15612b07575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612ad060008884806001019550886126e7565b612aed576040516368d2bf6b60e11b815260040160405180910390fd5b808203612a85578260005414612b0257600080fd5b612b4c565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203612b08575b50600055612551565b828054612b61906130dc565b90600052602060002090601f016020900481019282612b835760008555612bc9565b82601f10612b9c5782800160ff19823516178555612bc9565b82800160010185558215612bc9579182015b82811115612bc9578235825591602001919060010190612bae565b50612bd5929150612bd9565b5090565b5b80821115612bd55760008155600101612bda565b6001600160e01b03198116811461207457600080fd5b600060208284031215612c1657600080fd5b813561256781612bee565b60005b83811015612c3c578181015183820152602001612c24565b838111156114365750506000910152565b60008151808452612c65816020860160208601612c21565b601f01601f19169290920160200192915050565b6020815260006125676020830184612c4d565b600060208284031215612c9e57600080fd5b5035919050565b80356001600160a01b0381168114612cbc57600080fd5b919050565b60008060408385031215612cd457600080fd5b612cdd83612ca5565b946020939093013593505050565b600060208284031215612cfd57600080fd5b61256782612ca5565b600080600060608486031215612d1b57600080fd5b612d2484612ca5565b9250612d3260208501612ca5565b9150604084013590509250925092565b60008060208385031215612d5557600080fd5b82356001600160401b0380821115612d6c57600080fd5b818501915085601f830112612d8057600080fd5b813581811115612d8f57600080fd5b866020828501011115612da157600080fd5b60209290920196919550909350505050565b60008083601f840112612dc557600080fd5b5081356001600160401b03811115612ddc57600080fd5b6020830191508360208260051b8501011115612df757600080fd5b9250929050565b60008060008060608587031215612e1457600080fd5b612e1d85612ca5565b935060208501356001600160401b03811115612e3857600080fd5b612e4487828801612db3565b9598909750949560400135949350505050565b600060208284031215612e6957600080fd5b813561ffff8116811461256757600080fd5b60008060208385031215612e8e57600080fd5b82356001600160401b03811115612ea457600080fd5b612eb085828601612db3565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612efa57612efa612ebc565b604052919050565b60006020808385031215612f1557600080fd5b82356001600160401b0380821115612f2c57600080fd5b818501915085601f830112612f4057600080fd5b813581811115612f5257612f52612ebc565b8060051b9150612f63848301612ed2565b8181529183018401918481019088841115612f7d57600080fd5b938501935b83851015612fa257612f9385612ca5565b82529385019390850190612f82565b98975050505050505050565b60008060408385031215612fc157600080fd5b612fca83612ca5565b915060208301358015158114612fdf57600080fd5b809150509250929050565b6000806000806080858703121561300057600080fd5b61300985612ca5565b93506020613018818701612ca5565b93506040860135925060608601356001600160401b038082111561303b57600080fd5b818801915088601f83011261304f57600080fd5b81358181111561306157613061612ebc565b613073601f8201601f19168501612ed2565b9150808252898482850101111561308957600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080604083850312156130bc57600080fd5b6130c583612ca5565b91506130d360208401612ca5565b90509250929050565b600181811c908216806130f057607f821691505b60208210810361311057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561317b5761317b61314b565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826131a5576131a5613180565b500490565b60208082526029908201527f596f7572206d696e7420616d6f756e742073686f756c6420626520677265617460408201526806572207468616e20360bc1b606082015260800190565b600082198211156132065761320661314b565b500190565b60208082526029908201527f596f7520776f756c642065786365656420746865206d617820737570706c79206040820152686f6620746f6b656e7360b81b606082015260800190565b60208082526010908201526f496e7375666669656e742066756e647360801b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016132a6576132a661314b565b5060010190565b8054600090600181811c90808316806132c757607f831692505b602080841082036132e857634e487b7160e01b600052602260045260246000fd5b8180156132fc576001811461330d5761333a565b60ff1986168952848901965061333a565b60008881526020902060005b868110156133325781548b820152908501908301613319565b505084890196505b50505050505092915050565b600061335282846132ad565b6d383932b932bb32b0b6173539b7b760911b8152600e019392505050565b600061337c82856132ad565b835161338c818360208801612c21565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906133d890830184612c4d565b9695505050505050565b6000602082840312156133f457600080fd5b815161256781612bee565b6000828210156134115761341161314b565b500390565b60008261342557613425613180565b50069056fea2646970667358221220cfc6973a35190825c61add93d5355bd7b755ef476c802180cf1568350b2d7afa64736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018066fcdb97194f65b9fb4f83cbb9c48271e246aa9ed94fa1dbfba3b684be215c44000000000000000000000000000000000000000000000000000000000000000e50617374656c20506572736f6e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000250500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6139663751706b39455134747a5453456b7a69526739477a35323361504264436d6d6e6a434670424c6145672f0000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c410

Deployed Bytecode

0x6080604052600436106103975760003560e01c8063715018a6116101dc578063a22cb46511610102578063cbce4c97116100a0578063e985e9c51161006f578063e985e9c514610a43578063f2fde38b14610a8c578063f4da184614610aac578063f759867a14610acc57600080fd5b8063cbce4c97146109d5578063d547cfb7146109f5578063d5abeb0114610a0a578063de7fcb1d14610a2057600080fd5b8063b88d4fde116100dc578063b88d4fde14610956578063ba70c51514610976578063bee6348a14610996578063c87b56dd146109b557600080fd5b8063a22cb465146108f4578063b228d92514610914578063b6a741211461093657600080fd5b80638ba086461161017a578063981d877111610149578063981d87711461088c5780639dfd8d2e146108a1578063a044c987146108c1578063a0712d68146108e157600080fd5b80638ba08646146108195780638da5cb5b146108395780638fdcf9421461085757806395d89b411461087757600080fd5b806375bef513116101b657806375bef513146107a25780637c7fc64d146107c25780637e44755b146107d85780637f517807146107f857600080fd5b8063715018a61461074d578063729ad39e1461076257806374ea7fc11461078257600080fd5b806334393743116102c157806352be319e1161025f5780635d8c2efd1161022e5780635d8c2efd146106cd5780636352211e146106ed57806368a9145b1461070d57806370a082311461072d57600080fd5b806352be319e1461065257806353db9da01461066c57806354214f691461068c5780635a6da7e8146106ad57600080fd5b80633ccfd60b1161029b5780633ccfd60b146105ea57806342842e0e146105ff57806344a0d68a1461061f578063493907c91461063f57600080fd5b8063343937431461059f5780633602deb2146105b457806337b6b5b5146105d457600080fd5b80630f640156116103395780631ea5f589116103085780631ea5f5891461052957806323b872dd146105495780632a23d07d1461056957806330176e131461057f57600080fd5b80630f640156146104bb57806313faede6146104d057806318160ddd146104f45780631abd07df1461050957600080fd5b806303cf8a201161037557806303cf8a201461043757806306fdde0314610457578063081812fc14610479578063095ea7b31461049957600080fd5b806301ffc9a71461039c57806302290f5d146103d157806302a7880914610409575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612c04565b610adf565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b50600f546103f1906001600160a01b031681565b6040516001600160a01b0390911681526020016103c8565b34801561041557600080fd5b506012546104249061ffff1681565b60405161ffff90911681526020016103c8565b34801561044357600080fd5b50600b546103f1906001600160a01b031681565b34801561046357600080fd5b5061046c610b31565b6040516103c89190612c79565b34801561048557600080fd5b506103f1610494366004612c8c565b610bc3565b3480156104a557600080fd5b506104b96104b4366004612cc1565b610c07565b005b3480156104c757600080fd5b506104b9610c94565b3480156104dc57600080fd5b506104e660165481565b6040519081526020016103c8565b34801561050057600080fd5b506104e6610cdb565b34801561051557600080fd5b506104b9610524366004612ceb565b610ce9565b34801561053557600080fd5b50600e546103f1906001600160a01b031681565b34801561055557600080fd5b506104b9610564366004612d06565b610d35565b34801561057557600080fd5b506104e660155481565b34801561058b57600080fd5b506104b961059a366004612d42565b610d40565b3480156105ab57600080fd5b506104b9610d76565b3480156105c057600080fd5b50600d546103f1906001600160a01b031681565b3480156105e057600080fd5b506104e660115481565b3480156105f657600080fd5b506104b9610dbd565b34801561060b57600080fd5b506104b961061a366004612d06565b611168565b34801561062b57600080fd5b506104b961063a366004612c8c565b611183565b6104b961064d366004612dfe565b6111b2565b34801561065e57600080fd5b506017546103bc9060ff1681565b34801561067857600080fd5b506104b9610687366004612e57565b61143c565b34801561069857600080fd5b506017546103bc906301000000900460ff1681565b3480156106b957600080fd5b506104b96106c8366004612c8c565b611486565b3480156106d957600080fd5b506104b96106e8366004612d42565b6114b5565b3480156106f957600080fd5b506103f1610708366004612c8c565b61150a565b34801561071957600080fd5b506104b9610728366004612c8c565b61151c565b34801561073957600080fd5b506104e6610748366004612ceb565b61154b565b34801561075957600080fd5b506104b9611599565b34801561076e57600080fd5b506104b961077d366004612e7b565b6115cd565b34801561078e57600080fd5b506104b961079d366004612e57565b6116d4565b3480156107ae57600080fd5b506104b96107bd366004612e57565b611723565b3480156107ce57600080fd5b506104e660145481565b3480156107e457600080fd5b50600a546103f1906001600160a01b031681565b34801561080457600080fd5b506012546104249062010000900461ffff1681565b34801561082557600080fd5b506009546103f1906001600160a01b031681565b34801561084557600080fd5b506008546001600160a01b03166103f1565b34801561086357600080fd5b506104b9610872366004612c8c565b611765565b34801561088357600080fd5b5061046c611794565b34801561089857600080fd5b506104b96117a3565b3480156108ad57600080fd5b506104b96108bc366004612f02565b6117ec565b3480156108cd57600080fd5b50600c546103f1906001600160a01b031681565b6104b96108ef366004612c8c565b61199f565b34801561090057600080fd5b506104b961090f366004612fae565b611c52565b34801561092057600080fd5b5060125461042490600160301b900461ffff1681565b34801561094257600080fd5b506104b9610951366004612e57565b611ce7565b34801561096257600080fd5b506104b9610971366004612fea565b611d35565b34801561098257600080fd5b506017546103bc9062010000900460ff1681565b3480156109a257600080fd5b506017546103bc90610100900460ff1681565b3480156109c157600080fd5b5061046c6109d0366004612c8c565b611d80565b3480156109e157600080fd5b506104b96109f0366004612cc1565b611e9e565b348015610a0157600080fd5b5061046c611f4e565b348015610a1657600080fd5b506104e660135481565b348015610a2c57600080fd5b5060125461042490640100000000900461ffff1681565b348015610a4f57600080fd5b506103bc610a5e3660046130a9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a9857600080fd5b506104b9610aa7366004612ceb565b611fdc565b348015610ab857600080fd5b506104b9610ac7366004612cc1565b612077565b6104b9610ada366004612c8c565b6120ea565b60006001600160e01b031982166380ac58cd60e01b1480610b1057506001600160e01b03198216635b5e139f60e01b145b80610b2b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610b40906130dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6c906130dc565b8015610bb95780601f10610b8e57610100808354040283529160200191610bb9565b820191906000526020600020905b815481529060010190602001808311610b9c57829003601f168201915b5050505050905090565b6000610bce826122d5565b610beb576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c128261150a565b9050806001600160a01b0316836001600160a01b031603610c465760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c665750610c648133610a5e565b155b15610c84576040516367d9dca160e11b815260040160405180910390fd5b610c8f83838361230e565b505050565b6008546001600160a01b03163314610cc75760405162461bcd60e51b8152600401610cbe90613116565b60405180910390fd5b6017805460ff19811660ff90911615179055565b600154600054036000190190565b6008546001600160a01b03163314610d135760405162461bcd60e51b8152600401610cbe90613116565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b610c8f83838361236a565b6008546001600160a01b03163314610d6a5760405162461bcd60e51b8152600401610cbe90613116565b610c8f60108383612b55565b6008546001600160a01b03163314610da05760405162461bcd60e51b8152600401610cbe90613116565b6017805461ff001981166101009182900460ff1615909102179055565b6008546001600160a01b03163314610de75760405162461bcd60e51b8152600401610cbe90613116565b600a5447906000906001600160a01b03166064610e0584601f613161565b610e0f9190613196565b604051600081818185875af1925050503d8060008114610e4b576040519150601f19603f3d011682016040523d82523d6000602084013e610e50565b606091505b5050600b549091506000906001600160a01b03166064610e71856005613161565b610e7b9190613196565b604051600081818185875af1925050503d8060008114610eb7576040519150601f19603f3d011682016040523d82523d6000602084013e610ebc565b606091505b5050600c549091506000906001600160a01b03166064610edd86601e613161565b610ee79190613196565b604051600081818185875af1925050503d8060008114610f23576040519150601f19603f3d011682016040523d82523d6000602084013e610f28565b606091505b5050600d549091506000906001600160a01b03166064610f4987600a613161565b610f539190613196565b604051600081818185875af1925050503d8060008114610f8f576040519150601f19603f3d011682016040523d82523d6000602084013e610f94565b606091505b5050600e549091506000906001600160a01b03166064610fb588600f613161565b610fbf9190613196565b604051600081818185875af1925050503d8060008114610ffb576040519150601f19603f3d011682016040523d82523d6000602084013e611000565b606091505b5050600f549091506000906001600160a01b03166064611021896009613161565b61102b9190613196565b604051600081818185875af1925050503d8060008114611067576040519150601f19603f3d011682016040523d82523d6000602084013e61106c565b606091505b5050905085801561107a5750845b80156110835750835b801561108c5750825b80156110955750815b801561109e5750805b156110ac5750505050505050565b600a546040516000916001600160a01b03169089908381818185875af1925050503d80600081146110f9576040519150601f19603f3d011682016040523d82523d6000602084013e6110fe565b606091505b505090508061115d5760405162461bcd60e51b815260206004820152602560248201527f4e6f74207375636365737366756c2c20746865207769746864726177616c2066604482015264185a5b195960da1b6064820152608401610cbe565b50505050505050505b565b610c8f83838360405180602001604052806000815250611d35565b6008546001600160a01b031633146111ad5760405162461bcd60e51b8152600401610cbe90613116565b601655565b336001600160a01b038516146111f85760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610cbe565b60175460ff1615156001146112465760405162461bcd60e51b81526020600482015260146024820152732a343290383932b634b9ba103737ba1037b832b760611b6044820152606401610cbe565b604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101206112ba9084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061255892505050565b6112f65760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610cbe565b600081116113165760405162461bcd60e51b8152600401610cbe906131aa565b6012543360009081526018602052604090205461ffff9091169061133b9083906131f3565b11156113a75760405162461bcd60e51b815260206004820152603560248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015274206d696e7420706572207072656c6973742028322960581b6064820152608401610cbe565b601354816113b3610cdb565b6113bd91906131f3565b11156113db5760405162461bcd60e51b8152600401610cbe9061320b565b806014546113e99190613161565b34146114075760405162461bcd60e51b8152600401610cbe90613254565b33600090815260186020526040812080548392906114269084906131f3565b90915550611436905033826120e0565b50505050565b6008546001600160a01b031633146114665760405162461bcd60e51b8152600401610cbe90613116565b6012805461ffff909216620100000263ffff000019909216919091179055565b6008546001600160a01b031633146114b05760405162461bcd60e51b8152600401610cbe90613116565b601455565b6008546001600160a01b031633146114df5760405162461bcd60e51b8152600401610cbe90613116565b6017805463ff00000019811663010000009182900460ff1615909102179055610c8f60108383612b55565b60006115158261256e565b5192915050565b6008546001600160a01b031633146115465760405162461bcd60e51b8152600401610cbe90613116565b601155565b60006001600160a01b038216611574576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146115c35760405162461bcd60e51b8152600401610cbe90613116565b6111666000612695565b6008546001600160a01b031633146115f75760405162461bcd60e51b8152600401610cbe90613116565b60005b81811015610c8f5760008383838181106116165761161661327e565b905060200201602081019061162b9190612ceb565b9050601354611638610cdb565b61164290856131f3565b11156116b65760405162461bcd60e51b815260206004820152603b60248201527f41697264726f7070696e672074686973206d616e79206164647265737365732060448201527f776f756c642065786365656420746865206d617820737570706c7900000000006064820152608401610cbe565b6116c18160016120e0565b50806116cc81613294565b9150506115fa565b6008546001600160a01b031633146116fe5760405162461bcd60e51b8152600401610cbe90613116565b6012805461ffff909216600160301b0267ffff00000000000019909216919091179055565b6008546001600160a01b0316331461174d5760405162461bcd60e51b8152600401610cbe90613116565b6012805461ffff191661ffff92909216919091179055565b6008546001600160a01b0316331461178f5760405162461bcd60e51b8152600401610cbe90613116565b601555565b606060038054610b40906130dc565b6008546001600160a01b031633146117cd5760405162461bcd60e51b8152600401610cbe90613116565b6017805462ff0000198116620100009182900460ff1615909102179055565b6008546001600160a01b031633146118165760405162461bcd60e51b8152600401610cbe90613116565b806000815181106118295761182961327e565b6020026020010151600a60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060018151811061186a5761186a61327e565b6020026020010151600b60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806002815181106118ab576118ab61327e565b6020026020010151600c60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806003815181106118ec576118ec61327e565b6020026020010151600d60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060048151811061192d5761192d61327e565b6020026020010151600e60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060058151811061196e5761196e61327e565b6020026020010151600f60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b60006119aa3361154b565b60175490915060ff16156119f25760405162461bcd60e51b815260206004820152600f60248201526e283932b634b9ba1034b99037b832b760891b6044820152606401610cbe565b601754610100900460ff1615611a3c5760405162461bcd60e51b815260206004820152600f60248201526e283932b9b0b6329034b99037b832b760891b6044820152606401610cbe565b60175462010000900460ff161515600114611a995760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e0000000000000000006044820152606401610cbe565b60008211611ab95760405162461bcd60e51b8152600401610cbe906131aa565b601254640100000000900461ffff16821115611b3d5760405162461bcd60e51b815260206004820152603960248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d617860448201527f206d696e7420706572207075626c69632073616c6520283529000000000000006064820152608401610cbe565b60135482611b49610cdb565b611b5391906131f3565b1115611b965760405162461bcd60e51b815260206004820152601260248201527145786365656473204d617820537570706c7960701b6044820152606401610cbe565b601254600160301b900461ffff16611bae83836131f3565b1115611c185760405162461bcd60e51b815260206004820152603360248201527f536f7272792c20796f752063616e74206d696e74206d6f7265207468616e20286044820152720e0a481c195c881dd85b1b195d081d1bdd185b606a1b6064820152608401610cbe565b81601654611c269190613161565b3414611c445760405162461bcd60e51b8152600401610cbe90613254565b611c4e33836120e0565b5050565b336001600160a01b03831603611c7b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611d115760405162461bcd60e51b8152600401610cbe90613116565b6012805461ffff9092166401000000000265ffff0000000019909216919091179055565b611d4084848461236a565b6001600160a01b0383163b15158015611d625750611d60848484846126e7565b155b15611436576040516368d2bf6b60e11b815260040160405180910390fd5b6060611d8b826122d5565b611def5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610cbe565b6017546301000000900460ff161515600003611e5757600060108054611e14906130dc565b905011611e305760405180602001604052806000815250610b2b565b6010604051602001611e429190613346565b60405160208183030381529060405292915050565b600060108054611e66906130dc565b905011611e825760405180602001604052806000815250610b2b565b6010611e8d836127d3565b604051602001611e42929190613370565b6008546001600160a01b03163314611ec85760405162461bcd60e51b8152600401610cbe90613116565b60135481611ed4610cdb565b611ede91906131f3565b1115611f445760405162461bcd60e51b815260206004820152602f60248201527f47696674696e67207468697320616d6f756e7420776f756c642065786365656460448201526e20746865206d617820737570706c7960881b6064820152608401610cbe565b611c4e82826120e0565b60108054611f5b906130dc565b80601f0160208091040260200160405190810160405280929190818152602001828054611f87906130dc565b8015611fd45780601f10611fa957610100808354040283529160200191611fd4565b820191906000526020600020905b815481529060010190602001808311611fb757829003601f168201915b505050505081565b6008546001600160a01b031633146120065760405162461bcd60e51b8152600401610cbe90613116565b6001600160a01b03811661206b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbe565b61207481612695565b50565b6009546001600160a01b031633146120e05760405162461bcd60e51b815260206004820152602660248201527f536f72727920796f7520646f6e742068617665207065726d697373696f6e20746044820152651bc81b5a5b9d60d21b6064820152608401610cbe565b611c4e82826128d3565b60175460ff161561212f5760405162461bcd60e51b815260206004820152600f60248201526e283932b634b9ba1034b99037b832b760891b6044820152606401610cbe565b60175460ff6101009091041615156001146121825760405162461bcd60e51b8152602060048201526013602482015272283932b9b0b6329034b9903737ba1037b832b760691b6044820152606401610cbe565b60175462010000900460ff16156121d15760405162461bcd60e51b8152602060048201526013602482015272283ab13634b19039b0b6329034b99037b832b760691b6044820152606401610cbe565b600081116121f15760405162461bcd60e51b8152600401610cbe906131aa565b60125462010000900461ffff1681111561226b5760405162461bcd60e51b815260206004820152603560248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015274206d696e74207065722070726573616c652028352960581b6064820152608401610cbe565b60135481612277610cdb565b61228191906131f3565b111561229f5760405162461bcd60e51b8152600401610cbe9061320b565b806015546122ad9190613161565b34146122cb5760405162461bcd60e51b8152600401610cbe90613254565b61207433826120e0565b6000816001111580156122e9575060005482105b8015610b2b575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006123758261256e565b9050836001600160a01b031681600001516001600160a01b0316146123ac5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806123ca57506123ca8533610a5e565b806123e55750336123da84610bc3565b6001600160a01b0316145b90508061240557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661242c57604051633a954ecd60e21b815260040160405180910390fd5b6124386000848761230e565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661250c57600054821461250c57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600061256782601154856128ed565b9392505050565b6040805160608101825260008082526020820181905291810191909152818060011115801561259e575060005481105b1561267c57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061267a5780516001600160a01b031615612611579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612675579392505050565b612611565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061271c9033908990889088906004016133a5565b6020604051808303816000875af1925050508015612757575060408051601f3d908101601f19168201909252612754918101906133e2565b60015b6127b5573d808015612785576040519150601f19603f3d011682016040523d82523d6000602084013e61278a565b606091505b5080516000036127ad576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036127fa5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612824578061280e81613294565b915061281d9050600a83613196565b91506127fe565b6000816001600160401b0381111561283e5761283e612ebc565b6040519080825280601f01601f191660200182016040528015612868576020820181803683370190505b5090505b84156127cb5761287d6001836133ff565b915061288a600a86613416565b6128959060306131f3565b60f81b8183815181106128aa576128aa61327e565b60200101906001600160f81b031916908160001a9053506128cc600a86613196565b945061286c565b611c4e828260405180602001604052806000815250612903565b6000826128fa8584612910565b14949350505050565b610c8f8383836001612984565b600081815b845181101561297c5760008582815181106129325761293261327e565b602002602001015190508083116129585760008381526020829052604090209250612969565b600081815260208490526040902092505b508061297481613294565b915050612915565b509392505050565b6000546001600160a01b0385166129ad57604051622e076360e81b815260040160405180910390fd5b836000036129ce5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612a7f57506001600160a01b0387163b15155b15612b07575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612ad060008884806001019550886126e7565b612aed576040516368d2bf6b60e11b815260040160405180910390fd5b808203612a85578260005414612b0257600080fd5b612b4c565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203612b08575b50600055612551565b828054612b61906130dc565b90600052602060002090601f016020900481019282612b835760008555612bc9565b82601f10612b9c5782800160ff19823516178555612bc9565b82800160010185558215612bc9579182015b82811115612bc9578235825591602001919060010190612bae565b50612bd5929150612bd9565b5090565b5b80821115612bd55760008155600101612bda565b6001600160e01b03198116811461207457600080fd5b600060208284031215612c1657600080fd5b813561256781612bee565b60005b83811015612c3c578181015183820152602001612c24565b838111156114365750506000910152565b60008151808452612c65816020860160208601612c21565b601f01601f19169290920160200192915050565b6020815260006125676020830184612c4d565b600060208284031215612c9e57600080fd5b5035919050565b80356001600160a01b0381168114612cbc57600080fd5b919050565b60008060408385031215612cd457600080fd5b612cdd83612ca5565b946020939093013593505050565b600060208284031215612cfd57600080fd5b61256782612ca5565b600080600060608486031215612d1b57600080fd5b612d2484612ca5565b9250612d3260208501612ca5565b9150604084013590509250925092565b60008060208385031215612d5557600080fd5b82356001600160401b0380821115612d6c57600080fd5b818501915085601f830112612d8057600080fd5b813581811115612d8f57600080fd5b866020828501011115612da157600080fd5b60209290920196919550909350505050565b60008083601f840112612dc557600080fd5b5081356001600160401b03811115612ddc57600080fd5b6020830191508360208260051b8501011115612df757600080fd5b9250929050565b60008060008060608587031215612e1457600080fd5b612e1d85612ca5565b935060208501356001600160401b03811115612e3857600080fd5b612e4487828801612db3565b9598909750949560400135949350505050565b600060208284031215612e6957600080fd5b813561ffff8116811461256757600080fd5b60008060208385031215612e8e57600080fd5b82356001600160401b03811115612ea457600080fd5b612eb085828601612db3565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612efa57612efa612ebc565b604052919050565b60006020808385031215612f1557600080fd5b82356001600160401b0380821115612f2c57600080fd5b818501915085601f830112612f4057600080fd5b813581811115612f5257612f52612ebc565b8060051b9150612f63848301612ed2565b8181529183018401918481019088841115612f7d57600080fd5b938501935b83851015612fa257612f9385612ca5565b82529385019390850190612f82565b98975050505050505050565b60008060408385031215612fc157600080fd5b612fca83612ca5565b915060208301358015158114612fdf57600080fd5b809150509250929050565b6000806000806080858703121561300057600080fd5b61300985612ca5565b93506020613018818701612ca5565b93506040860135925060608601356001600160401b038082111561303b57600080fd5b818801915088601f83011261304f57600080fd5b81358181111561306157613061612ebc565b613073601f8201601f19168501612ed2565b9150808252898482850101111561308957600080fd5b808484018584013760008482840101525080935050505092959194509250565b600080604083850312156130bc57600080fd5b6130c583612ca5565b91506130d360208401612ca5565b90509250929050565b600181811c908216806130f057607f821691505b60208210810361311057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561317b5761317b61314b565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826131a5576131a5613180565b500490565b60208082526029908201527f596f7572206d696e7420616d6f756e742073686f756c6420626520677265617460408201526806572207468616e20360bc1b606082015260800190565b600082198211156132065761320661314b565b500190565b60208082526029908201527f596f7520776f756c642065786365656420746865206d617820737570706c79206040820152686f6620746f6b656e7360b81b606082015260800190565b60208082526010908201526f496e7375666669656e742066756e647360801b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016132a6576132a661314b565b5060010190565b8054600090600181811c90808316806132c757607f831692505b602080841082036132e857634e487b7160e01b600052602260045260246000fd5b8180156132fc576001811461330d5761333a565b60ff1986168952848901965061333a565b60008881526020902060005b868110156133325781548b820152908501908301613319565b505084890196505b50505050505092915050565b600061335282846132ad565b6d383932b932bb32b0b6173539b7b760911b8152600e019392505050565b600061337c82856132ad565b835161338c818360208801612c21565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906133d890830184612c4d565b9695505050505050565b6000602082840312156133f457600080fd5b815161256781612bee565b6000828210156134115761341161314b565b500390565b60008261342557613425613180565b50069056fea2646970667358221220cfc6973a35190825c61add93d5355bd7b755ef476c802180cf1568350b2d7afa64736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018066fcdb97194f65b9fb4f83cbb9c48271e246aa9ed94fa1dbfba3b684be215c44000000000000000000000000000000000000000000000000000000000000000e50617374656c20506572736f6e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000250500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6139663751706b39455134747a5453456b7a69526739477a35323361504264436d6d6e6a434670424c6145672f0000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c4100000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c410

-----Decoded View---------------
Arg [0] : _name (string): Pastel Persons
Arg [1] : _symbol (string): PP
Arg [2] : _initBaseTokenURI (string): ipfs://Qma9f7Qpk9EQ4tzTSEkziRg9Gz523aPBdCmmnjCFpBLaEg/
Arg [3] : _withdrawAddresses (address[]): 0x4Ec9f0Be32aE6622Db43B7a293290EE7b054c410,0x4Ec9f0Be32aE6622Db43B7a293290EE7b054c410,0x4Ec9f0Be32aE6622Db43B7a293290EE7b054c410,0x4Ec9f0Be32aE6622Db43B7a293290EE7b054c410,0x4Ec9f0Be32aE6622Db43B7a293290EE7b054c410,0x4Ec9f0Be32aE6622Db43B7a293290EE7b054c410
Arg [4] : _initRoot (bytes32): 0x66fcdb97194f65b9fb4f83cbb9c48271e246aa9ed94fa1dbfba3b684be215c44

-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 66fcdb97194f65b9fb4f83cbb9c48271e246aa9ed94fa1dbfba3b684be215c44
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [6] : 50617374656c20506572736f6e73000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 5050000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [10] : 697066733a2f2f516d6139663751706b39455134747a5453456b7a6952673947
Arg [11] : 7a35323361504264436d6d6e6a434670424c6145672f00000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [13] : 0000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c410
Arg [14] : 0000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c410
Arg [15] : 0000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c410
Arg [16] : 0000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c410
Arg [17] : 0000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c410
Arg [18] : 0000000000000000000000004ec9f0be32ae6622db43b7a293290ee7b054c410


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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