ETH Price: $3,393.58 (+1.27%)

Token

Bitties (BIT)
 

Overview

Max Total Supply

869 BIT

Holders

481

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
6 BIT
0x6a74ceaca94ccf6afa7d7e56d146b6f971f86ce9
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:
Bitties

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-07-27
*/

// 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 Bitties is ERC721A, Ownable, ReentrancyGuard {
  using SafeMath for uint256;
  using MerkleProof for bytes32[];

  bytes32 public whitelistMerkleRoot;
  bool public saleIsActive = false;
  uint256 public tokenPrice = 0.0099 ether;
  uint256 public freeTokens = 300;
  
  uint public constant MAX_TOKEN_PER_TXN = 5;
  
  uint256 public constant MAX_PUBLIC_BITTIES = 5222;
  uint256 public constant MAX_WL_BITTIES = 333;
  
  mapping(address => bool) public freeAllowance;
  mapping(address => bool) public wlAllowance;
  string public baseURI;
    
  constructor() ERC721A("Bitties", "BIT") {
    _mint(msg.sender, 2);
    setBaseURI("https://gateway.pinata.cloud/ipfs/QmYv9526MzuWcSBwQbV9uQXoN23XhNPVgaFwA5N3DymUHq/");
    setRoot(0xa06bb2a0f2e1b1e7fb24efc5586ac0c18a5f221e752220054b91f144f12a5e05);
  }

  function withdraw() external onlyOwner {
    uint256 balance = address(this).balance;
    require(balance > 0);
    (bool ownerSuccess, ) = payable(msg.sender).call{value: balance}("");
    require(ownerSuccess, "Failed to send to Owner.");
  }
  
  function setBaseURI(string memory _baseURI) public onlyOwner {
    baseURI = _baseURI;
  }

  function setRoot(bytes32 root) public onlyOwner {
    whitelistMerkleRoot = root;
  }

  function flipSaleState() external onlyOwner {
    saleIsActive = !saleIsActive;
  }
  
  function whitelistMint(bytes32[] memory proof) external payable nonReentrant {
    require(msg.sender == tx.origin, "No smart contracts allowed.");
    require(saleIsActive, "Sale not started or has ended");
    require(totalSupply() + 1 <= MAX_PUBLIC_BITTIES + MAX_WL_BITTIES, "Purchase will exceed supply");
    require(
      _verify(_leaf(msg.sender), proof),
      "Your address is not whitelisted"
    );
    require(!wlAllowance[msg.sender], "Exceeds wallet allowance");

    wlAllowance[msg.sender] = true;

    _mint(msg.sender, 1);
  }
  
  function freeMint() external nonReentrant {
    require(msg.sender == tx.origin, "No smart contracts allowed.");
    require(saleIsActive, "Sale must be active to mint");
    require(!freeAllowance[msg.sender], "You can't mint any more free tokens.");
    require(freeTokens > 0, "Purchase would exceed free supply");
    require(totalSupply() + 1  <= MAX_PUBLIC_BITTIES, "Purchase would exceed max supply");
    
    freeAllowance[msg.sender] = true;
    freeTokens -= 1;

    _mint(msg.sender, 1);
  }
  
  function mintToken(uint numberOfTokens) external payable nonReentrant {
    require(msg.sender  == tx.origin, "No smart contracts allowed.");
    require(saleIsActive, "Sale must be active to mint");
    require(numberOfTokens <= MAX_TOKEN_PER_TXN, "The max mint per transaction is 5");
    require(totalSupply().add(numberOfTokens) <= MAX_PUBLIC_BITTIES, "Purchase would exceed max supply");
    require(msg.value == tokenPrice.mul(numberOfTokens), "Ether value sent is not correct");
    
    _mint(msg.sender, numberOfTokens);
  }
  
  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    require(_exists(tokenId), "Token does not exist.");
    return string(abi.encodePacked(abi.encodePacked(baseURI, Strings.toString(tokenId)), ".json"));
  }
  
  function _leaf(address account) internal pure returns (bytes32) {
    return keccak256(abi.encodePacked(account));
  }

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

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_PUBLIC_BITTIES","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":[],"name":"MAX_WL_BITTIES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"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":"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":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wlAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052600b805460ff1916905566232bff5f46c000600c5561012c600d553480156200002c57600080fd5b5060408051808201825260078152664269747469657360c81b60208083019182528351808501909452600384526210925560ea1b9084015281519192916200007791600291620002f1565b5080516200008d906003906020840190620002f1565b505060008055506200009f3362000106565b6001600955620000b133600262000158565b620000d5604051806080016040528060518152602001620024a96051913962000239565b620001007fa06bb2a0f2e1b1e7fb24efc5586ac0c18a5f221e752220054b91f144f12a5e05620002a1565b620003d4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b0383166200018257604051622e076360e81b815260040160405180910390fd5b81620001a15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210620001ec5750600055505050565b6008546001600160a01b03163314620002885760405162461bcd60e51b81526020600482018190526024820152600080516020620024fa83398151915260448201526064015b60405180910390fd5b80516200029d906010906020840190620002f1565b5050565b6008546001600160a01b03163314620002ec5760405162461bcd60e51b81526020600482018190526024820152600080516020620024fa83398151915260448201526064016200027f565b600a55565b828054620002ff9062000397565b90600052602060002090601f0160209004810192826200032357600085556200036e565b82601f106200033e57805160ff19168380011785556200036e565b828001600101855582156200036e579182015b828111156200036e57825182559160200191906001019062000351565b506200037c92915062000380565b5090565b5b808211156200037c576000815560010162000381565b600181811c90821680620003ac57607f821691505b60208210811415620003ce57634e487b7160e01b600052602260045260246000fd5b50919050565b6120c580620003e46000396000f3fe6080604052600436106101f95760003560e01c80636fe8f9c51161010d578063aa98e0c6116100a0578063dab5f3401161006f578063dab5f34014610547578063e985e9c514610567578063eb8d2444146105b0578063ec6cf70c146105ca578063f2fde38b146105fa57600080fd5b8063aa98e0c6146104de578063b88d4fde146104f4578063c634d03214610514578063c87b56dd1461052757600080fd5b806387d7a248116100dc57806387d7a2481461045b5780638da5cb5b1461048b57806395d89b41146104a9578063a22cb465146104be57600080fd5b80636fe8f9c5146103fa57806370a0823114610410578063715018a6146104305780637ff9b5961461044557600080fd5b80633ccfd60b116101905780635b70ea9f1161015f5780635b70ea9f14610385578063634da63a1461039a5780636352211e146103af57806368b2624a146103cf5780636c0360eb146103e557600080fd5b80633ccfd60b1461031a57806340cf85be1461032f57806342842e0e1461034557806355f804b31461036557600080fd5b806318160ddd116101cc57806318160ddd146102af57806323b872dd146102d257806334918dfd146102f2578063372f657c1461030757600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e6102193660046119e1565b61061a565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b5061024861066c565b60405161022a9190611a56565b34801561026157600080fd5b50610275610270366004611a69565b6106fe565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a8366004611a9e565b610742565b005b3480156102bb57600080fd5b50600154600054035b60405190815260200161022a565b3480156102de57600080fd5b506102ad6102ed366004611ac8565b610815565b3480156102fe57600080fd5b506102ad610825565b6102ad610315366004611b4b565b61086c565b34801561032657600080fd5b506102ad610a8f565b34801561033b57600080fd5b506102c461014d81565b34801561035157600080fd5b506102ad610360366004611ac8565b610b60565b34801561037157600080fd5b506102ad610380366004611c49565b610b7b565b34801561039157600080fd5b506102ad610bb8565b3480156103a657600080fd5b506102c4600581565b3480156103bb57600080fd5b506102756103ca366004611a69565b610dca565b3480156103db57600080fd5b506102c461146681565b3480156103f157600080fd5b50610248610dd5565b34801561040657600080fd5b506102c4600d5481565b34801561041c57600080fd5b506102c461042b366004611c92565b610e63565b34801561043c57600080fd5b506102ad610eb2565b34801561045157600080fd5b506102c4600c5481565b34801561046757600080fd5b5061021e610476366004611c92565b600f6020526000908152604090205460ff1681565b34801561049757600080fd5b506008546001600160a01b0316610275565b3480156104b557600080fd5b50610248610ee8565b3480156104ca57600080fd5b506102ad6104d9366004611cad565b610ef7565b3480156104ea57600080fd5b506102c4600a5481565b34801561050057600080fd5b506102ad61050f366004611ce9565b610f8d565b6102ad610522366004611a69565b610fd7565b34801561053357600080fd5b50610248610542366004611a69565b611198565b34801561055357600080fd5b506102ad610562366004611a69565b611236565b34801561057357600080fd5b5061021e610582366004611d65565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105bc57600080fd5b50600b5461021e9060ff1681565b3480156105d657600080fd5b5061021e6105e5366004611c92565b600e6020526000908152604090205460ff1681565b34801561060657600080fd5b506102ad610615366004611c92565b611265565b60006301ffc9a760e01b6001600160e01b03198316148061064b57506380ac58cd60e01b6001600160e01b03198316145b806106665750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461067b90611d98565b80601f01602080910402602001604051908101604052809291908181526020018280546106a790611d98565b80156106f45780601f106106c9576101008083540402835291602001916106f4565b820191906000526020600020905b8154815290600101906020018083116106d757829003601f168201915b5050505050905090565b600061070982611300565b610726576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061074d82611327565b9050806001600160a01b0316836001600160a01b031614156107825760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107b95761079c8133610582565b6107b9576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61082083838361138f565b505050565b6008546001600160a01b031633146108585760405162461bcd60e51b815260040161084f90611dd3565b60405180910390fd5b600b805460ff19811660ff90911615179055565b6002600954141561088f5760405162461bcd60e51b815260040161084f90611e08565b60026009553332146108b35760405162461bcd60e51b815260040161084f90611e3f565b600b5460ff166109055760405162461bcd60e51b815260206004820152601d60248201527f53616c65206e6f742073746172746564206f722068617320656e646564000000604482015260640161084f565b61091361014d611466611e8c565b60015460005403610925906001611e8c565b11156109735760405162461bcd60e51b815260206004820152601b60248201527f50757263686173652077696c6c2065786365656420737570706c790000000000604482015260640161084f565b604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101206109b49082611532565b610a005760405162461bcd60e51b815260206004820152601f60248201527f596f75722061646472657373206973206e6f742077686974656c697374656400604482015260640161084f565b336000908152600f602052604090205460ff1615610a605760405162461bcd60e51b815260206004820152601860248201527f457863656564732077616c6c657420616c6c6f77616e63650000000000000000604482015260640161084f565b336000818152600f60205260409020805460ff19166001908117909155610a879190611541565b506001600955565b6008546001600160a01b03163314610ab95760405162461bcd60e51b815260040161084f90611dd3565b4780610ac457600080fd5b604051600090339083908381818185875af1925050503d8060008114610b06576040519150601f19603f3d011682016040523d82523d6000602084013e610b0b565b606091505b5050905080610b5c5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f204f776e65722e0000000000000000604482015260640161084f565b5050565b61082083838360405180602001604052806000815250610f8d565b6008546001600160a01b03163314610ba55760405162461bcd60e51b815260040161084f90611dd3565b8051610b5c906010906020840190611932565b60026009541415610bdb5760405162461bcd60e51b815260040161084f90611e08565b6002600955333214610bff5760405162461bcd60e51b815260040161084f90611e3f565b600b5460ff16610c515760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e740000000000604482015260640161084f565b336000908152600e602052604090205460ff1615610cbd5760405162461bcd60e51b8152602060048201526024808201527f596f752063616e2774206d696e7420616e79206d6f7265206672656520746f6b60448201526332b7399760e11b606482015260840161084f565b6000600d5411610d195760405162461bcd60e51b815260206004820152602160248201527f507572636861736520776f756c6420657863656564206672656520737570706c6044820152607960f81b606482015260840161084f565b611466610d296001546000540390565b610d34906001611e8c565b1115610d825760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015260640161084f565b336000908152600e60205260408120805460ff19166001908117909155600d805491929091610db2908490611ea4565b90915550610dc39050336001611541565b6001600955565b600061066682611327565b60108054610de290611d98565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0e90611d98565b8015610e5b5780601f10610e3057610100808354040283529160200191610e5b565b820191906000526020600020905b815481529060010190602001808311610e3e57829003601f168201915b505050505081565b60006001600160a01b038216610e8c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610edc5760405162461bcd60e51b815260040161084f90611dd3565b610ee6600061161f565b565b60606003805461067b90611d98565b6001600160a01b038216331415610f215760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f9884848461138f565b6001600160a01b0383163b15610fd157610fb484848484611671565b610fd1576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60026009541415610ffa5760405162461bcd60e51b815260040161084f90611e08565b600260095533321461101e5760405162461bcd60e51b815260040161084f90611e3f565b600b5460ff166110705760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e740000000000604482015260640161084f565b60058111156110cb5760405162461bcd60e51b815260206004820152602160248201527f546865206d6178206d696e7420706572207472616e73616374696f6e206973206044820152603560f81b606482015260840161084f565b6114666110e5826110df6001546000540390565b9061175a565b11156111335760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015260640161084f565b600c546111409082611766565b341461118e5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604482015260640161084f565b610a873382611541565b60606111a382611300565b6111e75760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b604482015260640161084f565b60106111f283611772565b604051602001611203929190611ed7565b60408051601f198184030181529082905261122091602001611f7e565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146112605760405162461bcd60e51b815260040161084f90611dd3565b600a55565b6008546001600160a01b0316331461128f5760405162461bcd60e51b815260040161084f90611dd3565b6001600160a01b0381166112f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084f565b6112fd8161161f565b50565b6000805482108015610666575050600090815260046020526040902054600160e01b161590565b60008160005481101561137657600081815260046020526040902054600160e01b8116611374575b8061136d57506000190160008181526004602052604090205461134f565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600061139a82611327565b9050836001600160a01b0316816001600160a01b0316146113cd5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806113eb57506113eb8533610582565b806114065750336113fb846106fe565b6001600160a01b0316145b90508061142657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661144d57604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b8617811790915582166114ea57600183016000818152600460205260409020546114e85760005481146114e85760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600061136d82600a5485611870565b6000546001600160a01b03831661156a57604051622e076360e81b815260040160405180910390fd5b816115885760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106115d35750600055505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116a6903390899088908890600401611fa7565b6020604051808303816000875af19250505080156116e1575060408051601f3d908101601f191682019092526116de91810190611fe4565b60015b61173c573d80801561170f576040519150601f19603f3d011682016040523d82523d6000602084013e611714565b606091505b508051611734576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600061136d8284611e8c565b600061136d8284612001565b6060816117965750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117c057806117aa81612020565b91506117b99050600a83612051565b915061179a565b60008167ffffffffffffffff8111156117db576117db611b04565b6040519080825280601f01601f191660200182016040528015611805576020820181803683370190505b5090505b84156117525761181a600183611ea4565b9150611827600a86612065565b611832906030611e8c565b60f81b81838151811061184757611847612079565b60200101906001600160f81b031916908160001a905350611869600a86612051565b9450611809565b60008261187d8584611886565b14949350505050565b600081815b845181101561192a5760008582815181106118a8576118a8612079565b602002602001015190508083116118ea576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611917565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061192281612020565b91505061188b565b509392505050565b82805461193e90611d98565b90600052602060002090601f01602090048101928261196057600085556119a6565b82601f1061197957805160ff19168380011785556119a6565b828001600101855582156119a6579182015b828111156119a657825182559160200191906001019061198b565b506119b29291506119b6565b5090565b5b808211156119b257600081556001016119b7565b6001600160e01b0319811681146112fd57600080fd5b6000602082840312156119f357600080fd5b813561136d816119cb565b60005b83811015611a19578181015183820152602001611a01565b83811115610fd15750506000910152565b60008151808452611a428160208601602086016119fe565b601f01601f19169290920160200192915050565b60208152600061136d6020830184611a2a565b600060208284031215611a7b57600080fd5b5035919050565b80356001600160a01b0381168114611a9957600080fd5b919050565b60008060408385031215611ab157600080fd5b611aba83611a82565b946020939093013593505050565b600080600060608486031215611add57600080fd5b611ae684611a82565b9250611af460208501611a82565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611b4357611b43611b04565b604052919050565b60006020808385031215611b5e57600080fd5b823567ffffffffffffffff80821115611b7657600080fd5b818501915085601f830112611b8a57600080fd5b813581811115611b9c57611b9c611b04565b8060051b9150611bad848301611b1a565b8181529183018401918481019088841115611bc757600080fd5b938501935b83851015611be557843582529385019390850190611bcc565b98975050505050505050565b600067ffffffffffffffff831115611c0b57611c0b611b04565b611c1e601f8401601f1916602001611b1a565b9050828152838383011115611c3257600080fd5b828260208301376000602084830101529392505050565b600060208284031215611c5b57600080fd5b813567ffffffffffffffff811115611c7257600080fd5b8201601f81018413611c8357600080fd5b61175284823560208401611bf1565b600060208284031215611ca457600080fd5b61136d82611a82565b60008060408385031215611cc057600080fd5b611cc983611a82565b915060208301358015158114611cde57600080fd5b809150509250929050565b60008060008060808587031215611cff57600080fd5b611d0885611a82565b9350611d1660208601611a82565b925060408501359150606085013567ffffffffffffffff811115611d3957600080fd5b8501601f81018713611d4a57600080fd5b611d5987823560208401611bf1565b91505092959194509250565b60008060408385031215611d7857600080fd5b611d8183611a82565b9150611d8f60208401611a82565b90509250929050565b600181811c90821680611dac57607f821691505b60208210811415611dcd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f4e6f20736d61727420636f6e74726163747320616c6c6f7765642e0000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611e9f57611e9f611e76565b500190565b600082821015611eb657611eb6611e76565b500390565b60008151611ecd8185602086016119fe565b9290920192915050565b600080845481600182811c915080831680611ef357607f831692505b6020808410821415611f1357634e487b7160e01b86526022600452602486fd5b818015611f275760018114611f3857611f65565b60ff19861689528489019650611f65565b60008b81526020902060005b86811015611f5d5781548b820152908501908301611f44565b505084890196505b505050505050611f758185611ebb565b95945050505050565b60008251611f908184602087016119fe565b64173539b7b760d91b920191825250600501919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611fda90830184611a2a565b9695505050505050565b600060208284031215611ff657600080fd5b815161136d816119cb565b600081600019048311821515161561201b5761201b611e76565b500290565b600060001982141561203457612034611e76565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826120605761206061203b565b500490565b6000826120745761207461203b565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122024a763daf94c5f612dd1db64beeab40ba3c7116ec9af2c3b848f7f24d26d666064736f6c634300080b003368747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d5976393532364d7a755763534277516256397551586f4e323358684e50566761467741354e3344796d5548712f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80636fe8f9c51161010d578063aa98e0c6116100a0578063dab5f3401161006f578063dab5f34014610547578063e985e9c514610567578063eb8d2444146105b0578063ec6cf70c146105ca578063f2fde38b146105fa57600080fd5b8063aa98e0c6146104de578063b88d4fde146104f4578063c634d03214610514578063c87b56dd1461052757600080fd5b806387d7a248116100dc57806387d7a2481461045b5780638da5cb5b1461048b57806395d89b41146104a9578063a22cb465146104be57600080fd5b80636fe8f9c5146103fa57806370a0823114610410578063715018a6146104305780637ff9b5961461044557600080fd5b80633ccfd60b116101905780635b70ea9f1161015f5780635b70ea9f14610385578063634da63a1461039a5780636352211e146103af57806368b2624a146103cf5780636c0360eb146103e557600080fd5b80633ccfd60b1461031a57806340cf85be1461032f57806342842e0e1461034557806355f804b31461036557600080fd5b806318160ddd116101cc57806318160ddd146102af57806323b872dd146102d257806334918dfd146102f2578063372f657c1461030757600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e6102193660046119e1565b61061a565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b5061024861066c565b60405161022a9190611a56565b34801561026157600080fd5b50610275610270366004611a69565b6106fe565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a8366004611a9e565b610742565b005b3480156102bb57600080fd5b50600154600054035b60405190815260200161022a565b3480156102de57600080fd5b506102ad6102ed366004611ac8565b610815565b3480156102fe57600080fd5b506102ad610825565b6102ad610315366004611b4b565b61086c565b34801561032657600080fd5b506102ad610a8f565b34801561033b57600080fd5b506102c461014d81565b34801561035157600080fd5b506102ad610360366004611ac8565b610b60565b34801561037157600080fd5b506102ad610380366004611c49565b610b7b565b34801561039157600080fd5b506102ad610bb8565b3480156103a657600080fd5b506102c4600581565b3480156103bb57600080fd5b506102756103ca366004611a69565b610dca565b3480156103db57600080fd5b506102c461146681565b3480156103f157600080fd5b50610248610dd5565b34801561040657600080fd5b506102c4600d5481565b34801561041c57600080fd5b506102c461042b366004611c92565b610e63565b34801561043c57600080fd5b506102ad610eb2565b34801561045157600080fd5b506102c4600c5481565b34801561046757600080fd5b5061021e610476366004611c92565b600f6020526000908152604090205460ff1681565b34801561049757600080fd5b506008546001600160a01b0316610275565b3480156104b557600080fd5b50610248610ee8565b3480156104ca57600080fd5b506102ad6104d9366004611cad565b610ef7565b3480156104ea57600080fd5b506102c4600a5481565b34801561050057600080fd5b506102ad61050f366004611ce9565b610f8d565b6102ad610522366004611a69565b610fd7565b34801561053357600080fd5b50610248610542366004611a69565b611198565b34801561055357600080fd5b506102ad610562366004611a69565b611236565b34801561057357600080fd5b5061021e610582366004611d65565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105bc57600080fd5b50600b5461021e9060ff1681565b3480156105d657600080fd5b5061021e6105e5366004611c92565b600e6020526000908152604090205460ff1681565b34801561060657600080fd5b506102ad610615366004611c92565b611265565b60006301ffc9a760e01b6001600160e01b03198316148061064b57506380ac58cd60e01b6001600160e01b03198316145b806106665750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461067b90611d98565b80601f01602080910402602001604051908101604052809291908181526020018280546106a790611d98565b80156106f45780601f106106c9576101008083540402835291602001916106f4565b820191906000526020600020905b8154815290600101906020018083116106d757829003601f168201915b5050505050905090565b600061070982611300565b610726576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061074d82611327565b9050806001600160a01b0316836001600160a01b031614156107825760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107b95761079c8133610582565b6107b9576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61082083838361138f565b505050565b6008546001600160a01b031633146108585760405162461bcd60e51b815260040161084f90611dd3565b60405180910390fd5b600b805460ff19811660ff90911615179055565b6002600954141561088f5760405162461bcd60e51b815260040161084f90611e08565b60026009553332146108b35760405162461bcd60e51b815260040161084f90611e3f565b600b5460ff166109055760405162461bcd60e51b815260206004820152601d60248201527f53616c65206e6f742073746172746564206f722068617320656e646564000000604482015260640161084f565b61091361014d611466611e8c565b60015460005403610925906001611e8c565b11156109735760405162461bcd60e51b815260206004820152601b60248201527f50757263686173652077696c6c2065786365656420737570706c790000000000604482015260640161084f565b604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101206109b49082611532565b610a005760405162461bcd60e51b815260206004820152601f60248201527f596f75722061646472657373206973206e6f742077686974656c697374656400604482015260640161084f565b336000908152600f602052604090205460ff1615610a605760405162461bcd60e51b815260206004820152601860248201527f457863656564732077616c6c657420616c6c6f77616e63650000000000000000604482015260640161084f565b336000818152600f60205260409020805460ff19166001908117909155610a879190611541565b506001600955565b6008546001600160a01b03163314610ab95760405162461bcd60e51b815260040161084f90611dd3565b4780610ac457600080fd5b604051600090339083908381818185875af1925050503d8060008114610b06576040519150601f19603f3d011682016040523d82523d6000602084013e610b0b565b606091505b5050905080610b5c5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f204f776e65722e0000000000000000604482015260640161084f565b5050565b61082083838360405180602001604052806000815250610f8d565b6008546001600160a01b03163314610ba55760405162461bcd60e51b815260040161084f90611dd3565b8051610b5c906010906020840190611932565b60026009541415610bdb5760405162461bcd60e51b815260040161084f90611e08565b6002600955333214610bff5760405162461bcd60e51b815260040161084f90611e3f565b600b5460ff16610c515760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e740000000000604482015260640161084f565b336000908152600e602052604090205460ff1615610cbd5760405162461bcd60e51b8152602060048201526024808201527f596f752063616e2774206d696e7420616e79206d6f7265206672656520746f6b60448201526332b7399760e11b606482015260840161084f565b6000600d5411610d195760405162461bcd60e51b815260206004820152602160248201527f507572636861736520776f756c6420657863656564206672656520737570706c6044820152607960f81b606482015260840161084f565b611466610d296001546000540390565b610d34906001611e8c565b1115610d825760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015260640161084f565b336000908152600e60205260408120805460ff19166001908117909155600d805491929091610db2908490611ea4565b90915550610dc39050336001611541565b6001600955565b600061066682611327565b60108054610de290611d98565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0e90611d98565b8015610e5b5780601f10610e3057610100808354040283529160200191610e5b565b820191906000526020600020905b815481529060010190602001808311610e3e57829003601f168201915b505050505081565b60006001600160a01b038216610e8c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610edc5760405162461bcd60e51b815260040161084f90611dd3565b610ee6600061161f565b565b60606003805461067b90611d98565b6001600160a01b038216331415610f215760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f9884848461138f565b6001600160a01b0383163b15610fd157610fb484848484611671565b610fd1576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60026009541415610ffa5760405162461bcd60e51b815260040161084f90611e08565b600260095533321461101e5760405162461bcd60e51b815260040161084f90611e3f565b600b5460ff166110705760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e740000000000604482015260640161084f565b60058111156110cb5760405162461bcd60e51b815260206004820152602160248201527f546865206d6178206d696e7420706572207472616e73616374696f6e206973206044820152603560f81b606482015260840161084f565b6114666110e5826110df6001546000540390565b9061175a565b11156111335760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015260640161084f565b600c546111409082611766565b341461118e5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604482015260640161084f565b610a873382611541565b60606111a382611300565b6111e75760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b604482015260640161084f565b60106111f283611772565b604051602001611203929190611ed7565b60408051601f198184030181529082905261122091602001611f7e565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146112605760405162461bcd60e51b815260040161084f90611dd3565b600a55565b6008546001600160a01b0316331461128f5760405162461bcd60e51b815260040161084f90611dd3565b6001600160a01b0381166112f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084f565b6112fd8161161f565b50565b6000805482108015610666575050600090815260046020526040902054600160e01b161590565b60008160005481101561137657600081815260046020526040902054600160e01b8116611374575b8061136d57506000190160008181526004602052604090205461134f565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600061139a82611327565b9050836001600160a01b0316816001600160a01b0316146113cd5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806113eb57506113eb8533610582565b806114065750336113fb846106fe565b6001600160a01b0316145b90508061142657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661144d57604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b8617811790915582166114ea57600183016000818152600460205260409020546114e85760005481146114e85760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600061136d82600a5485611870565b6000546001600160a01b03831661156a57604051622e076360e81b815260040160405180910390fd5b816115885760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106115d35750600055505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116a6903390899088908890600401611fa7565b6020604051808303816000875af19250505080156116e1575060408051601f3d908101601f191682019092526116de91810190611fe4565b60015b61173c573d80801561170f576040519150601f19603f3d011682016040523d82523d6000602084013e611714565b606091505b508051611734576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600061136d8284611e8c565b600061136d8284612001565b6060816117965750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117c057806117aa81612020565b91506117b99050600a83612051565b915061179a565b60008167ffffffffffffffff8111156117db576117db611b04565b6040519080825280601f01601f191660200182016040528015611805576020820181803683370190505b5090505b84156117525761181a600183611ea4565b9150611827600a86612065565b611832906030611e8c565b60f81b81838151811061184757611847612079565b60200101906001600160f81b031916908160001a905350611869600a86612051565b9450611809565b60008261187d8584611886565b14949350505050565b600081815b845181101561192a5760008582815181106118a8576118a8612079565b602002602001015190508083116118ea576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611917565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061192281612020565b91505061188b565b509392505050565b82805461193e90611d98565b90600052602060002090601f01602090048101928261196057600085556119a6565b82601f1061197957805160ff19168380011785556119a6565b828001600101855582156119a6579182015b828111156119a657825182559160200191906001019061198b565b506119b29291506119b6565b5090565b5b808211156119b257600081556001016119b7565b6001600160e01b0319811681146112fd57600080fd5b6000602082840312156119f357600080fd5b813561136d816119cb565b60005b83811015611a19578181015183820152602001611a01565b83811115610fd15750506000910152565b60008151808452611a428160208601602086016119fe565b601f01601f19169290920160200192915050565b60208152600061136d6020830184611a2a565b600060208284031215611a7b57600080fd5b5035919050565b80356001600160a01b0381168114611a9957600080fd5b919050565b60008060408385031215611ab157600080fd5b611aba83611a82565b946020939093013593505050565b600080600060608486031215611add57600080fd5b611ae684611a82565b9250611af460208501611a82565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611b4357611b43611b04565b604052919050565b60006020808385031215611b5e57600080fd5b823567ffffffffffffffff80821115611b7657600080fd5b818501915085601f830112611b8a57600080fd5b813581811115611b9c57611b9c611b04565b8060051b9150611bad848301611b1a565b8181529183018401918481019088841115611bc757600080fd5b938501935b83851015611be557843582529385019390850190611bcc565b98975050505050505050565b600067ffffffffffffffff831115611c0b57611c0b611b04565b611c1e601f8401601f1916602001611b1a565b9050828152838383011115611c3257600080fd5b828260208301376000602084830101529392505050565b600060208284031215611c5b57600080fd5b813567ffffffffffffffff811115611c7257600080fd5b8201601f81018413611c8357600080fd5b61175284823560208401611bf1565b600060208284031215611ca457600080fd5b61136d82611a82565b60008060408385031215611cc057600080fd5b611cc983611a82565b915060208301358015158114611cde57600080fd5b809150509250929050565b60008060008060808587031215611cff57600080fd5b611d0885611a82565b9350611d1660208601611a82565b925060408501359150606085013567ffffffffffffffff811115611d3957600080fd5b8501601f81018713611d4a57600080fd5b611d5987823560208401611bf1565b91505092959194509250565b60008060408385031215611d7857600080fd5b611d8183611a82565b9150611d8f60208401611a82565b90509250929050565b600181811c90821680611dac57607f821691505b60208210811415611dcd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f4e6f20736d61727420636f6e74726163747320616c6c6f7765642e0000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611e9f57611e9f611e76565b500190565b600082821015611eb657611eb6611e76565b500390565b60008151611ecd8185602086016119fe565b9290920192915050565b600080845481600182811c915080831680611ef357607f831692505b6020808410821415611f1357634e487b7160e01b86526022600452602486fd5b818015611f275760018114611f3857611f65565b60ff19861689528489019650611f65565b60008b81526020902060005b86811015611f5d5781548b820152908501908301611f44565b505084890196505b505050505050611f758185611ebb565b95945050505050565b60008251611f908184602087016119fe565b64173539b7b760d91b920191825250600501919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611fda90830184611a2a565b9695505050505050565b600060208284031215611ff657600080fd5b815161136d816119cb565b600081600019048311821515161561201b5761201b611e76565b500290565b600060001982141561203457612034611e76565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826120605761206061203b565b500490565b6000826120745761207461203b565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122024a763daf94c5f612dd1db64beeab40ba3c7116ec9af2c3b848f7f24d26d666064736f6c634300080b0033

