ERC-721
Overview
Max Total Supply
2,222 WW
Holders
592
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 WWLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WomansWorld
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract WomansWorld is ERC721A, Ownable, ReentrancyGuard { struct CustomMetadata { string URI; bool status; } struct UpdateMetadata { uint256 tokenId; string uri; } uint256 public maxSupply = 2222; uint256 public maxMintNum = 5; uint256 public mintPrice; uint256 public whitePrice = 0.005 ether; uint256 public blackPrice = 0.007 ether; bool public revealed; bool public isPublic; string private prevealURI; string private BaseURI; bytes32 public whitelistRoot; mapping(uint256 => CustomMetadata) private customizedMetadata; mapping(address => uint256) public mintedNumber; mapping(address => uint256) public whiteMintedNumber; mapping(address => bool) public excludedAccount; event Revealed(uint256 revealedTimestamp); event Withdraw(address to, uint256 amount); constructor(string memory _BaseURI, string memory _prevealURI) ERC721A("Woman's world", "WW") { BaseURI = _BaseURI; prevealURI = _prevealURI; } function mint(uint256 quality, bytes32[] memory proof) public nonReentrant payable { require(quality + totalSupply() <= maxSupply, "NFT supply is full"); if (!excludedAccount[msg.sender] && msg.sender != owner()) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); bool whitelisted = MerkleProof.verify(proof, whitelistRoot, leaf); uint256 payFee; uint256 whited = whiteMintedNumber[msg.sender]; uint256 minted = mintedNumber[msg.sender]; if (!isPublic) { require(whitelisted, "Sender is not in whitelist"); if (minted + quality > 2) payFee = whitePrice * (quality - (2 - whited)); if (whited < 2) whiteMintedNumber[msg.sender] = (minted + quality) >= 2 ? 2 : ++ whited; } else { if (whitelisted) { if (minted + quality > 3) payFee = blackPrice * (quality - (3 - whited)); if (whited < 3) whiteMintedNumber[msg.sender] = (minted + quality) >= 3 ? 3 : (whited + quality); } else { if (whited == 0) whiteMintedNumber[msg.sender] ++; payFee = blackPrice * (quality - (1 - whited)); } } require(msg.value >= payFee, "Not enough fee"); if (msg.value - payFee > 0) payable(msg.sender).transfer(msg.value - payFee); mintedNumber[msg.sender] += quality; } _mint(msg.sender, quality); } function bulkMint(address to, uint256 quality) external onlyOwner { require(to != address(0), "zero address"); require(quality + totalSupply() <= maxSupply, "NFT supply is full"); _mint(to, quality); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); if (!revealed) return prevealURI; if (customizedMetadata[tokenId].status) return customizedMetadata[tokenId].URI; string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId), ".json")) : prevealURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return BaseURI; } function reveal(bool status) external onlyOwner { revealed = status; emit Revealed(block.timestamp); } function updateMetadata(UpdateMetadata[] memory _URIs) external onlyOwner { require(_URIs.length > 0, "WW: empty uris"); for (uint256 i; i < _URIs.length; i ++) { customizedMetadata[_URIs[i].tokenId] = CustomMetadata(_URIs[i].uri, true); } } function updateMintPrice(uint256 _price) external onlyOwner { mintPrice = _price; } function updateWhitelistRoot(bytes32 root) external onlyOwner { whitelistRoot = root; } function withdraw(address to, uint256 amount) external onlyOwner { payable(to).transfer(amount); emit Withdraw(to, amount); } function updateBulkExcludeAccounts(address[] memory accounts, bool status) external onlyOwner { require(accounts.length > 0, "empty list"); for (uint i; i < accounts.length; i ++) { require(accounts[i] != address(0), "invalid address"); excludedAccount[accounts[i]] = status; } } function updateExcludeAccount(address account, bool status) external onlyOwner { require(account != address(0), "invalid address"); excludedAccount[account] = status; } function goToPublic(bool status) external onlyOwner { isPublic = status; } function updateWhitePrice(uint256 newPrice) external onlyOwner { require(whitePrice != newPrice, "Already set"); whitePrice = newPrice; } function updateBlackPrice(uint256 newPrice) external onlyOwner { require(blackPrice != newPrice, "Already set"); blackPrice = newPrice; } function updateCoreURI(string memory _base, string memory preveal) external onlyOwner { BaseURI = _base; prevealURI = preveal; } receive() external payable { } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_BaseURI","type":"string"},{"internalType":"string","name":"_prevealURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"revealedTimestamp","type":"uint256"}],"name":"Revealed","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blackPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quality","type":"uint256"}],"name":"bulkMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bool","name":"status","type":"bool"}],"name":"goToPublic","outputs":[],"stateMutability":"nonpayable","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":"isPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quality","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedNumber","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updateBlackPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"status","type":"bool"}],"name":"updateBulkExcludeAccounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_base","type":"string"},{"internalType":"string","name":"preveal","type":"string"}],"name":"updateCoreURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"updateExcludeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"internalType":"struct WomansWorld.UpdateMetadata[]","name":"_URIs","type":"tuple[]"}],"name":"updateMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"updateMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updateWhitePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"updateWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteMintedNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234156200001057600080fd5b62002ff280380362000022816200026f565b818382398181019250604081840312156200003c57600080fd5b805191506001600160401b03808311156200005657600080fd5b6200006484848401620002a2565b9250602080830151828111156200007a57600080fd5b6200008886828601620002a2565b9550506200009562000244565b9250600d83526c15dbdb585b89dcc81ddbdc9b19609a1b81840152620000ba62000244565b6002815261575760f01b82820152835183811115620000dd57620000dd6200022e565b620000f581620000ef60025462000337565b62000374565b9192508291601f811160018114620001305760008215620001165750858501515b600019600384901b1c1916600183901b176002556200019a565b6002600052601f19821660008051602062002f9283398151915260005b828110156200016e578888015182559686019660019091019086016200014d565b50838210156200018d5787870151600019600386901b60f8161c191681555b505060018260011b016002555b5050620001a781620004e1565b50505050620001b66001600055565b620001c13362000783565b620001cc6001600955565b620001d86108ae600a55565b620001e36005600b55565b620001f46611c37937e08000600d55565b620002056618de76816d8000600e55565b6200021081620005cd565b506200021c81620006a8565b506040516127c380620007cf83398082f35b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156200026957620002696200022e565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200029a576200029a6200022e565b604052919050565b600082601f830112620002b457600080fd5b81516001600160401b03811115620002d057620002d06200022e565b6020620002e6601f8301601f191682016200026f565b8281528582848701011115620002fb57600080fd5b60005b838110156200031b578581018301518282018401528201620002fe565b838111156200032d5760008385840101525b5095945050505050565b600181811c908216806200034c57607f821691505b602082108114156200036e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f811115620003d0576002600090815260008051602062002f92833981519152601f840160051c81016020851015620003ab5750805b601f840160051c820191505b81811015620003cc57828155600101620003b7565b5050505b5050565b601f811115620003d057600360009081527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c81016020851015620003ab5750601f830160051c81019081811015620003cc57828155600101620003b7565b601f811115620003d0576011600090815260008051602062002fb2833981519152601f840160051c81016020851015620003ab5750601f830160051c81019081811015620003cc57828155600101620003b7565b601f811115620003d0576010600090815260008051602062002fd2833981519152601f840160051c81016020851015620003ab5750601f830160051c81019081811015620003cc57828155600101620003b7565b80516001600160401b03811115620004fd57620004fd6200022e565b62000515816200050f60035462000337565b620003d4565b602080601f8311600181146200054e5760008415620005345750848301515b8460011b6000198660031b1c1982161760035550620003cc565b6003600052601f1984167fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60005b828110156200059d578786015182559484019460019091019084016200057c565b5085821015620005bc5786850151600019600388901b60f8161c191681555b5050505050600190811b0160035550565b80516001600160401b03811115620005e957620005e96200022e565b6200060181620005fb60115462000337565b62000439565b602080601f8311600181146200063a5760008415620006205750848301515b600019600386901b1c1916600185901b17601155620003cc565b6011600052601f19841660008051602062002fb283398151915260005b82811015620006785787860151825594840194600190910190840162000657565b5085821015620006975786850151600019600388901b60f8161c191681555b5050505050600190811b0160115550565b80516001600160401b03811115620006c457620006c46200022e565b620006dc81620006d660105462000337565b6200048d565b602080601f831160018114620007155760008415620006fb5750848301515b600019600386901b1c1916600185901b17601055620003cc565b6010600052601f19841660008051602062002fd283398151915260005b82811015620007535787860151825594840194600190910190840162000732565b5085821015620007725786850151600019600388901b60f8161c191681555b5050505050600190811b0160105550565b60085460018060a01b0380831660018060a01b0319831617600855828183167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350505056fe60406080815260043610610766576000803560e01c62728e4681146101db576301ffc9a781146101fb576306fdde0381146102265763081812fc811461024e5763095ea7b3811461027c576318160ddd8114610296576323b872dd81146102c05763386bfc9881146102dc57633a1effb381146102fc57633b7f55fb811461031957633d4ed9e58114610339576342842e0e8114610354576345f3d65f811461036857634ba6ba8c811461038357635183022781146103a357636352211e81146103cf57636817c76c81146103ea57636fdfad2c811461040a57636febacf18114610427576370a0823181146104585763715018a68114610473576371b9c1b8811461048e57637b0f7a2b81146104a957638da5cb5b81146104dd5763940cd05b8114610509576395d89b4181146105245763a22cb465811461053f5763a8c90cb2811461055c5763b88d4fde81146105795763ba41b0c681146105975763c492b02181146105aa5763c51a8ace81146105ca5763c87b56dd81146105e55763d5abeb0181146106005763dc9a153581146106205763e985e9c5811461064f5763ea9765d481146106c25763ed0718aa81146106f35763f2fde38b81146107105763f3fef3a3811461072b5763f73d308a811461074857610763565b34156101e5578182fd5b6101f66101f136610773565b611d4e565b818351f35b3415610205578182fd5b610216610211366107a8565b6120f0565b83518115158152602081f35b0381f35b3415610230578182fd5b610239366107ce565b6102416115ce565b835180610222838361083c565b3415610258578182fd5b61026961026436610773565b61225e565b83516001600160a01b0382168152602081f35b61028536610872565b61028f81836121be565b5050818351f35b34156102a0578182fd5b6102a9366107ce565b6000546001546000199103015b8351818152602081f35b6102c9366108aa565b6102d4818385612334565b505050818351f35b34156102e6578182fd5b6102ef366107ce565b6012548351818152602081f35b3415610306578182fd5b61030f366109a7565b61028f8183611dd4565b3415610323578182fd5b61032c366107ce565b600d548351818152602081f35b3415610343578182fd5b6101f661034f36610aeb565b6119bf565b61035d366108aa565b6102d48183856124a7565b3415610372578182fd5b6101f661037e36610773565b611fa4565b341561038d578182fd5b610396366107ce565b600b548351818152602081f35b34156103ad578182fd5b6103b6366107ce565b60ff600f54168351806102228383901515815260200190565b34156103d9578182fd5b6102696103e536610773565b612132565b34156103f4578182fd5b6103fd366107ce565b600c548351818152602081f35b3415610414578182fd5b61041d36610bed565b61028f8183611fbf565b3415610431578182fd5b6102b661043d36610c51565b6001600160a01b031660009081526015602052604090205490565b3415610462578182fd5b6102b661046e36610c51565b6120af565b341561047d578182fd5b610486366107ce565b6101f6610e6f565b3415610498578182fd5b6101f66104a436610773565b611f51565b34156104b3578182fd5b6102166104bf36610c51565b6001600160a01b031660009081526016602052604090205460ff1690565b34156104e7578182fd5b6104f0366107ce565b60085483516001600160a01b0390911680825290602081f35b3415610513578182fd5b6101f661051f36610c7d565b611975565b341561052e578182fd5b610537366107ce565b610241611677565b3415610549578182fd5b61055236610ca2565b61028f818361229b565b3415610566578182fd5b61056f36610872565b61028f8183611519565b61058236610cea565b61058e818385876124d8565b50505050818351f35b6105a036610d79565b61028f8183610fc9565b34156105b4578182fd5b6105bd366107ce565b600e548351818152602081f35b34156105d4578182fd5b6101f66105e036610c7d565b611f2e565b34156105ef578182fd5b6102416105fb36610773565b611877565b341561060a578182fd5b610613366107ce565b600a548351818152602081f35b341561062a578182fd5b610633366107ce565b60ff600f5460081c168351806102228383901515815260200190565b3415610659578182fd5b61066236610e23565b6106ac6106a582610687856001600160a01b0316600090815260076020526040902090565b6001600160a01b039190911660009081526020919091526040902090565b5460ff1690565b9150508351806102228383901515815260200190565b34156106cc578182fd5b6102b66106d836610c51565b6001600160a01b031660009081526014602052604090205490565b34156106fd578182fd5b61070636610ca2565b61028f8183611eed565b341561071a578182fd5b6101f661072636610c51565b610f17565b3415610735578182fd5b61073e36610872565b61028f8183611d68565b3415610752578182fd5b6101f661075e36610773565b611d5b565b50505b503661076e57005b600080fd5b600060206003198301121561078757600080fd5b505060043590565b6001600160e01b0319811681146107a557600080fd5b50565b60006020600319830112156107bc57600080fd5b6004356107c88161078f565b92915050565b6000600319820112156107a557600080fd5b60005b838110156107fb5781810151838201526020016107e3565b8381111561080a576000848401525b50505050565b600081518084526108288160208601602086016107e0565b601f01601f19169290920160200192915050565b60208152600061084f6020830184610810565b9392505050565b80356001600160a01b038116811461086d57600080fd5b919050565b60008060406003198401121561088757600080fd5b6004356001600160a01b038116811461089f57600080fd5b936024359350915050565b600080806060600319850112156108c057600080fd5b6004356001600160a01b0380821682146108d957600080fd5b9093506024359080821682146108ee57600080fd5b50929492935050604435919050565b634e487b7160e01b600052604160045260246000fd5b604081018181106001600160401b0382111715610932576109326108fd565b60405250565b601f8201601f191681016001600160401b038111828210171561095d5761095d6108fd565b6040525050565b60405161097081610913565b90565b60006001600160401b0382111561098c5761098c6108fd565b5060051b60200190565b602435801515811461097057600080fd5b6000806040600319840112156109bc57600080fd5b6004356001600160401b038111156109d357600080fd5b8360238201126109e257600080fd5b80600401356109f081610973565b6040516109fd8282610938565b82815260059290921b8301602401916020808201925087841115610a2057600080fd5b6024850194505b83851015610a4757610a3885610856565b83529384019391820191610a27565b5080955050505050610a57610996565b9050915091565b60006001600160401b03821115610a7757610a776108fd565b50601f01601f191660200190565b6000610a9083610a5e565b604051610a9d8282610938565b809250848152858585011115610ab257600080fd5b8484602083013760006020868301015250509392505050565b600082601f830112610adc57600080fd5b61084f83833560208501610a85565b600060208060031984011215610b0057600080fd5b6004356001600160401b0380821115610b1857600080fd5b846023830112610b2757600080fd5b8160040135610b3581610973565b60408051610b438382610938565b80925083815286810192506024808560051b880101945089851115610b6757600080fd5b8087015b85811015610bde57803587811115610b835760008081fd5b8801808c0360231901851315610b995760008081fd5b8451610ba481610913565b838201358152604482013589811115610bbd5760008081fd5b610bcb8e8683860101610acb565b828d015250865250938801938801610b6b565b50909998505050505050505050565b600080604060031984011215610c0257600080fd5b6004356001600160401b0380821115610c1a57600080fd5b610c278583600401610acb565b9350602435915080821115610c3b57600080fd5b50610c498482600401610acb565b915050915091565b6000602060031983011215610c6557600080fd5b6004356001600160a01b03811681146107c857600080fd5b6000602060031983011215610c9157600080fd5b60043580151581146107c857600080fd5b600080604060031984011215610cb757600080fd5b6004356001600160a01b0381168114610ccf57600080fd5b91506024358015158114610ce257600080fd5b919391925050565b6000808080608060031986011215610d0157600080fd5b6004356001600160a01b038082168214610d1a57600080fd5b909450602435908082168214610d2f57600080fd5b50925060443591506064356001600160401b03811115610d4e57600080fd5b856023820112610d5d57600080fd5b610d6f86826004013560248401610a85565b9150509193509193565b600080604060031984011215610d8e57600080fd5b60043591506024356001600160401b03811115610daa57600080fd5b836023820112610db957600080fd5b8060040135610dc781610973565b604051610dd48282610938565b82815260059290921b8301602401916020808201925087841115610df757600080fd5b6024850194505b83851015610e1757843583529384019391820191610dfe565b50949694955050505050565b600080604060031984011215610e3857600080fd5b6004356001600160a01b038082168214610e5157600080fd5b909250602435908082168214610e6657600080fd5b50919391925050565b610e77610ebf565b6008546001600160601b0360a01b8116600855600060018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350565b6008546001600160a01b03163381146107a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606481fd5b610f1f610ebf565b6001600160a01b0381811680610f835760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608481fd5b600854816001600160601b0360a01b821617600855838382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350505050565b600280600954141561101a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606481fd5b8060095561103961103360005460015490036000190190565b836112f9565b611047600a54821115611311565b5033600090815260166020526040902061106890611064906106a5565b1590565b80156110955761108f6110836008546001600160a01b031690565b6001600160a01b031690565b33141590505b80156112c9576040513360601b6bffffffffffffffffffffffff1916602082019081526014825260346110c88184610938565b506110d98251822060125488611480565b33600090815260156020526040812091935091505433600090815260146020526040902054611110611064600f5460081c60ff1690565b801561119e5761111f856113ef565b8661112a89846112f9565b111561115257600d5461114e6111486111428661139f565b8b6113b9565b826113d0565b9450505b86831015611199578661116589846112f9565b10156000816000811461117a57899150611186565b61118386611350565b91505b5033600090815260156020526040902055505b61125c565b8480156112235760036111b18a856112f9565b11156111d357600e546111cf6111486111c987611385565b8c6113b9565b9550505b600384101561121e5760036111e88a856112f9565b1015600081600081146111fe576003915061120b565b6112088c886112f9565b91505b5033600090815260156020526040902055505b61125a565b83611244573360009081526015602052604090206112418154611350565b90555b600e546112566111486111c98761136b565b9550505b505b50505061126b81341015611439565b61127581346113b9565b156112aa5761128481346113b9565b915060008261129257506108fc5b600080600080863386f16112a8576112a8611474565b505b50503360009081526014602052604090206112c68482546112f9565b90555b50506112d58133612653565b6112df6001600955565b5050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561130c5761130c6112e3565b500190565b806107a55760405162461bcd60e51b8152602060048201526012602482015271139195081cdd5c1c1b1e481a5cc8199d5b1b60721b6044820152606481fd5b6000600019821415611364576113646112e3565b5060010190565b6000816001101561137e5761137e6112e3565b5060010390565b60008160031015611398576113986112e3565b5060030390565b600081600210156113b2576113b26112e3565b5060020390565b6000828210156113cb576113cb6112e3565b500390565b60008160001904831182151516156113ea576113ea6112e3565b500290565b806107a55760405162461bcd60e51b815260206004820152601a60248201527f53656e646572206973206e6f7420696e2077686974656c6973740000000000006044820152606481fd5b806107a55760405162461bcd60e51b815260206004820152600e60248201526d4e6f7420656e6f7567682066656560901b6044820152606481fd5b6040513d6000823e3d81fd5b60008360005b83518110611493576114e0565b61149d81856114eb565b51600081841080156114bd578460005282602052604060002091506114cb565b828252846020526040822091505b5092506114d9905081611350565b9050611486565b509092149392505050565b60008151831061150b57634e487b7160e01b600052603260045260246000fd5b5060059190911b0160200190565b611521610ebf565b6001600160a01b0381166115635760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606481fd5b600054611578600019600154830301846112f9565b9050611588600a54821115611311565b506112df8282612653565b600181811c908216806115a757607f821691505b602082108114156115c857634e487b7160e01b600052602260045260246000fd5b50919050565b6040516002546000906115e081611593565b808452600182811680156115fb576001811461161057611663565b60ff1984166020870152604086019450611663565b60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace60005b8481101561165a5781546020828a0101528382019150602081019050611639565b87016020019550505b5050505061167382820383610938565b5090565b60405160035460009061168981611593565b808452600182811680156115fb57600181146116a457611663565b60036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60008481101561165a5781546020828a0101528382019150602081019050611639565b6040516010546000906116ff81611593565b808452600182811680156115fb576001811461171a57611663565b60106000527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67260008481101561165a5781546020828a0101528382019150602081019050611639565b60405160115460009061177581611593565b808452600182811680156115fb576001811461179057611663565b60116000527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6860008481101561165a5781546020828a0101528382019150602081019050611639565b60405181546000906117ea81611593565b80845260018281168015611805576001811461181a5761184b565b60ff198416602087015260408601945061184b565b8660005260208060002060005b85811015611842578154898201840152908401908201611827565b88019091019550505b505050506115c882820383610938565b6000815161186d8185602086016107e0565b9290920192915050565b6000611885611064836122fd565b1561189c57604051630a14c4b560e41b8152600481fd5b6118ab611064600f5460ff1690565b156118b8576107c86116ed565b6118da60016118d284600090815260136020526040902090565b015460ff1690565b156118f65760008281526013602052604090206107c8906117d9565b6118fe611763565b80511515600081600081146119615761191686612730565b6040518061194461193361192d602085018a61185b565b8561185b565b64173539b7b760d91b815260050190565b039150601f19820181526119588282610938565b925061196c9050565b6119696116ed565b91505b50949350505050565b61197d610ebf565b60ff19600f541660ff821515168117600f55506040514281527f15120e52505e619cbf6c2af910d5cf7f9ee1befa55801b078c33e93880b2d609602082a15050565b6119c7610ebf565b8051611a035760405162461bcd60e51b815260206004820152600e60248201526d57573a20656d707479207572697360901b6044820152606481fd5b60005b81518110611a12575050565b602080611a1f83856114eb565b510151611a2a610964565b818152600183820152611a5c81611a57611a4487896114eb565b5151600090815260136020526040902090565b611c68565b505050611a6881611350565b9050611a06565b601f8111156112df576000601181527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68601f840160051c81016020851015611ab45750805b601f840160051c820191505b81811015611ad357828155600101611ac0565b5050505050565b601f8111156112df576000601081527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672601f840160051c81016020851015611ab45750601f830160051c81019081811015611ad357828155600101611ac0565b601f821115611b8457600081815260208120601f850160051c81016020861015611b615750805b601f850160051c820191505b81811015611b8057828155600101611b6d565b5050505b505050565b80516001600160401b03811115611ba257611ba26108fd565b611bb681611bb1601054611593565b611ada565b602080601f831160018114611bec5760008415611bd35750848301515b600019600386901b1c1916600185901b17601055611ad3565b6010600052601f1984167f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67260005b82811015611c3957878601518255948401946001909101908401611c1a565b5085821015611c575786850151600019600388901b60f8161c191681555b5050505050600190811b0160105550565b815180516001600160401b03811115611c8357611c836108fd565b611c9781611c918554611593565b85611b3a565b602080601f831160018114611ccc5760008415611cb45750848301515b600019600386901b1c1916600185901b178655611d25565b600086815260208120601f198616915b82811015611cfb57878601518255948401946001909101908401611cdc565b5085821015611d195786850151600019600388901b60f8161c191681555b505060018460011b0186555b50611b80611d3582880151151590565b6001870160ff1981541660ff8315151681178255505050565b611d56610ebf565b600c55565b611d63610ebf565b601255565b611d70610ebf565b6001600160a01b038116600083611d8657506108fc5b600080600080878686f1611d9c57611d9c611474565b506040518181528360208201527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364604082a150505050565b611ddc610ebf565b8051611e145760405162461bcd60e51b815260206004820152600a602482015269195b5c1d1e481b1a5cdd60b21b6044820152606481fd5b60005b81518110611e2457505050565b611e51611e4a6001600160a01b03611e3c84866114eb565b51166001600160a01b031690565b1515611eb1565b611ea183611e8c611e72611e6585876114eb565b516001600160a01b031690565b6001600160a01b0316600090815260166020526040902090565b60ff1981541660ff8315151681178255505050565b611eaa81611350565b9050611e17565b806107a55760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b6044820152606481fd5b611ef5610ebf565b6001600160a01b038116611f0a811515611eb1565b6000908152601660205260409020805483151560ff1660ff19919091161790555050565b611f36610ebf565b600f5461ff0082151560081b1661ff0019821617600f555050565b611f59610ebf565b611f6781600d541415611f6c565b600d55565b806107a55760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606481fd5b611fac610ebf565b611fba81600e541415611f6c565b600e55565b611fc7610ebf565b80516001600160401b03811115611fe057611fe06108fd565b611ff481611fef601154611593565b611a6f565b602080601f83116001811461202a57600084156120115750848301515b600019600386901b1c1916600185901b176011556120a2565b6011600052601f1984167f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6860005b8281101561207757878601518255948401946001909101908401612058565b50858210156120955786850151600019600388901b60f8161c191681555b505060018460011b016011555b505050506112df82611b89565b60006001600160a01b038216806120d2576040516323d3ad8160e21b8152600481fd5b6000908152600560205260409020546001600160401b031692915050565b60006001600160e01b031982166301ffc9a760e01b81148061211857506380ac58cd60e01b81145b808161212a5750635b5e139f60e01b82145b949350505050565b60006001600160a01b036121458361214c565b1692915050565b60008082836001116121aa5781548410156121aa5783825260046020818152604080852054600160e01b81166121a5575b8061219a576000198501945084865283835281862054905061217d565b979650505050505050565b505050505b5050604051636f96cda160e11b8152600481fd5b6001600160a01b03806121d08461214c565b1680331461220b57600081815260076020908152604080832033845290915290205460ff1661220b576040516367d9dca160e11b8152600481fd5b83600052600660205260406000208284166001600160601b0360a01b825416178155508383827f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a450505050565b6000612269826122fd565b61227f576040516333d1c03960e21b8152600481fd5b506000908152600660205260409020546001600160a01b031690565b3360009081526007602090815260408083206001600160a01b038516845290915290206122c9908390611e8c565b604051821515815281337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31602084a3505050565b600081600111158015612311575060005482105b80811561084f57505050600090815260046020526040902054600160e01b161590565b61233d8361214c565b6001600160a01b03818116838216146123615760405162a1148160e81b8152600481fd5b600085815260066020526040902080546001600160a01b03851633908114908214176123c6576123af6110646106a533610687896001600160a01b0316600090815260076020526040902090565b156123c657604051632ce44b5f60e11b8152600481fd5b91851691826123e157604051633a954ecd60e21b8152600481fd5b80156123ec57600082555b50506001600160a01b03838116600090815260056020908152604080832080546000190190559287168252828220805460010190558782526004905220600160e11b904260a01b83178217905580831661247557600186016000818152600460205260409020909250546124755760005482146124755760008281526004602052604090208390555b5050508282827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4505050565b604051602081018181106001600160401b03821117156124c9576124c96108fd565b6040526000815261080a818585855b6124e3838383612334565b813b1561080a576124f6848484846125a3565b61080a576040516368d2bf6b60e11b8152600481fd5b60006020828403121561251e57600080fd5b815161084f8161078f565b6001600160a01b038281168252831660208201526040810184905260806060820181905260009061255c90830187610810565b9695505050505050565b60003d801561259b573d61257981610a5e565b6040516125868282610938565b8281528094503d6000602083013e5050505090565b606091505090565b60006001600160a01b038316803b6125ba57600080fd5b604051630a85bd0160e11b808252602082806125dc8b8b8a3360048601612529565b03846000875af1925060008315612606576125f73d84610938565b6126033d84018461250c565b90505b8315801561263d57612616612566565b93508351801560008114612636576040516368d2bf6b60e11b8152600481fd5b8186602001fd5b506001600160e01b03191614925061212a915050565b600080548361266e5760405163b562e8dd60e01b8152600481fd5b6001600160a01b0383166000908152600560205260409020805468010000000000000001860201905560016001600160a01b0384164260a01b82871460e11b1781176126c584600090815260046020526040902090565b558583017fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84838783898aa4938301935b81851461270d5784838783898aa4938301936126f6565b508161272657604051622e076360e81b81529350600484fd5b9093555050505050565b600060405160a0810160405260808101915060008252825b60001983019250600a80820660300184539004806127655761276a565b612748565b50819003608001601f1990910190815291905056fea364697066735822122084152ec28879fc94668a8b75d7d3ca75ed340cb8f1c8478e323d8d747a9fb81a6c6578706572696d656e74616cf564736f6c63430008090041405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c681b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000006768747470733a2f2f636f707065722d656c656374726963616c2d676179616c2d3435352e6d7970696e6174612e636c6f75642f697066732f516d4e5057426351664e54334e6e516d6f694b38584e424e55775a4531685a6a7263444a6644756f77665735767a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f636f707065722d656c656374726963616c2d676179616c2d3435352e6d7970696e6174612e636c6f75642f697066732f516d59464831666b535076424c78414243315a59465233467466393864355162655646347269445072546146616f0000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60406080815260043610610766576000803560e01c62728e4681146101db576301ffc9a781146101fb576306fdde0381146102265763081812fc811461024e5763095ea7b3811461027c576318160ddd8114610296576323b872dd81146102c05763386bfc9881146102dc57633a1effb381146102fc57633b7f55fb811461031957633d4ed9e58114610339576342842e0e8114610354576345f3d65f811461036857634ba6ba8c811461038357635183022781146103a357636352211e81146103cf57636817c76c81146103ea57636fdfad2c811461040a57636febacf18114610427576370a0823181146104585763715018a68114610473576371b9c1b8811461048e57637b0f7a2b81146104a957638da5cb5b81146104dd5763940cd05b8114610509576395d89b4181146105245763a22cb465811461053f5763a8c90cb2811461055c5763b88d4fde81146105795763ba41b0c681146105975763c492b02181146105aa5763c51a8ace81146105ca5763c87b56dd81146105e55763d5abeb0181146106005763dc9a153581146106205763e985e9c5811461064f5763ea9765d481146106c25763ed0718aa81146106f35763f2fde38b81146107105763f3fef3a3811461072b5763f73d308a811461074857610763565b34156101e5578182fd5b6101f66101f136610773565b611d4e565b818351f35b3415610205578182fd5b610216610211366107a8565b6120f0565b83518115158152602081f35b0381f35b3415610230578182fd5b610239366107ce565b6102416115ce565b835180610222838361083c565b3415610258578182fd5b61026961026436610773565b61225e565b83516001600160a01b0382168152602081f35b61028536610872565b61028f81836121be565b5050818351f35b34156102a0578182fd5b6102a9366107ce565b6000546001546000199103015b8351818152602081f35b6102c9366108aa565b6102d4818385612334565b505050818351f35b34156102e6578182fd5b6102ef366107ce565b6012548351818152602081f35b3415610306578182fd5b61030f366109a7565b61028f8183611dd4565b3415610323578182fd5b61032c366107ce565b600d548351818152602081f35b3415610343578182fd5b6101f661034f36610aeb565b6119bf565b61035d366108aa565b6102d48183856124a7565b3415610372578182fd5b6101f661037e36610773565b611fa4565b341561038d578182fd5b610396366107ce565b600b548351818152602081f35b34156103ad578182fd5b6103b6366107ce565b60ff600f54168351806102228383901515815260200190565b34156103d9578182fd5b6102696103e536610773565b612132565b34156103f4578182fd5b6103fd366107ce565b600c548351818152602081f35b3415610414578182fd5b61041d36610bed565b61028f8183611fbf565b3415610431578182fd5b6102b661043d36610c51565b6001600160a01b031660009081526015602052604090205490565b3415610462578182fd5b6102b661046e36610c51565b6120af565b341561047d578182fd5b610486366107ce565b6101f6610e6f565b3415610498578182fd5b6101f66104a436610773565b611f51565b34156104b3578182fd5b6102166104bf36610c51565b6001600160a01b031660009081526016602052604090205460ff1690565b34156104e7578182fd5b6104f0366107ce565b60085483516001600160a01b0390911680825290602081f35b3415610513578182fd5b6101f661051f36610c7d565b611975565b341561052e578182fd5b610537366107ce565b610241611677565b3415610549578182fd5b61055236610ca2565b61028f818361229b565b3415610566578182fd5b61056f36610872565b61028f8183611519565b61058236610cea565b61058e818385876124d8565b50505050818351f35b6105a036610d79565b61028f8183610fc9565b34156105b4578182fd5b6105bd366107ce565b600e548351818152602081f35b34156105d4578182fd5b6101f66105e036610c7d565b611f2e565b34156105ef578182fd5b6102416105fb36610773565b611877565b341561060a578182fd5b610613366107ce565b600a548351818152602081f35b341561062a578182fd5b610633366107ce565b60ff600f5460081c168351806102228383901515815260200190565b3415610659578182fd5b61066236610e23565b6106ac6106a582610687856001600160a01b0316600090815260076020526040902090565b6001600160a01b039190911660009081526020919091526040902090565b5460ff1690565b9150508351806102228383901515815260200190565b34156106cc578182fd5b6102b66106d836610c51565b6001600160a01b031660009081526014602052604090205490565b34156106fd578182fd5b61070636610ca2565b61028f8183611eed565b341561071a578182fd5b6101f661072636610c51565b610f17565b3415610735578182fd5b61073e36610872565b61028f8183611d68565b3415610752578182fd5b6101f661075e36610773565b611d5b565b50505b503661076e57005b600080fd5b600060206003198301121561078757600080fd5b505060043590565b6001600160e01b0319811681146107a557600080fd5b50565b60006020600319830112156107bc57600080fd5b6004356107c88161078f565b92915050565b6000600319820112156107a557600080fd5b60005b838110156107fb5781810151838201526020016107e3565b8381111561080a576000848401525b50505050565b600081518084526108288160208601602086016107e0565b601f01601f19169290920160200192915050565b60208152600061084f6020830184610810565b9392505050565b80356001600160a01b038116811461086d57600080fd5b919050565b60008060406003198401121561088757600080fd5b6004356001600160a01b038116811461089f57600080fd5b936024359350915050565b600080806060600319850112156108c057600080fd5b6004356001600160a01b0380821682146108d957600080fd5b9093506024359080821682146108ee57600080fd5b50929492935050604435919050565b634e487b7160e01b600052604160045260246000fd5b604081018181106001600160401b0382111715610932576109326108fd565b60405250565b601f8201601f191681016001600160401b038111828210171561095d5761095d6108fd565b6040525050565b60405161097081610913565b90565b60006001600160401b0382111561098c5761098c6108fd565b5060051b60200190565b602435801515811461097057600080fd5b6000806040600319840112156109bc57600080fd5b6004356001600160401b038111156109d357600080fd5b8360238201126109e257600080fd5b80600401356109f081610973565b6040516109fd8282610938565b82815260059290921b8301602401916020808201925087841115610a2057600080fd5b6024850194505b83851015610a4757610a3885610856565b83529384019391820191610a27565b5080955050505050610a57610996565b9050915091565b60006001600160401b03821115610a7757610a776108fd565b50601f01601f191660200190565b6000610a9083610a5e565b604051610a9d8282610938565b809250848152858585011115610ab257600080fd5b8484602083013760006020868301015250509392505050565b600082601f830112610adc57600080fd5b61084f83833560208501610a85565b600060208060031984011215610b0057600080fd5b6004356001600160401b0380821115610b1857600080fd5b846023830112610b2757600080fd5b8160040135610b3581610973565b60408051610b438382610938565b80925083815286810192506024808560051b880101945089851115610b6757600080fd5b8087015b85811015610bde57803587811115610b835760008081fd5b8801808c0360231901851315610b995760008081fd5b8451610ba481610913565b838201358152604482013589811115610bbd5760008081fd5b610bcb8e8683860101610acb565b828d015250865250938801938801610b6b565b50909998505050505050505050565b600080604060031984011215610c0257600080fd5b6004356001600160401b0380821115610c1a57600080fd5b610c278583600401610acb565b9350602435915080821115610c3b57600080fd5b50610c498482600401610acb565b915050915091565b6000602060031983011215610c6557600080fd5b6004356001600160a01b03811681146107c857600080fd5b6000602060031983011215610c9157600080fd5b60043580151581146107c857600080fd5b600080604060031984011215610cb757600080fd5b6004356001600160a01b0381168114610ccf57600080fd5b91506024358015158114610ce257600080fd5b919391925050565b6000808080608060031986011215610d0157600080fd5b6004356001600160a01b038082168214610d1a57600080fd5b909450602435908082168214610d2f57600080fd5b50925060443591506064356001600160401b03811115610d4e57600080fd5b856023820112610d5d57600080fd5b610d6f86826004013560248401610a85565b9150509193509193565b600080604060031984011215610d8e57600080fd5b60043591506024356001600160401b03811115610daa57600080fd5b836023820112610db957600080fd5b8060040135610dc781610973565b604051610dd48282610938565b82815260059290921b8301602401916020808201925087841115610df757600080fd5b6024850194505b83851015610e1757843583529384019391820191610dfe565b50949694955050505050565b600080604060031984011215610e3857600080fd5b6004356001600160a01b038082168214610e5157600080fd5b909250602435908082168214610e6657600080fd5b50919391925050565b610e77610ebf565b6008546001600160601b0360a01b8116600855600060018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350565b6008546001600160a01b03163381146107a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606481fd5b610f1f610ebf565b6001600160a01b0381811680610f835760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608481fd5b600854816001600160601b0360a01b821617600855838382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350505050565b600280600954141561101a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606481fd5b8060095561103961103360005460015490036000190190565b836112f9565b611047600a54821115611311565b5033600090815260166020526040902061106890611064906106a5565b1590565b80156110955761108f6110836008546001600160a01b031690565b6001600160a01b031690565b33141590505b80156112c9576040513360601b6bffffffffffffffffffffffff1916602082019081526014825260346110c88184610938565b506110d98251822060125488611480565b33600090815260156020526040812091935091505433600090815260146020526040902054611110611064600f5460081c60ff1690565b801561119e5761111f856113ef565b8661112a89846112f9565b111561115257600d5461114e6111486111428661139f565b8b6113b9565b826113d0565b9450505b86831015611199578661116589846112f9565b10156000816000811461117a57899150611186565b61118386611350565b91505b5033600090815260156020526040902055505b61125c565b8480156112235760036111b18a856112f9565b11156111d357600e546111cf6111486111c987611385565b8c6113b9565b9550505b600384101561121e5760036111e88a856112f9565b1015600081600081146111fe576003915061120b565b6112088c886112f9565b91505b5033600090815260156020526040902055505b61125a565b83611244573360009081526015602052604090206112418154611350565b90555b600e546112566111486111c98761136b565b9550505b505b50505061126b81341015611439565b61127581346113b9565b156112aa5761128481346113b9565b915060008261129257506108fc5b600080600080863386f16112a8576112a8611474565b505b50503360009081526014602052604090206112c68482546112f9565b90555b50506112d58133612653565b6112df6001600955565b5050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561130c5761130c6112e3565b500190565b806107a55760405162461bcd60e51b8152602060048201526012602482015271139195081cdd5c1c1b1e481a5cc8199d5b1b60721b6044820152606481fd5b6000600019821415611364576113646112e3565b5060010190565b6000816001101561137e5761137e6112e3565b5060010390565b60008160031015611398576113986112e3565b5060030390565b600081600210156113b2576113b26112e3565b5060020390565b6000828210156113cb576113cb6112e3565b500390565b60008160001904831182151516156113ea576113ea6112e3565b500290565b806107a55760405162461bcd60e51b815260206004820152601a60248201527f53656e646572206973206e6f7420696e2077686974656c6973740000000000006044820152606481fd5b806107a55760405162461bcd60e51b815260206004820152600e60248201526d4e6f7420656e6f7567682066656560901b6044820152606481fd5b6040513d6000823e3d81fd5b60008360005b83518110611493576114e0565b61149d81856114eb565b51600081841080156114bd578460005282602052604060002091506114cb565b828252846020526040822091505b5092506114d9905081611350565b9050611486565b509092149392505050565b60008151831061150b57634e487b7160e01b600052603260045260246000fd5b5060059190911b0160200190565b611521610ebf565b6001600160a01b0381166115635760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606481fd5b600054611578600019600154830301846112f9565b9050611588600a54821115611311565b506112df8282612653565b600181811c908216806115a757607f821691505b602082108114156115c857634e487b7160e01b600052602260045260246000fd5b50919050565b6040516002546000906115e081611593565b808452600182811680156115fb576001811461161057611663565b60ff1984166020870152604086019450611663565b60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace60005b8481101561165a5781546020828a0101528382019150602081019050611639565b87016020019550505b5050505061167382820383610938565b5090565b60405160035460009061168981611593565b808452600182811680156115fb57600181146116a457611663565b60036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60008481101561165a5781546020828a0101528382019150602081019050611639565b6040516010546000906116ff81611593565b808452600182811680156115fb576001811461171a57611663565b60106000527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67260008481101561165a5781546020828a0101528382019150602081019050611639565b60405160115460009061177581611593565b808452600182811680156115fb576001811461179057611663565b60116000527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6860008481101561165a5781546020828a0101528382019150602081019050611639565b60405181546000906117ea81611593565b80845260018281168015611805576001811461181a5761184b565b60ff198416602087015260408601945061184b565b8660005260208060002060005b85811015611842578154898201840152908401908201611827565b88019091019550505b505050506115c882820383610938565b6000815161186d8185602086016107e0565b9290920192915050565b6000611885611064836122fd565b1561189c57604051630a14c4b560e41b8152600481fd5b6118ab611064600f5460ff1690565b156118b8576107c86116ed565b6118da60016118d284600090815260136020526040902090565b015460ff1690565b156118f65760008281526013602052604090206107c8906117d9565b6118fe611763565b80511515600081600081146119615761191686612730565b6040518061194461193361192d602085018a61185b565b8561185b565b64173539b7b760d91b815260050190565b039150601f19820181526119588282610938565b925061196c9050565b6119696116ed565b91505b50949350505050565b61197d610ebf565b60ff19600f541660ff821515168117600f55506040514281527f15120e52505e619cbf6c2af910d5cf7f9ee1befa55801b078c33e93880b2d609602082a15050565b6119c7610ebf565b8051611a035760405162461bcd60e51b815260206004820152600e60248201526d57573a20656d707479207572697360901b6044820152606481fd5b60005b81518110611a12575050565b602080611a1f83856114eb565b510151611a2a610964565b818152600183820152611a5c81611a57611a4487896114eb565b5151600090815260136020526040902090565b611c68565b505050611a6881611350565b9050611a06565b601f8111156112df576000601181527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68601f840160051c81016020851015611ab45750805b601f840160051c820191505b81811015611ad357828155600101611ac0565b5050505050565b601f8111156112df576000601081527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672601f840160051c81016020851015611ab45750601f830160051c81019081811015611ad357828155600101611ac0565b601f821115611b8457600081815260208120601f850160051c81016020861015611b615750805b601f850160051c820191505b81811015611b8057828155600101611b6d565b5050505b505050565b80516001600160401b03811115611ba257611ba26108fd565b611bb681611bb1601054611593565b611ada565b602080601f831160018114611bec5760008415611bd35750848301515b600019600386901b1c1916600185901b17601055611ad3565b6010600052601f1984167f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67260005b82811015611c3957878601518255948401946001909101908401611c1a565b5085821015611c575786850151600019600388901b60f8161c191681555b5050505050600190811b0160105550565b815180516001600160401b03811115611c8357611c836108fd565b611c9781611c918554611593565b85611b3a565b602080601f831160018114611ccc5760008415611cb45750848301515b600019600386901b1c1916600185901b178655611d25565b600086815260208120601f198616915b82811015611cfb57878601518255948401946001909101908401611cdc565b5085821015611d195786850151600019600388901b60f8161c191681555b505060018460011b0186555b50611b80611d3582880151151590565b6001870160ff1981541660ff8315151681178255505050565b611d56610ebf565b600c55565b611d63610ebf565b601255565b611d70610ebf565b6001600160a01b038116600083611d8657506108fc5b600080600080878686f1611d9c57611d9c611474565b506040518181528360208201527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364604082a150505050565b611ddc610ebf565b8051611e145760405162461bcd60e51b815260206004820152600a602482015269195b5c1d1e481b1a5cdd60b21b6044820152606481fd5b60005b81518110611e2457505050565b611e51611e4a6001600160a01b03611e3c84866114eb565b51166001600160a01b031690565b1515611eb1565b611ea183611e8c611e72611e6585876114eb565b516001600160a01b031690565b6001600160a01b0316600090815260166020526040902090565b60ff1981541660ff8315151681178255505050565b611eaa81611350565b9050611e17565b806107a55760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b6044820152606481fd5b611ef5610ebf565b6001600160a01b038116611f0a811515611eb1565b6000908152601660205260409020805483151560ff1660ff19919091161790555050565b611f36610ebf565b600f5461ff0082151560081b1661ff0019821617600f555050565b611f59610ebf565b611f6781600d541415611f6c565b600d55565b806107a55760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606481fd5b611fac610ebf565b611fba81600e541415611f6c565b600e55565b611fc7610ebf565b80516001600160401b03811115611fe057611fe06108fd565b611ff481611fef601154611593565b611a6f565b602080601f83116001811461202a57600084156120115750848301515b600019600386901b1c1916600185901b176011556120a2565b6011600052601f1984167f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6860005b8281101561207757878601518255948401946001909101908401612058565b50858210156120955786850151600019600388901b60f8161c191681555b505060018460011b016011555b505050506112df82611b89565b60006001600160a01b038216806120d2576040516323d3ad8160e21b8152600481fd5b6000908152600560205260409020546001600160401b031692915050565b60006001600160e01b031982166301ffc9a760e01b81148061211857506380ac58cd60e01b81145b808161212a5750635b5e139f60e01b82145b949350505050565b60006001600160a01b036121458361214c565b1692915050565b60008082836001116121aa5781548410156121aa5783825260046020818152604080852054600160e01b81166121a5575b8061219a576000198501945084865283835281862054905061217d565b979650505050505050565b505050505b5050604051636f96cda160e11b8152600481fd5b6001600160a01b03806121d08461214c565b1680331461220b57600081815260076020908152604080832033845290915290205460ff1661220b576040516367d9dca160e11b8152600481fd5b83600052600660205260406000208284166001600160601b0360a01b825416178155508383827f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a450505050565b6000612269826122fd565b61227f576040516333d1c03960e21b8152600481fd5b506000908152600660205260409020546001600160a01b031690565b3360009081526007602090815260408083206001600160a01b038516845290915290206122c9908390611e8c565b604051821515815281337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31602084a3505050565b600081600111158015612311575060005482105b80811561084f57505050600090815260046020526040902054600160e01b161590565b61233d8361214c565b6001600160a01b03818116838216146123615760405162a1148160e81b8152600481fd5b600085815260066020526040902080546001600160a01b03851633908114908214176123c6576123af6110646106a533610687896001600160a01b0316600090815260076020526040902090565b156123c657604051632ce44b5f60e11b8152600481fd5b91851691826123e157604051633a954ecd60e21b8152600481fd5b80156123ec57600082555b50506001600160a01b03838116600090815260056020908152604080832080546000190190559287168252828220805460010190558782526004905220600160e11b904260a01b83178217905580831661247557600186016000818152600460205260409020909250546124755760005482146124755760008281526004602052604090208390555b5050508282827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4505050565b604051602081018181106001600160401b03821117156124c9576124c96108fd565b6040526000815261080a818585855b6124e3838383612334565b813b1561080a576124f6848484846125a3565b61080a576040516368d2bf6b60e11b8152600481fd5b60006020828403121561251e57600080fd5b815161084f8161078f565b6001600160a01b038281168252831660208201526040810184905260806060820181905260009061255c90830187610810565b9695505050505050565b60003d801561259b573d61257981610a5e565b6040516125868282610938565b8281528094503d6000602083013e5050505090565b606091505090565b60006001600160a01b038316803b6125ba57600080fd5b604051630a85bd0160e11b808252602082806125dc8b8b8a3360048601612529565b03846000875af1925060008315612606576125f73d84610938565b6126033d84018461250c565b90505b8315801561263d57612616612566565b93508351801560008114612636576040516368d2bf6b60e11b8152600481fd5b8186602001fd5b506001600160e01b03191614925061212a915050565b600080548361266e5760405163b562e8dd60e01b8152600481fd5b6001600160a01b0383166000908152600560205260409020805468010000000000000001860201905560016001600160a01b0384164260a01b82871460e11b1781176126c584600090815260046020526040902090565b558583017fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84838783898aa4938301935b81851461270d5784838783898aa4938301936126f6565b508161272657604051622e076360e81b81529350600484fd5b9093555050505050565b600060405160a0810160405260808101915060008252825b60001983019250600a80820660300184539004806127655761276a565b612748565b50819003608001601f1990910190815291905056fea364697066735822122084152ec28879fc94668a8b75d7d3ca75ed340cb8f1c8478e323d8d747a9fb81a6c6578706572696d656e74616cf564736f6c63430008090041
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000006768747470733a2f2f636f707065722d656c656374726963616c2d676179616c2d3435352e6d7970696e6174612e636c6f75642f697066732f516d4e5057426351664e54334e6e516d6f694b38584e424e55775a4531685a6a7263444a6644756f77665735767a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f636f707065722d656c656374726963616c2d676179616c2d3435352e6d7970696e6174612e636c6f75642f697066732f516d59464831666b535076424c78414243315a59465233467466393864355162655646347269445072546146616f0000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _BaseURI (string): https://copper-electrical-gayal-455.mypinata.cloud/ipfs/QmNPWBcQfNT3NnQmoiK8XNBNUwZE1hZjrcDJfDuowfW5vz/
Arg [1] : _prevealURI (string): https://copper-electrical-gayal-455.mypinata.cloud/ipfs/QmYFH1fkSPvBLxABC1ZYFR3Ftf98d5QbeVF4riDPrTaFao
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000067
Arg [3] : 68747470733a2f2f636f707065722d656c656374726963616c2d676179616c2d
Arg [4] : 3435352e6d7970696e6174612e636c6f75642f697066732f516d4e5057426351
Arg [5] : 664e54334e6e516d6f694b38584e424e55775a4531685a6a7263444a6644756f
Arg [6] : 77665735767a2f00000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000066
Arg [8] : 68747470733a2f2f636f707065722d656c656374726963616c2d676179616c2d
Arg [9] : 3435352e6d7970696e6174612e636c6f75642f697066732f516d59464831666b
Arg [10] : 535076424c78414243315a594652334674663938643551626556463472694450
Arg [11] : 72546146616f0000000000000000000000000000000000000000000000000000
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.