ETH Price: $3,393.41 (+1.44%)

Token

Bored Dragon Ball (BDB)
 

Overview

Max Total Supply

566 BDB

Holders

291

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BDB
0xe0907e792d79423c07b281fbbf5e37782b3588ab
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:
BoredDragonBall

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : BoredDragonBall.sol
// SPDX-License-Identifier: MIT


        //   __         ______     __  __     __   __     ______     __  __     __     ______   __    
        //  /\ \       /\  __ \   /\ \/\ \   /\ "-.\ \   /\  ___\   /\ \_\ \   /\ \   /\  ___\ /\ \   
        //  \ \ \____  \ \  __ \  \ \ \_\ \  \ \ \-.  \  \ \ \____  \ \  __ \  \ \ \  \ \  __\ \ \ \  
        //   \ \_____\  \ \_\ \_\  \ \_____\  \ \_\\"\_\  \ \_____\  \ \_\ \_\  \ \_\  \ \_\    \ \_\ 
        //    \/_____/   \/_/\/_/   \/_____/   \/_/ \/_/   \/_____/   \/_/\/_/   \/_/   \/_/     \/_/ 

        pragma solidity ^0.8.10;

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

        contract BoredDragonBall is ERC721A, Ownable, ReentrancyGuard  {
            using Strings for uint256;
            uint256 public _maxSupply = 3333;
            uint256 public maxMintAmountPerWallet = 8;
            uint256 public maxMintAmountPerTx = 8;
            string baseURL = "";
            string ExtensionURL = ".json";
            uint256 _initalPrice = 0 ether;
            uint256 public costOfNFT = 0.001 ether;
            uint256 public numberOfFreeNFTs = 1;
            
            string HiddenURL;
            bool revealed = false;
            bool paused = true;
            
            error ContractPaused();
            error MaxMintWalletExceeded();
            error MaxSupply();
            error InvalidMintAmount();
            error InsufficientFund();
            error NoSmartContract();
            error TokenNotExisting();

        constructor(string memory _initBaseURI) ERC721A("Bored Dragon Ball", "BDB") {
            baseURL = _initBaseURI;
        }

        // ================== Mint Function =======================

        modifier mintCompliance(uint256 _mintAmount) {
            if (msg.sender != tx.origin) revert NoSmartContract();
            if (totalSupply()  + _mintAmount > _maxSupply) revert MaxSupply();
            if (_mintAmount > maxMintAmountPerTx) revert InvalidMintAmount();
            if(paused) revert ContractPaused();
            _;
        }

        modifier mintPriceCompliance(uint256 _mintAmount) {
            if(balanceOf(msg.sender) + _mintAmount > maxMintAmountPerWallet) revert MaxMintWalletExceeded();
            if (_mintAmount < 0 || _mintAmount > maxMintAmountPerWallet) revert InvalidMintAmount();
              if (msg.value < checkCost(_mintAmount)) revert InsufficientFund();
            _;
        }
        
        /// @notice compliance of minting
        /// @dev user (msg.sender) mint
        /// @param _mintAmount the amount of tokens to mint
        function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount){
          _safeMint(msg.sender, _mintAmount);
          
          }

        /// @dev user (msg.sender) mint
        /// @param _mintAmount the amount of tokens to mint 
        /// @return value from number to mint
        function checkCost(uint256 _mintAmount) public view returns (uint256) {
          uint256 totalMints = _mintAmount + balanceOf(msg.sender);
          if ((totalMints <= numberOfFreeNFTs) ) {
          return _initalPrice;
          } else if ((balanceOf(msg.sender) == 0) && (totalMints > numberOfFreeNFTs) ) { 
          uint256 total = costOfNFT * (_mintAmount - numberOfFreeNFTs);
          return total;
          } 
          else {
          uint256 total2 = costOfNFT * _mintAmount;
          return total2;
            }
        }
        


        /// @notice airdrop function to airdrop same amount of tokens to addresses
        /// @dev only owner function
        /// @param accounts  array of addresses
        /// @param amount the amount of tokens to airdrop users
        function airdrop(address[] memory accounts, uint256 amount)public onlyOwner mintCompliance(amount) {
          for(uint256 i = 0; i < accounts.length; i++){
          _safeMint(accounts[i], amount);
          }
        }

        // =================== Orange Functions (Owner Only) ===============

        /// @dev pause/unpause minting
        function pause() public onlyOwner {
          paused = !paused;
        }

        

        /// @dev set URI
        /// @param uri  new URI
        function setbaseURL(string memory uri) public onlyOwner{
          baseURL = uri;
        }

        /// @dev extension URI like 'json'
        function setExtensionURL(string memory uri) public onlyOwner{
          ExtensionURL = uri;
        }
        
        /// @dev set new cost of tokenId in WEI
        /// @param _cost  new price in wei
        function setCostPrice(uint256 _cost) public onlyOwner{
          costOfNFT = _cost;
        } 

        /// @dev only owner
        /// @param supply  new max supply
        function setSupply(uint256 supply) public onlyOwner{
          _maxSupply = supply;
        }

        /// @dev only owner
        /// @param perTx  new max mint per transaction
        function setMaxMintAmountPerTx(uint256 perTx) public onlyOwner{
          maxMintAmountPerTx = perTx;
        }

        /// @dev only owner
        /// @param perWallet  new max mint per wallet
        function setMaxMintAmountPerWallet(uint256 perWallet) public onlyOwner{
          maxMintAmountPerWallet = perWallet;
        }  
        
        /// @dev only owner
        /// @param perWallet set free number of nft per wallet
        function setnumberOfFreeNFTs(uint256 perWallet) public onlyOwner{
          numberOfFreeNFTs = perWallet;
        }            

        // ================================ Withdraw Function ====================

        /// @notice withdraw ether from contract.
        /// @dev only owner function
        function withdraw() public onlyOwner nonReentrant{
          

          

        (bool owner, ) = payable(owner()).call{value: address(this).balance}('');
        require(owner);
        }
        // =================== Blue Functions (View Only) ====================

        /// @dev return uri of token ID
        /// @param tokenId  token ID to find uri for
        ///@return value for 'tokenId uri'
        function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) {
          if (!_exists(tokenId)) revert TokenNotExisting();   

        

        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), ExtensionURL))
        : '';
        }
        
        /// @dev tokenId to start (1)
        function _startTokenId() internal view virtual override returns (uint256) {
          return 1;
        }

        ///@dev maxSupply of token
        /// @return max supply
        function _baseURI() internal view virtual override returns (string memory) {
          return baseURL;
        }

        

      }

