ERC-721
Overview
Max Total Supply
800 ONYX
Holders
255
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 ONYXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
onyxtreasure
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-05 */ // SPDX-License-Identifier: MIT /*** * * _|_| _|_|_|_|_| * _| _| _|_|_| _| _| _| _| _| _| _|_| _|_| _|_|_| _|_|_| _| _| _| _|_| _|_| * _| _| _| _| _| _| _|_| _| _|_| _|_|_|_| _| _| _|_| _| _| _|_| _|_|_|_| * _| _| _| _| _| _| _| _| _| _| _| _| _| _|_| _| _| _| _| * _|_| _| _| _|_|_| _| _| _| _| _|_|_| _|_|_| _|_|_| _|_|_| _| _|_|_| * _| * _|_| */ // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (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: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (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: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.7.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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (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: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: contracts/onyxs cubes.sol pragma solidity ^0.8.0; /*** * * _|_| _|_|_|_|_| * _| _| _|_|_| _| _| _| _| _| _| _|_| _|_| _|_|_| _|_|_| _| _| _| _|_| _|_| * _| _| _| _| _| _| _|_| _| _|_| _|_|_|_| _| _| _|_| _| _| _|_| _|_|_|_| * _| _| _| _| _| _| _| _| _| _| _| _| _| _|_| _| _| _| _| * _|_| _| _| _|_|_| _| _| _| _| _|_|_| _|_|_| _|_|_| _|_|_| _| _|_|_| * _| * _|_| */ contract onyxtreasure is ERC721A, Ownable, ReentrancyGuard { using Address for address; using Strings for uint; string public baseTokenURI = "ipfs://bafybeidbksjk2sfyrbzazop3zry3mr7vgbrax4kztc3sajahsvmgcr7zym/"; uint256 public maxSupply = 800; uint256 public MAX_MINTS_PER_TX = 4; uint256 public PUBLIC_SALE_PRICE = 0.005 ether; //for the tools to open the cubes uint256 public NUM_FREE_MINTS = 800; uint256 public MAX_FREE_PER_WALLET = 1; uint256 public freeAlreadyMinted = 0; bool public isPublicSaleActive = false; constructor() ERC721A("0nyx Treasure", "ONYX") { } function mint(uint256 numberOfTokens) external payable { require(isPublicSaleActive, "Sale not active"); require(totalSupply() + numberOfTokens < maxSupply + 1, "All tokens are minted out"); if(freeAlreadyMinted + numberOfTokens > NUM_FREE_MINTS){ require( (PUBLIC_SALE_PRICE * numberOfTokens) <= msg.value, "Incorrect ETH value sent" ); } else { if (balanceOf(msg.sender) + numberOfTokens > MAX_FREE_PER_WALLET) { require( (PUBLIC_SALE_PRICE * numberOfTokens) <= msg.value, "Incorrect ETH value sent" ); require( numberOfTokens <= MAX_MINTS_PER_TX, "Max mints per transaction exceeded" ); } else { require( numberOfTokens <= MAX_FREE_PER_WALLET, "Max mints per transaction exceeded" ); freeAlreadyMinted += numberOfTokens; } } _safeMint(msg.sender, numberOfTokens); } function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function treasuryMint(uint quantity) public onlyOwner { require( quantity > 0, "Invalid mint amount" ); require( totalSupply() + quantity <= maxSupply, "Maximum supply exceeded" ); _safeMint(msg.sender, quantity); } function withdraw() public onlyOwner nonReentrant { Address.sendValue(payable(msg.sender), address(this).balance); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setIsPublicSaleActive(bool _isPublicSaleActive) external onlyOwner { isPublicSaleActive = _isPublicSaleActive; } function setNumFreeMints(uint256 _numfreemints) external onlyOwner { NUM_FREE_MINTS = _numfreemints; } function setSalePrice(uint256 _price) external onlyOwner { PUBLIC_SALE_PRICE = _price; } function setMaxLimitPerTransaction(uint256 _limit) external onlyOwner { MAX_MINTS_PER_TX = _limit; } function setFreeLimitPerWallet(uint256 _limit) external onlyOwner { MAX_FREE_PER_WALLET = _limit; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_FREE_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_FREE_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeAlreadyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setFreeLimitPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxLimitPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numfreemints","type":"uint256"}],"name":"setNumFreeMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610100604052604360808181529062001c6760a03980516200002a91600a916020909101906200013e565b50610320600b8190556004600c556611c37937e08000600d55600e556001600f5560006010556011805460ff191690553480156200006757600080fd5b50604080518082018252600d81526c306e797820547265617375726560981b60208083019182528351808501909452600484526309e9cb2b60e31b908401528151919291620000b9916002916200013e565b508051620000cf9060039060208401906200013e565b50506000805550620000e133620000ec565b600160095562000221565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014c90620001e4565b90600052602060002090601f016020900481019282620001705760008555620001bb565b82601f106200018b57805160ff1916838001178555620001bb565b82800160010185558215620001bb579182015b82811115620001bb5782518255916020019190600101906200019e565b50620001c9929150620001cd565b5090565b5b80821115620001c95760008155600101620001ce565b600181811c90821680620001f957607f821691505b602082108114156200021b57634e487b7160e01b600052602260045260246000fd5b50919050565b611a3680620002316000396000f3fe6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063d5abeb011161006f578063d5abeb0114610539578063dffe56b21461054f578063e985e9c514610565578063efdc7788146105ae578063f2fde38b146105ce57600080fd5b8063b88d4fde146104db578063c6a91b42146104ee578063c87b56dd14610504578063d547cfb71461052457600080fd5b806398710d1e116100dc57806398710d1e146104725780639e9fcffc14610488578063a0712d68146104a8578063a22cb465146104bb57600080fd5b8063715018a6146104145780638da5cb5b1461042957806395d89b4114610447578063982d669e1461045c57600080fd5b80631e84c413116101905780633ccfd60b1161015f5780633ccfd60b1461038c57806342842e0e146103a157806355f804b3146103b45780636352211e146103d457806370a08231146103f457600080fd5b80631e84c4131461031f578063202f298a1461033957806323b872dd1461035957806328cad13d1461036c57600080fd5b8063095ea7b3116101cc578063095ea7b3146102b15780630a00ae83146102c657806318160ddd146102e65780631919fed7146102ff57600080fd5b806301ffc9a7146101fe57806306fdde031461023357806307e89ec014610255578063081812fc14610279575b600080fd5b34801561020a57600080fd5b5061021e610219366004611797565b6105ee565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610640565b60405161022a91906118cb565b34801561026157600080fd5b5061026b600d5481565b60405190815260200161022a565b34801561028557600080fd5b5061029961029436600461181a565b6106d2565b6040516001600160a01b03909116815260200161022a565b6102c46102bf366004611752565b610716565b005b3480156102d257600080fd5b506102c46102e136600461181a565b6107b6565b3480156102f257600080fd5b506001546000540361026b565b34801561030b57600080fd5b506102c461031a36600461181a565b6107c3565b34801561032b57600080fd5b5060115461021e9060ff1681565b34801561034557600080fd5b506102c461035436600461181a565b6107d0565b6102c4610367366004611670565b6107dd565b34801561037857600080fd5b506102c461038736600461177c565b61096e565b34801561039857600080fd5b506102c4610989565b6102c46103af366004611670565b6109ff565b3480156103c057600080fd5b506102c46103cf3660046117d1565b610a1f565b3480156103e057600080fd5b506102996103ef36600461181a565b610a3e565b34801561040057600080fd5b5061026b61040f366004611622565b610a49565b34801561042057600080fd5b506102c4610a98565b34801561043557600080fd5b506008546001600160a01b0316610299565b34801561045357600080fd5b50610248610aac565b34801561046857600080fd5b5061026b600e5481565b34801561047e57600080fd5b5061026b600f5481565b34801561049457600080fd5b506102c46104a336600461181a565b610abb565b6102c46104b636600461181a565b610ac8565b3480156104c757600080fd5b506102c46104d6366004611728565b610cd1565b6102c46104e93660046116ac565b610d3d565b3480156104fa57600080fd5b5061026b600c5481565b34801561051057600080fd5b5061024861051f36600461181a565b610d87565b34801561053057600080fd5b50610248610e0c565b34801561054557600080fd5b5061026b600b5481565b34801561055b57600080fd5b5061026b60105481565b34801561057157600080fd5b5061021e61058036600461163d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105ba57600080fd5b506102c46105c936600461181a565b610e9a565b3480156105da57600080fd5b506102c46105e9366004611622565b610f51565b60006301ffc9a760e01b6001600160e01b03198316148061061f57506380ac58cd60e01b6001600160e01b03198316145b8061063a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461064f90611983565b80601f016020809104026020016040519081016040528092919081815260200182805461067b90611983565b80156106c85780601f1061069d576101008083540402835291602001916106c8565b820191906000526020600020905b8154815290600101906020018083116106ab57829003601f168201915b5050505050905090565b60006106dd82610fc7565b6106fa576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061072182610a3e565b9050336001600160a01b0382161461075a5761073d8133610580565b61075a576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107be610fee565b600e55565b6107cb610fee565b600d55565b6107d8610fee565b600f55565b60006107e882611048565b9050836001600160a01b0316816001600160a01b03161461081b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176108685761084b8633610580565b61086857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661088f57604051633a954ecd60e21b815260040160405180910390fd5b801561089a57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b831661092557600184016000818152600460205260409020546109235760005481146109235760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610976610fee565b6011805460ff1916911515919091179055565b610991610fee565b600260095414156109e95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026009556109f833476110a9565b6001600955565b610a1a83838360405180602001604052806000815250610d3d565b505050565b610a27610fee565b8051610a3a90600a9060208401906114e7565b5050565b600061063a82611048565b60006001600160a01b038216610a72576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610aa0610fee565b610aaa60006111c2565b565b60606003805461064f90611983565b610ac3610fee565b600c55565b60115460ff16610b0c5760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b60448201526064016109e0565b600b54610b1a906001611920565b81610b286001546000540390565b610b329190611920565b10610b7f5760405162461bcd60e51b815260206004820152601960248201527f416c6c20746f6b656e7320617265206d696e746564206f75740000000000000060448201526064016109e0565b600e5481601054610b909190611920565b1115610bf3573481600d54610ba59190611938565b1115610bee5760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b60448201526064016109e0565b610cc4565b600f5481610c0033610a49565b610c0a9190611920565b1115610c8a573481600d54610c1f9190611938565b1115610c685760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b60448201526064016109e0565b600c54811115610bee5760405162461bcd60e51b81526004016109e0906118de565b600f54811115610cac5760405162461bcd60e51b81526004016109e0906118de565b8060106000828254610cbe9190611920565b90915550505b610cce3382611214565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d488484846107dd565b6001600160a01b0383163b15610d8157610d648484848461122e565b610d81576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610d9282610fc7565b610daf57604051630a14c4b560e41b815260040160405180910390fd5b6000610db9611326565b9050805160001415610dda5760405180602001604052806000815250610e05565b80610de484611335565b604051602001610df592919061185f565b6040516020818303038152906040525b9392505050565b600a8054610e1990611983565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4590611983565b8015610e925780601f10610e6757610100808354040283529160200191610e92565b820191906000526020600020905b815481529060010190602001808311610e7557829003601f168201915b505050505081565b610ea2610fee565b60008111610ee85760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016109e0565b600b5481610ef96001546000540390565b610f039190611920565b1115610cc45760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c7920657863656564656400000000000000000060448201526064016109e0565b610f59610fee565b6001600160a01b038116610fbe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e0565b610cce816111c2565b600080548210801561063a575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610aaa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109e0565b60008160005481101561109057600081815260046020526040902054600160e01b811661108e575b80610e05575060001901600081815260046020526040902054611070565b505b604051636f96cda160e11b815260040160405180910390fd5b804710156110f95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109e0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611146576040519150601f19603f3d011682016040523d82523d6000602084013e61114b565b606091505b5050905080610a1a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109e0565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a3a828260405180602001604052806000815250611383565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061126390339089908890889060040161188e565b602060405180830381600087803b15801561127d57600080fd5b505af19250505080156112ad575060408051601f3d908101601f191682019092526112aa918101906117b4565b60015b611308573d8080156112db576040519150601f19603f3d011682016040523d82523d6000602084013e6112e0565b606091505b508051611300576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a805461064f90611983565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061136c57611371565b61134f565b50819003601f19909101908152919050565b61138d83836113f0565b6001600160a01b0383163b15610a1a576000548281035b6113b7600086838060010194508661122e565b6113d4576040516368d2bf6b60e11b815260040160405180910390fd5b8181106113a45781600054146113e957600080fd5b5050505050565b600054816114115760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146114c057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611488565b50816114de57604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546114f390611983565b90600052602060002090601f016020900481019282611515576000855561155b565b82601f1061152e57805160ff191683800117855561155b565b8280016001018555821561155b579182015b8281111561155b578251825591602001919060010190611540565b5061156792915061156b565b5090565b5b80821115611567576000815560010161156c565b600067ffffffffffffffff8084111561159b5761159b6119d4565b604051601f8501601f19908116603f011681019082821181831017156115c3576115c36119d4565b816040528093508581528686860111156115dc57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461160d57600080fd5b919050565b8035801515811461160d57600080fd5b60006020828403121561163457600080fd5b610e05826115f6565b6000806040838503121561165057600080fd5b611659836115f6565b9150611667602084016115f6565b90509250929050565b60008060006060848603121561168557600080fd5b61168e846115f6565b925061169c602085016115f6565b9150604084013590509250925092565b600080600080608085870312156116c257600080fd5b6116cb856115f6565b93506116d9602086016115f6565b925060408501359150606085013567ffffffffffffffff8111156116fc57600080fd5b8501601f8101871361170d57600080fd5b61171c87823560208401611580565b91505092959194509250565b6000806040838503121561173b57600080fd5b611744836115f6565b915061166760208401611612565b6000806040838503121561176557600080fd5b61176e836115f6565b946020939093013593505050565b60006020828403121561178e57600080fd5b610e0582611612565b6000602082840312156117a957600080fd5b8135610e05816119ea565b6000602082840312156117c657600080fd5b8151610e05816119ea565b6000602082840312156117e357600080fd5b813567ffffffffffffffff8111156117fa57600080fd5b8201601f8101841361180b57600080fd5b61131e84823560208401611580565b60006020828403121561182c57600080fd5b5035919050565b6000815180845261184b816020860160208601611957565b601f01601f19169290920160200192915050565b60008351611871818460208801611957565b835190830190611885818360208801611957565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906118c190830184611833565b9695505050505050565b602081526000610e056020830184611833565b60208082526022908201527f4d6178206d696e747320706572207472616e73616374696f6e20657863656564604082015261195960f21b606082015260800190565b60008219821115611933576119336119be565b500190565b6000816000190483118215151615611952576119526119be565b500290565b60005b8381101561197257818101518382015260200161195a565b83811115610d815750506000910152565b600181811c9082168061199757607f821691505b602082108114156119b857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610cce57600080fdfea2646970667358221220828e3d229abea853ee41ef2c189789931d7d3ceb905e6cf8210cea13c433930d64736f6c63430008070033697066733a2f2f6261667962656964626b736a6b3273667972627a617a6f70337a7279336d7237766762726178346b7a74633373616a616873766d676372377a796d2f
Deployed Bytecode
0x6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063d5abeb011161006f578063d5abeb0114610539578063dffe56b21461054f578063e985e9c514610565578063efdc7788146105ae578063f2fde38b146105ce57600080fd5b8063b88d4fde146104db578063c6a91b42146104ee578063c87b56dd14610504578063d547cfb71461052457600080fd5b806398710d1e116100dc57806398710d1e146104725780639e9fcffc14610488578063a0712d68146104a8578063a22cb465146104bb57600080fd5b8063715018a6146104145780638da5cb5b1461042957806395d89b4114610447578063982d669e1461045c57600080fd5b80631e84c413116101905780633ccfd60b1161015f5780633ccfd60b1461038c57806342842e0e146103a157806355f804b3146103b45780636352211e146103d457806370a08231146103f457600080fd5b80631e84c4131461031f578063202f298a1461033957806323b872dd1461035957806328cad13d1461036c57600080fd5b8063095ea7b3116101cc578063095ea7b3146102b15780630a00ae83146102c657806318160ddd146102e65780631919fed7146102ff57600080fd5b806301ffc9a7146101fe57806306fdde031461023357806307e89ec014610255578063081812fc14610279575b600080fd5b34801561020a57600080fd5b5061021e610219366004611797565b6105ee565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610640565b60405161022a91906118cb565b34801561026157600080fd5b5061026b600d5481565b60405190815260200161022a565b34801561028557600080fd5b5061029961029436600461181a565b6106d2565b6040516001600160a01b03909116815260200161022a565b6102c46102bf366004611752565b610716565b005b3480156102d257600080fd5b506102c46102e136600461181a565b6107b6565b3480156102f257600080fd5b506001546000540361026b565b34801561030b57600080fd5b506102c461031a36600461181a565b6107c3565b34801561032b57600080fd5b5060115461021e9060ff1681565b34801561034557600080fd5b506102c461035436600461181a565b6107d0565b6102c4610367366004611670565b6107dd565b34801561037857600080fd5b506102c461038736600461177c565b61096e565b34801561039857600080fd5b506102c4610989565b6102c46103af366004611670565b6109ff565b3480156103c057600080fd5b506102c46103cf3660046117d1565b610a1f565b3480156103e057600080fd5b506102996103ef36600461181a565b610a3e565b34801561040057600080fd5b5061026b61040f366004611622565b610a49565b34801561042057600080fd5b506102c4610a98565b34801561043557600080fd5b506008546001600160a01b0316610299565b34801561045357600080fd5b50610248610aac565b34801561046857600080fd5b5061026b600e5481565b34801561047e57600080fd5b5061026b600f5481565b34801561049457600080fd5b506102c46104a336600461181a565b610abb565b6102c46104b636600461181a565b610ac8565b3480156104c757600080fd5b506102c46104d6366004611728565b610cd1565b6102c46104e93660046116ac565b610d3d565b3480156104fa57600080fd5b5061026b600c5481565b34801561051057600080fd5b5061024861051f36600461181a565b610d87565b34801561053057600080fd5b50610248610e0c565b34801561054557600080fd5b5061026b600b5481565b34801561055b57600080fd5b5061026b60105481565b34801561057157600080fd5b5061021e61058036600461163d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105ba57600080fd5b506102c46105c936600461181a565b610e9a565b3480156105da57600080fd5b506102c46105e9366004611622565b610f51565b60006301ffc9a760e01b6001600160e01b03198316148061061f57506380ac58cd60e01b6001600160e01b03198316145b8061063a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461064f90611983565b80601f016020809104026020016040519081016040528092919081815260200182805461067b90611983565b80156106c85780601f1061069d576101008083540402835291602001916106c8565b820191906000526020600020905b8154815290600101906020018083116106ab57829003601f168201915b5050505050905090565b60006106dd82610fc7565b6106fa576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061072182610a3e565b9050336001600160a01b0382161461075a5761073d8133610580565b61075a576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107be610fee565b600e55565b6107cb610fee565b600d55565b6107d8610fee565b600f55565b60006107e882611048565b9050836001600160a01b0316816001600160a01b03161461081b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176108685761084b8633610580565b61086857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661088f57604051633a954ecd60e21b815260040160405180910390fd5b801561089a57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b831661092557600184016000818152600460205260409020546109235760005481146109235760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610976610fee565b6011805460ff1916911515919091179055565b610991610fee565b600260095414156109e95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026009556109f833476110a9565b6001600955565b610a1a83838360405180602001604052806000815250610d3d565b505050565b610a27610fee565b8051610a3a90600a9060208401906114e7565b5050565b600061063a82611048565b60006001600160a01b038216610a72576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610aa0610fee565b610aaa60006111c2565b565b60606003805461064f90611983565b610ac3610fee565b600c55565b60115460ff16610b0c5760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b60448201526064016109e0565b600b54610b1a906001611920565b81610b286001546000540390565b610b329190611920565b10610b7f5760405162461bcd60e51b815260206004820152601960248201527f416c6c20746f6b656e7320617265206d696e746564206f75740000000000000060448201526064016109e0565b600e5481601054610b909190611920565b1115610bf3573481600d54610ba59190611938565b1115610bee5760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b60448201526064016109e0565b610cc4565b600f5481610c0033610a49565b610c0a9190611920565b1115610c8a573481600d54610c1f9190611938565b1115610c685760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b60448201526064016109e0565b600c54811115610bee5760405162461bcd60e51b81526004016109e0906118de565b600f54811115610cac5760405162461bcd60e51b81526004016109e0906118de565b8060106000828254610cbe9190611920565b90915550505b610cce3382611214565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d488484846107dd565b6001600160a01b0383163b15610d8157610d648484848461122e565b610d81576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610d9282610fc7565b610daf57604051630a14c4b560e41b815260040160405180910390fd5b6000610db9611326565b9050805160001415610dda5760405180602001604052806000815250610e05565b80610de484611335565b604051602001610df592919061185f565b6040516020818303038152906040525b9392505050565b600a8054610e1990611983565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4590611983565b8015610e925780601f10610e6757610100808354040283529160200191610e92565b820191906000526020600020905b815481529060010190602001808311610e7557829003601f168201915b505050505081565b610ea2610fee565b60008111610ee85760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016109e0565b600b5481610ef96001546000540390565b610f039190611920565b1115610cc45760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c7920657863656564656400000000000000000060448201526064016109e0565b610f59610fee565b6001600160a01b038116610fbe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e0565b610cce816111c2565b600080548210801561063a575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610aaa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109e0565b60008160005481101561109057600081815260046020526040902054600160e01b811661108e575b80610e05575060001901600081815260046020526040902054611070565b505b604051636f96cda160e11b815260040160405180910390fd5b804710156110f95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109e0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611146576040519150601f19603f3d011682016040523d82523d6000602084013e61114b565b606091505b5050905080610a1a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109e0565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a3a828260405180602001604052806000815250611383565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061126390339089908890889060040161188e565b602060405180830381600087803b15801561127d57600080fd5b505af19250505080156112ad575060408051601f3d908101601f191682019092526112aa918101906117b4565b60015b611308573d8080156112db576040519150601f19603f3d011682016040523d82523d6000602084013e6112e0565b606091505b508051611300576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a805461064f90611983565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061136c57611371565b61134f565b50819003601f19909101908152919050565b61138d83836113f0565b6001600160a01b0383163b15610a1a576000548281035b6113b7600086838060010194508661122e565b6113d4576040516368d2bf6b60e11b815260040160405180910390fd5b8181106113a45781600054146113e957600080fd5b5050505050565b600054816114115760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146114c057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611488565b50816114de57604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546114f390611983565b90600052602060002090601f016020900481019282611515576000855561155b565b82601f1061152e57805160ff191683800117855561155b565b8280016001018555821561155b579182015b8281111561155b578251825591602001919060010190611540565b5061156792915061156b565b5090565b5b80821115611567576000815560010161156c565b600067ffffffffffffffff8084111561159b5761159b6119d4565b604051601f8501601f19908116603f011681019082821181831017156115c3576115c36119d4565b816040528093508581528686860111156115dc57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461160d57600080fd5b919050565b8035801515811461160d57600080fd5b60006020828403121561163457600080fd5b610e05826115f6565b6000806040838503121561165057600080fd5b611659836115f6565b9150611667602084016115f6565b90509250929050565b60008060006060848603121561168557600080fd5b61168e846115f6565b925061169c602085016115f6565b9150604084013590509250925092565b600080600080608085870312156116c257600080fd5b6116cb856115f6565b93506116d9602086016115f6565b925060408501359150606085013567ffffffffffffffff8111156116fc57600080fd5b8501601f8101871361170d57600080fd5b61171c87823560208401611580565b91505092959194509250565b6000806040838503121561173b57600080fd5b611744836115f6565b915061166760208401611612565b6000806040838503121561176557600080fd5b61176e836115f6565b946020939093013593505050565b60006020828403121561178e57600080fd5b610e0582611612565b6000602082840312156117a957600080fd5b8135610e05816119ea565b6000602082840312156117c657600080fd5b8151610e05816119ea565b6000602082840312156117e357600080fd5b813567ffffffffffffffff8111156117fa57600080fd5b8201601f8101841361180b57600080fd5b61131e84823560208401611580565b60006020828403121561182c57600080fd5b5035919050565b6000815180845261184b816020860160208601611957565b601f01601f19169290920160200192915050565b60008351611871818460208801611957565b835190830190611885818360208801611957565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906118c190830184611833565b9695505050505050565b602081526000610e056020830184611833565b60208082526022908201527f4d6178206d696e747320706572207472616e73616374696f6e20657863656564604082015261195960f21b606082015260800190565b60008219821115611933576119336119be565b500190565b6000816000190483118215151615611952576119526119be565b500290565b60005b8381101561197257818101518382015260200161195a565b83811115610d815750506000910152565b600181811c9082168061199757607f821691505b602082108114156119b857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610cce57600080fdfea2646970667358221220828e3d229abea853ee41ef2c189789931d7d3ceb905e6cf8210cea13c433930d64736f6c63430008070033
Deployed Bytecode Sourcemap
79846:3046:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45629:639;;;;;;;;;;-1:-1:-1;45629:639:0;;;;;:::i;:::-;;:::i;:::-;;;6113:14:1;;6106:22;6088:41;;6076:2;6061:18;45629:639:0;;;;;;;;46531:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;80153:47::-;;;;;;;;;;;;;;;;;;;10577:25:1;;;10565:2;10550:18;80153:47:0;10431:177:1;53022:218:0;;;;;;;;;;-1:-1:-1;53022:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;5411:32:1;;;5393:51;;5381:2;5366:18;53022:218:0;5247:203:1;52455:408:0;;;;;;:::i;:::-;;:::i;:::-;;82374:129;;;;;;;;;;-1:-1:-1;82374:129:0;;;;;:::i;:::-;;:::i;42282:323::-;;;;;;;;;;-1:-1:-1;42556:12:0;;42343:7;42540:13;:28;42282:323;;82509:115;;;;;;;;;;-1:-1:-1;82509:115:0;;;;;:::i;:::-;;:::i;80365:38::-;;;;;;;;;;-1:-1:-1;80365:38:0;;;;;;;;82763:126;;;;;;;;;;-1:-1:-1;82763:126:0;;;;;:::i;:::-;;:::i;56661:2825::-;;;;;;:::i;:::-;;:::i;82220:148::-;;;;;;;;;;-1:-1:-1;82220:148:0;;;;;:::i;:::-;;:::i;81931:142::-;;;;;;;;;;;;;:::i;59582:193::-;;;;;;:::i;:::-;;:::i;81527:108::-;;;;;;;;;;-1:-1:-1;81527:108:0;;;;;:::i;:::-;;:::i;47924:152::-;;;;;;;;;;-1:-1:-1;47924:152:0;;;;;:::i;:::-;;:::i;43466:233::-;;;;;;;;;;-1:-1:-1;43466:233:0;;;;;:::i;:::-;;:::i;9168:103::-;;;;;;;;;;;;;:::i;8520:87::-;;;;;;;;;;-1:-1:-1;8593:6:0;;-1:-1:-1;;;;;8593:6:0;8520:87;;46707:104;;;;;;;;;;;;;:::i;80239:36::-;;;;;;;;;;;;;;;;80280:39;;;;;;;;;;;;;;;;82630:127;;;;;;;;;;-1:-1:-1;82630:127:0;;;;;:::i;:::-;;:::i;80469:1052::-;;;;;;:::i;:::-;;:::i;53580:234::-;;;;;;;;;;-1:-1:-1;53580:234:0;;;;;:::i;:::-;;:::i;60373:407::-;;;;;;:::i;:::-;;:::i;80112:36::-;;;;;;;;;;;;;;;;46917:318;;;;;;;;;;-1:-1:-1;46917:318:0;;;;;:::i;:::-;;:::i;79971:100::-;;;;;;;;;;;;;:::i;80076:31::-;;;;;;;;;;;;;;;;80324:36;;;;;;;;;;;;;;;;53971:164;;;;;;;;;;-1:-1:-1;53971:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;54092:25:0;;;54068:4;54092:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;53971:164;81641:284;;;;;;;;;;-1:-1:-1;81641:284:0;;;;;:::i;:::-;;:::i;9426:201::-;;;;;;;;;;-1:-1:-1;9426:201:0;;;;;:::i;:::-;;:::i;45629:639::-;45714:4;-1:-1:-1;;;;;;;;;46038:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;46115:25:0;;;46038:102;:179;;;-1:-1:-1;;;;;;;;;;46192:25:0;;;46038:179;46018:199;45629:639;-1:-1:-1;;45629:639:0:o;46531:100::-;46585:13;46618:5;46611:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46531:100;:::o;53022:218::-;53098:7;53123:16;53131:7;53123;:16::i;:::-;53118:64;;53148:34;;-1:-1:-1;;;53148:34:0;;;;;;;;;;;53118:64;-1:-1:-1;53202:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;53202:30:0;;53022:218::o;52455:408::-;52544:13;52560:16;52568:7;52560;:16::i;:::-;52544:32;-1:-1:-1;76788:10:0;-1:-1:-1;;;;;52593:28:0;;;52589:175;;52641:44;52658:5;76788:10;53971:164;:::i;52641:44::-;52636:128;;52713:35;;-1:-1:-1;;;52713:35:0;;;;;;;;;;;52636:128;52776:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;52776:35:0;-1:-1:-1;;;;;52776:35:0;;;;;;;;;52827:28;;52776:24;;52827:28;;;;;;;52533:330;52455:408;;:::o;82374:129::-;8406:13;:11;:13::i;:::-;82467:14:::1;:30:::0;82374:129::o;82509:115::-;8406:13;:11;:13::i;:::-;82592:17:::1;:26:::0;82509:115::o;82763:126::-;8406:13;:11;:13::i;:::-;82855:19:::1;:28:::0;82763:126::o;56661:2825::-;56803:27;56833;56852:7;56833:18;:27::i;:::-;56803:57;;56918:4;-1:-1:-1;;;;;56877:45:0;56893:19;-1:-1:-1;;;;;56877:45:0;;56873:86;;56931:28;;-1:-1:-1;;;56931:28:0;;;;;;;;;;;56873:86;56973:27;55769:24;;;:15;:24;;;;;55997:26;;76788:10;55394:30;;;-1:-1:-1;;;;;55087:28:0;;55372:20;;;55369:56;57159:180;;57252:43;57269:4;76788:10;53971:164;:::i;57252:43::-;57247:92;;57304:35;;-1:-1:-1;;;57304:35:0;;;;;;;;;;;57247:92;-1:-1:-1;;;;;57356:16:0;;57352:52;;57381:23;;-1:-1:-1;;;57381:23:0;;;;;;;;;;;57352:52;57553:15;57550:160;;;57693:1;57672:19;57665:30;57550:160;-1:-1:-1;;;;;58090:24:0;;;;;;;:18;:24;;;;;;58088:26;;-1:-1:-1;;58088:26:0;;;58159:22;;;;;;;;;58157:24;;-1:-1:-1;58157:24:0;;;51313:11;51288:23;51284:41;51271:63;-1:-1:-1;;;51271:63:0;58452:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;58747:47:0;;58743:627;;58852:1;58842:11;;58820:19;58975:30;;;:17;:30;;;;;;58971:384;;59113:13;;59098:11;:28;59094:242;;59260:30;;;;:17;:30;;;;;:52;;;59094:242;58801:569;58743:627;59417:7;59413:2;-1:-1:-1;;;;;59398:27:0;59407:4;-1:-1:-1;;;;;59398:27:0;;;;;;;;;;;56792:2694;;;56661:2825;;;:::o;82220:148::-;8406:13;:11;:13::i;:::-;82322:18:::1;:40:::0;;-1:-1:-1;;82322:40:0::1;::::0;::::1;;::::0;;;::::1;::::0;;82220:148::o;81931:142::-;8406:13;:11;:13::i;:::-;2948:1:::1;3546:7;;:19;;3538:63;;;::::0;-1:-1:-1;;;3538:63:0;;10273:2:1;3538:63:0::1;::::0;::::1;10255:21:1::0;10312:2;10292:18;;;10285:30;10351:33;10331:18;;;10324:61;10402:18;;3538:63:0::1;;;;;;;;;2948:1;3679:7;:18:::0;82006:61:::2;82032:10;82045:21;82006:17;:61::i;:::-;2904:1:::1;3858:7;:22:::0;81931:142::o;59582:193::-;59728:39;59745:4;59751:2;59755:7;59728:39;;;;;;;;;;;;:16;:39::i;:::-;59582:193;;;:::o;81527:108::-;8406:13;:11;:13::i;:::-;81607:22;;::::1;::::0;:12:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;:::-;;81527:108:::0;:::o;47924:152::-;47996:7;48039:27;48058:7;48039:18;:27::i;43466:233::-;43538:7;-1:-1:-1;;;;;43562:19:0;;43558:60;;43590:28;;-1:-1:-1;;;43590:28:0;;;;;;;;;;;43558:60;-1:-1:-1;;;;;;43636:25:0;;;;;:18;:25;;;;;;37625:13;43636:55;;43466:233::o;9168:103::-;8406:13;:11;:13::i;:::-;9233:30:::1;9260:1;9233:18;:30::i;:::-;9168:103::o:0;46707:104::-;46763:13;46796:7;46789:14;;;;;:::i;82630:127::-;8406:13;:11;:13::i;:::-;82726:16:::1;:25:::0;82630:127::o;80469:1052::-;80556:18;;;;80548:46;;;;-1:-1:-1;;;80548:46:0;;7758:2:1;80548:46:0;;;7740:21:1;7797:2;7777:18;;;7770:30;-1:-1:-1;;;7816:18:1;;;7809:45;7871:18;;80548:46:0;7556:339:1;80548:46:0;80642:9;;:13;;80654:1;80642:13;:::i;:::-;80625:14;80609:13;42556:12;;42343:7;42540:13;:28;;42282:323;80609:13;:30;;;;:::i;:::-;:46;80601:84;;;;-1:-1:-1;;;80601:84:0;;9218:2:1;80601:84:0;;;9200:21:1;9257:2;9237:18;;;9230:30;9296:27;9276:18;;;9269:55;9341:18;;80601:84:0;9016:349:1;80601:84:0;80734:14;;80717;80697:17;;:34;;;;:::i;:::-;:51;80694:778;;;80822:9;80803:14;80783:17;;:34;;;;:::i;:::-;80782:49;;80760:123;;;;-1:-1:-1;;;80760:123:0;;9920:2:1;80760:123:0;;;9902:21:1;9959:2;9939:18;;;9932:30;-1:-1:-1;;;9978:18:1;;;9971:54;10042:18;;80760:123:0;9718:348:1;80760:123:0;80694:778;;;80953:19;;80936:14;80912:21;80922:10;80912:9;:21::i;:::-;:38;;;;:::i;:::-;:60;80908:557;;;81047:9;81028:14;81008:17;;:34;;;;:::i;:::-;81007:49;;80985:123;;;;-1:-1:-1;;;80985:123:0;;9920:2:1;80985:123:0;;;9902:21:1;9959:2;9939:18;;;9932:30;-1:-1:-1;;;9978:18:1;;;9971:54;10042:18;;80985:123:0;9718:348:1;80985:123:0;81159:16;;81141:14;:34;;81119:118;;;;-1:-1:-1;;;81119:118:0;;;;;;;:::i;80908:557::-;81314:19;;81296:14;:37;;81270:133;;;;-1:-1:-1;;;81270:133:0;;;;;;;:::i;:::-;81439:14;81418:17;;:35;;;;;;;:::i;:::-;;;;-1:-1:-1;;80908:557:0;81478:37;81488:10;81500:14;81478:9;:37::i;:::-;80469:1052;:::o;53580:234::-;76788:10;53675:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;53675:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;53675:60:0;;;;;;;;;;53751:55;;6088:41:1;;;53675:49:0;;76788:10;53751:55;;6061:18:1;53751:55:0;;;;;;;53580:234;;:::o;60373:407::-;60548:31;60561:4;60567:2;60571:7;60548:12;:31::i;:::-;-1:-1:-1;;;;;60594:14:0;;;:19;60590:183;;60633:56;60664:4;60670:2;60674:7;60683:5;60633:30;:56::i;:::-;60628:145;;60717:40;;-1:-1:-1;;;60717:40:0;;;;;;;;;;;60628:145;60373:407;;;;:::o;46917:318::-;46990:13;47021:16;47029:7;47021;:16::i;:::-;47016:59;;47046:29;;-1:-1:-1;;;47046:29:0;;;;;;;;;;;47016:59;47088:21;47112:10;:8;:10::i;:::-;47088:34;;47146:7;47140:21;47165:1;47140:26;;:87;;;;;;;;;;;;;;;;;47193:7;47202:18;47212:7;47202:9;:18::i;:::-;47176:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;47140:87;47133:94;46917:318;-1:-1:-1;;;46917:318:0:o;79971:100::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;81641:284::-;8406:13;:11;:13::i;:::-;81742:1:::1;81731:8;:12;81715:65;;;::::0;-1:-1:-1;;;81715:65:0;;9572:2:1;81715:65:0::1;::::0;::::1;9554:21:1::0;9611:2;9591:18;;;9584:30;-1:-1:-1;;;9630:18:1;;;9623:49;9689:18;;81715:65:0::1;9370:343:1::0;81715:65:0::1;81831:9;;81819:8;81803:13;42556:12:::0;;42343:7;42540:13;:28;;42282:323;81803:13:::1;:24;;;;:::i;:::-;:37;;81787:94;;;::::0;-1:-1:-1;;;81787:94:0;;8505:2:1;81787:94:0::1;::::0;::::1;8487:21:1::0;8544:2;8524:18;;;8517:30;8583:25;8563:18;;;8556:53;8626:18;;81787:94:0::1;8303:347:1::0;9426:201:0;8406:13;:11;:13::i;:::-;-1:-1:-1;;;;;9515:22:0;::::1;9507:73;;;::::0;-1:-1:-1;;;9507:73:0;;6566:2:1;9507:73:0::1;::::0;::::1;6548:21:1::0;6605:2;6585:18;;;6578:30;6644:34;6624:18;;;6617:62;-1:-1:-1;;;6695:18:1;;;6688:36;6741:19;;9507:73:0::1;6364:402:1::0;9507:73:0::1;9591:28;9610:8;9591:18;:28::i;54393:282::-:0;54458:4;54548:13;;54538:7;:23;54495:153;;;;-1:-1:-1;;54599:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;54599:44:0;:49;;54393:282::o;8685:132::-;8593:6;;-1:-1:-1;;;;;8593:6:0;76788:10;8749:23;8741:68;;;;-1:-1:-1;;;8741:68:0;;8857:2:1;8741:68:0;;;8839:21:1;;;8876:18;;;8869:30;8935:34;8915:18;;;8908:62;8987:18;;8741:68:0;8655:356:1;49079:1275:0;49146:7;49181;49283:13;;49276:4;:20;49272:1015;;;49321:14;49338:23;;;:17;:23;;;;;;-1:-1:-1;;;49427:24:0;;49423:845;;50092:113;50099:11;50092:113;;-1:-1:-1;;;50170:6:0;50152:25;;;;:17;:25;;;;;;50092:113;;49423:845;49298:989;49272:1015;50315:31;;-1:-1:-1;;;50315:31:0;;;;;;;;;;;12479:317;12594:6;12569:21;:31;;12561:73;;;;-1:-1:-1;;;12561:73:0;;7400:2:1;12561:73:0;;;7382:21:1;7439:2;7419:18;;;7412:30;7478:31;7458:18;;;7451:59;7527:18;;12561:73:0;7198:353:1;12561:73:0;12648:12;12666:9;-1:-1:-1;;;;;12666:14:0;12688:6;12666:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12647:52;;;12718:7;12710:78;;;;-1:-1:-1;;;12710:78:0;;6973:2:1;12710:78:0;;;6955:21:1;7012:2;6992:18;;;6985:30;7051:34;7031:18;;;7024:62;7122:28;7102:18;;;7095:56;7168:19;;12710:78:0;6771:422:1;9787:191:0;9880:6;;;-1:-1:-1;;;;;9897:17:0;;;-1:-1:-1;;;;;;9897:17:0;;;;;;;9930:40;;9880:6;;;9897:17;9880:6;;9930:40;;9861:16;;9930:40;9850:128;9787:191;:::o;70533:112::-;70610:27;70620:2;70624:8;70610:27;;;;;;;;;;;;:9;:27::i;62864:716::-;63048:88;;-1:-1:-1;;;63048:88:0;;63027:4;;-1:-1:-1;;;;;63048:45:0;;;;;:88;;76788:10;;63115:4;;63121:7;;63130:5;;63048:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63048:88:0;;;;;;;;-1:-1:-1;;63048:88:0;;;;;;;;;;;;:::i;:::-;;;63044:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63331:13:0;;63327:235;;63377:40;;-1:-1:-1;;;63377:40:0;;;;;;;;;;;63327:235;63520:6;63514:13;63505:6;63501:2;63497:15;63490:38;63044:529;-1:-1:-1;;;;;;63207:64:0;-1:-1:-1;;;63207:64:0;;-1:-1:-1;63044:529:0;62864:716;;;;;;:::o;82079:135::-;82164:13;82196:12;82189:19;;;;;:::i;76908:1745::-;76973:17;77407:4;77400;77394:11;77390:22;77499:1;77493:4;77486:15;77574:4;77571:1;77567:12;77560:19;;;77656:1;77651:3;77644:14;77760:3;77999:5;77981:428;78047:1;78042:3;78038:11;78031:18;;78218:2;78212:4;78208:13;78204:2;78200:22;78195:3;78187:36;78312:2;78302:13;;;78369:25;;78387:5;;78369:25;77981:428;;;-1:-1:-1;78439:13:0;;;-1:-1:-1;;78554:14:0;;;78616:19;;;78554:14;76908:1745;-1:-1:-1;76908:1745:0:o;69760:689::-;69891:19;69897:2;69901:8;69891:5;:19::i;:::-;-1:-1:-1;;;;;69952:14:0;;;:19;69948:483;;69992:11;70006:13;70054:14;;;70087:233;70118:62;70157:1;70161:2;70165:7;;;;;;70174:5;70118:30;:62::i;:::-;70113:167;;70216:40;;-1:-1:-1;;;70216:40:0;;;;;;;;;;;70113:167;70315:3;70307:5;:11;70087:233;;70402:3;70385:13;;:20;70381:34;;70407:8;;;70381:34;69973:458;;69760:689;;;:::o;64042:2966::-;64115:20;64138:13;64166;64162:44;;64188:18;;-1:-1:-1;;;64188:18:0;;;;;;;;;;;64162:44;-1:-1:-1;;;;;64694:22:0;;;;;;:18;:22;;;;37763:2;64694:22;;;:71;;64732:32;64720:45;;64694:71;;;65008:31;;;:17;:31;;;;;-1:-1:-1;51744:15:0;;51718:24;51714:46;51313:11;51288:23;51284:41;51281:52;51271:63;;65008:173;;65243:23;;;;65008:31;;64694:22;;66008:25;64694:22;;65861:335;66522:1;66508:12;66504:20;66462:346;66563:3;66554:7;66551:16;66462:346;;66781:7;66771:8;66768:1;66741:25;66738:1;66735;66730:59;66616:1;66603:15;66462:346;;;-1:-1:-1;66841:13:0;66837:45;;66863:19;;-1:-1:-1;;;66863:19:0;;;;;;;;;;;66837:45;66899:13;:19;-1:-1:-1;59582:193:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:160::-;893:20;;949:13;;942:21;932:32;;922:60;;978:1;975;968:12;993:186;1052:6;1105:2;1093:9;1084:7;1080:23;1076:32;1073:52;;;1121:1;1118;1111:12;1073:52;1144:29;1163:9;1144:29;:::i;1184:260::-;1252:6;1260;1313:2;1301:9;1292:7;1288:23;1284:32;1281:52;;;1329:1;1326;1319:12;1281:52;1352:29;1371:9;1352:29;:::i;:::-;1342:39;;1400:38;1434:2;1423:9;1419:18;1400:38;:::i;:::-;1390:48;;1184:260;;;;;:::o;1449:328::-;1526:6;1534;1542;1595:2;1583:9;1574:7;1570:23;1566:32;1563:52;;;1611:1;1608;1601:12;1563:52;1634:29;1653:9;1634:29;:::i;:::-;1624:39;;1682:38;1716:2;1705:9;1701:18;1682:38;:::i;:::-;1672:48;;1767:2;1756:9;1752:18;1739:32;1729:42;;1449:328;;;;;:::o;1782:666::-;1877:6;1885;1893;1901;1954:3;1942:9;1933:7;1929:23;1925:33;1922:53;;;1971:1;1968;1961:12;1922:53;1994:29;2013:9;1994:29;:::i;:::-;1984:39;;2042:38;2076:2;2065:9;2061:18;2042:38;:::i;:::-;2032:48;;2127:2;2116:9;2112:18;2099:32;2089:42;;2182:2;2171:9;2167:18;2154:32;2209:18;2201:6;2198:30;2195:50;;;2241:1;2238;2231:12;2195:50;2264:22;;2317:4;2309:13;;2305:27;-1:-1:-1;2295:55:1;;2346:1;2343;2336:12;2295:55;2369:73;2434:7;2429:2;2416:16;2411:2;2407;2403:11;2369:73;:::i;:::-;2359:83;;;1782:666;;;;;;;:::o;2453:254::-;2518:6;2526;2579:2;2567:9;2558:7;2554:23;2550:32;2547:52;;;2595:1;2592;2585:12;2547:52;2618:29;2637:9;2618:29;:::i;:::-;2608:39;;2666:35;2697:2;2686:9;2682:18;2666:35;:::i;2712:254::-;2780:6;2788;2841:2;2829:9;2820:7;2816:23;2812:32;2809:52;;;2857:1;2854;2847:12;2809:52;2880:29;2899:9;2880:29;:::i;:::-;2870:39;2956:2;2941:18;;;;2928:32;;-1:-1:-1;;;2712:254:1:o;2971:180::-;3027:6;3080:2;3068:9;3059:7;3055:23;3051:32;3048:52;;;3096:1;3093;3086:12;3048:52;3119:26;3135:9;3119:26;:::i;3156:245::-;3214:6;3267:2;3255:9;3246:7;3242:23;3238:32;3235:52;;;3283:1;3280;3273:12;3235:52;3322:9;3309:23;3341:30;3365:5;3341:30;:::i;3406:249::-;3475:6;3528:2;3516:9;3507:7;3503:23;3499:32;3496:52;;;3544:1;3541;3534:12;3496:52;3576:9;3570:16;3595:30;3619:5;3595:30;:::i;3660:450::-;3729:6;3782:2;3770:9;3761:7;3757:23;3753:32;3750:52;;;3798:1;3795;3788:12;3750:52;3838:9;3825:23;3871:18;3863:6;3860:30;3857:50;;;3903:1;3900;3893:12;3857:50;3926:22;;3979:4;3971:13;;3967:27;-1:-1:-1;3957:55:1;;4008:1;4005;3998:12;3957:55;4031:73;4096:7;4091:2;4078:16;4073:2;4069;4065:11;4031:73;:::i;4115:180::-;4174:6;4227:2;4215:9;4206:7;4202:23;4198:32;4195:52;;;4243:1;4240;4233:12;4195:52;-1:-1:-1;4266:23:1;;4115:180;-1:-1:-1;4115:180:1:o;4300:257::-;4341:3;4379:5;4373:12;4406:6;4401:3;4394:19;4422:63;4478:6;4471:4;4466:3;4462:14;4455:4;4448:5;4444:16;4422:63;:::i;:::-;4539:2;4518:15;-1:-1:-1;;4514:29:1;4505:39;;;;4546:4;4501:50;;4300:257;-1:-1:-1;;4300:257:1:o;4562:470::-;4741:3;4779:6;4773:13;4795:53;4841:6;4836:3;4829:4;4821:6;4817:17;4795:53;:::i;:::-;4911:13;;4870:16;;;;4933:57;4911:13;4870:16;4967:4;4955:17;;4933:57;:::i;:::-;5006:20;;4562:470;-1:-1:-1;;;;4562:470:1:o;5455:488::-;-1:-1:-1;;;;;5724:15:1;;;5706:34;;5776:15;;5771:2;5756:18;;5749:43;5823:2;5808:18;;5801:34;;;5871:3;5866:2;5851:18;;5844:31;;;5649:4;;5892:45;;5917:19;;5909:6;5892:45;:::i;:::-;5884:53;5455:488;-1:-1:-1;;;;;;5455:488:1:o;6140:219::-;6289:2;6278:9;6271:21;6252:4;6309:44;6349:2;6338:9;6334:18;6326:6;6309:44;:::i;7900:398::-;8102:2;8084:21;;;8141:2;8121:18;;;8114:30;8180:34;8175:2;8160:18;;8153:62;-1:-1:-1;;;8246:2:1;8231:18;;8224:32;8288:3;8273:19;;7900:398::o;10613:128::-;10653:3;10684:1;10680:6;10677:1;10674:13;10671:39;;;10690:18;;:::i;:::-;-1:-1:-1;10726:9:1;;10613:128::o;10746:168::-;10786:7;10852:1;10848;10844:6;10840:14;10837:1;10834:21;10829:1;10822:9;10815:17;10811:45;10808:71;;;10859:18;;:::i;:::-;-1:-1:-1;10899:9:1;;10746:168::o;10919:258::-;10991:1;11001:113;11015:6;11012:1;11009:13;11001:113;;;11091:11;;;11085:18;11072:11;;;11065:39;11037:2;11030:10;11001:113;;;11132:6;11129:1;11126:13;11123:48;;;-1:-1:-1;;11167:1:1;11149:16;;11142:27;10919:258::o;11182:380::-;11261:1;11257:12;;;;11304;;;11325:61;;11379:4;11371:6;11367:17;11357:27;;11325:61;11432:2;11424:6;11421:14;11401:18;11398:38;11395:161;;;11478:10;11473:3;11469:20;11466:1;11459:31;11513:4;11510:1;11503:15;11541:4;11538:1;11531:15;11395:161;;11182:380;;;:::o;11567:127::-;11628:10;11623:3;11619:20;11616:1;11609:31;11659:4;11656:1;11649:15;11683:4;11680:1;11673:15;11699:127;11760:10;11755:3;11751:20;11748:1;11741:31;11791:4;11788:1;11781:15;11815:4;11812:1;11805:15;11831:131;-1:-1:-1;;;;;;11905:32:1;;11895:43;;11885:71;;11952:1;11949;11942:12
Swarm Source
ipfs://828e3d229abea853ee41ef2c189789931d7d3ceb905e6cf8210cea13c433930d
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.