Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 FRUITZ
Holders
618
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FRUITZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Mushroom
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.16; import "solmate/tokens/ERC721.sol"; import "openzeppelin-contracts/contracts/utils/Strings.sol"; import "openzeppelin-contracts/contracts/access/Ownable.sol"; import "openzeppelin-contracts/contracts/utils/cryptography/MerkleProof.sol"; error MaxSupply(); error NonExistentTokenURI(); error PeriodNotOver(); contract Mushroom is ERC721, Ownable { using Strings for uint256; uint256 public currentTokenId; uint256 public constant maxSupply = 2500; string public baseURI; bytes32 public immutable merkleRoot; uint256 public immutable mintPeriod; address public immutable treasury; uint256 public constant treasuryMint = 100; mapping(address => bool) public userToClaims; constructor( string memory _name, string memory _symbol, bytes32 _merkleRoot, string memory _baseURI, uint256 _mintPeriod, address _treasury ) ERC721(_name, _symbol) { merkleRoot = _merkleRoot; baseURI = _baseURI; mintPeriod = block.timestamp + _mintPeriod; treasury = _treasury; } function mint(address _recipient, bytes32[] memory proof) public returns (uint256) { // Verify the merkle proof. require(_recipient != address(0), "Address Zero"); bytes32 leaf = keccak256(abi.encodePacked(_recipient)); require(MerkleProof.verify(proof, merkleRoot, leaf), "Invalid proof"); require(userToClaims[_recipient] == false, "Already claimed"); require(currentTokenId + 1 <= maxSupply - treasuryMint, "Max public supply reached"); userToClaims[_recipient] = true; uint256 newItemId = ++currentTokenId; _safeMint(_recipient, newItemId); return newItemId; } function publicMint() public returns (uint256) { require(block.timestamp > mintPeriod, "Mint period still not over"); require(userToClaims[msg.sender] == false, "Already claimed"); require( currentTokenId + 1 <= maxSupply - treasuryMint, "Max public supply reached" ); userToClaims[msg.sender] = true; uint256 newItemId = ++currentTokenId; _safeMint(msg.sender, newItemId); return newItemId; } function setBaseURI(string memory _baseURI) public onlyOwner { baseURI = _baseURI; } function withdraw() public { require(block.timestamp > mintPeriod, "Mint period still not over"); require( currentTokenId + 1 <= maxSupply, "Max supply reached" ); uint256 newItemId = ++currentTokenId; _safeMint(treasury, newItemId); } function withdrawAll() public { require(block.timestamp > mintPeriod, "Mint period still not over"); while (currentTokenId < maxSupply) { uint256 newItemId = ++currentTokenId; _safeMint(treasury, newItemId); } } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { ownerOf(tokenId); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// 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 _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = 1; // compute log10(value), and add it to length uint256 valueCopy = value; if (valueCopy >= 10**64) { valueCopy /= 10**64; length += 64; } if (valueCopy >= 10**32) { valueCopy /= 10**32; length += 32; } if (valueCopy >= 10**16) { valueCopy /= 10**16; length += 16; } if (valueCopy >= 10**8) { valueCopy /= 10**8; length += 8; } if (valueCopy >= 10**4) { valueCopy /= 10**4; length += 4; } if (valueCopy >= 10**2) { valueCopy /= 10**2; length += 2; } if (valueCopy >= 10**1) { length += 1; } // now, length is log10(value) + 1 string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = 1; // compute log256(value), and add it to length uint256 valueCopy = value; if (valueCopy >= 1 << 128) { valueCopy >>= 128; length += 16; } if (valueCopy >= 1 << 64) { valueCopy >>= 64; length += 8; } if (valueCopy >= 1 << 32) { valueCopy >>= 32; length += 4; } if (valueCopy >= 1 << 16) { valueCopy >>= 16; length += 2; } if (valueCopy >= 1 << 8) { valueCopy >>= 8; length += 1; } // now, length is log256(value) + 1 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] = _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) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // 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; } }
{ "remappings": [ "ds-test/=lib/solmate/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"uint256","name":"_mintPeriod","type":"uint256"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":"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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userToClaims","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b5060405162002059380380620020598339810160408190526200003491620001c6565b858560006200004483826200031c565b5060016200005382826200031c565b505050620000706200006a620000ab60201b60201c565b620000af565b608084905260086200008384826200031c565b50620000908242620003e8565b60a0526001600160a01b031660c05250620004109350505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200012957600080fd5b81516001600160401b038082111562000146576200014662000101565b604051601f8301601f19908116603f0116810190828211818310171562000171576200017162000101565b816040528381526020925086838588010111156200018e57600080fd5b600091505b83821015620001b2578582018301518183018401529082019062000193565b600093810190920192909252949350505050565b60008060008060008060c08789031215620001e057600080fd5b86516001600160401b0380821115620001f857600080fd5b620002068a838b0162000117565b975060208901519150808211156200021d57600080fd5b6200022b8a838b0162000117565b96506040890151955060608901519150808211156200024957600080fd5b506200025889828a0162000117565b608089015160a08a0151919550935090506001600160a01b03811681146200027f57600080fd5b809150509295509295509295565b600181811c90821680620002a257607f821691505b602082108103620002c357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200031757600081815260208120601f850160051c81016020861015620002f25750805b601f850160051c820191505b818110156200031357828155600101620002fe565b5050505b505050565b81516001600160401b0381111562000338576200033862000101565b62000350816200034984546200028d565b84620002c9565b602080601f8311600181146200038857600084156200036f5750858301515b600019600386901b1c1916600185901b17855562000313565b600085815260208120601f198616915b82811015620003b95788860151825594840194600190910190840162000398565b5085821015620003d85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200040a57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c051611bef6200046a60003960008181610343015281816109c80152610e0e015260008181610309015281816107e4015281816109190152610da80152600081816102a40152610c3a0152611bef6000f3fe608060405234801561001057600080fd5b50600436106101cd5760003560e01c806361d027b3116101045780638da5cb5b116100a2578063c87b56dd11610071578063c87b56dd146103f5578063d5abeb0114610408578063e985e9c514610411578063f2fde38b1461043f57600080fd5b80638da5cb5b146103b657806395d89b41146103c7578063a22cb465146103cf578063b88d4fde146103e257600080fd5b806370a08231116100de57806370a0823114610380578063715018a6146103935780637bf322701461039b578063853828b6146103ae57600080fd5b806361d027b31461033e5780636352211e146103655780636c0360eb1461037857600080fd5b806326092b831161017157806342842e0e1161014b57806342842e0e146102ce5780634b38413c146102e15780634c4982031461030457806355f804b31461032b57600080fd5b806326092b83146102975780632eb4a7ab1461029f5780633ccfd60b146102c657600080fd5b806306fdde03116101ad57806306fdde0314610219578063081812fc1461022e578063095ea7b31461026f57806323b872dd1461028457600080fd5b8062032235146101d25780629a9b7b146101ed57806301ffc9a7146101f6575b600080fd5b6101da606481565b6040519081526020015b60405180910390f35b6101da60075481565b6102096102043660046114e9565b610452565b60405190151581526020016101e4565b6102216104a4565b6040516101e4919061152a565b61025761023c36600461155d565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e4565b61028261027d36600461158d565b610532565b005b6102826102923660046115b7565b610619565b6101da6107e0565b6101da7f000000000000000000000000000000000000000000000000000000000000000081565b610282610917565b6102826102dc3660046115b7565b6109f0565b6102096102ef3660046115f3565b60096020526000908152604090205460ff1681565b6101da7f000000000000000000000000000000000000000000000000000000000000000081565b610282610339366004611655565b610ac5565b6102577f000000000000000000000000000000000000000000000000000000000000000081565b61025761037336600461155d565b610add565b610221610b2f565b6101da61038e3660046115f3565b610b3c565b610282610b9f565b6101da6103a93660046116ea565b610bb3565b610282610da6565b6006546001600160a01b0316610257565b610221610e39565b6102826103dd3660046117a3565b610e46565b6102826103f03660046117df565b610eb2565b61022161040336600461155d565b610f77565b6101da6109c481565b61020961041f36600461187a565b600560209081526000928352604080842090915290825290205460ff1681565b61028261044d3660046115f3565b610fdf565b60006301ffc9a760e01b6001600160e01b03198316148061048357506380ac58cd60e01b6001600160e01b03198316145b8061049e5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546104b1906118ad565b80601f01602080910402602001604051908101604052809291908181526020018280546104dd906118ad565b801561052a5780601f106104ff5761010080835404028352916020019161052a565b820191906000526020600020905b81548152906001019060200180831161050d57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061057b57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105bd5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461066f5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016105b4565b6001600160a01b0382166106b95760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105b4565b336001600160a01b03841614806106f357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061071457506000818152600460205260409020546001600160a01b031633145b6107515760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016105b4565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60007f000000000000000000000000000000000000000000000000000000000000000042116108215760405162461bcd60e51b81526004016105b4906118e7565b3360009081526009602052604090205460ff16156108735760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016105b4565b61088060646109c4611934565b60075461088e906001611947565b11156108d85760405162461bcd60e51b815260206004820152601960248201527813585e081c1d589b1a58c81cdd5c1c1b1e481c995858da1959603a1b60448201526064016105b4565b336000908152600960205260408120805460ff191660011790556007805482906109019061195a565b918290555090506109123382611055565b919050565b7f000000000000000000000000000000000000000000000000000000000000000042116109565760405162461bcd60e51b81526004016105b4906118e7565b6109c460075460016109689190611947565b11156109ab5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016105b4565b60006007600081546109bc9061195a565b918290555090506109ed7f000000000000000000000000000000000000000000000000000000000000000082611055565b50565b6109fb838383610619565b6001600160a01b0382163b1580610aa45750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a989190611973565b6001600160e01b031916145b610ac05760405162461bcd60e51b81526004016105b490611990565b505050565b610acd611121565b6008610ad98282611a08565b5050565b6000818152600260205260409020546001600160a01b0316806109125760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105b4565b600880546104b1906118ad565b60006001600160a01b038216610b835760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016105b4565b506001600160a01b031660009081526003602052604090205490565b610ba7611121565b610bb1600061117b565b565b60006001600160a01b038316610bfa5760405162461bcd60e51b815260206004820152600c60248201526b41646472657373205a65726f60a01b60448201526064016105b4565b6040516bffffffffffffffffffffffff19606085901b166020820152600090603401604051602081830303815290604052805190602001209050610c5f837f0000000000000000000000000000000000000000000000000000000000000000836111cd565b610c9b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016105b4565b6001600160a01b03841660009081526009602052604090205460ff1615610cf65760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016105b4565b610d0360646109c4611934565b600754610d11906001611947565b1115610d5b5760405162461bcd60e51b815260206004820152601960248201527813585e081c1d589b1a58c81cdd5c1c1b1e481c995858da1959603a1b60448201526064016105b4565b6001600160a01b0384166000908152600960205260408120805460ff19166001179055600780548290610d8d9061195a565b91829055509050610d9e8582611055565b949350505050565b7f00000000000000000000000000000000000000000000000000000000000000004211610de55760405162461bcd60e51b81526004016105b4906118e7565b6109c46007541015610bb1576000600760008154610e029061195a565b91829055509050610e337f000000000000000000000000000000000000000000000000000000000000000082611055565b50610de5565b600180546104b1906118ad565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ebd858585610619565b6001600160a01b0384163b1580610f545750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610f059033908a90899089908990600401611ac8565b6020604051808303816000875af1158015610f24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f489190611973565b6001600160e01b031916145b610f705760405162461bcd60e51b81526004016105b490611990565b5050505050565b6060610f8282610add565b50600060088054610f92906118ad565b905011610fae576040518060200160405280600081525061049e565b6008610fb9836111e3565b604051602001610fca929190611b1c565b60405160208183030381529060405292915050565b610fe7611121565b6001600160a01b03811661104c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b4565b6109ed8161117b565b61105f8282611349565b6001600160a01b0382163b15806111055750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156110d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f99190611973565b6001600160e01b031916145b610ad95760405162461bcd60e51b81526004016105b490611990565b6006546001600160a01b03163314610bb15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b4565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826111da8584611454565b14949350505050565b606060018272184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8110611226576040919091019072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b90045b6d04ee2d6d415b85acef8100000000811061125457602091909101906d04ee2d6d415b85acef810000000090045b662386f26fc1000081106112745760109190910190662386f26fc1000090045b6305f5e100811061128e57600891909101906305f5e10090045b61271081106112a4576004919091019061271090045b606481106112b85760029190910190606490045b600a81106112c7576001820191505b60008267ffffffffffffffff8111156112e2576112e261160e565b6040519080825280601f01601f19166020018201604052801561130c576020820181803683370190505b5090508281016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a87061a8153600a86049550856113165750949350505050565b6001600160a01b0382166113935760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105b4565b6000818152600260205260409020546001600160a01b0316156113e95760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016105b4565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b8451811015611499576114858286838151811061147857611478611ba3565b60200260200101516114a1565b9150806114918161195a565b915050611459565b509392505050565b60008183106114bd5760008281526020849052604090206114cc565b60008381526020839052604090205b9392505050565b6001600160e01b0319811681146109ed57600080fd5b6000602082840312156114fb57600080fd5b81356114cc816114d3565b60005b83811015611521578181015183820152602001611509565b50506000910152565b6020815260008251806020840152611549816040850160208701611506565b601f01601f19169190910160400192915050565b60006020828403121561156f57600080fd5b5035919050565b80356001600160a01b038116811461091257600080fd5b600080604083850312156115a057600080fd5b6115a983611576565b946020939093013593505050565b6000806000606084860312156115cc57600080fd5b6115d584611576565b92506115e360208501611576565b9150604084013590509250925092565b60006020828403121561160557600080fd5b6114cc82611576565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561164d5761164d61160e565b604052919050565b6000602080838503121561166857600080fd5b823567ffffffffffffffff8082111561168057600080fd5b818501915085601f83011261169457600080fd5b8135818111156116a6576116a661160e565b6116b8601f8201601f19168501611624565b915080825286848285010111156116ce57600080fd5b8084840185840137600090820190930192909252509392505050565b600080604083850312156116fd57600080fd5b61170683611576565b915060208084013567ffffffffffffffff8082111561172457600080fd5b818601915086601f83011261173857600080fd5b81358181111561174a5761174a61160e565b8060051b915061175b848301611624565b818152918301840191848101908984111561177557600080fd5b938501935b838510156117935784358252938501939085019061177a565b8096505050505050509250929050565b600080604083850312156117b657600080fd5b6117bf83611576565b9150602083013580151581146117d457600080fd5b809150509250929050565b6000806000806000608086880312156117f757600080fd5b61180086611576565b945061180e60208701611576565b935060408601359250606086013567ffffffffffffffff8082111561183257600080fd5b818801915088601f83011261184657600080fd5b81358181111561185557600080fd5b89602082850101111561186757600080fd5b9699959850939650602001949392505050565b6000806040838503121561188d57600080fd5b61189683611576565b91506118a460208401611576565b90509250929050565b600181811c908216806118c157607f821691505b6020821081036118e157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601a908201527f4d696e7420706572696f64207374696c6c206e6f74206f766572000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561049e5761049e61191e565b8082018082111561049e5761049e61191e565b60006001820161196c5761196c61191e565b5060010190565b60006020828403121561198557600080fd5b81516114cc816114d3565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b601f821115610ac057600081815260208120601f850160051c810160208610156119e15750805b601f850160051c820191505b81811015611a00578281556001016119ed565b505050505050565b815167ffffffffffffffff811115611a2257611a2261160e565b611a3681611a3084546118ad565b846119ba565b602080601f831160018114611a6b5760008415611a535750858301515b600019600386901b1c1916600185901b178555611a00565b600085815260208120601f198616915b82811015611a9a57888601518255948401946001909101908401611a7b565b5085821015611ab85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000808454611b2a816118ad565b60018281168015611b425760018114611b5757611b86565b60ff1984168752821515830287019450611b86565b8860005260208060002060005b85811015611b7d5781548a820152908401908201611b64565b50505082870194505b505050508351611b9a818360208801611506565b01949350505050565b634e487b7160e01b600052603260045260246000fdfea264697066735822122068b438705733354f19d19e2ef16b3b7dccc4bf7e5177fc9648f480102c11d9ba64736f6c6343000810003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100a649425ba93945eea8cf9fd40b20f78f96c236b9dd674a7ec9b04ec9e6cf995700000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000a70b638b70154edfcbb8dbbbd04900f328f32c35000000000000000000000000000000000000000000000000000000000000000d5365776167652046727569747a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000646525549545a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f336c7231336b6e6472352e657865637574652d6170692e75732d656173742d312e616d617a6f6e6177732e636f6d2f000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cd5760003560e01c806361d027b3116101045780638da5cb5b116100a2578063c87b56dd11610071578063c87b56dd146103f5578063d5abeb0114610408578063e985e9c514610411578063f2fde38b1461043f57600080fd5b80638da5cb5b146103b657806395d89b41146103c7578063a22cb465146103cf578063b88d4fde146103e257600080fd5b806370a08231116100de57806370a0823114610380578063715018a6146103935780637bf322701461039b578063853828b6146103ae57600080fd5b806361d027b31461033e5780636352211e146103655780636c0360eb1461037857600080fd5b806326092b831161017157806342842e0e1161014b57806342842e0e146102ce5780634b38413c146102e15780634c4982031461030457806355f804b31461032b57600080fd5b806326092b83146102975780632eb4a7ab1461029f5780633ccfd60b146102c657600080fd5b806306fdde03116101ad57806306fdde0314610219578063081812fc1461022e578063095ea7b31461026f57806323b872dd1461028457600080fd5b8062032235146101d25780629a9b7b146101ed57806301ffc9a7146101f6575b600080fd5b6101da606481565b6040519081526020015b60405180910390f35b6101da60075481565b6102096102043660046114e9565b610452565b60405190151581526020016101e4565b6102216104a4565b6040516101e4919061152a565b61025761023c36600461155d565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e4565b61028261027d36600461158d565b610532565b005b6102826102923660046115b7565b610619565b6101da6107e0565b6101da7fa649425ba93945eea8cf9fd40b20f78f96c236b9dd674a7ec9b04ec9e6cf995781565b610282610917565b6102826102dc3660046115b7565b6109f0565b6102096102ef3660046115f3565b60096020526000908152604090205460ff1681565b6101da7f00000000000000000000000000000000000000000000000000000000635d839381565b610282610339366004611655565b610ac5565b6102577f000000000000000000000000a70b638b70154edfcbb8dbbbd04900f328f32c3581565b61025761037336600461155d565b610add565b610221610b2f565b6101da61038e3660046115f3565b610b3c565b610282610b9f565b6101da6103a93660046116ea565b610bb3565b610282610da6565b6006546001600160a01b0316610257565b610221610e39565b6102826103dd3660046117a3565b610e46565b6102826103f03660046117df565b610eb2565b61022161040336600461155d565b610f77565b6101da6109c481565b61020961041f36600461187a565b600560209081526000928352604080842090915290825290205460ff1681565b61028261044d3660046115f3565b610fdf565b60006301ffc9a760e01b6001600160e01b03198316148061048357506380ac58cd60e01b6001600160e01b03198316145b8061049e5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546104b1906118ad565b80601f01602080910402602001604051908101604052809291908181526020018280546104dd906118ad565b801561052a5780601f106104ff5761010080835404028352916020019161052a565b820191906000526020600020905b81548152906001019060200180831161050d57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061057b57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105bd5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461066f5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016105b4565b6001600160a01b0382166106b95760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105b4565b336001600160a01b03841614806106f357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061071457506000818152600460205260409020546001600160a01b031633145b6107515760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016105b4565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60007f00000000000000000000000000000000000000000000000000000000635d839342116108215760405162461bcd60e51b81526004016105b4906118e7565b3360009081526009602052604090205460ff16156108735760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016105b4565b61088060646109c4611934565b60075461088e906001611947565b11156108d85760405162461bcd60e51b815260206004820152601960248201527813585e081c1d589b1a58c81cdd5c1c1b1e481c995858da1959603a1b60448201526064016105b4565b336000908152600960205260408120805460ff191660011790556007805482906109019061195a565b918290555090506109123382611055565b919050565b7f00000000000000000000000000000000000000000000000000000000635d839342116109565760405162461bcd60e51b81526004016105b4906118e7565b6109c460075460016109689190611947565b11156109ab5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016105b4565b60006007600081546109bc9061195a565b918290555090506109ed7f000000000000000000000000a70b638b70154edfcbb8dbbbd04900f328f32c3582611055565b50565b6109fb838383610619565b6001600160a01b0382163b1580610aa45750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a989190611973565b6001600160e01b031916145b610ac05760405162461bcd60e51b81526004016105b490611990565b505050565b610acd611121565b6008610ad98282611a08565b5050565b6000818152600260205260409020546001600160a01b0316806109125760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105b4565b600880546104b1906118ad565b60006001600160a01b038216610b835760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016105b4565b506001600160a01b031660009081526003602052604090205490565b610ba7611121565b610bb1600061117b565b565b60006001600160a01b038316610bfa5760405162461bcd60e51b815260206004820152600c60248201526b41646472657373205a65726f60a01b60448201526064016105b4565b6040516bffffffffffffffffffffffff19606085901b166020820152600090603401604051602081830303815290604052805190602001209050610c5f837fa649425ba93945eea8cf9fd40b20f78f96c236b9dd674a7ec9b04ec9e6cf9957836111cd565b610c9b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016105b4565b6001600160a01b03841660009081526009602052604090205460ff1615610cf65760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016105b4565b610d0360646109c4611934565b600754610d11906001611947565b1115610d5b5760405162461bcd60e51b815260206004820152601960248201527813585e081c1d589b1a58c81cdd5c1c1b1e481c995858da1959603a1b60448201526064016105b4565b6001600160a01b0384166000908152600960205260408120805460ff19166001179055600780548290610d8d9061195a565b91829055509050610d9e8582611055565b949350505050565b7f00000000000000000000000000000000000000000000000000000000635d83934211610de55760405162461bcd60e51b81526004016105b4906118e7565b6109c46007541015610bb1576000600760008154610e029061195a565b91829055509050610e337f000000000000000000000000a70b638b70154edfcbb8dbbbd04900f328f32c3582611055565b50610de5565b600180546104b1906118ad565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ebd858585610619565b6001600160a01b0384163b1580610f545750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610f059033908a90899089908990600401611ac8565b6020604051808303816000875af1158015610f24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f489190611973565b6001600160e01b031916145b610f705760405162461bcd60e51b81526004016105b490611990565b5050505050565b6060610f8282610add565b50600060088054610f92906118ad565b905011610fae576040518060200160405280600081525061049e565b6008610fb9836111e3565b604051602001610fca929190611b1c565b60405160208183030381529060405292915050565b610fe7611121565b6001600160a01b03811661104c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b4565b6109ed8161117b565b61105f8282611349565b6001600160a01b0382163b15806111055750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156110d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f99190611973565b6001600160e01b031916145b610ad95760405162461bcd60e51b81526004016105b490611990565b6006546001600160a01b03163314610bb15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b4565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826111da8584611454565b14949350505050565b606060018272184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8110611226576040919091019072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b90045b6d04ee2d6d415b85acef8100000000811061125457602091909101906d04ee2d6d415b85acef810000000090045b662386f26fc1000081106112745760109190910190662386f26fc1000090045b6305f5e100811061128e57600891909101906305f5e10090045b61271081106112a4576004919091019061271090045b606481106112b85760029190910190606490045b600a81106112c7576001820191505b60008267ffffffffffffffff8111156112e2576112e261160e565b6040519080825280601f01601f19166020018201604052801561130c576020820181803683370190505b5090508281016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a87061a8153600a86049550856113165750949350505050565b6001600160a01b0382166113935760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105b4565b6000818152600260205260409020546001600160a01b0316156113e95760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016105b4565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b8451811015611499576114858286838151811061147857611478611ba3565b60200260200101516114a1565b9150806114918161195a565b915050611459565b509392505050565b60008183106114bd5760008281526020849052604090206114cc565b60008381526020839052604090205b9392505050565b6001600160e01b0319811681146109ed57600080fd5b6000602082840312156114fb57600080fd5b81356114cc816114d3565b60005b83811015611521578181015183820152602001611509565b50506000910152565b6020815260008251806020840152611549816040850160208701611506565b601f01601f19169190910160400192915050565b60006020828403121561156f57600080fd5b5035919050565b80356001600160a01b038116811461091257600080fd5b600080604083850312156115a057600080fd5b6115a983611576565b946020939093013593505050565b6000806000606084860312156115cc57600080fd5b6115d584611576565b92506115e360208501611576565b9150604084013590509250925092565b60006020828403121561160557600080fd5b6114cc82611576565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561164d5761164d61160e565b604052919050565b6000602080838503121561166857600080fd5b823567ffffffffffffffff8082111561168057600080fd5b818501915085601f83011261169457600080fd5b8135818111156116a6576116a661160e565b6116b8601f8201601f19168501611624565b915080825286848285010111156116ce57600080fd5b8084840185840137600090820190930192909252509392505050565b600080604083850312156116fd57600080fd5b61170683611576565b915060208084013567ffffffffffffffff8082111561172457600080fd5b818601915086601f83011261173857600080fd5b81358181111561174a5761174a61160e565b8060051b915061175b848301611624565b818152918301840191848101908984111561177557600080fd5b938501935b838510156117935784358252938501939085019061177a565b8096505050505050509250929050565b600080604083850312156117b657600080fd5b6117bf83611576565b9150602083013580151581146117d457600080fd5b809150509250929050565b6000806000806000608086880312156117f757600080fd5b61180086611576565b945061180e60208701611576565b935060408601359250606086013567ffffffffffffffff8082111561183257600080fd5b818801915088601f83011261184657600080fd5b81358181111561185557600080fd5b89602082850101111561186757600080fd5b9699959850939650602001949392505050565b6000806040838503121561188d57600080fd5b61189683611576565b91506118a460208401611576565b90509250929050565b600181811c908216806118c157607f821691505b6020821081036118e157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601a908201527f4d696e7420706572696f64207374696c6c206e6f74206f766572000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561049e5761049e61191e565b8082018082111561049e5761049e61191e565b60006001820161196c5761196c61191e565b5060010190565b60006020828403121561198557600080fd5b81516114cc816114d3565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b601f821115610ac057600081815260208120601f850160051c810160208610156119e15750805b601f850160051c820191505b81811015611a00578281556001016119ed565b505050505050565b815167ffffffffffffffff811115611a2257611a2261160e565b611a3681611a3084546118ad565b846119ba565b602080601f831160018114611a6b5760008415611a535750858301515b600019600386901b1c1916600185901b178555611a00565b600085815260208120601f198616915b82811015611a9a57888601518255948401946001909101908401611a7b565b5085821015611ab85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000808454611b2a816118ad565b60018281168015611b425760018114611b5757611b86565b60ff1984168752821515830287019450611b86565b8860005260208060002060005b85811015611b7d5781548a820152908401908201611b64565b50505082870194505b505050508351611b9a818360208801611506565b01949350505050565b634e487b7160e01b600052603260045260246000fdfea264697066735822122068b438705733354f19d19e2ef16b3b7dccc4bf7e5177fc9648f480102c11d9ba64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100a649425ba93945eea8cf9fd40b20f78f96c236b9dd674a7ec9b04ec9e6cf995700000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000a70b638b70154edfcbb8dbbbd04900f328f32c35000000000000000000000000000000000000000000000000000000000000000d5365776167652046727569747a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000646525549545a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f336c7231336b6e6472352e657865637574652d6170692e75732d656173742d312e616d617a6f6e6177732e636f6d2f000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Sewage Fruitz
Arg [1] : _symbol (string): FRUITZ
Arg [2] : _merkleRoot (bytes32): 0xa649425ba93945eea8cf9fd40b20f78f96c236b9dd674a7ec9b04ec9e6cf9957
Arg [3] : _baseURI (string): https://3lr13kndr5.execute-api.us-east-1.amazonaws.com/
Arg [4] : _mintPeriod (uint256): 604800
Arg [5] : _treasury (address): 0xa70b638B70154EdfCbb8DbbBd04900F328F32c35
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : a649425ba93945eea8cf9fd40b20f78f96c236b9dd674a7ec9b04ec9e6cf9957
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [5] : 000000000000000000000000a70b638b70154edfcbb8dbbbd04900f328f32c35
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [7] : 5365776167652046727569747a00000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 46525549545a0000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [11] : 68747470733a2f2f336c7231336b6e6472352e657865637574652d6170692e75
Arg [12] : 732d656173742d312e616d617a6f6e6177732e636f6d2f000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.