ETH Price: $3,309.53 (+1.19%)
Gas: 8 Gwei

Contract

0xd981a18D369aDd1FF0E2DFFC6Fe0c6FEBa93a808
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Air Drop157965142022-10-21 12:34:35648 days ago1666355675IN
0xd981a18D...EBa93a808
0 ETH0.0019895524.83371273
Safe Transfer Fr...156946242022-10-07 7:06:23662 days ago1665126383IN
0xd981a18D...EBa93a808
0 ETH0.000395056.14772039
Air Drop156817272022-10-05 11:53:23664 days ago1664970803IN
0xd981a18D...EBa93a808
0 ETH0.000513696.41194946
Withdraw155960342022-09-23 12:25:47676 days ago1663935947IN
0xd981a18D...EBa93a808
0 ETH0.0004382410.94840102
Safe Transfer Fr...155659072022-09-19 6:53:59680 days ago1663570439IN
0xd981a18D...EBa93a808
0 ETH0.000360615.61171077
Lucky Mint155388322022-09-15 11:34:23684 days ago1663241663IN
0xd981a18D...EBa93a808
0.0777 ETH0.00097039.10051599
Safe Transfer Fr...155166672022-09-11 19:52:12687 days ago1662925932IN
0xd981a18D...EBa93a808
0 ETH0.001199918.67242529
Air Drop155166042022-09-11 19:38:49687 days ago1662925129IN
0xd981a18D...EBa93a808
0 ETH0.0016957221.16613909
Air Drop154831262022-09-06 8:56:24693 days ago1662454584IN
0xd981a18D...EBa93a808
0 ETH0.002359068.60176917
Safe Transfer Fr...154194782022-08-27 4:21:22703 days ago1661574082IN
0xd981a18D...EBa93a808
0 ETH0.000467516.03100253
Safe Transfer Fr...154194752022-08-27 4:20:48703 days ago1661574048IN
0xd981a18D...EBa93a808
0 ETH0.00056365.82035598
Withdraw153543732022-08-16 20:07:05713 days ago1660680425IN
0xd981a18D...EBa93a808
0 ETH0.0016291540.70029394
Lucky Mint153458152022-08-15 11:44:54715 days ago1660563894IN
0xd981a18D...EBa93a808
0.0777 ETH0.0023981222.49208867
Air Drop153294452022-08-12 21:37:54717 days ago1660340274IN
0xd981a18D...EBa93a808
0 ETH0.0021903710.32949034
Withdraw153024332022-08-08 15:45:53722 days ago1659973553IN
0xd981a18D...EBa93a808
0 ETH0.0007428818.55903657
Lucky Mint153011072022-08-08 10:47:29722 days ago1659955649IN
0xd981a18D...EBa93a808
0.5439 ETH0.000748676.3239635
Air Drop152823672022-08-05 12:38:41725 days ago1659703121IN
0xd981a18D...EBa93a808
0 ETH0.000995488.44184182
Air Drop152713042022-08-03 19:28:34726 days ago1659554914IN
0xd981a18D...EBa93a808
0 ETH0.0014999718.72552516
Air Drop152564402022-08-01 11:41:34729 days ago1659354094IN
0xd981a18D...EBa93a808
0 ETH0.000656718.1971355
Withdraw152549162022-08-01 6:09:03729 days ago1659334143IN
0xd981a18D...EBa93a808
0 ETH0.000174134.35027032
Air Drop152512802022-07-31 16:18:53730 days ago1659284333IN
0xd981a18D...EBa93a808
0 ETH0.0010658313.30378073
Air Drop152454402022-07-30 18:34:40730 days ago1659206080IN
0xd981a18D...EBa93a808
0 ETH0.00064598.06225796
Air Drop151799592022-07-20 14:06:22741 days ago1658325982IN
0xd981a18D...EBa93a808
0 ETH0.0021044526.26790799
Air Drop151792622022-07-20 11:38:37741 days ago1658317117IN
0xd981a18D...EBa93a808
0 ETH0.0008796310.97968885
Air Drop151784452022-07-20 8:36:27741 days ago1658306187IN
0xd981a18D...EBa93a808
0 ETH0.0017404321.724244
View all transactions

Latest 8 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
155960342022-09-23 12:25:47676 days ago1663935947
0xd981a18D...EBa93a808
0.073815 ETH
155960342022-09-23 12:25:47676 days ago1663935947
0xd981a18D...EBa93a808
0.003885 ETH
153543732022-08-16 20:07:05713 days ago1660680425
0xd981a18D...EBa93a808
0.073815 ETH
153543732022-08-16 20:07:05713 days ago1660680425
0xd981a18D...EBa93a808
0.003885 ETH
153024332022-08-08 15:45:53722 days ago1659973553
0xd981a18D...EBa93a808
0.516705 ETH
153024332022-08-08 15:45:53722 days ago1659973553
0xd981a18D...EBa93a808
0.027195 ETH
152549162022-08-01 6:09:03729 days ago1659334143
0xd981a18D...EBa93a808
0.369075 ETH
152549162022-08-01 6:09:03729 days ago1659334143
0xd981a18D...EBa93a808
0.019425 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LuckyRabbitsClub

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : LuckyRabbitsClub.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;