File 2 of 7 : 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 3 of 7 : 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 4 of 7 : 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 5 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 7 of 7 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"}],"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":"ContractPaused","type":"error"},{"inputs":[],"name":"InsufficientFund","type":"error"},{"inputs":[],"name":"InvalidMintAmount","type":"error"},{"inputs":[],"name":"MaxMintWalletExceeded","type":"error"},{"inputs":[],"name":"MaxSupply","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoSmartContract","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TokenNotExisting","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":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256","name":"amount","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":"_mintAmount","type":"uint256"}],"name":"checkCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costOfNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfFreeNFTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCostPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setExtensionURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perWallet","type":"uint256"}],"name":"setMaxMintAmountPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setbaseURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perWallet","type":"uint256"}],"name":"setnumberOfFreeNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052610d05600a556008600b556008600c5560405180602001604052806000815250600d90805190602001906200003b929190620002dd565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600e908051906020019062000089929190620002dd565b506000600f5566038d7ea4c6800060105560016011556000601360006101000a81548160ff0219169083151502179055506001601360016101000a81548160ff021916908315150217905550348015620000e257600080fd5b50604051620037233803806200372383398181016040528101906200010891906200052a565b6040518060400160405280601181526020017f426f72656420447261676f6e2042616c6c0000000000000000000000000000008152506040518060400160405280600381526020017f424442000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200018c929190620002dd565b508060039080519060200190620001a5929190620002dd565b50620001b66200020660201b60201c565b6000819055505050620001de620001d26200020f60201b60201c565b6200021760201b60201c565b600160098190555080600d9080519060200190620001fe929190620002dd565b5050620005df565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002eb90620005aa565b90600052602060002090601f0160209004810192826200030f57600085556200035b565b82601f106200032a57805160ff19168380011785556200035b565b828001600101855582156200035b579182015b828111156200035a5782518255916020019190600101906200033d565b5b5090506200036a91906200036e565b5090565b5b80821115620003895760008160009055506001016200036f565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003f682620003ab565b810181811067ffffffffffffffff82111715620004185762000417620003bc565b5b80604052505050565b60006200042d6200038d565b90506200043b8282620003eb565b919050565b600067ffffffffffffffff8211156200045e576200045d620003bc565b5b6200046982620003ab565b9050602081019050919050565b60005b838110156200049657808201518184015260208101905062000479565b83811115620004a6576000848401525b50505050565b6000620004c3620004bd8462000440565b62000421565b905082815260208101848484011115620004e257620004e1620003a6565b5b620004ef84828562000476565b509392505050565b600082601f8301126200050f576200050e620003a1565b5b815162000521848260208601620004ac565b91505092915050565b60006020828403121562000543576200054262000397565b5b600082015167ffffffffffffffff8111156200056457620005636200039c565b5b6200057284828501620004f7565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005c357607f821691505b602082108103620005d957620005d86200057b565b5b50919050565b61313480620005ef6000396000f3fe6080604052600436106101f95760003560e01c8063766b7d091161010d578063b071401b116100a0578063c204642c1161006f578063c204642c146106d4578063c87b56dd146106fd578063e098ff731461073a578063e985e9c514610765578063f2fde38b146107a2576101f9565b8063b071401b1461062c578063b0fe641414610655578063b88d4fde14610680578063bc951b91146106a9576101f9565b806394354fd0116100dc57806394354fd01461059157806395d89b41146105bc578063a0712d68146105e7578063a22cb46514610603576101f9565b8063766b7d09146104fd5780638456cb59146105265780638da5cb5b1461053d57806393e90b2314610568576101f9565b80633b4c4b2511610190578063626ab3b81161015f578063626ab3b81461041a5780636352211e14610443578063676f26021461048057806370a08231146104a9578063715018a6146104e6576101f9565b80633b4c4b25146103885780633ccfd60b146103b157806342842e0e146103c85780634d534a7d146103f1576101f9565b806311b4a832116101cc57806311b4a832146102cc57806318160ddd1461030957806322f4596f1461033457806323b872dd1461035f576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b506102256004803603810190610220919061238a565b6107cb565b60405161023291906123d2565b60405180910390f35b34801561024757600080fd5b5061025061085d565b60405161025d9190612486565b60405180910390f35b34801561027257600080fd5b5061028d600480360381019061028891906124de565b6108ef565b60405161029a919061254c565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c59190612593565b61096b565b005b3480156102d857600080fd5b506102f360048036038101906102ee91906124de565b610aac565b60405161030091906125e2565b60405180910390f35b34801561031557600080fd5b5061031e610b3d565b60405161032b91906125e2565b60405180910390f35b34801561034057600080fd5b50610349610b54565b60405161035691906125e2565b60405180910390f35b34801561036b57600080fd5b50610386600480360381019061038191906125fd565b610b5a565b005b34801561039457600080fd5b506103af60048036038101906103aa91906124de565b610e7c565b005b3480156103bd57600080fd5b506103c6610e8e565b005b3480156103d457600080fd5b506103ef60048036038101906103ea91906125fd565b610f6b565b005b3480156103fd57600080fd5b5061041860048036038101906104139190612785565b610f8b565b005b34801561042657600080fd5b50610441600480360381019061043c9190612785565b610fad565b005b34801561044f57600080fd5b5061046a600480360381019061046591906124de565b610fcf565b604051610477919061254c565b60405180910390f35b34801561048c57600080fd5b506104a760048036038101906104a291906124de565b610fe1565b005b3480156104b557600080fd5b506104d060048036038101906104cb91906127ce565b610ff3565b6040516104dd91906125e2565b60405180910390f35b3480156104f257600080fd5b506104fb6110ab565b005b34801561050957600080fd5b50610524600480360381019061051f91906124de565b6110bf565b005b34801561053257600080fd5b5061053b6110d1565b005b34801561054957600080fd5b50610552611105565b60405161055f919061254c565b60405180910390f35b34801561057457600080fd5b5061058f600480360381019061058a91906124de565b61112f565b005b34801561059d57600080fd5b506105a6611141565b6040516105b391906125e2565b60405180910390f35b3480156105c857600080fd5b506105d1611147565b6040516105de9190612486565b60405180910390f35b61060160048036038101906105fc91906124de565b6111d9565b005b34801561060f57600080fd5b5061062a60048036038101906106259190612827565b6113f8565b005b34801561063857600080fd5b50610653600480360381019061064e91906124de565b61156f565b005b34801561066157600080fd5b5061066a611581565b60405161067791906125e2565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a29190612908565b611587565b005b3480156106b557600080fd5b506106be6115fa565b6040516106cb91906125e2565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190612a53565b611600565b005b34801561070957600080fd5b50610724600480360381019061071f91906124de565b611788565b6040516107319190612486565b60405180910390f35b34801561074657600080fd5b5061074f611829565b60405161075c91906125e2565b60405180910390f35b34801561077157600080fd5b5061078c60048036038101906107879190612aaf565b61182f565b60405161079991906123d2565b60405180910390f35b3480156107ae57600080fd5b506107c960048036038101906107c491906127ce565b6118c3565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061082657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108565750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461086c90612b1e565b80601f016020809104026020016040519081016040528092919081815260200182805461089890612b1e565b80156108e55780601f106108ba576101008083540402835291602001916108e5565b820191906000526020600020905b8154815290600101906020018083116108c857829003601f168201915b5050505050905090565b60006108fa82611946565b610930576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097682610fcf565b90508073ffffffffffffffffffffffffffffffffffffffff166109976119a5565b73ffffffffffffffffffffffffffffffffffffffff16146109fa576109c3816109be6119a5565b61182f565b6109f9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080610ab833610ff3565b83610ac39190612b7e565b90506011548111610ad957600f54915050610b38565b6000610ae433610ff3565b148015610af2575060115481115b15610b2057600060115484610b079190612bd4565b601054610b149190612c08565b90508092505050610b38565b600083601054610b309190612c08565b905080925050505b919050565b6000610b476119ad565b6001546000540303905090565b600a5481565b6000610b65826119b6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bcc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bd884611a82565b91509150610bee8187610be96119a5565b611aa4565b610c3a57610c0386610bfe6119a5565b61182f565b610c39576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610ca0576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cad8686866001611ae8565b8015610cb857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d8685610d62888887611aee565b7c020000000000000000000000000000000000000000000000000000000017611b16565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610e0c5760006001850190506000600460008381526020019081526020016000205403610e0a576000548114610e09578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e748686866001611b41565b505050505050565b610e84611b47565b80600a8190555050565b610e96611b47565b600260095403610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed290612cae565b60405180910390fd5b60026009819055506000610eed611105565b73ffffffffffffffffffffffffffffffffffffffff1647604051610f1090612cff565b60006040518083038185875af1925050503d8060008114610f4d576040519150601f19603f3d011682016040523d82523d6000602084013e610f52565b606091505b5050905080610f6057600080fd5b506001600981905550565b610f8683838360405180602001604052806000815250611587565b505050565b610f93611b47565b80600e9080519060200190610fa992919061227b565b5050565b610fb5611b47565b80600d9080519060200190610fcb92919061227b565b5050565b6000610fda826119b6565b9050919050565b610fe9611b47565b8060108190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361105a576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6110b3611b47565b6110bd6000611bc5565b565b6110c7611b47565b80600b8190555050565b6110d9611b47565b601360019054906101000a900460ff1615601360016101000a81548160ff021916908315150217905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611137611b47565b8060118190555050565b600c5481565b60606003805461115690612b1e565b80601f016020809104026020016040519081016040528092919081815260200182805461118290612b1e565b80156111cf5780601f106111a4576101008083540402835291602001916111cf565b820191906000526020600020905b8154815290600101906020018083116111b257829003601f168201915b5050505050905090565b803273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461123f576040517f4af0169e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548161124b610b3d565b6112559190612b7e565b111561128d576040517fb36c128400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548111156112c9576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601360019054906101000a900460ff1615611310576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600b548161131e33610ff3565b6113289190612b7e565b1115611360576040517f6a3eaa7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008110806113705750600b5481115b156113a7576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113b081610aac565b3410156113e9576040517fd44b3c6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113f33384611c8b565b505050565b6114006119a5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611464576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006114716119a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661151e6119a5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161156391906123d2565b60405180910390a35050565b611577611b47565b80600c8190555050565b60115481565b611592848484610b5a565b60008373ffffffffffffffffffffffffffffffffffffffff163b146115f4576115bd84848484611ca9565b6115f3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600b5481565b611608611b47565b803273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461166e576040517f4af0169e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548161167a610b3d565b6116849190612b7e565b11156116bc576040517fb36c128400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548111156116f8576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601360019054906101000a900460ff161561173f576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83518110156117825761176f84828151811061176157611760612d14565b5b602002602001015184611c8b565b808061177a90612d43565b915050611742565b50505050565b606061179382611946565b6117c9576040517f2f9aab5800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006117d3611df9565b905060008151116117f35760405180602001604052806000815250611821565b806117fd84611e8b565b600e60405160200161181193929190612e5b565b6040516020818303038152906040525b915050919050565b60105481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118cb611b47565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361193a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193190612efe565b60405180910390fd5b61194381611bc5565b50565b6000816119516119ad565b11158015611960575060005482105b801561199e575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600080829050806119c56119ad565b11611a4b57600054811015611a4a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611a48575b60008103611a3e576004600083600190039350838152602001908152602001600020549050611a14565b8092505050611a7d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611b05868684611feb565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611b4f611ff4565b73ffffffffffffffffffffffffffffffffffffffff16611b6d611105565b73ffffffffffffffffffffffffffffffffffffffff1614611bc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bba90612f6a565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611ca5828260405180602001604052806000815250611ffc565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ccf6119a5565b8786866040518563ffffffff1660e01b8152600401611cf19493929190612fdf565b6020604051808303816000875af1925050508015611d2d57506040513d601f19601f82011682018060405250810190611d2a9190613040565b60015b611da6573d8060008114611d5d576040519150601f19603f3d011682016040523d82523d6000602084013e611d62565b606091505b506000815103611d9e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054611e0890612b1e565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3490612b1e565b8015611e815780601f10611e5657610100808354040283529160200191611e81565b820191906000526020600020905b815481529060010190602001808311611e6457829003601f168201915b5050505050905090565b606060008203611ed2576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611fe6565b600082905060005b60008214611f04578080611eed90612d43565b915050600a82611efd919061309c565b9150611eda565b60008167ffffffffffffffff811115611f2057611f1f61265a565b5b6040519080825280601f01601f191660200182016040528015611f525781602001600182028036833780820191505090505b5090505b60008514611fdf57600182611f6b9190612bd4565b9150600a85611f7a91906130cd565b6030611f869190612b7e565b60f81b818381518110611f9c57611f9b612d14565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611fd8919061309c565b9450611f56565b8093505050505b919050565b60009392505050565b600033905090565b6120068383612099565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461209457600080549050600083820390505b6120466000868380600101945086611ca9565b61207c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061203357816000541461209157600080fd5b50505b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612105576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000820361213f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61214c6000848385611ae8565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506121c3836121b46000866000611aee565b6121bd8561226b565b17611b16565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106121e7578060008190555050506122666000848385611b41565b505050565b60006001821460e11b9050919050565b82805461228790612b1e565b90600052602060002090601f0160209004810192826122a957600085556122f0565b82601f106122c257805160ff19168380011785556122f0565b828001600101855582156122f0579182015b828111156122ef5782518255916020019190600101906122d4565b5b5090506122fd9190612301565b5090565b5b8082111561231a576000816000905550600101612302565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61236781612332565b811461237257600080fd5b50565b6000813590506123848161235e565b92915050565b6000602082840312156123a05761239f612328565b5b60006123ae84828501612375565b91505092915050565b60008115159050919050565b6123cc816123b7565b82525050565b60006020820190506123e760008301846123c3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561242757808201518184015260208101905061240c565b83811115612436576000848401525b50505050565b6000601f19601f8301169050919050565b6000612458826123ed565b61246281856123f8565b9350612472818560208601612409565b61247b8161243c565b840191505092915050565b600060208201905081810360008301526124a0818461244d565b905092915050565b6000819050919050565b6124bb816124a8565b81146124c657600080fd5b50565b6000813590506124d8816124b2565b92915050565b6000602082840312156124f4576124f3612328565b5b6000612502848285016124c9565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125368261250b565b9050919050565b6125468161252b565b82525050565b6000602082019050612561600083018461253d565b92915050565b6125708161252b565b811461257b57600080fd5b50565b60008135905061258d81612567565b92915050565b600080604083850312156125aa576125a9612328565b5b60006125b88582860161257e565b92505060206125c9858286016124c9565b9150509250929050565b6125dc816124a8565b82525050565b60006020820190506125f760008301846125d3565b92915050565b60008060006060848603121561261657612615612328565b5b60006126248682870161257e565b93505060206126358682870161257e565b9250506040612646868287016124c9565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6126928261243c565b810181811067ffffffffffffffff821117156126b1576126b061265a565b5b80604052505050565b60006126c461231e565b90506126d08282612689565b919050565b600067ffffffffffffffff8211156126f0576126ef61265a565b5b6126f98261243c565b9050602081019050919050565b82818337600083830152505050565b6000612728612723846126d5565b6126ba565b90508281526020810184848401111561274457612743612655565b5b61274f848285612706565b509392505050565b600082601f83011261276c5761276b612650565b5b813561277c848260208601612715565b91505092915050565b60006020828403121561279b5761279a612328565b5b600082013567ffffffffffffffff8111156127b9576127b861232d565b5b6127c584828501612757565b91505092915050565b6000602082840312156127e4576127e3612328565b5b60006127f28482850161257e565b91505092915050565b612804816123b7565b811461280f57600080fd5b50565b600081359050612821816127fb565b92915050565b6000806040838503121561283e5761283d612328565b5b600061284c8582860161257e565b925050602061285d85828601612812565b9150509250929050565b600067ffffffffffffffff8211156128825761288161265a565b5b61288b8261243c565b9050602081019050919050565b60006128ab6128a684612867565b6126ba565b9050828152602081018484840111156128c7576128c6612655565b5b6128d2848285612706565b509392505050565b600082601f8301126128ef576128ee612650565b5b81356128ff848260208601612898565b91505092915050565b6000806000806080858703121561292257612921612328565b5b60006129308782880161257e565b94505060206129418782880161257e565b9350506040612952878288016124c9565b925050606085013567ffffffffffffffff8111156129735761297261232d565b5b61297f878288016128da565b91505092959194509250565b600067ffffffffffffffff8211156129a6576129a561265a565b5b602082029050602081019050919050565b600080fd5b60006129cf6129ca8461298b565b6126ba565b905080838252602082019050602084028301858111156129f2576129f16129b7565b5b835b81811015612a1b5780612a07888261257e565b8452602084019350506020810190506129f4565b5050509392505050565b600082601f830112612a3a57612a39612650565b5b8135612a4a8482602086016129bc565b91505092915050565b60008060408385031215612a6a57612a69612328565b5b600083013567ffffffffffffffff811115612a8857612a8761232d565b5b612a9485828601612a25565b9250506020612aa5858286016124c9565b9150509250929050565b60008060408385031215612ac657612ac5612328565b5b6000612ad48582860161257e565b9250506020612ae58582860161257e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612b3657607f821691505b602082108103612b4957612b48612aef565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612b89826124a8565b9150612b94836124a8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612bc957612bc8612b4f565b5b828201905092915050565b6000612bdf826124a8565b9150612bea836124a8565b925082821015612bfd57612bfc612b4f565b5b828203905092915050565b6000612c13826124a8565b9150612c1e836124a8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c5757612c56612b4f565b5b828202905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612c98601f836123f8565b9150612ca382612c62565b602082019050919050565b60006020820190508181036000830152612cc781612c8b565b9050919050565b600081905092915050565b50565b6000612ce9600083612cce565b9150612cf482612cd9565b600082019050919050565b6000612d0a82612cdc565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000612d4e826124a8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612d8057612d7f612b4f565b5b600182019050919050565b600081905092915050565b6000612da1826123ed565b612dab8185612d8b565b9350612dbb818560208601612409565b80840191505092915050565b60008190508160005260206000209050919050565b60008154612de981612b1e565b612df38186612d8b565b94506001821660008114612e0e5760018114612e1f57612e52565b60ff19831686528186019350612e52565b612e2885612dc7565b60005b83811015612e4a57815481890152600182019150602081019050612e2b565b838801955050505b50505092915050565b6000612e678286612d96565b9150612e738285612d96565b9150612e7f8284612ddc565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ee86026836123f8565b9150612ef382612e8c565b604082019050919050565b60006020820190508181036000830152612f1781612edb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612f546020836123f8565b9150612f5f82612f1e565b602082019050919050565b60006020820190508181036000830152612f8381612f47565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612fb182612f8a565b612fbb8185612f95565b9350612fcb818560208601612409565b612fd48161243c565b840191505092915050565b6000608082019050612ff4600083018761253d565b613001602083018661253d565b61300e60408301856125d3565b81810360608301526130208184612fa6565b905095945050505050565b60008151905061303a8161235e565b92915050565b60006020828403121561305657613055612328565b5b60006130648482850161302b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006130a7826124a8565b91506130b2836124a8565b9250826130c2576130c161306d565b5b828204905092915050565b60006130d8826124a8565b91506130e3836124a8565b9250826130f3576130f261306d565b5b82820690509291505056fea26469706673582212209f5c72067fcc6f8617e8e3de5cae3a554107e67be7cd0d568a06e39e681d16c464736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d54353375616f54787837537a635632385a4e7262695a56696235523833633557747057456643436238346f342f00000000000000000000

