ETH Price: $2,924.78 (-7.67%)
Gas: 9 Gwei

Token

Kairaku World (KW)
 

Overview

Max Total Supply

1,145 KW

Holders

176

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 KW
0xfd8b61cc3f349415f286fce5e4e8a3efe9d20cac
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Kairaku

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : kairaku.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

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

contract Kairaku is ERC721A, Ownable {
    string public defaultTokenURI;

    string public baseTokenURI;

    string public ninjaDieTokenURI;

    uint256 constant public maxSupply = 5000;

    uint256 public ogStartTime = 1671714000 - 30; // Dec 22 2022 22:00:00 GMT+09 - 30s

    uint256 public whitelistStartTime = 1671717600 - 30; // Dec 22 2022 23:00:00 GMT+09 - 30s

    uint256 public publicStartTime = 1671721200 - 30; // Dec 23 2022 0:00:00 GMT+09 - 30s

    uint256 public ogPrice = 0.015 ether;

    uint256 public whitelistPrice = 0.02 ether;

    uint256 public publicPrice = 0.03 ether;

    uint256 public ogMinted;

    uint256 public whitelistMinted;

    uint256 public publicMinted;

    mapping(address => uint256) public ogMintedMap;

    mapping(address => uint256) public whitelistMintedMap;

    mapping(address => uint256) public publicMintedMap;

    address private _burner;

    bytes32 private _ogMerkleRoot;

    bytes32 private _wlMerkleRoot;

	uint256 public totalAirdropped = 0;

    constructor(string memory defaultTokenURI_, string memory baseTokenURI_, bytes32 ogMerkleRoot_, bytes32 wlMerkleRoot_) ERC721A("Kairaku World", "KW") {
        defaultTokenURI = defaultTokenURI_;
        baseTokenURI = baseTokenURI_;
        _ogMerkleRoot = ogMerkleRoot_;
        _wlMerkleRoot = wlMerkleRoot_;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "Must from user");
        _;
    }

    /********** MINT START **********/
    function ogMint(uint256 quantity, bytes32[] calldata _merkleProof) external callerIsUser payable {
        require(block.timestamp >= ogStartTime, "Not in og stage");
        require(_totalMinted() + quantity <= maxSupply, "Exceed supply");
        require(ogMinted + quantity <= 100, "Exceed og supply");
        require(isInOg(msg.sender, _merkleProof), "Caller can not og mint");
        require(ogMintedMap[msg.sender] + quantity <= 2, "Exceed per-user og supply");
        require(msg.value >= ogPrice * quantity, "Not enough ether paid for");

        ogMinted += quantity;
        ogMintedMap[msg.sender] += quantity;

        _safeMint(msg.sender, quantity);
    }

    function whitelistMint(uint256 quantity, bytes32[] calldata _merkleProof) external callerIsUser payable {
        require(block.timestamp >= whitelistStartTime, "Not in whitelist stage");
        require(_totalMinted() + quantity <= maxSupply, "Exceed supply");
        require(whitelistMinted + publicMinted + quantity <= 4400, "Exceed whitelist supply");
        require(isInWhitelist(msg.sender, _merkleProof), "Caller can not whitelist mint");
        require(whitelistMintedMap[msg.sender] + quantity <= 3, "Exceed per-user whitelist supply");
        require(msg.value >= whitelistPrice * quantity, "Not enough ether paid for");

        whitelistMinted += quantity;
        whitelistMintedMap[msg.sender] += quantity;

        _safeMint(msg.sender, quantity);
    }

    function publicMint(uint256 quantity) external callerIsUser payable {
        require(block.timestamp >= publicStartTime, "Not in public stage");
        require(_totalMinted() + quantity <= maxSupply, "Exceed supply");
        require(whitelistMinted + publicMinted + quantity <= 4400, "Exceed whitelist supply");
        require(publicMintedMap[msg.sender] + quantity <= 3, "This address has finished public mint");
        require(msg.value >= publicPrice * quantity, "Not enough ether paid for");

        publicMinted += quantity;
        publicMintedMap[msg.sender] += quantity;

        _safeMint(msg.sender, quantity);
    }

    function isInOg(address _address, bytes32[] calldata _signature) public view returns (bool) {
        return MerkleProof.verify(_signature, _ogMerkleRoot, keccak256(abi.encodePacked(_address)));
    }

    function isInWhitelist(address _address, bytes32[] calldata _signature) public view returns (bool) {
        return MerkleProof.verify(_signature, _wlMerkleRoot, keccak256(abi.encodePacked(_address)));
    }

    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, _toString(tokenId))) : defaultTokenURI;
    }

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

    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
		uint256 index = 0;
		uint256 hasMinted = _totalMinted();
		uint256 tokenIdsLen = balanceOf(owner);
		uint256[] memory tokenIds = new uint256[](tokenIdsLen);

		for (uint256 tokenId = 1; index < tokenIdsLen && tokenId <= hasMinted; tokenId++) {
			if (owner == ownerOf(tokenId)) {
				tokenIds[index] = tokenId;
				index++;
			}
		}

		return tokenIds;
	}
    /********** MINT END **********/


    /********** BURN START **********/
    function burn(uint256 tokenId) external {
        require(_burner == msg.sender, "You are not allowed to burn");
        _burn(tokenId, false);
    }

    function totalBurned() public view returns (uint256) {
		return _totalBurned();
	}
    /********** BURN END **********/


    /********** MANAGER CONTRACT START **********/
    function setOgStartTime(uint256 startime) external onlyOwner {
        ogStartTime = startime;
    }

    function setWhitelistStartTime(uint256 startime) external onlyOwner {
        whitelistStartTime = startime;
    }

    function setPublicStartTime(uint256 startime) external onlyOwner {
        publicStartTime = startime;
    }

    function setOgPrice(uint256 price) external onlyOwner {
        ogPrice = price;
    }

    function setWhitelistPrice(uint256 price) external onlyOwner {
        whitelistPrice = price;
    }

    function setPublicPrice(uint256 price) external onlyOwner {
        publicPrice = price;
    }

    function setOgMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        _ogMerkleRoot = merkleRoot;
    }

    function setWlMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        _wlMerkleRoot = merkleRoot;
    }

    function setDefaultTokenURI(string calldata defaultTokenURI_) external onlyOwner {
        defaultTokenURI = defaultTokenURI_;
    }

    function setBaseURI(string calldata baseTokenURI_) external onlyOwner {
        baseTokenURI = baseTokenURI_;
    }

    function setBurner(address burner) external onlyOwner {
        _burner = burner;
    }

    function airdrop(address[] calldata addressList, uint256 quantity) external onlyOwner {
		uint256 total = addressList.length * quantity;
		require(
			_totalMinted() + total <= maxSupply,
			"Exceed nft max supply"
		);

		totalAirdropped += total;

		for (uint256 index = 0; index < addressList.length; index++) {
			_mint(addressList[index], quantity);
		}
	}

    function withdraw() external onlyOwner {
        (bool success,) = payable(owner()).call{value: address(this).balance}("");
        require(success, "Withdraw failed.");
    }

    function withdraw(address to) external onlyOwner {
        (bool success,) = payable(to).call{value: address(this).balance}("");
        require(success, "Withdraw failed.");
    }
    /********** MANAGER CONTRACT END **********/


    /********** 721A CONFIG START **********/
    function _baseURI() internal view override returns (string memory) {
        return baseTokenURI;
    }

    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }
    /********** 721A CONFIG END **********/
}

