Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,500 SPECTRUM
Holders
681
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 SPECTRUMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SpectrumPepes
Compiler Version
v0.8.18+commit.87f61d96
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.18; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721A_royalty.sol"; contract SpectrumPepes is Ownable, ERC721A { using Strings for uint256; bool public SaleActive = false; bool public WhitelistSaleActive = false; bool public SpecialWhitelistSaleActive = false; string public baseURI; string public unrevealedURI = "ipfs://QmRUpjXHJH738kCvKMjXTyqCtG39YPCysQkw4Xert6MuqP/unrevealed.json"; bool public revealed = false; uint256 public MAX_SUPPLY = 6900; uint256 public MAX_TOTAL_PUBLIC = 6900; uint256 public MAX_TOTAL_SPECIAL_WL = 6900; uint256 public MAX_TOTAL_WL = 6900; uint256 public MAX_PER_WALLET_PUBLIC = 25; uint256 public MAX_PER_WALLET_SPECIAL_WL = 1; uint256 public MAX_PER_WALLET_WL = 5; uint256 public wlSalePrice = 0 ether; uint256 public specialwlSalePrice = 0 ether; uint256 public publicSalePrice = 0.04 ether; bytes32 public merkleRootWL; bytes32 public merkleRootSpecialWL; mapping(address => uint256) public amountNFTsperWalletPUBLIC; mapping(address => uint256) public amountNFTsperWalletWL; mapping(address => uint256) public amountNFTsperWalletSpecialWL; address public withdrawalWallet; uint96 royaltyFeesInBips; address royaltyReceiver; constructor( uint96 _royaltyFeesInBips, bytes32 _merkleRootWL, bytes32 _merkleRootSpecialWL, address _withdrawalWallet, string memory _baseURI ) ERC721A("SpectrumPepes", "SPECTRUM") { merkleRootWL = _merkleRootWL; merkleRootSpecialWL = _merkleRootSpecialWL; baseURI = _baseURI; royaltyFeesInBips = _royaltyFeesInBips; royaltyReceiver = msg.sender; withdrawalWallet = _withdrawalWallet; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } function specialwhitelistMint( address _account, uint256 _quantity, bytes32[] calldata _proof ) external payable callerIsUser { uint256 price = specialwlSalePrice; require( SpecialWhitelistSaleActive == true, "Whitelist sale is not activated" ); require(msg.sender == _account, "Mint with your own wallet."); require(isSpecialWhiteListed(msg.sender, _proof), "Not whitelisted"); require( amountNFTsperWalletSpecialWL[msg.sender] + _quantity <= MAX_PER_WALLET_SPECIAL_WL, "Max per wallet limit reached" ); require( totalSupply() + _quantity <= MAX_TOTAL_SPECIAL_WL, "Max supply exceeded" ); require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply exceeded"); require(msg.value >= price * _quantity, "Not enought funds"); amountNFTsperWalletSpecialWL[msg.sender] += _quantity; _safeMint(_account, _quantity); } function whitelistMint( address _account, uint256 _quantity, bytes32[] calldata _proof ) external payable callerIsUser { uint256 price = wlSalePrice; require(WhitelistSaleActive == true, "Whitelist sale is not activated"); require(msg.sender == _account, "Mint with your own wallet."); require(isWhiteListed(msg.sender, _proof), "Not whitelisted"); require( amountNFTsperWalletWL[msg.sender] + _quantity <= MAX_PER_WALLET_WL, "Max per wallet limit reached" ); require( totalSupply() + _quantity <= MAX_TOTAL_WL, "Max supply exceeded" ); require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply exceeded"); require(msg.value >= price * _quantity, "Not enought funds"); amountNFTsperWalletWL[msg.sender] += _quantity; _safeMint(_account, _quantity); } function publicSaleMint(address _account, uint256 _quantity) external payable callerIsUser { uint256 price = publicSalePrice; require(price != 0, "Price is 0"); require(msg.sender == _account, "Mint with your own wallet."); require(SaleActive == true, "Public sale is not activated"); require( totalSupply() + _quantity <= MAX_TOTAL_PUBLIC, "Max supply exceeded" ); require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply exceeded"); require( amountNFTsperWalletPUBLIC[msg.sender] + _quantity <= MAX_PER_WALLET_PUBLIC, "Max per wallet limit reached" ); require(msg.value >= price * _quantity, "Not enought funds"); amountNFTsperWalletPUBLIC[msg.sender] += _quantity; _safeMint(_account, _quantity); } function gift(address _to, uint256 _quantity) external onlyOwner { require(totalSupply() + _quantity <= MAX_SUPPLY, "Reached max Supply"); _safeMint(_to, _quantity); } function lowerSupply(uint256 _MAX_SUPPLY) external onlyOwner { require(_MAX_SUPPLY < MAX_SUPPLY, "Cannot increase supply!"); MAX_SUPPLY = _MAX_SUPPLY; } function setMaxTotalPUBLIC(uint256 _MAX_TOTAL_PUBLIC) external onlyOwner { MAX_TOTAL_PUBLIC = _MAX_TOTAL_PUBLIC; } function setMaxTotalWL(uint256 _MAX_TOTAL_WL) external onlyOwner { MAX_TOTAL_WL = _MAX_TOTAL_WL; } function setMaxTotalSpecialWL(uint256 _MAX_TOTAL_SPECIAL_WL) external onlyOwner { MAX_TOTAL_SPECIAL_WL = _MAX_TOTAL_SPECIAL_WL; } function setMaxPerWalletWL(uint256 _MAX_PER_WALLET_WL) external onlyOwner { MAX_PER_WALLET_WL = _MAX_PER_WALLET_WL; } function setMaxPerWalletSpecialWL(uint256 _MAX_PER_WALLET_SPECIAL_WL) external onlyOwner { MAX_PER_WALLET_SPECIAL_WL = _MAX_PER_WALLET_SPECIAL_WL; } function setMaxPerWalletPUBLIC(uint256 _MAX_PER_WALLET_PUBLIC) external onlyOwner { MAX_PER_WALLET_PUBLIC = _MAX_PER_WALLET_PUBLIC; } function setWLSalePrice(uint256 _wlSalePrice) external onlyOwner { wlSalePrice = _wlSalePrice; } function setSpecialWLSalePrice(uint256 _specialwlSalePrice) external onlyOwner { specialwlSalePrice = _specialwlSalePrice; } function setPublicSalePrice(uint256 _publicSalePrice) external onlyOwner { publicSalePrice = _publicSalePrice; } function setBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function toggleSaleActive(bool _SaleActive) external onlyOwner { SaleActive = _SaleActive; } function toggleWhitelistSaleActive(bool _WhitelistSaleActive) external onlyOwner { WhitelistSaleActive = _WhitelistSaleActive; } function toggleSpecialWhitelistSaleActive(bool _SpecialWhitelistSaleActive) external onlyOwner { SpecialWhitelistSaleActive = _SpecialWhitelistSaleActive; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); if (revealed == false) { return (unrevealedURI); } else return string(abi.encodePacked(baseURI, _tokenId.toString(), ".json")); } function setRevealed(bool _revealed) external onlyOwner { revealed = _revealed; } function setUnrevealedURI(string memory _unrevealedURI) external onlyOwner { unrevealedURI = _unrevealedURI; } //Whitelist function setMerkleRootWL(bytes32 _merkleRootWL) external onlyOwner { merkleRootWL = _merkleRootWL; } function setMerkleRootSpecialWL(bytes32 _merkleRootSpecialWL) external onlyOwner { merkleRootSpecialWL = _merkleRootSpecialWL; } function isWhiteListed(address _account, bytes32[] calldata _proof) internal view returns (bool) { return _verifyWL(leaf(_account), _proof); } function isSpecialWhiteListed(address _account, bytes32[] calldata _proof) internal view returns (bool) { return _verifySpecialWL(leaf(_account), _proof); } function leaf(address _account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_account)); } function _verifyWL(bytes32 _leaf, bytes32[] memory _proof) internal view returns (bool) { return MerkleProof.verify(_proof, merkleRootWL, _leaf); } function _verifySpecialWL(bytes32 _leaf, bytes32[] memory _proof) internal view returns (bool) { return MerkleProof.verify(_proof, merkleRootSpecialWL, _leaf); } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) { return (royaltyReceiver, calculateRoyalty(_salePrice)); } function calculateRoyalty(uint256 _salePrice) public view returns (uint256) { return (_salePrice / 10000) * royaltyFeesInBips; } function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyOwner { royaltyReceiver = _receiver; royaltyFeesInBips = _royaltyFeesInBips; } // WITHDRAW function changeWithdrawalWallet(address _withdrawalWallet) external onlyOwner { withdrawalWallet = _withdrawalWallet; } function withdraw() external onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "No funds to withdraw"); payable(withdrawalWallet).transfer(balance); } receive() external payable { revert("Only if you mint"); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token 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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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 == 0x2a55205a || // ERC 2981 rotyalty interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 { 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; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @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 See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ 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 ''; } /** * @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)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev 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 (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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 { _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 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 { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); 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 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _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 { 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 Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool 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)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { 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 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; } /** * @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 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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * 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. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _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}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 // 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 // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of 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 through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // 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 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 (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"},{"internalType":"bytes32","name":"_merkleRootWL","type":"bytes32"},{"internalType":"bytes32","name":"_merkleRootSpecialWL","type":"bytes32"},{"internalType":"address","name":"_withdrawalWallet","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_WALLET_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET_SPECIAL_WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET_WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_SPECIAL_WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SpecialWhitelistSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WhitelistSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletPUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletSpecialWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"calculateRoyalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawalWallet","type":"address"}],"name":"changeWithdrawalWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"gift","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":[{"internalType":"uint256","name":"_MAX_SUPPLY","type":"uint256"}],"name":"lowerSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRootSpecialWL","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootWL","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET_PUBLIC","type":"uint256"}],"name":"setMaxPerWalletPUBLIC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET_SPECIAL_WL","type":"uint256"}],"name":"setMaxPerWalletSpecialWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET_WL","type":"uint256"}],"name":"setMaxPerWalletWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_TOTAL_PUBLIC","type":"uint256"}],"name":"setMaxTotalPUBLIC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_TOTAL_SPECIAL_WL","type":"uint256"}],"name":"setMaxTotalSpecialWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_TOTAL_WL","type":"uint256"}],"name":"setMaxTotalWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootSpecialWL","type":"bytes32"}],"name":"setMerkleRootSpecialWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootWL","type":"bytes32"}],"name":"setMerkleRootWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSalePrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_specialwlSalePrice","type":"uint256"}],"name":"setSpecialWLSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedURI","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlSalePrice","type":"uint256"}],"name":"setWLSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"specialwhitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"specialwlSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"bool","name":"_SaleActive","type":"bool"}],"name":"toggleSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_SpecialWhitelistSaleActive","type":"bool"}],"name":"toggleSpecialWhitelistSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_WhitelistSaleActive","type":"bool"}],"name":"toggleWhitelistSaleActive","outputs":[],"stateMutability":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6009805462ffffff19169055610100604052604560808181529062002f7c60a039600b906200002f90826200027e565b50600c805460ff19169055611af4600d819055600e819055600f81905560105560196011556001601255600560135560006014819055601555668e1bc9bf0400006016553480156200008057600080fd5b5060405162002fc138038062002fc1833981016040819052620000a3916200034a565b6040518060400160405280600d81526020016c537065637472756d506570657360981b81525060405180604001604052806008815260200167535045435452554d60c01b81525062000104620000fe6200018560201b60201c565b62000189565b60036200011283826200027e565b5060046200012182826200027e565b5060018055505060178490556018839055600a6200014082826200027e565b5050601d80546001600160a01b031990811633179091556001600160a01b03919091166001600160601b03909416600160a01b021692909217601c5550620004759050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200020457607f821691505b6020821081036200022557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200027957600081815260208120601f850160051c81016020861015620002545750805b601f850160051c820191505b81811015620002755782815560010162000260565b5050505b505050565b81516001600160401b038111156200029a576200029a620001d9565b620002b281620002ab8454620001ef565b846200022b565b602080601f831160018114620002ea5760008415620002d15750858301515b600019600386901b1c1916600185901b17855562000275565b600085815260208120601f198616915b828110156200031b57888601518255948401946001909101908401620002fa565b50858210156200033a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080600080600060a086880312156200036357600080fd5b85516001600160601b03811681146200037b57600080fd5b602087810151604089015160608a01519398509096509450906001600160a01b0381168114620003aa57600080fd5b60808801519093506001600160401b0380821115620003c857600080fd5b818901915089601f830112620003dd57600080fd5b815181811115620003f257620003f2620001d9565b604051601f8201601f19908116603f011681019083821181831017156200041d576200041d620001d9565b816040528281528c868487010111156200043657600080fd5b600093505b828410156200045a57848401860151818501870152928501926200043b565b60008684830101528096505050505050509295509295909350565b612af780620004856000396000f3fe6080604052600436106103dd5760003560e01c8063791a2519116101fd578063b74ce1f011610118578063e0a80853116100ab578063e9f90b461161007a578063e9f90b4614610b55578063f1d2165f14610b75578063f2fde38b14610b8f578063fe2c7fee14610baf578063fec9053014610bcf57600080fd5b8063e0a8085314610ae0578063e4d2387214610b00578063e6bfb41b14610b16578063e985e9c514610b3557600080fd5b8063c87b56dd116100e7578063c87b56dd14610a6a578063cbce4c9714610a8a578063cd24c60f14610aaa578063d6492d8114610aca57600080fd5b8063b74ce1f0146109ea578063b88d4fde14610a0a578063c1612d4114610a2a578063c715381614610a4a57600080fd5b80639b6860c811610190578063aac0d2f61161015f578063aac0d2f614610981578063ac5ae11b146109a1578063ad3e31b7146109b4578063afd9a045146109d457600080fd5b80639b6860c81461090b578063a0bcfc7f14610921578063a22cb46514610941578063a2e696131461096157600080fd5b80638da5cb5b116101cc5780638da5cb5b1461087e5780638eb478a61461089c578063952aeab8146108c957806395d89b41146108f657600080fd5b8063791a251914610812578063828122ab1461083257806382df1c1c146108485780638966be441461085e57600080fd5b806339e95de9116102f857806355cf59121161028b5780636c0360eb1161025a5780636c0360eb1461079d5780637035bf18146107b257806370a08231146107c7578063715018a6146107e7578063734c66bd146107fc57600080fd5b806355cf591214610727578063580e4722146107475780636352211e1461076757806364affb401461078757600080fd5b806344c6271f116102c757806344c6271f146106ba5780634a7d80b3146106da5780634b11faaf146106fa578063518302271461070d57600080fd5b806339e95de91461064f5780633aa2b0ed1461066f5780633ccfd60b1461068557806342842e0e1461069a57600080fd5b806317d5e67a116103705780632a55205a1161033f5780632a55205a146105c757806332c1ba7a1461060657806332cb6b0c1461061957806333336c7b1461062f57600080fd5b806317d5e67a1461055c57806318160ddd146105725780631c31f8c51461058757806323b872dd146105a757600080fd5b806308059439116103ac57806308059439146104c0578063081812fc146104e057806308ab701c14610518578063095ea7b31461053c57600080fd5b806301ffc9a71461042757806302fa7c471461045c57806306fdde031461047e57806307b43b80146104a057600080fd5b366104225760405162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881e5bdd481b5a5b9d60821b60448201526064015b60405180910390fd5b600080fd5b34801561043357600080fd5b50610447610442366004612309565b610bfc565b60405190151581526020015b60405180910390f35b34801561046857600080fd5b5061047c61047736600461233d565b610c69565b005b34801561048a57600080fd5b50610493610cad565b60405161045391906123d0565b3480156104ac57600080fd5b5061047c6104bb3660046123f3565b610d3f565b3480156104cc57600080fd5b5061047c6104db36600461240e565b610d5a565b3480156104ec57600080fd5b506105006104fb36600461240e565b610d67565b6040516001600160a01b039091168152602001610453565b34801561052457600080fd5b5061052e60105481565b604051908152602001610453565b34801561054857600080fd5b5061047c610557366004612427565b610dab565b34801561056857600080fd5b5061052e600e5481565b34801561057e57600080fd5b5061052e610e4b565b34801561059357600080fd5b5061047c6105a236600461240e565b610e59565b3480156105b357600080fd5b5061047c6105c2366004612451565b610e66565b3480156105d357600080fd5b506105e76105e236600461248d565b610fff565b604080516001600160a01b039093168352602083019190915201610453565b61047c6106143660046124af565b611024565b34801561062557600080fd5b5061052e600d5481565b34801561063b57600080fd5b506009546104479062010000900460ff1681565b34801561065b57600080fd5b5061047c61066a36600461240e565b611217565b34801561067b57600080fd5b5061052e60155481565b34801561069157600080fd5b5061047c611224565b3480156106a657600080fd5b5061047c6106b5366004612451565b6112af565b3480156106c657600080fd5b5061047c6106d5366004612539565b6112cf565b3480156106e657600080fd5b50601c54610500906001600160a01b031681565b61047c6107083660046124af565b6112f9565b34801561071957600080fd5b50600c546104479060ff1681565b34801561073357600080fd5b5061047c61074236600461240e565b6114d5565b34801561075357600080fd5b5061047c61076236600461240e565b6114e2565b34801561077357600080fd5b5061050061078236600461240e565b6114ef565b34801561079357600080fd5b5061052e60115481565b3480156107a957600080fd5b506104936114fa565b3480156107be57600080fd5b50610493611588565b3480156107d357600080fd5b5061052e6107e2366004612539565b611595565b3480156107f357600080fd5b5061047c6115e4565b34801561080857600080fd5b5061052e60145481565b34801561081e57600080fd5b5061047c61082d36600461240e565b6115f8565b34801561083e57600080fd5b5061052e60135481565b34801561085457600080fd5b5061052e60125481565b34801561086a57600080fd5b5061047c6108793660046123f3565b611605565b34801561088a57600080fd5b506000546001600160a01b0316610500565b3480156108a857600080fd5b5061052e6108b7366004612539565b60196020526000908152604090205481565b3480156108d557600080fd5b5061052e6108e4366004612539565b601a6020526000908152604090205481565b34801561090257600080fd5b50610493611629565b34801561091757600080fd5b5061052e60165481565b34801561092d57600080fd5b5061047c61093c3660046125e0565b611638565b34801561094d57600080fd5b5061047c61095c366004612629565b61164c565b34801561096d57600080fd5b5061052e61097c36600461240e565b6116e1565b34801561098d57600080fd5b5061047c61099c36600461240e565b61170d565b61047c6109af366004612427565b61171a565b3480156109c057600080fd5b5061047c6109cf36600461240e565b6118f5565b3480156109e057600080fd5b5061052e60185481565b3480156109f657600080fd5b5061047c610a0536600461240e565b611902565b348015610a1657600080fd5b5061047c610a2536600461265c565b61190f565b348015610a3657600080fd5b5061047c610a4536600461240e565b611959565b348015610a5657600080fd5b5061047c610a6536600461240e565b611966565b348015610a7657600080fd5b50610493610a8536600461240e565b6119c4565b348015610a9657600080fd5b5061047c610aa5366004612427565b611af3565b348015610ab657600080fd5b5061047c610ac536600461240e565b611b5e565b348015610ad657600080fd5b5061052e60175481565b348015610aec57600080fd5b5061047c610afb3660046123f3565b611b6b565b348015610b0c57600080fd5b5061052e600f5481565b348015610b2257600080fd5b5060095461044790610100900460ff1681565b348015610b4157600080fd5b50610447610b503660046126d8565b611b86565b348015610b6157600080fd5b5061047c610b703660046123f3565b611bb4565b348015610b8157600080fd5b506009546104479060ff1681565b348015610b9b57600080fd5b5061047c610baa366004612539565b611bd6565b348015610bbb57600080fd5b5061047c610bca3660046125e0565b611c4f565b348015610bdb57600080fd5b5061052e610bea366004612539565b601b6020526000908152604090205481565b60006301ffc9a760e01b6001600160e01b031983161480610c2d57506380ac58cd60e01b6001600160e01b03198316145b80610c48575063152a902d60e11b6001600160e01b03198316145b80610c635750635b5e139f60e01b6001600160e01b03198316145b92915050565b610c71611c63565b601d80546001600160a01b039384166001600160a01b0319909116179055601c80546001600160601b03909216600160a01b0291909216179055565b606060038054610cbc90612702565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce890612702565b8015610d355780601f10610d0a57610100808354040283529160200191610d35565b820191906000526020600020905b815481529060010190602001808311610d1857829003601f168201915b5050505050905090565b610d47611c63565b6009805460ff1916911515919091179055565b610d62611c63565b601455565b6000610d7282611cbd565b610d8f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610db6826114ef565b9050336001600160a01b03821614610def57610dd28133611b86565b610def576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600254600154036000190190565b610e61611c63565b601555565b6000610e7182611cf2565b9050836001600160a01b0316816001600160a01b031614610ea45760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610ef157610ed48633611b86565b610ef157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f1857604051633a954ecd60e21b815260040160405180910390fd5b8015610f2357600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610fb557600184016000818152600560205260408120549003610fb3576001548114610fb35760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b601d5460009081906001600160a01b0316611019846116e1565b915091509250929050565b3233146110435760405162461bcd60e51b81526004016104199061273c565b60155460095462010000900460ff1615156001146110a35760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973742073616c65206973206e6f7420616374697661746564006044820152606401610419565b336001600160a01b038616146110cb5760405162461bcd60e51b815260040161041990612773565b6110d6338484611d68565b6111145760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610419565b601254336000908152601b60205260409020546111329086906127c0565b11156111505760405162461bcd60e51b8152600401610419906127d3565b600f548461115c610e4b565b61116691906127c0565b11156111845760405162461bcd60e51b81526004016104199061280a565b600d5484611190610e4b565b61119a91906127c0565b11156111b85760405162461bcd60e51b81526004016104199061280a565b6111c28482612837565b3410156111e15760405162461bcd60e51b81526004016104199061284e565b336000908152601b6020526040812080548692906112009084906127c0565b9091555061121090508585611db7565b5050505050565b61121f611c63565b600f55565b61122c611c63565b47806112715760405162461bcd60e51b81526020600482015260146024820152734e6f2066756e647320746f20776974686472617760601b6044820152606401610419565b601c546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156112ab573d6000803e3d6000fd5b5050565b6112ca8383836040518060200160405280600081525061190f565b505050565b6112d7611c63565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b3233146113185760405162461bcd60e51b81526004016104199061273c565b60145460095460ff6101009091041615156001146113785760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973742073616c65206973206e6f7420616374697661746564006044820152606401610419565b336001600160a01b038616146113a05760405162461bcd60e51b815260040161041990612773565b6113ab338484611dd1565b6113e95760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610419565b601354336000908152601a60205260409020546114079086906127c0565b11156114255760405162461bcd60e51b8152600401610419906127d3565b60105484611431610e4b565b61143b91906127c0565b11156114595760405162461bcd60e51b81526004016104199061280a565b600d5484611465610e4b565b61146f91906127c0565b111561148d5760405162461bcd60e51b81526004016104199061280a565b6114978482612837565b3410156114b65760405162461bcd60e51b81526004016104199061284e565b336000908152601a6020526040812080548692906112009084906127c0565b6114dd611c63565b601155565b6114ea611c63565b601255565b6000610c6382611cf2565b600a805461150790612702565b80601f016020809104026020016040519081016040528092919081815260200182805461153390612702565b80156115805780601f1061155557610100808354040283529160200191611580565b820191906000526020600020905b81548152906001019060200180831161156357829003601f168201915b505050505081565b600b805461150790612702565b60006001600160a01b0382166115be576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6115ec611c63565b6115f66000611e18565b565b611600611c63565b601655565b61160d611c63565b60098054911515620100000262ff000019909216919091179055565b606060048054610cbc90612702565b611640611c63565b600a6112ab82826128bf565b336001600160a01b038316036116755760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601c54600090600160a01b90046001600160601b03166117036127108461297f565b610c639190612837565b611715611c63565b601055565b3233146117395760405162461bcd60e51b81526004016104199061273c565b601654600081900361177a5760405162461bcd60e51b815260206004820152600a6024820152690507269636520697320360b41b6044820152606401610419565b336001600160a01b038416146117a25760405162461bcd60e51b815260040161041990612773565b60095460ff1615156001146117f95760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c65206973206e6f7420616374697661746564000000006044820152606401610419565b600e5482611805610e4b565b61180f91906127c0565b111561182d5760405162461bcd60e51b81526004016104199061280a565b600d5482611839610e4b565b61184391906127c0565b11156118615760405162461bcd60e51b81526004016104199061280a565b6011543360009081526019602052604090205461187f9084906127c0565b111561189d5760405162461bcd60e51b8152600401610419906127d3565b6118a78282612837565b3410156118c65760405162461bcd60e51b81526004016104199061284e565b33600090815260196020526040812080548492906118e59084906127c0565b909155506112ca90508383611db7565b6118fd611c63565b601755565b61190a611c63565b600e55565b61191a848484610e66565b6001600160a01b0383163b156119535761193684848484611e68565b611953576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b611961611c63565b601355565b61196e611c63565b600d5481106119bf5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420696e63726561736520737570706c79210000000000000000006044820152606401610419565b600d55565b60606119cf82611cbd565b611a1b5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610419565b600c5460ff161515600003611abc57600b8054611a3790612702565b80601f0160208091040260200160405190810160405280929190818152602001828054611a6390612702565b8015611ab05780601f10611a8557610100808354040283529160200191611ab0565b820191906000526020600020905b815481529060010190602001808311611a9357829003601f168201915b50505050509050919050565b600a611ac783611f53565b604051602001611ad89291906129a1565b6040516020818303038152906040529050919050565b919050565b611afb611c63565b600d5481611b07610e4b565b611b1191906127c0565b1115611b545760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820537570706c7960701b6044820152606401610419565b6112ab8282611db7565b611b66611c63565b601855565b611b73611c63565b600c805460ff1916911515919091179055565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b611bbc611c63565b600980549115156101000261ff0019909216919091179055565b611bde611c63565b6001600160a01b038116611c435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610419565b611c4c81611e18565b50565b611c57611c63565b600b6112ab82826128bf565b6000546001600160a01b031633146115f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610419565b600081600111158015611cd1575060015482105b8015610c63575050600090815260056020526040902054600160e01b161590565b60008180600111611d4f57600154811015611d4f5760008181526005602052604081205490600160e01b82169003611d4d575b80600003611d46575060001901600081815260056020526040902054611d25565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611daf611d7685611fe6565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061202592505050565b949350505050565b6112ab828260405180602001604052806000815250612034565b6000611daf611ddf85611fe6565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061209a92505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611e9d903390899088908890600401612a38565b6020604051808303816000875af1925050508015611ed8575060408051601f3d908101601f19168201909252611ed591810190612a75565b60015b611f36573d808015611f06576040519150601f19603f3d011682016040523d82523d6000602084013e611f0b565b606091505b508051600003611f2e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606000611f60836120a9565b600101905060008167ffffffffffffffff811115611f8057611f80612554565b6040519080825280601f01601f191660200182016040528015611faa576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611fb457509392505050565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b6000611d468260185485612181565b61203e8383612197565b6001600160a01b0383163b156112ca576001548281035b6120686000868380600101945086611e68565b612085576040516368d2bf6b60e11b815260040160405180910390fd5b81811061205557816001541461121057600080fd5b6000611d468260175485612181565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106120e85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612114576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061213257662386f26fc10000830492506010015b6305f5e100831061214a576305f5e100830492506008015b612710831061215e57612710830492506004015b60648310612170576064830492506002015b600a8310610c635760010192915050565b60008261218e8584612277565b14949350505050565b6001546001600160a01b0383166121c057604051622e076360e81b815260040160405180910390fd5b816000036121e15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061222b5760015550505050565b600081815b84518110156122bc576122a88286838151811061229b5761229b612a92565b60200260200101516122c4565b9150806122b481612aa8565b91505061227c565b509392505050565b60008183106122e0576000828152602084905260409020611d46565b6000838152602083905260409020611d46565b6001600160e01b031981168114611c4c57600080fd5b60006020828403121561231b57600080fd5b8135611d46816122f3565b80356001600160a01b0381168114611aee57600080fd5b6000806040838503121561235057600080fd5b61235983612326565b915060208301356001600160601b038116811461237557600080fd5b809150509250929050565b60005b8381101561239b578181015183820152602001612383565b50506000910152565b600081518084526123bc816020860160208601612380565b601f01601f19169290920160200192915050565b602081526000611d4660208301846123a4565b80358015158114611aee57600080fd5b60006020828403121561240557600080fd5b611d46826123e3565b60006020828403121561242057600080fd5b5035919050565b6000806040838503121561243a57600080fd5b61244383612326565b946020939093013593505050565b60008060006060848603121561246657600080fd5b61246f84612326565b925061247d60208501612326565b9150604084013590509250925092565b600080604083850312156124a057600080fd5b50508035926020909101359150565b600080600080606085870312156124c557600080fd5b6124ce85612326565b935060208501359250604085013567ffffffffffffffff808211156124f257600080fd5b818701915087601f83011261250657600080fd5b81358181111561251557600080fd5b8860208260051b850101111561252a57600080fd5b95989497505060200194505050565b60006020828403121561254b57600080fd5b611d4682612326565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561258557612585612554565b604051601f8501601f19908116603f011681019082821181831017156125ad576125ad612554565b816040528093508581528686860111156125c657600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156125f257600080fd5b813567ffffffffffffffff81111561260957600080fd5b8201601f8101841361261a57600080fd5b611daf8482356020840161256a565b6000806040838503121561263c57600080fd5b61264583612326565b9150612653602084016123e3565b90509250929050565b6000806000806080858703121561267257600080fd5b61267b85612326565b935061268960208601612326565b925060408501359150606085013567ffffffffffffffff8111156126ac57600080fd5b8501601f810187136126bd57600080fd5b6126cc8782356020840161256a565b91505092959194509250565b600080604083850312156126eb57600080fd5b6126f483612326565b915061265360208401612326565b600181811c9082168061271657607f821691505b60208210810361273657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b6020808252601a908201527f4d696e74207769746820796f7572206f776e2077616c6c65742e000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c6357610c636127aa565b6020808252601c908201527f4d6178207065722077616c6c6574206c696d6974207265616368656400000000604082015260600190565b60208082526013908201527213585e081cdd5c1c1b1e48195e18d959591959606a1b604082015260600190565b8082028115828204841417610c6357610c636127aa565b6020808252601190820152704e6f7420656e6f756768742066756e647360781b604082015260600190565b601f8211156112ca57600081815260208120601f850160051c810160208610156128a05750805b601f850160051c820191505b81811015610ff7578281556001016128ac565b815167ffffffffffffffff8111156128d9576128d9612554565b6128ed816128e78454612702565b84612879565b602080601f831160018114612922576000841561290a5750858301515b600019600386901b1c1916600185901b178555610ff7565b600085815260208120601f198616915b8281101561295157888601518255948401946001909101908401612932565b508582101561296f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008261299c57634e487b7160e01b600052601260045260246000fd5b500490565b60008084546129af81612702565b600182811680156129c757600181146129dc57612a0b565b60ff1984168752821515830287019450612a0b565b8860005260208060002060005b85811015612a025781548a8201529084019082016129e9565b50505082870194505b505050508351612a1f818360208801612380565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a6b908301846123a4565b9695505050505050565b600060208284031215612a8757600080fd5b8151611d46816122f3565b634e487b7160e01b600052603260045260246000fd5b600060018201612aba57612aba6127aa565b506001019056fea2646970667358221220efb522c5f540c7aae409c0cc5ea9bcd5048e41cc941dc53fc5cc0cbd4cb6378164736f6c63430008120033697066733a2f2f516d5255706a58484a483733386b43764b4d6a5854797143744733395950437973516b773458657274364d7571502f756e72657665616c65642e6a736f6e00000000000000000000000000000000000000000000000000000000000001f47296856bf7df4552e9a365d65278f6c024ae21b306045e48aa90b7f02488dc988a720a1e58deb1f963d520c4788dd4a149aab37641f8461bdcec60dd37d3079f000000000000000000000000396660cbfd21a780414484a5b574613cb614914900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000012f00000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103dd5760003560e01c8063791a2519116101fd578063b74ce1f011610118578063e0a80853116100ab578063e9f90b461161007a578063e9f90b4614610b55578063f1d2165f14610b75578063f2fde38b14610b8f578063fe2c7fee14610baf578063fec9053014610bcf57600080fd5b8063e0a8085314610ae0578063e4d2387214610b00578063e6bfb41b14610b16578063e985e9c514610b3557600080fd5b8063c87b56dd116100e7578063c87b56dd14610a6a578063cbce4c9714610a8a578063cd24c60f14610aaa578063d6492d8114610aca57600080fd5b8063b74ce1f0146109ea578063b88d4fde14610a0a578063c1612d4114610a2a578063c715381614610a4a57600080fd5b80639b6860c811610190578063aac0d2f61161015f578063aac0d2f614610981578063ac5ae11b146109a1578063ad3e31b7146109b4578063afd9a045146109d457600080fd5b80639b6860c81461090b578063a0bcfc7f14610921578063a22cb46514610941578063a2e696131461096157600080fd5b80638da5cb5b116101cc5780638da5cb5b1461087e5780638eb478a61461089c578063952aeab8146108c957806395d89b41146108f657600080fd5b8063791a251914610812578063828122ab1461083257806382df1c1c146108485780638966be441461085e57600080fd5b806339e95de9116102f857806355cf59121161028b5780636c0360eb1161025a5780636c0360eb1461079d5780637035bf18146107b257806370a08231146107c7578063715018a6146107e7578063734c66bd146107fc57600080fd5b806355cf591214610727578063580e4722146107475780636352211e1461076757806364affb401461078757600080fd5b806344c6271f116102c757806344c6271f146106ba5780634a7d80b3146106da5780634b11faaf146106fa578063518302271461070d57600080fd5b806339e95de91461064f5780633aa2b0ed1461066f5780633ccfd60b1461068557806342842e0e1461069a57600080fd5b806317d5e67a116103705780632a55205a1161033f5780632a55205a146105c757806332c1ba7a1461060657806332cb6b0c1461061957806333336c7b1461062f57600080fd5b806317d5e67a1461055c57806318160ddd146105725780631c31f8c51461058757806323b872dd146105a757600080fd5b806308059439116103ac57806308059439146104c0578063081812fc146104e057806308ab701c14610518578063095ea7b31461053c57600080fd5b806301ffc9a71461042757806302fa7c471461045c57806306fdde031461047e57806307b43b80146104a057600080fd5b366104225760405162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881e5bdd481b5a5b9d60821b60448201526064015b60405180910390fd5b600080fd5b34801561043357600080fd5b50610447610442366004612309565b610bfc565b60405190151581526020015b60405180910390f35b34801561046857600080fd5b5061047c61047736600461233d565b610c69565b005b34801561048a57600080fd5b50610493610cad565b60405161045391906123d0565b3480156104ac57600080fd5b5061047c6104bb3660046123f3565b610d3f565b3480156104cc57600080fd5b5061047c6104db36600461240e565b610d5a565b3480156104ec57600080fd5b506105006104fb36600461240e565b610d67565b6040516001600160a01b039091168152602001610453565b34801561052457600080fd5b5061052e60105481565b604051908152602001610453565b34801561054857600080fd5b5061047c610557366004612427565b610dab565b34801561056857600080fd5b5061052e600e5481565b34801561057e57600080fd5b5061052e610e4b565b34801561059357600080fd5b5061047c6105a236600461240e565b610e59565b3480156105b357600080fd5b5061047c6105c2366004612451565b610e66565b3480156105d357600080fd5b506105e76105e236600461248d565b610fff565b604080516001600160a01b039093168352602083019190915201610453565b61047c6106143660046124af565b611024565b34801561062557600080fd5b5061052e600d5481565b34801561063b57600080fd5b506009546104479062010000900460ff1681565b34801561065b57600080fd5b5061047c61066a36600461240e565b611217565b34801561067b57600080fd5b5061052e60155481565b34801561069157600080fd5b5061047c611224565b3480156106a657600080fd5b5061047c6106b5366004612451565b6112af565b3480156106c657600080fd5b5061047c6106d5366004612539565b6112cf565b3480156106e657600080fd5b50601c54610500906001600160a01b031681565b61047c6107083660046124af565b6112f9565b34801561071957600080fd5b50600c546104479060ff1681565b34801561073357600080fd5b5061047c61074236600461240e565b6114d5565b34801561075357600080fd5b5061047c61076236600461240e565b6114e2565b34801561077357600080fd5b5061050061078236600461240e565b6114ef565b34801561079357600080fd5b5061052e60115481565b3480156107a957600080fd5b506104936114fa565b3480156107be57600080fd5b50610493611588565b3480156107d357600080fd5b5061052e6107e2366004612539565b611595565b3480156107f357600080fd5b5061047c6115e4565b34801561080857600080fd5b5061052e60145481565b34801561081e57600080fd5b5061047c61082d36600461240e565b6115f8565b34801561083e57600080fd5b5061052e60135481565b34801561085457600080fd5b5061052e60125481565b34801561086a57600080fd5b5061047c6108793660046123f3565b611605565b34801561088a57600080fd5b506000546001600160a01b0316610500565b3480156108a857600080fd5b5061052e6108b7366004612539565b60196020526000908152604090205481565b3480156108d557600080fd5b5061052e6108e4366004612539565b601a6020526000908152604090205481565b34801561090257600080fd5b50610493611629565b34801561091757600080fd5b5061052e60165481565b34801561092d57600080fd5b5061047c61093c3660046125e0565b611638565b34801561094d57600080fd5b5061047c61095c366004612629565b61164c565b34801561096d57600080fd5b5061052e61097c36600461240e565b6116e1565b34801561098d57600080fd5b5061047c61099c36600461240e565b61170d565b61047c6109af366004612427565b61171a565b3480156109c057600080fd5b5061047c6109cf36600461240e565b6118f5565b3480156109e057600080fd5b5061052e60185481565b3480156109f657600080fd5b5061047c610a0536600461240e565b611902565b348015610a1657600080fd5b5061047c610a2536600461265c565b61190f565b348015610a3657600080fd5b5061047c610a4536600461240e565b611959565b348015610a5657600080fd5b5061047c610a6536600461240e565b611966565b348015610a7657600080fd5b50610493610a8536600461240e565b6119c4565b348015610a9657600080fd5b5061047c610aa5366004612427565b611af3565b348015610ab657600080fd5b5061047c610ac536600461240e565b611b5e565b348015610ad657600080fd5b5061052e60175481565b348015610aec57600080fd5b5061047c610afb3660046123f3565b611b6b565b348015610b0c57600080fd5b5061052e600f5481565b348015610b2257600080fd5b5060095461044790610100900460ff1681565b348015610b4157600080fd5b50610447610b503660046126d8565b611b86565b348015610b6157600080fd5b5061047c610b703660046123f3565b611bb4565b348015610b8157600080fd5b506009546104479060ff1681565b348015610b9b57600080fd5b5061047c610baa366004612539565b611bd6565b348015610bbb57600080fd5b5061047c610bca3660046125e0565b611c4f565b348015610bdb57600080fd5b5061052e610bea366004612539565b601b6020526000908152604090205481565b60006301ffc9a760e01b6001600160e01b031983161480610c2d57506380ac58cd60e01b6001600160e01b03198316145b80610c48575063152a902d60e11b6001600160e01b03198316145b80610c635750635b5e139f60e01b6001600160e01b03198316145b92915050565b610c71611c63565b601d80546001600160a01b039384166001600160a01b0319909116179055601c80546001600160601b03909216600160a01b0291909216179055565b606060038054610cbc90612702565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce890612702565b8015610d355780601f10610d0a57610100808354040283529160200191610d35565b820191906000526020600020905b815481529060010190602001808311610d1857829003601f168201915b5050505050905090565b610d47611c63565b6009805460ff1916911515919091179055565b610d62611c63565b601455565b6000610d7282611cbd565b610d8f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610db6826114ef565b9050336001600160a01b03821614610def57610dd28133611b86565b610def576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600254600154036000190190565b610e61611c63565b601555565b6000610e7182611cf2565b9050836001600160a01b0316816001600160a01b031614610ea45760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610ef157610ed48633611b86565b610ef157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f1857604051633a954ecd60e21b815260040160405180910390fd5b8015610f2357600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610fb557600184016000818152600560205260408120549003610fb3576001548114610fb35760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b601d5460009081906001600160a01b0316611019846116e1565b915091509250929050565b3233146110435760405162461bcd60e51b81526004016104199061273c565b60155460095462010000900460ff1615156001146110a35760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973742073616c65206973206e6f7420616374697661746564006044820152606401610419565b336001600160a01b038616146110cb5760405162461bcd60e51b815260040161041990612773565b6110d6338484611d68565b6111145760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610419565b601254336000908152601b60205260409020546111329086906127c0565b11156111505760405162461bcd60e51b8152600401610419906127d3565b600f548461115c610e4b565b61116691906127c0565b11156111845760405162461bcd60e51b81526004016104199061280a565b600d5484611190610e4b565b61119a91906127c0565b11156111b85760405162461bcd60e51b81526004016104199061280a565b6111c28482612837565b3410156111e15760405162461bcd60e51b81526004016104199061284e565b336000908152601b6020526040812080548692906112009084906127c0565b9091555061121090508585611db7565b5050505050565b61121f611c63565b600f55565b61122c611c63565b47806112715760405162461bcd60e51b81526020600482015260146024820152734e6f2066756e647320746f20776974686472617760601b6044820152606401610419565b601c546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156112ab573d6000803e3d6000fd5b5050565b6112ca8383836040518060200160405280600081525061190f565b505050565b6112d7611c63565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b3233146113185760405162461bcd60e51b81526004016104199061273c565b60145460095460ff6101009091041615156001146113785760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973742073616c65206973206e6f7420616374697661746564006044820152606401610419565b336001600160a01b038616146113a05760405162461bcd60e51b815260040161041990612773565b6113ab338484611dd1565b6113e95760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610419565b601354336000908152601a60205260409020546114079086906127c0565b11156114255760405162461bcd60e51b8152600401610419906127d3565b60105484611431610e4b565b61143b91906127c0565b11156114595760405162461bcd60e51b81526004016104199061280a565b600d5484611465610e4b565b61146f91906127c0565b111561148d5760405162461bcd60e51b81526004016104199061280a565b6114978482612837565b3410156114b65760405162461bcd60e51b81526004016104199061284e565b336000908152601a6020526040812080548692906112009084906127c0565b6114dd611c63565b601155565b6114ea611c63565b601255565b6000610c6382611cf2565b600a805461150790612702565b80601f016020809104026020016040519081016040528092919081815260200182805461153390612702565b80156115805780601f1061155557610100808354040283529160200191611580565b820191906000526020600020905b81548152906001019060200180831161156357829003601f168201915b505050505081565b600b805461150790612702565b60006001600160a01b0382166115be576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6115ec611c63565b6115f66000611e18565b565b611600611c63565b601655565b61160d611c63565b60098054911515620100000262ff000019909216919091179055565b606060048054610cbc90612702565b611640611c63565b600a6112ab82826128bf565b336001600160a01b038316036116755760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601c54600090600160a01b90046001600160601b03166117036127108461297f565b610c639190612837565b611715611c63565b601055565b3233146117395760405162461bcd60e51b81526004016104199061273c565b601654600081900361177a5760405162461bcd60e51b815260206004820152600a6024820152690507269636520697320360b41b6044820152606401610419565b336001600160a01b038416146117a25760405162461bcd60e51b815260040161041990612773565b60095460ff1615156001146117f95760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c65206973206e6f7420616374697661746564000000006044820152606401610419565b600e5482611805610e4b565b61180f91906127c0565b111561182d5760405162461bcd60e51b81526004016104199061280a565b600d5482611839610e4b565b61184391906127c0565b11156118615760405162461bcd60e51b81526004016104199061280a565b6011543360009081526019602052604090205461187f9084906127c0565b111561189d5760405162461bcd60e51b8152600401610419906127d3565b6118a78282612837565b3410156118c65760405162461bcd60e51b81526004016104199061284e565b33600090815260196020526040812080548492906118e59084906127c0565b909155506112ca90508383611db7565b6118fd611c63565b601755565b61190a611c63565b600e55565b61191a848484610e66565b6001600160a01b0383163b156119535761193684848484611e68565b611953576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b611961611c63565b601355565b61196e611c63565b600d5481106119bf5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420696e63726561736520737570706c79210000000000000000006044820152606401610419565b600d55565b60606119cf82611cbd565b611a1b5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610419565b600c5460ff161515600003611abc57600b8054611a3790612702565b80601f0160208091040260200160405190810160405280929190818152602001828054611a6390612702565b8015611ab05780601f10611a8557610100808354040283529160200191611ab0565b820191906000526020600020905b815481529060010190602001808311611a9357829003601f168201915b50505050509050919050565b600a611ac783611f53565b604051602001611ad89291906129a1565b6040516020818303038152906040529050919050565b919050565b611afb611c63565b600d5481611b07610e4b565b611b1191906127c0565b1115611b545760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820537570706c7960701b6044820152606401610419565b6112ab8282611db7565b611b66611c63565b601855565b611b73611c63565b600c805460ff1916911515919091179055565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b611bbc611c63565b600980549115156101000261ff0019909216919091179055565b611bde611c63565b6001600160a01b038116611c435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610419565b611c4c81611e18565b50565b611c57611c63565b600b6112ab82826128bf565b6000546001600160a01b031633146115f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610419565b600081600111158015611cd1575060015482105b8015610c63575050600090815260056020526040902054600160e01b161590565b60008180600111611d4f57600154811015611d4f5760008181526005602052604081205490600160e01b82169003611d4d575b80600003611d46575060001901600081815260056020526040902054611d25565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611daf611d7685611fe6565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061202592505050565b949350505050565b6112ab828260405180602001604052806000815250612034565b6000611daf611ddf85611fe6565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061209a92505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611e9d903390899088908890600401612a38565b6020604051808303816000875af1925050508015611ed8575060408051601f3d908101601f19168201909252611ed591810190612a75565b60015b611f36573d808015611f06576040519150601f19603f3d011682016040523d82523d6000602084013e611f0b565b606091505b508051600003611f2e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606000611f60836120a9565b600101905060008167ffffffffffffffff811115611f8057611f80612554565b6040519080825280601f01601f191660200182016040528015611faa576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611fb457509392505050565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b6000611d468260185485612181565b61203e8383612197565b6001600160a01b0383163b156112ca576001548281035b6120686000868380600101945086611e68565b612085576040516368d2bf6b60e11b815260040160405180910390fd5b81811061205557816001541461121057600080fd5b6000611d468260175485612181565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106120e85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612114576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061213257662386f26fc10000830492506010015b6305f5e100831061214a576305f5e100830492506008015b612710831061215e57612710830492506004015b60648310612170576064830492506002015b600a8310610c635760010192915050565b60008261218e8584612277565b14949350505050565b6001546001600160a01b0383166121c057604051622e076360e81b815260040160405180910390fd5b816000036121e15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061222b5760015550505050565b600081815b84518110156122bc576122a88286838151811061229b5761229b612a92565b60200260200101516122c4565b9150806122b481612aa8565b91505061227c565b509392505050565b60008183106122e0576000828152602084905260409020611d46565b6000838152602083905260409020611d46565b6001600160e01b031981168114611c4c57600080fd5b60006020828403121561231b57600080fd5b8135611d46816122f3565b80356001600160a01b0381168114611aee57600080fd5b6000806040838503121561235057600080fd5b61235983612326565b915060208301356001600160601b038116811461237557600080fd5b809150509250929050565b60005b8381101561239b578181015183820152602001612383565b50506000910152565b600081518084526123bc816020860160208601612380565b601f01601f19169290920160200192915050565b602081526000611d4660208301846123a4565b80358015158114611aee57600080fd5b60006020828403121561240557600080fd5b611d46826123e3565b60006020828403121561242057600080fd5b5035919050565b6000806040838503121561243a57600080fd5b61244383612326565b946020939093013593505050565b60008060006060848603121561246657600080fd5b61246f84612326565b925061247d60208501612326565b9150604084013590509250925092565b600080604083850312156124a057600080fd5b50508035926020909101359150565b600080600080606085870312156124c557600080fd5b6124ce85612326565b935060208501359250604085013567ffffffffffffffff808211156124f257600080fd5b818701915087601f83011261250657600080fd5b81358181111561251557600080fd5b8860208260051b850101111561252a57600080fd5b95989497505060200194505050565b60006020828403121561254b57600080fd5b611d4682612326565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561258557612585612554565b604051601f8501601f19908116603f011681019082821181831017156125ad576125ad612554565b816040528093508581528686860111156125c657600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156125f257600080fd5b813567ffffffffffffffff81111561260957600080fd5b8201601f8101841361261a57600080fd5b611daf8482356020840161256a565b6000806040838503121561263c57600080fd5b61264583612326565b9150612653602084016123e3565b90509250929050565b6000806000806080858703121561267257600080fd5b61267b85612326565b935061268960208601612326565b925060408501359150606085013567ffffffffffffffff8111156126ac57600080fd5b8501601f810187136126bd57600080fd5b6126cc8782356020840161256a565b91505092959194509250565b600080604083850312156126eb57600080fd5b6126f483612326565b915061265360208401612326565b600181811c9082168061271657607f821691505b60208210810361273657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b6020808252601a908201527f4d696e74207769746820796f7572206f776e2077616c6c65742e000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c6357610c636127aa565b6020808252601c908201527f4d6178207065722077616c6c6574206c696d6974207265616368656400000000604082015260600190565b60208082526013908201527213585e081cdd5c1c1b1e48195e18d959591959606a1b604082015260600190565b8082028115828204841417610c6357610c636127aa565b6020808252601190820152704e6f7420656e6f756768742066756e647360781b604082015260600190565b601f8211156112ca57600081815260208120601f850160051c810160208610156128a05750805b601f850160051c820191505b81811015610ff7578281556001016128ac565b815167ffffffffffffffff8111156128d9576128d9612554565b6128ed816128e78454612702565b84612879565b602080601f831160018114612922576000841561290a5750858301515b600019600386901b1c1916600185901b178555610ff7565b600085815260208120601f198616915b8281101561295157888601518255948401946001909101908401612932565b508582101561296f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008261299c57634e487b7160e01b600052601260045260246000fd5b500490565b60008084546129af81612702565b600182811680156129c757600181146129dc57612a0b565b60ff1984168752821515830287019450612a0b565b8860005260208060002060005b85811015612a025781548a8201529084019082016129e9565b50505082870194505b505050508351612a1f818360208801612380565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a6b908301846123a4565b9695505050505050565b600060208284031215612a8757600080fd5b8151611d46816122f3565b634e487b7160e01b600052603260045260246000fd5b600060018201612aba57612aba6127aa565b506001019056fea2646970667358221220efb522c5f540c7aae409c0cc5ea9bcd5048e41cc941dc53fc5cc0cbd4cb6378164736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001f47296856bf7df4552e9a365d65278f6c024ae21b306045e48aa90b7f02488dc988a720a1e58deb1f963d520c4788dd4a149aab37641f8461bdcec60dd37d3079f000000000000000000000000396660cbfd21a780414484a5b574613cb614914900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000012f00000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _royaltyFeesInBips (uint96): 500
Arg [1] : _merkleRootWL (bytes32): 0x7296856bf7df4552e9a365d65278f6c024ae21b306045e48aa90b7f02488dc98
Arg [2] : _merkleRootSpecialWL (bytes32): 0x8a720a1e58deb1f963d520c4788dd4a149aab37641f8461bdcec60dd37d3079f
Arg [3] : _withdrawalWallet (address): 0x396660cbfD21A780414484A5B574613Cb6149149
Arg [4] : _baseURI (string): /
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [1] : 7296856bf7df4552e9a365d65278f6c024ae21b306045e48aa90b7f02488dc98
Arg [2] : 8a720a1e58deb1f963d520c4788dd4a149aab37641f8461bdcec60dd37d3079f
Arg [3] : 000000000000000000000000396660cbfd21a780414484a5b574613cb6149149
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 2f00000000000000000000000000000000000000000000000000000000000000
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.