ETH Price: $2,292.55 (-5.33%)

Token

Chinese Red Envelopes NFT (REDBAO)
 

Overview

Max Total Supply

40 REDBAO

Holders

36

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Null: 0x000...000
Balance
0 REDBAO
0x0000000000000000000000000000000000000000
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:
REDBAO

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// File: node_modules\@openzeppelin\contracts\utils\introspection\IERC165.sol

// SPDX-License-Identifier: MIT 
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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);
}

// File: node_modules\@openzeppelin\contracts\token\ERC721\IERC721.sol

 
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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`, 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

// File: node_modules\@openzeppelin\contracts\token\ERC721\IERC721Receiver.sol

 
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File: node_modules\@openzeppelin\contracts\token\ERC721\extensions\IERC721Metadata.sol

 
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

// File: node_modules\@openzeppelin\contracts\utils\Address.sol

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: node_modules\@openzeppelin\contracts\utils\Context.sol

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

// File: node_modules\@openzeppelin\contracts\utils\Strings.sol

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

// File: node_modules\@openzeppelin\contracts\utils\introspection\ERC165.sol

 
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File: node_modules\@openzeppelin\contracts\token\ERC721\ERC721.sol

 
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @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 See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), 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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// File: node_modules\@openzeppelin\contracts\token\ERC721\extensions\IERC721Enumerable.sol

 
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// File: @openzeppelin\contracts\token\ERC721\extensions\ERC721Enumerable.sol

 
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;



/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// File: @openzeppelin\contracts\access\Ownable.sol

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

// File: @openzeppelin\contracts\security\ReentrancyGuard.sol

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// File: @openzeppelin\contracts\utils\math\SafeMath.sol

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

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the 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;
        }
    }
}

// File: contracts\REDBAO.sol

 
pragma solidity ^0.8.0;






contract REDBAO is ERC721Enumerable, Ownable, ReentrancyGuard {
    using Strings for uint256;
    using SafeMath for uint256;
    uint256 public constant MAX_SUPPLY = 8888;
    address public constant DAO = 0xf02cD93F73F6aAD9548b31e767593f4bE4D38D7E;
    string private _tokenBaseURI = "https://www.zhufudao.org/api/getUrl?nftid=";

    uint256 public mintPrice = 0.05 ether;
    bool public saleLive = true;
    bool public onlyWhiteListed = true;
    mapping(address => bool) whiteList;

    event Mint(address sender, uint256 tokenId);
    
    constructor() ERC721("Chinese Red Envelopes NFT", "REDBAO") { }

    function addWhiteList(address[] calldata entries) external onlyOwner {
        for(uint256 i = 0; i < entries.length; i++) {
            address entry = entries[i];
            require(entry != address(0), "NULL_ADDRESS");
            require(!whiteList[entry], "DUPLICATE_ENTRY");

            whiteList[entry] = true;
        }   
    }

    function removeFromWhiteList(address[] calldata entries) external onlyOwner {
        for(uint256 i = 0; i < entries.length; i++) {
            address entry = entries[i];
            require(entry != address(0), "NULL_ADDRESS");
            
            whiteList[entry] = false;
        }
    }

    function isWhiteListed(address addr) external view returns (bool) {
        return whiteList[addr];
    }
    
    function mint() external nonReentrant payable{
        require(saleLive, "mint:sale closed");
        if(onlyWhiteListed){
            require(whiteList[msg.sender], "mint:onlyWhiteListed");
        }
        require(totalSupply() < MAX_SUPPLY, "mint:exceed mint");
        require(mintPrice <= msg.value, "mint:send value not enough");
        uint256 tokenId = totalSupply() + 1;
        _safeMint(msg.sender, tokenId);
        payable(DAO).transfer(mintPrice);
        emit Mint(msg.sender, tokenId);
    }
    
    function withdraw(address to) external onlyOwner {
        payable(to).transfer(address(this).balance);
    }

    function setBaseURI(string calldata URI) external onlyOwner {
        _tokenBaseURI = URI;
    }

    function setMintPrice(uint256 price) external onlyOwner {
        mintPrice = price;
    }

    function toggleSaleStatus() external onlyOwner {
        saleLive = !saleLive;
    }

    function toggleWhileListStatus() external onlyOwner {
        onlyWhiteListed = !onlyWhiteListed;
    }
    
    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        require(_exists(tokenId), "Cannot query non-existent token");
        
        return string(abi.encodePacked(_tokenBaseURI, tokenId.toString()));
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Mint","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":"DAO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"entries","type":"address[]"}],"name":"addWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"address","name":"addr","type":"address"}],"name":"isWhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address[]","name":"entries","type":"address[]"}],"name":"removeFromWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleLive","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":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","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":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhileListStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052602a608081815290620026d660a03980516200002991600c9160209091019062000152565b5066b1a2bc2ec50000600d55600e805461ff001960ff19909116600117166101001790553480156200005a57600080fd5b50604080518082018252601981527f4368696e6573652052656420456e76656c6f706573204e46540000000000000060208083019182528351808501909452600684526552454442414f60d01b908401528151919291620000be9160009162000152565b508051620000d490600190602084019062000152565b505050620000f1620000eb620000fc60201b60201c565b62000100565b6001600b5562000235565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200016090620001f8565b90600052602060002090601f016020900481019282620001845760008555620001cf565b82601f106200019f57805160ff1916838001178555620001cf565b82800160010185558215620001cf579182015b82811115620001cf578251825591602001919060010190620001b2565b50620001dd929150620001e1565b5090565b5b80821115620001dd5760008155600101620001e2565b6002810460018216806200020d57607f821691505b602082108114156200022f57634e487b7160e01b600052602260045260246000fd5b50919050565b61249180620002456000396000f3fe6080604052600436106101ee5760003560e01c80636817c76c1161010d578063a4759074116100a0578063c87b56dd1161006f578063c87b56dd14610569578063e081b78114610589578063e985e9c5146105a3578063f2fde38b146105ec578063f4a0a5281461060c576101ee565b8063a4759074146104f5578063b11560c514610514578063b140905d14610534578063b88d4fde14610549576101ee565b80638da5cb5b116100dc5780638da5cb5b1461047a57806395d89b411461049857806398fabd3a146104ad578063a22cb465146104d5576101ee565b80636817c76c146103f65780636f9170f61461040c57806370a0823114610445578063715018a614610465576101ee565b80632f745c591161018557806351cff8d91161015457806351cff8d91461037657806355f804b3146103965780635e1045ec146103b65780636352211e146103d6576101ee565b80632f745c591461030057806332cb6b0c1461032057806342842e0e146103365780634f6ccce714610356576101ee565b8063095ea7b3116101c1578063095ea7b3146102995780631249c58b146102b957806318160ddd146102c157806323b872dd146102e0576101ee565b806301ffc9a7146101f3578063049c5c491461022857806306fdde031461023f578063081812fc14610261575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612069565b61062c565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610659565b005b34801561024b57600080fd5b506102546106a0565b60405161021f919061223f565b34801561026d57600080fd5b5061028161027c3660046120fc565b610732565b6040516001600160a01b03909116815260200161021f565b3480156102a557600080fd5b5061023d6102b4366004611fd1565b6107c7565b61023d6108dd565b3480156102cd57600080fd5b506008545b60405190815260200161021f565b3480156102ec57600080fd5b5061023d6102fb366004611e87565b610b24565b34801561030c57600080fd5b506102d261031b366004611fd1565b610b55565b34801561032c57600080fd5b506102d26122b881565b34801561034257600080fd5b5061023d610351366004611e87565b610beb565b34801561036257600080fd5b506102d26103713660046120fc565b610c06565b34801561038257600080fd5b5061023d610391366004611e34565b610ca7565b3480156103a257600080fd5b5061023d6103b13660046120a1565b610d0a565b3480156103c257600080fd5b5061023d6103d1366004611ffa565b610d40565b3480156103e257600080fd5b506102816103f13660046120fc565b610e82565b34801561040257600080fd5b506102d2600d5481565b34801561041857600080fd5b50610213610427366004611e34565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561045157600080fd5b506102d2610460366004611e34565b610ef9565b34801561047157600080fd5b5061023d610f80565b34801561048657600080fd5b50600a546001600160a01b0316610281565b3480156104a457600080fd5b50610254610fb6565b3480156104b957600080fd5b5061028173f02cd93f73f6aad9548b31e767593f4be4d38d7e81565b3480156104e157600080fd5b5061023d6104f0366004611f97565b610fc5565b34801561050157600080fd5b50600e5461021390610100900460ff1681565b34801561052057600080fd5b5061023d61052f366004611ffa565b610fd0565b34801561054057600080fd5b5061023d6110b4565b34801561055557600080fd5b5061023d610564366004611ec2565b6110fb565b34801561057557600080fd5b506102546105843660046120fc565b611133565b34801561059557600080fd5b50600e546102139060ff1681565b3480156105af57600080fd5b506102136105be366004611e55565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105f857600080fd5b5061023d610607366004611e34565b6111cc565b34801561061857600080fd5b5061023d6106273660046120fc565b611267565b60006001600160e01b0319821663780e9d6360e01b1480610651575061065182611296565b90505b919050565b600a546001600160a01b0316331461068c5760405162461bcd60e51b8152600401610683906122a4565b60405180910390fd5b600e805460ff19811660ff90911615179055565b6060600080546106af90612399565b80601f01602080910402602001604051908101604052809291908181526020018280546106db90612399565b80156107285780601f106106fd57610100808354040283529160200191610728565b820191906000526020600020905b81548152906001019060200180831161070b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610683565b506000908152600460205260409020546001600160a01b031690565b60006107d282610e82565b9050806001600160a01b0316836001600160a01b031614156108405760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610683565b336001600160a01b038216148061085c575061085c81336105be565b6108ce5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610683565b6108d883836112e6565b505050565b6002600b5414156109305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610683565b6002600b55600e5460ff1661097a5760405162461bcd60e51b815260206004820152601060248201526f1b5a5b9d0e9cd85b194818db1bdcd95960821b6044820152606401610683565b600e54610100900460ff16156109e057336000908152600f602052604090205460ff166109e05760405162461bcd60e51b81526020600482015260146024820152731b5a5b9d0e9bdb9b1e55da1a5d19531a5cdd195960621b6044820152606401610683565b6122b86109ec60085490565b10610a2c5760405162461bcd60e51b815260206004820152601060248201526f1b5a5b9d0e995e18d95959081b5a5b9d60821b6044820152606401610683565b34600d541115610a7e5760405162461bcd60e51b815260206004820152601a60248201527f6d696e743a73656e642076616c7565206e6f7420656e6f7567680000000000006044820152606401610683565b6000610a8960085490565b610a9490600161232a565b9050610aa03382611354565b600d5460405173f02cd93f73f6aad9548b31e767593f4be4d38d7e9180156108fc02916000818181858888f19350505050158015610ae2573d6000803e3d6000fd5b5060408051338152602081018390527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a1506001600b55565b610b2e338261136e565b610b4a5760405162461bcd60e51b8152600401610683906122d9565b6108d8838383611465565b6000610b6083610ef9565b8210610bc25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610683565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6108d8838383604051806020016040528060008152506110fb565b6000610c1160085490565b8210610c745760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610683565b60088281548110610c9557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610cd15760405162461bcd60e51b8152600401610683906122a4565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610d06573d6000803e3d6000fd5b5050565b600a546001600160a01b03163314610d345760405162461bcd60e51b8152600401610683906122a4565b6108d8600c8383611d84565b600a546001600160a01b03163314610d6a5760405162461bcd60e51b8152600401610683906122a4565b60005b818110156108d8576000838383818110610d9757634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610dac9190611e34565b90506001600160a01b038116610df35760405162461bcd60e51b815260206004820152600c60248201526b4e554c4c5f4144445245535360a01b6044820152606401610683565b6001600160a01b0381166000908152600f602052604090205460ff1615610e4e5760405162461bcd60e51b815260206004820152600f60248201526e4455504c49434154455f454e54525960881b6044820152606401610683565b6001600160a01b03166000908152600f60205260409020805460ff1916600117905580610e7a816123d4565b915050610d6d565b6000818152600260205260408120546001600160a01b0316806106515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610683565b60006001600160a01b038216610f645760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610683565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610faa5760405162461bcd60e51b8152600401610683906122a4565b610fb46000611610565b565b6060600180546106af90612399565b610d06338383611662565b600a546001600160a01b03163314610ffa5760405162461bcd60e51b8152600401610683906122a4565b60005b818110156108d857600083838381811061102757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061103c9190611e34565b90506001600160a01b0381166110835760405162461bcd60e51b815260206004820152600c60248201526b4e554c4c5f4144445245535360a01b6044820152606401610683565b6001600160a01b03166000908152600f60205260409020805460ff19169055806110ac816123d4565b915050610ffd565b600a546001600160a01b031633146110de5760405162461bcd60e51b8152600401610683906122a4565b600e805461ff001981166101009182900460ff1615909102179055565b611105338361136e565b6111215760405162461bcd60e51b8152600401610683906122d9565b61112d84848484611731565b50505050565b6000818152600260205260409020546060906001600160a01b031661119a5760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610683565b600c6111a583611764565b6040516020016111b692919061215c565b6040516020818303038152906040529050919050565b600a546001600160a01b031633146111f65760405162461bcd60e51b8152600401610683906122a4565b6001600160a01b03811661125b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610683565b61126481611610565b50565b600a546001600160a01b031633146112915760405162461bcd60e51b8152600401610683906122a4565b600d55565b60006001600160e01b031982166380ac58cd60e01b14806112c757506001600160e01b03198216635b5e139f60e01b145b8061065157506301ffc9a760e01b6001600160e01b0319831614610651565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061131b82610e82565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610d0682826040518060200160405280600081525061187f565b6000818152600260205260408120546001600160a01b03166113e75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610683565b60006113f283610e82565b9050806001600160a01b0316846001600160a01b0316148061142d5750836001600160a01b031661142284610732565b6001600160a01b0316145b8061145d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661147882610e82565b6001600160a01b0316146114e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610683565b6001600160a01b0382166115425760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610683565b61154d8383836118b2565b6115586000826112e6565b6001600160a01b0383166000908152600360205260408120805460019290611581908490612356565b90915550506001600160a01b03821660009081526003602052604081208054600192906115af90849061232a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156116c45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610683565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61173c848484611465565b6117488484848461196f565b61112d5760405162461bcd60e51b815260040161068390612252565b60608161178957506040805180820190915260018152600360fc1b6020820152610654565b8160005b81156117b3578061179d816123d4565b91506117ac9050600a83612342565b915061178d565b60008167ffffffffffffffff8111156117dc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611806576020820181803683370190505b5090505b841561145d5761181b600183612356565b9150611828600a866123ef565b61183390603061232a565b60f81b81838151811061185657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611878600a86612342565b945061180a565b6118898383611a7c565b611896600084848461196f565b6108d85760405162461bcd60e51b815260040161068390612252565b6001600160a01b03831661190d5761190881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611930565b816001600160a01b0316836001600160a01b031614611930576119308382611bca565b6001600160a01b03821661194c5761194781611c67565b6108d8565b826001600160a01b0316826001600160a01b0316146108d8576108d88282611d40565b60006001600160a01b0384163b15611a7157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119b3903390899088908890600401612202565b602060405180830381600087803b1580156119cd57600080fd5b505af19250505080156119fd575060408051601f3d908101601f191682019092526119fa91810190612085565b60015b611a57573d808015611a2b576040519150601f19603f3d011682016040523d82523d6000602084013e611a30565b606091505b508051611a4f5760405162461bcd60e51b815260040161068390612252565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061145d565b506001949350505050565b6001600160a01b038216611ad25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610683565b6000818152600260205260409020546001600160a01b031615611b375760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610683565b611b43600083836118b2565b6001600160a01b0382166000908152600360205260408120805460019290611b6c90849061232a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001611bd784610ef9565b611be19190612356565b600083815260076020526040902054909150808214611c34576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611c7990600190612356565b60008381526009602052604081205460088054939450909284908110611caf57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611cde57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611d2457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611d4b83610ef9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054611d9090612399565b90600052602060002090601f016020900481019282611db25760008555611df8565b82601f10611dcb5782800160ff19823516178555611df8565b82800160010185558215611df8579182015b82811115611df8578235825591602001919060010190611ddd565b50611e04929150611e08565b5090565b5b80821115611e045760008155600101611e09565b80356001600160a01b038116811461065457600080fd5b600060208284031215611e45578081fd5b611e4e82611e1d565b9392505050565b60008060408385031215611e67578081fd5b611e7083611e1d565b9150611e7e60208401611e1d565b90509250929050565b600080600060608486031215611e9b578081fd5b611ea484611e1d565b9250611eb260208501611e1d565b9150604084013590509250925092565b60008060008060808587031215611ed7578081fd5b611ee085611e1d565b9350611eee60208601611e1d565b925060408501359150606085013567ffffffffffffffff80821115611f11578283fd5b818701915087601f830112611f24578283fd5b813581811115611f3657611f3661242f565b604051601f8201601f19908116603f01168101908382118183101715611f5e57611f5e61242f565b816040528281528a6020848701011115611f76578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611fa9578182fd5b611fb283611e1d565b915060208301358015158114611fc6578182fd5b809150509250929050565b60008060408385031215611fe3578182fd5b611fec83611e1d565b946020939093013593505050565b6000806020838503121561200c578182fd5b823567ffffffffffffffff80821115612023578384fd5b818501915085601f830112612036578384fd5b813581811115612044578485fd5b8660208083028501011115612057578485fd5b60209290920196919550909350505050565b60006020828403121561207a578081fd5b8135611e4e81612445565b600060208284031215612096578081fd5b8151611e4e81612445565b600080602083850312156120b3578182fd5b823567ffffffffffffffff808211156120ca578384fd5b818501915085601f8301126120dd578384fd5b8135818111156120eb578485fd5b866020828501011115612057578485fd5b60006020828403121561210d578081fd5b5035919050565b6000815180845261212c81602086016020860161236d565b601f01601f19169290920160200192915050565b6000815161215281856020860161236d565b9290920192915050565b825460009081906002810460018083168061217857607f831692505b602080841082141561219857634e487b7160e01b87526022600452602487fd5b8180156121ac57600181146121bd576121e9565b60ff198616895284890196506121e9565b60008b815260209020885b868110156121e15781548b8201529085019083016121c8565b505084890196505b5050505050506121f98185612140565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061223590830184612114565b9695505050505050565b600060208252611e4e6020830184612114565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561233d5761233d612403565b500190565b60008261235157612351612419565b500490565b60008282101561236857612368612403565b500390565b60005b83811015612388578181015183820152602001612370565b8381111561112d5750506000910152565b6002810460018216806123ad57607f821691505b602082108114156123ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123e8576123e8612403565b5060010190565b6000826123fe576123fe612419565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461126457600080fdfea2646970667358221220f541490cbe2fd80d0658739636ed271c82b5c65d93010bd143a63d21d2fcb65e64736f6c6343000802003368747470733a2f2f7777772e7a6875667564616f2e6f72672f6170692f67657455726c3f6e667469643d

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c80636817c76c1161010d578063a4759074116100a0578063c87b56dd1161006f578063c87b56dd14610569578063e081b78114610589578063e985e9c5146105a3578063f2fde38b146105ec578063f4a0a5281461060c576101ee565b8063a4759074146104f5578063b11560c514610514578063b140905d14610534578063b88d4fde14610549576101ee565b80638da5cb5b116100dc5780638da5cb5b1461047a57806395d89b411461049857806398fabd3a146104ad578063a22cb465146104d5576101ee565b80636817c76c146103f65780636f9170f61461040c57806370a0823114610445578063715018a614610465576101ee565b80632f745c591161018557806351cff8d91161015457806351cff8d91461037657806355f804b3146103965780635e1045ec146103b65780636352211e146103d6576101ee565b80632f745c591461030057806332cb6b0c1461032057806342842e0e146103365780634f6ccce714610356576101ee565b8063095ea7b3116101c1578063095ea7b3146102995780631249c58b146102b957806318160ddd146102c157806323b872dd146102e0576101ee565b806301ffc9a7146101f3578063049c5c491461022857806306fdde031461023f578063081812fc14610261575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612069565b61062c565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610659565b005b34801561024b57600080fd5b506102546106a0565b60405161021f919061223f565b34801561026d57600080fd5b5061028161027c3660046120fc565b610732565b6040516001600160a01b03909116815260200161021f565b3480156102a557600080fd5b5061023d6102b4366004611fd1565b6107c7565b61023d6108dd565b3480156102cd57600080fd5b506008545b60405190815260200161021f565b3480156102ec57600080fd5b5061023d6102fb366004611e87565b610b24565b34801561030c57600080fd5b506102d261031b366004611fd1565b610b55565b34801561032c57600080fd5b506102d26122b881565b34801561034257600080fd5b5061023d610351366004611e87565b610beb565b34801561036257600080fd5b506102d26103713660046120fc565b610c06565b34801561038257600080fd5b5061023d610391366004611e34565b610ca7565b3480156103a257600080fd5b5061023d6103b13660046120a1565b610d0a565b3480156103c257600080fd5b5061023d6103d1366004611ffa565b610d40565b3480156103e257600080fd5b506102816103f13660046120fc565b610e82565b34801561040257600080fd5b506102d2600d5481565b34801561041857600080fd5b50610213610427366004611e34565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561045157600080fd5b506102d2610460366004611e34565b610ef9565b34801561047157600080fd5b5061023d610f80565b34801561048657600080fd5b50600a546001600160a01b0316610281565b3480156104a457600080fd5b50610254610fb6565b3480156104b957600080fd5b5061028173f02cd93f73f6aad9548b31e767593f4be4d38d7e81565b3480156104e157600080fd5b5061023d6104f0366004611f97565b610fc5565b34801561050157600080fd5b50600e5461021390610100900460ff1681565b34801561052057600080fd5b5061023d61052f366004611ffa565b610fd0565b34801561054057600080fd5b5061023d6110b4565b34801561055557600080fd5b5061023d610564366004611ec2565b6110fb565b34801561057557600080fd5b506102546105843660046120fc565b611133565b34801561059557600080fd5b50600e546102139060ff1681565b3480156105af57600080fd5b506102136105be366004611e55565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105f857600080fd5b5061023d610607366004611e34565b6111cc565b34801561061857600080fd5b5061023d6106273660046120fc565b611267565b60006001600160e01b0319821663780e9d6360e01b1480610651575061065182611296565b90505b919050565b600a546001600160a01b0316331461068c5760405162461bcd60e51b8152600401610683906122a4565b60405180910390fd5b600e805460ff19811660ff90911615179055565b6060600080546106af90612399565b80601f01602080910402602001604051908101604052809291908181526020018280546106db90612399565b80156107285780601f106106fd57610100808354040283529160200191610728565b820191906000526020600020905b81548152906001019060200180831161070b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610683565b506000908152600460205260409020546001600160a01b031690565b60006107d282610e82565b9050806001600160a01b0316836001600160a01b031614156108405760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610683565b336001600160a01b038216148061085c575061085c81336105be565b6108ce5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610683565b6108d883836112e6565b505050565b6002600b5414156109305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610683565b6002600b55600e5460ff1661097a5760405162461bcd60e51b815260206004820152601060248201526f1b5a5b9d0e9cd85b194818db1bdcd95960821b6044820152606401610683565b600e54610100900460ff16156109e057336000908152600f602052604090205460ff166109e05760405162461bcd60e51b81526020600482015260146024820152731b5a5b9d0e9bdb9b1e55da1a5d19531a5cdd195960621b6044820152606401610683565b6122b86109ec60085490565b10610a2c5760405162461bcd60e51b815260206004820152601060248201526f1b5a5b9d0e995e18d95959081b5a5b9d60821b6044820152606401610683565b34600d541115610a7e5760405162461bcd60e51b815260206004820152601a60248201527f6d696e743a73656e642076616c7565206e6f7420656e6f7567680000000000006044820152606401610683565b6000610a8960085490565b610a9490600161232a565b9050610aa03382611354565b600d5460405173f02cd93f73f6aad9548b31e767593f4be4d38d7e9180156108fc02916000818181858888f19350505050158015610ae2573d6000803e3d6000fd5b5060408051338152602081018390527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a1506001600b55565b610b2e338261136e565b610b4a5760405162461bcd60e51b8152600401610683906122d9565b6108d8838383611465565b6000610b6083610ef9565b8210610bc25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610683565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6108d8838383604051806020016040528060008152506110fb565b6000610c1160085490565b8210610c745760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610683565b60088281548110610c9557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610cd15760405162461bcd60e51b8152600401610683906122a4565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610d06573d6000803e3d6000fd5b5050565b600a546001600160a01b03163314610d345760405162461bcd60e51b8152600401610683906122a4565b6108d8600c8383611d84565b600a546001600160a01b03163314610d6a5760405162461bcd60e51b8152600401610683906122a4565b60005b818110156108d8576000838383818110610d9757634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610dac9190611e34565b90506001600160a01b038116610df35760405162461bcd60e51b815260206004820152600c60248201526b4e554c4c5f4144445245535360a01b6044820152606401610683565b6001600160a01b0381166000908152600f602052604090205460ff1615610e4e5760405162461bcd60e51b815260206004820152600f60248201526e4455504c49434154455f454e54525960881b6044820152606401610683565b6001600160a01b03166000908152600f60205260409020805460ff1916600117905580610e7a816123d4565b915050610d6d565b6000818152600260205260408120546001600160a01b0316806106515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610683565b60006001600160a01b038216610f645760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610683565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610faa5760405162461bcd60e51b8152600401610683906122a4565b610fb46000611610565b565b6060600180546106af90612399565b610d06338383611662565b600a546001600160a01b03163314610ffa5760405162461bcd60e51b8152600401610683906122a4565b60005b818110156108d857600083838381811061102757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061103c9190611e34565b90506001600160a01b0381166110835760405162461bcd60e51b815260206004820152600c60248201526b4e554c4c5f4144445245535360a01b6044820152606401610683565b6001600160a01b03166000908152600f60205260409020805460ff19169055806110ac816123d4565b915050610ffd565b600a546001600160a01b031633146110de5760405162461bcd60e51b8152600401610683906122a4565b600e805461ff001981166101009182900460ff1615909102179055565b611105338361136e565b6111215760405162461bcd60e51b8152600401610683906122d9565b61112d84848484611731565b50505050565b6000818152600260205260409020546060906001600160a01b031661119a5760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610683565b600c6111a583611764565b6040516020016111b692919061215c565b6040516020818303038152906040529050919050565b600a546001600160a01b031633146111f65760405162461bcd60e51b8152600401610683906122a4565b6001600160a01b03811661125b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610683565b61126481611610565b50565b600a546001600160a01b031633146112915760405162461bcd60e51b8152600401610683906122a4565b600d55565b60006001600160e01b031982166380ac58cd60e01b14806112c757506001600160e01b03198216635b5e139f60e01b145b8061065157506301ffc9a760e01b6001600160e01b0319831614610651565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061131b82610e82565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610d0682826040518060200160405280600081525061187f565b6000818152600260205260408120546001600160a01b03166113e75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610683565b60006113f283610e82565b9050806001600160a01b0316846001600160a01b0316148061142d5750836001600160a01b031661142284610732565b6001600160a01b0316145b8061145d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661147882610e82565b6001600160a01b0316146114e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610683565b6001600160a01b0382166115425760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610683565b61154d8383836118b2565b6115586000826112e6565b6001600160a01b0383166000908152600360205260408120805460019290611581908490612356565b90915550506001600160a01b03821660009081526003602052604081208054600192906115af90849061232a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156116c45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610683565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61173c848484611465565b6117488484848461196f565b61112d5760405162461bcd60e51b815260040161068390612252565b60608161178957506040805180820190915260018152600360fc1b6020820152610654565b8160005b81156117b3578061179d816123d4565b91506117ac9050600a83612342565b915061178d565b60008167ffffffffffffffff8111156117dc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611806576020820181803683370190505b5090505b841561145d5761181b600183612356565b9150611828600a866123ef565b61183390603061232a565b60f81b81838151811061185657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611878600a86612342565b945061180a565b6118898383611a7c565b611896600084848461196f565b6108d85760405162461bcd60e51b815260040161068390612252565b6001600160a01b03831661190d5761190881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611930565b816001600160a01b0316836001600160a01b031614611930576119308382611bca565b6001600160a01b03821661194c5761194781611c67565b6108d8565b826001600160a01b0316826001600160a01b0316146108d8576108d88282611d40565b60006001600160a01b0384163b15611a7157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119b3903390899088908890600401612202565b602060405180830381600087803b1580156119cd57600080fd5b505af19250505080156119fd575060408051601f3d908101601f191682019092526119fa91810190612085565b60015b611a57573d808015611a2b576040519150601f19603f3d011682016040523d82523d6000602084013e611a30565b606091505b508051611a4f5760405162461bcd60e51b815260040161068390612252565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061145d565b506001949350505050565b6001600160a01b038216611ad25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610683565b6000818152600260205260409020546001600160a01b031615611b375760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610683565b611b43600083836118b2565b6001600160a01b0382166000908152600360205260408120805460019290611b6c90849061232a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001611bd784610ef9565b611be19190612356565b600083815260076020526040902054909150808214611c34576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611c7990600190612356565b60008381526009602052604081205460088054939450909284908110611caf57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611cde57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611d2457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611d4b83610ef9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054611d9090612399565b90600052602060002090601f016020900481019282611db25760008555611df8565b82601f10611dcb5782800160ff19823516178555611df8565b82800160010185558215611df8579182015b82811115611df8578235825591602001919060010190611ddd565b50611e04929150611e08565b5090565b5b80821115611e045760008155600101611e09565b80356001600160a01b038116811461065457600080fd5b600060208284031215611e45578081fd5b611e4e82611e1d565b9392505050565b60008060408385031215611e67578081fd5b611e7083611e1d565b9150611e7e60208401611e1d565b90509250929050565b600080600060608486031215611e9b578081fd5b611ea484611e1d565b9250611eb260208501611e1d565b9150604084013590509250925092565b60008060008060808587031215611ed7578081fd5b611ee085611e1d565b9350611eee60208601611e1d565b925060408501359150606085013567ffffffffffffffff80821115611f11578283fd5b818701915087601f830112611f24578283fd5b813581811115611f3657611f3661242f565b604051601f8201601f19908116603f01168101908382118183101715611f5e57611f5e61242f565b816040528281528a6020848701011115611f76578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611fa9578182fd5b611fb283611e1d565b915060208301358015158114611fc6578182fd5b809150509250929050565b60008060408385031215611fe3578182fd5b611fec83611e1d565b946020939093013593505050565b6000806020838503121561200c578182fd5b823567ffffffffffffffff80821115612023578384fd5b818501915085601f830112612036578384fd5b813581811115612044578485fd5b8660208083028501011115612057578485fd5b60209290920196919550909350505050565b60006020828403121561207a578081fd5b8135611e4e81612445565b600060208284031215612096578081fd5b8151611e4e81612445565b600080602083850312156120b3578182fd5b823567ffffffffffffffff808211156120ca578384fd5b818501915085601f8301126120dd578384fd5b8135818111156120eb578485fd5b866020828501011115612057578485fd5b60006020828403121561210d578081fd5b5035919050565b6000815180845261212c81602086016020860161236d565b601f01601f19169290920160200192915050565b6000815161215281856020860161236d565b9290920192915050565b825460009081906002810460018083168061217857607f831692505b602080841082141561219857634e487b7160e01b87526022600452602487fd5b8180156121ac57600181146121bd576121e9565b60ff198616895284890196506121e9565b60008b815260209020885b868110156121e15781548b8201529085019083016121c8565b505084890196505b5050505050506121f98185612140565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061223590830184612114565b9695505050505050565b600060208252611e4e6020830184612114565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561233d5761233d612403565b500190565b60008261235157612351612419565b500490565b60008282101561236857612368612403565b500390565b60005b83811015612388578181015183820152602001612370565b8381111561112d5750506000910152565b6002810460018216806123ad57607f821691505b602082108114156123ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123e8576123e8612403565b5060010190565b6000826123fe576123fe612419565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461126457600080fdfea2646970667358221220f541490cbe2fd80d0658739636ed271c82b5c65d93010bd143a63d21d2fcb65e64736f6c63430008020033

Deployed Bytecode Sourcemap

54448:2743:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35908:224;;;;;;;;;;-1:-1:-1;35908:224:0;;;;;:::i;:::-;;:::i;:::-;;;7656:14:1;;7649:22;7631:41;;7619:2;7604:18;35908:224:0;;;;;;;;56723:86;;;;;;;;;;;;;:::i;:::-;;22314:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;23873:221::-;;;;;;;;;;-1:-1:-1;23873:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6675:32:1;;;6657:51;;6645:2;6630:18;23873:221:0;6612:102:1;23396:411:0;;;;;;;;;;-1:-1:-1;23396:411:0;;;;;:::i;:::-;;:::i;55866:520::-;;;:::i;36548:113::-;;;;;;;;;;-1:-1:-1;36636:10:0;:17;36548:113;;;17643:25:1;;;17631:2;17616:18;36548:113:0;17598:76:1;24623:339:0;;;;;;;;;;-1:-1:-1;24623:339:0;;;;;:::i;:::-;;:::i;36216:256::-;;;;;;;;;;-1:-1:-1;36216:256:0;;;;;:::i;:::-;;:::i;54582:41::-;;;;;;;;;;;;54619:4;54582:41;;25033:185;;;;;;;;;;-1:-1:-1;25033:185:0;;;;;:::i;:::-;;:::i;36738:233::-;;;;;;;;;;-1:-1:-1;36738:233:0;;;;;:::i;:::-;;:::i;56398:111::-;;;;;;;;;;-1:-1:-1;56398:111:0;;;;;:::i;:::-;;:::i;56517:98::-;;;;;;;;;;-1:-1:-1;56517:98:0;;;;;:::i;:::-;;:::i;55082:346::-;;;;;;;;;;-1:-1:-1;55082:346:0;;;;;:::i;:::-;;:::i;22008:239::-;;;;;;;;;;-1:-1:-1;22008:239:0;;;;;:::i;:::-;;:::i;54793:37::-;;;;;;;;;;;;;;;;55747:107;;;;;;;;;;-1:-1:-1;55747:107:0;;;;;:::i;:::-;-1:-1:-1;;;;;55831:15:0;55807:4;55831:15;;;:9;:15;;;;;;;;;55747:107;21738:208;;;;;;;;;;-1:-1:-1;21738:208:0;;;;;:::i;:::-;;:::i;43770:103::-;;;;;;;;;;;;;:::i;43119:87::-;;;;;;;;;;-1:-1:-1;43192:6:0;;-1:-1:-1;;;;;43192:6:0;43119:87;;22483:104;;;;;;;;;;;;;:::i;54630:72::-;;;;;;;;;;;;54660:42;54630:72;;24166:155;;;;;;;;;;-1:-1:-1;24166:155:0;;;;;:::i;:::-;;:::i;54871:34::-;;;;;;;;;;-1:-1:-1;54871:34:0;;;;;;;;;;;55436:303;;;;;;;;;;-1:-1:-1;55436:303:0;;;;;:::i;:::-;;:::i;56817:105::-;;;;;;;;;;;;;:::i;25289:328::-;;;;;;;;;;-1:-1:-1;25289:328:0;;;;;:::i;:::-;;:::i;56934:254::-;;;;;;;;;;-1:-1:-1;56934:254:0;;;;;:::i;:::-;;:::i;54837:27::-;;;;;;;;;;-1:-1:-1;54837:27:0;;;;;;;;24392:164;;;;;;;;;;-1:-1:-1;24392:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;24513:25:0;;;24489:4;24513:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;24392:164;44028:201;;;;;;;;;;-1:-1:-1;44028:201:0;;;;;:::i;:::-;;:::i;56623:92::-;;;;;;;;;;-1:-1:-1;56623:92:0;;;;;:::i;:::-;;:::i;35908:224::-;36010:4;-1:-1:-1;;;;;;36034:50:0;;-1:-1:-1;;;36034:50:0;;:90;;;36088:36;36112:11;36088:23;:36::i;:::-;36027:97;;35908:224;;;;:::o;56723:86::-;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;;;;;;;;;56793:8:::1;::::0;;-1:-1:-1;;56781:20:0;::::1;56793:8;::::0;;::::1;56792:9;56781:20;::::0;;56723:86::o;22314:100::-;22368:13;22401:5;22394:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22314:100;:::o;23873:221::-;23949:7;27216:16;;;:7;:16;;;;;;-1:-1:-1;;;;;27216:16:0;23969:73;;;;-1:-1:-1;;;23969:73:0;;14217:2:1;23969:73:0;;;14199:21:1;14256:2;14236:18;;;14229:30;14295:34;14275:18;;;14268:62;-1:-1:-1;;;14346:18:1;;;14339:42;14398:19;;23969:73:0;14189:234:1;23969:73:0;-1:-1:-1;24062:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;24062:24:0;;23873:221::o;23396:411::-;23477:13;23493:23;23508:7;23493:14;:23::i;:::-;23477:39;;23541:5;-1:-1:-1;;;;;23535:11:0;:2;-1:-1:-1;;;;;23535:11:0;;;23527:57;;;;-1:-1:-1;;;23527:57:0;;15761:2:1;23527:57:0;;;15743:21:1;15800:2;15780:18;;;15773:30;15839:34;15819:18;;;15812:62;-1:-1:-1;;;15890:18:1;;;15883:31;15931:19;;23527:57:0;15733:223:1;23527:57:0;16648:10;-1:-1:-1;;;;;23619:21:0;;;;:62;;-1:-1:-1;23644:37:0;23661:5;16648:10;23668:12;16568:98;23644:37;23597:168;;;;-1:-1:-1;;;23597:168:0;;12255:2:1;23597:168:0;;;12237:21:1;12294:2;12274:18;;;12267:30;12333:34;12313:18;;;12306:62;12404:26;12384:18;;;12377:54;12448:19;;23597:168:0;12227:246:1;23597:168:0;23778:21;23787:2;23791:7;23778:8;:21::i;:::-;23396:411;;;:::o;55866:520::-;46400:1;46998:7;;:19;;46990:63;;;;-1:-1:-1;;;46990:63:0;;17339:2:1;46990:63:0;;;17321:21:1;17378:2;17358:18;;;17351:30;17417:33;17397:18;;;17390:61;17468:18;;46990:63:0;17311:181:1;46990:63:0;46400:1;47131:7;:18;55930:8:::1;::::0;::::1;;55922:37;;;::::0;-1:-1:-1;;;55922:37:0;;16163:2:1;55922:37:0::1;::::0;::::1;16145:21:1::0;16202:2;16182:18;;;16175:30;-1:-1:-1;;;16221:18:1;;;16214:46;16277:18;;55922:37:0::1;16135:166:1::0;55922:37:0::1;55973:15;::::0;::::1;::::0;::::1;;;55970:100;;;56022:10;56012:21;::::0;;;:9:::1;:21;::::0;;;;;::::1;;56004:54;;;::::0;-1:-1:-1;;;56004:54:0;;10390:2:1;56004:54:0::1;::::0;::::1;10372:21:1::0;10429:2;10409:18;;;10402:30;-1:-1:-1;;;10448:18:1;;;10441:50;10508:18;;56004:54:0::1;10362:170:1::0;56004:54:0::1;54619:4;56088:13;36636:10:::0;:17;36548:113;;56088:13:::1;:26;56080:55;;;::::0;-1:-1:-1;;;56080:55:0;;10045:2:1;56080:55:0::1;::::0;::::1;10027:21:1::0;10084:2;10064:18;;;10057:30;-1:-1:-1;;;10103:18:1;;;10096:46;10159:18;;56080:55:0::1;10017:166:1::0;56080:55:0::1;56167:9;56154;;:22;;56146:61;;;::::0;-1:-1:-1;;;56146:61:0;;13501:2:1;56146:61:0::1;::::0;::::1;13483:21:1::0;13540:2;13520:18;;;13513:30;13579:28;13559:18;;;13552:56;13625:18;;56146:61:0::1;13473:176:1::0;56146:61:0::1;56218:15;56236:13;36636:10:::0;:17;36548:113;;56236:13:::1;:17;::::0;56252:1:::1;56236:17;:::i;:::-;56218:35;;56264:30;56274:10;56286:7;56264:9;:30::i;:::-;56327:9;::::0;56305:32:::1;::::0;54660:42:::1;::::0;56305:32;::::1;;;::::0;::::1;::::0;;;56327:9;54660:42;56305:32;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;56353:25:0::1;::::0;;56358:10:::1;7386:51:1::0;;7468:2;7453:18;;7446:34;;;56353:25:0::1;::::0;7359:18:1;56353:25:0::1;;;;;;;-1:-1:-1::0;46356:1:0;47310:7;:22;55866:520::o;24623:339::-;24818:41;16648:10;24851:7;24818:18;:41::i;:::-;24810:103;;;;-1:-1:-1;;;24810:103:0;;;;;;;:::i;:::-;24926:28;24936:4;24942:2;24946:7;24926:9;:28::i;36216:256::-;36313:7;36349:23;36366:5;36349:16;:23::i;:::-;36341:5;:31;36333:87;;;;-1:-1:-1;;;36333:87:0;;8450:2:1;36333:87:0;;;8432:21:1;8489:2;8469:18;;;8462:30;8528:34;8508:18;;;8501:62;-1:-1:-1;;;8579:18:1;;;8572:41;8630:19;;36333:87:0;8422:233:1;36333:87:0;-1:-1:-1;;;;;;36438:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;36216:256::o;25033:185::-;25171:39;25188:4;25194:2;25198:7;25171:39;;;;;;;;;;;;:16;:39::i;36738:233::-;36813:7;36849:30;36636:10;:17;36548:113;;36849:30;36841:5;:38;36833:95;;;;-1:-1:-1;;;36833:95:0;;16926:2:1;36833:95:0;;;16908:21:1;16965:2;16945:18;;;16938:30;17004:34;16984:18;;;16977:62;-1:-1:-1;;;17055:18:1;;;17048:42;17107:19;;36833:95:0;16898:234:1;36833:95:0;36946:10;36957:5;36946:17;;;;;;-1:-1:-1;;;36946:17:0;;;;;;;;;;;;;;;;;36939:24;;36738:233;;;:::o;56398:111::-;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;56458:43:::1;::::0;-1:-1:-1;;;;;56458:20:0;::::1;::::0;56479:21:::1;56458:43:::0;::::1;;;::::0;::::1;::::0;;;56479:21;56458:20;:43;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;56398:111:::0;:::o;56517:98::-;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;56588:19:::1;:13;56604:3:::0;;56588:19:::1;:::i;55082:346::-:0;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;55166:9:::1;55162:256;55181:18:::0;;::::1;55162:256;;;55221:13;55237:7;;55245:1;55237:10;;;;;-1:-1:-1::0;;;55237:10:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55221:26:::0;-1:-1:-1;;;;;;55270:19:0;::::1;55262:44;;;::::0;-1:-1:-1;;;55262:44:0;;8109:2:1;55262:44:0::1;::::0;::::1;8091:21:1::0;8148:2;8128:18;;;8121:30;-1:-1:-1;;;8167:18:1;;;8160:42;8219:18;;55262:44:0::1;8081:162:1::0;55262:44:0::1;-1:-1:-1::0;;;;;55330:16:0;::::1;;::::0;;;:9:::1;:16;::::0;;;;;::::1;;55329:17;55321:45;;;::::0;-1:-1:-1;;;55321:45:0;;11911:2:1;55321:45:0::1;::::0;::::1;11893:21:1::0;11950:2;11930:18;;;11923:30;-1:-1:-1;;;11969:18:1;;;11962:45;12024:18;;55321:45:0::1;11883:165:1::0;55321:45:0::1;-1:-1:-1::0;;;;;55383:16:0::1;;::::0;;;:9:::1;:16;::::0;;;;:23;;-1:-1:-1;;55383:23:0::1;55402:4;55383:23;::::0;;55201:3;::::1;::::0;::::1;:::i;:::-;;;;55162:256;;22008:239:::0;22080:7;22116:16;;;:7;:16;;;;;;-1:-1:-1;;;;;22116:16:0;22151:19;22143:73;;;;-1:-1:-1;;;22143:73:0;;13091:2:1;22143:73:0;;;13073:21:1;13130:2;13110:18;;;13103:30;13169:34;13149:18;;;13142:62;-1:-1:-1;;;13220:18:1;;;13213:39;13269:19;;22143:73:0;13063:231:1;21738:208:0;21810:7;-1:-1:-1;;;;;21838:19:0;;21830:74;;;;-1:-1:-1;;;21830:74:0;;12680:2:1;21830:74:0;;;12662:21:1;12719:2;12699:18;;;12692:30;12758:34;12738:18;;;12731:62;-1:-1:-1;;;12809:18:1;;;12802:40;12859:19;;21830:74:0;12652:232:1;21830:74:0;-1:-1:-1;;;;;;21922:16:0;;;;;:9;:16;;;;;;;21738:208::o;43770:103::-;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;43835:30:::1;43862:1;43835:18;:30::i;:::-;43770:103::o:0;22483:104::-;22539:13;22572:7;22565:14;;;;;:::i;24166:155::-;24261:52;16648:10;24294:8;24304;24261:18;:52::i;55436:303::-;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;55527:9:::1;55523:209;55542:18:::0;;::::1;55523:209;;;55582:13;55598:7;;55606:1;55598:10;;;;;-1:-1:-1::0;;;55598:10:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55582:26:::0;-1:-1:-1;;;;;;55631:19:0;::::1;55623:44;;;::::0;-1:-1:-1;;;55623:44:0;;8109:2:1;55623:44:0::1;::::0;::::1;8091:21:1::0;8148:2;8128:18;;;8121:30;-1:-1:-1;;;8167:18:1;;;8160:42;8219:18;;55623:44:0::1;8081:162:1::0;55623:44:0::1;-1:-1:-1::0;;;;;55696:16:0::1;55715:5;55696:16:::0;;;:9:::1;:16;::::0;;;;:24;;-1:-1:-1;;55696:24:0::1;::::0;;55562:3;::::1;::::0;::::1;:::i;:::-;;;;55523:209;;56817:105:::0;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;56899:15:::1;::::0;;-1:-1:-1;;56880:34:0;::::1;56899:15;::::0;;;::::1;;;56898:16;56880:34:::0;;::::1;;::::0;;56817:105::o;25289:328::-;25464:41;16648:10;25497:7;25464:18;:41::i;:::-;25456:103;;;;-1:-1:-1;;;25456:103:0;;;;;;;:::i;:::-;25570:39;25584:4;25590:2;25594:7;25603:5;25570:13;:39::i;:::-;25289:328;;;;:::o;56934:254::-;27192:4;27216:16;;;:7;:16;;;;;;57007:13;;-1:-1:-1;;;;;27216:16:0;57033:60;;;;-1:-1:-1;;;57033:60:0;;15401:2:1;57033:60:0;;;15383:21:1;15440:2;15420:18;;;15413:30;15479:33;15459:18;;;15452:61;15530:18;;57033:60:0;15373:181:1;57033:60:0;57145:13;57160:18;:7;:16;:18::i;:::-;57128:51;;;;;;;;;:::i;:::-;;;;;;;;;;;;;57114:66;;56934:254;;;:::o;44028:201::-;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;44117:22:0;::::1;44109:73;;;::::0;-1:-1:-1;;;44109:73:0;;9281:2:1;44109:73:0::1;::::0;::::1;9263:21:1::0;9320:2;9300:18;;;9293:30;9359:34;9339:18;;;9332:62;-1:-1:-1;;;9410:18:1;;;9403:36;9456:19;;44109:73:0::1;9253:228:1::0;44109:73:0::1;44193:28;44212:8;44193:18;:28::i;:::-;44028:201:::0;:::o;56623:92::-;43192:6;;-1:-1:-1;;;;;43192:6:0;16648:10;43339:23;43331:68;;;;-1:-1:-1;;;43331:68:0;;;;;;;:::i;:::-;56690:9:::1;:17:::0;56623:92::o;21369:305::-;21471:4;-1:-1:-1;;;;;;21508:40:0;;-1:-1:-1;;;21508:40:0;;:105;;-1:-1:-1;;;;;;;21565:48:0;;-1:-1:-1;;;21565:48:0;21508:105;:158;;;-1:-1:-1;;;;;;;;;;19908:40:0;;;21630:36;19799:157;31109:174;31184:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;31184:29:0;-1:-1:-1;;;;;31184:29:0;;;;;;;;:24;;31238:23;31184:24;31238:14;:23::i;:::-;-1:-1:-1;;;;;31229:46:0;;;;;;;;;;;31109:174;;:::o;28111:110::-;28187:26;28197:2;28201:7;28187:26;;;;;;;;;;;;:9;:26::i;27421:348::-;27514:4;27216:16;;;:7;:16;;;;;;-1:-1:-1;;;;;27216:16:0;27531:73;;;;-1:-1:-1;;;27531:73:0;;11498:2:1;27531:73:0;;;11480:21:1;11537:2;11517:18;;;11510:30;11576:34;11556:18;;;11549:62;-1:-1:-1;;;11627:18:1;;;11620:42;11679:19;;27531:73:0;11470:234:1;27531:73:0;27615:13;27631:23;27646:7;27631:14;:23::i;:::-;27615:39;;27684:5;-1:-1:-1;;;;;27673:16:0;:7;-1:-1:-1;;;;;27673:16:0;;:51;;;;27717:7;-1:-1:-1;;;;;27693:31:0;:20;27705:7;27693:11;:20::i;:::-;-1:-1:-1;;;;;27693:31:0;;27673:51;:87;;;-1:-1:-1;;;;;;24513:25:0;;;24489:4;24513:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;27728:32;27665:96;27421:348;-1:-1:-1;;;;27421:348:0:o;30413:578::-;30572:4;-1:-1:-1;;;;;30545:31:0;:23;30560:7;30545:14;:23::i;:::-;-1:-1:-1;;;;;30545:31:0;;30537:85;;;;-1:-1:-1;;;30537:85:0;;14991:2:1;30537:85:0;;;14973:21:1;15030:2;15010:18;;;15003:30;15069:34;15049:18;;;15042:62;-1:-1:-1;;;15120:18:1;;;15113:39;15169:19;;30537:85:0;14963:231:1;30537:85:0;-1:-1:-1;;;;;30641:16:0;;30633:65;;;;-1:-1:-1;;;30633:65:0;;10739:2:1;30633:65:0;;;10721:21:1;10778:2;10758:18;;;10751:30;10817:34;10797:18;;;10790:62;-1:-1:-1;;;10868:18:1;;;10861:34;10912:19;;30633:65:0;10711:226:1;30633:65:0;30711:39;30732:4;30738:2;30742:7;30711:20;:39::i;:::-;30815:29;30832:1;30836:7;30815:8;:29::i;:::-;-1:-1:-1;;;;;30857:15:0;;;;;;:9;:15;;;;;:20;;30876:1;;30857:15;:20;;30876:1;;30857:20;:::i;:::-;;;;-1:-1:-1;;;;;;;30888:13:0;;;;;;:9;:13;;;;;:18;;30905:1;;30888:13;:18;;30905:1;;30888:18;:::i;:::-;;;;-1:-1:-1;;30917:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;30917:21:0;-1:-1:-1;;;;;30917:21:0;;;;;;;;;30956:27;;30917:16;;30956:27;;;;;;;30413:578;;;:::o;44389:191::-;44482:6;;;-1:-1:-1;;;;;44499:17:0;;;-1:-1:-1;;;;;;44499:17:0;;;;;;;44532:40;;44482:6;;;44499:17;44482:6;;44532:40;;44463:16;;44532:40;44389:191;;:::o;31425:315::-;31580:8;-1:-1:-1;;;;;31571:17:0;:5;-1:-1:-1;;;;;31571:17:0;;;31563:55;;;;-1:-1:-1;;;31563:55:0;;11144:2:1;31563:55:0;;;11126:21:1;11183:2;11163:18;;;11156:30;11222:27;11202:18;;;11195:55;11267:18;;31563:55:0;11116:175:1;31563:55:0;-1:-1:-1;;;;;31629:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;31629:46:0;;;;;;;;;;31691:41;;7631::1;;;31691::0;;7604:18:1;31691:41:0;;;;;;;31425:315;;;:::o;26499:::-;26656:28;26666:4;26672:2;26676:7;26656:9;:28::i;:::-;26703:48;26726:4;26732:2;26736:7;26745:5;26703:22;:48::i;:::-;26695:111;;;;-1:-1:-1;;;26695:111:0;;;;;;;:::i;17161:723::-;17217:13;17438:10;17434:53;;-1:-1:-1;17465:10:0;;;;;;;;;;;;-1:-1:-1;;;17465:10:0;;;;;;17434:53;17512:5;17497:12;17553:78;17560:9;;17553:78;;17586:8;;;;:::i;:::-;;-1:-1:-1;17609:10:0;;-1:-1:-1;17617:2:0;17609:10;;:::i;:::-;;;17553:78;;;17641:19;17673:6;17663:17;;;;;;-1:-1:-1;;;17663:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17663:17:0;;17641:39;;17691:154;17698:10;;17691:154;;17725:11;17735:1;17725:11;;:::i;:::-;;-1:-1:-1;17794:10:0;17802:2;17794:5;:10;:::i;:::-;17781:24;;:2;:24;:::i;:::-;17768:39;;17751:6;17758;17751:14;;;;;;-1:-1:-1;;;17751:14:0;;;;;;;;;;;;:56;-1:-1:-1;;;;;17751:56:0;;;;;;;;-1:-1:-1;17822:11:0;17831:2;17822:11;;:::i;:::-;;;17691:154;;28448:321;28578:18;28584:2;28588:7;28578:5;:18::i;:::-;28629:54;28660:1;28664:2;28668:7;28677:5;28629:22;:54::i;:::-;28607:154;;;;-1:-1:-1;;;28607:154:0;;;;;;;:::i;37584:589::-;-1:-1:-1;;;;;37790:18:0;;37786:187;;37825:40;37857:7;39000:10;:17;;38973:24;;;;:15;:24;;;;;:44;;;39028:24;;;;;;;;;;;;38896:164;37825:40;37786:187;;;37895:2;-1:-1:-1;;;;;37887:10:0;:4;-1:-1:-1;;;;;37887:10:0;;37883:90;;37914:47;37947:4;37953:7;37914:32;:47::i;:::-;-1:-1:-1;;;;;37987:16:0;;37983:183;;38020:45;38057:7;38020:36;:45::i;:::-;37983:183;;;38093:4;-1:-1:-1;;;;;38087:10:0;:2;-1:-1:-1;;;;;38087:10:0;;38083:83;;38114:40;38142:2;38146:7;38114:27;:40::i;32305:799::-;32460:4;-1:-1:-1;;;;;32481:13:0;;8867:20;8915:8;32477:620;;32517:72;;-1:-1:-1;;;32517:72:0;;-1:-1:-1;;;;;32517:36:0;;;;;:72;;16648:10;;32568:4;;32574:7;;32583:5;;32517:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32517:72:0;;;;;;;;-1:-1:-1;;32517:72:0;;;;;;;;;;;;:::i;:::-;;;32513:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32759:13:0;;32755:272;;32802:60;;-1:-1:-1;;;32802:60:0;;;;;;;:::i;32755:272::-;32977:6;32971:13;32962:6;32958:2;32954:15;32947:38;32513:529;-1:-1:-1;;;;;;32640:51:0;-1:-1:-1;;;32640:51:0;;-1:-1:-1;32633:58:0;;32477:620;-1:-1:-1;33081:4:0;32305:799;;;;;;:::o;29105:382::-;-1:-1:-1;;;;;29185:16:0;;29177:61;;;;-1:-1:-1;;;29177:61:0;;13856:2:1;29177:61:0;;;13838:21:1;;;13875:18;;;13868:30;13934:34;13914:18;;;13907:62;13986:18;;29177:61:0;13828:182:1;29177:61:0;27192:4;27216:16;;;:7;:16;;;;;;-1:-1:-1;;;;;27216:16:0;:30;29249:58;;;;-1:-1:-1;;;29249:58:0;;9688:2:1;29249:58:0;;;9670:21:1;9727:2;9707:18;;;9700:30;9766;9746:18;;;9739:58;9814:18;;29249:58:0;9660:178:1;29249:58:0;29320:45;29349:1;29353:2;29357:7;29320:20;:45::i;:::-;-1:-1:-1;;;;;29378:13:0;;;;;;:9;:13;;;;;:18;;29395:1;;29378:13;:18;;29395:1;;29378:18;:::i;:::-;;;;-1:-1:-1;;29407:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;29407:21:0;-1:-1:-1;;;;;29407:21:0;;;;;;;;29446:33;;29407:16;;;29446:33;;29407:16;;29446:33;29105:382;;:::o;39687:988::-;39953:22;40003:1;39978:22;39995:4;39978:16;:22::i;:::-;:26;;;;:::i;:::-;40015:18;40036:26;;;:17;:26;;;;;;39953:51;;-1:-1:-1;40169:28:0;;;40165:328;;-1:-1:-1;;;;;40236:18:0;;40214:19;40236:18;;;:12;:18;;;;;;;;:34;;;;;;;;;40287:30;;;;;;:44;;;40404:30;;:17;:30;;;;;:43;;;40165:328;-1:-1:-1;40589:26:0;;;;:17;:26;;;;;;;;40582:33;;;-1:-1:-1;;;;;40633:18:0;;;;;:12;:18;;;;;:34;;;;;;;40626:41;39687:988::o;40970:1079::-;41248:10;:17;41223:22;;41248:21;;41268:1;;41248:21;:::i;:::-;41280:18;41301:24;;;:15;:24;;;;;;41674:10;:26;;41223:46;;-1:-1:-1;41301:24:0;;41223:46;;41674:26;;;;-1:-1:-1;;;41674:26:0;;;;;;;;;;;;;;;;;41652:48;;41738:11;41713:10;41724;41713:22;;;;;;-1:-1:-1;;;41713:22:0;;;;;;;;;;;;;;;;;;;;:36;;;;41818:28;;;:15;:28;;;;;;;:41;;;41990:24;;;;;41983:31;42025:10;:16;;;;;-1:-1:-1;;;42025:16:0;;;;;;;;;;;;;;;;;;;;;;;;;;40970:1079;;;;:::o;38474:221::-;38559:14;38576:20;38593:2;38576:16;:20::i;:::-;-1:-1:-1;;;;;38607:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;38652:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;38474:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;192:196;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:270::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;;;;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:1183::-;;;;;1183:3;1171:9;1162:7;1158:23;1154:33;1151:2;;;1205:6;1197;1190:22;1151:2;1233:29;1252:9;1233:29;:::i;:::-;1223:39;;1281:38;1315:2;1304:9;1300:18;1281:38;:::i;:::-;1271:48;;1366:2;1355:9;1351:18;1338:32;1328:42;;1421:2;1410:9;1406:18;1393:32;1444:18;1485:2;1477:6;1474:14;1471:2;;;1506:6;1498;1491:22;1471:2;1549:6;1538:9;1534:22;1524:32;;1594:7;1587:4;1583:2;1579:13;1575:27;1565:2;;1621:6;1613;1606:22;1565:2;1662;1649:16;1684:2;1680;1677:10;1674:2;;;1690:18;;:::i;:::-;1765:2;1759:9;1733:2;1819:13;;-1:-1:-1;;1815:22:1;;;1839:2;1811:31;1807:40;1795:53;;;1863:18;;;1883:22;;;1860:46;1857:2;;;1909:18;;:::i;:::-;1949:10;1945:2;1938:22;1984:2;1976:6;1969:18;2024:7;2019:2;2014;2010;2006:11;2002:20;1999:33;1996:2;;;2050:6;2042;2035:22;1996:2;2111;2106;2102;2098:11;2093:2;2085:6;2081:15;2068:46;2134:15;;;2151:2;2130:24;2123:40;;;;1141:1053;;;;-1:-1:-1;1141:1053:1;;-1:-1:-1;;;;1141:1053:1:o;2199:367::-;;;2325:2;2313:9;2304:7;2300:23;2296:32;2293:2;;;2346:6;2338;2331:22;2293:2;2374:29;2393:9;2374:29;:::i;:::-;2364:39;;2453:2;2442:9;2438:18;2425:32;2500:5;2493:13;2486:21;2479:5;2476:32;2466:2;;2527:6;2519;2512:22;2466:2;2555:5;2545:15;;;2283:283;;;;;:::o;2571:264::-;;;2700:2;2688:9;2679:7;2675:23;2671:32;2668:2;;;2721:6;2713;2706:22;2668:2;2749:29;2768:9;2749:29;:::i;:::-;2739:39;2825:2;2810:18;;;;2797:32;;-1:-1:-1;;;2658:177:1:o;2840:666::-;;;2987:2;2975:9;2966:7;2962:23;2958:32;2955:2;;;3008:6;3000;2993:22;2955:2;3053:9;3040:23;3082:18;3123:2;3115:6;3112:14;3109:2;;;3144:6;3136;3129:22;3109:2;3187:6;3176:9;3172:22;3162:32;;3232:7;3225:4;3221:2;3217:13;3213:27;3203:2;;3259:6;3251;3244:22;3203:2;3304;3291:16;3330:2;3322:6;3319:14;3316:2;;;3351:6;3343;3336:22;3316:2;3410:7;3405:2;3399;3391:6;3387:15;3383:2;3379:24;3375:33;3372:46;3369:2;;;3436:6;3428;3421:22;3369:2;3472;3464:11;;;;;3494:6;;-1:-1:-1;2945:561:1;;-1:-1:-1;;;;2945:561:1:o;3511:255::-;;3622:2;3610:9;3601:7;3597:23;3593:32;3590:2;;;3643:6;3635;3628:22;3590:2;3687:9;3674:23;3706:30;3730:5;3706:30;:::i;3771:259::-;;3893:2;3881:9;3872:7;3868:23;3864:32;3861:2;;;3914:6;3906;3899:22;3861:2;3951:9;3945:16;3970:30;3994:5;3970:30;:::i;4035:642::-;;;4167:2;4155:9;4146:7;4142:23;4138:32;4135:2;;;4188:6;4180;4173:22;4135:2;4233:9;4220:23;4262:18;4303:2;4295:6;4292:14;4289:2;;;4324:6;4316;4309:22;4289:2;4367:6;4356:9;4352:22;4342:32;;4412:7;4405:4;4401:2;4397:13;4393:27;4383:2;;4439:6;4431;4424:22;4383:2;4484;4471:16;4510:2;4502:6;4499:14;4496:2;;;4531:6;4523;4516:22;4496:2;4581:7;4576:2;4567:6;4563:2;4559:15;4555:24;4552:37;4549:2;;;4607:6;4599;4592:22;4682:190;;4794:2;4782:9;4773:7;4769:23;4765:32;4762:2;;;4815:6;4807;4800:22;4762:2;-1:-1:-1;4843:23:1;;4752:120;-1:-1:-1;4752:120:1:o;4877:257::-;;4956:5;4950:12;4983:6;4978:3;4971:19;4999:63;5055:6;5048:4;5043:3;5039:14;5032:4;5025:5;5021:16;4999:63;:::i;:::-;5116:2;5095:15;-1:-1:-1;;5091:29:1;5082:39;;;;5123:4;5078:50;;4926:208;-1:-1:-1;;4926:208:1:o;5139:185::-;;5219:5;5213:12;5234:52;5279:6;5274:3;5267:4;5260:5;5256:16;5234:52;:::i;:::-;5302:16;;;;;5189:135;-1:-1:-1;;5189:135:1:o;5329:1177::-;5563:13;;5329:1177;;;;5636:1;5621:17;;5657:1;5693:18;;;;5720:2;;5774:4;5766:6;5762:17;5752:27;;5720:2;5800;5848;5840:6;5837:14;5817:18;5814:38;5811:2;;;-1:-1:-1;;;5875:33:1;;5931:4;5928:1;5921:15;5961:4;5882:3;5949:17;5811:2;5992:18;6019:104;;;;6137:1;6132:322;;;;5985:469;;6019:104;-1:-1:-1;;6052:24:1;;6040:37;;6097:16;;;;-1:-1:-1;6019:104:1;;6132:322;17679:127;17745:17;;;17795:4;17779:21;;6227:3;6243:165;6257:6;6254:1;6251:13;6243:165;;;6335:14;;6322:11;;;6315:35;6378:16;;;;6272:10;;6243:165;;;6247:3;;6437:6;6432:3;6428:16;6421:23;;5985:469;;;;;;;6470:30;6496:3;6488:6;6470:30;:::i;:::-;6463:37;5513:993;-1:-1:-1;;;;;5513:993:1:o;6719:488::-;-1:-1:-1;;;;;6988:15:1;;;6970:34;;7040:15;;7035:2;7020:18;;7013:43;7087:2;7072:18;;7065:34;;;7135:3;7130:2;7115:18;;7108:31;;;6719:488;;7156:45;;7181:19;;7173:6;7156:45;:::i;:::-;7148:53;6922:285;-1:-1:-1;;;;;;6922:285:1:o;7683:219::-;;7832:2;7821:9;7814:21;7852:44;7892:2;7881:9;7877:18;7869:6;7852:44;:::i;8660:414::-;8862:2;8844:21;;;8901:2;8881:18;;;8874:30;8940:34;8935:2;8920:18;;8913:62;-1:-1:-1;;;9006:2:1;8991:18;;8984:48;9064:3;9049:19;;8834:240::o;14428:356::-;14630:2;14612:21;;;14649:18;;;14642:30;14708:34;14703:2;14688:18;;14681:62;14775:2;14760:18;;14602:182::o;16306:413::-;16508:2;16490:21;;;16547:2;16527:18;;;16520:30;16586:34;16581:2;16566:18;;16559:62;-1:-1:-1;;;16652:2:1;16637:18;;16630:47;16709:3;16694:19;;16480:239::o;17811:128::-;;17882:1;17878:6;17875:1;17872:13;17869:2;;;17888:18;;:::i;:::-;-1:-1:-1;17924:9:1;;17859:80::o;17944:120::-;;18010:1;18000:2;;18015:18;;:::i;:::-;-1:-1:-1;18049:9:1;;17990:74::o;18069:125::-;;18137:1;18134;18131:8;18128:2;;;18142:18;;:::i;:::-;-1:-1:-1;18179:9:1;;18118:76::o;18199:258::-;18271:1;18281:113;18295:6;18292:1;18289:13;18281:113;;;18371:11;;;18365:18;18352:11;;;18345:39;18317:2;18310:10;18281:113;;;18412:6;18409:1;18406:13;18403:2;;;-1:-1:-1;;18447:1:1;18429:16;;18422:27;18252:205::o;18462:380::-;18547:1;18537:12;;18594:1;18584:12;;;18605:2;;18659:4;18651:6;18647:17;18637:27;;18605:2;18712;18704:6;18701:14;18681:18;18678:38;18675:2;;;18758:10;18753:3;18749:20;18746:1;18739:31;18793:4;18790:1;18783:15;18821:4;18818:1;18811:15;18675:2;;18517:325;;;:::o;18847:135::-;;-1:-1:-1;;18907:17:1;;18904:2;;;18927:18;;:::i;:::-;-1:-1:-1;18974:1:1;18963:13;;18894:88::o;18987:112::-;;19045:1;19035:2;;19050:18;;:::i;:::-;-1:-1:-1;19084:9:1;;19025:74::o;19104:127::-;19165:10;19160:3;19156:20;19153:1;19146:31;19196:4;19193:1;19186:15;19220:4;19217:1;19210:15;19236:127;19297:10;19292:3;19288:20;19285:1;19278:31;19328:4;19325:1;19318:15;19352:4;19349:1;19342:15;19368:127;19429:10;19424:3;19420:20;19417:1;19410:31;19460:4;19457:1;19450:15;19484:4;19481:1;19474:15;19500:131;-1:-1:-1;;;;;;19574:32:1;;19564:43;;19554:2;;19621:1;19618;19611:12

Swarm Source

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