ETH Price: $3,310.58 (-0.87%)
 

Overview

Max Total Supply

500 TPB

Holders

121

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TPB
0xc29ba81285e477618cd227aca813e5c403a47f75
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:
TheParrotBoss

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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

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

contract TheParrotBoss is ERC721A, Ownable {

    // Declaring variables

    using Strings for uint256;
    using SafeMath for uint256;

    bool public isSale = false;
    bool public isWhitelist = true;
    bool public isGiveaway = true;
    uint256 public supply = 6969;
    uint256 public price = 0.17 ether;
    uint256 public max = 20;
    string public metaUri = "ipfs://QmZuCHreLkx9KeEqtiZbM6xyQg2xTwHvqHsPR6jbkZYbB9/";
    mapping(address => uint256) public glist;

    // The Merkle Root
	bytes32 public root = 0x736b03dbad42e8f8a1b90e9c684217135d575cfb4ac29fbeea73718286fed6ff;

    constructor() ERC721A("TheParrotBoss", "TPB") {}

    // Mint Functions - Public
    
    function mint(uint256 quantity, bytes32[] calldata proof) external payable {
        require(MerkleProof.verify(proof, root, bytes32(keccak256(abi.encodePacked(msg.sender)))), "You are not whitelisted");
        require(isSale, "The Parrot Boss sale is not active");
        require(quantity <= max, "Requested quantity exceeds maximum allowed" );
        require(totalSupply().add(quantity) <= supply, "The quantity of tokens requested is not available");
        require(price.mul(quantity) == msg.value, "Ether amount sent is incorrect");
        _mint(msg.sender, quantity);
    }

    function publicMint(uint256 quantity) external payable {
        require(isSale, "The Parrot Boss sale is not active");
        require((!isWhitelist), "Public sale is not active yet");
        require(quantity <= max, "Requested quantity exceeds maximum allowed" );
        require(totalSupply().add(quantity) <= supply, "The quantity of tokens requested is not available");
        require(price.mul(quantity) == msg.value, "Ether amount sent is incorrect");
        _mint(msg.sender, quantity);
    }

    function gMint(uint256 quantity) external {
        require(glist[(msg.sender)] >= quantity, "You are not allowed to mint the requested quantity of tokens.");
        require(isGiveaway, "The Parrot Boss giveaway is not active");
        require(totalSupply().add(quantity) <= supply, "The quantity of tokens requested is not available");
        glist[(msg.sender)] = glist[(msg.sender)].sub(quantity);
        _mint(msg.sender, quantity);
    }

    // Mint Functions for Owner

    function ownerMint(uint256 quantity) external onlyOwner {
        require(totalSupply().add(quantity) <= supply, "The quantity of tokens requested is not available");
        _mint(msg.sender, quantity);
    }

    function airdrop(address to, uint256 quantity) external onlyOwner {
        require(totalSupply().add(quantity) <= supply, "The quantity of tokens requested is not available");
        _mint(to, quantity);
    }

    // Token URL Function - Public

    function tokenURI(uint256 tokenId) override public view returns (string memory) {
        return string(abi.encodePacked(_baseURI(), uint256(tokenId).toString(), ".json"));
    }

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

    // Setter Functions - onlyOwner

    function triggerSale() external onlyOwner {
        isSale = !isSale;
    }

    function triggerWhitelist() external onlyOwner {
        isWhitelist = !isWhitelist;
    }

    function triggerGiveaway() external onlyOwner {
        isGiveaway = !isGiveaway;
    }
    
    function setSupply(uint256 newSupply) external onlyOwner {
        supply = newSupply;
    }

    function setPrice(uint256 newPrice) external onlyOwner {
        price = newPrice;
    }

    function setMax(uint256 newMax) external onlyOwner {
        max = newMax;
    }

    function setMetaURI(string memory newURI) external onlyOwner {
        metaUri = newURI;
    }

    function setRoot(bytes32 newRoot) external onlyOwner {
        root = newRoot;
    }

    // Whitelist and Glist Functions - onlyOwner
    
    function addToGlist(address[] memory addresses, uint256[] memory quantities) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++){
            glist[addresses[i]] = quantities[i];
        }
    }
    
    function removeFromGlist(address[] memory addresses) external onlyOwner {
        for (uint256 i = 0; i < addresses.length ; i++){
            glist[addresses[i]] = 0;
        }
    }

    // Withdraw Function - onlyOwner

    function withdraw() external onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }

}

