Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
239
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Lines
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "./DefaultOperatorFilterer.sol"; /* * @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); } } } } abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // 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); } interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } 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); } } 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); } } /** * @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 { // Reference type for token approval. 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 1; } /** * @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 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 { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _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]`. 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 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 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 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. 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`. ) 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 ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } contract Lines is Ownable, ERC721A, DefaultOperatorFilterer, ERC721AQueryable { using Strings for uint; enum Step { Before, PublicSale, SoldOut, Reveal } string public baseURI; Step public sellingStep; uint private constant MAX_PUBLIC = 500; mapping(address => uint) public mintedAmountNFTsperWalletPublicSale; uint public maxMintAmountPerPublic = 1; uint private teamLength; constructor(string memory _baseURI) ERC721A("Lines", "DL"){ baseURI = _baseURI; } function mintForOpensea() external onlyOwner{ if(totalSupply() != 0) revert("Only 1 mint for deployer"); _mint(msg.sender, 1); } function publicSaleMint(uint _quantity) external { if(sellingStep != Step.PublicSale) revert("Public Mint not live."); if(totalSupply() + _quantity > (MAX_PUBLIC)) revert("Max supply exceeded for public exceeded"); if(mintedAmountNFTsperWalletPublicSale[msg.sender] + _quantity > maxMintAmountPerPublic) revert("Max exceeded"); _mint(msg.sender, _quantity); mintedAmountNFTsperWalletPublicSale[msg.sender] += _quantity; } function transferFrom(address from, address to, uint256 tokenId) public override(ERC721A, IERC721A) onlyAllowedOperator { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721A, IERC721A) onlyAllowedOperator { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override(ERC721A, IERC721A) onlyAllowedOperator { super.safeTransferFrom(from, to, tokenId, data); } function currentState() external view returns (Step, uint) { return (sellingStep, maxMintAmountPerPublic); } function setBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function setStep(uint _step) external onlyOwner { sellingStep = Step(_step); } function setMaxMintPerPublic(uint amount) external onlyOwner{ maxMintAmountPerPublic = amount; } function getNumberMinted(address account) external view returns (uint256) { return _numberMinted(account); } function getNumberPublicMinted(address account) external view returns (uint256) { return mintedAmountNFTsperWalletPublicSale[account]; } function tokenURI(uint _tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); return string(abi.encodePacked(baseURI, _toString(_tokenId))); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ```solidity * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {EnumerableSet} from "./EnumerableSet.sol"; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator() virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { if (!operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentState","outputs":[{"internalType":"enum Lines.Step","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"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":"account","type":"address"}],"name":"getNumberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getNumberPublicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxMintAmountPerPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintForOpensea","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAmountNFTsperWalletPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellingStep","outputs":[{"internalType":"enum Lines.Step","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxMintPerPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"}],"name":"setStep","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001600c553480156200001657600080fd5b50604051620024663803806200246683398101604081905262000039916200028f565b604051806040016040528060058152602001644c696e657360d81b81525060405180604001604052806002815260200161111360f21b815250733cc6cdda760b79bafa08df41ecfa224f810dceb66001620000a36200009d6200022560201b60201c565b62000229565b6daaeb6d7670e522a718067333cd4e3b15620001e85780156200013657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200011757600080fd5b505af11580156200012c573d6000803e3d6000fd5b50505050620001e8565b6001600160a01b03821615620001875760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000fc565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001ce57600080fd5b505af1158015620001e3573d6000803e3d6000fd5b505050505b5060039050620001f98382620003f3565b506004620002088282620003f3565b5050600180555060096200021d8282620003f3565b5050620004bf565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620002a357600080fd5b82516001600160401b0380821115620002bb57600080fd5b818501915085601f830112620002d057600080fd5b815181811115620002e557620002e562000279565b604051601f8201601f19908116603f0116810190838211818310171562000310576200031062000279565b8160405282815288868487010111156200032957600080fd5b600093505b828410156200034d57848401860151818501870152928501926200032e565b600086848301015280965050505050505092915050565b600181811c908216806200037957607f821691505b6020821081036200039a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003ee57600081815260208120601f850160051c81016020861015620003c95750805b601f850160051c820191505b81811015620003ea57828155600101620003d5565b5050505b505050565b81516001600160401b038111156200040f576200040f62000279565b620004278162000420845462000364565b84620003a0565b602080601f8311600181146200045f5760008415620004465750858301515b600019600386901b1c1916600185901b178555620003ea565b600085815260208120601f198616915b8281101562000490578886015182559484019460019091019084016200046f565b5085821015620004af5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611f9780620004cf6000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80638462151c1161011a578063b88d4fde116100ad578063c893575a1161007c578063c893575a14610475578063cbccefb21461047d578063e985e9c514610497578063f2fde38b146104d3578063f8dcbddb146104e657600080fd5b8063b88d4fde1461040f578063b9bbe00a14610422578063c23dc68f14610442578063c87b56dd1461046257600080fd5b806399a2557a116100e957806399a2557a146103c3578063a0bcfc7f146103d6578063a22cb465146103e9578063b3ab66b0146103fc57600080fd5b80638462151c146103775780638a59a7fd146103975780638da5cb5b146103aa57806395d89b41146103bb57600080fd5b806349e949e7116101925780636c0360eb116101615780636c0360eb1461032b57806370a0823114610333578063715018a6146103465780637f16053a1461034e57600080fd5b806349e949e7146102dc5780634ef22ea9146102ef5780635bbb2177146102f85780636352211e1461031857600080fd5b80630c3f6acf116101ce5780630c3f6acf1461027d57806318160ddd1461029c57806323b872dd146102b657806342842e0e146102c957600080fd5b806301ffc9a71461020057806306fdde0314610228578063081812fc1461023d578063095ea7b314610268575b600080fd5b61021361020e36600461181f565b6104f9565b60405190151581526020015b60405180910390f35b61023061054b565b60405161021f919061188c565b61025061024b36600461189f565b6105dd565b6040516001600160a01b03909116815260200161021f565b61027b6102763660046118d4565b610621565b005b61028e600a54600c5460ff90911691565b60405161021f929190611936565b60025460015403600019015b60405190815260200161021f565b61027b6102c4366004611951565b6106c1565b61027b6102d7366004611951565b61077f565b61027b6102ea36600461189f565b610833565b6102a8600c5481565b61030b61030636600461198d565b610840565b60405161021f9190611a3f565b61025061032636600461189f565b61090c565b610230610917565b6102a8610341366004611a81565b6109a5565b61027b6109f4565b6102a861035c366004611a81565b6001600160a01b03166000908152600b602052604090205490565b61038a610385366004611a81565b610a08565b60405161021f9190611a9c565b6102a86103a5366004611a81565b610b11565b6000546001600160a01b0316610250565b610230610b3c565b61038a6103d1366004611ad4565b610b4b565b61027b6103e4366004611b93565b610cd3565b61027b6103f7366004611bea565b610ceb565b61027b61040a36600461189f565b610d80565b61027b61041d366004611c21565b610ee3565b6102a8610430366004611a81565b600b6020526000908152604090205481565b61045561045036600461189f565b610f9e565b60405161021f9190611c9d565b61023061047036600461189f565b611026565b61027b6110af565b600a5461048a9060ff1681565b60405161021f9190611cab565b6102136104a5366004611cb9565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61027b6104e1366004611a81565b61111a565b61027b6104f436600461189f565b611193565b60006301ffc9a760e01b6001600160e01b03198316148061052a57506380ac58cd60e01b6001600160e01b03198316145b806105455750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461055a90611cec565b80601f016020809104026020016040519081016040528092919081815260200182805461058690611cec565b80156105d35780601f106105a8576101008083540402835291602001916105d3565b820191906000526020600020905b8154815290600101906020018083116105b657829003601f168201915b5050505050905090565b60006105e8826111d1565b610605576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061062c8261090c565b9050336001600160a01b038216146106655761064881336104a5565b610665576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6daaeb6d7670e522a718067333cd4e3b1561076f57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074b9190611d26565b61076f57604051633b79c77360e21b81523360048201526024015b60405180910390fd5b61077a838383611206565b505050565b6daaeb6d7670e522a718067333cd4e3b1561082857604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af11580156107e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108099190611d26565b61082857604051633b79c77360e21b8152336004820152602401610766565b61077a83838361139f565b61083b6113ba565b600c55565b60608160008167ffffffffffffffff81111561085e5761085e611b07565b6040519080825280602002602001820160405280156108b057816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161087c5790505b50905060005b828114610903576108de8686838181106108d2576108d2611d43565b90506020020135610f9e565b8282815181106108f0576108f0611d43565b60209081029190910101526001016108b6565b50949350505050565b600061054582611414565b6009805461092490611cec565b80601f016020809104026020016040519081016040528092919081815260200182805461095090611cec565b801561099d5780601f106109725761010080835404028352916020019161099d565b820191906000526020600020905b81548152906001019060200180831161098057829003601f168201915b505050505081565b60006001600160a01b0382166109ce576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6109fc6113ba565b610a066000611483565b565b60606000806000610a18856109a5565b905060008167ffffffffffffffff811115610a3557610a35611b07565b604051908082528060200260200182016040528015610a5e578160200160208202803683370190505b509050610a8b60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610b0557610a9e816114d3565b91508160400151610afd5781516001600160a01b031615610abe57815194505b876001600160a01b0316856001600160a01b031603610afd5780838780600101985081518110610af057610af0611d43565b6020026020010181815250505b600101610a8e565b50909695505050505050565b6001600160a01b0381166000908152600660205260408082205467ffffffffffffffff911c16610545565b60606004805461055a90611cec565b6060818310610b6d57604051631960ccad60e11b815260040160405180910390fd5b600080610b7960015490565b90506001851015610b8957600194505b80841115610b95578093505b6000610ba0876109a5565b905084861015610bbf5785850381811015610bb9578091505b50610bc3565b5060005b60008167ffffffffffffffff811115610bde57610bde611b07565b604051908082528060200260200182016040528015610c07578160200160208202803683370190505b50905081600003610c1d579350610ccc92505050565b6000610c2888610f9e565b905060008160400151610c39575080515b885b888114158015610c4b5750848714155b15610cc057610c59816114d3565b92508260400151610cb85782516001600160a01b031615610c7957825191505b8a6001600160a01b0316826001600160a01b031603610cb85780848880600101995081518110610cab57610cab611d43565b6020026020010181815250505b600101610c3b565b50505092835250909150505b9392505050565b610cdb6113ba565b6009610ce78282611d9f565b5050565b336001600160a01b03831603610d145760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600a5460ff166003811115610d9957610d996118fe565b14610dde5760405162461bcd60e51b8152602060048201526015602482015274283ab13634b19026b4b73a103737ba103634bb329760591b6044820152606401610766565b6002546001546101f49183910360001901610df99190611e5f565b1115610e575760405162461bcd60e51b815260206004820152602760248201527f4d617820737570706c7920657863656564656420666f72207075626c696320656044820152661e18d95959195960ca1b6064820152608401610766565b600c54336000908152600b6020526040902054610e75908390611e5f565b1115610eb25760405162461bcd60e51b815260206004820152600c60248201526b13585e08195e18d95959195960a21b6044820152606401610766565b610ebc338261150f565b336000908152600b602052604081208054839290610edb908490611e5f565b909155505050565b6daaeb6d7670e522a718067333cd4e3b15610f8c57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d9190611d26565b610f8c57604051633b79c77360e21b8152336004820152602401610766565b610f988484848461160d565b50505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080610ff757506001548310155b156110025792915050565b61100b836114d3565b905080604001511561101d5792915050565b610ccc83611651565b6060611031826111d1565b61107d5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610766565b600961108883611686565b604051602001611099929190611e80565b6040516020818303038152906040529050919050565b6110b76113ba565b60025460015403600019011561110f5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c792031206d696e7420666f72206465706c6f79657200000000000000006044820152606401610766565b610a0633600161150f565b6111226113ba565b6001600160a01b0381166111875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610766565b61119081611483565b50565b61119b6113ba565b8060038111156111ad576111ad6118fe565b600a805460ff191660018360038111156111c9576111c96118fe565b021790555050565b6000816001111580156111e5575060015482105b8015610545575050600090815260056020526040902054600160e01b161590565b600061121182611414565b9050836001600160a01b0316816001600160a01b0316146112445760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176112915761127486336104a5565b61129157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166112b857604051633a954ecd60e21b815260040160405180910390fd5b80156112c357600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003611355576001840160008181526005602052604081205490036113535760015481146113535760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61077a83838360405180602001604052806000815250610ee3565b6000546001600160a01b03163314610a065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610766565b6000818060011161146a5760015481101561146a5760008181526005602052604081205490600160e01b82169003611468575b80600003610ccc575060001901600081815260056020526040902054611447565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610545906116d5565b60015460008290036115345760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146115e357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016115ab565b508160000361160457604051622e076360e81b815260040160405180910390fd5b60015550505050565b6116188484846106c1565b6001600160a01b0383163b15610f98576116348484848461171d565b610f98576040516368d2bf6b60e11b815260040160405180910390fd5b60408051608081018252600080825260208201819052918101829052606081019190915261054561168183611414565b6116d5565b604080516080810191829052607f0190826030600a8206018353600a90045b80156116c357600183039250600a81066030018353600a90046116a5565b50819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611752903390899088908890600401611f07565b6020604051808303816000875af192505050801561178d575060408051601f3d908101601f1916820190925261178a91810190611f44565b60015b6117eb573d8080156117bb576040519150601f19603f3d011682016040523d82523d6000602084013e6117c0565b606091505b5080516000036117e3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6001600160e01b03198116811461119057600080fd5b60006020828403121561183157600080fd5b8135610ccc81611809565b60005b8381101561185757818101518382015260200161183f565b50506000910152565b6000815180845261187881602086016020860161183c565b601f01601f19169290920160200192915050565b602081526000610ccc6020830184611860565b6000602082840312156118b157600080fd5b5035919050565b80356001600160a01b03811681146118cf57600080fd5b919050565b600080604083850312156118e757600080fd5b6118f0836118b8565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6004811061193257634e487b7160e01b600052602160045260246000fd5b9052565b604081016119448285611914565b8260208301529392505050565b60008060006060848603121561196657600080fd5b61196f846118b8565b925061197d602085016118b8565b9150604084013590509250925092565b600080602083850312156119a057600080fd5b823567ffffffffffffffff808211156119b857600080fd5b818501915085601f8301126119cc57600080fd5b8135818111156119db57600080fd5b8660208260051b85010111156119f057600080fd5b60209290920196919550909350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610b0557611a6e838551611a02565b9284019260809290920191600101611a5b565b600060208284031215611a9357600080fd5b610ccc826118b8565b6020808252825182820181905260009190848201906040850190845b81811015610b0557835183529284019291840191600101611ab8565b600080600060608486031215611ae957600080fd5b611af2846118b8565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611b3857611b38611b07565b604051601f8501601f19908116603f01168101908282118183101715611b6057611b60611b07565b81604052809350858152868686011115611b7957600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ba557600080fd5b813567ffffffffffffffff811115611bbc57600080fd5b8201601f81018413611bcd57600080fd5b61180184823560208401611b1d565b801515811461119057600080fd5b60008060408385031215611bfd57600080fd5b611c06836118b8565b91506020830135611c1681611bdc565b809150509250929050565b60008060008060808587031215611c3757600080fd5b611c40856118b8565b9350611c4e602086016118b8565b925060408501359150606085013567ffffffffffffffff811115611c7157600080fd5b8501601f81018713611c8257600080fd5b611c9187823560208401611b1d565b91505092959194509250565b608081016105458284611a02565b602081016105458284611914565b60008060408385031215611ccc57600080fd5b611cd5836118b8565b9150611ce3602084016118b8565b90509250929050565b600181811c90821680611d0057607f821691505b602082108103611d2057634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d3857600080fd5b8151610ccc81611bdc565b634e487b7160e01b600052603260045260246000fd5b601f82111561077a57600081815260208120601f850160051c81016020861015611d805750805b601f850160051c820191505b8181101561139757828155600101611d8c565b815167ffffffffffffffff811115611db957611db9611b07565b611dcd81611dc78454611cec565b84611d59565b602080601f831160018114611e025760008415611dea5750858301515b600019600386901b1c1916600185901b178555611397565b600085815260208120601f198616915b82811015611e3157888601518255948401946001909101908401611e12565b5085821015611e4f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561054557634e487b7160e01b600052601160045260246000fd5b6000808454611e8e81611cec565b60018281168015611ea65760018114611ebb57611eea565b60ff1984168752821515830287019450611eea565b8860005260208060002060005b85811015611ee15781548a820152908401908201611ec8565b50505082870194505b505050508351611efe81836020880161183c565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f3a90830184611860565b9695505050505050565b600060208284031215611f5657600080fd5b8151610ccc8161180956fea26469706673582212200899f93d10728fff188514bb0d80d89538c1a34fe6c0398f0071d364f986443964736f6c6343000812003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569666a6c667666346877717264636c7868747936653370737a6663686f6b636e673473737166377570613663776f626165747974712f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c80638462151c1161011a578063b88d4fde116100ad578063c893575a1161007c578063c893575a14610475578063cbccefb21461047d578063e985e9c514610497578063f2fde38b146104d3578063f8dcbddb146104e657600080fd5b8063b88d4fde1461040f578063b9bbe00a14610422578063c23dc68f14610442578063c87b56dd1461046257600080fd5b806399a2557a116100e957806399a2557a146103c3578063a0bcfc7f146103d6578063a22cb465146103e9578063b3ab66b0146103fc57600080fd5b80638462151c146103775780638a59a7fd146103975780638da5cb5b146103aa57806395d89b41146103bb57600080fd5b806349e949e7116101925780636c0360eb116101615780636c0360eb1461032b57806370a0823114610333578063715018a6146103465780637f16053a1461034e57600080fd5b806349e949e7146102dc5780634ef22ea9146102ef5780635bbb2177146102f85780636352211e1461031857600080fd5b80630c3f6acf116101ce5780630c3f6acf1461027d57806318160ddd1461029c57806323b872dd146102b657806342842e0e146102c957600080fd5b806301ffc9a71461020057806306fdde0314610228578063081812fc1461023d578063095ea7b314610268575b600080fd5b61021361020e36600461181f565b6104f9565b60405190151581526020015b60405180910390f35b61023061054b565b60405161021f919061188c565b61025061024b36600461189f565b6105dd565b6040516001600160a01b03909116815260200161021f565b61027b6102763660046118d4565b610621565b005b61028e600a54600c5460ff90911691565b60405161021f929190611936565b60025460015403600019015b60405190815260200161021f565b61027b6102c4366004611951565b6106c1565b61027b6102d7366004611951565b61077f565b61027b6102ea36600461189f565b610833565b6102a8600c5481565b61030b61030636600461198d565b610840565b60405161021f9190611a3f565b61025061032636600461189f565b61090c565b610230610917565b6102a8610341366004611a81565b6109a5565b61027b6109f4565b6102a861035c366004611a81565b6001600160a01b03166000908152600b602052604090205490565b61038a610385366004611a81565b610a08565b60405161021f9190611a9c565b6102a86103a5366004611a81565b610b11565b6000546001600160a01b0316610250565b610230610b3c565b61038a6103d1366004611ad4565b610b4b565b61027b6103e4366004611b93565b610cd3565b61027b6103f7366004611bea565b610ceb565b61027b61040a36600461189f565b610d80565b61027b61041d366004611c21565b610ee3565b6102a8610430366004611a81565b600b6020526000908152604090205481565b61045561045036600461189f565b610f9e565b60405161021f9190611c9d565b61023061047036600461189f565b611026565b61027b6110af565b600a5461048a9060ff1681565b60405161021f9190611cab565b6102136104a5366004611cb9565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61027b6104e1366004611a81565b61111a565b61027b6104f436600461189f565b611193565b60006301ffc9a760e01b6001600160e01b03198316148061052a57506380ac58cd60e01b6001600160e01b03198316145b806105455750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461055a90611cec565b80601f016020809104026020016040519081016040528092919081815260200182805461058690611cec565b80156105d35780601f106105a8576101008083540402835291602001916105d3565b820191906000526020600020905b8154815290600101906020018083116105b657829003601f168201915b5050505050905090565b60006105e8826111d1565b610605576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061062c8261090c565b9050336001600160a01b038216146106655761064881336104a5565b610665576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6daaeb6d7670e522a718067333cd4e3b1561076f57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074b9190611d26565b61076f57604051633b79c77360e21b81523360048201526024015b60405180910390fd5b61077a838383611206565b505050565b6daaeb6d7670e522a718067333cd4e3b1561082857604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af11580156107e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108099190611d26565b61082857604051633b79c77360e21b8152336004820152602401610766565b61077a83838361139f565b61083b6113ba565b600c55565b60608160008167ffffffffffffffff81111561085e5761085e611b07565b6040519080825280602002602001820160405280156108b057816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161087c5790505b50905060005b828114610903576108de8686838181106108d2576108d2611d43565b90506020020135610f9e565b8282815181106108f0576108f0611d43565b60209081029190910101526001016108b6565b50949350505050565b600061054582611414565b6009805461092490611cec565b80601f016020809104026020016040519081016040528092919081815260200182805461095090611cec565b801561099d5780601f106109725761010080835404028352916020019161099d565b820191906000526020600020905b81548152906001019060200180831161098057829003601f168201915b505050505081565b60006001600160a01b0382166109ce576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6109fc6113ba565b610a066000611483565b565b60606000806000610a18856109a5565b905060008167ffffffffffffffff811115610a3557610a35611b07565b604051908082528060200260200182016040528015610a5e578160200160208202803683370190505b509050610a8b60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610b0557610a9e816114d3565b91508160400151610afd5781516001600160a01b031615610abe57815194505b876001600160a01b0316856001600160a01b031603610afd5780838780600101985081518110610af057610af0611d43565b6020026020010181815250505b600101610a8e565b50909695505050505050565b6001600160a01b0381166000908152600660205260408082205467ffffffffffffffff911c16610545565b60606004805461055a90611cec565b6060818310610b6d57604051631960ccad60e11b815260040160405180910390fd5b600080610b7960015490565b90506001851015610b8957600194505b80841115610b95578093505b6000610ba0876109a5565b905084861015610bbf5785850381811015610bb9578091505b50610bc3565b5060005b60008167ffffffffffffffff811115610bde57610bde611b07565b604051908082528060200260200182016040528015610c07578160200160208202803683370190505b50905081600003610c1d579350610ccc92505050565b6000610c2888610f9e565b905060008160400151610c39575080515b885b888114158015610c4b5750848714155b15610cc057610c59816114d3565b92508260400151610cb85782516001600160a01b031615610c7957825191505b8a6001600160a01b0316826001600160a01b031603610cb85780848880600101995081518110610cab57610cab611d43565b6020026020010181815250505b600101610c3b565b50505092835250909150505b9392505050565b610cdb6113ba565b6009610ce78282611d9f565b5050565b336001600160a01b03831603610d145760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600a5460ff166003811115610d9957610d996118fe565b14610dde5760405162461bcd60e51b8152602060048201526015602482015274283ab13634b19026b4b73a103737ba103634bb329760591b6044820152606401610766565b6002546001546101f49183910360001901610df99190611e5f565b1115610e575760405162461bcd60e51b815260206004820152602760248201527f4d617820737570706c7920657863656564656420666f72207075626c696320656044820152661e18d95959195960ca1b6064820152608401610766565b600c54336000908152600b6020526040902054610e75908390611e5f565b1115610eb25760405162461bcd60e51b815260206004820152600c60248201526b13585e08195e18d95959195960a21b6044820152606401610766565b610ebc338261150f565b336000908152600b602052604081208054839290610edb908490611e5f565b909155505050565b6daaeb6d7670e522a718067333cd4e3b15610f8c57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610f49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6d9190611d26565b610f8c57604051633b79c77360e21b8152336004820152602401610766565b610f988484848461160d565b50505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080610ff757506001548310155b156110025792915050565b61100b836114d3565b905080604001511561101d5792915050565b610ccc83611651565b6060611031826111d1565b61107d5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610766565b600961108883611686565b604051602001611099929190611e80565b6040516020818303038152906040529050919050565b6110b76113ba565b60025460015403600019011561110f5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c792031206d696e7420666f72206465706c6f79657200000000000000006044820152606401610766565b610a0633600161150f565b6111226113ba565b6001600160a01b0381166111875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610766565b61119081611483565b50565b61119b6113ba565b8060038111156111ad576111ad6118fe565b600a805460ff191660018360038111156111c9576111c96118fe565b021790555050565b6000816001111580156111e5575060015482105b8015610545575050600090815260056020526040902054600160e01b161590565b600061121182611414565b9050836001600160a01b0316816001600160a01b0316146112445760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176112915761127486336104a5565b61129157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166112b857604051633a954ecd60e21b815260040160405180910390fd5b80156112c357600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003611355576001840160008181526005602052604081205490036113535760015481146113535760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61077a83838360405180602001604052806000815250610ee3565b6000546001600160a01b03163314610a065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610766565b6000818060011161146a5760015481101561146a5760008181526005602052604081205490600160e01b82169003611468575b80600003610ccc575060001901600081815260056020526040902054611447565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610545906116d5565b60015460008290036115345760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146115e357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016115ab565b508160000361160457604051622e076360e81b815260040160405180910390fd5b60015550505050565b6116188484846106c1565b6001600160a01b0383163b15610f98576116348484848461171d565b610f98576040516368d2bf6b60e11b815260040160405180910390fd5b60408051608081018252600080825260208201819052918101829052606081019190915261054561168183611414565b6116d5565b604080516080810191829052607f0190826030600a8206018353600a90045b80156116c357600183039250600a81066030018353600a90046116a5565b50819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611752903390899088908890600401611f07565b6020604051808303816000875af192505050801561178d575060408051601f3d908101601f1916820190925261178a91810190611f44565b60015b6117eb573d8080156117bb576040519150601f19603f3d011682016040523d82523d6000602084013e6117c0565b606091505b5080516000036117e3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6001600160e01b03198116811461119057600080fd5b60006020828403121561183157600080fd5b8135610ccc81611809565b60005b8381101561185757818101518382015260200161183f565b50506000910152565b6000815180845261187881602086016020860161183c565b601f01601f19169290920160200192915050565b602081526000610ccc6020830184611860565b6000602082840312156118b157600080fd5b5035919050565b80356001600160a01b03811681146118cf57600080fd5b919050565b600080604083850312156118e757600080fd5b6118f0836118b8565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6004811061193257634e487b7160e01b600052602160045260246000fd5b9052565b604081016119448285611914565b8260208301529392505050565b60008060006060848603121561196657600080fd5b61196f846118b8565b925061197d602085016118b8565b9150604084013590509250925092565b600080602083850312156119a057600080fd5b823567ffffffffffffffff808211156119b857600080fd5b818501915085601f8301126119cc57600080fd5b8135818111156119db57600080fd5b8660208260051b85010111156119f057600080fd5b60209290920196919550909350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610b0557611a6e838551611a02565b9284019260809290920191600101611a5b565b600060208284031215611a9357600080fd5b610ccc826118b8565b6020808252825182820181905260009190848201906040850190845b81811015610b0557835183529284019291840191600101611ab8565b600080600060608486031215611ae957600080fd5b611af2846118b8565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611b3857611b38611b07565b604051601f8501601f19908116603f01168101908282118183101715611b6057611b60611b07565b81604052809350858152868686011115611b7957600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ba557600080fd5b813567ffffffffffffffff811115611bbc57600080fd5b8201601f81018413611bcd57600080fd5b61180184823560208401611b1d565b801515811461119057600080fd5b60008060408385031215611bfd57600080fd5b611c06836118b8565b91506020830135611c1681611bdc565b809150509250929050565b60008060008060808587031215611c3757600080fd5b611c40856118b8565b9350611c4e602086016118b8565b925060408501359150606085013567ffffffffffffffff811115611c7157600080fd5b8501601f81018713611c8257600080fd5b611c9187823560208401611b1d565b91505092959194509250565b608081016105458284611a02565b602081016105458284611914565b60008060408385031215611ccc57600080fd5b611cd5836118b8565b9150611ce3602084016118b8565b90509250929050565b600181811c90821680611d0057607f821691505b602082108103611d2057634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d3857600080fd5b8151610ccc81611bdc565b634e487b7160e01b600052603260045260246000fd5b601f82111561077a57600081815260208120601f850160051c81016020861015611d805750805b601f850160051c820191505b8181101561139757828155600101611d8c565b815167ffffffffffffffff811115611db957611db9611b07565b611dcd81611dc78454611cec565b84611d59565b602080601f831160018114611e025760008415611dea5750858301515b600019600386901b1c1916600185901b178555611397565b600085815260208120601f198616915b82811015611e3157888601518255948401946001909101908401611e12565b5085821015611e4f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561054557634e487b7160e01b600052601160045260246000fd5b6000808454611e8e81611cec565b60018281168015611ea65760018114611ebb57611eea565b60ff1984168752821515830287019450611eea565b8860005260208060002060005b85811015611ee15781548a820152908401908201611ec8565b50505082870194505b505050508351611efe81836020880161183c565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f3a90830184611860565b9695505050505050565b600060208284031215611f5657600080fd5b8151610ccc8161180956fea26469706673582212200899f93d10728fff188514bb0d80d89538c1a34fe6c0398f0071d364f986443964736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569666a6c667666346877717264636c7868747936653370737a6663686f6b636e673473737166377570613663776f626165747974712f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseURI (string): ipfs://bafybeifjlfvf4hwqrdclxhty6e3pszfchokcng4ssqf7upa6cwobaetytq/
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [2] : 697066733a2f2f62616679626569666a6c667666346877717264636c78687479
Arg [3] : 36653370737a6663686f6b636e673473737166377570613663776f6261657479
Arg [4] : 74712f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
80772:2854:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39437:639;;;;;;:::i;:::-;;:::i;:::-;;;565:14:6;;558:22;540:41;;528:2;513:18;39437:639:2;;;;;;;;40339:100;;;:::i;:::-;;;;;;;:::i;46822:218::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:6;;;1679:51;;1667:2;1652:18;46822:218:2;1533:203:6;46263:400:2;;;;;;:::i;:::-;;:::i;:::-;;82622:122;;82700:11;;82713:22;;82700:11;;;;;82622:122;;;;;;;;;:::i;36090:323::-;36364:12;;35689:1;36348:13;:28;-1:-1:-1;;36348:46:2;36090:323;;;2967:25:6;;;2955:2;2940:18;36090:323:2;2821:177:6;81997:176:2;;;;;;:::i;:::-;;:::i;82181:184::-;;;;;;:::i;:::-;;:::i;82960:110::-;;;;;;:::i;:::-;;:::i;81173:38::-;;;;;;75989:528;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;41732:152::-;;;;;;:::i;:::-;;:::i;80988:21::-;;;:::i;37274:233::-;;;;;;:::i;:::-;;:::i;29396:103::-;;;:::i;83208:150::-;;;;;;:::i;:::-;-1:-1:-1;;;;;83306:44:2;83279:7;83306:44;;;:35;:44;;;;;;;83208:150;79865:900;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;83078:122::-;;;;;;:::i;:::-;;:::i;28748:87::-;28794:7;28821:6;-1:-1:-1;;;;;28821:6:2;28748:87;;40515:104;;;:::i;76905:2513::-;;;;;;:::i;:::-;;:::i;82752:100::-;;;;;;:::i;:::-;;:::i;47380:308::-;;;;;;:::i;:::-;;:::i;81514:475::-;;;;;;:::i;:::-;;:::i;82373:241::-;;;;;;:::i;:::-;;:::i;81097:67::-;;;;;;:::i;:::-;;;;;;;;;;;;;;75402:428;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;83366:257::-;;;;;;:::i;:::-;;:::i;81355:151::-;;;:::i;81018:23::-;;;;;;;;;;;;;;;;:::i;47845:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;47966:25:2;;;47942:4;47966:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;47845:164;29654:201;;;;;;:::i;:::-;;:::i;82860:92::-;;;;;;:::i;:::-;;:::i;39437:639::-;39522:4;-1:-1:-1;;;;;;;;;39846:25:2;;;;:102;;-1:-1:-1;;;;;;;;;;39923:25:2;;;39846:102;:179;;;-1:-1:-1;;;;;;;;;;40000:25:2;;;39846:179;39826:199;39437:639;-1:-1:-1;;39437:639:2:o;40339:100::-;40393:13;40426:5;40419:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40339:100;:::o;46822:218::-;46898:7;46923:16;46931:7;46923;:16::i;:::-;46918:64;;46948:34;;-1:-1:-1;;;46948:34:2;;;;;;;;;;;46918:64;-1:-1:-1;47002:24:2;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;47002:30:2;;46822:218::o;46263:400::-;46344:13;46360:16;46368:7;46360;:16::i;:::-;46344:32;-1:-1:-1;70120:10:2;-1:-1:-1;;;;;46393:28:2;;;46389:175;;46441:44;46458:5;70120:10;47845:164;:::i;46441:44::-;46436:128;;46513:35;;-1:-1:-1;;;46513:35:2;;;;;;;;;;;46436:128;46576:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;46576:35:2;-1:-1:-1;;;;;46576:35:2;;;;;;;;;46627:28;;46576:24;;46627:28;;;;;;;46333:330;46263:400;;:::o;81997:176::-;310:42:5;1438:43;:47;1434:225;;1507:67;;-1:-1:-1;;;1507:67:5;;1556:4;1507:67;;;9868:34:6;1563:10:5;9918:18:6;;;9911:43;310:42:5;;1507:40;;9803:18:6;;1507:67:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1502:146;;1602:30;;-1:-1:-1;;;1602:30:5;;1621:10;1602:30;;;1679:51:6;1652:18;;1602:30:5;;;;;;;;1502:146;82128:37:2::1;82147:4;82153:2;82157:7;82128:18;:37::i;:::-;81997:176:::0;;;:::o;82181:184::-;310:42:5;1438:43;:47;1434:225;;1507:67;;-1:-1:-1;;;1507:67:5;;1556:4;1507:67;;;9868:34:6;1563:10:5;9918:18:6;;;9911:43;310:42:5;;1507:40;;9803:18:6;;1507:67:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1502:146;;1602:30;;-1:-1:-1;;;1602:30:5;;1621:10;1602:30;;;1679:51:6;1652:18;;1602:30:5;1533:203:6;1502:146:5;82316:41:2::1;82339:4;82345:2;82349:7;82316:22;:41::i;82960:110::-:0;28634:13;:11;:13::i;:::-;83031:22:::1;:31:::0;82960:110::o;75989:528::-;76133:23;76224:8;76199:22;76224:8;76291:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76291:36:2;;-1:-1:-1;;76291:36:2;;;;;;;;;;;;76254:73;;76347:9;76342:125;76363:14;76358:1;:19;76342:125;;76419:32;76439:8;;76448:1;76439:11;;;;;;;:::i;:::-;;;;;;;76419:19;:32::i;:::-;76403:10;76414:1;76403:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;76379:3;;76342:125;;;-1:-1:-1;76488:10:2;75989:528;-1:-1:-1;;;;75989:528:2:o;41732:152::-;41804:7;41847:27;41866:7;41847:18;:27::i;80988:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;37274:233::-;37346:7;-1:-1:-1;;;;;37370:19:2;;37366:60;;37398:28;;-1:-1:-1;;;37398:28:2;;;;;;;;;;;37366:60;-1:-1:-1;;;;;;37444:25:2;;;;;:18;:25;;;;;;31433:13;37444:55;;37274:233::o;29396:103::-;28634:13;:11;:13::i;:::-;29461:30:::1;29488:1;29461:18;:30::i;:::-;29396:103::o:0;79865:900::-;79943:16;79997:19;80031:25;80071:22;80096:16;80106:5;80096:9;:16::i;:::-;80071:41;;80127:25;80169:14;80155:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80155:29:2;;80127:57;;80199:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80199:31:2;35689:1;80245:472;80294:14;80279:11;:29;80245:472;;80346:15;80359:1;80346:12;:15::i;:::-;80334:27;;80384:9;:16;;;80425:8;80380:73;80475:14;;-1:-1:-1;;;;;80475:28:2;;80471:111;;80548:14;;;-1:-1:-1;80471:111:2;80625:5;-1:-1:-1;;;;;80604:26:2;:17;-1:-1:-1;;;;;80604:26:2;;80600:102;;80681:1;80655:8;80664:13;;;;;;80655:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;80600:102;80310:3;;80245:472;;;-1:-1:-1;80738:8:2;;79865:900;-1:-1:-1;;;;;;79865:900:2:o;83078:122::-;-1:-1:-1;;;;;37678:25:2;;83143:7;37678:25;;;:18;:25;;31571:2;37678:25;;;;31433:13;37678:50;;37677:82;83170:22;37589:178;40515:104;40571:13;40604:7;40597:14;;;;;:::i;76905:2513::-;77048:16;77115:4;77106:5;:13;77102:45;;77128:19;;-1:-1:-1;;;77128:19:2;;;;;;;;;;;77102:45;77162:19;77196:17;77216:14;35859:13;;;35777:103;77216:14;77196:34;-1:-1:-1;35689:1:2;77308:5;:23;77304:87;;;35689:1;77352:23;;77304:87;77467:9;77460:4;:16;77456:73;;;77504:9;77497:16;;77456:73;77543:25;77571:16;77581:5;77571:9;:16::i;:::-;77543:44;;77765:4;77757:5;:12;77753:278;;;77812:12;;;77847:31;;;77843:111;;;77923:11;77903:31;;77843:111;77771:198;77753:278;;;-1:-1:-1;78014:1:2;77753:278;78045:25;78087:17;78073:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78073:32:2;;78045:60;;78124:17;78145:1;78124:22;78120:78;;78174:8;-1:-1:-1;78167:15:2;;-1:-1:-1;;;78167:15:2;78120:78;78342:31;78376:26;78396:5;78376:19;:26::i;:::-;78342:60;;78417:25;78662:9;:16;;;78657:92;;-1:-1:-1;78719:14:2;;78657:92;78780:5;78763:478;78792:4;78787:1;:9;;:45;;;;;78815:17;78800:11;:32;;78787:45;78763:478;;;78870:15;78883:1;78870:12;:15::i;:::-;78858:27;;78908:9;:16;;;78949:8;78904:73;78999:14;;-1:-1:-1;;;;;78999:28:2;;78995:111;;79072:14;;;-1:-1:-1;78995:111:2;79149:5;-1:-1:-1;;;;;79128:26:2;:17;-1:-1:-1;;;;;79128:26:2;;79124:102;;79205:1;79179:8;79188:13;;;;;;79179:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;79124:102;78834:3;;78763:478;;;-1:-1:-1;;;79326:29:2;;;-1:-1:-1;79333:8:2;;-1:-1:-1;;76905:2513:2;;;;;;:::o;82752:100::-;28634:13;:11;:13::i;:::-;82826:7:::1;:18;82836:8:::0;82826:7;:18:::1;:::i;:::-;;82752:100:::0;:::o;47380:308::-;70120:10;-1:-1:-1;;;;;47479:31:2;;;47475:61;;47519:17;;-1:-1:-1;;;47519:17:2;;;;;;;;;;;47475:61;70120:10;47549:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;47549:49:2;;;;;;;;;;;;:60;;-1:-1:-1;;47549:60:2;;;;;;;;;;47625:55;;540:41:6;;;47549:49:2;;70120:10;47625:55;;513:18:6;47625:55:2;;;;;;;47380:308;;:::o;81514:475::-;81593:15;81578:11;;;;:30;;;;;;;;:::i;:::-;;81575:66;;81610:31;;-1:-1:-1;;;81610:31:2;;12753:2:6;81610:31:2;;;12735:21:6;12792:2;12772:18;;;12765:30;-1:-1:-1;;;12811:18:6;;;12804:51;12872:18;;81610:31:2;12551:345:6;81575:66:2;36364:12;;35689:1;36348:13;81085:3;;81671:9;;36348:28;-1:-1:-1;;36348:46:2;81655:25;;;;:::i;:::-;:40;81652:94;;;81697:49;;-1:-1:-1;;;81697:49:2;;13330:2:6;81697:49:2;;;13312:21:6;13369:2;13349:18;;;13342:30;13408:34;13388:18;;;13381:62;-1:-1:-1;;;13459:18:6;;;13452:37;13506:19;;81697:49:2;13128:403:6;81652:94:2;81822:22;;81796:10;81760:47;;;;:35;:47;;;;;;:59;;81810:9;;81760:59;:::i;:::-;:84;81757:111;;;81846:22;;-1:-1:-1;;;81846:22:2;;13738:2:6;81846:22:2;;;13720:21:6;13777:2;13757:18;;;13750:30;-1:-1:-1;;;13796:18:6;;;13789:42;13848:18;;81846:22:2;13536:336:6;81757:111:2;81882:28;81888:10;81900:9;81882:5;:28::i;:::-;81957:10;81921:47;;;;:35;:47;;;;;:60;;81972:9;;81921:47;:60;;81972:9;;81921:60;:::i;:::-;;;;-1:-1:-1;;;81514:475:2:o;82373:241::-;310:42:5;1438:43;:47;1434:225;;1507:67;;-1:-1:-1;;;1507:67:5;;1556:4;1507:67;;;9868:34:6;1563:10:5;9918:18:6;;;9911:43;310:42:5;;1507:40;;9803:18:6;;1507:67:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1502:146;;1602:30;;-1:-1:-1;;;1602:30:5;;1621:10;1602:30;;;1679:51:6;1652:18;;1602:30:5;1533:203:6;1502:146:5;82559:47:2::1;82582:4;82588:2;82592:7;82601:4;82559:22;:47::i;:::-;82373:241:::0;;;;:::o;75402:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35689:1:2;75566:7;:25;:54;;;-1:-1:-1;35859:13:2;;75595:7;:25;;75566:54;75562:103;;;75644:9;75402:428;-1:-1:-1;;75402:428:2:o;75562:103::-;75687:21;75700:7;75687:12;:21::i;:::-;75675:33;;75723:9;:16;;;75719:65;;;75763:9;75402:428;-1:-1:-1;;75402:428:2:o;75719:65::-;75801:21;75814:7;75801:12;:21::i;83366:257::-;83456:13;83490:17;83498:8;83490:7;:17::i;:::-;83482:61;;;;-1:-1:-1;;;83482:61:2;;14079:2:6;83482:61:2;;;14061:21:6;14118:2;14098:18;;;14091:30;14157:33;14137:18;;;14130:61;14208:18;;83482:61:2;13877:355:6;83482:61:2;83585:7;83594:19;83604:8;83594:9;:19::i;:::-;83568:46;;;;;;;;;:::i;:::-;;;;;;;;;;;;;83554:61;;83366:257;;;:::o;81355:151::-;28634:13;:11;:13::i;:::-;36364:12;;35689:1;36348:13;:28;-1:-1:-1;;36348:46:2;81413:18;81410:57:::1;;81433:34;::::0;-1:-1:-1;;;81433:34:2;;15464:2:6;81433:34:2::1;::::0;::::1;15446:21:6::0;15503:2;15483:18;;;15476:30;15542:26;15522:18;;;15515:54;15586:18;;81433:34:2::1;15262:348:6::0;81410:57:2::1;81478:20;81484:10;81496:1;81478:5;:20::i;29654:201::-:0;28634:13;:11;:13::i;:::-;-1:-1:-1;;;;;29743:22:2;::::1;29735:73;;;::::0;-1:-1:-1;;;29735:73:2;;15817:2:6;29735:73:2::1;::::0;::::1;15799:21:6::0;15856:2;15836:18;;;15829:30;15895:34;15875:18;;;15868:62;-1:-1:-1;;;15946:18:6;;;15939:36;15992:19;;29735:73:2::1;15615:402:6::0;29735:73:2::1;29819:28;29838:8;29819:18;:28::i;:::-;29654:201:::0;:::o;82860:92::-;28634:13;:11;:13::i;:::-;82938:5:::1;82933:11;;;;;;;;:::i;:::-;82919;:25:::0;;-1:-1:-1;;82919:25:2::1;::::0;;::::1;::::0;::::1;;;;;;:::i;:::-;;;;;;82860:92:::0;:::o;48267:282::-;48332:4;48388:7;35689:1;48369:26;;:66;;;;;48422:13;;48412:7;:23;48369:66;:153;;;;-1:-1:-1;;48473:26:2;;;;:17;:26;;;;;;-1:-1:-1;;;48473:44:2;:49;;48267:282::o;50529:2817::-;50663:27;50693;50712:7;50693:18;:27::i;:::-;50663:57;;50778:4;-1:-1:-1;;;;;50737:45:2;50753:19;-1:-1:-1;;;;;50737:45:2;;50733:86;;50791:28;;-1:-1:-1;;;50791:28:2;;;;;;;;;;;50733:86;50833:27;49643:24;;;:15;:24;;;;;49865:26;;70120:10;49268:30;;;-1:-1:-1;;;;;48961:28:2;;49246:20;;;49243:56;51019:180;;51112:43;51129:4;70120:10;47845:164;:::i;51112:43::-;51107:92;;51164:35;;-1:-1:-1;;;51164:35:2;;;;;;;;;;;51107:92;-1:-1:-1;;;;;51216:16:2;;51212:52;;51241:23;;-1:-1:-1;;;51241:23:2;;;;;;;;;;;51212:52;51413:15;51410:160;;;51553:1;51532:19;51525:30;51410:160;-1:-1:-1;;;;;51950:24:2;;;;;;;:18;:24;;;;;;51948:26;;-1:-1:-1;;51948:26:2;;;52019:22;;;;;;;;;52017:24;;-1:-1:-1;52017:24:2;;;45121:11;45096:23;45092:41;45079:63;-1:-1:-1;;;45079:63:2;52312:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;52607:47:2;;:52;;52603:627;;52712:1;52702:11;;52680:19;52835:30;;;:17;:30;;;;;;:35;;52831:384;;52973:13;;52958:11;:28;52954:242;;53120:30;;;;:17;:30;;;;;:52;;;52954:242;52661:569;52603:627;53277:7;53273:2;-1:-1:-1;;;;;53258:27:2;53267:4;-1:-1:-1;;;;;53258:27:2;;;;;;;;;;;53296:42;50652:2694;;;50529:2817;;;:::o;53442:185::-;53580:39;53597:4;53603:2;53607:7;53580:39;;;;;;;;;;;;:16;:39::i;28913:132::-;28794:7;28821:6;-1:-1:-1;;;;;28821:6:2;70120:10;28977:23;28969:68;;;;-1:-1:-1;;;28969:68:2;;16224:2:6;28969:68:2;;;16206:21:6;;;16243:18;;;16236:30;16302:34;16282:18;;;16275:62;16354:18;;28969:68:2;16022:356:6;42887:1275:2;42954:7;42989;;35689:1;43038:23;43034:1061;;43091:13;;43084:4;:20;43080:1015;;;43129:14;43146:23;;;:17;:23;;;;;;;-1:-1:-1;;;43235:24:2;;:29;;43231:845;;43900:113;43907:6;43917:1;43907:11;43900:113;;-1:-1:-1;;;43978:6:2;43960:25;;;;:17;:25;;;;;;43900:113;;43231:845;43106:989;43080:1015;44123:31;;-1:-1:-1;;;44123:31:2;;;;;;;;;;;30015:191;30089:16;30108:6;;-1:-1:-1;;;;;30125:17:2;;;-1:-1:-1;;;;;;30125:17:2;;;;;;30158:40;;30108:6;;;;;;;30158:40;;30089:16;30158:40;30078:128;30015:191;:::o;42335:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42463:24:2;;;;:17;:24;;;;;;42444:44;;:18;:44::i;57886:2454::-;57982:13;;57959:20;58010:13;;;58006:44;;58032:18;;-1:-1:-1;;;58032:18:2;;;;;;;;;;;58006:44;-1:-1:-1;;;;;58538:22:2;;;;;;:18;:22;;;;31571:2;58538:22;;;:71;;58576:32;58564:45;;58538:71;;;58852:31;;;:17;:31;;;;;-1:-1:-1;45552:15:2;;45526:24;45522:46;45121:11;45096:23;45092:41;45089:52;45079:63;;58852:173;;59087:23;;;;58852:31;;58538:22;;59586:25;58538:22;;59439:335;59854:1;59840:12;59836:20;59794:346;59895:3;59886:7;59883:16;59794:346;;60113:7;60103:8;60100:1;60073:25;60070:1;60067;60062:59;59948:1;59935:15;59794:346;;;59798:77;60173:8;60185:1;60173:13;60169:45;;60195:19;;-1:-1:-1;;;60195:19:2;;;;;;;;;;;60169:45;60231:13;:19;-1:-1:-1;81997:176:2;;;:::o;54225:399::-;54392:31;54405:4;54411:2;54415:7;54392:12;:31::i;:::-;-1:-1:-1;;;;;54438:14:2;;;:19;54434:183;;54477:56;54508:4;54514:2;54518:7;54527:5;54477:30;:56::i;:::-;54472:145;;54561:40;;-1:-1:-1;;;54561:40:2;;;;;;;;;;;42073:166;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42184:47:2;42203:27;42222:7;42203:18;:27::i;:::-;42184:18;:47::i;70240:2002::-;70717:4;70711:11;;70724:3;70707:21;;70802:17;;;;71498:11;;;71377:5;71664:2;71678;71668:13;;71660:22;71498:11;71647:36;71719:2;71709:13;;71269:731;71738:4;71269:731;;;71929:1;71924:3;71920:11;71913:18;;71980:2;71974:4;71970:13;71966:2;71962:22;71957:3;71949:36;71833:2;71823:13;;71269:731;;;-1:-1:-1;72030:13:2;;;-1:-1:-1;;72145:12:2;;;72205:19;;;72145:12;70240:2002;-1:-1:-1;70240:2002:2:o;44261:366::-;-1:-1:-1;;;;;;;;;;;;;44371:41:2;;;;32092:3;44457:33;;;44423:68;;-1:-1:-1;;;44423:68:2;-1:-1:-1;;;44521:24:2;;:29;;-1:-1:-1;;;44502:48:2;;;;32613:3;44590:28;;;;-1:-1:-1;;;44561:58:2;-1:-1:-1;44261:366:2:o;56708:716::-;56892:88;;-1:-1:-1;;;56892:88:2;;56871:4;;-1:-1:-1;;;;;56892:45:2;;;;;:88;;70120:10;;56959:4;;56965:7;;56974:5;;56892:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56892:88:2;;;;;;;;-1:-1:-1;;56892:88:2;;;;;;;;;;;;:::i;:::-;;;56888:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57175:6;:13;57192:1;57175:18;57171:235;;57221:40;;-1:-1:-1;;;57221:40:2;;;;;;;;;;;57171:235;57364:6;57358:13;57349:6;57345:2;57341:15;57334:38;56888:529;-1:-1:-1;;;;;;57051:64:2;-1:-1:-1;;;57051:64:2;;-1:-1:-1;56888:529:2;56708:716;;;;;;:::o;14:131:6:-;-1:-1:-1;;;;;;88:32:6;;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:6;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:6;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:6:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:6;;1348:180;-1:-1:-1;1348:180:6:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:6;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:6:o;2178:127::-;2239:10;2234:3;2230:20;2227:1;2220:31;2270:4;2267:1;2260:15;2294:4;2291:1;2284:15;2310:232;2386:1;2379:5;2376:12;2366:143;;2431:10;2426:3;2422:20;2419:1;2412:31;2466:4;2463:1;2456:15;2494:4;2491:1;2484:15;2366:143;2518:18;;2310:232::o;2547:269::-;2716:2;2701:18;;2728:39;2705:9;2749:6;2728:39;:::i;:::-;2803:6;2798:2;2787:9;2783:18;2776:34;2547:269;;;;;:::o;3003:328::-;3080:6;3088;3096;3149:2;3137:9;3128:7;3124:23;3120:32;3117:52;;;3165:1;3162;3155:12;3117:52;3188:29;3207:9;3188:29;:::i;:::-;3178:39;;3236:38;3270:2;3259:9;3255:18;3236:38;:::i;:::-;3226:48;;3321:2;3310:9;3306:18;3293:32;3283:42;;3003:328;;;;;:::o;3336:615::-;3422:6;3430;3483:2;3471:9;3462:7;3458:23;3454:32;3451:52;;;3499:1;3496;3489:12;3451:52;3539:9;3526:23;3568:18;3609:2;3601:6;3598:14;3595:34;;;3625:1;3622;3615:12;3595:34;3663:6;3652:9;3648:22;3638:32;;3708:7;3701:4;3697:2;3693:13;3689:27;3679:55;;3730:1;3727;3720:12;3679:55;3770:2;3757:16;3796:2;3788:6;3785:14;3782:34;;;3812:1;3809;3802:12;3782:34;3865:7;3860:2;3850:6;3847:1;3843:14;3839:2;3835:23;3831:32;3828:45;3825:65;;;3886:1;3883;3876:12;3825:65;3917:2;3909:11;;;;;3939:6;;-1:-1:-1;3336:615:6;;-1:-1:-1;;;;3336:615:6:o;3956:349::-;4040:12;;-1:-1:-1;;;;;4036:38:6;4024:51;;4128:4;4117:16;;;4111:23;4136:18;4107:48;4091:14;;;4084:72;4219:4;4208:16;;;4202:23;4195:31;4188:39;4172:14;;;4165:63;4281:4;4270:16;;;4264:23;4289:8;4260:38;4244:14;;4237:62;3956:349::o;4310:722::-;4543:2;4595:21;;;4665:13;;4568:18;;;4687:22;;;4514:4;;4543:2;4766:15;;;;4740:2;4725:18;;;4514:4;4809:197;4823:6;4820:1;4817:13;4809:197;;;4872:52;4920:3;4911:6;4905:13;4872:52;:::i;:::-;4981:15;;;;4953:4;4944:14;;;;;4845:1;4838:9;4809:197;;5037:186;5096:6;5149:2;5137:9;5128:7;5124:23;5120:32;5117:52;;;5165:1;5162;5155:12;5117:52;5188:29;5207:9;5188:29;:::i;5228:632::-;5399:2;5451:21;;;5521:13;;5424:18;;;5543:22;;;5370:4;;5399:2;5622:15;;;;5596:2;5581:18;;;5370:4;5665:169;5679:6;5676:1;5673:13;5665:169;;;5740:13;;5728:26;;5809:15;;;;5774:12;;;;5701:1;5694:9;5665:169;;5865:322;5942:6;5950;5958;6011:2;5999:9;5990:7;5986:23;5982:32;5979:52;;;6027:1;6024;6017:12;5979:52;6050:29;6069:9;6050:29;:::i;:::-;6040:39;6126:2;6111:18;;6098:32;;-1:-1:-1;6177:2:6;6162:18;;;6149:32;;5865:322;-1:-1:-1;;;5865:322:6:o;6192:127::-;6253:10;6248:3;6244:20;6241:1;6234:31;6284:4;6281:1;6274:15;6308:4;6305:1;6298:15;6324:632;6389:5;6419:18;6460:2;6452:6;6449:14;6446:40;;;6466:18;;:::i;:::-;6541:2;6535:9;6509:2;6595:15;;-1:-1:-1;;6591:24:6;;;6617:2;6587:33;6583:42;6571:55;;;6641:18;;;6661:22;;;6638:46;6635:72;;;6687:18;;:::i;:::-;6727:10;6723:2;6716:22;6756:6;6747:15;;6786:6;6778;6771:22;6826:3;6817:6;6812:3;6808:16;6805:25;6802:45;;;6843:1;6840;6833:12;6802:45;6893:6;6888:3;6881:4;6873:6;6869:17;6856:44;6948:1;6941:4;6932:6;6924;6920:19;6916:30;6909:41;;;;6324:632;;;;;:::o;6961:451::-;7030:6;7083:2;7071:9;7062:7;7058:23;7054:32;7051:52;;;7099:1;7096;7089:12;7051:52;7139:9;7126:23;7172:18;7164:6;7161:30;7158:50;;;7204:1;7201;7194:12;7158:50;7227:22;;7280:4;7272:13;;7268:27;-1:-1:-1;7258:55:6;;7309:1;7306;7299:12;7258:55;7332:74;7398:7;7393:2;7380:16;7375:2;7371;7367:11;7332:74;:::i;7417:118::-;7503:5;7496:13;7489:21;7482:5;7479:32;7469:60;;7525:1;7522;7515:12;7540:315;7605:6;7613;7666:2;7654:9;7645:7;7641:23;7637:32;7634:52;;;7682:1;7679;7672:12;7634:52;7705:29;7724:9;7705:29;:::i;:::-;7695:39;;7784:2;7773:9;7769:18;7756:32;7797:28;7819:5;7797:28;:::i;:::-;7844:5;7834:15;;;7540:315;;;;;:::o;7860:667::-;7955:6;7963;7971;7979;8032:3;8020:9;8011:7;8007:23;8003:33;8000:53;;;8049:1;8046;8039:12;8000:53;8072:29;8091:9;8072:29;:::i;:::-;8062:39;;8120:38;8154:2;8143:9;8139:18;8120:38;:::i;:::-;8110:48;;8205:2;8194:9;8190:18;8177:32;8167:42;;8260:2;8249:9;8245:18;8232:32;8287:18;8279:6;8276:30;8273:50;;;8319:1;8316;8309:12;8273:50;8342:22;;8395:4;8387:13;;8383:27;-1:-1:-1;8373:55:6;;8424:1;8421;8414:12;8373:55;8447:74;8513:7;8508:2;8495:16;8490:2;8486;8482:11;8447:74;:::i;:::-;8437:84;;;7860:667;;;;;;;:::o;8532:266::-;8728:3;8713:19;;8741:51;8717:9;8774:6;8741:51;:::i;8803:198::-;8944:2;8929:18;;8956:39;8933:9;8977:6;8956:39;:::i;9006:260::-;9074:6;9082;9135:2;9123:9;9114:7;9110:23;9106:32;9103:52;;;9151:1;9148;9141:12;9103:52;9174:29;9193:9;9174:29;:::i;:::-;9164:39;;9222:38;9256:2;9245:9;9241:18;9222:38;:::i;:::-;9212:48;;9006:260;;;;;:::o;9271:380::-;9350:1;9346:12;;;;9393;;;9414:61;;9468:4;9460:6;9456:17;9446:27;;9414:61;9521:2;9513:6;9510:14;9490:18;9487:38;9484:161;;9567:10;9562:3;9558:20;9555:1;9548:31;9602:4;9599:1;9592:15;9630:4;9627:1;9620:15;9484:161;;9271:380;;;:::o;9965:245::-;10032:6;10085:2;10073:9;10064:7;10060:23;10056:32;10053:52;;;10101:1;10098;10091:12;10053:52;10133:9;10127:16;10152:28;10174:5;10152:28;:::i;10215:127::-;10276:10;10271:3;10267:20;10264:1;10257:31;10307:4;10304:1;10297:15;10331:4;10328:1;10321:15;10473:545;10575:2;10570:3;10567:11;10564:448;;;10611:1;10636:5;10632:2;10625:17;10681:4;10677:2;10667:19;10751:2;10739:10;10735:19;10732:1;10728:27;10722:4;10718:38;10787:4;10775:10;10772:20;10769:47;;;-1:-1:-1;10810:4:6;10769:47;10865:2;10860:3;10856:12;10853:1;10849:20;10843:4;10839:31;10829:41;;10920:82;10938:2;10931:5;10928:13;10920:82;;;10983:17;;;10964:1;10953:13;10920:82;;11194:1352;11320:3;11314:10;11347:18;11339:6;11336:30;11333:56;;;11369:18;;:::i;:::-;11398:97;11488:6;11448:38;11480:4;11474:11;11448:38;:::i;:::-;11442:4;11398:97;:::i;:::-;11550:4;;11614:2;11603:14;;11631:1;11626:663;;;;12333:1;12350:6;12347:89;;;-1:-1:-1;12402:19:6;;;12396:26;12347:89;-1:-1:-1;;11151:1:6;11147:11;;;11143:24;11139:29;11129:40;11175:1;11171:11;;;11126:57;12449:81;;11596:944;;11626:663;10420:1;10413:14;;;10457:4;10444:18;;-1:-1:-1;;11662:20:6;;;11780:236;11794:7;11791:1;11788:14;11780:236;;;11883:19;;;11877:26;11862:42;;11975:27;;;;11943:1;11931:14;;;;11810:19;;11780:236;;;11784:3;12044:6;12035:7;12032:19;12029:201;;;12105:19;;;12099:26;-1:-1:-1;;12188:1:6;12184:14;;;12200:3;12180:24;12176:37;12172:42;12157:58;12142:74;;12029:201;-1:-1:-1;;;;;12276:1:6;12260:14;;;12256:22;12243:36;;-1:-1:-1;11194:1352:6:o;12901:222::-;12966:9;;;12987:10;;;12984:133;;;13039:10;13034:3;13030:20;13027:1;13020:31;13074:4;13071:1;13064:15;13102:4;13099:1;13092:15;14237:1020;14413:3;14442:1;14475:6;14469:13;14505:36;14531:9;14505:36;:::i;:::-;14560:1;14577:18;;;14604:133;;;;14751:1;14746:356;;;;14570:532;;14604:133;-1:-1:-1;;14637:24:6;;14625:37;;14710:14;;14703:22;14691:35;;14682:45;;;-1:-1:-1;14604:133:6;;14746:356;14777:6;14774:1;14767:17;14807:4;14852:2;14849:1;14839:16;14877:1;14891:165;14905:6;14902:1;14899:13;14891:165;;;14983:14;;14970:11;;;14963:35;15026:16;;;;14920:10;;14891:165;;;14895:3;;;15085:6;15080:3;15076:16;15069:23;;14570:532;;;;;15133:6;15127:13;15149:68;15208:8;15203:3;15196:4;15188:6;15184:17;15149:68;:::i;:::-;15233:18;;14237:1020;-1:-1:-1;;;;14237:1020:6:o;16383:489::-;-1:-1:-1;;;;;16652:15:6;;;16634:34;;16704:15;;16699:2;16684:18;;16677:43;16751:2;16736:18;;16729:34;;;16799:3;16794:2;16779:18;;16772:31;;;16577:4;;16820:46;;16846:19;;16838:6;16820:46;:::i;:::-;16812:54;16383:489;-1:-1:-1;;;;;;16383:489:6:o;16877:249::-;16946:6;16999:2;16987:9;16978:7;16974:23;16970:32;16967:52;;;17015:1;17012;17005:12;16967:52;17047:9;17041:16;17066:30;17090:5;17066:30;:::i
Swarm Source
ipfs://0899f93d10728fff188514bb0d80d89538c1a34fe6c0398f0071d364f9864439
Loading...
Loading
Loading...
Loading
[ 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.