ERC-721
Overview
Max Total Supply
1,150 JESTS
Holders
584
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 JESTSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
jesterers
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-23 */ // 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/jesterers.sol pragma solidity ^0.8.0; /*** * .---. * | | * '---' __.....__ __.....__ __.....__ * .---. .-'' '. .-'' '. .-'' '. * | | / .-''"'-. `. .| / .-''"'-. `. .-,.--. / .-''"'-. `. .-,.--. * | |/ /________\ \ .' |_ / /________\ \| .-. |/ /________\ \| .-. | * | || | _ .' || || | | || || | | | _ * | |\ .-------------' .' |'--. .-'\ .-------------'| | | |\ .-------------'| | | |.' | * | | \ '-.____...---. . | / | | \ '-.____...---.| | '- \ '-.____...---.| | '-. | / * | | `. .'.'.'| |// | | `. .' | | `. .' | | .'.'| |// * __.' ' `''-...... -'.'.'.-' / | '.' `''-...... -' | | `''-...... -' | |.'.'.-' / * | ' .' \_.' | / |_| |_|.' \_.' * |____.' `'-' */ contract jesterers is ERC721A, Ownable, ReentrancyGuard { using Address for address; using Strings for uint; string public baseTokenURI = "ipfs://bafybeifmdgzgyk4kxvespngwccxiihsz2xe5vpi6ewefekhdiaueuf5nwm/"; uint256 public maxSupply = 1150; uint256 public MAX_MINTS_PER_TX = 10; uint256 public PUBLIC_SALE_PRICE = 0.0049 ether; uint256 public NUM_FREE_MINTS = 1150; uint256 public MAX_FREE_PER_WALLET = 1; uint256 public freeAlreadyMinted = 0; bool public isPublicSaleActive = false; constructor() ERC721A("jesterers", "JESTS") { } function mint(uint256 numberOfTokens) external payable { require(isPublicSaleActive, "Nope! Not yet, hold on"); require(totalSupply() + numberOfTokens < maxSupply + 1, "too late mfer"); 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
610100604052604360808181529062001d3060a039600a90620000239082620001d5565b5061047e600b819055600a600c556611688627664000600d55600e556001600f5560006010556011805460ff191690553480156200006057600080fd5b50604051806040016040528060098152602001686a657374657265727360b81b815250604051806040016040528060058152602001644a4553545360d81b8152508160029081620000b29190620001d5565b506003620000c18282620001d5565b50506000805550620000d333620000de565b6001600955620002a1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015b57607f821691505b6020821081036200017c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001d057600081815260208120601f850160051c81016020861015620001ab5750805b601f850160051c820191505b81811015620001cc57828155600101620001b7565b5050505b505050565b81516001600160401b03811115620001f157620001f162000130565b620002098162000202845462000146565b8462000182565b602080601f831160018114620002415760008415620002285750858301515b600019600386901b1c1916600185901b178555620001cc565b600085815260208120601f198616915b82811015620002725788860151825594840194600190910190840162000251565b5085821015620002915787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611a7f80620002b16000396000f3fe6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063d5abeb011161006f578063d5abeb0114610539578063dffe56b21461054f578063e985e9c514610565578063efdc778814610585578063f2fde38b146105a557600080fd5b8063b88d4fde146104db578063c6a91b42146104ee578063c87b56dd14610504578063d547cfb71461052457600080fd5b806398710d1e116100dc57806398710d1e146104725780639e9fcffc14610488578063a0712d68146104a8578063a22cb465146104bb57600080fd5b8063715018a6146104145780638da5cb5b1461042957806395d89b4114610447578063982d669e1461045c57600080fd5b80631e84c413116101905780633ccfd60b1161015f5780633ccfd60b1461038c57806342842e0e146103a157806355f804b3146103b45780636352211e146103d457806370a08231146103f457600080fd5b80631e84c4131461031f578063202f298a1461033957806323b872dd1461035957806328cad13d1461036c57600080fd5b8063095ea7b3116101cc578063095ea7b3146102b15780630a00ae83146102c657806318160ddd146102e65780631919fed7146102ff57600080fd5b806301ffc9a7146101fe57806306fdde031461023357806307e89ec014610255578063081812fc14610279575b600080fd5b34801561020a57600080fd5b5061021e6102193660046114ef565b6105c5565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610617565b60405161022a919061155c565b34801561026157600080fd5b5061026b600d5481565b60405190815260200161022a565b34801561028557600080fd5b5061029961029436600461156f565b6106a9565b6040516001600160a01b03909116815260200161022a565b6102c46102bf3660046115a4565b6106ed565b005b3480156102d257600080fd5b506102c46102e136600461156f565b61078d565b3480156102f257600080fd5b506001546000540361026b565b34801561030b57600080fd5b506102c461031a36600461156f565b61079a565b34801561032b57600080fd5b5060115461021e9060ff1681565b34801561034557600080fd5b506102c461035436600461156f565b6107a7565b6102c46103673660046115ce565b6107b4565b34801561037857600080fd5b506102c461038736600461161a565b61094d565b34801561039857600080fd5b506102c4610968565b6102c46103af3660046115ce565b6109dd565b3480156103c057600080fd5b506102c46103cf3660046116c1565b6109fd565b3480156103e057600080fd5b506102996103ef36600461156f565b610a15565b34801561040057600080fd5b5061026b61040f36600461170a565b610a20565b34801561042057600080fd5b506102c4610a6f565b34801561043557600080fd5b506008546001600160a01b0316610299565b34801561045357600080fd5b50610248610a83565b34801561046857600080fd5b5061026b600e5481565b34801561047e57600080fd5b5061026b600f5481565b34801561049457600080fd5b506102c46104a336600461156f565b610a92565b6102c46104b636600461156f565b610a9f565b3480156104c757600080fd5b506102c46104d6366004611725565b610c9f565b6102c46104e9366004611758565b610d0b565b3480156104fa57600080fd5b5061026b600c5481565b34801561051057600080fd5b5061024861051f36600461156f565b610d55565b34801561053057600080fd5b50610248610dd9565b34801561054557600080fd5b5061026b600b5481565b34801561055b57600080fd5b5061026b60105481565b34801561057157600080fd5b5061021e6105803660046117d4565b610e67565b34801561059157600080fd5b506102c46105a036600461156f565b610e95565b3480156105b157600080fd5b506102c46105c036600461170a565b610f4c565b60006301ffc9a760e01b6001600160e01b0319831614806105f657506380ac58cd60e01b6001600160e01b03198316145b806106115750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610626906117fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610652906117fe565b801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106b482610fc2565b6106d1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106f882610a15565b9050336001600160a01b03821614610731576107148133610e67565b610731576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610795610fe9565b600e55565b6107a2610fe9565b600d55565b6107af610fe9565b600f55565b60006107bf82611043565b9050836001600160a01b0316816001600160a01b0316146107f25760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761083f576108228633610e67565b61083f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661086657604051633a954ecd60e21b815260040160405180910390fd5b801561087157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610903576001840160008181526004602052604081205490036109015760005481146109015760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610955610fe9565b6011805460ff1916911515919091179055565b610970610fe9565b6002600954036109c75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026009556109d633476110aa565b6001600955565b6109f883838360405180602001604052806000815250610d0b565b505050565b610a05610fe9565b600a610a11828261187e565b5050565b600061061182611043565b60006001600160a01b038216610a49576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a77610fe9565b610a8160006111c3565b565b606060038054610626906117fe565b610a9a610fe9565b600c55565b60115460ff16610aea5760405162461bcd60e51b81526020600482015260166024820152752737b83290902737ba103cb2ba16103437b6321037b760511b60448201526064016109be565b600b54610af8906001611954565b81610b066001546000540390565b610b109190611954565b10610b4d5760405162461bcd60e51b815260206004820152600d60248201526c3a37b7903630ba329036b332b960991b60448201526064016109be565b600e5481601054610b5e9190611954565b1115610bc1573481600d54610b739190611967565b1115610bbc5760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b60448201526064016109be565b610c92565b600f5481610bce33610a20565b610bd89190611954565b1115610c58573481600d54610bed9190611967565b1115610c365760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b60448201526064016109be565b600c54811115610bbc5760405162461bcd60e51b81526004016109be9061197e565b600f54811115610c7a5760405162461bcd60e51b81526004016109be9061197e565b8060106000828254610c8c9190611954565b90915550505b610c9c3382611215565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d168484846107b4565b6001600160a01b0383163b15610d4f57610d328484848461122f565b610d4f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610d6082610fc2565b610d7d57604051630a14c4b560e41b815260040160405180910390fd5b6000610d8761131b565b90508051600003610da75760405180602001604052806000815250610dd2565b80610db18461132a565b604051602001610dc29291906119c0565b6040516020818303038152906040525b9392505050565b600a8054610de6906117fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e12906117fe565b8015610e5f5780601f10610e3457610100808354040283529160200191610e5f565b820191906000526020600020905b815481529060010190602001808311610e4257829003601f168201915b505050505081565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610e9d610fe9565b60008111610ee35760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016109be565b600b5481610ef46001546000540390565b610efe9190611954565b1115610c925760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c7920657863656564656400000000000000000060448201526064016109be565b610f54610fe9565b6001600160a01b038116610fb95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109be565b610c9c816111c3565b6000805482108015610611575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610a815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109be565b6000816000548110156110915760008181526004602052604081205490600160e01b8216900361108f575b80600003610dd257506000190160008181526004602052604090205461106e565b505b604051636f96cda160e11b815260040160405180910390fd5b804710156110fa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109be565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611147576040519150601f19603f3d011682016040523d82523d6000602084013e61114c565b606091505b50509050806109f85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109be565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a1182826040518060200160405280600081525061136e565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906112649033908990889088906004016119ef565b6020604051808303816000875af192505050801561129f575060408051601f3d908101601f1916820190925261129c91810190611a2c565b60015b6112fd573d8080156112cd576040519150601f19603f3d011682016040523d82523d6000602084013e6112d2565b606091505b5080516000036112f5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a8054610626906117fe565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806113445750819003601f19909101908152919050565b61137883836113db565b6001600160a01b0383163b156109f8576000548281035b6113a2600086838060010194508661122f565b6113bf576040516368d2bf6b60e11b815260040160405180910390fd5b81811061138f5781600054146113d457600080fd5b5050505050565b60008054908290036114005760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146114af57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611477565b50816000036114d057604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610c9c57600080fd5b60006020828403121561150157600080fd5b8135610dd2816114d9565b60005b8381101561152757818101518382015260200161150f565b50506000910152565b6000815180845261154881602086016020860161150c565b601f01601f19169290920160200192915050565b602081526000610dd26020830184611530565b60006020828403121561158157600080fd5b5035919050565b80356001600160a01b038116811461159f57600080fd5b919050565b600080604083850312156115b757600080fd5b6115c083611588565b946020939093013593505050565b6000806000606084860312156115e357600080fd5b6115ec84611588565b92506115fa60208501611588565b9150604084013590509250925092565b8035801515811461159f57600080fd5b60006020828403121561162c57600080fd5b610dd28261160a565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561166657611666611635565b604051601f8501601f19908116603f0116810190828211818310171561168e5761168e611635565b816040528093508581528686860111156116a757600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156116d357600080fd5b813567ffffffffffffffff8111156116ea57600080fd5b8201601f810184136116fb57600080fd5b6113138482356020840161164b565b60006020828403121561171c57600080fd5b610dd282611588565b6000806040838503121561173857600080fd5b61174183611588565b915061174f6020840161160a565b90509250929050565b6000806000806080858703121561176e57600080fd5b61177785611588565b935061178560208601611588565b925060408501359150606085013567ffffffffffffffff8111156117a857600080fd5b8501601f810187136117b957600080fd5b6117c88782356020840161164b565b91505092959194509250565b600080604083850312156117e757600080fd5b6117f083611588565b915061174f60208401611588565b600181811c9082168061181257607f821691505b60208210810361183257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109f857600081815260208120601f850160051c8101602086101561185f5750805b601f850160051c820191505b818110156109455782815560010161186b565b815167ffffffffffffffff81111561189857611898611635565b6118ac816118a684546117fe565b84611838565b602080601f8311600181146118e157600084156118c95750858301515b600019600386901b1c1916600185901b178555610945565b600085815260208120601f198616915b82811015611910578886015182559484019460019091019084016118f1565b508582101561192e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156106115761061161193e565b80820281158282048414176106115761061161193e565b60208082526022908201527f4d6178206d696e747320706572207472616e73616374696f6e20657863656564604082015261195960f21b606082015260800190565b600083516119d281846020880161150c565b8351908301906119e681836020880161150c565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a2290830184611530565b9695505050505050565b600060208284031215611a3e57600080fd5b8151610dd2816114d956fea264697066735822122046b6b38708784a037bc0efe2f99db703ec34be00d18b84bf5c03a82766780c0e64736f6c63430008110033697066733a2f2f62616679626569666d64677a67796b346b78766573706e6777636378696968737a327865357670693665776566656b6864696175657566356e776d2f
Deployed Bytecode
0x6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063d5abeb011161006f578063d5abeb0114610539578063dffe56b21461054f578063e985e9c514610565578063efdc778814610585578063f2fde38b146105a557600080fd5b8063b88d4fde146104db578063c6a91b42146104ee578063c87b56dd14610504578063d547cfb71461052457600080fd5b806398710d1e116100dc57806398710d1e146104725780639e9fcffc14610488578063a0712d68146104a8578063a22cb465146104bb57600080fd5b8063715018a6146104145780638da5cb5b1461042957806395d89b4114610447578063982d669e1461045c57600080fd5b80631e84c413116101905780633ccfd60b1161015f5780633ccfd60b1461038c57806342842e0e146103a157806355f804b3146103b45780636352211e146103d457806370a08231146103f457600080fd5b80631e84c4131461031f578063202f298a1461033957806323b872dd1461035957806328cad13d1461036c57600080fd5b8063095ea7b3116101cc578063095ea7b3146102b15780630a00ae83146102c657806318160ddd146102e65780631919fed7146102ff57600080fd5b806301ffc9a7146101fe57806306fdde031461023357806307e89ec014610255578063081812fc14610279575b600080fd5b34801561020a57600080fd5b5061021e6102193660046114ef565b6105c5565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610617565b60405161022a919061155c565b34801561026157600080fd5b5061026b600d5481565b60405190815260200161022a565b34801561028557600080fd5b5061029961029436600461156f565b6106a9565b6040516001600160a01b03909116815260200161022a565b6102c46102bf3660046115a4565b6106ed565b005b3480156102d257600080fd5b506102c46102e136600461156f565b61078d565b3480156102f257600080fd5b506001546000540361026b565b34801561030b57600080fd5b506102c461031a36600461156f565b61079a565b34801561032b57600080fd5b5060115461021e9060ff1681565b34801561034557600080fd5b506102c461035436600461156f565b6107a7565b6102c46103673660046115ce565b6107b4565b34801561037857600080fd5b506102c461038736600461161a565b61094d565b34801561039857600080fd5b506102c4610968565b6102c46103af3660046115ce565b6109dd565b3480156103c057600080fd5b506102c46103cf3660046116c1565b6109fd565b3480156103e057600080fd5b506102996103ef36600461156f565b610a15565b34801561040057600080fd5b5061026b61040f36600461170a565b610a20565b34801561042057600080fd5b506102c4610a6f565b34801561043557600080fd5b506008546001600160a01b0316610299565b34801561045357600080fd5b50610248610a83565b34801561046857600080fd5b5061026b600e5481565b34801561047e57600080fd5b5061026b600f5481565b34801561049457600080fd5b506102c46104a336600461156f565b610a92565b6102c46104b636600461156f565b610a9f565b3480156104c757600080fd5b506102c46104d6366004611725565b610c9f565b6102c46104e9366004611758565b610d0b565b3480156104fa57600080fd5b5061026b600c5481565b34801561051057600080fd5b5061024861051f36600461156f565b610d55565b34801561053057600080fd5b50610248610dd9565b34801561054557600080fd5b5061026b600b5481565b34801561055b57600080fd5b5061026b60105481565b34801561057157600080fd5b5061021e6105803660046117d4565b610e67565b34801561059157600080fd5b506102c46105a036600461156f565b610e95565b3480156105b157600080fd5b506102c46105c036600461170a565b610f4c565b60006301ffc9a760e01b6001600160e01b0319831614806105f657506380ac58cd60e01b6001600160e01b03198316145b806106115750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610626906117fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610652906117fe565b801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106b482610fc2565b6106d1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106f882610a15565b9050336001600160a01b03821614610731576107148133610e67565b610731576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610795610fe9565b600e55565b6107a2610fe9565b600d55565b6107af610fe9565b600f55565b60006107bf82611043565b9050836001600160a01b0316816001600160a01b0316146107f25760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761083f576108228633610e67565b61083f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661086657604051633a954ecd60e21b815260040160405180910390fd5b801561087157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610903576001840160008181526004602052604081205490036109015760005481146109015760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610955610fe9565b6011805460ff1916911515919091179055565b610970610fe9565b6002600954036109c75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026009556109d633476110aa565b6001600955565b6109f883838360405180602001604052806000815250610d0b565b505050565b610a05610fe9565b600a610a11828261187e565b5050565b600061061182611043565b60006001600160a01b038216610a49576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a77610fe9565b610a8160006111c3565b565b606060038054610626906117fe565b610a9a610fe9565b600c55565b60115460ff16610aea5760405162461bcd60e51b81526020600482015260166024820152752737b83290902737ba103cb2ba16103437b6321037b760511b60448201526064016109be565b600b54610af8906001611954565b81610b066001546000540390565b610b109190611954565b10610b4d5760405162461bcd60e51b815260206004820152600d60248201526c3a37b7903630ba329036b332b960991b60448201526064016109be565b600e5481601054610b5e9190611954565b1115610bc1573481600d54610b739190611967565b1115610bbc5760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b60448201526064016109be565b610c92565b600f5481610bce33610a20565b610bd89190611954565b1115610c58573481600d54610bed9190611967565b1115610c365760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b60448201526064016109be565b600c54811115610bbc5760405162461bcd60e51b81526004016109be9061197e565b600f54811115610c7a5760405162461bcd60e51b81526004016109be9061197e565b8060106000828254610c8c9190611954565b90915550505b610c9c3382611215565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d168484846107b4565b6001600160a01b0383163b15610d4f57610d328484848461122f565b610d4f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610d6082610fc2565b610d7d57604051630a14c4b560e41b815260040160405180910390fd5b6000610d8761131b565b90508051600003610da75760405180602001604052806000815250610dd2565b80610db18461132a565b604051602001610dc29291906119c0565b6040516020818303038152906040525b9392505050565b600a8054610de6906117fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e12906117fe565b8015610e5f5780601f10610e3457610100808354040283529160200191610e5f565b820191906000526020600020905b815481529060010190602001808311610e4257829003601f168201915b505050505081565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610e9d610fe9565b60008111610ee35760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064016109be565b600b5481610ef46001546000540390565b610efe9190611954565b1115610c925760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c7920657863656564656400000000000000000060448201526064016109be565b610f54610fe9565b6001600160a01b038116610fb95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109be565b610c9c816111c3565b6000805482108015610611575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610a815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109be565b6000816000548110156110915760008181526004602052604081205490600160e01b8216900361108f575b80600003610dd257506000190160008181526004602052604090205461106e565b505b604051636f96cda160e11b815260040160405180910390fd5b804710156110fa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109be565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611147576040519150601f19603f3d011682016040523d82523d6000602084013e61114c565b606091505b50509050806109f85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109be565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a1182826040518060200160405280600081525061136e565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906112649033908990889088906004016119ef565b6020604051808303816000875af192505050801561129f575060408051601f3d908101601f1916820190925261129c91810190611a2c565b60015b6112fd573d8080156112cd576040519150601f19603f3d011682016040523d82523d6000602084013e6112d2565b606091505b5080516000036112f5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a8054610626906117fe565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806113445750819003601f19909101908152919050565b61137883836113db565b6001600160a01b0383163b156109f8576000548281035b6113a2600086838060010194508661122f565b6113bf576040516368d2bf6b60e11b815260040160405180910390fd5b81811061138f5781600054146113d457600080fd5b5050505050565b60008054908290036114005760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146114af57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611477565b50816000036114d057604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610c9c57600080fd5b60006020828403121561150157600080fd5b8135610dd2816114d9565b60005b8381101561152757818101518382015260200161150f565b50506000910152565b6000815180845261154881602086016020860161150c565b601f01601f19169290920160200192915050565b602081526000610dd26020830184611530565b60006020828403121561158157600080fd5b5035919050565b80356001600160a01b038116811461159f57600080fd5b919050565b600080604083850312156115b757600080fd5b6115c083611588565b946020939093013593505050565b6000806000606084860312156115e357600080fd5b6115ec84611588565b92506115fa60208501611588565b9150604084013590509250925092565b8035801515811461159f57600080fd5b60006020828403121561162c57600080fd5b610dd28261160a565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561166657611666611635565b604051601f8501601f19908116603f0116810190828211818310171561168e5761168e611635565b816040528093508581528686860111156116a757600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156116d357600080fd5b813567ffffffffffffffff8111156116ea57600080fd5b8201601f810184136116fb57600080fd5b6113138482356020840161164b565b60006020828403121561171c57600080fd5b610dd282611588565b6000806040838503121561173857600080fd5b61174183611588565b915061174f6020840161160a565b90509250929050565b6000806000806080858703121561176e57600080fd5b61177785611588565b935061178560208601611588565b925060408501359150606085013567ffffffffffffffff8111156117a857600080fd5b8501601f810187136117b957600080fd5b6117c88782356020840161164b565b91505092959194509250565b600080604083850312156117e757600080fd5b6117f083611588565b915061174f60208401611588565b600181811c9082168061181257607f821691505b60208210810361183257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109f857600081815260208120601f850160051c8101602086101561185f5750805b601f850160051c820191505b818110156109455782815560010161186b565b815167ffffffffffffffff81111561189857611898611635565b6118ac816118a684546117fe565b84611838565b602080601f8311600181146118e157600084156118c95750858301515b600019600386901b1c1916600185901b178555610945565b600085815260208120601f198616915b82811015611910578886015182559484019460019091019084016118f1565b508582101561192e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156106115761061161193e565b80820281158282048414176106115761061161193e565b60208082526022908201527f4d6178206d696e747320706572207472616e73616374696f6e20657863656564604082015261195960f21b606082015260800190565b600083516119d281846020880161150c565b8351908301906119e681836020880161150c565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a2290830184611530565b9695505050505050565b600060208284031215611a3e57600080fd5b8151610dd2816114d956fea264697066735822122046b6b38708784a037bc0efe2f99db703ec34be00d18b84bf5c03a82766780c0e64736f6c63430008110033
Deployed Bytecode Sourcemap
80664:3005:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46034:639;;;;;;;;;;-1:-1:-1;46034:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;46034:639:0;;;;;;;;46936:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;80970:48::-;;;;;;;;;;;;;;;;;;;1494:25:1;;;1482:2;1467:18;80970:48:0;1348:177:1;53427:218:0;;;;;;;;;;-1:-1:-1;53427:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1879:32:1;;;1861:51;;1849:2;1834:18;53427:218:0;1715:203:1;52860:408:0;;;;;;:::i;:::-;;:::i;:::-;;83151:129;;;;;;;;;;-1:-1:-1;83151:129:0;;;;;:::i;:::-;;:::i;42687:323::-;;;;;;;;;;-1:-1:-1;42961:12:0;;42748:7;42945:13;:28;42687:323;;83286:115;;;;;;;;;;-1:-1:-1;83286:115:0;;;;;:::i;:::-;;:::i;81150:38::-;;;;;;;;;;-1:-1:-1;81150:38:0;;;;;;;;83540:126;;;;;;;;;;-1:-1:-1;83540:126:0;;;;;:::i;:::-;;:::i;57066:2825::-;;;;;;:::i;:::-;;:::i;82997:148::-;;;;;;;;;;-1:-1:-1;82997:148:0;;;;;:::i;:::-;;:::i;82708:142::-;;;;;;;;;;;;;:::i;59987:193::-;;;;;;:::i;:::-;;:::i;82304:108::-;;;;;;;;;;-1:-1:-1;82304:108:0;;;;;:::i;:::-;;:::i;48329:152::-;;;;;;;;;;-1:-1:-1;48329:152:0;;;;;:::i;:::-;;:::i;43871:233::-;;;;;;;;;;-1:-1:-1;43871:233:0;;;;;:::i;:::-;;:::i;9573:103::-;;;;;;;;;;;;;:::i;8925:87::-;;;;;;;;;;-1:-1:-1;8998:6:0;;-1:-1:-1;;;;;8998:6:0;8925:87;;47112:104;;;;;;;;;;;;;:::i;81023:37::-;;;;;;;;;;;;;;;;81065:39;;;;;;;;;;;;;;;;83407:127;;;;;;;;;;-1:-1:-1;83407:127:0;;;;;:::i;:::-;;:::i;81251:1047::-;;;;;;:::i;:::-;;:::i;53985:234::-;;;;;;;;;;-1:-1:-1;53985:234:0;;;;;:::i;:::-;;:::i;60778:407::-;;;;;;:::i;:::-;;:::i;80928:37::-;;;;;;;;;;;;;;;;47322:318;;;;;;;;;;-1:-1:-1;47322:318:0;;;;;:::i;:::-;;:::i;80786:100::-;;;;;;;;;;;;;:::i;80891:32::-;;;;;;;;;;;;;;;;81109:36;;;;;;;;;;;;;;;;54376:164;;;;;;;;;;-1:-1:-1;54376:164:0;;;;;:::i;:::-;;:::i;82418:284::-;;;;;;;;;;-1:-1:-1;82418:284:0;;;;;:::i;:::-;;:::i;9831:201::-;;;;;;;;;;-1:-1:-1;9831:201:0;;;;;:::i;:::-;;:::i;46034:639::-;46119:4;-1:-1:-1;;;;;;;;;46443:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;46520:25:0;;;46443:102;:179;;;-1:-1:-1;;;;;;;;;;46597:25:0;;;46443:179;46423:199;46034:639;-1:-1:-1;;46034:639:0:o;46936:100::-;46990:13;47023:5;47016:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46936:100;:::o;53427:218::-;53503:7;53528:16;53536:7;53528;:16::i;:::-;53523:64;;53553:34;;-1:-1:-1;;;53553:34:0;;;;;;;;;;;53523:64;-1:-1:-1;53607:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;53607:30:0;;53427:218::o;52860:408::-;52949:13;52965:16;52973:7;52965;:16::i;:::-;52949:32;-1:-1:-1;77193:10:0;-1:-1:-1;;;;;52998:28:0;;;52994:175;;53046:44;53063:5;77193:10;54376:164;:::i;53046:44::-;53041:128;;53118:35;;-1:-1:-1;;;53118:35:0;;;;;;;;;;;53041:128;53181:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;53181:35:0;-1:-1:-1;;;;;53181:35:0;;;;;;;;;53232:28;;53181:24;;53232:28;;;;;;;52938:330;52860:408;;:::o;83151:129::-;8811:13;:11;:13::i;:::-;83244:14:::1;:30:::0;83151:129::o;83286:115::-;8811:13;:11;:13::i;:::-;83369:17:::1;:26:::0;83286:115::o;83540:126::-;8811:13;:11;:13::i;:::-;83632:19:::1;:28:::0;83540:126::o;57066:2825::-;57208:27;57238;57257:7;57238:18;:27::i;:::-;57208:57;;57323:4;-1:-1:-1;;;;;57282:45:0;57298:19;-1:-1:-1;;;;;57282:45:0;;57278:86;;57336:28;;-1:-1:-1;;;57336:28:0;;;;;;;;;;;57278:86;57378:27;56174:24;;;:15;:24;;;;;56402:26;;77193:10;55799:30;;;-1:-1:-1;;;;;55492:28:0;;55777:20;;;55774:56;57564:180;;57657:43;57674:4;77193:10;54376:164;:::i;57657:43::-;57652:92;;57709:35;;-1:-1:-1;;;57709:35:0;;;;;;;;;;;57652:92;-1:-1:-1;;;;;57761:16:0;;57757:52;;57786:23;;-1:-1:-1;;;57786:23:0;;;;;;;;;;;57757:52;57958:15;57955:160;;;58098:1;58077:19;58070:30;57955:160;-1:-1:-1;;;;;58495:24:0;;;;;;;:18;:24;;;;;;58493:26;;-1:-1:-1;;58493:26:0;;;58564:22;;;;;;;;;58562:24;;-1:-1:-1;58562:24:0;;;51718:11;51693:23;51689:41;51676:63;-1:-1:-1;;;51676:63:0;58857:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;59152:47:0;;:52;;59148:627;;59257:1;59247:11;;59225:19;59380:30;;;:17;:30;;;;;;:35;;59376:384;;59518:13;;59503:11;:28;59499:242;;59665:30;;;;:17;:30;;;;;:52;;;59499:242;59206:569;59148:627;59822:7;59818:2;-1:-1:-1;;;;;59803:27:0;59812:4;-1:-1:-1;;;;;59803:27:0;;;;;;;;;;;59841:42;57197:2694;;;57066:2825;;;:::o;82997:148::-;8811:13;:11;:13::i;:::-;83099:18:::1;:40:::0;;-1:-1:-1;;83099:40:0::1;::::0;::::1;;::::0;;;::::1;::::0;;82997:148::o;82708:142::-;8811:13;:11;:13::i;:::-;3353:1:::1;3951:7;;:19:::0;3943:63:::1;;;::::0;-1:-1:-1;;;3943:63:0;;6242:2:1;3943:63:0::1;::::0;::::1;6224:21:1::0;6281:2;6261:18;;;6254:30;6320:33;6300:18;;;6293:61;6371:18;;3943:63:0::1;;;;;;;;;3353:1;4084:7;:18:::0;82783:61:::2;82809:10;82822:21;82783:17;:61::i;:::-;3309:1:::1;4263:7;:22:::0;82708:142::o;59987:193::-;60133:39;60150:4;60156:2;60160:7;60133:39;;;;;;;;;;;;:16;:39::i;:::-;59987:193;;;:::o;82304:108::-;8811:13;:11;:13::i;:::-;82384:12:::1;:22;82399:7:::0;82384:12;:22:::1;:::i;:::-;;82304:108:::0;:::o;48329:152::-;48401:7;48444:27;48463:7;48444:18;:27::i;43871:233::-;43943:7;-1:-1:-1;;;;;43967:19:0;;43963:60;;43995:28;;-1:-1:-1;;;43995:28:0;;;;;;;;;;;43963:60;-1:-1:-1;;;;;;44041:25:0;;;;;:18;:25;;;;;;38030:13;44041:55;;43871:233::o;9573:103::-;8811:13;:11;:13::i;:::-;9638:30:::1;9665:1;9638:18;:30::i;:::-;9573:103::o:0;47112:104::-;47168:13;47201:7;47194:14;;;;;:::i;83407:127::-;8811:13;:11;:13::i;:::-;83503:16:::1;:25:::0;83407:127::o;81251:1047::-;81338:18;;;;81330:53;;;;-1:-1:-1;;;81330:53:0;;8806:2:1;81330:53:0;;;8788:21:1;8845:2;8825:18;;;8818:30;-1:-1:-1;;;8864:18:1;;;8857:52;8926:18;;81330:53:0;8604:346:1;81330:53:0;81431:9;;:13;;81443:1;81431:13;:::i;:::-;81414:14;81398:13;42961:12;;42748:7;42945:13;:28;;42687:323;81398:13;:30;;;;:::i;:::-;:46;81390:72;;;;-1:-1:-1;;;81390:72:0;;9419:2:1;81390:72:0;;;9401:21:1;9458:2;9438:18;;;9431:30;-1:-1:-1;;;9477:18:1;;;9470:43;9530:18;;81390:72:0;9217:337:1;81390:72:0;81511:14;;81494;81474:17;;:34;;;;:::i;:::-;:51;81471:778;;;81599:9;81580:14;81560:17;;:34;;;;:::i;:::-;81559:49;;81537:123;;;;-1:-1:-1;;;81537:123:0;;9934:2:1;81537:123:0;;;9916:21:1;9973:2;9953:18;;;9946:30;-1:-1:-1;;;9992:18:1;;;9985:54;10056:18;;81537:123:0;9732:348:1;81537:123:0;81471:778;;;81730:19;;81713:14;81689:21;81699:10;81689:9;:21::i;:::-;:38;;;;:::i;:::-;:60;81685:557;;;81824:9;81805:14;81785:17;;:34;;;;:::i;:::-;81784:49;;81762:123;;;;-1:-1:-1;;;81762:123:0;;9934:2:1;81762:123:0;;;9916:21:1;9973:2;9953:18;;;9946:30;-1:-1:-1;;;9992:18:1;;;9985:54;10056:18;;81762:123:0;9732:348:1;81762:123:0;81936:16;;81918:14;:34;;81896:118;;;;-1:-1:-1;;;81896:118:0;;;;;;;:::i;81685:557::-;82091:19;;82073:14;:37;;82047:133;;;;-1:-1:-1;;;82047:133:0;;;;;;;:::i;:::-;82216:14;82195:17;;:35;;;;;;;:::i;:::-;;;;-1:-1:-1;;81685:557:0;82255:37;82265:10;82277:14;82255:9;:37::i;:::-;81251:1047;:::o;53985:234::-;77193:10;54080:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;54080:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;54080:60:0;;;;;;;;;;54156:55;;540:41:1;;;54080:49:0;;77193:10;54156:55;;513:18:1;54156:55:0;;;;;;;53985:234;;:::o;60778:407::-;60953:31;60966:4;60972:2;60976:7;60953:12;:31::i;:::-;-1:-1:-1;;;;;60999:14:0;;;:19;60995:183;;61038:56;61069:4;61075:2;61079:7;61088:5;61038:30;:56::i;:::-;61033:145;;61122:40;;-1:-1:-1;;;61122:40:0;;;;;;;;;;;61033:145;60778:407;;;;:::o;47322:318::-;47395:13;47426:16;47434:7;47426;:16::i;:::-;47421:59;;47451:29;;-1:-1:-1;;;47451:29:0;;;;;;;;;;;47421:59;47493:21;47517:10;:8;:10::i;:::-;47493:34;;47551:7;47545:21;47570:1;47545:26;:87;;;;;;;;;;;;;;;;;47598:7;47607:18;47617:7;47607:9;:18::i;:::-;47581:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;47545:87;47538:94;47322:318;-1:-1:-1;;;47322:318:0:o;80786:100::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;54376:164::-;-1:-1:-1;;;;;54497:25:0;;;54473:4;54497:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;54376:164::o;82418:284::-;8811:13;:11;:13::i;:::-;82519:1:::1;82508:8;:12;82492:65;;;::::0;-1:-1:-1;;;82492:65:0;;11191:2:1;82492:65:0::1;::::0;::::1;11173:21:1::0;11230:2;11210:18;;;11203:30;-1:-1:-1;;;11249:18:1;;;11242:49;11308:18;;82492:65:0::1;10989:343:1::0;82492:65:0::1;82608:9;;82596:8;82580:13;42961:12:::0;;42748:7;42945:13;:28;;42687:323;82580:13:::1;:24;;;;:::i;:::-;:37;;82564:94;;;::::0;-1:-1:-1;;;82564:94:0;;11539:2:1;82564:94:0::1;::::0;::::1;11521:21:1::0;11578:2;11558:18;;;11551:30;11617:25;11597:18;;;11590:53;11660:18;;82564:94:0::1;11337:347:1::0;9831:201:0;8811:13;:11;:13::i;:::-;-1:-1:-1;;;;;9920:22:0;::::1;9912:73;;;::::0;-1:-1:-1;;;9912:73:0;;11891:2:1;9912:73:0::1;::::0;::::1;11873:21:1::0;11930:2;11910:18;;;11903:30;11969:34;11949:18;;;11942:62;-1:-1:-1;;;12020:18:1;;;12013:36;12066:19;;9912:73:0::1;11689:402:1::0;9912:73:0::1;9996:28;10015:8;9996:18;:28::i;54798:282::-:0;54863:4;54953:13;;54943:7;:23;54900:153;;;;-1:-1:-1;;55004:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;55004:44:0;:49;;54798:282::o;9090:132::-;8998:6;;-1:-1:-1;;;;;8998:6:0;77193:10;9154:23;9146:68;;;;-1:-1:-1;;;9146:68:0;;12298:2:1;9146:68:0;;;12280:21:1;;;12317:18;;;12310:30;12376:34;12356:18;;;12349:62;12428:18;;9146:68:0;12096:356:1;49484:1275:0;49551:7;49586;49688:13;;49681:4;:20;49677:1015;;;49726:14;49743:23;;;:17;:23;;;;;;;-1:-1:-1;;;49832:24:0;;:29;;49828:845;;50497:113;50504:6;50514:1;50504:11;50497:113;;-1:-1:-1;;;50575:6:0;50557:25;;;;:17;:25;;;;;;50497:113;;49828:845;49703:989;49677:1015;50720:31;;-1:-1:-1;;;50720:31:0;;;;;;;;;;;12884:317;12999:6;12974:21;:31;;12966:73;;;;-1:-1:-1;;;12966:73:0;;12659:2:1;12966:73:0;;;12641:21:1;12698:2;12678:18;;;12671:30;12737:31;12717:18;;;12710:59;12786:18;;12966:73:0;12457:353:1;12966:73:0;13053:12;13071:9;-1:-1:-1;;;;;13071:14:0;13093:6;13071:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13052:52;;;13123:7;13115:78;;;;-1:-1:-1;;;13115:78:0;;13227:2:1;13115:78:0;;;13209:21:1;13266:2;13246:18;;;13239:30;13305:34;13285:18;;;13278:62;13376:28;13356:18;;;13349:56;13422:19;;13115:78:0;13025:422:1;10192:191:0;10285:6;;;-1:-1:-1;;;;;10302:17:0;;;-1:-1:-1;;;;;;10302:17:0;;;;;;;10335:40;;10285:6;;;10302:17;10285:6;;10335:40;;10266:16;;10335:40;10255:128;10192:191;:::o;70938:112::-;71015:27;71025:2;71029:8;71015:27;;;;;;;;;;;;:9;:27::i;63269:716::-;63453:88;;-1:-1:-1;;;63453:88:0;;63432:4;;-1:-1:-1;;;;;63453:45:0;;;;;:88;;77193:10;;63520:4;;63526:7;;63535:5;;63453:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63453:88:0;;;;;;;;-1:-1:-1;;63453:88:0;;;;;;;;;;;;:::i;:::-;;;63449:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63736:6;:13;63753:1;63736:18;63732:235;;63782:40;;-1:-1:-1;;;63782:40:0;;;;;;;;;;;63732:235;63925:6;63919:13;63910:6;63906:2;63902:15;63895:38;63449:529;-1:-1:-1;;;;;;63612:64:0;-1:-1:-1;;;63612:64:0;;-1:-1:-1;63449:529:0;63269:716;;;;;;:::o;82856:135::-;82941:13;82973:12;82966:19;;;;;:::i;77313:1745::-;77378:17;77812:4;77805;77799:11;77795:22;77904:1;77898:4;77891:15;77979:4;77976:1;77972:12;77965:19;;;78061:1;78056:3;78049:14;78165:3;78404:5;78386:428;78452:1;78447:3;78443:11;78436:18;;78623:2;78617:4;78613:13;78609:2;78605:22;78600:3;78592:36;78717:2;78707:13;;78774:25;78386:428;78774:25;-1:-1:-1;78844:13:0;;;-1:-1:-1;;78959:14:0;;;79021:19;;;78959:14;77313:1745;-1:-1:-1;77313:1745:0:o;70165:689::-;70296:19;70302:2;70306:8;70296:5;:19::i;:::-;-1:-1:-1;;;;;70357:14:0;;;:19;70353:483;;70397:11;70411:13;70459:14;;;70492:233;70523:62;70562:1;70566:2;70570:7;;;;;;70579:5;70523:30;:62::i;:::-;70518:167;;70621:40;;-1:-1:-1;;;70621:40:0;;;;;;;;;;;70518:167;70720:3;70712:5;:11;70492:233;;70807:3;70790:13;;:20;70786:34;;70812:8;;;70786:34;70378:458;;70165:689;;;:::o;64447:2966::-;64520:20;64543:13;;;64571;;;64567:44;;64593:18;;-1:-1:-1;;;64593:18:0;;;;;;;;;;;64567:44;-1:-1:-1;;;;;65099:22:0;;;;;;:18;:22;;;;38168:2;65099:22;;;:71;;65137:32;65125:45;;65099:71;;;65413:31;;;:17;:31;;;;;-1:-1:-1;52149:15:0;;52123:24;52119:46;51718:11;51693:23;51689:41;51686:52;51676:63;;65413:173;;65648:23;;;;65413:31;;65099:22;;66413:25;65099:22;;66266:335;66927:1;66913:12;66909:20;66867:346;66968:3;66959:7;66956:16;66867:346;;67186:7;67176:8;67173:1;67146:25;67143:1;67140;67135:59;67021:1;67008:15;66867:346;;;66871:77;67246:8;67258:1;67246:13;67242:45;;67268:19;;-1:-1:-1;;;67268:19:0;;;;;;;;;;;67242:45;67304:13;:19;-1:-1:-1;59987:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1530:180::-;1589:6;1642:2;1630:9;1621:7;1617:23;1613:32;1610:52;;;1658:1;1655;1648:12;1610:52;-1:-1:-1;1681:23:1;;1530:180;-1:-1:-1;1530:180:1:o;1923:173::-;1991:20;;-1:-1:-1;;;;;2040:31:1;;2030:42;;2020:70;;2086:1;2083;2076:12;2020:70;1923:173;;;:::o;2101:254::-;2169:6;2177;2230:2;2218:9;2209:7;2205:23;2201:32;2198:52;;;2246:1;2243;2236:12;2198:52;2269:29;2288:9;2269:29;:::i;:::-;2259:39;2345:2;2330:18;;;;2317:32;;-1:-1:-1;;;2101:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:160::-;2758:20;;2814:13;;2807:21;2797:32;;2787:60;;2843:1;2840;2833:12;2858:180;2914:6;2967:2;2955:9;2946:7;2942:23;2938:32;2935:52;;;2983:1;2980;2973:12;2935:52;3006:26;3022:9;3006:26;:::i;3043:127::-;3104:10;3099:3;3095:20;3092:1;3085:31;3135:4;3132:1;3125:15;3159:4;3156:1;3149:15;3175:632;3240:5;3270:18;3311:2;3303:6;3300:14;3297:40;;;3317:18;;:::i;:::-;3392:2;3386:9;3360:2;3446:15;;-1:-1:-1;;3442:24:1;;;3468:2;3438:33;3434:42;3422:55;;;3492:18;;;3512:22;;;3489:46;3486:72;;;3538:18;;:::i;:::-;3578:10;3574:2;3567:22;3607:6;3598:15;;3637:6;3629;3622:22;3677:3;3668:6;3663:3;3659:16;3656:25;3653:45;;;3694:1;3691;3684:12;3653:45;3744:6;3739:3;3732:4;3724:6;3720:17;3707:44;3799:1;3792:4;3783:6;3775;3771:19;3767:30;3760:41;;;;3175:632;;;;;:::o;3812:451::-;3881:6;3934:2;3922:9;3913:7;3909:23;3905:32;3902:52;;;3950:1;3947;3940:12;3902:52;3990:9;3977:23;4023:18;4015:6;4012:30;4009:50;;;4055:1;4052;4045:12;4009:50;4078:22;;4131:4;4123:13;;4119:27;-1:-1:-1;4109:55:1;;4160:1;4157;4150:12;4109:55;4183:74;4249:7;4244:2;4231:16;4226:2;4222;4218:11;4183:74;:::i;4268:186::-;4327:6;4380:2;4368:9;4359:7;4355:23;4351:32;4348:52;;;4396:1;4393;4386:12;4348:52;4419:29;4438:9;4419:29;:::i;4459:254::-;4524:6;4532;4585:2;4573:9;4564:7;4560:23;4556:32;4553:52;;;4601:1;4598;4591:12;4553:52;4624:29;4643:9;4624:29;:::i;:::-;4614:39;;4672:35;4703:2;4692:9;4688:18;4672:35;:::i;:::-;4662:45;;4459:254;;;;;:::o;4718:667::-;4813:6;4821;4829;4837;4890:3;4878:9;4869:7;4865:23;4861:33;4858:53;;;4907:1;4904;4897:12;4858:53;4930:29;4949:9;4930:29;:::i;:::-;4920:39;;4978:38;5012:2;5001:9;4997:18;4978:38;:::i;:::-;4968:48;;5063:2;5052:9;5048:18;5035:32;5025:42;;5118:2;5107:9;5103:18;5090:32;5145:18;5137:6;5134:30;5131:50;;;5177:1;5174;5167:12;5131:50;5200:22;;5253:4;5245:13;;5241:27;-1:-1:-1;5231:55:1;;5282:1;5279;5272:12;5231:55;5305:74;5371:7;5366:2;5353:16;5348:2;5344;5340:11;5305:74;:::i;:::-;5295:84;;;4718:667;;;;;;;:::o;5390:260::-;5458:6;5466;5519:2;5507:9;5498:7;5494:23;5490:32;5487:52;;;5535:1;5532;5525:12;5487:52;5558:29;5577:9;5558:29;:::i;:::-;5548:39;;5606:38;5640:2;5629:9;5625:18;5606:38;:::i;5655:380::-;5734:1;5730:12;;;;5777;;;5798:61;;5852:4;5844:6;5840:17;5830:27;;5798:61;5905:2;5897:6;5894:14;5874:18;5871:38;5868:161;;5951:10;5946:3;5942:20;5939:1;5932:31;5986:4;5983:1;5976:15;6014:4;6011:1;6004:15;5868:161;;5655:380;;;:::o;6526:545::-;6628:2;6623:3;6620:11;6617:448;;;6664:1;6689:5;6685:2;6678:17;6734:4;6730:2;6720:19;6804:2;6792:10;6788:19;6785:1;6781:27;6775:4;6771:38;6840:4;6828:10;6825:20;6822:47;;;-1:-1:-1;6863:4:1;6822:47;6918:2;6913:3;6909:12;6906:1;6902:20;6896:4;6892:31;6882:41;;6973:82;6991:2;6984:5;6981:13;6973:82;;;7036:17;;;7017:1;7006:13;6973:82;;7247:1352;7373:3;7367:10;7400:18;7392:6;7389:30;7386:56;;;7422:18;;:::i;:::-;7451:97;7541:6;7501:38;7533:4;7527:11;7501:38;:::i;:::-;7495:4;7451:97;:::i;:::-;7603:4;;7667:2;7656:14;;7684:1;7679:663;;;;8386:1;8403:6;8400:89;;;-1:-1:-1;8455:19:1;;;8449:26;8400:89;-1:-1:-1;;7204:1:1;7200:11;;;7196:24;7192:29;7182:40;7228:1;7224:11;;;7179:57;8502:81;;7649:944;;7679:663;6473:1;6466:14;;;6510:4;6497:18;;-1:-1:-1;;7715:20:1;;;7833:236;7847:7;7844:1;7841:14;7833:236;;;7936:19;;;7930:26;7915:42;;8028:27;;;;7996:1;7984:14;;;;7863:19;;7833:236;;;7837:3;8097:6;8088:7;8085:19;8082:201;;;8158:19;;;8152:26;-1:-1:-1;;8241:1:1;8237:14;;;8253:3;8233:24;8229:37;8225:42;8210:58;8195:74;;8082:201;-1:-1:-1;;;;;8329:1:1;8313:14;;;8309:22;8296:36;;-1:-1:-1;7247:1352:1:o;8955:127::-;9016:10;9011:3;9007:20;9004:1;8997:31;9047:4;9044:1;9037:15;9071:4;9068:1;9061:15;9087:125;9152:9;;;9173:10;;;9170:36;;;9186:18;;:::i;9559:168::-;9632:9;;;9663;;9680:15;;;9674:22;;9660:37;9650:71;;9701:18;;:::i;10085:398::-;10287:2;10269:21;;;10326:2;10306:18;;;10299:30;10365:34;10360:2;10345:18;;10338:62;-1:-1:-1;;;10431:2:1;10416:18;;10409:32;10473:3;10458:19;;10085:398::o;10488:496::-;10667:3;10705:6;10699:13;10721:66;10780:6;10775:3;10768:4;10760:6;10756:17;10721:66;:::i;:::-;10850:13;;10809:16;;;;10872:70;10850:13;10809:16;10919:4;10907:17;;10872:70;:::i;:::-;10958:20;;10488:496;-1:-1:-1;;;;10488:496:1:o;13452:489::-;-1:-1:-1;;;;;13721:15:1;;;13703:34;;13773:15;;13768:2;13753:18;;13746:43;13820:2;13805:18;;13798:34;;;13868:3;13863:2;13848:18;;13841:31;;;13646:4;;13889:46;;13915:19;;13907:6;13889:46;:::i;:::-;13881:54;13452:489;-1:-1:-1;;;;;;13452:489:1:o;13946:249::-;14015:6;14068:2;14056:9;14047:7;14043:23;14039:32;14036:52;;;14084:1;14081;14074:12;14036:52;14116:9;14110:16;14135:30;14159:5;14135:30;:::i
Swarm Source
ipfs://46b6b38708784a037bc0efe2f99db703ec34be00d18b84bf5c03a82766780c0e
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.