Deployed Bytecode

0x6080604052600436106101f95760003560e01c8063766b7d091161010d578063b071401b116100a0578063c204642c1161006f578063c204642c146106d4578063c87b56dd146106fd578063e098ff731461073a578063e985e9c514610765578063f2fde38b146107a2576101f9565b8063b071401b1461062c578063b0fe641414610655578063b88d4fde14610680578063bc951b91146106a9576101f9565b806394354fd0116100dc57806394354fd01461059157806395d89b41146105bc578063a0712d68146105e7578063a22cb46514610603576101f9565b8063766b7d09146104fd5780638456cb59146105265780638da5cb5b1461053d57806393e90b2314610568576101f9565b80633b4c4b2511610190578063626ab3b81161015f578063626ab3b81461041a5780636352211e14610443578063676f26021461048057806370a08231146104a9578063715018a6146104e6576101f9565b80633b4c4b25146103885780633ccfd60b146103b157806342842e0e146103c85780634d534a7d146103f1576101f9565b806311b4a832116101cc57806311b4a832146102cc57806318160ddd1461030957806322f4596f1461033457806323b872dd1461035f576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b506102256004803603810190610220919061238a565b6107cb565b60405161023291906123d2565b60405180910390f35b34801561024757600080fd5b5061025061085d565b60405161025d9190612486565b60405180910390f35b34801561027257600080fd5b5061028d600480360381019061028891906124de565b6108ef565b60405161029a919061254c565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c59190612593565b61096b565b005b3480156102d857600080fd5b506102f360048036038101906102ee91906124de565b610aac565b60405161030091906125e2565b60405180910390f35b34801561031557600080fd5b5061031e610b3d565b60405161032b91906125e2565b60405180910390f35b34801561034057600080fd5b50610349610b54565b60405161035691906125e2565b60405180910390f35b34801561036b57600080fd5b50610386600480360381019061038191906125fd565b610b5a565b005b34801561039457600080fd5b506103af60048036038101906103aa91906124de565b610e7c565b005b3480156103bd57600080fd5b506103c6610e8e565b005b3480156103d457600080fd5b506103ef60048036038101906103ea91906125fd565b610f6b565b005b3480156103fd57600080fd5b5061041860048036038101906104139190612785565b610f8b565b005b34801561042657600080fd5b50610441600480360381019061043c9190612785565b610fad565b005b34801561044f57600080fd5b5061046a600480360381019061046591906124de565b610fcf565b604051610477919061254c565b60405180910390f35b34801561048c57600080fd5b506104a760048036038101906104a291906124de565b610fe1565b005b3480156104b557600080fd5b506104d060048036038101906104cb91906127ce565b610ff3565b6040516104dd91906125e2565b60405180910390f35b3480156104f257600080fd5b506104fb6110ab565b005b34801561050957600080fd5b50610524600480360381019061051f91906124de565b6110bf565b005b34801561053257600080fd5b5061053b6110d1565b005b34801561054957600080fd5b50610552611105565b60405161055f919061254c565b60405180910390f35b34801561057457600080fd5b5061058f600480360381019061058a91906124de565b61112f565b005b34801561059d57600080fd5b506105a6611141565b6040516105b391906125e2565b60405180910390f35b3480156105c857600080fd5b506105d1611147565b6040516105de9190612486565b60405180910390f35b61060160048036038101906105fc91906124de565b6111d9565b005b34801561060f57600080fd5b5061062a60048036038101906106259190612827565b6113f8565b005b34801561063857600080fd5b50610653600480360381019061064e91906124de565b61156f565b005b34801561066157600080fd5b5061066a611581565b60405161067791906125e2565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a29190612908565b611587565b005b3480156106b557600080fd5b506106be6115fa565b6040516106cb91906125e2565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190612a53565b611600565b005b34801561070957600080fd5b50610724600480360381019061071f91906124de565b611788565b6040516107319190612486565b60405180910390f35b34801561074657600080fd5b5061074f611829565b60405161075c91906125e2565b60405180910390f35b34801561077157600080fd5b5061078c60048036038101906107879190612aaf565b61182f565b60405161079991906123d2565b60405180910390f35b3480156107ae57600080fd5b506107c960048036038101906107c491906127ce565b6118c3565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061082657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108565750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461086c90612b1e565b80601f016020809104026020016040519081016040528092919081815260200182805461089890612b1e565b80156108e55780601f106108ba576101008083540402835291602001916108e5565b820191906000526020600020905b8154815290600101906020018083116108c857829003601f168201915b5050505050905090565b60006108fa82611946565b610930576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097682610fcf565b90508073ffffffffffffffffffffffffffffffffffffffff166109976119a5565b73ffffffffffffffffffffffffffffffffffffffff16146109fa576109c3816109be6119a5565b61182f565b6109f9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080610ab833610ff3565b83610ac39190612b7e565b90506011548111610ad957600f54915050610b38565b6000610ae433610ff3565b148015610af2575060115481115b15610b2057600060115484610b079190612bd4565b601054610b149190612c08565b90508092505050610b38565b600083601054610b309190612c08565b905080925050505b919050565b6000610b476119ad565b6001546000540303905090565b600a5481565b6000610b65826119b6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bcc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bd884611a82565b91509150610bee8187610be96119a5565b611aa4565b610c3a57610c0386610bfe6119a5565b61182f565b610c39576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610ca0576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cad8686866001611ae8565b8015610cb857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d8685610d62888887611aee565b7c020000000000000000000000000000000000000000000000000000000017611b16565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610e0c5760006001850190506000600460008381526020019081526020016000205403610e0a576000548114610e09578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e748686866001611b41565b505050505050565b610e84611b47565b80600a8190555050565b610e96611b47565b600260095403610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed290612cae565b60405180910390fd5b60026009819055506000610eed611105565b73ffffffffffffffffffffffffffffffffffffffff1647604051610f1090612cff565b60006040518083038185875af1925050503d8060008114610f4d576040519150601f19603f3d011682016040523d82523d6000602084013e610f52565b606091505b5050905080610f6057600080fd5b506001600981905550565b610f8683838360405180602001604052806000815250611587565b505050565b610f93611b47565b80600e9080519060200190610fa992919061227b565b5050565b610fb5611b47565b80600d9080519060200190610fcb92919061227b565b5050565b6000610fda826119b6565b9050919050565b610fe9611b47565b8060108190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361105a576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6110b3611b47565b6110bd6000611bc5565b565b6110c7611b47565b80600b8190555050565b6110d9611b47565b601360019054906101000a900460ff1615601360016101000a81548160ff021916908315150217905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611137611b47565b8060118190555050565b600c5481565b60606003805461115690612b1e565b80601f016020809104026020016040519081016040528092919081815260200182805461118290612b1e565b80156111cf5780601f106111a4576101008083540402835291602001916111cf565b820191906000526020600020905b8154815290600101906020018083116111b257829003601f168201915b5050505050905090565b803273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461123f576040517f4af0169e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548161124b610b3d565b6112559190612b7e565b111561128d576040517fb36c128400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548111156112c9576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601360019054906101000a900460ff1615611310576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600b548161131e33610ff3565b6113289190612b7e565b1115611360576040517f6a3eaa7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008110806113705750600b5481115b156113a7576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113b081610aac565b3410156113e9576040517fd44b3c6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113f33384611c8b565b505050565b6114006119a5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611464576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006114716119a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661151e6119a5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161156391906123d2565b60405180910390a35050565b611577611b47565b80600c8190555050565b60115481565b611592848484610b5a565b60008373ffffffffffffffffffffffffffffffffffffffff163b146115f4576115bd84848484611ca9565b6115f3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600b5481565b611608611b47565b803273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461166e576040517f4af0169e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548161167a610b3d565b6116849190612b7e565b11156116bc576040517fb36c128400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548111156116f8576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601360019054906101000a900460ff161561173f576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83518110156117825761176f84828151811061176157611760612d14565b5b602002602001015184611c8b565b808061177a90612d43565b915050611742565b50505050565b606061179382611946565b6117c9576040517f2f9aab5800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006117d3611df9565b905060008151116117f35760405180602001604052806000815250611821565b806117fd84611e8b565b600e60405160200161181193929190612e5b565b6040516020818303038152906040525b915050919050565b60105481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118cb611b47565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361193a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193190612efe565b60405180910390fd5b61194381611bc5565b50565b6000816119516119ad565b11158015611960575060005482105b801561199e575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600080829050806119c56119ad565b11611a4b57600054811015611a4a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611a48575b60008103611a3e576004600083600190039350838152602001908152602001600020549050611a14565b8092505050611a7d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611b05868684611feb565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611b4f611ff4565b73ffffffffffffffffffffffffffffffffffffffff16611b6d611105565b73ffffffffffffffffffffffffffffffffffffffff1614611bc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bba90612f6a565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611ca5828260405180602001604052806000815250611ffc565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ccf6119a5565b8786866040518563ffffffff1660e01b8152600401611cf19493929190612fdf565b6020604051808303816000875af1925050508015611d2d57506040513d601f19601f82011682018060405250810190611d2a9190613040565b60015b611da6573d8060008114611d5d576040519150601f19603f3d011682016040523d82523d6000602084013e611d62565b606091505b506000815103611d9e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054611e0890612b1e565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3490612b1e565b8015611e815780601f10611e5657610100808354040283529160200191611e81565b820191906000526020600020905b815481529060010190602001808311611e6457829003601f168201915b5050505050905090565b606060008203611ed2576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611fe6565b600082905060005b60008214611f04578080611eed90612d43565b915050600a82611efd919061309c565b9150611eda565b60008167ffffffffffffffff811115611f2057611f1f61265a565b5b6040519080825280601f01601f191660200182016040528015611f525781602001600182028036833780820191505090505b5090505b60008514611fdf57600182611f6b9190612bd4565b9150600a85611f7a91906130cd565b6030611f869190612b7e565b60f81b818381518110611f9c57611f9b612d14565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611fd8919061309c565b9450611f56565b8093505050505b919050565b60009392505050565b600033905090565b6120068383612099565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461209457600080549050600083820390505b6120466000868380600101945086611ca9565b61207c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061203357816000541461209157600080fd5b50505b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612105576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000820361213f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61214c6000848385611ae8565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506121c3836121b46000866000611aee565b6121bd8561226b565b17611b16565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106121e7578060008190555050506122666000848385611b41565b505050565b60006001821460e11b9050919050565b82805461228790612b1e565b90600052602060002090601f0160209004810192826122a957600085556122f0565b82601f106122c257805160ff19168380011785556122f0565b828001600101855582156122f0579182015b828111156122ef5782518255916020019190600101906122d4565b5b5090506122fd9190612301565b5090565b5b8082111561231a576000816000905550600101612302565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61236781612332565b811461237257600080fd5b50565b6000813590506123848161235e565b92915050565b6000602082840312156123a05761239f612328565b5b60006123ae84828501612375565b91505092915050565b60008115159050919050565b6123cc816123b7565b82525050565b60006020820190506123e760008301846123c3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561242757808201518184015260208101905061240c565b83811115612436576000848401525b50505050565b6000601f19601f8301169050919050565b6000612458826123ed565b61246281856123f8565b9350612472818560208601612409565b61247b8161243c565b840191505092915050565b600060208201905081810360008301526124a0818461244d565b905092915050565b6000819050919050565b6124bb816124a8565b81146124c657600080fd5b50565b6000813590506124d8816124b2565b92915050565b6000602082840312156124f4576124f3612328565b5b6000612502848285016124c9565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125368261250b565b9050919050565b6125468161252b565b82525050565b6000602082019050612561600083018461253d565b92915050565b6125708161252b565b811461257b57600080fd5b50565b60008135905061258d81612567565b92915050565b600080604083850312156125aa576125a9612328565b5b60006125b88582860161257e565b92505060206125c9858286016124c9565b9150509250929050565b6125dc816124a8565b82525050565b60006020820190506125f760008301846125d3565b92915050565b60008060006060848603121561261657612615612328565b5b60006126248682870161257e565b93505060206126358682870161257e565b9250506040612646868287016124c9565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6126928261243c565b810181811067ffffffffffffffff821117156126b1576126b061265a565b5b80604052505050565b60006126c461231e565b90506126d08282612689565b919050565b600067ffffffffffffffff8211156126f0576126ef61265a565b5b6126f98261243c565b9050602081019050919050565b82818337600083830152505050565b6000612728612723846126d5565b6126ba565b90508281526020810184848401111561274457612743612655565b5b61274f848285612706565b509392505050565b600082601f83011261276c5761276b612650565b5b813561277c848260208601612715565b91505092915050565b60006020828403121561279b5761279a612328565b5b600082013567ffffffffffffffff8111156127b9576127b861232d565b5b6127c584828501612757565b91505092915050565b6000602082840312156127e4576127e3612328565b5b60006127f28482850161257e565b91505092915050565b612804816123b7565b811461280f57600080fd5b50565b600081359050612821816127fb565b92915050565b6000806040838503121561283e5761283d612328565b5b600061284c8582860161257e565b925050602061285d85828601612812565b9150509250929050565b600067ffffffffffffffff8211156128825761288161265a565b5b61288b8261243c565b9050602081019050919050565b60006128ab6128a684612867565b6126ba565b9050828152602081018484840111156128c7576128c6612655565b5b6128d2848285612706565b509392505050565b600082601f8301126128ef576128ee612650565b5b81356128ff848260208601612898565b91505092915050565b6000806000806080858703121561292257612921612328565b5b60006129308782880161257e565b94505060206129418782880161257e565b9350506040612952878288016124c9565b925050606085013567ffffffffffffffff8111156129735761297261232d565b5b61297f878288016128da565b91505092959194509250565b600067ffffffffffffffff8211156129a6576129a561265a565b5b602082029050602081019050919050565b600080fd5b60006129cf6129ca8461298b565b6126ba565b905080838252602082019050602084028301858111156129f2576129f16129b7565b5b835b81811015612a1b5780612a07888261257e565b8452602084019350506020810190506129f4565b5050509392505050565b600082601f830112612a3a57612a39612650565b5b8135612a4a8482602086016129bc565b91505092915050565b60008060408385031215612a6a57612a69612328565b5b600083013567ffffffffffffffff811115612a8857612a8761232d565b5b612a9485828601612a25565b9250506020612aa5858286016124c9565b9150509250929050565b60008060408385031215612ac657612ac5612328565b5b6000612ad48582860161257e565b9250506020612ae58582860161257e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612b3657607f821691505b602082108103612b4957612b48612aef565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612b89826124a8565b9150612b94836124a8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612bc957612bc8612b4f565b5b828201905092915050565b6000612bdf826124a8565b9150612bea836124a8565b925082821015612bfd57612bfc612b4f565b5b828203905092915050565b6000612c13826124a8565b9150612c1e836124a8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c5757612c56612b4f565b5b828202905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612c98601f836123f8565b9150612ca382612c62565b602082019050919050565b60006020820190508181036000830152612cc781612c8b565b9050919050565b600081905092915050565b50565b6000612ce9600083612cce565b9150612cf482612cd9565b600082019050919050565b6000612d0a82612cdc565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000612d4e826124a8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612d8057612d7f612b4f565b5b600182019050919050565b600081905092915050565b6000612da1826123ed565b612dab8185612d8b565b9350612dbb818560208601612409565b80840191505092915050565b60008190508160005260206000209050919050565b60008154612de981612b1e565b612df38186612d8b565b94506001821660008114612e0e5760018114612e1f57612e52565b60ff19831686528186019350612e52565b612e2885612dc7565b60005b83811015612e4a57815481890152600182019150602081019050612e2b565b838801955050505b50505092915050565b6000612e678286612d96565b9150612e738285612d96565b9150612e7f8284612ddc565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ee86026836123f8565b9150612ef382612e8c565b604082019050919050565b60006020820190508181036000830152612f1781612edb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612f546020836123f8565b9150612f5f82612f1e565b602082019050919050565b60006020820190508181036000830152612f8381612f47565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612fb182612f8a565b612fbb8185612f95565b9350612fcb818560208601612409565b612fd48161243c565b840191505092915050565b6000608082019050612ff4600083018761253d565b613001602083018661253d565b61300e60408301856125d3565b81810360608301526130208184612fa6565b905095945050505050565b60008151905061303a8161235e565b92915050565b60006020828403121561305657613055612328565b5b60006130648482850161302b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006130a7826124a8565b91506130b2836124a8565b9250826130c2576130c161306d565b5b828204905092915050565b60006130d8826124a8565b91506130e3836124a8565b9250826130f3576130f261306d565b5b82820690509291505056fea26469706673582212209f5c72067fcc6f8617e8e3de5cae3a554107e67be7cd0d568a06e39e681d16c464736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d54353375616f54787837537a635632385a4e7262695a56696235523833633557747057456643436238346f342f00000000000000000000

-----Decoded View---------------
Arg [0] : _initBaseURI (string): ipfs://QmT53uaoTxx7SzcV28ZNrbiZVib5R83c5WtpWEfCCb84o4/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d54353375616f54787837537a635632385a4e7262695a56
Arg [3] : 696235523833633557747057456643436238346f342f00000000000000000000


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.