ERC-721
Overview
Max Total Supply
1,105 WW
Holders
243
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
90 WWLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
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; uint256 public whiteMintCount = 5; uint256 public publicMintCount = 3; bool public revealed; bool public isPublic; string private defaultURI; 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 _defaultURI) ERC721A("Woman's world", "WW") { BaseURI = _BaseURI; defaultURI = _defaultURI; } 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; require(balanceOf(msg.sender) <= 5, "Exiceed maximum balance limit" ); uint256 whited = whiteMintedNumber[msg.sender]; uint256 minted = mintedNumber[msg.sender]; if (!isPublic) { require(quality <= whiteMintCount, "Exceed maximum mint count"); require(whitelisted, "Sender is not in whitelist"); require(minted + quality <= whiteMintCount && balanceOf(msg.sender) + quality <= whiteMintCount , "Exceed maximum"); if (minted + quality > 2) { payFee = whitePrice * (quality - (2 - whited)); } if (whited < 2) whiteMintedNumber[msg.sender] = (minted + quality) >= 2 ? 2 : ++ whited; } else { require(quality <= publicMintCount, "Exceed maximum mint count"); 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 tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); if (!revealed) return defaultURI; if (customizedMetadata[tokenId].status) return customizedMetadata[tokenId].URI; string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId), ".json")) : defaultURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return BaseURI; } function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { require(balanceOf(to) < 5, "Exceed maximum balance limit"); super.transferFrom(from, to, tokenId); } function reveal() external onlyOwner { revealed = true; 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 updateWhiteMintCount(uint256 count) external onlyOwner { require(count > 0, "People can mint 1 NFT at least"); require(!isPublic, "Minting is gone to public"); whiteMintCount = count; } function updatePublicMintCount(uint256 count) external onlyOwner { require(count > 0, "People can mint 1 NFT at least"); publicMintCount = count; } 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 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) (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 (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":"_defaultURI","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":"","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":"publicMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":"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":"count","type":"uint256"}],"name":"updatePublicMintCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"updateWhiteMintCount","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":[],"name":"whiteMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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
608060405234156200001057600080fd5b62002f38803803620000228162000285565b818382398181019250604081840312156200003c57600080fd5b805191506001600160401b03808311156200005657600080fd5b6200006484848401620002b8565b9250602080830151828111156200007a57600080fd5b6200008886828601620002b8565b955050620000956200025a565b9250600d83526c15dbdb585b89dcc81ddbdc9b19609a1b81840152620000ba6200025a565b6002815261575760f01b82820152835183811115620000dd57620000dd62000244565b620000f581620000ef6002546200034d565b6200038a565b9192508291601f811160018114620001305760008215620001165750858501515b600019600384901b1c1916600183901b176002556200019a565b6002600052601f19821660008051602062002ed883398151915260005b828110156200016e578888015182559686019660019091019086016200014d565b50838210156200018d5787870151600019600386901b60f8161c191681555b505060018260011b016002555b5050620001a781620004f7565b50505050620001b66001600055565b620001c13362000799565b620001cc6001600955565b620001d86108ae600a55565b620001e36005600b55565b620001f46611c37937e08000600d55565b620002056618de76816d8000600e55565b620002106005600f55565b6200021b6003601055565b6200022681620005e3565b506200023281620006be565b506040516126f380620007e583398082f35b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156200027f576200027f62000244565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620002b057620002b062000244565b604052919050565b600082601f830112620002ca57600080fd5b81516001600160401b03811115620002e657620002e662000244565b6020620002fc601f8301601f1916820162000285565b82815285828487010111156200031157600080fd5b60005b838110156200033157858101830151828201840152820162000314565b83811115620003435760008385840101525b5095945050505050565b600181811c908216806200036257607f821691505b602082108114156200038457634e487b7160e01b600052602260045260246000fd5b50919050565b601f811115620003e6576002600090815260008051602062002ed8833981519152601f840160051c81016020851015620003c15750805b601f840160051c820191505b81811015620003e257828155600101620003cd565b5050505b5050565b601f811115620003e657600360009081527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c81016020851015620003c15750601f830160051c81019081811015620003e257828155600101620003cd565b601f811115620003e6576013600090815260008051602062002f18833981519152601f840160051c81016020851015620003c15750601f830160051c81019081811015620003e257828155600101620003cd565b601f811115620003e6576012600090815260008051602062002ef8833981519152601f840160051c81016020851015620003c15750601f830160051c81019081811015620003e257828155600101620003cd565b80516001600160401b0381111562000513576200051362000244565b6200052b81620005256003546200034d565b620003ea565b602080601f8311600181146200056457600084156200054a5750848301515b8460011b6000198660031b1c1982161760035550620003e2565b6003600052601f1984167fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60005b82811015620005b35787860151825594840194600190910190840162000592565b5085821015620005d25786850151600019600388901b60f8161c191681555b5050505050600190811b0160035550565b80516001600160401b03811115620005ff57620005ff62000244565b6200061781620006116013546200034d565b6200044f565b602080601f831160018114620006505760008415620006365750848301515b600019600386901b1c1916600185901b17601355620003e2565b6013600052601f19841660008051602062002f1883398151915260005b828110156200068e578786015182559484019460019091019084016200066d565b5085821015620006ad5786850151600019600388901b60f8161c191681555b5050505050600190811b0160135550565b80516001600160401b03811115620006da57620006da62000244565b620006f281620006ec6012546200034d565b620004a3565b602080601f8311600181146200072b5760008415620007115750848301515b600019600386901b1c1916600185901b17601255620003e2565b6012600052601f19841660008051602062002ef883398151915260005b82811015620007695787860151825594840194600190910190840162000748565b5085821015620007885786850151600019600388901b60f8161c191681555b5050505050600190811b0160125550565b60085460018060a01b0380831660018060a01b0319831617600855828183167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350505056fe604060808152600436106107b8576000803560e01c62728e4681146101f1576301ffc9a78114610211576306fdde03811461023c57630746645181146102645763081812fc811461027f5763095ea7b381146102ad57630d84d1ce81146102c7576318160ddd81146102e7576323b872dd81146103115763386bfc98811461032d57633a1effb3811461034d57633b7f55fb811461036a57633d4ed9e5811461038a576342842e0e81146103a5576345f3d65f81146103b957634ba6ba8c81146103d457635183022781146103f457636352211e811461042057636817c76c811461043b57636febacf1811461045b576370a08231811461048c5763715018a681146104a7576371b9c1b881146104c257637b0f7a2b81146104dd5763844b51a8811461051157638da5cb5b8114610531576395d89b41811461055d5763a22cb46581146105785763a475b5dd81146105955763b88d4fde81146105b05763ba41b0c681146105ce5763c492b02181146105e15763c51a8ace81146106015763c87b56dd811461061c5763d5abeb0181146106375763dc9a153581146106575763e1849b9981146106865763e985e9c581146106a15763ea9765d481146107145763ed0718aa81146107455763f2fde38b81146107625763f3fef3a3811461077d5763f73d308a811461079a576107b5565b34156101fb578182fd5b61020c610207366107c5565b611e12565b818351f35b341561021b578182fd5b61022c610227366107fa565b612192565b83518115158152602081f35b0381f35b3415610246578182fd5b61024f36610820565b61025761167a565b835180610238838361088e565b341561026e578182fd5b61020c61027a366107c5565b612138565b3415610289578182fd5b61029a610295366107c5565b612300565b83516001600160a01b0382168152602081f35b6102b6366108c4565b6102c08183612260565b5050818351f35b34156102d1578182fd5b6102da36610820565b6010548351818152602081f35b34156102f1578182fd5b6102fa36610820565b6000546001546000199103015b8351818152602081f35b61031a366108fc565b610325818385611a21565b505050818351f35b3415610337578182fd5b61034036610820565b6014548351818152602081f35b3415610357578182fd5b610360366109fc565b6102c08183611e98565b3415610374578182fd5b61037d36610820565b600d548351818152602081f35b3415610394578182fd5b61020c6103a036610b22565b611c2c565b6103ae366108fc565b6103258183856123d6565b34156103c3578182fd5b61020c6103cf366107c5565b612068565b34156103de578182fd5b6103e736610820565b600b548351818152602081f35b34156103fe578182fd5b61040736610820565b60ff601154168351806102388383901515815260200190565b341561042a578182fd5b61029a610436366107c5565b6121d4565b3415610445578182fd5b61044e36610820565b600c548351818152602081f35b3415610465578182fd5b61030761047136610c3e565b6001600160a01b031660009081526017602052604090205490565b3415610496578182fd5b6103076104a236610c3e565b612150565b34156104b1578182fd5b6104ba36610820565b61020c610e5e565b34156104cc578182fd5b61020c6104d8366107c5565b612015565b34156104e7578182fd5b61022c6104f336610c3e565b6001600160a01b031660009081526018602052604090205460ff1690565b341561051b578182fd5b61052436610820565b600f548351818152602081f35b341561053b578182fd5b61054436610820565b60085483516001600160a01b0390911680825290602081f35b3415610567578182fd5b61057036610820565b610257611723565b3415610582578182fd5b61058b36610c6a565b6102c0818361233d565b341561059f578182fd5b6105a836610820565b61020c611be9565b6105b936610cb2565b6105c581838587612408565b50505050818351f35b6105d736610d42565b6102c08183610fb8565b34156105eb578182fd5b6105f436610820565b600e548351818152602081f35b341561060b578182fd5b61020c61061736610ded565b611ff2565b3415610626578182fd5b610257610632366107c5565b611923565b3415610641578182fd5b61064a36610820565b600a548351818152602081f35b3415610661578182fd5b61066a36610820565b60ff60115460081c168351806102388383901515815260200190565b3415610690578182fd5b61020c61069c366107c5565b612083565b34156106ab578182fd5b6106b436610e12565b6106fe6106f7826106d9856001600160a01b0316600090815260076020526040902090565b6001600160a01b039190911660009081526020919091526040902090565b5460ff1690565b9150508351806102388383901515815260200190565b341561071e578182fd5b61030761072a36610c3e565b6001600160a01b031660009081526016602052604090205490565b341561074f578182fd5b61075836610c6a565b6102c08183611fb1565b341561076c578182fd5b61020c61077836610c3e565b610f06565b3415610787578182fd5b610790366108c4565b6102c08183611e2c565b34156107a4578182fd5b61020c6107b0366107c5565b611e1f565b50505b50366107c057005b600080fd5b60006020600319830112156107d957600080fd5b505060043590565b6001600160e01b0319811681146107f757600080fd5b50565b600060206003198301121561080e57600080fd5b60043561081a816107e1565b92915050565b6000600319820112156107f757600080fd5b60005b8381101561084d578181015183820152602001610835565b8381111561085c576000848401525b50505050565b6000815180845261087a816020860160208601610832565b601f01601f19169290920160200192915050565b6020815260006108a16020830184610862565b9392505050565b80356001600160a01b03811681146108bf57600080fd5b919050565b6000806040600319840112156108d957600080fd5b6004356001600160a01b03811681146108f157600080fd5b936024359350915050565b6000808060606003198501121561091257600080fd5b6004356001600160a01b03808216821461092b57600080fd5b90935060243590808216821461094057600080fd5b50929492935050604435919050565b634e487b7160e01b600052604160045260246000fd5b6040810181811067ffffffffffffffff821117156109855761098561094f565b60405250565b601f8201601f1916810167ffffffffffffffff811182821017156109b1576109b161094f565b6040525050565b6040516109c481610965565b90565b600067ffffffffffffffff8211156109e1576109e161094f565b5060051b60200190565b60243580151581146109c457600080fd5b600080604060031984011215610a1157600080fd5b60043567ffffffffffffffff811115610a2957600080fd5b836023820112610a3857600080fd5b8060040135610a46816109c7565b604051610a53828261098b565b82815260059290921b8301602401916020808201925087841115610a7657600080fd5b6024850194505b83851015610a9d57610a8e856108a8565b83529384019391820191610a7d565b5080955050505050610aad6109eb565b9050915091565b600067ffffffffffffffff821115610ace57610ace61094f565b50601f01601f191660200190565b6000610ae783610ab4565b604051610af4828261098b565b809250848152858585011115610b0957600080fd5b8484602083013760006020868301015250509392505050565b600060208060031984011215610b3757600080fd5b60043567ffffffffffffffff80821115610b5057600080fd5b846023830112610b5f57600080fd5b8160040135610b6d816109c7565b60408051610b7b838261098b565b80925083815286810192506024808560051b880101945089851115610b9f57600080fd5b8087015b85811015610c2f57803587811115610bbb5760008081fd5b8801808c0360231901851315610bd15760008081fd5b8451610bdc81610965565b8382013581526044808301358a811115610bf65760008081fd5b8084019350508d6043840112610c0c5760008081fd5b610c1c8e86850135838601610adc565b828d015250865250938801938801610ba3565b50909998505050505050505050565b6000602060031983011215610c5257600080fd5b6004356001600160a01b038116811461081a57600080fd5b600080604060031984011215610c7f57600080fd5b6004356001600160a01b0381168114610c9757600080fd5b91506024358015158114610caa57600080fd5b919391925050565b6000808080608060031986011215610cc957600080fd5b6004356001600160a01b038082168214610ce257600080fd5b909450602435908082168214610cf757600080fd5b509250604435915060643567ffffffffffffffff811115610d1757600080fd5b856023820112610d2657600080fd5b610d3886826004013560248401610adc565b9150509193509193565b600080604060031984011215610d5757600080fd5b600435915060243567ffffffffffffffff811115610d7457600080fd5b836023820112610d8357600080fd5b8060040135610d91816109c7565b604051610d9e828261098b565b82815260059290921b8301602401916020808201925087841115610dc157600080fd5b6024850194505b83851015610de157843583529384019391820191610dc8565b50949694955050505050565b6000602060031983011215610e0157600080fd5b600435801515811461081a57600080fd5b600080604060031984011215610e2757600080fd5b6004356001600160a01b038082168214610e4057600080fd5b909250602435908082168214610e5557600080fd5b50919391925050565b610e66610eae565b6008546001600160601b0360a01b8116600855600060018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350565b6008546001600160a01b03163381146107f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606481fd5b610f0e610eae565b6001600160a01b0381811680610f725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608481fd5b600854816001600160601b0360a01b821617600855838382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350505050565b60028060095414156110095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606481fd5b8060095561102861102260005460015490036000190190565b83611350565b611036600a54821115611368565b5033600090815260186020526040902061105790611053906106f7565b1590565b80156110845761107e6110726008546001600160a01b031690565b6001600160a01b031690565b33141590505b8015611320576040513360601b6bffffffffffffffffffffffff1916602082019081526014825260346110b7818461098b565b506110c882518220601454886115a6565b91505060006110e260056110db33612150565b11156113a7565b336000908152601760205260409020543360009081526016602052604090205461111461105360115460081c60ff1690565b80156111e757600f54611129818a11156113f1565b611132866114da565b8061113d8a85611350565b1115801561115d57816111588b61115333612150565b611350565b111590505b61116681611524565b5050866111738984611350565b111561119b57600d5461119761119161118b8661148a565b8b6114a4565b826114bb565b9450505b868310156111e257866111ae8984611350565b1015600081600081146111c3578991506111cf565b6111cc8661143b565b91505b5033600090815260176020526040902055505b6112b3565b6111f56010548911156113f1565b84801561127a5760036112088a85611350565b111561122a57600e5461122661119161122087611470565b8c6114a4565b9550505b600384101561127557600361123f8a85611350565b1015600081600081146112555760039150611262565b61125f8c88611350565b91505b5033600090815260176020526040902055505b6112b1565b8361129b57336000908152601760205260409020611298815461143b565b90555b600e546112ad61119161122087611456565b9550505b505b5050506112c28134101561155f565b6112cc81346114a4565b15611301576112db81346114a4565b91506000826112e957506108fc5b600080600080863386f16112ff576112ff61159a565b505b505033600090815260166020526040902061131d848254611350565b90555b505061132c8133612583565b6113366001600955565b5050565b634e487b7160e01b600052601160045260246000fd5b600082198211156113635761136361133a565b500190565b806107f75760405162461bcd60e51b8152602060048201526012602482015271139195081cdd5c1c1b1e481a5cc8199d5b1b60721b6044820152606481fd5b806107f75760405162461bcd60e51b815260206004820152601d60248201527f45786963656564206d6178696d756d2062616c616e6365206c696d69740000006044820152606481fd5b806107f75760405162461bcd60e51b815260206004820152601960248201527f457863656564206d6178696d756d206d696e7420636f756e74000000000000006044820152606481fd5b600060001982141561144f5761144f61133a565b5060010190565b600081600110156114695761146961133a565b5060010390565b600081600310156114835761148361133a565b5060030390565b6000816002101561149d5761149d61133a565b5060020390565b6000828210156114b6576114b661133a565b500390565b60008160001904831182151516156114d5576114d561133a565b500290565b806107f75760405162461bcd60e51b815260206004820152601a60248201527f53656e646572206973206e6f7420696e2077686974656c6973740000000000006044820152606481fd5b806107f75760405162461bcd60e51b815260206004820152600e60248201526d457863656564206d6178696d756d60901b6044820152606481fd5b806107f75760405162461bcd60e51b815260206004820152600e60248201526d4e6f7420656e6f7567682066656560901b6044820152606481fd5b6040513d6000823e3d81fd5b60008360005b835181106115b957611606565b6115c38185611611565b51600081841080156115e3578460005282602052604060002091506115f1565b828252846020526040822091505b5092506115ff90508161143b565b90506115ac565b509092149392505050565b60008151831061163157634e487b7160e01b600052603260045260246000fd5b5060059190911b0160200190565b600181811c9082168061165357607f821691505b6020821081141561167457634e487b7160e01b600052602260045260246000fd5b50919050565b60405160025460009061168c8161163f565b808452600182811680156116a757600181146116bc5761170f565b60ff198416602087015260408601945061170f565b60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace60005b848110156117065781546020828a01015283820191506020810190506116e5565b87016020019550505b5050505061171f8282038361098b565b5090565b6040516003546000906117358161163f565b808452600182811680156116a757600181146117505761170f565b60036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b6000848110156117065781546020828a01015283820191506020810190506116e5565b6040516012546000906117ab8161163f565b808452600182811680156116a757600181146117c65761170f565b60126000527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34446000848110156117065781546020828a01015283820191506020810190506116e5565b6040516013546000906118218161163f565b808452600182811680156116a7576001811461183c5761170f565b60136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0906000848110156117065781546020828a01015283820191506020810190506116e5565b60405181546000906118968161163f565b808452600182811680156118b157600181146118c6576118f7565b60ff19841660208701526040860194506118f7565b8660005260208060002060005b858110156118ee5781548982018401529084019082016118d3565b88019091019550505b505050506116748282038361098b565b60008151611919818560208601610832565b9290920192915050565b60006119316110538361239f565b1561194857604051630a14c4b560e41b8152600481fd5b61195761105360115460ff1690565b156119645761081a611799565b611986600161197e84600090815260156020526040902090565b015460ff1690565b156119a257600082815260156020526040902061081a90611885565b6119aa61180f565b8051151560008160008114611a0d576119c286612660565b604051806119f06119df6119d9602085018a611907565b85611907565b64173539b7b760d91b815260050190565b039150601f1982018152611a04828261098b565b9250611a189050565b611a15611799565b91505b50949350505050565b6005611a2c83612150565b10611a765760405162461bcd60e51b815260206004820152601c60248201527f457863656564206d6178696d756d2062616c616e6365206c696d6974000000006044820152606481fd5b611a7f836121ee565b6001600160a01b0381811683821614611aa35760405162a1148160e81b8152600481fd5b600085815260066020526040902080546001600160a01b0385163390811490821417611b0857611af16110536106f7336106d9896001600160a01b0316600090815260076020526040902090565b15611b0857604051632ce44b5f60e11b8152600481fd5b9185169182611b2357604051633a954ecd60e21b8152600481fd5b8015611b2e57600082555b50506001600160a01b03838116600090815260056020908152604080832080546000190190559287168252828220805460010190558782526004905220600160e11b904260a01b831782179055808316611bb75760018601600081815260046020526040902090925054611bb7576000548214611bb75760008281526004602052604090208390555b5050508282827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4505050565b611bf1610eae565b600160ff1960115416176011556040514281527f15120e52505e619cbf6c2af910d5cf7f9ee1befa55801b078c33e93880b2d609602082a150565b611c34610eae565b8051611c705760405162461bcd60e51b815260206004820152600e60248201526d57573a20656d707479207572697360901b6044820152606481fd5b60005b81518110611c7f575050565b602080611c8c8385611611565b510151611c976109b8565b818152600183820152611cc981611cc4611cb18789611611565b5151600090815260156020526040902090565b611d2b565b505050611cd58161143b565b9050611c73565b601f821115611d2657600081815260208120601f850160051c81016020861015611d035750805b601f850160051c820191505b81811015611d2257828155600101611d0f565b5050505b505050565b8151805167ffffffffffffffff811115611d4757611d4761094f565b611d5b81611d55855461163f565b85611cdc565b602080601f831160018114611d905760008415611d785750848301515b600019600386901b1c1916600185901b178655611de9565b600086815260208120601f198616915b82811015611dbf57878601518255948401946001909101908401611da0565b5085821015611ddd5786850151600019600388901b60f8161c191681555b505060018460011b0186555b50611d22611df982880151151590565b6001870160ff1981541660ff8315151681178255505050565b611e1a610eae565b600c55565b611e27610eae565b601455565b611e34610eae565b6001600160a01b038116600083611e4a57506108fc5b600080600080878686f1611e6057611e6061159a565b506040518181528360208201527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364604082a150505050565b611ea0610eae565b8051611ed85760405162461bcd60e51b815260206004820152600a602482015269195b5c1d1e481b1a5cdd60b21b6044820152606481fd5b60005b81518110611ee857505050565b611f15611f0e6001600160a01b03611f008486611611565b51166001600160a01b031690565b1515611f75565b611f6583611f50611f36611f298587611611565b516001600160a01b031690565b6001600160a01b0316600090815260186020526040902090565b60ff1981541660ff8315151681178255505050565b611f6e8161143b565b9050611edb565b806107f75760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b6044820152606481fd5b611fb9610eae565b6001600160a01b038116611fce811515611f75565b6000908152601860205260409020805483151560ff1660ff19919091161790555050565b611ffa610eae565b60115461ff0082151560081b1661ff00198216176011555050565b61201d610eae565b61202b81600d541415612030565b600d55565b806107f75760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606481fd5b612070610eae565b61207e81600e541415612030565b600e55565b61208b610eae565b6120968115156120ee565b60ff60115460081c16156120e95760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e6720697320676f6e6520746f207075626c6963000000000000006044820152606481fd5b600f55565b806107f75760405162461bcd60e51b815260206004820152601e60248201527f50656f706c652063616e206d696e742031204e4654206174206c6561737400006044820152606481fd5b612140610eae565b61214b8115156120ee565b601055565b60006001600160a01b03821680612173576040516323d3ad8160e21b8152600481fd5b60009081526005602052604090205467ffffffffffffffff1692915050565b60006001600160e01b031982166301ffc9a760e01b8114806121ba57506380ac58cd60e01b81145b80816121cc5750635b5e139f60e01b82145b949350505050565b60006001600160a01b036121e7836121ee565b1692915050565b600080828360011161224c57815484101561224c5783825260046020818152604080852054600160e01b8116612247575b8061223c576000198501945084865283835281862054905061221f565b979650505050505050565b505050505b5050604051636f96cda160e11b8152600481fd5b6001600160a01b0380612272846121ee565b168033146122ad57600081815260076020908152604080832033845290915290205460ff166122ad576040516367d9dca160e11b8152600481fd5b83600052600660205260406000208284166001600160601b0360a01b825416178155508383827f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a450505050565b600061230b8261239f565b612321576040516333d1c03960e21b8152600481fd5b506000908152600660205260409020546001600160a01b031690565b3360009081526007602090815260408083206001600160a01b0385168452909152902061236b908390611f50565b604051821515815281337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31602084a3505050565b6000816001111580156123b3575060005482105b8081156108a157505050600090815260046020526040902054600160e01b161590565b6040516020810181811067ffffffffffffffff821117156123f9576123f961094f565b6040526000815261085c818585855b612413838383611a21565b813b1561085c57612426848484846124d3565b61085c576040516368d2bf6b60e11b8152600481fd5b60006020828403121561244e57600080fd5b81516108a1816107e1565b6001600160a01b038281168252831660208201526040810184905260806060820181905260009061248c90830187610862565b9695505050505050565b60003d80156124cb573d6124a981610ab4565b6040516124b6828261098b565b8281528094503d6000602083013e5050505090565b606091505090565b60006001600160a01b038316803b6124ea57600080fd5b604051630a85bd0160e11b8082526020828061250c8b8b8a3360048601612459565b03846000875af1925060008315612536576125273d8461098b565b6125333d84018461243c565b90505b8315801561256d57612546612496565b93508351801560008114612566576040516368d2bf6b60e11b8152600481fd5b8186602001fd5b506001600160e01b0319161492506121cc915050565b600080548361259e5760405163b562e8dd60e01b8152600481fd5b6001600160a01b0383166000908152600560205260409020805468010000000000000001860201905560016001600160a01b0384164260a01b82871460e11b1781176125f584600090815260046020526040902090565b558583017fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84838783898aa4938301935b81851461263d5784838783898aa493830193612626565b508161265657604051622e076360e81b81529350600484fd5b9093555050505050565b600060405160a0810160405260808101915060008252825b60001983019250600a80820660300184539004806126955761269a565b612678565b50819003608001601f1990910190815291905056fea36469706673582212205bf79cd62707993dad735d76f852bdc2874021d8b1c2d4eda91992efd6f4ae896c6578706572696d656e74616cf564736f6c63430008090041405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acebb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344466de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000006768747470733a2f2f636f707065722d656c656374726963616c2d676179616c2d3435352e6d7970696e6174612e636c6f75642f697066732f516d4e5057426351664e54334e6e516d6f694b38584e424e55775a4531685a6a7263444a6644756f77665735767a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006668747470733a2f2f636f707065722d656c656374726963616c2d676179616c2d3435352e6d7970696e6174612e636c6f75642f697066732f516d59464831666b535076424c78414243315a59465233467466393864355162655646347269445072546146616f0000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x604060808152600436106107b8576000803560e01c62728e4681146101f1576301ffc9a78114610211576306fdde03811461023c57630746645181146102645763081812fc811461027f5763095ea7b381146102ad57630d84d1ce81146102c7576318160ddd81146102e7576323b872dd81146103115763386bfc98811461032d57633a1effb3811461034d57633b7f55fb811461036a57633d4ed9e5811461038a576342842e0e81146103a5576345f3d65f81146103b957634ba6ba8c81146103d457635183022781146103f457636352211e811461042057636817c76c811461043b57636febacf1811461045b576370a08231811461048c5763715018a681146104a7576371b9c1b881146104c257637b0f7a2b81146104dd5763844b51a8811461051157638da5cb5b8114610531576395d89b41811461055d5763a22cb46581146105785763a475b5dd81146105955763b88d4fde81146105b05763ba41b0c681146105ce5763c492b02181146105e15763c51a8ace81146106015763c87b56dd811461061c5763d5abeb0181146106375763dc9a153581146106575763e1849b9981146106865763e985e9c581146106a15763ea9765d481146107145763ed0718aa81146107455763f2fde38b81146107625763f3fef3a3811461077d5763f73d308a811461079a576107b5565b34156101fb578182fd5b61020c610207366107c5565b611e12565b818351f35b341561021b578182fd5b61022c610227366107fa565b612192565b83518115158152602081f35b0381f35b3415610246578182fd5b61024f36610820565b61025761167a565b835180610238838361088e565b341561026e578182fd5b61020c61027a366107c5565b612138565b3415610289578182fd5b61029a610295366107c5565b612300565b83516001600160a01b0382168152602081f35b6102b6366108c4565b6102c08183612260565b5050818351f35b34156102d1578182fd5b6102da36610820565b6010548351818152602081f35b34156102f1578182fd5b6102fa36610820565b6000546001546000199103015b8351818152602081f35b61031a366108fc565b610325818385611a21565b505050818351f35b3415610337578182fd5b61034036610820565b6014548351818152602081f35b3415610357578182fd5b610360366109fc565b6102c08183611e98565b3415610374578182fd5b61037d36610820565b600d548351818152602081f35b3415610394578182fd5b61020c6103a036610b22565b611c2c565b6103ae366108fc565b6103258183856123d6565b34156103c3578182fd5b61020c6103cf366107c5565b612068565b34156103de578182fd5b6103e736610820565b600b548351818152602081f35b34156103fe578182fd5b61040736610820565b60ff601154168351806102388383901515815260200190565b341561042a578182fd5b61029a610436366107c5565b6121d4565b3415610445578182fd5b61044e36610820565b600c548351818152602081f35b3415610465578182fd5b61030761047136610c3e565b6001600160a01b031660009081526017602052604090205490565b3415610496578182fd5b6103076104a236610c3e565b612150565b34156104b1578182fd5b6104ba36610820565b61020c610e5e565b34156104cc578182fd5b61020c6104d8366107c5565b612015565b34156104e7578182fd5b61022c6104f336610c3e565b6001600160a01b031660009081526018602052604090205460ff1690565b341561051b578182fd5b61052436610820565b600f548351818152602081f35b341561053b578182fd5b61054436610820565b60085483516001600160a01b0390911680825290602081f35b3415610567578182fd5b61057036610820565b610257611723565b3415610582578182fd5b61058b36610c6a565b6102c0818361233d565b341561059f578182fd5b6105a836610820565b61020c611be9565b6105b936610cb2565b6105c581838587612408565b50505050818351f35b6105d736610d42565b6102c08183610fb8565b34156105eb578182fd5b6105f436610820565b600e548351818152602081f35b341561060b578182fd5b61020c61061736610ded565b611ff2565b3415610626578182fd5b610257610632366107c5565b611923565b3415610641578182fd5b61064a36610820565b600a548351818152602081f35b3415610661578182fd5b61066a36610820565b60ff60115460081c168351806102388383901515815260200190565b3415610690578182fd5b61020c61069c366107c5565b612083565b34156106ab578182fd5b6106b436610e12565b6106fe6106f7826106d9856001600160a01b0316600090815260076020526040902090565b6001600160a01b039190911660009081526020919091526040902090565b5460ff1690565b9150508351806102388383901515815260200190565b341561071e578182fd5b61030761072a36610c3e565b6001600160a01b031660009081526016602052604090205490565b341561074f578182fd5b61075836610c6a565b6102c08183611fb1565b341561076c578182fd5b61020c61077836610c3e565b610f06565b3415610787578182fd5b610790366108c4565b6102c08183611e2c565b34156107a4578182fd5b61020c6107b0366107c5565b611e1f565b50505b50366107c057005b600080fd5b60006020600319830112156107d957600080fd5b505060043590565b6001600160e01b0319811681146107f757600080fd5b50565b600060206003198301121561080e57600080fd5b60043561081a816107e1565b92915050565b6000600319820112156107f757600080fd5b60005b8381101561084d578181015183820152602001610835565b8381111561085c576000848401525b50505050565b6000815180845261087a816020860160208601610832565b601f01601f19169290920160200192915050565b6020815260006108a16020830184610862565b9392505050565b80356001600160a01b03811681146108bf57600080fd5b919050565b6000806040600319840112156108d957600080fd5b6004356001600160a01b03811681146108f157600080fd5b936024359350915050565b6000808060606003198501121561091257600080fd5b6004356001600160a01b03808216821461092b57600080fd5b90935060243590808216821461094057600080fd5b50929492935050604435919050565b634e487b7160e01b600052604160045260246000fd5b6040810181811067ffffffffffffffff821117156109855761098561094f565b60405250565b601f8201601f1916810167ffffffffffffffff811182821017156109b1576109b161094f565b6040525050565b6040516109c481610965565b90565b600067ffffffffffffffff8211156109e1576109e161094f565b5060051b60200190565b60243580151581146109c457600080fd5b600080604060031984011215610a1157600080fd5b60043567ffffffffffffffff811115610a2957600080fd5b836023820112610a3857600080fd5b8060040135610a46816109c7565b604051610a53828261098b565b82815260059290921b8301602401916020808201925087841115610a7657600080fd5b6024850194505b83851015610a9d57610a8e856108a8565b83529384019391820191610a7d565b5080955050505050610aad6109eb565b9050915091565b600067ffffffffffffffff821115610ace57610ace61094f565b50601f01601f191660200190565b6000610ae783610ab4565b604051610af4828261098b565b809250848152858585011115610b0957600080fd5b8484602083013760006020868301015250509392505050565b600060208060031984011215610b3757600080fd5b60043567ffffffffffffffff80821115610b5057600080fd5b846023830112610b5f57600080fd5b8160040135610b6d816109c7565b60408051610b7b838261098b565b80925083815286810192506024808560051b880101945089851115610b9f57600080fd5b8087015b85811015610c2f57803587811115610bbb5760008081fd5b8801808c0360231901851315610bd15760008081fd5b8451610bdc81610965565b8382013581526044808301358a811115610bf65760008081fd5b8084019350508d6043840112610c0c5760008081fd5b610c1c8e86850135838601610adc565b828d015250865250938801938801610ba3565b50909998505050505050505050565b6000602060031983011215610c5257600080fd5b6004356001600160a01b038116811461081a57600080fd5b600080604060031984011215610c7f57600080fd5b6004356001600160a01b0381168114610c9757600080fd5b91506024358015158114610caa57600080fd5b919391925050565b6000808080608060031986011215610cc957600080fd5b6004356001600160a01b038082168214610ce257600080fd5b909450602435908082168214610cf757600080fd5b509250604435915060643567ffffffffffffffff811115610d1757600080fd5b856023820112610d2657600080fd5b610d3886826004013560248401610adc565b9150509193509193565b600080604060031984011215610d5757600080fd5b600435915060243567ffffffffffffffff811115610d7457600080fd5b836023820112610d8357600080fd5b8060040135610d91816109c7565b604051610d9e828261098b565b82815260059290921b8301602401916020808201925087841115610dc157600080fd5b6024850194505b83851015610de157843583529384019391820191610dc8565b50949694955050505050565b6000602060031983011215610e0157600080fd5b600435801515811461081a57600080fd5b600080604060031984011215610e2757600080fd5b6004356001600160a01b038082168214610e4057600080fd5b909250602435908082168214610e5557600080fd5b50919391925050565b610e66610eae565b6008546001600160601b0360a01b8116600855600060018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350565b6008546001600160a01b03163381146107f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606481fd5b610f0e610eae565b6001600160a01b0381811680610f725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608481fd5b600854816001600160601b0360a01b821617600855838382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a350505050565b60028060095414156110095760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606481fd5b8060095561102861102260005460015490036000190190565b83611350565b611036600a54821115611368565b5033600090815260186020526040902061105790611053906106f7565b1590565b80156110845761107e6110726008546001600160a01b031690565b6001600160a01b031690565b33141590505b8015611320576040513360601b6bffffffffffffffffffffffff1916602082019081526014825260346110b7818461098b565b506110c882518220601454886115a6565b91505060006110e260056110db33612150565b11156113a7565b336000908152601760205260409020543360009081526016602052604090205461111461105360115460081c60ff1690565b80156111e757600f54611129818a11156113f1565b611132866114da565b8061113d8a85611350565b1115801561115d57816111588b61115333612150565b611350565b111590505b61116681611524565b5050866111738984611350565b111561119b57600d5461119761119161118b8661148a565b8b6114a4565b826114bb565b9450505b868310156111e257866111ae8984611350565b1015600081600081146111c3578991506111cf565b6111cc8661143b565b91505b5033600090815260176020526040902055505b6112b3565b6111f56010548911156113f1565b84801561127a5760036112088a85611350565b111561122a57600e5461122661119161122087611470565b8c6114a4565b9550505b600384101561127557600361123f8a85611350565b1015600081600081146112555760039150611262565b61125f8c88611350565b91505b5033600090815260176020526040902055505b6112b1565b8361129b57336000908152601760205260409020611298815461143b565b90555b600e546112ad61119161122087611456565b9550505b505b5050506112c28134101561155f565b6112cc81346114a4565b15611301576112db81346114a4565b91506000826112e957506108fc5b600080600080863386f16112ff576112ff61159a565b505b505033600090815260166020526040902061131d848254611350565b90555b505061132c8133612583565b6113366001600955565b5050565b634e487b7160e01b600052601160045260246000fd5b600082198211156113635761136361133a565b500190565b806107f75760405162461bcd60e51b8152602060048201526012602482015271139195081cdd5c1c1b1e481a5cc8199d5b1b60721b6044820152606481fd5b806107f75760405162461bcd60e51b815260206004820152601d60248201527f45786963656564206d6178696d756d2062616c616e6365206c696d69740000006044820152606481fd5b806107f75760405162461bcd60e51b815260206004820152601960248201527f457863656564206d6178696d756d206d696e7420636f756e74000000000000006044820152606481fd5b600060001982141561144f5761144f61133a565b5060010190565b600081600110156114695761146961133a565b5060010390565b600081600310156114835761148361133a565b5060030390565b6000816002101561149d5761149d61133a565b5060020390565b6000828210156114b6576114b661133a565b500390565b60008160001904831182151516156114d5576114d561133a565b500290565b806107f75760405162461bcd60e51b815260206004820152601a60248201527f53656e646572206973206e6f7420696e2077686974656c6973740000000000006044820152606481fd5b806107f75760405162461bcd60e51b815260206004820152600e60248201526d457863656564206d6178696d756d60901b6044820152606481fd5b806107f75760405162461bcd60e51b815260206004820152600e60248201526d4e6f7420656e6f7567682066656560901b6044820152606481fd5b6040513d6000823e3d81fd5b60008360005b835181106115b957611606565b6115c38185611611565b51600081841080156115e3578460005282602052604060002091506115f1565b828252846020526040822091505b5092506115ff90508161143b565b90506115ac565b509092149392505050565b60008151831061163157634e487b7160e01b600052603260045260246000fd5b5060059190911b0160200190565b600181811c9082168061165357607f821691505b6020821081141561167457634e487b7160e01b600052602260045260246000fd5b50919050565b60405160025460009061168c8161163f565b808452600182811680156116a757600181146116bc5761170f565b60ff198416602087015260408601945061170f565b60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace60005b848110156117065781546020828a01015283820191506020810190506116e5565b87016020019550505b5050505061171f8282038361098b565b5090565b6040516003546000906117358161163f565b808452600182811680156116a757600181146117505761170f565b60036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b6000848110156117065781546020828a01015283820191506020810190506116e5565b6040516012546000906117ab8161163f565b808452600182811680156116a757600181146117c65761170f565b60126000527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34446000848110156117065781546020828a01015283820191506020810190506116e5565b6040516013546000906118218161163f565b808452600182811680156116a7576001811461183c5761170f565b60136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0906000848110156117065781546020828a01015283820191506020810190506116e5565b60405181546000906118968161163f565b808452600182811680156118b157600181146118c6576118f7565b60ff19841660208701526040860194506118f7565b8660005260208060002060005b858110156118ee5781548982018401529084019082016118d3565b88019091019550505b505050506116748282038361098b565b60008151611919818560208601610832565b9290920192915050565b60006119316110538361239f565b1561194857604051630a14c4b560e41b8152600481fd5b61195761105360115460ff1690565b156119645761081a611799565b611986600161197e84600090815260156020526040902090565b015460ff1690565b156119a257600082815260156020526040902061081a90611885565b6119aa61180f565b8051151560008160008114611a0d576119c286612660565b604051806119f06119df6119d9602085018a611907565b85611907565b64173539b7b760d91b815260050190565b039150601f1982018152611a04828261098b565b9250611a189050565b611a15611799565b91505b50949350505050565b6005611a2c83612150565b10611a765760405162461bcd60e51b815260206004820152601c60248201527f457863656564206d6178696d756d2062616c616e6365206c696d6974000000006044820152606481fd5b611a7f836121ee565b6001600160a01b0381811683821614611aa35760405162a1148160e81b8152600481fd5b600085815260066020526040902080546001600160a01b0385163390811490821417611b0857611af16110536106f7336106d9896001600160a01b0316600090815260076020526040902090565b15611b0857604051632ce44b5f60e11b8152600481fd5b9185169182611b2357604051633a954ecd60e21b8152600481fd5b8015611b2e57600082555b50506001600160a01b03838116600090815260056020908152604080832080546000190190559287168252828220805460010190558782526004905220600160e11b904260a01b831782179055808316611bb75760018601600081815260046020526040902090925054611bb7576000548214611bb75760008281526004602052604090208390555b5050508282827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4505050565b611bf1610eae565b600160ff1960115416176011556040514281527f15120e52505e619cbf6c2af910d5cf7f9ee1befa55801b078c33e93880b2d609602082a150565b611c34610eae565b8051611c705760405162461bcd60e51b815260206004820152600e60248201526d57573a20656d707479207572697360901b6044820152606481fd5b60005b81518110611c7f575050565b602080611c8c8385611611565b510151611c976109b8565b818152600183820152611cc981611cc4611cb18789611611565b5151600090815260156020526040902090565b611d2b565b505050611cd58161143b565b9050611c73565b601f821115611d2657600081815260208120601f850160051c81016020861015611d035750805b601f850160051c820191505b81811015611d2257828155600101611d0f565b5050505b505050565b8151805167ffffffffffffffff811115611d4757611d4761094f565b611d5b81611d55855461163f565b85611cdc565b602080601f831160018114611d905760008415611d785750848301515b600019600386901b1c1916600185901b178655611de9565b600086815260208120601f198616915b82811015611dbf57878601518255948401946001909101908401611da0565b5085821015611ddd5786850151600019600388901b60f8161c191681555b505060018460011b0186555b50611d22611df982880151151590565b6001870160ff1981541660ff8315151681178255505050565b611e1a610eae565b600c55565b611e27610eae565b601455565b611e34610eae565b6001600160a01b038116600083611e4a57506108fc5b600080600080878686f1611e6057611e6061159a565b506040518181528360208201527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364604082a150505050565b611ea0610eae565b8051611ed85760405162461bcd60e51b815260206004820152600a602482015269195b5c1d1e481b1a5cdd60b21b6044820152606481fd5b60005b81518110611ee857505050565b611f15611f0e6001600160a01b03611f008486611611565b51166001600160a01b031690565b1515611f75565b611f6583611f50611f36611f298587611611565b516001600160a01b031690565b6001600160a01b0316600090815260186020526040902090565b60ff1981541660ff8315151681178255505050565b611f6e8161143b565b9050611edb565b806107f75760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b6044820152606481fd5b611fb9610eae565b6001600160a01b038116611fce811515611f75565b6000908152601860205260409020805483151560ff1660ff19919091161790555050565b611ffa610eae565b60115461ff0082151560081b1661ff00198216176011555050565b61201d610eae565b61202b81600d541415612030565b600d55565b806107f75760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606481fd5b612070610eae565b61207e81600e541415612030565b600e55565b61208b610eae565b6120968115156120ee565b60ff60115460081c16156120e95760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e6720697320676f6e6520746f207075626c6963000000000000006044820152606481fd5b600f55565b806107f75760405162461bcd60e51b815260206004820152601e60248201527f50656f706c652063616e206d696e742031204e4654206174206c6561737400006044820152606481fd5b612140610eae565b61214b8115156120ee565b601055565b60006001600160a01b03821680612173576040516323d3ad8160e21b8152600481fd5b60009081526005602052604090205467ffffffffffffffff1692915050565b60006001600160e01b031982166301ffc9a760e01b8114806121ba57506380ac58cd60e01b81145b80816121cc5750635b5e139f60e01b82145b949350505050565b60006001600160a01b036121e7836121ee565b1692915050565b600080828360011161224c57815484101561224c5783825260046020818152604080852054600160e01b8116612247575b8061223c576000198501945084865283835281862054905061221f565b979650505050505050565b505050505b5050604051636f96cda160e11b8152600481fd5b6001600160a01b0380612272846121ee565b168033146122ad57600081815260076020908152604080832033845290915290205460ff166122ad576040516367d9dca160e11b8152600481fd5b83600052600660205260406000208284166001600160601b0360a01b825416178155508383827f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a450505050565b600061230b8261239f565b612321576040516333d1c03960e21b8152600481fd5b506000908152600660205260409020546001600160a01b031690565b3360009081526007602090815260408083206001600160a01b0385168452909152902061236b908390611f50565b604051821515815281337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31602084a3505050565b6000816001111580156123b3575060005482105b8081156108a157505050600090815260046020526040902054600160e01b161590565b6040516020810181811067ffffffffffffffff821117156123f9576123f961094f565b6040526000815261085c818585855b612413838383611a21565b813b1561085c57612426848484846124d3565b61085c576040516368d2bf6b60e11b8152600481fd5b60006020828403121561244e57600080fd5b81516108a1816107e1565b6001600160a01b038281168252831660208201526040810184905260806060820181905260009061248c90830187610862565b9695505050505050565b60003d80156124cb573d6124a981610ab4565b6040516124b6828261098b565b8281528094503d6000602083013e5050505090565b606091505090565b60006001600160a01b038316803b6124ea57600080fd5b604051630a85bd0160e11b8082526020828061250c8b8b8a3360048601612459565b03846000875af1925060008315612536576125273d8461098b565b6125333d84018461243c565b90505b8315801561256d57612546612496565b93508351801560008114612566576040516368d2bf6b60e11b8152600481fd5b8186602001fd5b506001600160e01b0319161492506121cc915050565b600080548361259e5760405163b562e8dd60e01b8152600481fd5b6001600160a01b0383166000908152600560205260409020805468010000000000000001860201905560016001600160a01b0384164260a01b82871460e11b1781176125f584600090815260046020526040902090565b558583017fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84838783898aa4938301935b81851461263d5784838783898aa493830193612626565b508161265657604051622e076360e81b81529350600484fd5b9093555050505050565b600060405160a0810160405260808101915060008252825b60001983019250600a80820660300184539004806126955761269a565b612678565b50819003608001601f1990910190815291905056fea36469706673582212205bf79cd62707993dad735d76f852bdc2874021d8b1c2d4eda91992efd6f4ae896c6578706572696d656e74616cf564736f6c63430008090041
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] : _defaultURI (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.