//                                ',~[{{1/`         `?(?l^'                                
//                          .^l_[?I^'...'`-t,    ._*B@,'`,i[}]-l"'                          
//                         jt"l"'''.''...'''lrI  {%&B[......'`,:,%"                        
//                        ,B%`:^.............';r+%&8M'........':;v                          
//                        >B%)................'i@B8@:...........#`                          
//                        .M%@".............'>M@%#&x...........>|                          
//                         ^BWM............:&W_#xnB`..........'&'                          
//                          1#W]...........]x.^c\c}...........1_                            
//                          .M&%'..........'z`\vz%'..........^&.                            
//                           ^8#t...........`#B8&-......... .x:                            
//                            _v*;...........IBM&. ........ ;v                              
//                             x*M'...........|B:. .........W`                              
//                             'MW[........................-|                              
//                             ~&@B`. .....................&l                              
//                           'v%%@z^. ......................!x,                            
//                          ;WzMW;.........................  .-t.                          
//                         ?cuMn'............................ .^c'                          
//                        "c(cr............`>{[?(v\<`..........'^#.                        
//                        uf(W...........^j~'    'v$@n^.........^+\                        
//                       .#{W; .........<j.       .$&&B;........l.%'                        
//                       `u)@..........`W          Bzuu%....... l./!                        
//                       '&uW..........>\         "Bzxn@`.......:'{_                        
//                        Mx8.........."W`       !%j(r|W........".t!                        
//                        }u@`.^........[$v_;,I{W%vcvt8,........^.%'                        
//                        .&&1.`'........:*@B@$$BMjj*t`........'.?)                        
//                         ,M@,."^.........^_/v*uj)l'...........,*.                        
//                          ,&%,.":............................"c.                          
//                           ^#B_.'"`.........................-f.                          
//                            .]%z;...".....................Ij,                            
//                              '[8#~'............      .`?\,                              
//                                .,{#v-,'...       .`:[)!'                                
//                                    .^I-}]???]????_:`                                    

/// @title Lucky Rabbits Club
/// @notice The Lucky Rabbits Club is a collection of 7,777 utility-enabled Lucky Rabbit NFTs designed to bring you good luck.
/// @author TMT Labs - https://twitter.com/tmtlabs - tmtlab.eth

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

contract LuckyRabbitsClub is ERC721A, Ownable {
    using Strings for uint256;

    bool public paused = true;
    bool public revealed = false;
    uint256 public salePrice = 77700000000000000;
    uint256 public maxMintLimit = 7;
    uint256 public maxTokens = 7777;
    string public baseUri;
    string public notRevealedUri;
    address public stakingContract;

    mapping(address => uint256) public addressMintedCount;

    constructor() ERC721A("Lucky Rabbits Club", "LRC") {}

    /// @notice Change the contract state
    /// @param _paused the new state of the contract. false/0 = unpaused, true/1 = paused
    function setPaused(bool _paused) public onlyOwner {
        paused = _paused;
    }

    /// @notice Set's the BaseUri for the NFTs.
    /// @dev the BaseUri is the IPFS base that stores the metadata and images
    /// @param _baseUri the new base uri
    function setBaseUri(string memory _baseUri) public onlyOwner {
        baseUri = _baseUri;
    }

    /// @notice Set's the BaseUri for the NFTs.
    /// @dev the BaseUri is the IPFS base that stores the metadata and images
    /// @param _notRevealedUri the new not revealed uri
    function setNotRevealedUri(string memory _notRevealedUri) public onlyOwner {
        notRevealedUri = _notRevealedUri;
    }

    /// @notice Reveal's the collection
    /// @param _reveal new state of revealed,  false/0 = not-revealed, true/1 = revealed
    function reveal(bool _reveal) public onlyOwner {
        revealed = _reveal;
    }

    // Override ERC721A start token from 1
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    /// @notice Returns a token's metadata uri
    /// @dev Override existing erc721 function to include not revealed uri
    /// @param _tokenId TokenId for which the URI is to be returned
    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory){
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");

        if (revealed == false) {
            return notRevealedUri;
        }

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

    // Ensures common minting requirements are met
    modifier mintCheck(uint256 _mintQty) {
        require(_mintQty > 0, "Must Mint atleast 1.");
        require(_mintQty + totalSupply() <=  maxTokens, "Exceeded the maximum available tokens.");
        _;
    }

    /// @notice Public Mint
    /// @dev ensured all the mint criteria has been met and then mints the NFTs
    /// @param _qty The number of NFTs to be minted
    function luckyMint(uint256 _qty) public payable mintCheck(_qty) {
        require(!paused, "The contract is paused.");
        require(_qty <= maxMintLimit, "Exceeded the maximum mintable limit.");
        require(addressMintedCount[msg.sender] + _qty <= maxMintLimit, "Exceeded wallet mint limit.");
        require(msg.value >= _qty * salePrice, "Not enough funds to mint.");

        mint(msg.sender, _qty);
        addressMintedCount[msg.sender] =  addressMintedCount[msg.sender] + _qty;
    }

    /// @notice Mint for Owner
    /// @dev Allows the owner to mint NFTs for partners, promotions and giveaways
    /// @param _qty The number of NFTs to be minted
    function ownerMint(uint256 _qty) public onlyOwner mintCheck(_qty) {
        mint(msg.sender, _qty);
    }

    /// @notice Function that Air Drops NFTs
    /// @dev Mints and transfers an NFT to a wallet
    /// @param _address The wallet for whome to mint the NFTs
    /// @param _qty The number of NFTs to be minted
    function airDrop(address _address, uint256 _qty) public onlyOwner mintCheck(_qty) {
        mint(_address, _qty);
    }

    // Internal minting function
    function mint(address _address, uint256 _qty) internal {
        _mint(_address, _qty);
    }

    /// @notice sets the staking contract address
    /// @param _stakingContract address of staking contract
    function setStakeContract(address _stakingContract) public onlyOwner {
        stakingContract = _stakingContract;
    }

    /// @dev Preapproves staking contract without costing holder gas to approve
    function isApprovedForAll(address _owner, address _operator) public view override returns (bool) {      
        if (_operator == stakingContract) {
          return true;
        }

        return super.isApprovedForAll(_owner, _operator);
    }

    /// @notice lists all the NFTs owner by a wallet
    /// @param _owner address of wallet to check
    /// @return array of NFTs owned by the _owner
    function walletOfOwner(address _owner) public view returns (uint256[] memory) {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256 mintedTokens = totalSupply();
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        uint256 currentTokenId = 1;
        uint256 ownedTokenIndex = 0;

        while (ownedTokenIndex < ownerTokenCount && currentTokenId <= mintedTokens) {
            if (ownerOf(currentTokenId) == _owner) {
                ownedTokenIds[ownedTokenIndex] = currentTokenId;
                ownedTokenIndex++;
            }
            currentTokenId++;
        }
        return ownedTokenIds;
    }

    /// @notice Withdraws contract balance
    /// @dev withdraws 5% of balance to TMTLabs (tmtlab.eth) and remaining to owner's address
    function withdraw() public payable onlyOwner {
    
    // Transfer 5% to TMT Labs
    (bool tmt, ) = payable(0x9c3213422b5DE9223B1cdC764e3cc17249A7c033).call{value: address(this).balance * 5 / 100}("");
    require(tmt);
    
    // Transfers remaining balance to owner.
    (bool lrc, ) = payable(owner()).call{value: address(this).balance}("");
    require(lrc);
  }
}

