ETH Price: $3,098.41 (-1.70%)

Token

Couch Guyz (CG)
 

Overview

Max Total Supply

3,333 CG

Holders

988

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
spliffster.eth
Balance
2 CG
0xb86b6c777d3e39c81652c0a73b661dcdb07d6164
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CouchGuyz

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-09-30
*/

// SPDX-License-Identifier: MIT

// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// ERC721A Contracts v3.3.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();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

    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;
    }

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

// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.6;

library Address {
    function isContract(address account) internal view returns (bool) {
        uint size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @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 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`
    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 auxillary 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 auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            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;
    }

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

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

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

        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-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.code.length != 0) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

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

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

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            getApproved(tokenId) == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

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

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                getApproved(tokenId) == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

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

// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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


pragma solidity ^0.8.11;
pragma abicoder v2;

contract CouchGuyz is ERC721A, Ownable, ReentrancyGuard {
  using SafeMath for uint256;
  
  using MerkleProof for bytes32[];
  bytes32 public whitelistMerkleRoot;
  bool public preSaleIsActive = false;
  bool public saleIsActive = false;
  uint256 public tokenPrice = 30000000000000000;
  
  uint public constant MAX_TOKEN_PER_TXN = 4;
  
  uint256 public constant MAX_TOKENS = 3334;
  
  address public proxyRegistryAddress;
  mapping(address => uint256) private allowance;
  string public baseURI;
    
  constructor() ERC721A("Couch Guyz", "CG") {
    setBaseURI("https://blam.io/api/couch-guyz/token/");
    proxyRegistryAddress = address(0xa5409ec958C83C3f309868babACA7c86DCB077c1);
  }

  function updateTokenPrice(uint256 newPrice) public onlyOwner {
    require(!saleIsActive, "Sale must be inactive to change token price");
    tokenPrice = newPrice;
  }

  
  function withdraw() public onlyOwner {
    uint256 balance = address(this).balance;
    require(balance > 0);

    address owner = payable(_msgSender());
    address payoutAddress1 = payable(0xAc01B61D659bD72b120DB7c5289BBFc020771943);
    uint256 payoutPayment1 = balance.mul(2).div(100);
    address payoutAddress2 = payable(0x8fc1F1F48cBB2e4A0f1dfeB9e6019606b307C3c4);
    uint256 payoutPayment2 = balance.mul(5).div(100);
    
    (bool success1, ) = payoutAddress1.call{value: payoutPayment1}("");
    require(success1, "Failed to send.");
    
    (bool success2, ) = payoutAddress2.call{value: payoutPayment2}("");
    require(success2, "Failed to send.");
    

    (bool ownerSuccess, ) = owner.call{value: address(this).balance}("");
    require(ownerSuccess, "Failed to send to Owner.");
  }
  
  function setBaseURI(string memory _baseURI) public onlyOwner {
    baseURI = _baseURI;
  }

  function flipSaleState() public onlyOwner {
    saleIsActive = !saleIsActive;
  }
  
  function flipPreSaleState() public onlyOwner {
    preSaleIsActive = !preSaleIsActive;
  }
  
  function whitelistMint(uint256 numberOfTokens, uint256 allowed, bytes32[] memory proof) public payable nonReentrant {
    require(_msgSender() == tx.origin, "No smart contracts allowed.");
    require(preSaleIsActive, "Pre-sale not started or has ended");
    require(
      _verify(_leaf(_msgSender(), allowed), proof),
      "Your address is not whitelisted"
    );
    require(allowance[_msgSender()] + numberOfTokens <= allowed, "Exceeds wallet allowance");
    require(msg.value == tokenPrice.mul(numberOfTokens), "Ether sent is not correct");

    allowance[_msgSender()] += numberOfTokens;
    _safeMint(_msgSender(), numberOfTokens);
  }
  
  function mintToken(uint numberOfTokens) public payable nonReentrant {
    require(saleIsActive, "Sale must be active to mint");
    require(numberOfTokens < MAX_TOKEN_PER_TXN, "The max mint per transaction is 3");
    require(totalSupply().add(numberOfTokens) < MAX_TOKENS, "Purchase would exceed max supply");
    require(msg.value == tokenPrice.mul(numberOfTokens), "Ether value sent is not correct");
    
    _safeMint(_msgSender(), numberOfTokens);
  }
  
  function _leaf(address account, uint256 count) internal pure returns (bytes32) {
    return keccak256(abi.encodePacked(account, count));
  }

  function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) {
    return MerkleProof.verify(proof, whitelistMerkleRoot, leaf);
  }

  function setRoot(bytes32 root) external onlyOwner {
    whitelistMerkleRoot = root;
  }
  
  function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner {
    proxyRegistryAddress = _proxyRegistryAddress;
  }

  function isApprovedForAll(address _owner, address operator) public view override returns (bool) {
    OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(proxyRegistryAddress);
    if (address(proxyRegistry.proxies(_owner)) == operator) return true;

    return super.isApprovedForAll(_owner, operator);
  }

  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    require(_exists(tokenId), "Token does not exist.");
    return string(abi.encodePacked(baseURI, Strings.toString(tokenId)));
  }

  function airdrop(address _to, uint256 _numberOfTokens) external onlyOwner {
    uint256 supply = totalSupply();
    require(supply + _numberOfTokens <= MAX_TOKENS, "Purchase would exceed max supply");
    _safeMint(_to, _numberOfTokens);
  }
}

contract OwnableDelegateProxy {}
contract OpenSeaProxyRegistry {
  mapping(address => OwnableDelegateProxy) public proxies;
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN_PER_TXN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_numberOfTokens","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":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_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":"numberOfTokens","type":"uint256"}],"name":"mintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"newPrice","type":"uint256"}],"name":"updateTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"allowed","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600b805461ffff19169055666a94d74f430000600c553480156200002757600080fd5b506040518060400160405280600a81526020016921b7bab1b41023babcbd60b11b81525060405180604001604052806002815260200161434760f01b81525081600290805190602001906200007e929190620001c8565b50805162000094906003906020840190620001c8565b50506000805550620000a633620000fe565b6001600981905550620000d2604051806060016040528060258152602001620026546025913962000150565b600d80546001600160a01b03191673a5409ec958c83c3f309868babaca7c86dcb077c1179055620002ab565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620001af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001c490600f906020840190620001c8565b5050565b828054620001d6906200026e565b90600052602060002090601f016020900481019282620001fa576000855562000245565b82601f106200021557805160ff191683800117855562000245565b8280016001018555821562000245579182015b828111156200024557825182559160200191906001019062000228565b506200025392915062000257565b5090565b5b8082111562000253576000815560010162000258565b600181811c908216806200028357607f821691505b60208210811415620002a557634e487b7160e01b600052602260045260246000fd5b50919050565b61239980620002bb6000396000f3fe6080604052600436106102045760003560e01c80637ff9b59611610118578063c87b56dd116100a0578063e985e9c51161006f578063e985e9c514610585578063eb8d2444146105a5578063f0325549146105c4578063f2fde38b146105d9578063f47c84c5146105f957600080fd5b8063c87b56dd14610505578063cd7c032614610525578063d26ea6c014610545578063dab5f3401461056557600080fd5b8063a22cb465116100e7578063a22cb46514610489578063aa98e0c6146104a9578063b88d4fde146104bf578063c4be5b59146104df578063c634d032146104f257600080fd5b80637ff9b596146104205780638ba4cc3c146104365780638da5cb5b1461045657806395d89b411461047457600080fd5b80633ccfd60b1161019b5780636352211e1161016a5780636352211e14610396578063676c0d77146103b65780636c0360eb146103d657806370a08231146103eb578063715018a61461040b57600080fd5b80633ccfd60b1461032c57806342842e0e1461034157806355f804b314610361578063634da63a1461038157600080fd5b806318160ddd116101d757806318160ddd146102ba5780631f0234d8146102dd57806323b872dd146102f757806334918dfd1461031757600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004611d17565b61060f565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b50610253610661565b6040516102359190611d8c565b34801561026c57600080fd5b5061028061027b366004611d9f565b6106f3565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004611dcd565b610737565b005b3480156102c657600080fd5b50600154600054035b604051908152602001610235565b3480156102e957600080fd5b50600b546102299060ff1681565b34801561030357600080fd5b506102b8610312366004611df9565b61080a565b34801561032357600080fd5b506102b861081a565b34801561033857600080fd5b506102b861086a565b34801561034d57600080fd5b506102b861035c366004611df9565b610ad0565b34801561036d57600080fd5b506102b861037c366004611ed9565b610aeb565b34801561038d57600080fd5b506102cf600481565b3480156103a257600080fd5b506102806103b1366004611d9f565b610b2c565b3480156103c257600080fd5b506102b86103d1366004611d9f565b610b37565b3480156103e257600080fd5b50610253610bd2565b3480156103f757600080fd5b506102cf610406366004611f22565b610c60565b34801561041757600080fd5b506102b8610caf565b34801561042c57600080fd5b506102cf600c5481565b34801561044257600080fd5b506102b8610451366004611dcd565b610ce5565b34801561046257600080fd5b506008546001600160a01b0316610280565b34801561048057600080fd5b50610253610d85565b34801561049557600080fd5b506102b86104a4366004611f3f565b610d94565b3480156104b557600080fd5b506102cf600a5481565b3480156104cb57600080fd5b506102b86104da366004611f7d565b610e2a565b6102b86104ed366004611ffd565b610e74565b6102b8610500366004611d9f565b61110b565b34801561051157600080fd5b50610253610520366004611d9f565b6112e8565b34801561053157600080fd5b50600d54610280906001600160a01b031681565b34801561055157600080fd5b506102b8610560366004611f22565b611369565b34801561057157600080fd5b506102b8610580366004611d9f565b6113b5565b34801561059157600080fd5b506102296105a03660046120b8565b6113e4565b3480156105b157600080fd5b50600b5461022990610100900460ff1681565b3480156105d057600080fd5b506102b86114a5565b3480156105e557600080fd5b506102b86105f4366004611f22565b6114e3565b34801561060557600080fd5b506102cf610d0681565b60006301ffc9a760e01b6001600160e01b03198316148061064057506380ac58cd60e01b6001600160e01b03198316145b8061065b5750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610670906120e6565b80601f016020809104026020016040519081016040528092919081815260200182805461069c906120e6565b80156106e95780601f106106be576101008083540402835291602001916106e9565b820191906000526020600020905b8154815290600101906020018083116106cc57829003601f168201915b5050505050905090565b60006106fe8261157e565b61071b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610742826115a5565b9050806001600160a01b0316836001600160a01b031614156107775760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107ae5761079181336113e4565b6107ae576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61081583838361160d565b505050565b6008546001600160a01b0316331461084d5760405162461bcd60e51b815260040161084490612121565b60405180910390fd5b600b805461ff001981166101009182900460ff1615909102179055565b6008546001600160a01b031633146108945760405162461bcd60e51b815260040161084490612121565b478061089f57600080fd5b3373ac01b61d659bd72b120db7c5289bbfc02077194360006108cd60646108c78660026117b0565b906117bc565b9050738fc1f1f48cbb2e4a0f1dfeb9e6019606b307c3c460006108f660646108c78860056117b0565b90506000846001600160a01b03168460405160006040518083038185875af1925050503d8060008114610945576040519150601f19603f3d011682016040523d82523d6000602084013e61094a565b606091505b505090508061098d5760405162461bcd60e51b815260206004820152600f60248201526e2330b4b632b2103a379039b2b7321760891b6044820152606401610844565b6000836001600160a01b03168360405160006040518083038185875af1925050503d80600081146109da576040519150601f19603f3d011682016040523d82523d6000602084013e6109df565b606091505b5050905080610a225760405162461bcd60e51b815260206004820152600f60248201526e2330b4b632b2103a379039b2b7321760891b6044820152606401610844565b6000876001600160a01b03164760405160006040518083038185875af1925050503d8060008114610a6f576040519150601f19603f3d011682016040523d82523d6000602084013e610a74565b606091505b5050905080610ac55760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f204f776e65722e00000000000000006044820152606401610844565b505050505050505050565b61081583838360405180602001604052806000815250610e2a565b6008546001600160a01b03163314610b155760405162461bcd60e51b815260040161084490612121565b8051610b2890600f906020840190611c68565b5050565b600061065b826115a5565b6008546001600160a01b03163314610b615760405162461bcd60e51b815260040161084490612121565b600b54610100900460ff1615610bcd5760405162461bcd60e51b815260206004820152602b60248201527f53616c65206d75737420626520696e61637469766520746f206368616e67652060448201526a746f6b656e20707269636560a81b6064820152608401610844565b600c55565b600f8054610bdf906120e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0b906120e6565b8015610c585780601f10610c2d57610100808354040283529160200191610c58565b820191906000526020600020905b815481529060010190602001808311610c3b57829003601f168201915b505050505081565b60006001600160a01b038216610c89576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610cd95760405162461bcd60e51b815260040161084490612121565b610ce360006117c8565b565b6008546001600160a01b03163314610d0f5760405162461bcd60e51b815260040161084490612121565b6000610d1e6001546000540390565b9050610d06610d2d838361216c565b1115610d7b5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610844565b610815838361181a565b606060038054610670906120e6565b6001600160a01b038216331415610dbe5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e3584848461160d565b6001600160a01b0383163b15610e6e57610e5184848484611834565b610e6e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60026009541415610ec75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610844565b6002600955333214610f1b5760405162461bcd60e51b815260206004820152601b60248201527f4e6f20736d61727420636f6e74726163747320616c6c6f7765642e00000000006044820152606401610844565b600b5460ff16610f775760405162461bcd60e51b815260206004820152602160248201527f5072652d73616c65206e6f742073746172746564206f722068617320656e64656044820152601960fa1b6064820152608401610844565b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018690528351808403909101815260549092019092528051910120610fc0908261191c565b61100c5760405162461bcd60e51b815260206004820152601f60248201527f596f75722061646472657373206973206e6f742077686974656c6973746564006044820152606401610844565b336000908152600e6020526040902054829061102990859061216c565b11156110775760405162461bcd60e51b815260206004820152601860248201527f457863656564732077616c6c657420616c6c6f77616e636500000000000000006044820152606401610844565b600c5461108490846117b0565b34146110d25760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610844565b336000908152600e6020526040812080548592906110f190849061216c565b909155506111019050338461181a565b5050600160095550565b6002600954141561115e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610844565b6002600955600b54610100900460ff166111ba5760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610844565b600481106112145760405162461bcd60e51b815260206004820152602160248201527f546865206d6178206d696e7420706572207472616e73616374696f6e206973206044820152603360f81b6064820152608401610844565b610d0661122e826112286001546000540390565b9061192b565b1061127b5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610844565b600c5461128890826117b0565b34146112d65760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610844565b6112e0338261181a565b506001600955565b60606112f38261157e565b6113375760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610844565b600f61134283611937565b6040516020016113539291906121a0565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146113935760405162461bcd60e51b815260040161084490612121565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146113df5760405162461bcd60e51b815260040161084490612121565b600a55565b600d5460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145a9190612247565b6001600160a01b0316141561147357600191505061065b565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146114cf5760405162461bcd60e51b815260040161084490612121565b600b805460ff19811660ff90911615179055565b6008546001600160a01b0316331461150d5760405162461bcd60e51b815260040161084490612121565b6001600160a01b0381166115725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610844565b61157b816117c8565b50565b600080548210801561065b575050600090815260046020526040902054600160e01b161590565b6000816000548110156115f457600081815260046020526040902054600160e01b81166115f2575b806115eb5750600019016000818152600460205260409020546115cd565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611618826115a5565b9050836001600160a01b0316816001600160a01b03161461164b5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611669575061166985336113e4565b80611684575033611679846106f3565b6001600160a01b0316145b9050806116a457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166116cb57604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661176857600183016000818152600460205260409020546117665760005481146117665760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60006115eb8284612264565b60006115eb8284612299565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b28828260405180602001604052806000815250611a35565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906118699033908990889088906004016122ad565b6020604051808303816000875af19250505080156118a4575060408051601f3d908101601f191682019092526118a1918101906122ea565b60015b6118ff573d8080156118d2576040519150601f19603f3d011682016040523d82523d6000602084013e6118d7565b606091505b5080516118f7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60006115eb82600a5485611ba6565b60006115eb828461216c565b60608161195b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611985578061196f81612307565b915061197e9050600a83612299565b915061195f565b60008167ffffffffffffffff8111156119a0576119a0611e3a565b6040519080825280601f01601f1916602001820160405280156119ca576020820181803683370190505b5090505b841561149d576119df600183612322565b91506119ec600a86612339565b6119f790603061216c565b60f81b818381518110611a0c57611a0c61234d565b60200101906001600160f81b031916908160001a905350611a2e600a86612299565b94506119ce565b6000546001600160a01b038416611a5e57604051622e076360e81b815260040160405180910390fd5b82611a7c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611b51575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611b1a6000878480600101955087611834565b611b37576040516368d2bf6b60e11b815260040160405180910390fd5b808210611acf578260005414611b4c57600080fd5b611b96565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611b52575b506000908155610e6e9085838684565b600082611bb38584611bbc565b14949350505050565b600081815b8451811015611c60576000858281518110611bde57611bde61234d565b60200260200101519050808311611c20576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611c4d565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611c5881612307565b915050611bc1565b509392505050565b828054611c74906120e6565b90600052602060002090601f016020900481019282611c965760008555611cdc565b82601f10611caf57805160ff1916838001178555611cdc565b82800160010185558215611cdc579182015b82811115611cdc578251825591602001919060010190611cc1565b50611ce8929150611cec565b5090565b5b80821115611ce85760008155600101611ced565b6001600160e01b03198116811461157b57600080fd5b600060208284031215611d2957600080fd5b81356115eb81611d01565b60005b83811015611d4f578181015183820152602001611d37565b83811115610e6e5750506000910152565b60008151808452611d78816020860160208601611d34565b601f01601f19169290920160200192915050565b6020815260006115eb6020830184611d60565b600060208284031215611db157600080fd5b5035919050565b6001600160a01b038116811461157b57600080fd5b60008060408385031215611de057600080fd5b8235611deb81611db8565b946020939093013593505050565b600080600060608486031215611e0e57600080fd5b8335611e1981611db8565b92506020840135611e2981611db8565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611e7957611e79611e3a565b604052919050565b600067ffffffffffffffff831115611e9b57611e9b611e3a565b611eae601f8401601f1916602001611e50565b9050828152838383011115611ec257600080fd5b828260208301376000602084830101529392505050565b600060208284031215611eeb57600080fd5b813567ffffffffffffffff811115611f0257600080fd5b8201601f81018413611f1357600080fd5b61149d84823560208401611e81565b600060208284031215611f3457600080fd5b81356115eb81611db8565b60008060408385031215611f5257600080fd5b8235611f5d81611db8565b915060208301358015158114611f7257600080fd5b809150509250929050565b60008060008060808587031215611f9357600080fd5b8435611f9e81611db8565b93506020850135611fae81611db8565b925060408501359150606085013567ffffffffffffffff811115611fd157600080fd5b8501601f81018713611fe257600080fd5b611ff187823560208401611e81565b91505092959194509250565b60008060006060848603121561201257600080fd5b833592506020808501359250604085013567ffffffffffffffff8082111561203957600080fd5b818701915087601f83011261204d57600080fd5b81358181111561205f5761205f611e3a565b8060051b9150612070848301611e50565b818152918301840191848101908a84111561208a57600080fd5b938501935b838510156120a85784358252938501939085019061208f565b8096505050505050509250925092565b600080604083850312156120cb57600080fd5b82356120d681611db8565b91506020830135611f7281611db8565b600181811c908216806120fa57607f821691505b6020821081141561211b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561217f5761217f612156565b500190565b60008151612196818560208601611d34565b9290920192915050565b600080845481600182811c9150808316806121bc57607f831692505b60208084108214156121dc57634e487b7160e01b86526022600452602486fd5b8180156121f057600181146122015761222e565b60ff1986168952848901965061222e565b60008b81526020902060005b868110156122265781548b82015290850190830161220d565b505084890196505b50505050505061223e8185612184565b95945050505050565b60006020828403121561225957600080fd5b81516115eb81611db8565b600081600019048311821515161561227e5761227e612156565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826122a8576122a8612283565b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122e090830184611d60565b9695505050505050565b6000602082840312156122fc57600080fd5b81516115eb81611d01565b600060001982141561231b5761231b612156565b5060010190565b60008282101561233457612334612156565b500390565b60008261234857612348612283565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122058f99aafd52a5396e4eb951a46a7259ba1dfbd3f45cf30c7bf440b070f744aca64736f6c634300080b003368747470733a2f2f626c616d2e696f2f6170692f636f7563682d6775797a2f746f6b656e2f

Deployed Bytecode

0x6080604052600436106102045760003560e01c80637ff9b59611610118578063c87b56dd116100a0578063e985e9c51161006f578063e985e9c514610585578063eb8d2444146105a5578063f0325549146105c4578063f2fde38b146105d9578063f47c84c5146105f957600080fd5b8063c87b56dd14610505578063cd7c032614610525578063d26ea6c014610545578063dab5f3401461056557600080fd5b8063a22cb465116100e7578063a22cb46514610489578063aa98e0c6146104a9578063b88d4fde146104bf578063c4be5b59146104df578063c634d032146104f257600080fd5b80637ff9b596146104205780638ba4cc3c146104365780638da5cb5b1461045657806395d89b411461047457600080fd5b80633ccfd60b1161019b5780636352211e1161016a5780636352211e14610396578063676c0d77146103b65780636c0360eb146103d657806370a08231146103eb578063715018a61461040b57600080fd5b80633ccfd60b1461032c57806342842e0e1461034157806355f804b314610361578063634da63a1461038157600080fd5b806318160ddd116101d757806318160ddd146102ba5780631f0234d8146102dd57806323b872dd146102f757806334918dfd1461031757600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004611d17565b61060f565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b50610253610661565b6040516102359190611d8c565b34801561026c57600080fd5b5061028061027b366004611d9f565b6106f3565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004611dcd565b610737565b005b3480156102c657600080fd5b50600154600054035b604051908152602001610235565b3480156102e957600080fd5b50600b546102299060ff1681565b34801561030357600080fd5b506102b8610312366004611df9565b61080a565b34801561032357600080fd5b506102b861081a565b34801561033857600080fd5b506102b861086a565b34801561034d57600080fd5b506102b861035c366004611df9565b610ad0565b34801561036d57600080fd5b506102b861037c366004611ed9565b610aeb565b34801561038d57600080fd5b506102cf600481565b3480156103a257600080fd5b506102806103b1366004611d9f565b610b2c565b3480156103c257600080fd5b506102b86103d1366004611d9f565b610b37565b3480156103e257600080fd5b50610253610bd2565b3480156103f757600080fd5b506102cf610406366004611f22565b610c60565b34801561041757600080fd5b506102b8610caf565b34801561042c57600080fd5b506102cf600c5481565b34801561044257600080fd5b506102b8610451366004611dcd565b610ce5565b34801561046257600080fd5b506008546001600160a01b0316610280565b34801561048057600080fd5b50610253610d85565b34801561049557600080fd5b506102b86104a4366004611f3f565b610d94565b3480156104b557600080fd5b506102cf600a5481565b3480156104cb57600080fd5b506102b86104da366004611f7d565b610e2a565b6102b86104ed366004611ffd565b610e74565b6102b8610500366004611d9f565b61110b565b34801561051157600080fd5b50610253610520366004611d9f565b6112e8565b34801561053157600080fd5b50600d54610280906001600160a01b031681565b34801561055157600080fd5b506102b8610560366004611f22565b611369565b34801561057157600080fd5b506102b8610580366004611d9f565b6113b5565b34801561059157600080fd5b506102296105a03660046120b8565b6113e4565b3480156105b157600080fd5b50600b5461022990610100900460ff1681565b3480156105d057600080fd5b506102b86114a5565b3480156105e557600080fd5b506102b86105f4366004611f22565b6114e3565b34801561060557600080fd5b506102cf610d0681565b60006301ffc9a760e01b6001600160e01b03198316148061064057506380ac58cd60e01b6001600160e01b03198316145b8061065b5750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610670906120e6565b80601f016020809104026020016040519081016040528092919081815260200182805461069c906120e6565b80156106e95780601f106106be576101008083540402835291602001916106e9565b820191906000526020600020905b8154815290600101906020018083116106cc57829003601f168201915b5050505050905090565b60006106fe8261157e565b61071b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610742826115a5565b9050806001600160a01b0316836001600160a01b031614156107775760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107ae5761079181336113e4565b6107ae576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61081583838361160d565b505050565b6008546001600160a01b0316331461084d5760405162461bcd60e51b815260040161084490612121565b60405180910390fd5b600b805461ff001981166101009182900460ff1615909102179055565b6008546001600160a01b031633146108945760405162461bcd60e51b815260040161084490612121565b478061089f57600080fd5b3373ac01b61d659bd72b120db7c5289bbfc02077194360006108cd60646108c78660026117b0565b906117bc565b9050738fc1f1f48cbb2e4a0f1dfeb9e6019606b307c3c460006108f660646108c78860056117b0565b90506000846001600160a01b03168460405160006040518083038185875af1925050503d8060008114610945576040519150601f19603f3d011682016040523d82523d6000602084013e61094a565b606091505b505090508061098d5760405162461bcd60e51b815260206004820152600f60248201526e2330b4b632b2103a379039b2b7321760891b6044820152606401610844565b6000836001600160a01b03168360405160006040518083038185875af1925050503d80600081146109da576040519150601f19603f3d011682016040523d82523d6000602084013e6109df565b606091505b5050905080610a225760405162461bcd60e51b815260206004820152600f60248201526e2330b4b632b2103a379039b2b7321760891b6044820152606401610844565b6000876001600160a01b03164760405160006040518083038185875af1925050503d8060008114610a6f576040519150601f19603f3d011682016040523d82523d6000602084013e610a74565b606091505b5050905080610ac55760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f204f776e65722e00000000000000006044820152606401610844565b505050505050505050565b61081583838360405180602001604052806000815250610e2a565b6008546001600160a01b03163314610b155760405162461bcd60e51b815260040161084490612121565b8051610b2890600f906020840190611c68565b5050565b600061065b826115a5565b6008546001600160a01b03163314610b615760405162461bcd60e51b815260040161084490612121565b600b54610100900460ff1615610bcd5760405162461bcd60e51b815260206004820152602b60248201527f53616c65206d75737420626520696e61637469766520746f206368616e67652060448201526a746f6b656e20707269636560a81b6064820152608401610844565b600c55565b600f8054610bdf906120e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0b906120e6565b8015610c585780601f10610c2d57610100808354040283529160200191610c58565b820191906000526020600020905b815481529060010190602001808311610c3b57829003601f168201915b505050505081565b60006001600160a01b038216610c89576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610cd95760405162461bcd60e51b815260040161084490612121565b610ce360006117c8565b565b6008546001600160a01b03163314610d0f5760405162461bcd60e51b815260040161084490612121565b6000610d1e6001546000540390565b9050610d06610d2d838361216c565b1115610d7b5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610844565b610815838361181a565b606060038054610670906120e6565b6001600160a01b038216331415610dbe5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e3584848461160d565b6001600160a01b0383163b15610e6e57610e5184848484611834565b610e6e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60026009541415610ec75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610844565b6002600955333214610f1b5760405162461bcd60e51b815260206004820152601b60248201527f4e6f20736d61727420636f6e74726163747320616c6c6f7765642e00000000006044820152606401610844565b600b5460ff16610f775760405162461bcd60e51b815260206004820152602160248201527f5072652d73616c65206e6f742073746172746564206f722068617320656e64656044820152601960fa1b6064820152608401610844565b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018690528351808403909101815260549092019092528051910120610fc0908261191c565b61100c5760405162461bcd60e51b815260206004820152601f60248201527f596f75722061646472657373206973206e6f742077686974656c6973746564006044820152606401610844565b336000908152600e6020526040902054829061102990859061216c565b11156110775760405162461bcd60e51b815260206004820152601860248201527f457863656564732077616c6c657420616c6c6f77616e636500000000000000006044820152606401610844565b600c5461108490846117b0565b34146110d25760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610844565b336000908152600e6020526040812080548592906110f190849061216c565b909155506111019050338461181a565b5050600160095550565b6002600954141561115e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610844565b6002600955600b54610100900460ff166111ba5760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610844565b600481106112145760405162461bcd60e51b815260206004820152602160248201527f546865206d6178206d696e7420706572207472616e73616374696f6e206973206044820152603360f81b6064820152608401610844565b610d0661122e826112286001546000540390565b9061192b565b1061127b5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610844565b600c5461128890826117b0565b34146112d65760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610844565b6112e0338261181a565b506001600955565b60606112f38261157e565b6113375760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610844565b600f61134283611937565b6040516020016113539291906121a0565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146113935760405162461bcd60e51b815260040161084490612121565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146113df5760405162461bcd60e51b815260040161084490612121565b600a55565b600d5460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145a9190612247565b6001600160a01b0316141561147357600191505061065b565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146114cf5760405162461bcd60e51b815260040161084490612121565b600b805460ff19811660ff90911615179055565b6008546001600160a01b0316331461150d5760405162461bcd60e51b815260040161084490612121565b6001600160a01b0381166115725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610844565b61157b816117c8565b50565b600080548210801561065b575050600090815260046020526040902054600160e01b161590565b6000816000548110156115f457600081815260046020526040902054600160e01b81166115f2575b806115eb5750600019016000818152600460205260409020546115cd565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611618826115a5565b9050836001600160a01b0316816001600160a01b03161461164b5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611669575061166985336113e4565b80611684575033611679846106f3565b6001600160a01b0316145b9050806116a457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166116cb57604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661176857600183016000818152600460205260409020546117665760005481146117665760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60006115eb8284612264565b60006115eb8284612299565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b28828260405180602001604052806000815250611a35565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906118699033908990889088906004016122ad565b6020604051808303816000875af19250505080156118a4575060408051601f3d908101601f191682019092526118a1918101906122ea565b60015b6118ff573d8080156118d2576040519150601f19603f3d011682016040523d82523d6000602084013e6118d7565b606091505b5080516118f7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60006115eb82600a5485611ba6565b60006115eb828461216c565b60608161195b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611985578061196f81612307565b915061197e9050600a83612299565b915061195f565b60008167ffffffffffffffff8111156119a0576119a0611e3a565b6040519080825280601f01601f1916602001820160405280156119ca576020820181803683370190505b5090505b841561149d576119df600183612322565b91506119ec600a86612339565b6119f790603061216c565b60f81b818381518110611a0c57611a0c61234d565b60200101906001600160f81b031916908160001a905350611a2e600a86612299565b94506119ce565b6000546001600160a01b038416611a5e57604051622e076360e81b815260040160405180910390fd5b82611a7c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611b51575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611b1a6000878480600101955087611834565b611b37576040516368d2bf6b60e11b815260040160405180910390fd5b808210611acf578260005414611b4c57600080fd5b611b96565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611b52575b506000908155610e6e9085838684565b600082611bb38584611bbc565b14949350505050565b600081815b8451811015611c60576000858281518110611bde57611bde61234d565b60200260200101519050808311611c20576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611c4d565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611c5881612307565b915050611bc1565b509392505050565b828054611c74906120e6565b90600052602060002090601f016020900481019282611c965760008555611cdc565b82601f10611caf57805160ff1916838001178555611cdc565b82800160010185558215611cdc579182015b82811115611cdc578251825591602001919060010190611cc1565b50611ce8929150611cec565b5090565b5b80821115611ce85760008155600101611ced565b6001600160e01b03198116811461157b57600080fd5b600060208284031215611d2957600080fd5b81356115eb81611d01565b60005b83811015611d4f578181015183820152602001611d37565b83811115610e6e5750506000910152565b60008151808452611d78816020860160208601611d34565b601f01601f19169290920160200192915050565b6020815260006115eb6020830184611d60565b600060208284031215611db157600080fd5b5035919050565b6001600160a01b038116811461157b57600080fd5b60008060408385031215611de057600080fd5b8235611deb81611db8565b946020939093013593505050565b600080600060608486031215611e0e57600080fd5b8335611e1981611db8565b92506020840135611e2981611db8565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611e7957611e79611e3a565b604052919050565b600067ffffffffffffffff831115611e9b57611e9b611e3a565b611eae601f8401601f1916602001611e50565b9050828152838383011115611ec257600080fd5b828260208301376000602084830101529392505050565b600060208284031215611eeb57600080fd5b813567ffffffffffffffff811115611f0257600080fd5b8201601f81018413611f1357600080fd5b61149d84823560208401611e81565b600060208284031215611f3457600080fd5b81356115eb81611db8565b60008060408385031215611f5257600080fd5b8235611f5d81611db8565b915060208301358015158114611f7257600080fd5b809150509250929050565b60008060008060808587031215611f9357600080fd5b8435611f9e81611db8565b93506020850135611fae81611db8565b925060408501359150606085013567ffffffffffffffff811115611fd157600080fd5b8501601f81018713611fe257600080fd5b611ff187823560208401611e81565b91505092959194509250565b60008060006060848603121561201257600080fd5b833592506020808501359250604085013567ffffffffffffffff8082111561203957600080fd5b818701915087601f83011261204d57600080fd5b81358181111561205f5761205f611e3a565b8060051b9150612070848301611e50565b818152918301840191848101908a84111561208a57600080fd5b938501935b838510156120a85784358252938501939085019061208f565b8096505050505050509250925092565b600080604083850312156120cb57600080fd5b82356120d681611db8565b91506020830135611f7281611db8565b600181811c908216806120fa57607f821691505b6020821081141561211b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561217f5761217f612156565b500190565b60008151612196818560208601611d34565b9290920192915050565b600080845481600182811c9150808316806121bc57607f831692505b60208084108214156121dc57634e487b7160e01b86526022600452602486fd5b8180156121f057600181146122015761222e565b60ff1986168952848901965061222e565b60008b81526020902060005b868110156122265781548b82015290850190830161220d565b505084890196505b50505050505061223e8185612184565b95945050505050565b60006020828403121561225957600080fd5b81516115eb81611db8565b600081600019048311821515161561227e5761227e612156565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826122a8576122a8612283565b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122e090830184611d60565b9695505050505050565b6000602082840312156122fc57600080fd5b81516115eb81611d01565b600060001982141561231b5761231b612156565b5060010190565b60008282101561233457612334612156565b500390565b60008261234857612348612283565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122058f99aafd52a5396e4eb951a46a7259ba1dfbd3f45cf30c7bf440b070f744aca64736f6c634300080b0033

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

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