File 2 of 6 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @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 IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with `_mintERC2309`.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309`
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

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

    // The number of tokens burned.
    uint256 private _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 `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // 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();
    }

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev 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 Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary 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 {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // 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.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA);
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * 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) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, BITMASK_ADDRESS)
            // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

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

    /**
     * @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, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`.
            result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

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

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

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @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 == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), 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-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 {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

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

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    /**
     * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`.
     */
    function _isOwnerOrApproved(
        address approvedAddress,
        address from,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
            from := and(from, BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, BITMASK_ADDRESS)
            // `msgSender == from || msgSender == approvedAddress`.
            result := or(eq(msgSender, from), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @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 transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        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 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 ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @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 {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 6 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

File 5 of 6 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    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;
        // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`.
        uint24 extraData;
    }

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

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

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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);

    // ==============================
    //            IERC2309
    // ==============================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
     * as defined in the ERC2309 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

pragma solidity ^0.8.0;

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

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

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":"defaultTokenURI_","type":"string"},{"internalType":"string","name":"baseTokenURI_","type":"string"},{"internalType":"bytes32","name":"ogMerkleRoot_","type":"bytes32"},{"internalType":"bytes32","name":"wlMerkleRoot_","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"addressList","type":"address[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"_signature","type":"bytes32[]"}],"name":"isInOg","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"_signature","type":"bytes32[]"}],"name":"isInWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ninjaDieTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"ogMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ogMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ogMintedMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintedMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"setBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"defaultTokenURI_","type":"string"}],"name":"setDefaultTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setOgMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setOgPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startime","type":"uint256"}],"name":"setOgStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startime","type":"uint256"}],"name":"setPublicStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setWhitelistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startime","type":"uint256"}],"name":"setWhitelistStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWlMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAirdropped","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintedMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526363a454b2600c556363a462c2600d556363a470d2600e5566354a6ba7a18000600f5566470de4df820000601055666a94d74f4300006011556000601b553480156200004f57600080fd5b5060405162002f9838038062002f988339810160408190526200007291620002dd565b6040518060400160405280600d81526020016c12d85a5c985add4815dbdc9b19609a1b815250604051806040016040528060028152602001614b5760f01b8152508160029080519060200190620000cb92919062000184565b508051620000e190600390602084019062000184565b5050600160005550620000f43362000132565b83516200010990600990602087019062000184565b5082516200011f90600a90602086019062000184565b50601991909155601a5550620003a79050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001929062000354565b90600052602060002090601f016020900481019282620001b6576000855562000201565b82601f10620001d157805160ff191683800117855562000201565b8280016001018555821562000201579182015b8281111562000201578251825591602001919060010190620001e4565b506200020f92915062000213565b5090565b5b808211156200020f576000815560010162000214565b600082601f8301126200023b578081fd5b81516001600160401b038082111562000258576200025862000391565b604051601f8301601f19908116603f0116810190828211818310171562000283576200028362000391565b816040528381526020925086838588010111156200029f578485fd5b8491505b83821015620002c25785820183015181830184015290820190620002a3565b83821115620002d357848385830101525b9695505050505050565b60008060008060808587031215620002f3578384fd5b84516001600160401b03808211156200030a578586fd5b62000318888389016200022a565b955060208701519150808211156200032e578485fd5b506200033d878288016200022a565b604087015160609097015195989097509350505050565b600181811c908216806200036957607f821691505b602082108114156200038b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612be180620003b76000396000f3fe6080604052600436106103765760003560e01c80638da5cb5b116101d1578063c86c8d8a11610102578063d8a7ab89116100a0578063e985e9c51161006f578063e985e9c51461099d578063f2fde38b146109e6578063faaaed5814610a06578063fc1a1c3614610a3357600080fd5b8063d8a7ab8914610928578063db8cc8fa14610948578063e65efccc14610968578063e7bb7ef01461098857600080fd5b8063d2cab056116100dc578063d2cab056146108d5578063d547cfb7146108e8578063d5abeb01146108fd578063d89135cd1461091357600080fd5b8063c86c8d8a14610889578063c87b56dd1461089f578063ce678580146108bf57600080fd5b8063a2309ff81161016f578063a996d6ce11610149578063a996d6ce14610809578063b88d4fde14610829578063c204642c14610849578063c62752551461086957600080fd5b8063a2309ff8146107c4578063a4f4f8af146107dd578063a945bf80146107f357600080fd5b806395d89b41116101ab57806395d89b411461075a578063963bfe121461076f578063a125c82414610784578063a22cb465146107a457600080fd5b80638da5cb5b146106f95780639053ea65146107175780639292caaf1461074457600080fd5b806342966c68116102ab578063715018a61161024957806383af79e71161022357806383af79e7146106765780638462151c146106965780638990694f146106c35780638ac1e161146106d957600080fd5b8063715018a61461062b578063717d57d314610640578063834e91cf1461066057600080fd5b80635fd1bbc4116102855780635fd1bbc4146105b55780636352211e146105cb5780636ce77a53146105eb57806370a082311461060b57600080fd5b806342966c681461055557806351cff8d91461057557806355f804b31461059557600080fd5b80631c0ce3d3116103185780632db11544116102f25780632db11544146104e05780633ccfd60b146104f35780633e947a251461050857806342842e0e1461053557600080fd5b80631c0ce3d31461048d57806323b872dd146104ad5780632b314dc6146104cd57600080fd5b8063095ea7b311610354578063095ea7b31461040a57806313c131c91461042c57806315f5d8a01461044c57806318160ddd1461047057600080fd5b806301ffc9a71461037b57806306fdde03146103b0578063081812fc146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004612830565b610a49565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610a9b565b6040516103a791906129e2565b3480156103de57600080fd5b506103f26103ed366004612818565b610b2d565b6040516001600160a01b0390911681526020016103a7565b34801561041657600080fd5b5061042a6104253660046127a5565b610b71565b005b34801561043857600080fd5b5061039b61044736600461271a565b610c11565b34801561045857600080fd5b50610462600f5481565b6040519081526020016103a7565b34801561047c57600080fd5b506001546000540360001901610462565b34801561049957600080fd5b5061042a6104a8366004612818565b610c92565b3480156104b957600080fd5b5061042a6104c836600461260a565b610cca565b61042a6104db3660046128d5565b610e65565b61042a6104ee366004612818565b611086565b3480156104ff57600080fd5b5061042a61127c565b34801561051457600080fd5b506104626105233660046125be565b60156020526000908152604090205481565b34801561054157600080fd5b5061042a61055036600461260a565b61134d565b34801561056157600080fd5b5061042a610570366004612818565b611368565b34801561058157600080fd5b5061042a6105903660046125be565b6113cd565b3480156105a157600080fd5b5061042a6105b0366004612868565b611491565b3480156105c157600080fd5b50610462600e5481565b3480156105d757600080fd5b506103f26105e6366004612818565b6114c7565b3480156105f757600080fd5b5061042a610606366004612818565b6114d2565b34801561061757600080fd5b506104626106263660046125be565b611501565b34801561063757600080fd5b5061042a611550565b34801561064c57600080fd5b5061042a61065b366004612818565b611586565b34801561066c57600080fd5b5061046260125481565b34801561068257600080fd5b5061042a610691366004612818565b6115b5565b3480156106a257600080fd5b506106b66106b13660046125be565b6115e4565b6040516103a7919061299e565b3480156106cf57600080fd5b5061046260135481565b3480156106e557600080fd5b5061042a6106f4366004612818565b6116e9565b34801561070557600080fd5b506008546001600160a01b03166103f2565b34801561072357600080fd5b506104626107323660046125be565b60176020526000908152604090205481565b34801561075057600080fd5b50610462600d5481565b34801561076657600080fd5b506103c5611718565b34801561077b57600080fd5b506103c5611727565b34801561079057600080fd5b5061042a61079f366004612868565b6117b5565b3480156107b057600080fd5b5061042a6107bf36600461276b565b6117eb565b3480156107d057600080fd5b5060005460001901610462565b3480156107e957600080fd5b5061046260145481565b3480156107ff57600080fd5b5061046260115481565b34801561081557600080fd5b5061042a6108243660046125be565b611886565b34801561083557600080fd5b5061042a610844366004612645565b6118d2565b34801561085557600080fd5b5061042a6108643660046127ce565b61191c565b34801561087557600080fd5b5061042a610884366004612818565b611a2f565b34801561089557600080fd5b50610462600c5481565b3480156108ab57600080fd5b506103c56108ba366004612818565b611a5e565b3480156108cb57600080fd5b50610462601b5481565b61042a6108e33660046128d5565b611b5e565b3480156108f457600080fd5b506103c5611d8d565b34801561090957600080fd5b5061046261138881565b34801561091f57600080fd5b50610462611d9a565b34801561093457600080fd5b5061042a610943366004612818565b611da5565b34801561095457600080fd5b5061042a610963366004612818565b611dd4565b34801561097457600080fd5b5061039b61098336600461271a565b611e03565b34801561099457600080fd5b506103c5611e65565b3480156109a957600080fd5b5061039b6109b83660046125d8565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109f257600080fd5b5061042a610a013660046125be565b611e72565b348015610a1257600080fd5b50610462610a213660046125be565b60166020526000908152604090205481565b348015610a3f57600080fd5b5061046260105481565b60006301ffc9a760e01b6001600160e01b031983161480610a7a57506380ac58cd60e01b6001600160e01b03198316145b80610a955750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610aaa90612b13565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad690612b13565b8015610b235780601f10610af857610100808354040283529160200191610b23565b820191906000526020600020905b815481529060010190602001808311610b0657829003601f168201915b5050505050905090565b6000610b3882611f0a565b610b55576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b7c826114c7565b9050336001600160a01b03821614610bb557610b9881336109b8565b610bb5576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610c8a838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506019546040516bffffffffffffffffffffffff1960608b901b16602082015290925060340190505b60405160208183030381529060405280519060200120611f3f565b949350505050565b6008546001600160a01b03163314610cc55760405162461bcd60e51b8152600401610cbc90612a54565b60405180910390fd5b600d55565b6000610cd582611f55565b9050836001600160a01b0316816001600160a01b031614610d085760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610d348187335b6001600160a01b039081169116811491141790565b610d5f57610d4286336109b8565b610d5f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d8657604051633a954ecd60e21b815260040160405180910390fd5b8015610d9157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610e1c5760018401600081815260046020526040902054610e1a576000548114610e1a5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b323314610e845760405162461bcd60e51b8152600401610cbc90612a2c565b600c54421015610ec85760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420696e206f6720737461676560881b6044820152606401610cbc565b61138883610ed96000546000190190565b610ee39190612ab0565b1115610f015760405162461bcd60e51b8152600401610cbc90612a89565b606483601254610f119190612ab0565b1115610f525760405162461bcd60e51b815260206004820152601060248201526f457863656564206f6720737570706c7960801b6044820152606401610cbc565b610f5d338383610c11565b610fa25760405162461bcd60e51b815260206004820152601660248201527510d85b1b195c8818d85b881b9bdd081bd9c81b5a5b9d60521b6044820152606401610cbc565b33600090815260156020526040902054600290610fc0908590612ab0565b111561100e5760405162461bcd60e51b815260206004820152601960248201527f457863656564207065722d75736572206f6720737570706c79000000000000006044820152606401610cbc565b82600f5461101c9190612ac8565b34101561103b5760405162461bcd60e51b8152600401610cbc906129f5565b826012600082825461104d9190612ab0565b90915550503360009081526015602052604081208054859290611071908490612ab0565b9091555061108190503384611fbe565b505050565b3233146110a55760405162461bcd60e51b8152600401610cbc90612a2c565b600e544210156110ed5760405162461bcd60e51b81526020600482015260136024820152724e6f7420696e207075626c696320737461676560681b6044820152606401610cbc565b611388816110fe6000546000190190565b6111089190612ab0565b11156111265760405162461bcd60e51b8152600401610cbc90612a89565b6111308160145460135461113a9190612ab0565b6111449190612ab0565b111561118c5760405162461bcd60e51b81526020600482015260176024820152764578636565642077686974656c69737420737570706c7960481b6044820152606401610cbc565b336000908152601760205260409020546003906111aa908390612ab0565b11156112065760405162461bcd60e51b815260206004820152602560248201527f546869732061646472657373206861732066696e6973686564207075626c6963604482015264081b5a5b9d60da1b6064820152608401610cbc565b806011546112149190612ac8565b3410156112335760405162461bcd60e51b8152600401610cbc906129f5565b80601460008282546112459190612ab0565b90915550503360009081526017602052604081208054839290611269908490612ab0565b9091555061127990503382611fbe565b50565b6008546001600160a01b031633146112a65760405162461bcd60e51b8152600401610cbc90612a54565b60006112ba6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611304576040519150601f19603f3d011682016040523d82523d6000602084013e611309565b606091505b50509050806112795760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401610cbc565b611081838383604051806020016040528060008152506118d2565b6018546001600160a01b031633146113c25760405162461bcd60e51b815260206004820152601b60248201527f596f7520617265206e6f7420616c6c6f77656420746f206275726e00000000006044820152606401610cbc565b611279816000611fd8565b6008546001600160a01b031633146113f75760405162461bcd60e51b8152600401610cbc90612a54565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114611444576040519150601f19603f3d011682016040523d82523d6000602084013e611449565b606091505b505090508061148d5760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401610cbc565b5050565b6008546001600160a01b031633146114bb5760405162461bcd60e51b8152600401610cbc90612a54565b611081600a83836124bf565b6000610a9582611f55565b6008546001600160a01b031633146114fc5760405162461bcd60e51b8152600401610cbc90612a54565b600c55565b60006001600160a01b03821661152a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461157a5760405162461bcd60e51b8152600401610cbc90612a54565b611584600061211b565b565b6008546001600160a01b031633146115b05760405162461bcd60e51b8152600401610cbc90612a54565b601055565b6008546001600160a01b031633146115df5760405162461bcd60e51b8152600401610cbc90612a54565b600f55565b60606000806115f66000546000190190565b9050600061160385611501565b905060008167ffffffffffffffff81111561162e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611657578160200160208202803683370190505b50905060015b828510801561166c5750838111155b156116df5761167a816114c7565b6001600160a01b0316876001600160a01b031614156116cd57808286815181106116b457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152846116c981612b4e565b9550505b806116d781612b4e565b91505061165d565b5095945050505050565b6008546001600160a01b031633146117135760405162461bcd60e51b8152600401610cbc90612a54565b601a55565b606060038054610aaa90612b13565b6009805461173490612b13565b80601f016020809104026020016040519081016040528092919081815260200182805461176090612b13565b80156117ad5780601f10611782576101008083540402835291602001916117ad565b820191906000526020600020905b81548152906001019060200180831161179057829003601f168201915b505050505081565b6008546001600160a01b031633146117df5760405162461bcd60e51b8152600401610cbc90612a54565b611081600983836124bf565b6001600160a01b0382163314156118155760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b905090565b6008546001600160a01b031633146118b05760405162461bcd60e51b8152600401610cbc90612a54565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6118dd848484610cca565b6001600160a01b0383163b15611916576118f98484848461216d565b611916576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146119465760405162461bcd60e51b8152600401610cbc90612a54565b60006119528284612ac8565b9050611388816119656000546000190190565b61196f9190612ab0565b11156119b55760405162461bcd60e51b8152602060048201526015602482015274457863656564206e6674206d617820737570706c7960581b6044820152606401610cbc565b80601b60008282546119c79190612ab0565b90915550600090505b83811015611a2857611a168585838181106119fb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611a1091906125be565b84612264565b80611a2081612b4e565b9150506119d0565b5050505050565b6008546001600160a01b03163314611a595760405162461bcd60e51b8152600401610cbc90612a54565b601155565b6060611a6982611f0a565b611a8657604051630a14c4b560e41b815260040160405180910390fd5b6000611a90612341565b9050805160001415611b2c5760098054611aa990612b13565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad590612b13565b8015611b225780601f10611af757610100808354040283529160200191611b22565b820191906000526020600020905b815481529060010190602001808311611b0557829003601f168201915b5050505050611b57565b80611b3684612350565b604051602001611b47929190612932565b6040516020818303038152906040525b9392505050565b323314611b7d5760405162461bcd60e51b8152600401610cbc90612a2c565b600d54421015611bc85760405162461bcd60e51b81526020600482015260166024820152754e6f7420696e2077686974656c69737420737461676560501b6044820152606401610cbc565b61138883611bd96000546000190190565b611be39190612ab0565b1115611c015760405162461bcd60e51b8152600401610cbc90612a89565b61113083601454601354611c159190612ab0565b611c1f9190612ab0565b1115611c675760405162461bcd60e51b81526020600482015260176024820152764578636565642077686974656c69737420737570706c7960481b6044820152606401610cbc565b611c72338383611e03565b611cbe5760405162461bcd60e51b815260206004820152601d60248201527f43616c6c65722063616e206e6f742077686974656c697374206d696e740000006044820152606401610cbc565b33600090815260166020526040902054600390611cdc908590612ab0565b1115611d2a5760405162461bcd60e51b815260206004820181905260248201527f457863656564207065722d757365722077686974656c69737420737570706c796044820152606401610cbc565b82601054611d389190612ac8565b341015611d575760405162461bcd60e51b8152600401610cbc906129f5565b8260136000828254611d699190612ab0565b90915550503360009081526016602052604081208054859290611071908490612ab0565b600a805461173490612b13565b600061188160015490565b6008546001600160a01b03163314611dcf5760405162461bcd60e51b8152600401610cbc90612a54565b601955565b6008546001600160a01b03163314611dfe5760405162461bcd60e51b8152600401610cbc90612a54565b600e55565b6000610c8a83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601a546040516bffffffffffffffffffffffff1960608b901b1660208201529092506034019050610c6f565b600b805461173490612b13565b6008546001600160a01b03163314611e9c5760405162461bcd60e51b8152600401610cbc90612a54565b6001600160a01b038116611f015760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbc565b6112798161211b565b600081600111158015611f1e575060005482105b8015610a95575050600090815260046020526040902054600160e01b161590565b600082611f4c858461239f565b14949350505050565b60008180600111611fa557600054811015611fa557600081815260046020526040902054600160e01b8116611fa3575b80611b57575060001901600081815260046020526040902054611f85565b505b604051636f96cda160e11b815260040160405180910390fd5b61148d828260405180602001604052806000815250612459565b6000611fe383611f55565b90508060008061200186600090815260066020526040902080549091565b91509150841561204157612016818433610d1f565b6120415761202483336109b8565b61204157604051632ce44b5f60e11b815260040160405180910390fd5b801561204c57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b84166120d357600186016000818152600460205260409020546120d15760005481146120d15760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906121a2903390899088908890600401612961565b602060405180830381600087803b1580156121bc57600080fd5b505af19250505080156121ec575060408051601f3d908101601f191682019092526121e99181019061284c565b60015b612247573d80801561221a576040519150601f19603f3d011682016040523d82523d6000602084013e61221f565b606091505b50805161223f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000546001600160a01b03831661228d57604051622e076360e81b815260040160405180910390fd5b816122ab5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106122f55760005550505050565b6060600a8054610aaa90612b13565b604080516080810191829052607f0190826030600a8206018353600a90045b801561238d57600183039250600a81066030018353600a900461236f565b50819003601f19909101908152919050565b600081815b84518110156124515760008582815181106123cf57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161241157604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061243e565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061244981612b4e565b9150506123a4565b509392505050565b6124638383612264565b6001600160a01b0383163b15611081576000548281035b61248d600086838060010194508661216d565b6124aa576040516368d2bf6b60e11b815260040160405180910390fd5b81811061247a578160005414611a2857600080fd5b8280546124cb90612b13565b90600052602060002090601f0160209004810192826124ed5760008555612533565b82601f106125065782800160ff19823516178555612533565b82800160010185558215612533579182015b82811115612533578235825591602001919060010190612518565b5061253f929150612543565b5090565b5b8082111561253f5760008155600101612544565b80356001600160a01b038116811461256f57600080fd5b919050565b60008083601f840112612585578081fd5b50813567ffffffffffffffff81111561259c578182fd5b6020830191508360208260051b85010111156125b757600080fd5b9250929050565b6000602082840312156125cf578081fd5b611b5782612558565b600080604083850312156125ea578081fd5b6125f383612558565b915061260160208401612558565b90509250929050565b60008060006060848603121561261e578081fd5b61262784612558565b925061263560208501612558565b9150604084013590509250925092565b6000806000806080858703121561265a578081fd5b61266385612558565b935061267160208601612558565b925060408501359150606085013567ffffffffffffffff80821115612694578283fd5b818701915087601f8301126126a7578283fd5b8135818111156126b9576126b9612b7f565b604051601f8201601f19908116603f011681019083821181831017156126e1576126e1612b7f565b816040528281528a60208487010111156126f9578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060006040848603121561272e578283fd5b61273784612558565b9250602084013567ffffffffffffffff811115612752578283fd5b61275e86828701612574565b9497909650939450505050565b6000806040838503121561277d578182fd5b61278683612558565b91506020830135801515811461279a578182fd5b809150509250929050565b600080604083850312156127b7578182fd5b6127c083612558565b946020939093013593505050565b6000806000604084860312156127e2578283fd5b833567ffffffffffffffff8111156127f8578384fd5b61280486828701612574565b909790965060209590950135949350505050565b600060208284031215612829578081fd5b5035919050565b600060208284031215612841578081fd5b8135611b5781612b95565b60006020828403121561285d578081fd5b8151611b5781612b95565b6000806020838503121561287a578182fd5b823567ffffffffffffffff80821115612891578384fd5b818501915085601f8301126128a4578384fd5b8135818111156128b2578485fd5b8660208285010111156128c3578485fd5b60209290920196919550909350505050565b6000806000604084860312156128e9578081fd5b83359250602084013567ffffffffffffffff811115612752578182fd5b6000815180845261291e816020860160208601612ae7565b601f01601f19169290920160200192915050565b60008351612944818460208801612ae7565b835190830190612958818360208801612ae7565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061299490830184612906565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156129d6578351835292840192918401916001016129ba565b50909695505050505050565b602081526000611b576020830184612906565b60208082526019908201527f4e6f7420656e6f756768206574686572207061696420666f7200000000000000604082015260600190565b6020808252600e908201526d26bab9ba10333937b6903ab9b2b960911b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c45786365656420737570706c7960981b604082015260600190565b60008219821115612ac357612ac3612b69565b500190565b6000816000190483118215151615612ae257612ae2612b69565b500290565b60005b83811015612b02578181015183820152602001612aea565b838111156119165750506000910152565b600181811c90821680612b2757607f821691505b60208210811415612b4857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b6257612b62612b69565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461127957600080fdfea2646970667358221220d10d6b1b97f9b7a6a24368802bd1b91305bf44204b1a3efdc9aff29b80b92fe264736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001007a25387c09f9552b4d1b4afb07664b924047d884ae7d4ce613c7c964fcc7824612469ad929292fb586200adbf6963e62b013f077f96bff31ed49acad55fbb679000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6261667962656968637a68767a696262766c7373753464663635377166776875346f7336676c77676d726f65666c3366766d7277626d6f717065612e697066732e6e667473746f726167652e6c696e6b2f000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103765760003560e01c80638da5cb5b116101d1578063c86c8d8a11610102578063d8a7ab89116100a0578063e985e9c51161006f578063e985e9c51461099d578063f2fde38b146109e6578063faaaed5814610a06578063fc1a1c3614610a3357600080fd5b8063d8a7ab8914610928578063db8cc8fa14610948578063e65efccc14610968578063e7bb7ef01461098857600080fd5b8063d2cab056116100dc578063d2cab056146108d5578063d547cfb7146108e8578063d5abeb01146108fd578063d89135cd1461091357600080fd5b8063c86c8d8a14610889578063c87b56dd1461089f578063ce678580146108bf57600080fd5b8063a2309ff81161016f578063a996d6ce11610149578063a996d6ce14610809578063b88d4fde14610829578063c204642c14610849578063c62752551461086957600080fd5b8063a2309ff8146107c4578063a4f4f8af146107dd578063a945bf80146107f357600080fd5b806395d89b41116101ab57806395d89b411461075a578063963bfe121461076f578063a125c82414610784578063a22cb465146107a457600080fd5b80638da5cb5b146106f95780639053ea65146107175780639292caaf1461074457600080fd5b806342966c68116102ab578063715018a61161024957806383af79e71161022357806383af79e7146106765780638462151c146106965780638990694f146106c35780638ac1e161146106d957600080fd5b8063715018a61461062b578063717d57d314610640578063834e91cf1461066057600080fd5b80635fd1bbc4116102855780635fd1bbc4146105b55780636352211e146105cb5780636ce77a53146105eb57806370a082311461060b57600080fd5b806342966c681461055557806351cff8d91461057557806355f804b31461059557600080fd5b80631c0ce3d3116103185780632db11544116102f25780632db11544146104e05780633ccfd60b146104f35780633e947a251461050857806342842e0e1461053557600080fd5b80631c0ce3d31461048d57806323b872dd146104ad5780632b314dc6146104cd57600080fd5b8063095ea7b311610354578063095ea7b31461040a57806313c131c91461042c57806315f5d8a01461044c57806318160ddd1461047057600080fd5b806301ffc9a71461037b57806306fdde03146103b0578063081812fc146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004612830565b610a49565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610a9b565b6040516103a791906129e2565b3480156103de57600080fd5b506103f26103ed366004612818565b610b2d565b6040516001600160a01b0390911681526020016103a7565b34801561041657600080fd5b5061042a6104253660046127a5565b610b71565b005b34801561043857600080fd5b5061039b61044736600461271a565b610c11565b34801561045857600080fd5b50610462600f5481565b6040519081526020016103a7565b34801561047c57600080fd5b506001546000540360001901610462565b34801561049957600080fd5b5061042a6104a8366004612818565b610c92565b3480156104b957600080fd5b5061042a6104c836600461260a565b610cca565b61042a6104db3660046128d5565b610e65565b61042a6104ee366004612818565b611086565b3480156104ff57600080fd5b5061042a61127c565b34801561051457600080fd5b506104626105233660046125be565b60156020526000908152604090205481565b34801561054157600080fd5b5061042a61055036600461260a565b61134d565b34801561056157600080fd5b5061042a610570366004612818565b611368565b34801561058157600080fd5b5061042a6105903660046125be565b6113cd565b3480156105a157600080fd5b5061042a6105b0366004612868565b611491565b3480156105c157600080fd5b50610462600e5481565b3480156105d757600080fd5b506103f26105e6366004612818565b6114c7565b3480156105f757600080fd5b5061042a610606366004612818565b6114d2565b34801561061757600080fd5b506104626106263660046125be565b611501565b34801561063757600080fd5b5061042a611550565b34801561064c57600080fd5b5061042a61065b366004612818565b611586565b34801561066c57600080fd5b5061046260125481565b34801561068257600080fd5b5061042a610691366004612818565b6115b5565b3480156106a257600080fd5b506106b66106b13660046125be565b6115e4565b6040516103a7919061299e565b3480156106cf57600080fd5b5061046260135481565b3480156106e557600080fd5b5061042a6106f4366004612818565b6116e9565b34801561070557600080fd5b506008546001600160a01b03166103f2565b34801561072357600080fd5b506104626107323660046125be565b60176020526000908152604090205481565b34801561075057600080fd5b50610462600d5481565b34801561076657600080fd5b506103c5611718565b34801561077b57600080fd5b506103c5611727565b34801561079057600080fd5b5061042a61079f366004612868565b6117b5565b3480156107b057600080fd5b5061042a6107bf36600461276b565b6117eb565b3480156107d057600080fd5b5060005460001901610462565b3480156107e957600080fd5b5061046260145481565b3480156107ff57600080fd5b5061046260115481565b34801561081557600080fd5b5061042a6108243660046125be565b611886565b34801561083557600080fd5b5061042a610844366004612645565b6118d2565b34801561085557600080fd5b5061042a6108643660046127ce565b61191c565b34801561087557600080fd5b5061042a610884366004612818565b611a2f565b34801561089557600080fd5b50610462600c5481565b3480156108ab57600080fd5b506103c56108ba366004612818565b611a5e565b3480156108cb57600080fd5b50610462601b5481565b61042a6108e33660046128d5565b611b5e565b3480156108f457600080fd5b506103c5611d8d565b34801561090957600080fd5b5061046261138881565b34801561091f57600080fd5b50610462611d9a565b34801561093457600080fd5b5061042a610943366004612818565b611da5565b34801561095457600080fd5b5061042a610963366004612818565b611dd4565b34801561097457600080fd5b5061039b61098336600461271a565b611e03565b34801561099457600080fd5b506103c5611e65565b3480156109a957600080fd5b5061039b6109b83660046125d8565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109f257600080fd5b5061042a610a013660046125be565b611e72565b348015610a1257600080fd5b50610462610a213660046125be565b60166020526000908152604090205481565b348015610a3f57600080fd5b5061046260105481565b60006301ffc9a760e01b6001600160e01b031983161480610a7a57506380ac58cd60e01b6001600160e01b03198316145b80610a955750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610aaa90612b13565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad690612b13565b8015610b235780601f10610af857610100808354040283529160200191610b23565b820191906000526020600020905b815481529060010190602001808311610b0657829003601f168201915b5050505050905090565b6000610b3882611f0a565b610b55576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b7c826114c7565b9050336001600160a01b03821614610bb557610b9881336109b8565b610bb5576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610c8a838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506019546040516bffffffffffffffffffffffff1960608b901b16602082015290925060340190505b60405160208183030381529060405280519060200120611f3f565b949350505050565b6008546001600160a01b03163314610cc55760405162461bcd60e51b8152600401610cbc90612a54565b60405180910390fd5b600d55565b6000610cd582611f55565b9050836001600160a01b0316816001600160a01b031614610d085760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610d348187335b6001600160a01b039081169116811491141790565b610d5f57610d4286336109b8565b610d5f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d8657604051633a954ecd60e21b815260040160405180910390fd5b8015610d9157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610e1c5760018401600081815260046020526040902054610e1a576000548114610e1a5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b323314610e845760405162461bcd60e51b8152600401610cbc90612a2c565b600c54421015610ec85760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420696e206f6720737461676560881b6044820152606401610cbc565b61138883610ed96000546000190190565b610ee39190612ab0565b1115610f015760405162461bcd60e51b8152600401610cbc90612a89565b606483601254610f119190612ab0565b1115610f525760405162461bcd60e51b815260206004820152601060248201526f457863656564206f6720737570706c7960801b6044820152606401610cbc565b610f5d338383610c11565b610fa25760405162461bcd60e51b815260206004820152601660248201527510d85b1b195c8818d85b881b9bdd081bd9c81b5a5b9d60521b6044820152606401610cbc565b33600090815260156020526040902054600290610fc0908590612ab0565b111561100e5760405162461bcd60e51b815260206004820152601960248201527f457863656564207065722d75736572206f6720737570706c79000000000000006044820152606401610cbc565b82600f5461101c9190612ac8565b34101561103b5760405162461bcd60e51b8152600401610cbc906129f5565b826012600082825461104d9190612ab0565b90915550503360009081526015602052604081208054859290611071908490612ab0565b9091555061108190503384611fbe565b505050565b3233146110a55760405162461bcd60e51b8152600401610cbc90612a2c565b600e544210156110ed5760405162461bcd60e51b81526020600482015260136024820152724e6f7420696e207075626c696320737461676560681b6044820152606401610cbc565b611388816110fe6000546000190190565b6111089190612ab0565b11156111265760405162461bcd60e51b8152600401610cbc90612a89565b6111308160145460135461113a9190612ab0565b6111449190612ab0565b111561118c5760405162461bcd60e51b81526020600482015260176024820152764578636565642077686974656c69737420737570706c7960481b6044820152606401610cbc565b336000908152601760205260409020546003906111aa908390612ab0565b11156112065760405162461bcd60e51b815260206004820152602560248201527f546869732061646472657373206861732066696e6973686564207075626c6963604482015264081b5a5b9d60da1b6064820152608401610cbc565b806011546112149190612ac8565b3410156112335760405162461bcd60e51b8152600401610cbc906129f5565b80601460008282546112459190612ab0565b90915550503360009081526017602052604081208054839290611269908490612ab0565b9091555061127990503382611fbe565b50565b6008546001600160a01b031633146112a65760405162461bcd60e51b8152600401610cbc90612a54565b60006112ba6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611304576040519150601f19603f3d011682016040523d82523d6000602084013e611309565b606091505b50509050806112795760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401610cbc565b611081838383604051806020016040528060008152506118d2565b6018546001600160a01b031633146113c25760405162461bcd60e51b815260206004820152601b60248201527f596f7520617265206e6f7420616c6c6f77656420746f206275726e00000000006044820152606401610cbc565b611279816000611fd8565b6008546001600160a01b031633146113f75760405162461bcd60e51b8152600401610cbc90612a54565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114611444576040519150601f19603f3d011682016040523d82523d6000602084013e611449565b606091505b505090508061148d5760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401610cbc565b5050565b6008546001600160a01b031633146114bb5760405162461bcd60e51b8152600401610cbc90612a54565b611081600a83836124bf565b6000610a9582611f55565b6008546001600160a01b031633146114fc5760405162461bcd60e51b8152600401610cbc90612a54565b600c55565b60006001600160a01b03821661152a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461157a5760405162461bcd60e51b8152600401610cbc90612a54565b611584600061211b565b565b6008546001600160a01b031633146115b05760405162461bcd60e51b8152600401610cbc90612a54565b601055565b6008546001600160a01b031633146115df5760405162461bcd60e51b8152600401610cbc90612a54565b600f55565b60606000806115f66000546000190190565b9050600061160385611501565b905060008167ffffffffffffffff81111561162e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611657578160200160208202803683370190505b50905060015b828510801561166c5750838111155b156116df5761167a816114c7565b6001600160a01b0316876001600160a01b031614156116cd57808286815181106116b457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152846116c981612b4e565b9550505b806116d781612b4e565b91505061165d565b5095945050505050565b6008546001600160a01b031633146117135760405162461bcd60e51b8152600401610cbc90612a54565b601a55565b606060038054610aaa90612b13565b6009805461173490612b13565b80601f016020809104026020016040519081016040528092919081815260200182805461176090612b13565b80156117ad5780601f10611782576101008083540402835291602001916117ad565b820191906000526020600020905b81548152906001019060200180831161179057829003601f168201915b505050505081565b6008546001600160a01b031633146117df5760405162461bcd60e51b8152600401610cbc90612a54565b611081600983836124bf565b6001600160a01b0382163314156118155760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b905090565b6008546001600160a01b031633146118b05760405162461bcd60e51b8152600401610cbc90612a54565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6118dd848484610cca565b6001600160a01b0383163b15611916576118f98484848461216d565b611916576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146119465760405162461bcd60e51b8152600401610cbc90612a54565b60006119528284612ac8565b9050611388816119656000546000190190565b61196f9190612ab0565b11156119b55760405162461bcd60e51b8152602060048201526015602482015274457863656564206e6674206d617820737570706c7960581b6044820152606401610cbc565b80601b60008282546119c79190612ab0565b90915550600090505b83811015611a2857611a168585838181106119fb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611a1091906125be565b84612264565b80611a2081612b4e565b9150506119d0565b5050505050565b6008546001600160a01b03163314611a595760405162461bcd60e51b8152600401610cbc90612a54565b601155565b6060611a6982611f0a565b611a8657604051630a14c4b560e41b815260040160405180910390fd5b6000611a90612341565b9050805160001415611b2c5760098054611aa990612b13565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad590612b13565b8015611b225780601f10611af757610100808354040283529160200191611b22565b820191906000526020600020905b815481529060010190602001808311611b0557829003601f168201915b5050505050611b57565b80611b3684612350565b604051602001611b47929190612932565b6040516020818303038152906040525b9392505050565b323314611b7d5760405162461bcd60e51b8152600401610cbc90612a2c565b600d54421015611bc85760405162461bcd60e51b81526020600482015260166024820152754e6f7420696e2077686974656c69737420737461676560501b6044820152606401610cbc565b61138883611bd96000546000190190565b611be39190612ab0565b1115611c015760405162461bcd60e51b8152600401610cbc90612a89565b61113083601454601354611c159190612ab0565b611c1f9190612ab0565b1115611c675760405162461bcd60e51b81526020600482015260176024820152764578636565642077686974656c69737420737570706c7960481b6044820152606401610cbc565b611c72338383611e03565b611cbe5760405162461bcd60e51b815260206004820152601d60248201527f43616c6c65722063616e206e6f742077686974656c697374206d696e740000006044820152606401610cbc565b33600090815260166020526040902054600390611cdc908590612ab0565b1115611d2a5760405162461bcd60e51b815260206004820181905260248201527f457863656564207065722d757365722077686974656c69737420737570706c796044820152606401610cbc565b82601054611d389190612ac8565b341015611d575760405162461bcd60e51b8152600401610cbc906129f5565b8260136000828254611d699190612ab0565b90915550503360009081526016602052604081208054859290611071908490612ab0565b600a805461173490612b13565b600061188160015490565b6008546001600160a01b03163314611dcf5760405162461bcd60e51b8152600401610cbc90612a54565b601955565b6008546001600160a01b03163314611dfe5760405162461bcd60e51b8152600401610cbc90612a54565b600e55565b6000610c8a83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601a546040516bffffffffffffffffffffffff1960608b901b1660208201529092506034019050610c6f565b600b805461173490612b13565b6008546001600160a01b03163314611e9c5760405162461bcd60e51b8152600401610cbc90612a54565b6001600160a01b038116611f015760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbc565b6112798161211b565b600081600111158015611f1e575060005482105b8015610a95575050600090815260046020526040902054600160e01b161590565b600082611f4c858461239f565b14949350505050565b60008180600111611fa557600054811015611fa557600081815260046020526040902054600160e01b8116611fa3575b80611b57575060001901600081815260046020526040902054611f85565b505b604051636f96cda160e11b815260040160405180910390fd5b61148d828260405180602001604052806000815250612459565b6000611fe383611f55565b90508060008061200186600090815260066020526040902080549091565b91509150841561204157612016818433610d1f565b6120415761202483336109b8565b61204157604051632ce44b5f60e11b815260040160405180910390fd5b801561204c57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b84166120d357600186016000818152600460205260409020546120d15760005481146120d15760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906121a2903390899088908890600401612961565b602060405180830381600087803b1580156121bc57600080fd5b505af19250505080156121ec575060408051601f3d908101601f191682019092526121e99181019061284c565b60015b612247573d80801561221a576040519150601f19603f3d011682016040523d82523d6000602084013e61221f565b606091505b50805161223f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000546001600160a01b03831661228d57604051622e076360e81b815260040160405180910390fd5b816122ab5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106122f55760005550505050565b6060600a8054610aaa90612b13565b604080516080810191829052607f0190826030600a8206018353600a90045b801561238d57600183039250600a81066030018353600a900461236f565b50819003601f19909101908152919050565b600081815b84518110156124515760008582815181106123cf57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161241157604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061243e565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061244981612b4e565b9150506123a4565b509392505050565b6124638383612264565b6001600160a01b0383163b15611081576000548281035b61248d600086838060010194508661216d565b6124aa576040516368d2bf6b60e11b815260040160405180910390fd5b81811061247a578160005414611a2857600080fd5b8280546124cb90612b13565b90600052602060002090601f0160209004810192826124ed5760008555612533565b82601f106125065782800160ff19823516178555612533565b82800160010185558215612533579182015b82811115612533578235825591602001919060010190612518565b5061253f929150612543565b5090565b5b8082111561253f5760008155600101612544565b80356001600160a01b038116811461256f57600080fd5b919050565b60008083601f840112612585578081fd5b50813567ffffffffffffffff81111561259c578182fd5b6020830191508360208260051b85010111156125b757600080fd5b9250929050565b6000602082840312156125cf578081fd5b611b5782612558565b600080604083850312156125ea578081fd5b6125f383612558565b915061260160208401612558565b90509250929050565b60008060006060848603121561261e578081fd5b61262784612558565b925061263560208501612558565b9150604084013590509250925092565b6000806000806080858703121561265a578081fd5b61266385612558565b935061267160208601612558565b925060408501359150606085013567ffffffffffffffff80821115612694578283fd5b818701915087601f8301126126a7578283fd5b8135818111156126b9576126b9612b7f565b604051601f8201601f19908116603f011681019083821181831017156126e1576126e1612b7f565b816040528281528a60208487010111156126f9578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060006040848603121561272e578283fd5b61273784612558565b9250602084013567ffffffffffffffff811115612752578283fd5b61275e86828701612574565b9497909650939450505050565b6000806040838503121561277d578182fd5b61278683612558565b91506020830135801515811461279a578182fd5b809150509250929050565b600080604083850312156127b7578182fd5b6127c083612558565b946020939093013593505050565b6000806000604084860312156127e2578283fd5b833567ffffffffffffffff8111156127f8578384fd5b61280486828701612574565b909790965060209590950135949350505050565b600060208284031215612829578081fd5b5035919050565b600060208284031215612841578081fd5b8135611b5781612b95565b60006020828403121561285d578081fd5b8151611b5781612b95565b6000806020838503121561287a578182fd5b823567ffffffffffffffff80821115612891578384fd5b818501915085601f8301126128a4578384fd5b8135818111156128b2578485fd5b8660208285010111156128c3578485fd5b60209290920196919550909350505050565b6000806000604084860312156128e9578081fd5b83359250602084013567ffffffffffffffff811115612752578182fd5b6000815180845261291e816020860160208601612ae7565b601f01601f19169290920160200192915050565b60008351612944818460208801612ae7565b835190830190612958818360208801612ae7565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061299490830184612906565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156129d6578351835292840192918401916001016129ba565b50909695505050505050565b602081526000611b576020830184612906565b60208082526019908201527f4e6f7420656e6f756768206574686572207061696420666f7200000000000000604082015260600190565b6020808252600e908201526d26bab9ba10333937b6903ab9b2b960911b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c45786365656420737570706c7960981b604082015260600190565b60008219821115612ac357612ac3612b69565b500190565b6000816000190483118215151615612ae257612ae2612b69565b500290565b60005b83811015612b02578181015183820152602001612aea565b838111156119165750506000910152565b600181811c90821680612b2757607f821691505b60208210811415612b4857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b6257612b62612b69565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461127957600080fdfea2646970667358221220d10d6b1b97f9b7a6a24368802bd1b91305bf44204b1a3efdc9aff29b80b92fe264736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001007a25387c09f9552b4d1b4afb07664b924047d884ae7d4ce613c7c964fcc7824612469ad929292fb586200adbf6963e62b013f077f96bff31ed49acad55fbb679000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6261667962656968637a68767a696262766c7373753464663635377166776875346f7336676c77676d726f65666c3366766d7277626d6f717065612e697066732e6e667473746f726167652e6c696e6b2f000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : defaultTokenURI_ (string): https://bafybeihczhvzibbvlssu4df657qfwhu4os6glwgmroefl3fvmrwbmoqpea.ipfs.nftstorage.link/
Arg [1] : baseTokenURI_ (string):
Arg [2] : ogMerkleRoot_ (bytes32): 0x7a25387c09f9552b4d1b4afb07664b924047d884ae7d4ce613c7c964fcc78246
Arg [3] : wlMerkleRoot_ (bytes32): 0x12469ad929292fb586200adbf6963e62b013f077f96bff31ed49acad55fbb679

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 7a25387c09f9552b4d1b4afb07664b924047d884ae7d4ce613c7c964fcc78246
Arg [3] : 12469ad929292fb586200adbf6963e62b013f077f96bff31ed49acad55fbb679
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [5] : 68747470733a2f2f6261667962656968637a68767a696262766c737375346466
Arg [6] : 3635377166776875346f7336676c77676d726f65666c3366766d7277626d6f71
Arg [7] : 7065612e697066732e6e667473746f726167652e6c696e6b2f00000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.