Deployed Bytecode Sourcemap

55720:3563:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28300:615;;;;;;;;;;-1:-1:-1;28300:615:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;28300:615:0;;;;;;;;33313:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;35381:204::-;;;;;;;;;;-1:-1:-1;35381:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1714:32:1;;;1696:51;;1684:2;1669:18;35381:204:0;1550:203:1;34841:474:0;;;;;;;;;;-1:-1:-1;34841:474:0;;;;;:::i;:::-;;:::i;:::-;;27354:315;;;;;;;;;;-1:-1:-1;27620:12:0;;27407:7;27604:13;:28;27354:315;;;2341:25:1;;;2329:2;2314:18;27354:315:0;2195:177:1;36267:170:0;;;;;;;;;;-1:-1:-1;36267:170:0;;;;;:::i;:::-;;:::i;57008:85::-;;;;;;;;;;;;;:::i;57101:558::-;;;;;;:::i;:::-;;:::i;56560:249::-;;;;;;;;;;;;;:::i;56114:44::-;;;;;;;;;;;;56155:3;56114:44;;36508:185;;;;;;;;;;-1:-1:-1;36508:185:0;;;;;:::i;:::-;;:::i;56817:92::-;;;;;;;;;;-1:-1:-1;56817:92:0;;;;;:::i;:::-;;:::i;57667:514::-;;;;;;;;;;;;;:::i;56009:42::-;;;;;;;;;;;;56050:1;56009:42;;33102:144;;;;;;;;;;-1:-1:-1;33102:144:0;;;;;:::i;:::-;;:::i;56060:49::-;;;;;;;;;;;;56105:4;56060:49;;56265:21;;;;;;;;;;;;;:::i;55969:31::-;;;;;;;;;;;;;;;;28979:224;;;;;;;;;;-1:-1:-1;28979:224:0;;;;;:::i;:::-;;:::i;22513:103::-;;;;;;;;;;;;;:::i;55924:40::-;;;;;;;;;;;;;;;;56217:43;;;;;;;;;;-1:-1:-1;56217:43:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;21862:87;;;;;;;;;;-1:-1:-1;21935:6:0;;-1:-1:-1;;;;;21935:6:0;21862:87;;33482:104;;;;;;;;;;;;;:::i;35657:308::-;;;;;;;;;;-1:-1:-1;35657:308:0;;;;;:::i;:::-;;:::i;55848:34::-;;;;;;;;;;;;;;;;36764:396;;;;;;;;;;-1:-1:-1;36764:396:0;;;;;:::i;:::-;;:::i;58189:541::-;;;;;;:::i;:::-;;:::i;58738:252::-;;;;;;;;;;-1:-1:-1;58738:252:0;;;;;:::i;:::-;;:::i;56915:87::-;;;;;;;;;;-1:-1:-1;56915:87:0;;;;;:::i;:::-;;:::i;36036:164::-;;;;;;;;;;-1:-1:-1;36036:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;36157:25:0;;;36133:4;36157:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;36036:164;55887:32;;;;;;;;;;-1:-1:-1;55887:32:0;;;;;;;;56167:45;;;;;;;;;;-1:-1:-1;56167:45:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;22771:201;;;;;;;;;;-1:-1:-1;22771:201:0;;;;;:::i;:::-;;:::i;28300:615::-;28385:4;-1:-1:-1;;;;;;;;;28685:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;28762:25:0;;;28685:102;:179;;;-1:-1:-1;;;;;;;;;;28839:25:0;;;28685:179;28665:199;28300:615;-1:-1:-1;;28300:615:0:o;33313:100::-;33367:13;33400:5;33393:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33313:100;:::o;35381:204::-;35449:7;35474:16;35482:7;35474;:16::i;:::-;35469:64;;35499:34;;-1:-1:-1;;;35499:34:0;;;;;;;;;;;35469:64;-1:-1:-1;35553:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;35553:24:0;;35381:204::o;34841:474::-;34914:13;34946:27;34965:7;34946:18;:27::i;:::-;34914:61;;34996:5;-1:-1:-1;;;;;34990:11:0;:2;-1:-1:-1;;;;;34990:11:0;;34986:48;;;35010:24;;-1:-1:-1;;;35010:24:0;;;;;;;;;;;34986:48;51484:10;-1:-1:-1;;;;;35051:28:0;;;35047:175;;35099:44;35116:5;51484:10;36036:164;:::i;35099:44::-;35094:128;;35171:35;;-1:-1:-1;;;35171:35:0;;;;;;;;;;;35094:128;35234:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;35234:29:0;-1:-1:-1;;;;;35234:29:0;;;;;;;;;35279:28;;35234:24;;35279:28;;;;;;;34903:412;34841:474;;:::o;36267:170::-;36401:28;36411:4;36417:2;36421:7;36401:9;:28::i;:::-;36267:170;;;:::o;57008:85::-;21935:6;;-1:-1:-1;;;;;21935:6:0;51484:10;22082:23;22074:68;;;;-1:-1:-1;;;22074:68:0;;;;;;;:::i;:::-;;;;;;;;;57075:12:::1;::::0;;-1:-1:-1;;57059:28:0;::::1;57075:12;::::0;;::::1;57074:13;57059:28;::::0;;57008:85::o;57101:558::-;2617:1;3215:7;;:19;;3207:63;;;;-1:-1:-1;;;3207:63:0;;;;;;;:::i;:::-;2617:1;3348:7;:18;57193:10:::1;57207:9;57193:23;57185:63;;;;-1:-1:-1::0;;;57185:63:0::1;;;;;;;:::i;:::-;57263:12;::::0;::::1;;57255:54;;;::::0;-1:-1:-1;;;57255:54:0;;8452:2:1;57255:54:0::1;::::0;::::1;8434:21:1::0;8491:2;8471:18;;;8464:30;8530:31;8510:18;;;8503:59;8579:18;;57255:54:0::1;8250:353:1::0;57255:54:0::1;57345:35;56155:3;56105:4;57345:35;:::i;:::-;27620:12:::0;;27407:7;27604:13;:28;57324:17:::1;::::0;57340:1:::1;57324:17;:::i;:::-;:56;;57316:96;;;::::0;-1:-1:-1;;;57316:96:0;;9075:2:1;57316:96:0::1;::::0;::::1;9057:21:1::0;9114:2;9094:18;;;9087:30;9153:29;9133:18;;;9126:57;9200:18;;57316:96:0::1;8873:351:1::0;57316:96:0::1;59086:25:::0;;;57449:10:::1;15768:2:1::0;15764:15;-1:-1:-1;;15760:53:1;59086:25:0;;;;15748:66:1;;;;59086:25:0;;;;;;;;;15830:12:1;;;;59086:25:0;;;59076:36;;;;;57435:33:::1;::::0;57462:5:::1;57435:7;:33::i;:::-;57419:98;;;::::0;-1:-1:-1;;;57419:98:0;;9431:2:1;57419:98:0::1;::::0;::::1;9413:21:1::0;9470:2;9450:18;;;9443:30;9509:33;9489:18;;;9482:61;9560:18;;57419:98:0::1;9229:355:1::0;57419:98:0::1;57545:10;57533:23;::::0;;;:11:::1;:23;::::0;;;;;::::1;;57532:24;57524:61;;;::::0;-1:-1:-1;;;57524:61:0;;9791:2:1;57524:61:0::1;::::0;::::1;9773:21:1::0;9830:2;9810:18;;;9803:30;9869:26;9849:18;;;9842:54;9913:18;;57524:61:0::1;9589:348:1::0;57524:61:0::1;57606:10;57594:23;::::0;;;:11:::1;:23;::::0;;;;:30;;-1:-1:-1;;57594:30:0::1;57620:4;57594:30:::0;;::::1;::::0;;;57633:20:::1;::::0;57606:10;57633:5:::1;:20::i;:::-;-1:-1:-1::0;2573:1:0;3527:7;:22;57101:558::o;56560:249::-;21935:6;;-1:-1:-1;;;;;21935:6:0;51484:10;22082:23;22074:68;;;;-1:-1:-1;;;22074:68:0;;;;;;;:::i;:::-;56624:21:::1;56660:11:::0;56652:20:::1;;;::::0;::::1;;56703:44;::::0;56680:17:::1;::::0;56711:10:::1;::::0;56735:7;;56680:17;56703:44;56680:17;56703:44;56735:7;56711:10;56703:44:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56679:68;;;56762:12;56754:49;;;::::0;-1:-1:-1;;;56754:49:0;;10354:2:1;56754:49:0::1;::::0;::::1;10336:21:1::0;10393:2;10373:18;;;10366:30;10432:26;10412:18;;;10405:54;10476:18;;56754:49:0::1;10152:348:1::0;56754:49:0::1;56599:210;;56560:249::o:0;36508:185::-;36646:39;36663:4;36669:2;36673:7;36646:39;;;;;;;;;;;;:16;:39::i;56817:92::-;21935:6;;-1:-1:-1;;;;;21935:6:0;51484:10;22082:23;22074:68;;;;-1:-1:-1;;;22074:68:0;;;;;;;:::i;:::-;56885:18;;::::1;::::0;:7:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;57667:514::-:0;2617:1;3215:7;;:19;;3207:63;;;;-1:-1:-1;;;3207:63:0;;;;;;;:::i;:::-;2617:1;3348:7;:18;57724:10:::1;57738:9;57724:23;57716:63;;;;-1:-1:-1::0;;;57716:63:0::1;;;;;;;:::i;:::-;57794:12;::::0;::::1;;57786:52;;;::::0;-1:-1:-1;;;57786:52:0;;10707:2:1;57786:52:0::1;::::0;::::1;10689:21:1::0;10746:2;10726:18;;;10719:30;10785:29;10765:18;;;10758:57;10832:18;;57786:52:0::1;10505:351:1::0;57786:52:0::1;57868:10;57854:25;::::0;;;:13:::1;:25;::::0;;;;;::::1;;57853:26;57845:75;;;::::0;-1:-1:-1;;;57845:75:0;;11063:2:1;57845:75:0::1;::::0;::::1;11045:21:1::0;11102:2;11082:18;;;11075:30;11141:34;11121:18;;;11114:62;-1:-1:-1;;;11192:18:1;;;11185:34;11236:19;;57845:75:0::1;10861:400:1::0;57845:75:0::1;57948:1;57935:10;;:14;57927:60;;;::::0;-1:-1:-1;;;57927:60:0;;11468:2:1;57927:60:0::1;::::0;::::1;11450:21:1::0;11507:2;11487:18;;;11480:30;11546:34;11526:18;;;11519:62;-1:-1:-1;;;11597:18:1;;;11590:31;11638:19;;57927:60:0::1;11266:397:1::0;57927:60:0::1;56105:4;58002:13;27620:12:::0;;27407:7;27604:13;:28;;27354:315;58002:13:::1;:17;::::0;58018:1:::1;58002:17;:::i;:::-;:40;;57994:85;;;::::0;-1:-1:-1;;;57994:85:0;;11870:2:1;57994:85:0::1;::::0;::::1;11852:21:1::0;;;11889:18;;;11882:30;11948:34;11928:18;;;11921:62;12000:18;;57994:85:0::1;11668:356:1::0;57994:85:0::1;58106:10;58092:25;::::0;;;:13:::1;:25;::::0;;;;:32;;-1:-1:-1;;58092:32:0::1;58120:4;58092:32:::0;;::::1;::::0;;;58131:10:::1;:15:::0;;58120:4;;58131:10;;:15:::1;::::0;58120:4;;58131:15:::1;:::i;:::-;::::0;;;-1:-1:-1;58155:20:0::1;::::0;-1:-1:-1;58161:10:0::1;58173:1;58155:5;:20::i;:::-;2573:1:::0;3527:7;:22;57667:514::o;33102:144::-;33166:7;33209:27;33228:7;33209:18;:27::i;56265:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;28979:224::-;29043:7;-1:-1:-1;;;;;29067:19:0;;29063:60;;29095:28;;-1:-1:-1;;;29095:28:0;;;;;;;;;;;29063:60;-1:-1:-1;;;;;;29141:25:0;;;;;:18;:25;;;;;;24318:13;29141:54;;28979:224::o;22513:103::-;21935:6;;-1:-1:-1;;;;;21935:6:0;51484:10;22082:23;22074:68;;;;-1:-1:-1;;;22074:68:0;;;;;;;:::i;:::-;22578:30:::1;22605:1;22578:18;:30::i;:::-;22513:103::o:0;33482:104::-;33538:13;33571:7;33564:14;;;;;:::i;35657:308::-;-1:-1:-1;;;;;35756:31:0;;51484:10;35756:31;35752:61;;;35796:17;;-1:-1:-1;;;35796:17:0;;;;;;;;;;;35752:61;51484:10;35826:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;35826:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;35826:60:0;;;;;;;;;;35902:55;;540:41:1;;;35826:49:0;;51484:10;35902:55;;513:18:1;35902:55:0;;;;;;;35657:308;;:::o;36764:396::-;36931:28;36941:4;36947:2;36951:7;36931:9;:28::i;:::-;-1:-1:-1;;;;;36974:14:0;;;:19;36970:183;;37013:56;37044:4;37050:2;37054:7;37063:5;37013:30;:56::i;:::-;37008:145;;37097:40;;-1:-1:-1;;;37097:40:0;;;;;;;;;;;37008:145;36764:396;;;;:::o;58189:541::-;2617:1;3215:7;;:19;;3207:63;;;;-1:-1:-1;;;3207:63:0;;;;;;;:::i;:::-;2617:1;3348:7;:18;58274:10:::1;58289:9;58274:24;58266:64;;;;-1:-1:-1::0;;;58266:64:0::1;;;;;;;:::i;:::-;58345:12;::::0;::::1;;58337:52;;;::::0;-1:-1:-1;;;58337:52:0;;10707:2:1;58337:52:0::1;::::0;::::1;10689:21:1::0;10746:2;10726:18;;;10719:30;10785:29;10765:18;;;10758:57;10832:18;;58337:52:0::1;10505:351:1::0;58337:52:0::1;56050:1;58404:14;:35;;58396:81;;;::::0;-1:-1:-1;;;58396:81:0;;12361:2:1;58396:81:0::1;::::0;::::1;12343:21:1::0;12400:2;12380:18;;;12373:30;12439:34;12419:18;;;12412:62;-1:-1:-1;;;12490:18:1;;;12483:31;12531:19;;58396:81:0::1;12159:397:1::0;58396:81:0::1;56105:4;58492:33;58510:14;58492:13;27620:12:::0;;27407:7;27604:13;:28;;27354:315;58492:13:::1;:17:::0;::::1;:33::i;:::-;:55;;58484:100;;;::::0;-1:-1:-1;;;58484:100:0;;11870:2:1;58484:100:0::1;::::0;::::1;11852:21:1::0;;;11889:18;;;11882:30;11948:34;11928:18;;;11921:62;12000:18;;58484:100:0::1;11668:356:1::0;58484:100:0::1;58612:10;::::0;:30:::1;::::0;58627:14;58612::::1;:30::i;:::-;58599:9;:43;58591:87;;;::::0;-1:-1:-1;;;58591:87:0;;12763:2:1;58591:87:0::1;::::0;::::1;12745:21:1::0;12802:2;12782:18;;;12775:30;12841:33;12821:18;;;12814:61;12892:18;;58591:87:0::1;12561:355:1::0;58591:87:0::1;58691:33;58697:10;58709:14;58691:5;:33::i;58738:252::-:0;58811:13;58841:16;58849:7;58841;:16::i;:::-;58833:50;;;;-1:-1:-1;;;58833:50:0;;13123:2:1;58833:50:0;;;13105:21:1;13162:2;13142:18;;;13135:30;-1:-1:-1;;;13181:18:1;;;13174:51;13242:18;;58833:50:0;12921:345:1;58833:50:0;58938:7;58947:25;58964:7;58947:16;:25::i;:::-;58921:52;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;58921:52:0;;;;;;;;;;58904:79;;58921:52;58904:79;;:::i;:::-;;;;;;;;;;;;;58890:94;;58738:252;;;:::o;56915:87::-;21935:6;;-1:-1:-1;;;;;21935:6:0;51484:10;22082:23;22074:68;;;;-1:-1:-1;;;22074:68:0;;;;;;;:::i;:::-;56970:19:::1;:26:::0;56915:87::o;22771:201::-;21935:6;;-1:-1:-1;;;;;21935:6:0;51484:10;22082:23;22074:68;;;;-1:-1:-1;;;22074:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;22860:22:0;::::1;22852:73;;;::::0;-1:-1:-1;;;22852:73:0;;15414:2:1;22852:73:0::1;::::0;::::1;15396:21:1::0;15453:2;15433:18;;;15426:30;15492:34;15472:18;;;15465:62;-1:-1:-1;;;15543:18:1;;;15536:36;15589:19;;22852:73:0::1;15212:402:1::0;22852:73:0::1;22936:28;22955:8;22936:18;:28::i;:::-;22771:201:::0;:::o;37415:273::-;37472:4;37562:13;;37552:7;:23;37509:152;;;;-1:-1:-1;;37613:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;37613:43:0;:48;;37415:273::o;30617:1129::-;30684:7;30719;30821:13;;30814:4;:20;30810:869;;;30859:14;30876:23;;;:17;:23;;;;;;-1:-1:-1;;;30965:23:0;;30961:699;;31484:113;31491:11;31484:113;;-1:-1:-1;;;31562:6:0;31544:25;;;;:17;:25;;;;;;31484:113;;;31630:6;30617:1129;-1:-1:-1;;;30617:1129:0:o;30961:699::-;30836:843;30810:869;31707:31;;-1:-1:-1;;;31707:31:0;;;;;;;;;;;42654:2515;42769:27;42799;42818:7;42799:18;:27::i;:::-;42769:57;;42884:4;-1:-1:-1;;;;;42843:45:0;42859:19;-1:-1:-1;;;;;42843:45:0;;42839:86;;42897:28;;-1:-1:-1;;;42897:28:0;;;;;;;;;;;42839:86;42938:22;51484:10;-1:-1:-1;;;;;42964:27:0;;;;:87;;-1:-1:-1;43008:43:0;43025:4;51484:10;36036:164;:::i;43008:43::-;42964:147;;;-1:-1:-1;51484:10:0;43068:20;43080:7;43068:11;:20::i;:::-;-1:-1:-1;;;;;43068:43:0;;42964:147;42938:174;;43130:17;43125:66;;43156:35;;-1:-1:-1;;;43156:35:0;;;;;;;;;;;43125:66;-1:-1:-1;;;;;43206:16:0;;43202:52;;43231:23;;-1:-1:-1;;;43231:23:0;;;;;;;;;;;43202:52;43383:24;;;;:15;:24;;;;;;;;43376:31;;-1:-1:-1;;;;;;43376:31:0;;;-1:-1:-1;;;;;43775:24:0;;;;;:18;:24;;;;;43773:26;;-1:-1:-1;;43773:26:0;;;43844:22;;;;;;;43842:24;;-1:-1:-1;43842:24:0;;;44137:26;;;:17;:26;;;;;-1:-1:-1;;;44225:15:0;24972:3;44225:41;44183:84;;:128;;44137:174;;;44431:46;;44427:626;;44535:1;44525:11;;44503:19;44658:30;;;:17;:30;;;;;;44654:384;;44796:13;;44781:11;:28;44777:242;;44943:30;;;;:17;:30;;;;;:52;;;44777:242;44484:569;44427:626;45100:7;45096:2;-1:-1:-1;;;;;45081:27:0;45090:4;-1:-1:-1;;;;;45081:27:0;;;;;;;;;;;42758:2411;;42654:2515;;;:::o;59124:156::-;59202:4;59222:52;59241:5;59248:19;;59269:4;59222:18;:52::i;40744:1656::-;40809:20;40832:13;-1:-1:-1;;;;;40860:16:0;;40856:48;;40885:19;;-1:-1:-1;;;40885:19:0;;;;;;;;;;;40856:48;40919:13;40915:44;;40941:18;;-1:-1:-1;;;40941:18:0;;;;;;;;;;;40915:44;-1:-1:-1;;;;;41508:22:0;;;;;;:18;:22;;;;24455:2;41508:22;;;:70;;41546:31;41534:44;;41508:70;;;41821:31;;;:17;:31;;;;;41914:15;24972:3;41914:41;41872:84;;-1:-1:-1;41992:13:0;;25235:3;41977:56;41872:162;41821:213;;:31;42115:23;;;42155:111;42182:40;;42207:14;;;;;-1:-1:-1;;;;;42182:40:0;;;42199:1;;42182:40;;42199:1;;42182:40;42261:3;42246:12;:18;42155:111;;-1:-1:-1;42282:13:0;:28;36267:170;;;:::o;23132:191::-;23225:6;;;-1:-1:-1;;;;;23242:17:0;;;-1:-1:-1;;;;;;23242:17:0;;;;;;;23275:40;;23225:6;;;23242:17;23225:6;;23275:40;;23206:16;;23275:40;23195:128;23132:191;:::o;48866:716::-;49050:88;;-1:-1:-1;;;49050:88:0;;49029:4;;-1:-1:-1;;;;;49050:45:0;;;;;:88;;51484:10;;49117:4;;49123:7;;49132:5;;49050:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49050:88:0;;;;;;;;-1:-1:-1;;49050:88:0;;;;;;;;;;;;:::i;:::-;;;49046:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49333:13:0;;49329:235;;49379:40;;-1:-1:-1;;;49379:40:0;;;;;;;;;;;49329:235;49522:6;49516:13;49507:6;49503:2;49499:15;49492:38;49046:529;-1:-1:-1;;;;;;49209:64:0;-1:-1:-1;;;49209:64:0;;-1:-1:-1;49046:529:0;48866:716;;;;;;:::o;14376:98::-;14434:7;14461:5;14465:1;14461;:5;:::i;15114:98::-;15172:7;15199:5;15203:1;15199;:5;:::i;19100:723::-;19156:13;19377:10;19373:53;;-1:-1:-1;;19404:10:0;;;;;;;;;;;;-1:-1:-1;;;19404:10:0;;;;;19100:723::o;19373:53::-;19451:5;19436:12;19492:78;19499:9;;19492:78;;19525:8;;;;:::i;:::-;;-1:-1:-1;19548:10:0;;-1:-1:-1;19556:2:0;19548:10;;:::i;:::-;;;19492:78;;;19580:19;19612:6;19602:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19602:17:0;;19580:39;;19630:154;19637:10;;19630:154;;19664:11;19674:1;19664:11;;:::i;:::-;;-1:-1:-1;19733:10:0;19741:2;19733:5;:10;:::i;:::-;19720:24;;:2;:24;:::i;:::-;19707:39;;19690:6;19697;19690:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;19690:56:0;;;;;;;;-1:-1:-1;19761:11:0;19770:2;19761:11;;:::i;:::-;;;19630:154;;54409:190;54534:4;54587;54558:25;54571:5;54578:4;54558:12;:25::i;:::-;:33;;54409:190;-1:-1:-1;;;;54409:190:0:o;54961:701::-;55044:7;55087:4;55044:7;55102:523;55126:5;:12;55122:1;:16;55102:523;;;55160:20;55183:5;55189:1;55183:8;;;;;;;;:::i;:::-;;;;;;;55160:31;;55226:12;55210;:28;55206:408;;55363:44;;;;;;17588:19:1;;;17623:12;;;17616:28;;;17660:12;;55363:44:0;;;;;;;;;;;;55353:55;;;;;;55338:70;;55206:408;;;55553:44;;;;;;17588:19:1;;;17623:12;;;17616:28;;;17660:12;;55553:44:0;;;;;;;;;;;;55543:55;;;;;;55528:70;;55206:408;-1:-1:-1;55140:3:0;;;;:::i;:::-;;;;55102:523;;;-1:-1:-1;55642:12:0;54961:701;-1:-1:-1;;;54961:701:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:269::-;908:3;946:5;940:12;973:6;968:3;961:19;989:63;1045:6;1038:4;1033:3;1029:14;1022:4;1015:5;1011:16;989:63;:::i;:::-;1106:2;1085:15;-1:-1:-1;;1081:29:1;1072:39;;;;1113:4;1068:50;;855:269;-1:-1:-1;;855:269:1:o;1129:231::-;1278:2;1267:9;1260:21;1241:4;1298:56;1350:2;1339:9;1335:18;1327:6;1298:56;:::i;1365:180::-;1424:6;1477:2;1465:9;1456:7;1452:23;1448:32;1445:52;;;1493:1;1490;1483:12;1445:52;-1:-1:-1;1516:23:1;;1365:180;-1:-1:-1;1365:180:1:o;1758:173::-;1826:20;;-1:-1:-1;;;;;1875:31:1;;1865:42;;1855:70;;1921:1;1918;1911:12;1855:70;1758:173;;;:::o;1936:254::-;2004:6;2012;2065:2;2053:9;2044:7;2040:23;2036:32;2033:52;;;2081:1;2078;2071:12;2033:52;2104:29;2123:9;2104:29;:::i;:::-;2094:39;2180:2;2165:18;;;;2152:32;;-1:-1:-1;;;1936:254:1:o;2377:328::-;2454:6;2462;2470;2523:2;2511:9;2502:7;2498:23;2494:32;2491:52;;;2539:1;2536;2529:12;2491:52;2562:29;2581:9;2562:29;:::i;:::-;2552:39;;2610:38;2644:2;2633:9;2629:18;2610:38;:::i;:::-;2600:48;;2695:2;2684:9;2680:18;2667:32;2657:42;;2377:328;;;;;:::o;2710:127::-;2771:10;2766:3;2762:20;2759:1;2752:31;2802:4;2799:1;2792:15;2826:4;2823:1;2816:15;2842:275;2913:2;2907:9;2978:2;2959:13;;-1:-1:-1;;2955:27:1;2943:40;;3013:18;2998:34;;3034:22;;;2995:62;2992:88;;;3060:18;;:::i;:::-;3096:2;3089:22;2842:275;;-1:-1:-1;2842:275:1:o;3122:946::-;3206:6;3237:2;3280;3268:9;3259:7;3255:23;3251:32;3248:52;;;3296:1;3293;3286:12;3248:52;3336:9;3323:23;3365:18;3406:2;3398:6;3395:14;3392:34;;;3422:1;3419;3412:12;3392:34;3460:6;3449:9;3445:22;3435:32;;3505:7;3498:4;3494:2;3490:13;3486:27;3476:55;;3527:1;3524;3517:12;3476:55;3563:2;3550:16;3585:2;3581;3578:10;3575:36;;;3591:18;;:::i;:::-;3637:2;3634:1;3630:10;3620:20;;3660:28;3684:2;3680;3676:11;3660:28;:::i;:::-;3722:15;;;3792:11;;;3788:20;;;3753:12;;;;3820:19;;;3817:39;;;3852:1;3849;3842:12;3817:39;3876:11;;;;3896:142;3912:6;3907:3;3904:15;3896:142;;;3978:17;;3966:30;;3929:12;;;;4016;;;;3896:142;;;4057:5;3122:946;-1:-1:-1;;;;;;;;3122:946:1:o;4073:407::-;4138:5;4172:18;4164:6;4161:30;4158:56;;;4194:18;;:::i;:::-;4232:57;4277:2;4256:15;;-1:-1:-1;;4252:29:1;4283:4;4248:40;4232:57;:::i;:::-;4223:66;;4312:6;4305:5;4298:21;4352:3;4343:6;4338:3;4334:16;4331:25;4328:45;;;4369:1;4366;4359:12;4328:45;4418:6;4413:3;4406:4;4399:5;4395:16;4382:43;4472:1;4465:4;4456:6;4449:5;4445:18;4441:29;4434:40;4073:407;;;;;:::o;4485:451::-;4554:6;4607:2;4595:9;4586:7;4582:23;4578:32;4575:52;;;4623:1;4620;4613:12;4575:52;4663:9;4650:23;4696:18;4688:6;4685:30;4682:50;;;4728:1;4725;4718:12;4682:50;4751:22;;4804:4;4796:13;;4792:27;-1:-1:-1;4782:55:1;;4833:1;4830;4823:12;4782:55;4856:74;4922:7;4917:2;4904:16;4899:2;4895;4891:11;4856:74;:::i;4941:186::-;5000:6;5053:2;5041:9;5032:7;5028:23;5024:32;5021:52;;;5069:1;5066;5059:12;5021:52;5092:29;5111:9;5092:29;:::i;5132:347::-;5197:6;5205;5258:2;5246:9;5237:7;5233:23;5229:32;5226:52;;;5274:1;5271;5264:12;5226:52;5297:29;5316:9;5297:29;:::i;:::-;5287:39;;5376:2;5365:9;5361:18;5348:32;5423:5;5416:13;5409:21;5402:5;5399:32;5389:60;;5445:1;5442;5435:12;5389:60;5468:5;5458:15;;;5132:347;;;;;:::o;5666:667::-;5761:6;5769;5777;5785;5838:3;5826:9;5817:7;5813:23;5809:33;5806:53;;;5855:1;5852;5845:12;5806:53;5878:29;5897:9;5878:29;:::i;:::-;5868:39;;5926:38;5960:2;5949:9;5945:18;5926:38;:::i;:::-;5916:48;;6011:2;6000:9;5996:18;5983:32;5973:42;;6066:2;6055:9;6051:18;6038:32;6093:18;6085:6;6082:30;6079:50;;;6125:1;6122;6115:12;6079:50;6148:22;;6201:4;6193:13;;6189:27;-1:-1:-1;6179:55:1;;6230:1;6227;6220:12;6179:55;6253:74;6319:7;6314:2;6301:16;6296:2;6292;6288:11;6253:74;:::i;:::-;6243:84;;;5666:667;;;;;;;:::o;6523:260::-;6591:6;6599;6652:2;6640:9;6631:7;6627:23;6623:32;6620:52;;;6668:1;6665;6658:12;6620:52;6691:29;6710:9;6691:29;:::i;:::-;6681:39;;6739:38;6773:2;6762:9;6758:18;6739:38;:::i;:::-;6729:48;;6523:260;;;;;:::o;6788:380::-;6867:1;6863:12;;;;6910;;;6931:61;;6985:4;6977:6;6973:17;6963:27;;6931:61;7038:2;7030:6;7027:14;7007:18;7004:38;7001:161;;;7084:10;7079:3;7075:20;7072:1;7065:31;7119:4;7116:1;7109:15;7147:4;7144:1;7137:15;7001:161;;6788:380;;;:::o;7173:356::-;7375:2;7357:21;;;7394:18;;;7387:30;7453:34;7448:2;7433:18;;7426:62;7520:2;7505:18;;7173:356::o;7534:355::-;7736:2;7718:21;;;7775:2;7755:18;;;7748:30;7814:33;7809:2;7794:18;;7787:61;7880:2;7865:18;;7534:355::o;7894:351::-;8096:2;8078:21;;;8135:2;8115:18;;;8108:30;8174:29;8169:2;8154:18;;8147:57;8236:2;8221:18;;7894:351::o;8608:127::-;8669:10;8664:3;8660:20;8657:1;8650:31;8700:4;8697:1;8690:15;8724:4;8721:1;8714:15;8740:128;8780:3;8811:1;8807:6;8804:1;8801:13;8798:39;;;8817:18;;:::i;:::-;-1:-1:-1;8853:9:1;;8740:128::o;12029:125::-;12069:4;12097:1;12094;12091:8;12088:34;;;12102:18;;:::i;:::-;-1:-1:-1;12139:9:1;;12029:125::o;13397:185::-;13439:3;13477:5;13471:12;13492:52;13537:6;13532:3;13525:4;13518:5;13514:16;13492:52;:::i;:::-;13560:16;;;;;13397:185;-1:-1:-1;;13397:185:1:o;13587:1174::-;13763:3;13792:1;13825:6;13819:13;13855:3;13877:1;13905:9;13901:2;13897:18;13887:28;;13965:2;13954:9;13950:18;13987;13977:61;;14031:4;14023:6;14019:17;14009:27;;13977:61;14057:2;14105;14097:6;14094:14;14074:18;14071:38;14068:165;;;-1:-1:-1;;;14132:33:1;;14188:4;14185:1;14178:15;14218:4;14139:3;14206:17;14068:165;14249:18;14276:104;;;;14394:1;14389:320;;;;14242:467;;14276:104;-1:-1:-1;;14309:24:1;;14297:37;;14354:16;;;;-1:-1:-1;14276:104:1;;14389:320;13344:1;13337:14;;;13381:4;13368:18;;14484:1;14498:165;14512:6;14509:1;14506:13;14498:165;;;14590:14;;14577:11;;;14570:35;14633:16;;;;14527:10;;14498:165;;;14502:3;;14692:6;14687:3;14683:16;14676:23;;14242:467;;;;;;;14725:30;14751:3;14743:6;14725:30;:::i;:::-;14718:37;13587:1174;-1:-1:-1;;;;;13587:1174:1:o;14766:441::-;14996:3;15034:6;15028:13;15050:53;15096:6;15091:3;15084:4;15076:6;15072:17;15050:53;:::i;:::-;-1:-1:-1;;;15125:16:1;;15150:22;;;-1:-1:-1;15199:1:1;15188:13;;14766:441;-1:-1:-1;14766:441:1:o;15853:500::-;-1:-1:-1;;;;;16122:15:1;;;16104:34;;16174:15;;16169:2;16154:18;;16147:43;16221:2;16206:18;;16199:34;;;16269:3;16264:2;16249:18;;16242:31;;;16047:4;;16290:57;;16327:19;;16319:6;16290:57;:::i;:::-;16282:65;15853:500;-1:-1:-1;;;;;;15853:500:1:o;16358:249::-;16427:6;16480:2;16468:9;16459:7;16455:23;16451:32;16448:52;;;16496:1;16493;16486:12;16448:52;16528:9;16522:16;16547:30;16571:5;16547:30;:::i;16612:168::-;16652:7;16718:1;16714;16710:6;16706:14;16703:1;16700:21;16695:1;16688:9;16681:17;16677:45;16674:71;;;16725:18;;:::i;:::-;-1:-1:-1;16765:9:1;;16612:168::o;16785:135::-;16824:3;-1:-1:-1;;16845:17:1;;16842:43;;;16865:18;;:::i;:::-;-1:-1:-1;16912:1:1;16901:13;;16785:135::o;16925:127::-;16986:10;16981:3;16977:20;16974:1;16967:31;17017:4;17014:1;17007:15;17041:4;17038:1;17031:15;17057:120;17097:1;17123;17113:35;;17128:18;;:::i;:::-;-1:-1:-1;17162:9:1;;17057:120::o;17182:112::-;17214:1;17240;17230:35;;17245:18;;:::i;:::-;-1:-1:-1;17279:9:1;;17182:112::o;17299:127::-;17360:10;17355:3;17351:20;17348:1;17341:31;17391:4;17388:1;17381:15;17415:4;17412:1;17405:15

Swarm Source

ipfs://24a763daf94c5f612dd1db64beeab40ba3c7116ec9af2c3b848f7f24d26d6660
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.