File 2 of 8 : 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 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
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 Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 6 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 7 of 8 : 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 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"addToGlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"gMint","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"}],"name":"glist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"isGiveaway","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metaUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeFromGlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setMetaURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSupply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"triggerGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"triggerSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"triggerWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600860146101000a81548160ff0219169083151502179055506001600860156101000a81548160ff0219169083151502179055506001600860166101000a81548160ff021916908315150217905550611b3960095567025bf6196bd10000600a556014600b556040518060600160405280603681526020016200401060369139600c90805190602001906200009d92919062000282565b507f736b03dbad42e8f8a1b90e9c684217135d575cfb4ac29fbeea73718286fed6ff60001b600e55348015620000d257600080fd5b506040518060400160405280600d81526020017f546865506172726f74426f7373000000000000000000000000000000000000008152506040518060400160405280600381526020017f545042000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200015792919062000282565b5080600390805190602001906200017092919062000282565b5062000181620001af60201b60201c565b6000819055505050620001a96200019d620001b460201b60201c565b620001bc60201b60201c565b62000397565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002909062000332565b90600052602060002090601f016020900481019282620002b4576000855562000300565b82601f10620002cf57805160ff191683800117855562000300565b8280016001018555821562000300579182015b82811115620002ff578251825591602001919060010190620002e2565b5b5090506200030f919062000313565b5090565b5b808211156200032e57600081600090555060010162000314565b5090565b600060028204905060018216806200034b57607f821691505b6020821081141562000362576200036162000368565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b613c6980620003a76000396000f3fe6080604052600436106102515760003560e01c806377895ed411610139578063b88d4fde116100b6578063dab5f3401161007a578063dab5f34014610832578063e985e9c51461085b578063ebf0c71714610898578063f19e75d4146108c3578063f2fde38b146108ec578063f8c1c1861461091557610251565b8063b88d4fde1461075c578063ba41b0c614610785578063c87b56dd146107a1578063cdab2f9b146107de578063d8befca41461080957610251565b806395d89b41116100fd57806395d89b411461069d5780639f99bfdf146106c8578063a035b1fe146106df578063a0eddf7e1461070a578063a22cb4651461073357610251565b806377895ed4146105cc5780638ba4cc3c146105f55780638c20761f1461061e5780638da5cb5b1461064957806391b7f5ed1461067457610251565b80633b4c4b25116101d25780635be57270116101965780635be57270146104bc5780636352211e146104d35780636836b970146105105780636ac5db191461054d57806370a0823114610578578063715018a6146105b557610251565b80633b4c4b25146103ff5780633ccfd60b146104285780634146ed0a1461043f57806342842e0e1461046a5780635517a4691461049357610251565b806318160ddd1161021957806318160ddd1461034f5780631fe9eabc1461037a57806323b872dd146103a3578063297c9c22146103cc5780632db11544146103e357610251565b806301ffc9a714610256578063047fc9aa1461029357806306fdde03146102be578063081812fc146102e9578063095ea7b314610326575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190612def565b610940565b60405161028a9190613247565b60405180910390f35b34801561029f57600080fd5b506102a86109d2565b6040516102b591906133df565b60405180910390f35b3480156102ca57600080fd5b506102d36109d8565b6040516102e0919061327d565b60405180910390f35b3480156102f557600080fd5b50610310600480360381019061030b9190612e92565b610a6a565b60405161031d91906131e0565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190612cc1565b610ae6565b005b34801561035b57600080fd5b50610364610c27565b60405161037191906133df565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c9190612e92565b610c3e565b005b3480156103af57600080fd5b506103ca60048036038101906103c59190612bab565b610c50565b005b3480156103d857600080fd5b506103e1610f75565b005b6103fd60048036038101906103f89190612e92565b610fa9565b005b34801561040b57600080fd5b5061042660048036038101906104219190612e92565b61114e565b005b34801561043457600080fd5b5061043d611160565b005b34801561044b57600080fd5b506104546111a8565b6040516104619190613247565b60405180910390f35b34801561047657600080fd5b50610491600480360381019061048c9190612bab565b6111bb565b005b34801561049f57600080fd5b506104ba60048036038101906104b59190612d4a565b6111db565b005b3480156104c857600080fd5b506104d161127f565b005b3480156104df57600080fd5b506104fa60048036038101906104f59190612e92565b6112b3565b60405161050791906131e0565b60405180910390f35b34801561051c57600080fd5b5061053760048036038101906105329190612b3e565b6112c5565b60405161054491906133df565b60405180910390f35b34801561055957600080fd5b506105626112dd565b60405161056f91906133df565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190612b3e565b6112e3565b6040516105ac91906133df565b60405180910390f35b3480156105c157600080fd5b506105ca61139c565b005b3480156105d857600080fd5b506105f360048036038101906105ee9190612d01565b6113b0565b005b34801561060157600080fd5b5061061c60048036038101906106179190612cc1565b61143a565b005b34801561062a57600080fd5b506106336114ae565b604051610640919061327d565b60405180910390f35b34801561065557600080fd5b5061065e61153c565b60405161066b91906131e0565b60405180910390f35b34801561068057600080fd5b5061069b60048036038101906106969190612e92565b611566565b005b3480156106a957600080fd5b506106b2611578565b6040516106bf919061327d565b60405180910390f35b3480156106d457600080fd5b506106dd61160a565b005b3480156106eb57600080fd5b506106f461163e565b60405161070191906133df565b60405180910390f35b34801561071657600080fd5b50610731600480360381019061072c9190612e49565b611644565b005b34801561073f57600080fd5b5061075a60048036038101906107559190612c81565b611666565b005b34801561076857600080fd5b50610783600480360381019061077e9190612bfe565b6117de565b005b61079f600480360381019061079a9190612ebf565b611851565b005b3480156107ad57600080fd5b506107c860048036038101906107c39190612e92565b611a5b565b6040516107d5919061327d565b60405180910390f35b3480156107ea57600080fd5b506107f3611a95565b6040516108009190613247565b60405180910390f35b34801561081557600080fd5b50610830600480360381019061082b9190612e92565b611aa8565b005b34801561083e57600080fd5b5061085960048036038101906108549190612dc2565b611c79565b005b34801561086757600080fd5b50610882600480360381019061087d9190612b6b565b611c8b565b60405161088f9190613247565b60405180910390f35b3480156108a457600080fd5b506108ad611d1f565b6040516108ba9190613262565b60405180910390f35b3480156108cf57600080fd5b506108ea60048036038101906108e59190612e92565b611d25565b005b3480156108f857600080fd5b50610913600480360381019061090e9190612b3e565b611d98565b005b34801561092157600080fd5b5061092a611e1c565b6040516109379190613247565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109cb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60095481565b6060600280546109e7906136f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a13906136f1565b8015610a605780601f10610a3557610100808354040283529160200191610a60565b820191906000526020600020905b815481529060010190602001808311610a4357829003601f168201915b5050505050905090565b6000610a7582611e2f565b610aab576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610af1826112b3565b90508073ffffffffffffffffffffffffffffffffffffffff16610b12611e8e565b73ffffffffffffffffffffffffffffffffffffffff1614610b7557610b3e81610b39611e8e565b611c8b565b610b74576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610c31611e96565b6001546000540303905090565b610c46611e9b565b80600b8190555050565b6000610c5b82611f19565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cc2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610cce84611fe7565b91509150610ce48187610cdf611e8e565b612009565b610d3057610cf986610cf4611e8e565b611c8b565b610d2f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610d97576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610da4868686600161204d565b8015610daf57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e7d85610e59888887612053565b7c02000000000000000000000000000000000000000000000000000000001761207b565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f05576000600185019050600060046000838152602001908152602001600020541415610f03576000548114610f02578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f6d86868660016120a6565b505050505050565b610f7d611e9b565b600860149054906101000a900460ff1615600860146101000a81548160ff021916908315150217905550565b600860149054906101000a900460ff16610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef9061333f565b60405180910390fd5b600860159054906101000a900460ff1615611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f906132bf565b60405180910390fd5b600b5481111561108d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611084906132df565b60405180910390fd5b6009546110aa8261109c610c27565b6120ac90919063ffffffff16565b11156110eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e29061339f565b60405180910390fd5b3461110182600a546120c290919063ffffffff16565b14611141576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111389061337f565b60405180910390fd5b61114b33826120d8565b50565b611156611e9b565b8060098190555050565b611168611e9b565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506111a657600080fd5b565b600860159054906101000a900460ff1681565b6111d6838383604051806020016040528060008152506117de565b505050565b6111e3611e9b565b60005b825181101561127a578181815181106112025761120161387f565b5b6020026020010151600d60008584815181106112215761122061387f565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061127290613754565b9150506111e6565b505050565b611287611e9b565b600860159054906101000a900460ff1615600860156101000a81548160ff021916908315150217905550565b60006112be82611f19565b9050919050565b600d6020528060005260406000206000915090505481565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561134b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113a4611e9b565b6113ae60006122ac565b565b6113b8611e9b565b60005b8151811015611436576000600d60008484815181106113dd576113dc61387f565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061142e90613754565b9150506113bb565b5050565b611442611e9b565b60095461145f82611451610c27565b6120ac90919063ffffffff16565b11156114a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114979061339f565b60405180910390fd5b6114aa82826120d8565b5050565b600c80546114bb906136f1565b80601f01602080910402602001604051908101604052809291908181526020018280546114e7906136f1565b80156115345780601f1061150957610100808354040283529160200191611534565b820191906000526020600020905b81548152906001019060200180831161151757829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61156e611e9b565b80600a8190555050565b606060038054611587906136f1565b80601f01602080910402602001604051908101604052809291908181526020018280546115b3906136f1565b80156116005780601f106115d557610100808354040283529160200191611600565b820191906000526020600020905b8154815290600101906020018083116115e357829003601f168201915b5050505050905090565b611612611e9b565b600860169054906101000a900460ff1615600860166101000a81548160ff021916908315150217905550565b600a5481565b61164c611e9b565b80600c90805190602001906116629291906127ab565b5050565b61166e611e8e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116d3576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006116e0611e8e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661178d611e8e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117d29190613247565b60405180910390a35050565b6117e9848484610c50565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461184b5761181484848484612372565b61184a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6118c5828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e54336040516020016118aa9190613196565b604051602081830303815290604052805190602001206124d2565b611904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fb906132ff565b60405180910390fd5b600860149054906101000a900460ff16611953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194a9061333f565b60405180910390fd5b600b54831115611998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198f906132df565b60405180910390fd5b6009546119b5846119a7610c27565b6120ac90919063ffffffff16565b11156119f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ed9061339f565b60405180910390fd5b34611a0c84600a546120c290919063ffffffff16565b14611a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a439061337f565b60405180910390fd5b611a5633846120d8565b505050565b6060611a656124e9565b611a6e8361257b565b604051602001611a7f9291906131b1565b6040516020818303038152906040529050919050565b600860169054906101000a900460ff1681565b80600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b219061335f565b60405180910390fd5b600860169054906101000a900460ff16611b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b70906133bf565b60405180910390fd5b600954611b9682611b88610c27565b6120ac90919063ffffffff16565b1115611bd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bce9061339f565b60405180910390fd5b611c2981600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126dc90919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611c7633826120d8565b50565b611c81611e9b565b80600e8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e5481565b611d2d611e9b565b600954611d4a82611d3c610c27565b6120ac90919063ffffffff16565b1115611d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d829061339f565b60405180910390fd5b611d9533826120d8565b50565b611da0611e9b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e079061329f565b60405180910390fd5b611e19816122ac565b50565b600860149054906101000a900460ff1681565b600081611e3a611e96565b11158015611e49575060005482105b8015611e87575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b611ea36126f2565b73ffffffffffffffffffffffffffffffffffffffff16611ec161153c565b73ffffffffffffffffffffffffffffffffffffffff1614611f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0e9061331f565b60405180910390fd5b565b60008082905080611f28611e96565b11611fb057600054811015611faf5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611fad575b6000811415611fa3576004600083600190039350838152602001908152602001600020549050611f78565b8092505050611fe2565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861206a8686846126fa565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600081836120ba919061351c565b905092915050565b600081836120d091906135a3565b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612145576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612180576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61218d600084838561204d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612204836121f56000866000612053565b6121fe85612703565b1761207b565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612228578060008190555050506122a760008483856120a6565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612398611e8e565b8786866040518563ffffffff1660e01b81526004016123ba94939291906131fb565b602060405180830381600087803b1580156123d457600080fd5b505af192505050801561240557506040513d601f19601f820116820180604052508101906124029190612e1c565b60015b61247f573d8060008114612435576040519150601f19603f3d011682016040523d82523d6000602084013e61243a565b606091505b50600081511415612477576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826124df8584612713565b1490509392505050565b6060600c80546124f8906136f1565b80601f0160208091040260200160405190810160405280929190818152602001828054612524906136f1565b80156125715780601f1061254657610100808354040283529160200191612571565b820191906000526020600020905b81548152906001019060200180831161255457829003601f168201915b5050505050905090565b606060008214156125c3576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506126d7565b600082905060005b600082146125f55780806125de90613754565b915050600a826125ee9190613572565b91506125cb565b60008167ffffffffffffffff811115612611576126106138ae565b5b6040519080825280601f01601f1916602001820160405280156126435781602001600182028036833780820191505090505b5090505b600085146126d05760018261265c91906135fd565b9150600a8561266b91906137c1565b6030612677919061351c565b60f81b81838151811061268d5761268c61387f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126c99190613572565b9450612647565b8093505050505b919050565b600081836126ea91906135fd565b905092915050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b60008082905060005b845181101561275e576127498286838151811061273c5761273b61387f565b5b6020026020010151612769565b9150808061275690613754565b91505061271c565b508091505092915050565b60008183106127815761277c8284612794565b61278c565b61278b8383612794565b5b905092915050565b600082600052816020526040600020905092915050565b8280546127b7906136f1565b90600052602060002090601f0160209004810192826127d95760008555612820565b82601f106127f257805160ff1916838001178555612820565b82800160010185558215612820579182015b8281111561281f578251825591602001919060010190612804565b5b50905061282d9190612831565b5090565b5b8082111561284a576000816000905550600101612832565b5090565b600061286161285c8461341f565b6133fa565b90508083825260208201905082856020860282011115612884576128836138e7565b5b60005b858110156128b4578161289a88826129b2565b845260208401935060208301925050600181019050612887565b5050509392505050565b60006128d16128cc8461344b565b6133fa565b905080838252602082019050828560208602820111156128f4576128f36138e7565b5b60005b85811015612924578161290a8882612b29565b8452602084019350602083019250506001810190506128f7565b5050509392505050565b600061294161293c84613477565b6133fa565b90508281526020810184848401111561295d5761295c6138ec565b5b6129688482856136af565b509392505050565b600061298361297e846134a8565b6133fa565b90508281526020810184848401111561299f5761299e6138ec565b5b6129aa8482856136af565b509392505050565b6000813590506129c181613bc0565b92915050565b600082601f8301126129dc576129db6138e2565b5b81356129ec84826020860161284e565b91505092915050565b60008083601f840112612a0b57612a0a6138e2565b5b8235905067ffffffffffffffff811115612a2857612a276138dd565b5b602083019150836020820283011115612a4457612a436138e7565b5b9250929050565b600082601f830112612a6057612a5f6138e2565b5b8135612a708482602086016128be565b91505092915050565b600081359050612a8881613bd7565b92915050565b600081359050612a9d81613bee565b92915050565b600081359050612ab281613c05565b92915050565b600081519050612ac781613c05565b92915050565b600082601f830112612ae257612ae16138e2565b5b8135612af284826020860161292e565b91505092915050565b600082601f830112612b1057612b0f6138e2565b5b8135612b20848260208601612970565b91505092915050565b600081359050612b3881613c1c565b92915050565b600060208284031215612b5457612b536138f6565b5b6000612b62848285016129b2565b91505092915050565b60008060408385031215612b8257612b816138f6565b5b6000612b90858286016129b2565b9250506020612ba1858286016129b2565b9150509250929050565b600080600060608486031215612bc457612bc36138f6565b5b6000612bd2868287016129b2565b9350506020612be3868287016129b2565b9250506040612bf486828701612b29565b9150509250925092565b60008060008060808587031215612c1857612c176138f6565b5b6000612c26878288016129b2565b9450506020612c37878288016129b2565b9350506040612c4887828801612b29565b925050606085013567ffffffffffffffff811115612c6957612c686138f1565b5b612c7587828801612acd565b91505092959194509250565b60008060408385031215612c9857612c976138f6565b5b6000612ca6858286016129b2565b9250506020612cb785828601612a79565b9150509250929050565b60008060408385031215612cd857612cd76138f6565b5b6000612ce6858286016129b2565b9250506020612cf785828601612b29565b9150509250929050565b600060208284031215612d1757612d166138f6565b5b600082013567ffffffffffffffff811115612d3557612d346138f1565b5b612d41848285016129c7565b91505092915050565b60008060408385031215612d6157612d606138f6565b5b600083013567ffffffffffffffff811115612d7f57612d7e6138f1565b5b612d8b858286016129c7565b925050602083013567ffffffffffffffff811115612dac57612dab6138f1565b5b612db885828601612a4b565b9150509250929050565b600060208284031215612dd857612dd76138f6565b5b6000612de684828501612a8e565b91505092915050565b600060208284031215612e0557612e046138f6565b5b6000612e1384828501612aa3565b91505092915050565b600060208284031215612e3257612e316138f6565b5b6000612e4084828501612ab8565b91505092915050565b600060208284031215612e5f57612e5e6138f6565b5b600082013567ffffffffffffffff811115612e7d57612e7c6138f1565b5b612e8984828501612afb565b91505092915050565b600060208284031215612ea857612ea76138f6565b5b6000612eb684828501612b29565b91505092915050565b600080600060408486031215612ed857612ed76138f6565b5b6000612ee686828701612b29565b935050602084013567ffffffffffffffff811115612f0757612f066138f1565b5b612f13868287016129f5565b92509250509250925092565b612f2881613631565b82525050565b612f3f612f3a82613631565b61379d565b82525050565b612f4e81613643565b82525050565b612f5d8161364f565b82525050565b6000612f6e826134d9565b612f7881856134ef565b9350612f888185602086016136be565b612f91816138fb565b840191505092915050565b6000612fa7826134e4565b612fb18185613500565b9350612fc18185602086016136be565b612fca816138fb565b840191505092915050565b6000612fe0826134e4565b612fea8185613511565b9350612ffa8185602086016136be565b80840191505092915050565b6000613013602683613500565b915061301e82613919565b604082019050919050565b6000613036601d83613500565b915061304182613968565b602082019050919050565b6000613059602a83613500565b915061306482613991565b604082019050919050565b600061307c601783613500565b9150613087826139e0565b602082019050919050565b600061309f600583613511565b91506130aa82613a09565b600582019050919050565b60006130c2602083613500565b91506130cd82613a32565b602082019050919050565b60006130e5602283613500565b91506130f082613a5b565b604082019050919050565b6000613108603d83613500565b915061311382613aaa565b604082019050919050565b600061312b601e83613500565b915061313682613af9565b602082019050919050565b600061314e603183613500565b915061315982613b22565b604082019050919050565b6000613171602683613500565b915061317c82613b71565b604082019050919050565b613190816136a5565b82525050565b60006131a28284612f2e565b60148201915081905092915050565b60006131bd8285612fd5565b91506131c98284612fd5565b91506131d482613092565b91508190509392505050565b60006020820190506131f56000830184612f1f565b92915050565b60006080820190506132106000830187612f1f565b61321d6020830186612f1f565b61322a6040830185613187565b818103606083015261323c8184612f63565b905095945050505050565b600060208201905061325c6000830184612f45565b92915050565b60006020820190506132776000830184612f54565b92915050565b600060208201905081810360008301526132978184612f9c565b905092915050565b600060208201905081810360008301526132b881613006565b9050919050565b600060208201905081810360008301526132d881613029565b9050919050565b600060208201905081810360008301526132f88161304c565b9050919050565b600060208201905081810360008301526133188161306f565b9050919050565b60006020820190508181036000830152613338816130b5565b9050919050565b60006020820190508181036000830152613358816130d8565b9050919050565b60006020820190508181036000830152613378816130fb565b9050919050565b600060208201905081810360008301526133988161311e565b9050919050565b600060208201905081810360008301526133b881613141565b9050919050565b600060208201905081810360008301526133d881613164565b9050919050565b60006020820190506133f46000830184613187565b92915050565b6000613404613415565b90506134108282613723565b919050565b6000604051905090565b600067ffffffffffffffff82111561343a576134396138ae565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613466576134656138ae565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613492576134916138ae565b5b61349b826138fb565b9050602081019050919050565b600067ffffffffffffffff8211156134c3576134c26138ae565b5b6134cc826138fb565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613527826136a5565b9150613532836136a5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613567576135666137f2565b5b828201905092915050565b600061357d826136a5565b9150613588836136a5565b92508261359857613597613821565b5b828204905092915050565b60006135ae826136a5565b91506135b9836136a5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135f2576135f16137f2565b5b828202905092915050565b6000613608826136a5565b9150613613836136a5565b925082821015613626576136256137f2565b5b828203905092915050565b600061363c82613685565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156136dc5780820151818401526020810190506136c1565b838111156136eb576000848401525b50505050565b6000600282049050600182168061370957607f821691505b6020821081141561371d5761371c613850565b5b50919050565b61372c826138fb565b810181811067ffffffffffffffff8211171561374b5761374a6138ae565b5b80604052505050565b600061375f826136a5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613792576137916137f2565b5b600182019050919050565b60006137a8826137af565b9050919050565b60006137ba8261390c565b9050919050565b60006137cc826136a5565b91506137d7836136a5565b9250826137e7576137e6613821565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206e6f742061637469766520796574000000600082015250565b7f526571756573746564207175616e746974792065786365656473206d6178696d60008201527f756d20616c6c6f77656400000000000000000000000000000000000000000000602082015250565b7f596f7520617265206e6f742077686974656c6973746564000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520506172726f7420426f73732073616c65206973206e6f74206163746960008201527f7665000000000000000000000000000000000000000000000000000000000000602082015250565b7f596f7520617265206e6f7420616c6c6f77656420746f206d696e74207468652060008201527f726571756573746564207175616e74697479206f6620746f6b656e732e000000602082015250565b7f457468657220616d6f756e742073656e7420697320696e636f72726563740000600082015250565b7f546865207175616e74697479206f6620746f6b656e732072657175657374656460008201527f206973206e6f7420617661696c61626c65000000000000000000000000000000602082015250565b7f54686520506172726f7420426f7373206769766561776179206973206e6f742060008201527f6163746976650000000000000000000000000000000000000000000000000000602082015250565b613bc981613631565b8114613bd457600080fd5b50565b613be081613643565b8114613beb57600080fd5b50565b613bf78161364f565b8114613c0257600080fd5b50565b613c0e81613659565b8114613c1957600080fd5b50565b613c25816136a5565b8114613c3057600080fd5b5056fea264697066735822122077c990145869cae3f544501afa7b47ccbe9eb03fee01f1128b574f4a8c79faff64736f6c63430008070033697066733a2f2f516d5a75434872654c6b78394b65457174695a624d36787951673278547748767148735052366a626b5a596242392f

