ERC-721
Overview
Max Total Supply
1,250 BF
Holders
628
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 BFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BlurFarmers
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-02-15 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.18; /* * @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 BlurFarmers is Ownable, ERC721A, ERC721AQueryable { using Strings for uint; enum Step { Before, PublicSale, SoldOut, Reveal } string public baseURI; Step public sellingStep; uint private constant MAX_PUBLIC = 1250; mapping(address => uint) public mintedAmountNFTsperWalletPublicSale; uint public maxMintAmountPerPublic = 2; uint private teamLength; constructor(string memory _baseURI) ERC721A("Blur Farmers", "BF"){ 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 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), ".json")); } }
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":[],"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 BlurFarmers.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 BlurFarmers.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
60806040526002600c553480156200001657600080fd5b50604051620020db380380620020db833981016040819052620000399162000137565b6040518060400160405280600c81526020016b426c7572204661726d65727360a01b81525060405180604001604052806002815260200161212360f11b815250620000936200008d620000cd60201b60201c565b620000d1565b6003620000a183826200029b565b506004620000b082826200029b565b505060018055506009620000c582826200029b565b505062000367565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200014b57600080fd5b82516001600160401b03808211156200016357600080fd5b818501915085601f8301126200017857600080fd5b8151818111156200018d576200018d62000121565b604051601f8201601f19908116603f01168101908382118183101715620001b857620001b862000121565b816040528281528886848701011115620001d157600080fd5b600093505b82841015620001f55784840186015181850187015292850192620001d6565b600086848301015280965050505050505092915050565b600181811c908216806200022157607f821691505b6020821081036200024257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200029657600081815260208120601f850160051c81016020861015620002715750805b601f850160051c820191505b8181101562000292578281556001016200027d565b5050505b505050565b81516001600160401b03811115620002b757620002b762000121565b620002cf81620002c884546200020c565b8462000248565b602080601f831160018114620003075760008415620002ee5750858301515b600019600386901b1c1916600185901b17855562000292565b600085815260208120601f198616915b82811015620003385788860151825594840194600190910190840162000317565b5085821015620003575787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611d6480620003776000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80638462151c1161011a578063b88d4fde116100ad578063c893575a1161007c578063c893575a14610475578063cbccefb21461047d578063e985e9c514610497578063f2fde38b146104d3578063f8dcbddb146104e657600080fd5b8063b88d4fde1461040f578063b9bbe00a14610422578063c23dc68f14610442578063c87b56dd1461046257600080fd5b806399a2557a116100e957806399a2557a146103c3578063a0bcfc7f146103d6578063a22cb465146103e9578063b3ab66b0146103fc57600080fd5b80638462151c146103775780638a59a7fd146103975780638da5cb5b146103aa57806395d89b41146103bb57600080fd5b806349e949e7116101925780636c0360eb116101615780636c0360eb1461032b57806370a0823114610333578063715018a6146103465780637f16053a1461034e57600080fd5b806349e949e7146102dc5780634ef22ea9146102ef5780635bbb2177146102f85780636352211e1461031857600080fd5b80630c3f6acf116101ce5780630c3f6acf1461027d57806318160ddd1461029c57806323b872dd146102b657806342842e0e146102c957600080fd5b806301ffc9a71461020057806306fdde0314610228578063081812fc1461023d578063095ea7b314610268575b600080fd5b61021361020e366004611602565b6104f9565b60405190151581526020015b60405180910390f35b61023061054b565b60405161021f919061166f565b61025061024b366004611682565b6105dd565b6040516001600160a01b03909116815260200161021f565b61027b6102763660046116b7565b610621565b005b61028e600a54600c5460ff90911691565b60405161021f929190611719565b60025460015403600019015b60405190815260200161021f565b61027b6102c4366004611734565b6106c1565b61027b6102d7366004611734565b61085a565b61027b6102ea366004611682565b61087a565b6102a8600c5481565b61030b610306366004611770565b610887565b60405161021f9190611822565b610250610326366004611682565b610953565b61023061095e565b6102a8610341366004611864565b6109ec565b61027b610a3b565b6102a861035c366004611864565b6001600160a01b03166000908152600b602052604090205490565b61038a610385366004611864565b610a4f565b60405161021f919061187f565b6102a86103a5366004611864565b610b58565b6000546001600160a01b0316610250565b610230610b83565b61038a6103d13660046118b7565b610b92565b61027b6103e4366004611976565b610d1a565b61027b6103f73660046119bf565b610d32565b61027b61040a366004611682565b610dc7565b61027b61041d3660046119fb565b610f2f565b6102a8610430366004611864565b600b6020526000908152604090205481565b610455610450366004611682565b610f79565b60405161021f9190611a77565b610230610470366004611682565b611001565b61027b61108a565b600a5461048a9060ff1681565b60405161021f9190611a85565b6102136104a5366004611a93565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61027b6104e1366004611864565b6110f5565b61027b6104f4366004611682565b61116e565b60006301ffc9a760e01b6001600160e01b03198316148061052a57506380ac58cd60e01b6001600160e01b03198316145b806105455750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461055a90611ac6565b80601f016020809104026020016040519081016040528092919081815260200182805461058690611ac6565b80156105d35780601f106105a8576101008083540402835291602001916105d3565b820191906000526020600020905b8154815290600101906020018083116105b657829003601f168201915b5050505050905090565b60006105e8826111ac565b610605576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061062c82610953565b9050336001600160a01b038216146106655761064881336104a5565b610665576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106cc826111e1565b9050836001600160a01b0316816001600160a01b0316146106ff5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b0388169091141761074c5761072f86336104a5565b61074c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661077357604051633a954ecd60e21b815260040160405180910390fd5b801561077e57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b841690036108105760018401600081815260056020526040812054900361080e57600154811461080e5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61087583838360405180602001604052806000815250610f2f565b505050565b610882611250565b600c55565b60608160008167ffffffffffffffff8111156108a5576108a56118ea565b6040519080825280602002602001820160405280156108f757816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816108c35790505b50905060005b82811461094a5761092586868381811061091957610919611b00565b90506020020135610f79565b82828151811061093757610937611b00565b60209081029190910101526001016108fd565b50949350505050565b6000610545826111e1565b6009805461096b90611ac6565b80601f016020809104026020016040519081016040528092919081815260200182805461099790611ac6565b80156109e45780601f106109b9576101008083540402835291602001916109e4565b820191906000526020600020905b8154815290600101906020018083116109c757829003601f168201915b505050505081565b60006001600160a01b038216610a15576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b610a43611250565b610a4d60006112aa565b565b60606000806000610a5f856109ec565b905060008167ffffffffffffffff811115610a7c57610a7c6118ea565b604051908082528060200260200182016040528015610aa5578160200160208202803683370190505b509050610ad260408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610b4c57610ae5816112fa565b91508160400151610b445781516001600160a01b031615610b0557815194505b876001600160a01b0316856001600160a01b031603610b445780838780600101985081518110610b3757610b37611b00565b6020026020010181815250505b600101610ad5565b50909695505050505050565b6001600160a01b0381166000908152600660205260408082205467ffffffffffffffff911c16610545565b60606004805461055a90611ac6565b6060818310610bb457604051631960ccad60e11b815260040160405180910390fd5b600080610bc060015490565b90506001851015610bd057600194505b80841115610bdc578093505b6000610be7876109ec565b905084861015610c065785850381811015610c00578091505b50610c0a565b5060005b60008167ffffffffffffffff811115610c2557610c256118ea565b604051908082528060200260200182016040528015610c4e578160200160208202803683370190505b50905081600003610c64579350610d1392505050565b6000610c6f88610f79565b905060008160400151610c80575080515b885b888114158015610c925750848714155b15610d0757610ca0816112fa565b92508260400151610cff5782516001600160a01b031615610cc057825191505b8a6001600160a01b0316826001600160a01b031603610cff5780848880600101995081518110610cf257610cf2611b00565b6020026020010181815250505b600101610c82565b50505092835250909150505b9392505050565b610d22611250565b6009610d2e8282611b5c565b5050565b336001600160a01b03831603610d5b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600a5460ff166003811115610de057610de06116e1565b14610e2a5760405162461bcd60e51b8152602060048201526015602482015274283ab13634b19026b4b73a103737ba103634bb329760591b60448201526064015b60405180910390fd5b6002546001546104e29183910360001901610e459190611c1c565b1115610ea35760405162461bcd60e51b815260206004820152602760248201527f4d617820737570706c7920657863656564656420666f72207075626c696320656044820152661e18d95959195960ca1b6064820152608401610e21565b600c54336000908152600b6020526040902054610ec1908390611c1c565b1115610efe5760405162461bcd60e51b815260206004820152600c60248201526b13585e08195e18d95959195960a21b6044820152606401610e21565b610f083382611336565b336000908152600b602052604081208054839290610f27908490611c1c565b909155505050565b610f3a8484846106c1565b6001600160a01b0383163b15610f7357610f5684848484611434565b610f73576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080610fd257506001548310155b15610fdd5792915050565b610fe6836112fa565b9050806040015115610ff85792915050565b610d1383611520565b606061100c826111ac565b6110585760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610e21565b600961106383611555565b604051602001611074929190611c3d565b6040516020818303038152906040529050919050565b611092611250565b6002546001540360001901156110ea5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c792031206d696e7420666f72206465706c6f79657200000000000000006044820152606401610e21565b610a4d336001611336565b6110fd611250565b6001600160a01b0381166111625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e21565b61116b816112aa565b50565b611176611250565b806003811115611188576111886116e1565b600a805460ff191660018360038111156111a4576111a46116e1565b021790555050565b6000816001111580156111c0575060015482105b8015610545575050600090815260056020526040902054600160e01b161590565b60008180600111611237576001548110156112375760008181526005602052604081205490600160e01b82169003611235575b80600003610d13575060001901600081815260056020526040902054611214565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b03163314610a4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e21565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610545906115a4565b600154600082900361135b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461140a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016113d2565b508160000361142b57604051622e076360e81b815260040160405180910390fd5b60015550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611469903390899088908890600401611cd4565b6020604051808303816000875af19250505080156114a4575060408051601f3d908101601f191682019092526114a191810190611d11565b60015b611502573d8080156114d2576040519150601f19603f3d011682016040523d82523d6000602084013e6114d7565b606091505b5080516000036114fa576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610545611550836111e1565b6115a4565b604080516080810191829052607f0190826030600a8206018353600a90045b801561159257600183039250600a81066030018353600a9004611574565b50819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001600160e01b03198116811461116b57600080fd5b60006020828403121561161457600080fd5b8135610d13816115ec565b60005b8381101561163a578181015183820152602001611622565b50506000910152565b6000815180845261165b81602086016020860161161f565b601f01601f19169290920160200192915050565b602081526000610d136020830184611643565b60006020828403121561169457600080fd5b5035919050565b80356001600160a01b03811681146116b257600080fd5b919050565b600080604083850312156116ca57600080fd5b6116d38361169b565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6004811061171557634e487b7160e01b600052602160045260246000fd5b9052565b6040810161172782856116f7565b8260208301529392505050565b60008060006060848603121561174957600080fd5b6117528461169b565b92506117606020850161169b565b9150604084013590509250925092565b6000806020838503121561178357600080fd5b823567ffffffffffffffff8082111561179b57600080fd5b818501915085601f8301126117af57600080fd5b8135818111156117be57600080fd5b8660208260051b85010111156117d357600080fd5b60209290920196919550909350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610b4c576118518385516117e5565b928401926080929092019160010161183e565b60006020828403121561187657600080fd5b610d138261169b565b6020808252825182820181905260009190848201906040850190845b81811015610b4c5783518352928401929184019160010161189b565b6000806000606084860312156118cc57600080fd5b6118d58461169b565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561191b5761191b6118ea565b604051601f8501601f19908116603f01168101908282118183101715611943576119436118ea565b8160405280935085815286868601111561195c57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561198857600080fd5b813567ffffffffffffffff81111561199f57600080fd5b8201601f810184136119b057600080fd5b61151884823560208401611900565b600080604083850312156119d257600080fd5b6119db8361169b565b9150602083013580151581146119f057600080fd5b809150509250929050565b60008060008060808587031215611a1157600080fd5b611a1a8561169b565b9350611a286020860161169b565b925060408501359150606085013567ffffffffffffffff811115611a4b57600080fd5b8501601f81018713611a5c57600080fd5b611a6b87823560208401611900565b91505092959194509250565b6080810161054582846117e5565b6020810161054582846116f7565b60008060408385031215611aa657600080fd5b611aaf8361169b565b9150611abd6020840161169b565b90509250929050565b600181811c90821680611ada57607f821691505b602082108103611afa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b601f82111561087557600081815260208120601f850160051c81016020861015611b3d5750805b601f850160051c820191505b8181101561085257828155600101611b49565b815167ffffffffffffffff811115611b7657611b766118ea565b611b8a81611b848454611ac6565b84611b16565b602080601f831160018114611bbf5760008415611ba75750858301515b600019600386901b1c1916600185901b178555610852565b600085815260208120601f198616915b82811015611bee57888601518255948401946001909101908401611bcf565b5085821015611c0c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561054557634e487b7160e01b600052601160045260246000fd5b6000808454611c4b81611ac6565b60018281168015611c635760018114611c7857611ca7565b60ff1984168752821515830287019450611ca7565b8860005260208060002060005b85811015611c9e5781548a820152908401908201611c85565b50505082870194505b505050508351611cbb81836020880161161f565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d0790830184611643565b9695505050505050565b600060208284031215611d2357600080fd5b8151610d13816115ec56fea2646970667358221220c1eede83b893ec9854f10b55de6453e5172e21238646a82f60517f538d80c9d364736f6c63430008120033000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000046970667300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c80638462151c1161011a578063b88d4fde116100ad578063c893575a1161007c578063c893575a14610475578063cbccefb21461047d578063e985e9c514610497578063f2fde38b146104d3578063f8dcbddb146104e657600080fd5b8063b88d4fde1461040f578063b9bbe00a14610422578063c23dc68f14610442578063c87b56dd1461046257600080fd5b806399a2557a116100e957806399a2557a146103c3578063a0bcfc7f146103d6578063a22cb465146103e9578063b3ab66b0146103fc57600080fd5b80638462151c146103775780638a59a7fd146103975780638da5cb5b146103aa57806395d89b41146103bb57600080fd5b806349e949e7116101925780636c0360eb116101615780636c0360eb1461032b57806370a0823114610333578063715018a6146103465780637f16053a1461034e57600080fd5b806349e949e7146102dc5780634ef22ea9146102ef5780635bbb2177146102f85780636352211e1461031857600080fd5b80630c3f6acf116101ce5780630c3f6acf1461027d57806318160ddd1461029c57806323b872dd146102b657806342842e0e146102c957600080fd5b806301ffc9a71461020057806306fdde0314610228578063081812fc1461023d578063095ea7b314610268575b600080fd5b61021361020e366004611602565b6104f9565b60405190151581526020015b60405180910390f35b61023061054b565b60405161021f919061166f565b61025061024b366004611682565b6105dd565b6040516001600160a01b03909116815260200161021f565b61027b6102763660046116b7565b610621565b005b61028e600a54600c5460ff90911691565b60405161021f929190611719565b60025460015403600019015b60405190815260200161021f565b61027b6102c4366004611734565b6106c1565b61027b6102d7366004611734565b61085a565b61027b6102ea366004611682565b61087a565b6102a8600c5481565b61030b610306366004611770565b610887565b60405161021f9190611822565b610250610326366004611682565b610953565b61023061095e565b6102a8610341366004611864565b6109ec565b61027b610a3b565b6102a861035c366004611864565b6001600160a01b03166000908152600b602052604090205490565b61038a610385366004611864565b610a4f565b60405161021f919061187f565b6102a86103a5366004611864565b610b58565b6000546001600160a01b0316610250565b610230610b83565b61038a6103d13660046118b7565b610b92565b61027b6103e4366004611976565b610d1a565b61027b6103f73660046119bf565b610d32565b61027b61040a366004611682565b610dc7565b61027b61041d3660046119fb565b610f2f565b6102a8610430366004611864565b600b6020526000908152604090205481565b610455610450366004611682565b610f79565b60405161021f9190611a77565b610230610470366004611682565b611001565b61027b61108a565b600a5461048a9060ff1681565b60405161021f9190611a85565b6102136104a5366004611a93565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61027b6104e1366004611864565b6110f5565b61027b6104f4366004611682565b61116e565b60006301ffc9a760e01b6001600160e01b03198316148061052a57506380ac58cd60e01b6001600160e01b03198316145b806105455750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461055a90611ac6565b80601f016020809104026020016040519081016040528092919081815260200182805461058690611ac6565b80156105d35780601f106105a8576101008083540402835291602001916105d3565b820191906000526020600020905b8154815290600101906020018083116105b657829003601f168201915b5050505050905090565b60006105e8826111ac565b610605576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061062c82610953565b9050336001600160a01b038216146106655761064881336104a5565b610665576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106cc826111e1565b9050836001600160a01b0316816001600160a01b0316146106ff5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b0388169091141761074c5761072f86336104a5565b61074c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661077357604051633a954ecd60e21b815260040160405180910390fd5b801561077e57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b841690036108105760018401600081815260056020526040812054900361080e57600154811461080e5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61087583838360405180602001604052806000815250610f2f565b505050565b610882611250565b600c55565b60608160008167ffffffffffffffff8111156108a5576108a56118ea565b6040519080825280602002602001820160405280156108f757816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816108c35790505b50905060005b82811461094a5761092586868381811061091957610919611b00565b90506020020135610f79565b82828151811061093757610937611b00565b60209081029190910101526001016108fd565b50949350505050565b6000610545826111e1565b6009805461096b90611ac6565b80601f016020809104026020016040519081016040528092919081815260200182805461099790611ac6565b80156109e45780601f106109b9576101008083540402835291602001916109e4565b820191906000526020600020905b8154815290600101906020018083116109c757829003601f168201915b505050505081565b60006001600160a01b038216610a15576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b610a43611250565b610a4d60006112aa565b565b60606000806000610a5f856109ec565b905060008167ffffffffffffffff811115610a7c57610a7c6118ea565b604051908082528060200260200182016040528015610aa5578160200160208202803683370190505b509050610ad260408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610b4c57610ae5816112fa565b91508160400151610b445781516001600160a01b031615610b0557815194505b876001600160a01b0316856001600160a01b031603610b445780838780600101985081518110610b3757610b37611b00565b6020026020010181815250505b600101610ad5565b50909695505050505050565b6001600160a01b0381166000908152600660205260408082205467ffffffffffffffff911c16610545565b60606004805461055a90611ac6565b6060818310610bb457604051631960ccad60e11b815260040160405180910390fd5b600080610bc060015490565b90506001851015610bd057600194505b80841115610bdc578093505b6000610be7876109ec565b905084861015610c065785850381811015610c00578091505b50610c0a565b5060005b60008167ffffffffffffffff811115610c2557610c256118ea565b604051908082528060200260200182016040528015610c4e578160200160208202803683370190505b50905081600003610c64579350610d1392505050565b6000610c6f88610f79565b905060008160400151610c80575080515b885b888114158015610c925750848714155b15610d0757610ca0816112fa565b92508260400151610cff5782516001600160a01b031615610cc057825191505b8a6001600160a01b0316826001600160a01b031603610cff5780848880600101995081518110610cf257610cf2611b00565b6020026020010181815250505b600101610c82565b50505092835250909150505b9392505050565b610d22611250565b6009610d2e8282611b5c565b5050565b336001600160a01b03831603610d5b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6001600a5460ff166003811115610de057610de06116e1565b14610e2a5760405162461bcd60e51b8152602060048201526015602482015274283ab13634b19026b4b73a103737ba103634bb329760591b60448201526064015b60405180910390fd5b6002546001546104e29183910360001901610e459190611c1c565b1115610ea35760405162461bcd60e51b815260206004820152602760248201527f4d617820737570706c7920657863656564656420666f72207075626c696320656044820152661e18d95959195960ca1b6064820152608401610e21565b600c54336000908152600b6020526040902054610ec1908390611c1c565b1115610efe5760405162461bcd60e51b815260206004820152600c60248201526b13585e08195e18d95959195960a21b6044820152606401610e21565b610f083382611336565b336000908152600b602052604081208054839290610f27908490611c1c565b909155505050565b610f3a8484846106c1565b6001600160a01b0383163b15610f7357610f5684848484611434565b610f73576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080610fd257506001548310155b15610fdd5792915050565b610fe6836112fa565b9050806040015115610ff85792915050565b610d1383611520565b606061100c826111ac565b6110585760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610e21565b600961106383611555565b604051602001611074929190611c3d565b6040516020818303038152906040529050919050565b611092611250565b6002546001540360001901156110ea5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c792031206d696e7420666f72206465706c6f79657200000000000000006044820152606401610e21565b610a4d336001611336565b6110fd611250565b6001600160a01b0381166111625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e21565b61116b816112aa565b50565b611176611250565b806003811115611188576111886116e1565b600a805460ff191660018360038111156111a4576111a46116e1565b021790555050565b6000816001111580156111c0575060015482105b8015610545575050600090815260056020526040902054600160e01b161590565b60008180600111611237576001548110156112375760008181526005602052604081205490600160e01b82169003611235575b80600003610d13575060001901600081815260056020526040902054611214565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b03163314610a4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e21565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610545906115a4565b600154600082900361135b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461140a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016113d2565b508160000361142b57604051622e076360e81b815260040160405180910390fd5b60015550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611469903390899088908890600401611cd4565b6020604051808303816000875af19250505080156114a4575060408051601f3d908101601f191682019092526114a191810190611d11565b60015b611502573d8080156114d2576040519150601f19603f3d011682016040523d82523d6000602084013e6114d7565b606091505b5080516000036114fa576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610545611550836111e1565b6115a4565b604080516080810191829052607f0190826030600a8206018353600a90045b801561159257600183039250600a81066030018353600a9004611574565b50819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001600160e01b03198116811461116b57600080fd5b60006020828403121561161457600080fd5b8135610d13816115ec565b60005b8381101561163a578181015183820152602001611622565b50506000910152565b6000815180845261165b81602086016020860161161f565b601f01601f19169290920160200192915050565b602081526000610d136020830184611643565b60006020828403121561169457600080fd5b5035919050565b80356001600160a01b03811681146116b257600080fd5b919050565b600080604083850312156116ca57600080fd5b6116d38361169b565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6004811061171557634e487b7160e01b600052602160045260246000fd5b9052565b6040810161172782856116f7565b8260208301529392505050565b60008060006060848603121561174957600080fd5b6117528461169b565b92506117606020850161169b565b9150604084013590509250925092565b6000806020838503121561178357600080fd5b823567ffffffffffffffff8082111561179b57600080fd5b818501915085601f8301126117af57600080fd5b8135818111156117be57600080fd5b8660208260051b85010111156117d357600080fd5b60209290920196919550909350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610b4c576118518385516117e5565b928401926080929092019160010161183e565b60006020828403121561187657600080fd5b610d138261169b565b6020808252825182820181905260009190848201906040850190845b81811015610b4c5783518352928401929184019160010161189b565b6000806000606084860312156118cc57600080fd5b6118d58461169b565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561191b5761191b6118ea565b604051601f8501601f19908116603f01168101908282118183101715611943576119436118ea565b8160405280935085815286868601111561195c57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561198857600080fd5b813567ffffffffffffffff81111561199f57600080fd5b8201601f810184136119b057600080fd5b61151884823560208401611900565b600080604083850312156119d257600080fd5b6119db8361169b565b9150602083013580151581146119f057600080fd5b809150509250929050565b60008060008060808587031215611a1157600080fd5b611a1a8561169b565b9350611a286020860161169b565b925060408501359150606085013567ffffffffffffffff811115611a4b57600080fd5b8501601f81018713611a5c57600080fd5b611a6b87823560208401611900565b91505092959194509250565b6080810161054582846117e5565b6020810161054582846116f7565b60008060408385031215611aa657600080fd5b611aaf8361169b565b9150611abd6020840161169b565b90509250929050565b600181811c90821680611ada57607f821691505b602082108103611afa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b601f82111561087557600081815260208120601f850160051c81016020861015611b3d5750805b601f850160051c820191505b8181101561085257828155600101611b49565b815167ffffffffffffffff811115611b7657611b766118ea565b611b8a81611b848454611ac6565b84611b16565b602080601f831160018114611bbf5760008415611ba75750858301515b600019600386901b1c1916600185901b178555610852565b600085815260208120601f198616915b82811015611bee57888601518255948401946001909101908401611bcf565b5085821015611c0c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561054557634e487b7160e01b600052601160045260246000fd5b6000808454611c4b81611ac6565b60018281168015611c635760018114611c7857611ca7565b60ff1984168752821515830287019450611ca7565b8860005260208060002060005b85811015611c9e5781548a820152908401908201611c85565b50505082870194505b505050508351611cbb81836020880161161f565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d0790830184611643565b9695505050505050565b600060208284031215611d2357600080fd5b8151610d13816115ec56fea2646970667358221220c1eede83b893ec9854f10b55de6453e5172e21238646a82f60517f538d80c9d364736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000046970667300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseURI (string): ipfs
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [2] : 6970667300000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
80729:2224:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39394:639;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;39394:639:0;;;;;;;;40296:100;;;:::i;:::-;;;;;;;:::i;46779:218::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;46779:218:0;1533:203:1;46220:400:0;;;;;;:::i;:::-;;:::i;:::-;;81940:122;;82018:11;;82031:22;;82018:11;;;;;81940:122;;;;;;;;;:::i;36047:323::-;36321:12;;35646:1;36305:13;:28;-1:-1:-1;;36305:46:0;36047:323;;;2967:25:1;;;2955:2;2940:18;36047:323:0;2821:177:1;50486:2817:0;;;;;;:::i;:::-;;:::i;53399:185::-;;;;;;:::i;:::-;;:::i;82278:110::-;;;;;;:::i;:::-;;:::i;81112:38::-;;;;;;75946:528;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;41689:152::-;;;;;;:::i;:::-;;:::i;80926:21::-;;;:::i;37231:233::-;;;;;;:::i;:::-;;:::i;29353:103::-;;;:::i;82526:150::-;;;;;;:::i;:::-;-1:-1:-1;;;;;82624:44:0;82597:7;82624:44;;;:35;:44;;;;;;;82526:150;79822:900;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;82396:122::-;;;;;;:::i;:::-;;:::i;28705:87::-;28751:7;28778:6;-1:-1:-1;;;;;28778:6:0;28705:87;;40472:104;;;:::i;76862:2513::-;;;;;;:::i;:::-;;:::i;82070:100::-;;;;;;:::i;:::-;;:::i;47337:308::-;;;;;;:::i;:::-;;:::i;81460:472::-;;;;;;:::i;:::-;;:::i;54182:399::-;;;;;;:::i;:::-;;:::i;81036:67::-;;;;;;:::i;:::-;;;;;;;;;;;;;;75359:428;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;82684:266::-;;;;;;:::i;:::-;;:::i;81301:151::-;;;:::i;80956:23::-;;;;;;;;;;;;;;;;:::i;47802:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;47923:25:0;;;47899:4;47923:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;47802:164;29611:201;;;;;;:::i;:::-;;:::i;82178:92::-;;;;;;:::i;:::-;;:::i;39394:639::-;39479:4;-1:-1:-1;;;;;;;;;39803:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;39880:25:0;;;39803:102;:179;;;-1:-1:-1;;;;;;;;;;39957:25:0;;;39803:179;39783:199;39394:639;-1:-1:-1;;39394:639:0:o;40296:100::-;40350:13;40383:5;40376:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40296:100;:::o;46779:218::-;46855:7;46880:16;46888:7;46880;:16::i;:::-;46875:64;;46905:34;;-1:-1:-1;;;46905:34:0;;;;;;;;;;;46875:64;-1:-1:-1;46959:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;46959:30:0;;46779:218::o;46220:400::-;46301:13;46317:16;46325:7;46317;:16::i;:::-;46301:32;-1:-1:-1;70077:10:0;-1:-1:-1;;;;;46350:28:0;;;46346:175;;46398:44;46415:5;70077:10;47802:164;:::i;46398:44::-;46393:128;;46470:35;;-1:-1:-1;;;46470:35:0;;;;;;;;;;;46393:128;46533:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;46533:35:0;-1:-1:-1;;;;;46533:35:0;;;;;;;;;46584:28;;46533:24;;46584:28;;;;;;;46290:330;46220:400;;:::o;50486:2817::-;50620:27;50650;50669:7;50650:18;:27::i;:::-;50620:57;;50735:4;-1:-1:-1;;;;;50694:45:0;50710:19;-1:-1:-1;;;;;50694:45:0;;50690:86;;50748:28;;-1:-1:-1;;;50748:28:0;;;;;;;;;;;50690:86;50790:27;49600:24;;;:15;:24;;;;;49822:26;;70077:10;49225:30;;;-1:-1:-1;;;;;48918:28:0;;49203:20;;;49200:56;50976:180;;51069:43;51086:4;70077:10;47802:164;:::i;51069:43::-;51064:92;;51121:35;;-1:-1:-1;;;51121:35:0;;;;;;;;;;;51064:92;-1:-1:-1;;;;;51173:16:0;;51169:52;;51198:23;;-1:-1:-1;;;51198:23:0;;;;;;;;;;;51169:52;51370:15;51367:160;;;51510:1;51489:19;51482:30;51367:160;-1:-1:-1;;;;;51907:24:0;;;;;;;:18;:24;;;;;;51905:26;;-1:-1:-1;;51905:26:0;;;51976:22;;;;;;;;;51974:24;;-1:-1:-1;51974:24:0;;;45078:11;45053:23;45049:41;45036:63;-1:-1:-1;;;45036:63:0;52269:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;52564:47:0;;:52;;52560:627;;52669:1;52659:11;;52637:19;52792:30;;;:17;:30;;;;;;:35;;52788:384;;52930:13;;52915:11;:28;52911:242;;53077:30;;;;:17;:30;;;;;:52;;;52911:242;52618:569;52560:627;53234:7;53230:2;-1:-1:-1;;;;;53215:27:0;53224:4;-1:-1:-1;;;;;53215:27:0;;;;;;;;;;;53253:42;50609:2694;;;50486:2817;;;:::o;53399:185::-;53537:39;53554:4;53560:2;53564:7;53537:39;;;;;;;;;;;;:16;:39::i;:::-;53399:185;;;:::o;82278:110::-;28591:13;:11;:13::i;:::-;82349:22:::1;:31:::0;82278:110::o;75946:528::-;76090:23;76181:8;76156:22;76181:8;76248:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76248:36:0;;-1:-1:-1;;76248:36:0;;;;;;;;;;;;76211:73;;76304:9;76299:125;76320:14;76315:1;:19;76299:125;;76376:32;76396:8;;76405:1;76396:11;;;;;;;:::i;:::-;;;;;;;76376:19;:32::i;:::-;76360:10;76371:1;76360:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;76336:3;;76299:125;;;-1:-1:-1;76445:10:0;75946:528;-1:-1:-1;;;;75946:528:0:o;41689:152::-;41761:7;41804:27;41823:7;41804:18;:27::i;80926:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;37231:233::-;37303:7;-1:-1:-1;;;;;37327:19:0;;37323:60;;37355:28;;-1:-1:-1;;;37355:28:0;;;;;;;;;;;37323:60;-1:-1:-1;;;;;;37401:25:0;;;;;:18;:25;;;;;;31390:13;37401:55;;37231:233::o;29353:103::-;28591:13;:11;:13::i;:::-;29418:30:::1;29445:1;29418:18;:30::i;:::-;29353:103::o:0;79822:900::-;79900:16;79954:19;79988:25;80028:22;80053:16;80063:5;80053:9;:16::i;:::-;80028:41;;80084:25;80126:14;80112:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80112:29:0;;80084:57;;80156:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80156:31:0;35646:1;80202:472;80251:14;80236:11;:29;80202:472;;80303:15;80316:1;80303:12;:15::i;:::-;80291:27;;80341:9;:16;;;80382:8;80337:73;80432:14;;-1:-1:-1;;;;;80432:28:0;;80428:111;;80505:14;;;-1:-1:-1;80428:111:0;80582:5;-1:-1:-1;;;;;80561:26:0;:17;-1:-1:-1;;;;;80561:26:0;;80557:102;;80638:1;80612:8;80621:13;;;;;;80612:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;80557:102;80267:3;;80202:472;;;-1:-1:-1;80695:8:0;;79822:900;-1:-1:-1;;;;;;79822:900:0:o;82396:122::-;-1:-1:-1;;;;;37635:25:0;;82461:7;37635:25;;;:18;:25;;31528:2;37635:25;;;;31390:13;37635:50;;37634:82;82488:22;37546:178;40472:104;40528:13;40561:7;40554:14;;;;;:::i;76862:2513::-;77005:16;77072:4;77063:5;:13;77059:45;;77085:19;;-1:-1:-1;;;77085:19:0;;;;;;;;;;;77059:45;77119:19;77153:17;77173:14;35816:13;;;35734:103;77173:14;77153:34;-1:-1:-1;35646:1:0;77265:5;:23;77261:87;;;35646:1;77309:23;;77261:87;77424:9;77417:4;:16;77413:73;;;77461:9;77454:16;;77413:73;77500:25;77528:16;77538:5;77528:9;:16::i;:::-;77500:44;;77722:4;77714:5;:12;77710:278;;;77769:12;;;77804:31;;;77800:111;;;77880:11;77860:31;;77800:111;77728:198;77710:278;;;-1:-1:-1;77971:1:0;77710:278;78002:25;78044:17;78030:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78030:32:0;;78002:60;;78081:17;78102:1;78081:22;78077:78;;78131:8;-1:-1:-1;78124:15:0;;-1:-1:-1;;;78124:15:0;78077:78;78299:31;78333:26;78353:5;78333:19;:26::i;:::-;78299:60;;78374:25;78619:9;:16;;;78614:92;;-1:-1:-1;78676:14:0;;78614:92;78737:5;78720:478;78749:4;78744:1;:9;;:45;;;;;78772:17;78757:11;:32;;78744:45;78720:478;;;78827:15;78840:1;78827:12;:15::i;:::-;78815:27;;78865:9;:16;;;78906:8;78861:73;78956:14;;-1:-1:-1;;;;;78956:28:0;;78952:111;;79029:14;;;-1:-1:-1;78952:111:0;79106:5;-1:-1:-1;;;;;79085:26:0;:17;-1:-1:-1;;;;;79085:26:0;;79081:102;;79162:1;79136:8;79145:13;;;;;;79136:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;79081:102;78791:3;;78720:478;;;-1:-1:-1;;;79283:29:0;;;-1:-1:-1;79290:8:0;;-1:-1:-1;;76862:2513:0;;;;;;:::o;82070:100::-;28591:13;:11;:13::i;:::-;82144:7:::1;:18;82154:8:::0;82144:7;:18:::1;:::i;:::-;;82070:100:::0;:::o;47337:308::-;70077:10;-1:-1:-1;;;;;47436:31:0;;;47432:61;;47476:17;;-1:-1:-1;;;47476:17:0;;;;;;;;;;;47432:61;70077:10;47506:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;47506:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;47506:60:0;;;;;;;;;;47582:55;;540:41:1;;;47506:49:0;;70077:10;47582:55;;513:18:1;47582:55:0;;;;;;;47337:308;;:::o;81460:472::-;81539:15;81524:11;;;;:30;;;;;;;;:::i;:::-;;81521:66;;81556:31;;-1:-1:-1;;;81556:31:0;;12103:2:1;81556:31:0;;;12085:21:1;12142:2;12122:18;;;12115:30;-1:-1:-1;;;12161:18:1;;;12154:51;12222:18;;81556:31:0;;;;;;;;81521:66;36321:12;;35646:1;36305:13;81023:4;;81617:9;;36305:28;-1:-1:-1;;36305:46:0;81601:25;;;;:::i;:::-;:40;81598:94;;;81643:49;;-1:-1:-1;;;81643:49:0;;12680:2:1;81643:49:0;;;12662:21:1;12719:2;12699:18;;;12692:30;12758:34;12738:18;;;12731:62;-1:-1:-1;;;12809:18:1;;;12802:37;12856:19;;81643:49:0;12478:403:1;81598:94:0;81768:22;;81742:10;81706:47;;;;:35;:47;;;;;;:59;;81756:9;;81706:59;:::i;:::-;:84;81703:111;;;81792:22;;-1:-1:-1;;;81792:22:0;;13088:2:1;81792:22:0;;;13070:21:1;13127:2;13107:18;;;13100:30;-1:-1:-1;;;13146:18:1;;;13139:42;13198:18;;81792:22:0;12886:336:1;81703:111:0;81825:28;81831:10;81843:9;81825:5;:28::i;:::-;81900:10;81864:47;;;;:35;:47;;;;;:60;;81915:9;;81864:47;:60;;81915:9;;81864:60;:::i;:::-;;;;-1:-1:-1;;;81460:472:0:o;54182:399::-;54349:31;54362:4;54368:2;54372:7;54349:12;:31::i;:::-;-1:-1:-1;;;;;54395:14:0;;;:19;54391:183;;54434:56;54465:4;54471:2;54475:7;54484:5;54434:30;:56::i;:::-;54429:145;;54518:40;;-1:-1:-1;;;54518:40:0;;;;;;;;;;;54429:145;54182:399;;;;:::o;75359:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35646:1:0;75523:7;:25;:54;;;-1:-1:-1;35816:13:0;;75552:7;:25;;75523:54;75519:103;;;75601:9;75359:428;-1:-1:-1;;75359:428:0:o;75519:103::-;75644:21;75657:7;75644:12;:21::i;:::-;75632:33;;75680:9;:16;;;75676:65;;;75720:9;75359:428;-1:-1:-1;;75359:428:0:o;75676:65::-;75758:21;75771:7;75758:12;:21::i;82684:266::-;82774:13;82808:17;82816:8;82808:7;:17::i;:::-;82800:61;;;;-1:-1:-1;;;82800:61:0;;13429:2:1;82800:61:0;;;13411:21:1;13468:2;13448:18;;;13441:30;13507:33;13487:18;;;13480:61;13558:18;;82800:61:0;13227:355:1;82800:61:0;82903:7;82912:19;82922:8;82912:9;:19::i;:::-;82886:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;82872:70;;82684:266;;;:::o;81301:151::-;28591:13;:11;:13::i;:::-;36321:12;;35646:1;36305:13;:28;-1:-1:-1;;36305:46:0;81359:18;81356:57:::1;;81379:34;::::0;-1:-1:-1;;;81379:34:0;;14981:2:1;81379:34:0::1;::::0;::::1;14963:21:1::0;15020:2;15000:18;;;14993:30;15059:26;15039:18;;;15032:54;15103:18;;81379:34:0::1;14779:348:1::0;81356:57:0::1;81424:20;81430:10;81442:1;81424:5;:20::i;29611:201::-:0;28591:13;:11;:13::i;:::-;-1:-1:-1;;;;;29700:22:0;::::1;29692:73;;;::::0;-1:-1:-1;;;29692:73:0;;15334:2:1;29692:73:0::1;::::0;::::1;15316:21:1::0;15373:2;15353:18;;;15346:30;15412:34;15392:18;;;15385:62;-1:-1:-1;;;15463:18:1;;;15456:36;15509:19;;29692:73:0::1;15132:402:1::0;29692:73:0::1;29776:28;29795:8;29776:18;:28::i;:::-;29611:201:::0;:::o;82178:92::-;28591:13;:11;:13::i;:::-;82256:5:::1;82251:11;;;;;;;;:::i;:::-;82237;:25:::0;;-1:-1:-1;;82237:25:0::1;::::0;;::::1;::::0;::::1;;;;;;:::i;:::-;;;;;;82178:92:::0;:::o;48224:282::-;48289:4;48345:7;35646:1;48326:26;;:66;;;;;48379:13;;48369:7;:23;48326:66;:153;;;;-1:-1:-1;;48430:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;48430:44:0;:49;;48224:282::o;42844:1275::-;42911:7;42946;;35646:1;42995:23;42991:1061;;43048:13;;43041:4;:20;43037:1015;;;43086:14;43103:23;;;:17;:23;;;;;;;-1:-1:-1;;;43192:24:0;;:29;;43188:845;;43857:113;43864:6;43874:1;43864:11;43857:113;;-1:-1:-1;;;43935:6:0;43917:25;;;;:17;:25;;;;;;43857:113;;43188:845;43063:989;43037:1015;44080:31;;-1:-1:-1;;;44080:31:0;;;;;;;;;;;28870:132;28751:7;28778:6;-1:-1:-1;;;;;28778:6:0;70077:10;28934:23;28926:68;;;;-1:-1:-1;;;28926:68:0;;15741:2:1;28926:68:0;;;15723:21:1;;;15760:18;;;15753:30;15819:34;15799:18;;;15792:62;15871:18;;28926:68:0;15539:356:1;29972:191:0;30046:16;30065:6;;-1:-1:-1;;;;;30082:17:0;;;-1:-1:-1;;;;;;30082:17:0;;;;;;30115:40;;30065:6;;;;;;;30115:40;;30046:16;30115:40;30035:128;29972:191;:::o;42292:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42420:24:0;;;;:17;:24;;;;;;42401:44;;:18;:44::i;57843:2454::-;57939:13;;57916:20;57967:13;;;57963:44;;57989:18;;-1:-1:-1;;;57989:18:0;;;;;;;;;;;57963:44;-1:-1:-1;;;;;58495:22:0;;;;;;:18;:22;;;;31528:2;58495:22;;;:71;;58533:32;58521:45;;58495:71;;;58809:31;;;:17;:31;;;;;-1:-1:-1;45509:15:0;;45483:24;45479:46;45078:11;45053:23;45049:41;45046:52;45036:63;;58809:173;;59044:23;;;;58809:31;;58495:22;;59543:25;58495:22;;59396:335;59811:1;59797:12;59793:20;59751:346;59852:3;59843:7;59840:16;59751:346;;60070:7;60060:8;60057:1;60030:25;60027:1;60024;60019:59;59905:1;59892:15;59751:346;;;59755:77;60130:8;60142:1;60130:13;60126:45;;60152:19;;-1:-1:-1;;;60152:19:0;;;;;;;;;;;60126:45;60188:13;:19;-1:-1:-1;53399:185:0;;;:::o;56665:716::-;56849:88;;-1:-1:-1;;;56849:88:0;;56828:4;;-1:-1:-1;;;;;56849:45:0;;;;;:88;;70077:10;;56916:4;;56922:7;;56931:5;;56849:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56849:88:0;;;;;;;;-1:-1:-1;;56849:88:0;;;;;;;;;;;;:::i;:::-;;;56845:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57132:6;:13;57149:1;57132:18;57128:235;;57178:40;;-1:-1:-1;;;57178:40:0;;;;;;;;;;;57128:235;57321:6;57315:13;57306:6;57302:2;57298:15;57291:38;56845:529;-1:-1:-1;;;;;;57008:64:0;-1:-1:-1;;;57008:64:0;;-1:-1:-1;56845:529:0;56665:716;;;;;;:::o;42030:166::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42141:47:0;42160:27;42179:7;42160:18;:27::i;:::-;42141:18;:47::i;70197:2002::-;70674:4;70668:11;;70681:3;70664:21;;70759:17;;;;71455:11;;;71334:5;71621:2;71635;71625:13;;71617:22;71455:11;71604:36;71676:2;71666:13;;71226:731;71695:4;71226:731;;;71886:1;71881:3;71877:11;71870:18;;71937:2;71931:4;71927:13;71923:2;71919:22;71914:3;71906:36;71790:2;71780:13;;71226:731;;;-1:-1:-1;71987:13:0;;;-1:-1:-1;;72102:12:0;;;72162:19;;;72102:12;70197:2002;-1:-1:-1;70197:2002:0:o;44218:366::-;-1:-1:-1;;;;;;;;;;;;;44328:41:0;;;;32049:3;44414:33;;;44380:68;;-1:-1:-1;;;44380:68:0;-1:-1:-1;;;44478:24:0;;:29;;-1:-1:-1;;;44459:48:0;;;;32570:3;44547:28;;;;-1:-1:-1;;;44518:58:0;-1:-1:-1;44218:366:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;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:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;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:1: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:1;;-1:-1:-1;;;;3336:615:1:o;3956:349::-;4040:12;;-1:-1:-1;;;;;4036:38:1;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:1;6162:18;;;6149:32;;5865:322;-1:-1:-1;;;5865:322:1: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:1;;;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:1;;7309:1;7306;7299:12;7258:55;7332:74;7398:7;7393:2;7380:16;7375:2;7371;7367:11;7332:74;:::i;7417:347::-;7482:6;7490;7543:2;7531:9;7522:7;7518:23;7514:32;7511:52;;;7559:1;7556;7549:12;7511:52;7582:29;7601:9;7582:29;:::i;:::-;7572:39;;7661:2;7650:9;7646:18;7633:32;7708:5;7701:13;7694:21;7687:5;7684:32;7674:60;;7730:1;7727;7720:12;7674:60;7753:5;7743:15;;;7417:347;;;;;:::o;7769:667::-;7864:6;7872;7880;7888;7941:3;7929:9;7920:7;7916:23;7912:33;7909:53;;;7958:1;7955;7948:12;7909:53;7981:29;8000:9;7981:29;:::i;:::-;7971:39;;8029:38;8063:2;8052:9;8048:18;8029:38;:::i;:::-;8019:48;;8114:2;8103:9;8099:18;8086:32;8076:42;;8169:2;8158:9;8154:18;8141:32;8196:18;8188:6;8185:30;8182:50;;;8228:1;8225;8218:12;8182:50;8251:22;;8304:4;8296:13;;8292:27;-1:-1:-1;8282:55:1;;8333:1;8330;8323:12;8282:55;8356:74;8422:7;8417:2;8404:16;8399:2;8395;8391:11;8356:74;:::i;:::-;8346:84;;;7769:667;;;;;;;:::o;8441:266::-;8637:3;8622:19;;8650:51;8626:9;8683:6;8650:51;:::i;8712:198::-;8853:2;8838:18;;8865:39;8842:9;8886:6;8865:39;:::i;8915:260::-;8983:6;8991;9044:2;9032:9;9023:7;9019:23;9015:32;9012:52;;;9060:1;9057;9050:12;9012:52;9083:29;9102:9;9083:29;:::i;:::-;9073:39;;9131:38;9165:2;9154:9;9150:18;9131:38;:::i;:::-;9121:48;;8915:260;;;;;:::o;9180:380::-;9259:1;9255:12;;;;9302;;;9323:61;;9377:4;9369:6;9365:17;9355:27;;9323:61;9430:2;9422:6;9419:14;9399:18;9396:38;9393:161;;9476:10;9471:3;9467:20;9464:1;9457:31;9511:4;9508:1;9501:15;9539:4;9536:1;9529:15;9393:161;;9180:380;;;:::o;9565:127::-;9626:10;9621:3;9617:20;9614:1;9607:31;9657:4;9654:1;9647:15;9681:4;9678:1;9671:15;9823:545;9925:2;9920:3;9917:11;9914:448;;;9961:1;9986:5;9982:2;9975:17;10031:4;10027:2;10017:19;10101:2;10089:10;10085:19;10082:1;10078:27;10072:4;10068:38;10137:4;10125:10;10122:20;10119:47;;;-1:-1:-1;10160:4:1;10119:47;10215:2;10210:3;10206:12;10203:1;10199:20;10193:4;10189:31;10179:41;;10270:82;10288:2;10281:5;10278:13;10270:82;;;10333:17;;;10314:1;10303:13;10270:82;;10544:1352;10670:3;10664:10;10697:18;10689:6;10686:30;10683:56;;;10719:18;;:::i;:::-;10748:97;10838:6;10798:38;10830:4;10824:11;10798:38;:::i;:::-;10792:4;10748:97;:::i;:::-;10900:4;;10964:2;10953:14;;10981:1;10976:663;;;;11683:1;11700:6;11697:89;;;-1:-1:-1;11752:19:1;;;11746:26;11697:89;-1:-1:-1;;10501:1:1;10497:11;;;10493:24;10489:29;10479:40;10525:1;10521:11;;;10476:57;11799:81;;10946:944;;10976:663;9770:1;9763:14;;;9807:4;9794:18;;-1:-1:-1;;11012:20:1;;;11130:236;11144:7;11141:1;11138:14;11130:236;;;11233:19;;;11227:26;11212:42;;11325:27;;;;11293:1;11281:14;;;;11160:19;;11130:236;;;11134:3;11394:6;11385:7;11382:19;11379:201;;;11455:19;;;11449:26;-1:-1:-1;;11538:1:1;11534:14;;;11550:3;11530:24;11526:37;11522:42;11507:58;11492:74;;11379:201;-1:-1:-1;;;;;11626:1:1;11610:14;;;11606:22;11593:36;;-1:-1:-1;10544:1352:1:o;12251:222::-;12316:9;;;12337:10;;;12334:133;;;12389:10;12384:3;12380:20;12377:1;12370:31;12424:4;12421:1;12414:15;12452:4;12449:1;12442:15;13587:1187;13864:3;13893:1;13926:6;13920:13;13956:36;13982:9;13956:36;:::i;:::-;14011:1;14028:18;;;14055:133;;;;14202:1;14197:356;;;;14021:532;;14055:133;-1:-1:-1;;14088:24:1;;14076:37;;14161:14;;14154:22;14142:35;;14133:45;;;-1:-1:-1;14055:133:1;;14197:356;14228:6;14225:1;14218:17;14258:4;14303:2;14300:1;14290:16;14328:1;14342:165;14356:6;14353:1;14350:13;14342:165;;;14434:14;;14421:11;;;14414:35;14477:16;;;;14371:10;;14342:165;;;14346:3;;;14536:6;14531:3;14527:16;14520:23;;14021:532;;;;;14584:6;14578:13;14600:68;14659:8;14654:3;14647:4;14639:6;14635:17;14600:68;:::i;:::-;-1:-1:-1;;;14690:18:1;;14717:22;;;14766:1;14755:13;;13587:1187;-1:-1:-1;;;;13587:1187:1:o;15900:489::-;-1:-1:-1;;;;;16169:15:1;;;16151:34;;16221:15;;16216:2;16201:18;;16194:43;16268:2;16253:18;;16246:34;;;16316:3;16311:2;16296:18;;16289:31;;;16094:4;;16337:46;;16363:19;;16355:6;16337:46;:::i;:::-;16329:54;15900:489;-1:-1:-1;;;;;;15900:489:1:o;16394:249::-;16463:6;16516:2;16504:9;16495:7;16491:23;16487:32;16484:52;;;16532:1;16529;16522:12;16484:52;16564:9;16558:16;16583:30;16607:5;16583:30;:::i
Swarm Source
ipfs://c1eede83b893ec9854f10b55de6453e5172e21238646a82f60517f538d80c9d3
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.