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