Deployed Bytecode

0x6080604052600436106102515760003560e01c806377895ed411610139578063b88d4fde116100b6578063dab5f3401161007a578063dab5f34014610832578063e985e9c51461085b578063ebf0c71714610898578063f19e75d4146108c3578063f2fde38b146108ec578063f8c1c1861461091557610251565b8063b88d4fde1461075c578063ba41b0c614610785578063c87b56dd146107a1578063cdab2f9b146107de578063d8befca41461080957610251565b806395d89b41116100fd57806395d89b411461069d5780639f99bfdf146106c8578063a035b1fe146106df578063a0eddf7e1461070a578063a22cb4651461073357610251565b806377895ed4146105cc5780638ba4cc3c146105f55780638c20761f1461061e5780638da5cb5b1461064957806391b7f5ed1461067457610251565b80633b4c4b25116101d25780635be57270116101965780635be57270146104bc5780636352211e146104d35780636836b970146105105780636ac5db191461054d57806370a0823114610578578063715018a6146105b557610251565b80633b4c4b25146103ff5780633ccfd60b146104285780634146ed0a1461043f57806342842e0e1461046a5780635517a4691461049357610251565b806318160ddd1161021957806318160ddd1461034f5780631fe9eabc1461037a57806323b872dd146103a3578063297c9c22146103cc5780632db11544146103e357610251565b806301ffc9a714610256578063047fc9aa1461029357806306fdde03146102be578063081812fc146102e9578063095ea7b314610326575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190612def565b610940565b60405161028a9190613247565b60405180910390f35b34801561029f57600080fd5b506102a86109d2565b6040516102b591906133df565b60405180910390f35b3480156102ca57600080fd5b506102d36109d8565b6040516102e0919061327d565b60405180910390f35b3480156102f557600080fd5b50610310600480360381019061030b9190612e92565b610a6a565b60405161031d91906131e0565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190612cc1565b610ae6565b005b34801561035b57600080fd5b50610364610c27565b60405161037191906133df565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c9190612e92565b610c3e565b005b3480156103af57600080fd5b506103ca60048036038101906103c59190612bab565b610c50565b005b3480156103d857600080fd5b506103e1610f75565b005b6103fd60048036038101906103f89190612e92565b610fa9565b005b34801561040b57600080fd5b5061042660048036038101906104219190612e92565b61114e565b005b34801561043457600080fd5b5061043d611160565b005b34801561044b57600080fd5b506104546111a8565b6040516104619190613247565b60405180910390f35b34801561047657600080fd5b50610491600480360381019061048c9190612bab565b6111bb565b005b34801561049f57600080fd5b506104ba60048036038101906104b59190612d4a565b6111db565b005b3480156104c857600080fd5b506104d161127f565b005b3480156104df57600080fd5b506104fa60048036038101906104f59190612e92565b6112b3565b60405161050791906131e0565b60405180910390f35b34801561051c57600080fd5b5061053760048036038101906105329190612b3e565b6112c5565b60405161054491906133df565b60405180910390f35b34801561055957600080fd5b506105626112dd565b60405161056f91906133df565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190612b3e565b6112e3565b6040516105ac91906133df565b60405180910390f35b3480156105c157600080fd5b506105ca61139c565b005b3480156105d857600080fd5b506105f360048036038101906105ee9190612d01565b6113b0565b005b34801561060157600080fd5b5061061c60048036038101906106179190612cc1565b61143a565b005b34801561062a57600080fd5b506106336114ae565b604051610640919061327d565b60405180910390f35b34801561065557600080fd5b5061065e61153c565b60405161066b91906131e0565b60405180910390f35b34801561068057600080fd5b5061069b60048036038101906106969190612e92565b611566565b005b3480156106a957600080fd5b506106b2611578565b6040516106bf919061327d565b60405180910390f35b3480156106d457600080fd5b506106dd61160a565b005b3480156106eb57600080fd5b506106f461163e565b60405161070191906133df565b60405180910390f35b34801561071657600080fd5b50610731600480360381019061072c9190612e49565b611644565b005b34801561073f57600080fd5b5061075a60048036038101906107559190612c81565b611666565b005b34801561076857600080fd5b50610783600480360381019061077e9190612bfe565b6117de565b005b61079f600480360381019061079a9190612ebf565b611851565b005b3480156107ad57600080fd5b506107c860048036038101906107c39190612e92565b611a5b565b6040516107d5919061327d565b60405180910390f35b3480156107ea57600080fd5b506107f3611a95565b6040516108009190613247565b60405180910390f35b34801561081557600080fd5b50610830600480360381019061082b9190612e92565b611aa8565b005b34801561083e57600080fd5b5061085960048036038101906108549190612dc2565b611c79565b005b34801561086757600080fd5b50610882600480360381019061087d9190612b6b565b611c8b565b60405161088f9190613247565b60405180910390f35b3480156108a457600080fd5b506108ad611d1f565b6040516108ba9190613262565b60405180910390f35b3480156108cf57600080fd5b506108ea60048036038101906108e59190612e92565b611d25565b005b3480156108f857600080fd5b50610913600480360381019061090e9190612b3e565b611d98565b005b34801561092157600080fd5b5061092a611e1c565b6040516109379190613247565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109cb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60095481565b6060600280546109e7906136f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a13906136f1565b8015610a605780601f10610a3557610100808354040283529160200191610a60565b820191906000526020600020905b815481529060010190602001808311610a4357829003601f168201915b5050505050905090565b6000610a7582611e2f565b610aab576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610af1826112b3565b90508073ffffffffffffffffffffffffffffffffffffffff16610b12611e8e565b73ffffffffffffffffffffffffffffffffffffffff1614610b7557610b3e81610b39611e8e565b611c8b565b610b74576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610c31611e96565b6001546000540303905090565b610c46611e9b565b80600b8190555050565b6000610c5b82611f19565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cc2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610cce84611fe7565b91509150610ce48187610cdf611e8e565b612009565b610d3057610cf986610cf4611e8e565b611c8b565b610d2f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610d97576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610da4868686600161204d565b8015610daf57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e7d85610e59888887612053565b7c02000000000000000000000000000000000000000000000000000000001761207b565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f05576000600185019050600060046000838152602001908152602001600020541415610f03576000548114610f02578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f6d86868660016120a6565b505050505050565b610f7d611e9b565b600860149054906101000a900460ff1615600860146101000a81548160ff021916908315150217905550565b600860149054906101000a900460ff16610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef9061333f565b60405180910390fd5b600860159054906101000a900460ff1615611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f906132bf565b60405180910390fd5b600b5481111561108d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611084906132df565b60405180910390fd5b6009546110aa8261109c610c27565b6120ac90919063ffffffff16565b11156110eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e29061339f565b60405180910390fd5b3461110182600a546120c290919063ffffffff16565b14611141576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111389061337f565b60405180910390fd5b61114b33826120d8565b50565b611156611e9b565b8060098190555050565b611168611e9b565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506111a657600080fd5b565b600860159054906101000a900460ff1681565b6111d6838383604051806020016040528060008152506117de565b505050565b6111e3611e9b565b60005b825181101561127a578181815181106112025761120161387f565b5b6020026020010151600d60008584815181106112215761122061387f565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061127290613754565b9150506111e6565b505050565b611287611e9b565b600860159054906101000a900460ff1615600860156101000a81548160ff021916908315150217905550565b60006112be82611f19565b9050919050565b600d6020528060005260406000206000915090505481565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561134b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113a4611e9b565b6113ae60006122ac565b565b6113b8611e9b565b60005b8151811015611436576000600d60008484815181106113dd576113dc61387f565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061142e90613754565b9150506113bb565b5050565b611442611e9b565b60095461145f82611451610c27565b6120ac90919063ffffffff16565b11156114a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114979061339f565b60405180910390fd5b6114aa82826120d8565b5050565b600c80546114bb906136f1565b80601f01602080910402602001604051908101604052809291908181526020018280546114e7906136f1565b80156115345780601f1061150957610100808354040283529160200191611534565b820191906000526020600020905b81548152906001019060200180831161151757829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61156e611e9b565b80600a8190555050565b606060038054611587906136f1565b80601f01602080910402602001604051908101604052809291908181526020018280546115b3906136f1565b80156116005780601f106115d557610100808354040283529160200191611600565b820191906000526020600020905b8154815290600101906020018083116115e357829003601f168201915b5050505050905090565b611612611e9b565b600860169054906101000a900460ff1615600860166101000a81548160ff021916908315150217905550565b600a5481565b61164c611e9b565b80600c90805190602001906116629291906127ab565b5050565b61166e611e8e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116d3576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006116e0611e8e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661178d611e8e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117d29190613247565b60405180910390a35050565b6117e9848484610c50565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461184b5761181484848484612372565b61184a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6118c5828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e54336040516020016118aa9190613196565b604051602081830303815290604052805190602001206124d2565b611904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fb906132ff565b60405180910390fd5b600860149054906101000a900460ff16611953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194a9061333f565b60405180910390fd5b600b54831115611998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198f906132df565b60405180910390fd5b6009546119b5846119a7610c27565b6120ac90919063ffffffff16565b11156119f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ed9061339f565b60405180910390fd5b34611a0c84600a546120c290919063ffffffff16565b14611a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a439061337f565b60405180910390fd5b611a5633846120d8565b505050565b6060611a656124e9565b611a6e8361257b565b604051602001611a7f9291906131b1565b6040516020818303038152906040529050919050565b600860169054906101000a900460ff1681565b80600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b219061335f565b60405180910390fd5b600860169054906101000a900460ff16611b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b70906133bf565b60405180910390fd5b600954611b9682611b88610c27565b6120ac90919063ffffffff16565b1115611bd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bce9061339f565b60405180910390fd5b611c2981600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126dc90919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611c7633826120d8565b50565b611c81611e9b565b80600e8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e5481565b611d2d611e9b565b600954611d4a82611d3c610c27565b6120ac90919063ffffffff16565b1115611d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d829061339f565b60405180910390fd5b611d9533826120d8565b50565b611da0611e9b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e079061329f565b60405180910390fd5b611e19816122ac565b50565b600860149054906101000a900460ff1681565b600081611e3a611e96565b11158015611e49575060005482105b8015611e87575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b611ea36126f2565b73ffffffffffffffffffffffffffffffffffffffff16611ec161153c565b73ffffffffffffffffffffffffffffffffffffffff1614611f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0e9061331f565b60405180910390fd5b565b60008082905080611f28611e96565b11611fb057600054811015611faf5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611fad575b6000811415611fa3576004600083600190039350838152602001908152602001600020549050611f78565b8092505050611fe2565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861206a8686846126fa565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600081836120ba919061351c565b905092915050565b600081836120d091906135a3565b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612145576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612180576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61218d600084838561204d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612204836121f56000866000612053565b6121fe85612703565b1761207b565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612228578060008190555050506122a760008483856120a6565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612398611e8e565b8786866040518563ffffffff1660e01b81526004016123ba94939291906131fb565b602060405180830381600087803b1580156123d457600080fd5b505af192505050801561240557506040513d601f19601f820116820180604052508101906124029190612e1c565b60015b61247f573d8060008114612435576040519150601f19603f3d011682016040523d82523d6000602084013e61243a565b606091505b50600081511415612477576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826124df8584612713565b1490509392505050565b6060600c80546124f8906136f1565b80601f0160208091040260200160405190810160405280929190818152602001828054612524906136f1565b80156125715780601f1061254657610100808354040283529160200191612571565b820191906000526020600020905b81548152906001019060200180831161255457829003601f168201915b5050505050905090565b606060008214156125c3576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506126d7565b600082905060005b600082146125f55780806125de90613754565b915050600a826125ee9190613572565b91506125cb565b60008167ffffffffffffffff811115612611576126106138ae565b5b6040519080825280601f01601f1916602001820160405280156126435781602001600182028036833780820191505090505b5090505b600085146126d05760018261265c91906135fd565b9150600a8561266b91906137c1565b6030612677919061351c565b60f81b81838151811061268d5761268c61387f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126c99190613572565b9450612647565b8093505050505b919050565b600081836126ea91906135fd565b905092915050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b60008082905060005b845181101561275e576127498286838151811061273c5761273b61387f565b5b6020026020010151612769565b9150808061275690613754565b91505061271c565b508091505092915050565b60008183106127815761277c8284612794565b61278c565b61278b8383612794565b5b905092915050565b600082600052816020526040600020905092915050565b8280546127b7906136f1565b90600052602060002090601f0160209004810192826127d95760008555612820565b82601f106127f257805160ff1916838001178555612820565b82800160010185558215612820579182015b8281111561281f578251825591602001919060010190612804565b5b50905061282d9190612831565b5090565b5b8082111561284a576000816000905550600101612832565b5090565b600061286161285c8461341f565b6133fa565b90508083825260208201905082856020860282011115612884576128836138e7565b5b60005b858110156128b4578161289a88826129b2565b845260208401935060208301925050600181019050612887565b5050509392505050565b60006128d16128cc8461344b565b6133fa565b905080838252602082019050828560208602820111156128f4576128f36138e7565b5b60005b85811015612924578161290a8882612b29565b8452602084019350602083019250506001810190506128f7565b5050509392505050565b600061294161293c84613477565b6133fa565b90508281526020810184848401111561295d5761295c6138ec565b5b6129688482856136af565b509392505050565b600061298361297e846134a8565b6133fa565b90508281526020810184848401111561299f5761299e6138ec565b5b6129aa8482856136af565b509392505050565b6000813590506129c181613bc0565b92915050565b600082601f8301126129dc576129db6138e2565b5b81356129ec84826020860161284e565b91505092915050565b60008083601f840112612a0b57612a0a6138e2565b5b8235905067ffffffffffffffff811115612a2857612a276138dd565b5b602083019150836020820283011115612a4457612a436138e7565b5b9250929050565b600082601f830112612a6057612a5f6138e2565b5b8135612a708482602086016128be565b91505092915050565b600081359050612a8881613bd7565b92915050565b600081359050612a9d81613bee565b92915050565b600081359050612ab281613c05565b92915050565b600081519050612ac781613c05565b92915050565b600082601f830112612ae257612ae16138e2565b5b8135612af284826020860161292e565b91505092915050565b600082601f830112612b1057612b0f6138e2565b5b8135612b20848260208601612970565b91505092915050565b600081359050612b3881613c1c565b92915050565b600060208284031215612b5457612b536138f6565b5b6000612b62848285016129b2565b91505092915050565b60008060408385031215612b8257612b816138f6565b5b6000612b90858286016129b2565b9250506020612ba1858286016129b2565b9150509250929050565b600080600060608486031215612bc457612bc36138f6565b5b6000612bd2868287016129b2565b9350506020612be3868287016129b2565b9250506040612bf486828701612b29565b9150509250925092565b60008060008060808587031215612c1857612c176138f6565b5b6000612c26878288016129b2565b9450506020612c37878288016129b2565b9350506040612c4887828801612b29565b925050606085013567ffffffffffffffff811115612c6957612c686138f1565b5b612c7587828801612acd565b91505092959194509250565b60008060408385031215612c9857612c976138f6565b5b6000612ca6858286016129b2565b9250506020612cb785828601612a79565b9150509250929050565b60008060408385031215612cd857612cd76138f6565b5b6000612ce6858286016129b2565b9250506020612cf785828601612b29565b9150509250929050565b600060208284031215612d1757612d166138f6565b5b600082013567ffffffffffffffff811115612d3557612d346138f1565b5b612d41848285016129c7565b91505092915050565b60008060408385031215612d6157612d606138f6565b5b600083013567ffffffffffffffff811115612d7f57612d7e6138f1565b5b612d8b858286016129c7565b925050602083013567ffffffffffffffff811115612dac57612dab6138f1565b5b612db885828601612a4b565b9150509250929050565b600060208284031215612dd857612dd76138f6565b5b6000612de684828501612a8e565b91505092915050565b600060208284031215612e0557612e046138f6565b5b6000612e1384828501612aa3565b91505092915050565b600060208284031215612e3257612e316138f6565b5b6000612e4084828501612ab8565b91505092915050565b600060208284031215612e5f57612e5e6138f6565b5b600082013567ffffffffffffffff811115612e7d57612e7c6138f1565b5b612e8984828501612afb565b91505092915050565b600060208284031215612ea857612ea76138f6565b5b6000612eb684828501612b29565b91505092915050565b600080600060408486031215612ed857612ed76138f6565b5b6000612ee686828701612b29565b935050602084013567ffffffffffffffff811115612f0757612f066138f1565b5b612f13868287016129f5565b92509250509250925092565b612f2881613631565b82525050565b612f3f612f3a82613631565b61379d565b82525050565b612f4e81613643565b82525050565b612f5d8161364f565b82525050565b6000612f6e826134d9565b612f7881856134ef565b9350612f888185602086016136be565b612f91816138fb565b840191505092915050565b6000612fa7826134e4565b612fb18185613500565b9350612fc18185602086016136be565b612fca816138fb565b840191505092915050565b6000612fe0826134e4565b612fea8185613511565b9350612ffa8185602086016136be565b80840191505092915050565b6000613013602683613500565b915061301e82613919565b604082019050919050565b6000613036601d83613500565b915061304182613968565b602082019050919050565b6000613059602a83613500565b915061306482613991565b604082019050919050565b600061307c601783613500565b9150613087826139e0565b602082019050919050565b600061309f600583613511565b91506130aa82613a09565b600582019050919050565b60006130c2602083613500565b91506130cd82613a32565b602082019050919050565b60006130e5602283613500565b91506130f082613a5b565b604082019050919050565b6000613108603d83613500565b915061311382613aaa565b604082019050919050565b600061312b601e83613500565b915061313682613af9565b602082019050919050565b600061314e603183613500565b915061315982613b22565b604082019050919050565b6000613171602683613500565b915061317c82613b71565b604082019050919050565b613190816136a5565b82525050565b60006131a28284612f2e565b60148201915081905092915050565b60006131bd8285612fd5565b91506131c98284612fd5565b91506131d482613092565b91508190509392505050565b60006020820190506131f56000830184612f1f565b92915050565b60006080820190506132106000830187612f1f565b61321d6020830186612f1f565b61322a6040830185613187565b818103606083015261323c8184612f63565b905095945050505050565b600060208201905061325c6000830184612f45565b92915050565b60006020820190506132776000830184612f54565b92915050565b600060208201905081810360008301526132978184612f9c565b905092915050565b600060208201905081810360008301526132b881613006565b9050919050565b600060208201905081810360008301526132d881613029565b9050919050565b600060208201905081810360008301526132f88161304c565b9050919050565b600060208201905081810360008301526133188161306f565b9050919050565b60006020820190508181036000830152613338816130b5565b9050919050565b60006020820190508181036000830152613358816130d8565b9050919050565b60006020820190508181036000830152613378816130fb565b9050919050565b600060208201905081810360008301526133988161311e565b9050919050565b600060208201905081810360008301526133b881613141565b9050919050565b600060208201905081810360008301526133d881613164565b9050919050565b60006020820190506133f46000830184613187565b92915050565b6000613404613415565b90506134108282613723565b919050565b6000604051905090565b600067ffffffffffffffff82111561343a576134396138ae565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613466576134656138ae565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613492576134916138ae565b5b61349b826138fb565b9050602081019050919050565b600067ffffffffffffffff8211156134c3576134c26138ae565b5b6134cc826138fb565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613527826136a5565b9150613532836136a5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613567576135666137f2565b5b828201905092915050565b600061357d826136a5565b9150613588836136a5565b92508261359857613597613821565b5b828204905092915050565b60006135ae826136a5565b91506135b9836136a5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135f2576135f16137f2565b5b828202905092915050565b6000613608826136a5565b9150613613836136a5565b925082821015613626576136256137f2565b5b828203905092915050565b600061363c82613685565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156136dc5780820151818401526020810190506136c1565b838111156136eb576000848401525b50505050565b6000600282049050600182168061370957607f821691505b6020821081141561371d5761371c613850565b5b50919050565b61372c826138fb565b810181811067ffffffffffffffff8211171561374b5761374a6138ae565b5b80604052505050565b600061375f826136a5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613792576137916137f2565b5b600182019050919050565b60006137a8826137af565b9050919050565b60006137ba8261390c565b9050919050565b60006137cc826136a5565b91506137d7836136a5565b9250826137e7576137e6613821565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206e6f742061637469766520796574000000600082015250565b7f526571756573746564207175616e746974792065786365656473206d6178696d60008201527f756d20616c6c6f77656400000000000000000000000000000000000000000000602082015250565b7f596f7520617265206e6f742077686974656c6973746564000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520506172726f7420426f73732073616c65206973206e6f74206163746960008201527f7665000000000000000000000000000000000000000000000000000000000000602082015250565b7f596f7520617265206e6f7420616c6c6f77656420746f206d696e74207468652060008201527f726571756573746564207175616e74697479206f6620746f6b656e732e000000602082015250565b7f457468657220616d6f756e742073656e7420697320696e636f72726563740000600082015250565b7f546865207175616e74697479206f6620746f6b656e732072657175657374656460008201527f206973206e6f7420617661696c61626c65000000000000000000000000000000602082015250565b7f54686520506172726f7420426f7373206769766561776179206973206e6f742060008201527f6163746976650000000000000000000000000000000000000000000000000000602082015250565b613bc981613631565b8114613bd457600080fd5b50565b613be081613643565b8114613beb57600080fd5b50565b613bf78161364f565b8114613c0257600080fd5b50565b613c0e81613659565b8114613c1957600080fd5b50565b613c25816136a5565b8114613c3057600080fd5b5056fea264697066735822122077c990145869cae3f544501afa7b47ccbe9eb03fee01f1128b574f4a8c79faff64736f6c63430008070033

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.