File 2 of 6 : 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 3 of 6 : 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 4 of 6 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

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

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

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

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

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

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

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

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

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

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

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

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

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

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

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

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

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

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

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

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`.
        uint24 extraData;
    }

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

    // ==============================
    //            IERC165
    // ==============================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"luckyMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"maxMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_reveal","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedUri","type":"string"}],"name":"setNotRevealedUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingContract","type":"address"}],"name":"setStakeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60806040526008805461ffff60a01b1916600160a01b1790556701140bbd030c40006009556007600a55611e61600b553480156200003c57600080fd5b506040805180820182526012815271263ab1b5bc902930b13134ba399021b63ab160711b6020808301918252835180850190945260038452624c524360e81b908401528151919291620000929160029162000113565b508051620000a890600390602084019062000113565b5050600160005550620000bb33620000c1565b620001f5565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012190620001b9565b90600052602060002090601f01602090048101928262000145576000855562000190565b82601f106200016057805160ff191683800117855562000190565b8280016001018555821562000190579182015b828111156200019057825182559160200191906001019062000173565b506200019e929150620001a2565b5090565b5b808211156200019e5760008155600101620001a3565b600181811c90821680620001ce57607f821691505b602082108103620001ef57634e487b7160e01b600052602260045260246000fd5b50919050565b611eb980620002056000396000f3fe60806040526004361061020f5760003560e01c8063715018a611610118578063b88d4fde116100a0578063e985e9c51161006f578063e985e9c5146105dd578063ee99205c146105fd578063f19e75d41461061d578063f2fde38b1461063d578063f51f96dd1461065d57600080fd5b8063b88d4fde14610567578063c17ecd1214610587578063c87b56dd146105a7578063e8315742146105c757600080fd5b8063940cd05b116100e7578063940cd05b146104dd57806395d89b41146104fd5780639abc832014610512578063a0bcfc7f14610527578063a22cb4651461054757600080fd5b8063715018a61461046a5780638726d8361461047f5780638c5db776146104925780638da5cb5b146104bf57600080fd5b80633ccfd60b1161019b578063518302271161016a57806351830227146103d25780635c975abb146103f35780636352211e1461041457806370a082311461043457806370e2f8271461045457600080fd5b80633ccfd60b1461035d57806342842e0e14610365578063438b630014610385578063509484d5146103b257600080fd5b8063081c8c44116101e2578063081c8c44146102c5578063095ea7b3146102da57806316c38b3c146102fa57806318160ddd1461031a57806323b872dd1461033d57600080fd5b806301ffc9a714610214578063045f78501461024957806306fdde031461026b578063081812fc1461028d575b600080fd5b34801561022057600080fd5b5061023461022f366004611879565b610673565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b506102696102643660046118b2565b6106c5565b005b34801561027757600080fd5b50610280610739565b6040516102409190611934565b34801561029957600080fd5b506102ad6102a8366004611947565b6107cb565b6040516001600160a01b039091168152602001610240565b3480156102d157600080fd5b5061028061080f565b3480156102e657600080fd5b506102696102f53660046118b2565b61089d565b34801561030657600080fd5b50610269610315366004611970565b61093d565b34801561032657600080fd5b5061032f610963565b604051908152602001610240565b34801561034957600080fd5b5061026961035836600461198b565b610971565b610269610b09565b34801561037157600080fd5b5061026961038036600461198b565b610c03565b34801561039157600080fd5b506103a56103a03660046119c7565b610c1e565b60405161024091906119e2565b3480156103be57600080fd5b506102696103cd3660046119c7565b610d03565b3480156103de57600080fd5b5060085461023490600160a81b900460ff1681565b3480156103ff57600080fd5b5060085461023490600160a01b900460ff1681565b34801561042057600080fd5b506102ad61042f366004611947565b610d2d565b34801561044057600080fd5b5061032f61044f3660046119c7565b610d38565b34801561046057600080fd5b5061032f600a5481565b34801561047657600080fd5b50610269610d87565b61026961048d366004611947565b610d9b565b34801561049e57600080fd5b5061032f6104ad3660046119c7565b600f6020526000908152604090205481565b3480156104cb57600080fd5b506008546001600160a01b03166102ad565b3480156104e957600080fd5b506102696104f8366004611970565b610fa8565b34801561050957600080fd5b50610280610fce565b34801561051e57600080fd5b50610280610fdd565b34801561053357600080fd5b50610269610542366004611ab2565b610fea565b34801561055357600080fd5b50610269610562366004611afb565b611005565b34801561057357600080fd5b50610269610582366004611b2e565b61109a565b34801561059357600080fd5b506102696105a2366004611ab2565b6110e4565b3480156105b357600080fd5b506102806105c2366004611947565b6110ff565b3480156105d357600080fd5b5061032f600b5481565b3480156105e957600080fd5b506102346105f8366004611baa565b611272565b34801561060957600080fd5b50600e546102ad906001600160a01b031681565b34801561062957600080fd5b50610269610638366004611947565b6112c4565b34801561064957600080fd5b506102696106583660046119c7565b61132a565b34801561066957600080fd5b5061032f60095481565b60006301ffc9a760e01b6001600160e01b0319831614806106a457506380ac58cd60e01b6001600160e01b03198316145b806106bf5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6106cd6113a3565b80600081116106f75760405162461bcd60e51b81526004016106ee90611bd4565b60405180910390fd5b600b54610702610963565b61070c9083611c18565b111561072a5760405162461bcd60e51b81526004016106ee90611c30565b61073483836113fd565b505050565b60606002805461074890611c76565b80601f016020809104026020016040519081016040528092919081815260200182805461077490611c76565b80156107c15780601f10610796576101008083540402835291602001916107c1565b820191906000526020600020905b8154815290600101906020018083116107a457829003601f168201915b5050505050905090565b60006107d682611407565b6107f3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600d805461081c90611c76565b80601f016020809104026020016040519081016040528092919081815260200182805461084890611c76565b80156108955780601f1061086a57610100808354040283529160200191610895565b820191906000526020600020905b81548152906001019060200180831161087857829003601f168201915b505050505081565b60006108a882610d2d565b9050336001600160a01b038216146108e1576108c48133611272565b6108e1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109456113a3565b60088054911515600160a01b0260ff60a01b19909216919091179055565b600154600054036000190190565b600061097c8261143c565b9050836001600160a01b0316816001600160a01b0316146109af5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176109fc576109df8633611272565b6109fc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a2357604051633a954ecd60e21b815260040160405180910390fd5b8015610a2e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610ac057600184016000818152600460205260408120549003610abe576000548114610abe5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610b116113a3565b6000739c3213422b5de9223b1cdc764e3cc17249a7c0336064610b35476005611cb0565b610b3f9190611ce5565b604051600081818185875af1925050503d8060008114610b7b576040519150601f19603f3d011682016040523d82523d6000602084013e610b80565b606091505b5050905080610b8e57600080fd5b6000610ba26008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610bec576040519150601f19603f3d011682016040523d82523d6000602084013e610bf1565b606091505b5050905080610bff57600080fd5b5050565b6107348383836040518060200160405280600081525061109a565b60606000610c2b83610d38565b90506000610c37610963565b905060008267ffffffffffffffff811115610c5457610c54611a26565b604051908082528060200260200182016040528015610c7d578160200160208202803683370190505b509050600160005b8481108015610c945750838211155b15610cf857866001600160a01b0316610cac83610d2d565b6001600160a01b031603610ce65781838281518110610ccd57610ccd611cf9565b602090810291909101015280610ce281611d0f565b9150505b81610cf081611d0f565b925050610c85565b509095945050505050565b610d0b6113a3565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60006106bf8261143c565b60006001600160a01b038216610d61576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d8f6113a3565b610d9960006114ab565b565b8060008111610dbc5760405162461bcd60e51b81526004016106ee90611bd4565b600b54610dc7610963565b610dd19083611c18565b1115610def5760405162461bcd60e51b81526004016106ee90611c30565b600854600160a01b900460ff1615610e495760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e7472616374206973207061757365642e00000000000000000060448201526064016106ee565b600a54821115610ea75760405162461bcd60e51b8152602060048201526024808201527f457863656564656420746865206d6178696d756d206d696e7461626c65206c6960448201526336b4ba1760e11b60648201526084016106ee565b600a54336000908152600f6020526040902054610ec5908490611c18565b1115610f135760405162461bcd60e51b815260206004820152601b60248201527f45786365656465642077616c6c6574206d696e74206c696d69742e000000000060448201526064016106ee565b600954610f209083611cb0565b341015610f6f5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f7567682066756e647320746f206d696e742e0000000000000060448201526064016106ee565b610f7933836113fd565b336000908152600f6020526040902054610f94908390611c18565b336000908152600f60205260409020555050565b610fb06113a3565b60088054911515600160a81b0260ff60a81b19909216919091179055565b60606003805461074890611c76565b600c805461081c90611c76565b610ff26113a3565b8051610bff90600c9060208401906117ca565b336001600160a01b0383160361102e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110a5848484610971565b6001600160a01b0383163b156110de576110c1848484846114fd565b6110de576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6110ec6113a3565b8051610bff90600d9060208401906117ca565b606061110a82611407565b61116e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106ee565b600854600160a81b900460ff16151560000361121657600d805461119190611c76565b80601f01602080910402602001604051908101604052809291908181526020018280546111bd90611c76565b801561120a5780601f106111df5761010080835404028352916020019161120a565b820191906000526020600020905b8154815290600101906020018083116111ed57829003601f168201915b50505050509050919050565b6000600c805461122590611c76565b90501161124157604051806020016040528060008152506106bf565b600c61124c836115e9565b60405160200161125d929190611d44565b60405160208183030381529060405292915050565b600e546000906001600160a01b0390811690831603611293575060016106bf565b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff165b9392505050565b6112cc6113a3565b80600081116112ed5760405162461bcd60e51b81526004016106ee90611bd4565b600b546112f8610963565b6113029083611c18565b11156113205760405162461bcd60e51b81526004016106ee90611c30565b610bff33836113fd565b6113326113a3565b6001600160a01b0381166113975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ee565b6113a0816114ab565b50565b6008546001600160a01b03163314610d995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b610bff82826116ea565b60008160011115801561141b575060005482105b80156106bf575050600090815260046020526040902054600160e01b161590565b60008180600111611492576000548110156114925760008181526004602052604081205490600160e01b82169003611490575b806000036112bd57506000190160008181526004602052604090205461146f565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611532903390899088908890600401611dfe565b6020604051808303816000875af192505050801561156d575060408051601f3d908101601f1916820190925261156a91810190611e3b565b60015b6115cb573d80801561159b576040519150601f19603f3d011682016040523d82523d6000602084013e6115a0565b606091505b5080516000036115c3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036116105750506040805180820190915260018152600360fc1b602082015290565b8160005b811561163a578061162481611d0f565b91506116339050600a83611ce5565b9150611614565b60008167ffffffffffffffff81111561165557611655611a26565b6040519080825280601f01601f19166020018201604052801561167f576020820181803683370190505b5090505b84156115e157611694600183611e58565b91506116a1600a86611e6f565b6116ac906030611c18565b60f81b8183815181106116c1576116c1611cf9565b60200101906001600160f81b031916908160001a9053506116e3600a86611ce5565b9450611683565b6000546001600160a01b03831661171357604051622e076360e81b815260040160405180910390fd5b816000036117345760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061177e5760005550505050565b8280546117d690611c76565b90600052602060002090601f0160209004810192826117f8576000855561183e565b82601f1061181157805160ff191683800117855561183e565b8280016001018555821561183e579182015b8281111561183e578251825591602001919060010190611823565b5061184a92915061184e565b5090565b5b8082111561184a576000815560010161184f565b6001600160e01b0319811681146113a057600080fd5b60006020828403121561188b57600080fd5b81356112bd81611863565b80356001600160a01b03811681146118ad57600080fd5b919050565b600080604083850312156118c557600080fd5b6118ce83611896565b946020939093013593505050565b60005b838110156118f75781810151838201526020016118df565b838111156110de5750506000910152565b600081518084526119208160208601602086016118dc565b601f01601f19169290920160200192915050565b6020815260006112bd6020830184611908565b60006020828403121561195957600080fd5b5035919050565b803580151581146118ad57600080fd5b60006020828403121561198257600080fd5b6112bd82611960565b6000806000606084860312156119a057600080fd5b6119a984611896565b92506119b760208501611896565b9150604084013590509250925092565b6000602082840312156119d957600080fd5b6112bd82611896565b6020808252825182820181905260009190848201906040850190845b81811015611a1a578351835292840192918401916001016119fe565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a5757611a57611a26565b604051601f8501601f19908116603f01168101908282118183101715611a7f57611a7f611a26565b81604052809350858152868686011115611a9857600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ac457600080fd5b813567ffffffffffffffff811115611adb57600080fd5b8201601f81018413611aec57600080fd5b6115e184823560208401611a3c565b60008060408385031215611b0e57600080fd5b611b1783611896565b9150611b2560208401611960565b90509250929050565b60008060008060808587031215611b4457600080fd5b611b4d85611896565b9350611b5b60208601611896565b925060408501359150606085013567ffffffffffffffff811115611b7e57600080fd5b8501601f81018713611b8f57600080fd5b611b9e87823560208401611a3c565b91505092959194509250565b60008060408385031215611bbd57600080fd5b611bc683611896565b9150611b2560208401611896565b60208082526014908201527326bab9ba1026b4b73a1030ba3632b0b9ba10189760611b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611c2b57611c2b611c02565b500190565b60208082526026908201527f457863656564656420746865206d6178696d756d20617661696c61626c65207460408201526537b5b2b7399760d11b606082015260800190565b600181811c90821680611c8a57607f821691505b602082108103611caa57634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615611cca57611cca611c02565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611cf457611cf4611ccf565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201611d2157611d21611c02565b5060010190565b60008151611d3a8185602086016118dc565b9290920192915050565b600080845481600182811c915080831680611d6057607f831692505b60208084108203611d7f57634e487b7160e01b86526022600452602486fd5b818015611d935760018114611da457611dd1565b60ff19861689528489019650611dd1565b60008b81526020902060005b86811015611dc95781548b820152908501908301611db0565b505084890196505b505050505050611df5611de48286611d28565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e3190830184611908565b9695505050505050565b600060208284031215611e4d57600080fd5b81516112bd81611863565b600082821015611e6a57611e6a611c02565b500390565b600082611e7e57611e7e611ccf565b50069056fea2646970667358221220421caaa0389da4e7a5d88775989418df443a211f84103f2de89e986ddadb08fd64736f6c634300080e0033

Deployed Bytecode

0x60806040526004361061020f5760003560e01c8063715018a611610118578063b88d4fde116100a0578063e985e9c51161006f578063e985e9c5146105dd578063ee99205c146105fd578063f19e75d41461061d578063f2fde38b1461063d578063f51f96dd1461065d57600080fd5b8063b88d4fde14610567578063c17ecd1214610587578063c87b56dd146105a7578063e8315742146105c757600080fd5b8063940cd05b116100e7578063940cd05b146104dd57806395d89b41146104fd5780639abc832014610512578063a0bcfc7f14610527578063a22cb4651461054757600080fd5b8063715018a61461046a5780638726d8361461047f5780638c5db776146104925780638da5cb5b146104bf57600080fd5b80633ccfd60b1161019b578063518302271161016a57806351830227146103d25780635c975abb146103f35780636352211e1461041457806370a082311461043457806370e2f8271461045457600080fd5b80633ccfd60b1461035d57806342842e0e14610365578063438b630014610385578063509484d5146103b257600080fd5b8063081c8c44116101e2578063081c8c44146102c5578063095ea7b3146102da57806316c38b3c146102fa57806318160ddd1461031a57806323b872dd1461033d57600080fd5b806301ffc9a714610214578063045f78501461024957806306fdde031461026b578063081812fc1461028d575b600080fd5b34801561022057600080fd5b5061023461022f366004611879565b610673565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b506102696102643660046118b2565b6106c5565b005b34801561027757600080fd5b50610280610739565b6040516102409190611934565b34801561029957600080fd5b506102ad6102a8366004611947565b6107cb565b6040516001600160a01b039091168152602001610240565b3480156102d157600080fd5b5061028061080f565b3480156102e657600080fd5b506102696102f53660046118b2565b61089d565b34801561030657600080fd5b50610269610315366004611970565b61093d565b34801561032657600080fd5b5061032f610963565b604051908152602001610240565b34801561034957600080fd5b5061026961035836600461198b565b610971565b610269610b09565b34801561037157600080fd5b5061026961038036600461198b565b610c03565b34801561039157600080fd5b506103a56103a03660046119c7565b610c1e565b60405161024091906119e2565b3480156103be57600080fd5b506102696103cd3660046119c7565b610d03565b3480156103de57600080fd5b5060085461023490600160a81b900460ff1681565b3480156103ff57600080fd5b5060085461023490600160a01b900460ff1681565b34801561042057600080fd5b506102ad61042f366004611947565b610d2d565b34801561044057600080fd5b5061032f61044f3660046119c7565b610d38565b34801561046057600080fd5b5061032f600a5481565b34801561047657600080fd5b50610269610d87565b61026961048d366004611947565b610d9b565b34801561049e57600080fd5b5061032f6104ad3660046119c7565b600f6020526000908152604090205481565b3480156104cb57600080fd5b506008546001600160a01b03166102ad565b3480156104e957600080fd5b506102696104f8366004611970565b610fa8565b34801561050957600080fd5b50610280610fce565b34801561051e57600080fd5b50610280610fdd565b34801561053357600080fd5b50610269610542366004611ab2565b610fea565b34801561055357600080fd5b50610269610562366004611afb565b611005565b34801561057357600080fd5b50610269610582366004611b2e565b61109a565b34801561059357600080fd5b506102696105a2366004611ab2565b6110e4565b3480156105b357600080fd5b506102806105c2366004611947565b6110ff565b3480156105d357600080fd5b5061032f600b5481565b3480156105e957600080fd5b506102346105f8366004611baa565b611272565b34801561060957600080fd5b50600e546102ad906001600160a01b031681565b34801561062957600080fd5b50610269610638366004611947565b6112c4565b34801561064957600080fd5b506102696106583660046119c7565b61132a565b34801561066957600080fd5b5061032f60095481565b60006301ffc9a760e01b6001600160e01b0319831614806106a457506380ac58cd60e01b6001600160e01b03198316145b806106bf5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6106cd6113a3565b80600081116106f75760405162461bcd60e51b81526004016106ee90611bd4565b60405180910390fd5b600b54610702610963565b61070c9083611c18565b111561072a5760405162461bcd60e51b81526004016106ee90611c30565b61073483836113fd565b505050565b60606002805461074890611c76565b80601f016020809104026020016040519081016040528092919081815260200182805461077490611c76565b80156107c15780601f10610796576101008083540402835291602001916107c1565b820191906000526020600020905b8154815290600101906020018083116107a457829003601f168201915b5050505050905090565b60006107d682611407565b6107f3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600d805461081c90611c76565b80601f016020809104026020016040519081016040528092919081815260200182805461084890611c76565b80156108955780601f1061086a57610100808354040283529160200191610895565b820191906000526020600020905b81548152906001019060200180831161087857829003601f168201915b505050505081565b60006108a882610d2d565b9050336001600160a01b038216146108e1576108c48133611272565b6108e1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109456113a3565b60088054911515600160a01b0260ff60a01b19909216919091179055565b600154600054036000190190565b600061097c8261143c565b9050836001600160a01b0316816001600160a01b0316146109af5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176109fc576109df8633611272565b6109fc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a2357604051633a954ecd60e21b815260040160405180910390fd5b8015610a2e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610ac057600184016000818152600460205260408120549003610abe576000548114610abe5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610b116113a3565b6000739c3213422b5de9223b1cdc764e3cc17249a7c0336064610b35476005611cb0565b610b3f9190611ce5565b604051600081818185875af1925050503d8060008114610b7b576040519150601f19603f3d011682016040523d82523d6000602084013e610b80565b606091505b5050905080610b8e57600080fd5b6000610ba26008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610bec576040519150601f19603f3d011682016040523d82523d6000602084013e610bf1565b606091505b5050905080610bff57600080fd5b5050565b6107348383836040518060200160405280600081525061109a565b60606000610c2b83610d38565b90506000610c37610963565b905060008267ffffffffffffffff811115610c5457610c54611a26565b604051908082528060200260200182016040528015610c7d578160200160208202803683370190505b509050600160005b8481108015610c945750838211155b15610cf857866001600160a01b0316610cac83610d2d565b6001600160a01b031603610ce65781838281518110610ccd57610ccd611cf9565b602090810291909101015280610ce281611d0f565b9150505b81610cf081611d0f565b925050610c85565b509095945050505050565b610d0b6113a3565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60006106bf8261143c565b60006001600160a01b038216610d61576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d8f6113a3565b610d9960006114ab565b565b8060008111610dbc5760405162461bcd60e51b81526004016106ee90611bd4565b600b54610dc7610963565b610dd19083611c18565b1115610def5760405162461bcd60e51b81526004016106ee90611c30565b600854600160a01b900460ff1615610e495760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e7472616374206973207061757365642e00000000000000000060448201526064016106ee565b600a54821115610ea75760405162461bcd60e51b8152602060048201526024808201527f457863656564656420746865206d6178696d756d206d696e7461626c65206c6960448201526336b4ba1760e11b60648201526084016106ee565b600a54336000908152600f6020526040902054610ec5908490611c18565b1115610f135760405162461bcd60e51b815260206004820152601b60248201527f45786365656465642077616c6c6574206d696e74206c696d69742e000000000060448201526064016106ee565b600954610f209083611cb0565b341015610f6f5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f7567682066756e647320746f206d696e742e0000000000000060448201526064016106ee565b610f7933836113fd565b336000908152600f6020526040902054610f94908390611c18565b336000908152600f60205260409020555050565b610fb06113a3565b60088054911515600160a81b0260ff60a81b19909216919091179055565b60606003805461074890611c76565b600c805461081c90611c76565b610ff26113a3565b8051610bff90600c9060208401906117ca565b336001600160a01b0383160361102e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110a5848484610971565b6001600160a01b0383163b156110de576110c1848484846114fd565b6110de576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6110ec6113a3565b8051610bff90600d9060208401906117ca565b606061110a82611407565b61116e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106ee565b600854600160a81b900460ff16151560000361121657600d805461119190611c76565b80601f01602080910402602001604051908101604052809291908181526020018280546111bd90611c76565b801561120a5780601f106111df5761010080835404028352916020019161120a565b820191906000526020600020905b8154815290600101906020018083116111ed57829003601f168201915b50505050509050919050565b6000600c805461122590611c76565b90501161124157604051806020016040528060008152506106bf565b600c61124c836115e9565b60405160200161125d929190611d44565b60405160208183030381529060405292915050565b600e546000906001600160a01b0390811690831603611293575060016106bf565b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff165b9392505050565b6112cc6113a3565b80600081116112ed5760405162461bcd60e51b81526004016106ee90611bd4565b600b546112f8610963565b6113029083611c18565b11156113205760405162461bcd60e51b81526004016106ee90611c30565b610bff33836113fd565b6113326113a3565b6001600160a01b0381166113975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ee565b6113a0816114ab565b50565b6008546001600160a01b03163314610d995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ee565b610bff82826116ea565b60008160011115801561141b575060005482105b80156106bf575050600090815260046020526040902054600160e01b161590565b60008180600111611492576000548110156114925760008181526004602052604081205490600160e01b82169003611490575b806000036112bd57506000190160008181526004602052604090205461146f565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611532903390899088908890600401611dfe565b6020604051808303816000875af192505050801561156d575060408051601f3d908101601f1916820190925261156a91810190611e3b565b60015b6115cb573d80801561159b576040519150601f19603f3d011682016040523d82523d6000602084013e6115a0565b606091505b5080516000036115c3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036116105750506040805180820190915260018152600360fc1b602082015290565b8160005b811561163a578061162481611d0f565b91506116339050600a83611ce5565b9150611614565b60008167ffffffffffffffff81111561165557611655611a26565b6040519080825280601f01601f19166020018201604052801561167f576020820181803683370190505b5090505b84156115e157611694600183611e58565b91506116a1600a86611e6f565b6116ac906030611c18565b60f81b8183815181106116c1576116c1611cf9565b60200101906001600160f81b031916908160001a9053506116e3600a86611ce5565b9450611683565b6000546001600160a01b03831661171357604051622e076360e81b815260040160405180910390fd5b816000036117345760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061177e5760005550505050565b8280546117d690611c76565b90600052602060002090601f0160209004810192826117f8576000855561183e565b82601f1061181157805160ff191683800117855561183e565b8280016001018555821561183e579182015b8281111561183e578251825591602001919060010190611823565b5061184a92915061184e565b5090565b5b8082111561184a576000815560010161184f565b6001600160e01b0319811681146113a057600080fd5b60006020828403121561188b57600080fd5b81356112bd81611863565b80356001600160a01b03811681146118ad57600080fd5b919050565b600080604083850312156118c557600080fd5b6118ce83611896565b946020939093013593505050565b60005b838110156118f75781810151838201526020016118df565b838111156110de5750506000910152565b600081518084526119208160208601602086016118dc565b601f01601f19169290920160200192915050565b6020815260006112bd6020830184611908565b60006020828403121561195957600080fd5b5035919050565b803580151581146118ad57600080fd5b60006020828403121561198257600080fd5b6112bd82611960565b6000806000606084860312156119a057600080fd5b6119a984611896565b92506119b760208501611896565b9150604084013590509250925092565b6000602082840312156119d957600080fd5b6112bd82611896565b6020808252825182820181905260009190848201906040850190845b81811015611a1a578351835292840192918401916001016119fe565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a5757611a57611a26565b604051601f8501601f19908116603f01168101908282118183101715611a7f57611a7f611a26565b81604052809350858152868686011115611a9857600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ac457600080fd5b813567ffffffffffffffff811115611adb57600080fd5b8201601f81018413611aec57600080fd5b6115e184823560208401611a3c565b60008060408385031215611b0e57600080fd5b611b1783611896565b9150611b2560208401611960565b90509250929050565b60008060008060808587031215611b4457600080fd5b611b4d85611896565b9350611b5b60208601611896565b925060408501359150606085013567ffffffffffffffff811115611b7e57600080fd5b8501601f81018713611b8f57600080fd5b611b9e87823560208401611a3c565b91505092959194509250565b60008060408385031215611bbd57600080fd5b611bc683611896565b9150611b2560208401611896565b60208082526014908201527326bab9ba1026b4b73a1030ba3632b0b9ba10189760611b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611c2b57611c2b611c02565b500190565b60208082526026908201527f457863656564656420746865206d6178696d756d20617661696c61626c65207460408201526537b5b2b7399760d11b606082015260800190565b600181811c90821680611c8a57607f821691505b602082108103611caa57634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615611cca57611cca611c02565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611cf457611cf4611ccf565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201611d2157611d21611c02565b5060010190565b60008151611d3a8185602086016118dc565b9290920192915050565b600080845481600182811c915080831680611d6057607f831692505b60208084108203611d7f57634e487b7160e01b86526022600452602486fd5b818015611d935760018114611da457611dd1565b60ff19861689528489019650611dd1565b60008b81526020902060005b86811015611dc95781548b820152908501908301611db0565b505084890196505b505050505050611df5611de48286611d28565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e3190830184611908565b9695505050505050565b600060208284031215611e4d57600080fd5b81516112bd81611863565b600082821015611e6a57611e6a611c02565b500390565b600082611e7e57611e7e611ccf565b50069056fea2646970667358221220421caaa0389da4e7a5d88775989418df443a211f84103f2de89e986ddadb08fd64736f6c634300080e0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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