ERC-721
Overview
Max Total Supply
6,969 FISH
Holders
3,714
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 FISHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x09B09E77...6E0EDE254 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
JustAFish
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9 <0.9.0; import "../lib/ERC721F/ERC721F.sol"; import "../lib/openzeppelin-contracts/contracts/utils/Strings.sol"; /** * @title JustAFish contract * @dev Extends ERC721F Non-Fungible Token Standard basic implementation. * Optimized to no longer use ERC721Enumarable , but still provide a totalSupply() implementation. * @author @simonbuidl.eth * */ contract JustAFish is ERC721F { using Strings for uint256; uint256 public tokenPrice = 0.0033 ether; uint256 public constant MAX_TOKENS= 6969; uint public constant MAX_PRESALE_PURCHASE = 2; // set 1 to high to avoid some gas uint public MAX_PUBLIC_PURCHASE = 4; // set 1 to high to avoid some gas uint public constant MAX_RESERVE = 26; // set 1 to high to avoid some gas bool public saleIsActive; bool public preSaleIsActive; bytes32 public merkleRoot; mapping(address => bool) public isClaimed; mapping(address => uint256) private amount; event priceChange(address _by, uint256 price); constructor() ERC721F("JustAFish", "FISH") { setBaseTokenURI("ipfs://QmWVP43QSdmSMU4w81qNcm8RuDs88BG9dc9VjZTX1YkXCt/"); updateMerkleRoot(0xd7407a85a778580cd724f52f9a44b92937a4eb7116d344402abbdacce6861ed1); _safeMint(0xD37B441828Af470746b06E5500a6fbd6b92ffeAb, 0); } /** * Mint Tokens to a wallet. */ function adminMint(address to,uint numberOfTokens) public onlyOwner { uint supply = totalSupply(); require(supply + numberOfTokens <= MAX_TOKENS, "Reserve would exceed max supply of Tokens"); require(numberOfTokens < MAX_RESERVE, "Can only mint 25 tokens at a time"); for (uint i = 0; i < numberOfTokens; i++) { _safeMint(to, supply + i); } } /** * Pause sale if active, make active if paused */ function flipSaleState() external onlyOwner { saleIsActive = !saleIsActive; if(saleIsActive){ preSaleIsActive=false; } } /** * Pause sale if active, make active if paused */ function flipPreSaleState() external onlyOwner { preSaleIsActive = !preSaleIsActive; } function changeMaxPublicMint(uint256 newAmount) external onlyOwner { require(newAmount >= 0); MAX_PUBLIC_PURCHASE = newAmount; } function changePrice(uint256 newPrice) external onlyOwner { require(newPrice >= 0); tokenPrice = newPrice; emit priceChange(msg.sender, newPrice); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function updateMerkleRoot(bytes32 newRoot) public onlyOwner { merkleRoot = newRoot; } function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } /** * Mint your tokens here. merge these methods */ function preMint(uint256 numberOfTokens, bytes32[] memory merkleProof) external payable { require(preSaleIsActive, "Presale is not active"); uint256 supply = totalSupply(); //Check whitelist bytes32 node = keccak256(abi.encodePacked(uint256(1), msg.sender)); require(verify(merkleProof, merkleRoot, node), 'Sender is not on the whitelist'); //Check min and max numberOfTokens require(numberOfTokens > 0, "Total number of mints cannot be 0"); require(numberOfTokens <= 2, "Total number of mints cannot exceed 3"); require(amount[msg.sender]+numberOfTokens <= MAX_PRESALE_PURCHASE, "You can only mint 2 during presale"); require(supply + numberOfTokens <= MAX_TOKENS, "Purchase would exceed max supply of Tokens"); //Check msg.value depending if free mint has been claimed. !isClaimed[msg.sender] ? require(tokenPrice * (numberOfTokens - 1) <= msg.value, "Ether value sent is not correct") : require(tokenPrice * (numberOfTokens) <= msg.value, "Ether value sent is not correct"); //Change state amount[msg.sender] += numberOfTokens; for(uint256 i; i < (numberOfTokens); i++){ _safeMint( msg.sender, supply + i ); } isClaimed[msg.sender] = true; } function mint(uint256 numberOfTokens) external payable { require(saleIsActive,"Sale NOT active yet"); //Check min and max numberOfTokens uint256 supply = totalSupply(); require(numberOfTokens > 0, "Total number of mints cannot be 0"); require(numberOfTokens <= 4, "Total number of mints cannot exceed 4"); require(amount[msg.sender] + numberOfTokens <= MAX_PUBLIC_PURCHASE,"You can only mint 4 in total"); require(supply + numberOfTokens <= MAX_TOKENS, "Purchase would exceed max supply of Tokens"); //Check msg.value amount[msg.sender] == 0 ? require(tokenPrice * (numberOfTokens - 1) <= msg.value, "Ether value sent is not correct") : require(tokenPrice * (numberOfTokens) <= msg.value, "Ether value sent is not correct"); //Change state amount[msg.sender] += numberOfTokens; for(uint256 i; i < (numberOfTokens); i++){ _safeMint( msg.sender, supply + i ); } isClaimed[msg.sender] = true; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "Insufficent balance"); _withdraw(0xD37B441828Af470746b06E5500a6fbd6b92ffeAb, (balance * 25) / 100); _withdraw(0x5409CfdF149d8BA163a58B25901C050d4DF8A122, (balance * 40) / 100); _withdraw(0x012e944B7181F4c4E8b18a60CEE33c47b3EaF37c, (balance * 35) / 100); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9 <0.9.0; import "../openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; import "../openzeppelin-contracts/contracts/access/Ownable.sol"; import "../openzeppelin-contracts/contracts/utils/Counters.sol"; /** * @title ERC721F * @dev Extends ERC721 Non-Fungible Token Standard basic implementation. * Optimized to no longer use ERC721Enumerable , but still provide a totalSupply() and walletOfOwner(address _owner) implementation. * @author @FrankNFT.eth * */ contract ERC721F is Ownable, ERC721 { using Counters for Counters.Counter; Counters.Counter private _tokenSupply; // Base URI for Meta data string private _baseTokenURI; constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) { } /** * @dev walletofOwner * @return tokens id owned by the given address * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function walletOfOwner(address _owner) external view returns (uint256[] memory){ uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = _startTokenId(); uint256 ownedTokenIndex = 0; while ( ownedTokenIndex < ownerTokenCount && currentTokenId < _tokenSupply.current() ) { if (ownerOf(currentTokenId) == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; unchecked{ ownedTokenIndex++;} } unchecked{ currentTokenId++;} } return ownedTokenIds; } /** * To change the starting tokenId, override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * @dev Set the base token URI */ function setBaseTokenURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } /** * * @dev Mints `tokenId` and transfers it to `to`. * */ function _mint(address to, uint256 tokenId) internal virtual override { super._mint(to, tokenId); _tokenSupply.increment(); } /** * @dev Gets the total amount of tokens stored by the contract. * @return uint256 representing the total amount of tokens */ function totalSupply() public view returns (uint256) { return _tokenSupply.current(); } /** * Helper method to allow ETH withdraws. */ function _withdraw(address _address, uint256 _amount) internal { (bool success, ) = _address.call{ value: _amount }(""); require(success, "Failed to widthdraw Ether"); } // contract can recieve Ether receive() external payable { } }
// 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) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// 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 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "ERC721F/=lib/ERC721F/", "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":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"priceChange","type":"event"},{"inputs":[],"name":"MAX_PRESALE_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"changeMaxPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"setBaseTokenURI","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":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052660bb9551fc240006009556004600a553480156200002157600080fd5b5060405180604001604052806009815260200168094eae6e8828cd2e6d60bb1b8152506040518060400160405280600481526020016308c92a6960e31b81525081816200007d620000776200012360201b60201c565b62000127565b815162000092906001906020850190620005d8565b508051620000a8906002906020840190620005d8565b5050505050620000d160405180606001604052806036815260200162002db66036913962000177565b620000fc7fd7407a85a778580cd724f52f9a44b92937a4eb7116d344402abbdacce6861ed16200019a565b6200011d73d37b441828af470746b06e5500a6fbd6b92ffeab6000620001a9565b62000768565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000181620001cb565b805162000196906008906020840190620005d8565b5050565b620001a4620001cb565b600c55565b620001968282604051806020016040528060008152506200022d60201b60201c565b6000546001600160a01b031633146200022b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b620002398383620002a5565b620002486000848484620002d3565b620002a05760405162461bcd60e51b8152602060048201526032602482015260008051602062002d9683398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000222565b505050565b620002bc82826200042f60201b620014321760201c565b620001966007620005c060201b620015bd1760201c565b6000620002f4846001600160a01b0316620005c960201b620015c61760201c565b156200042357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200032e9033908990889088906004016200067e565b6020604051808303816000875af19250505080156200036c575060408051601f3d908101601f191682019092526200036991810190620006f9565b60015b62000408573d8080156200039d576040519150601f19603f3d011682016040523d82523d6000602084013e620003a2565b606091505b508051600003620004005760405162461bcd60e51b8152602060048201526032602482015260008051602062002d9683398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000222565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000427565b5060015b949350505050565b6001600160a01b038216620004875760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000222565b6000818152600360205260409020546001600160a01b031615620004ee5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000222565b6000818152600360205260409020546001600160a01b031615620005555760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000222565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b6001600160a01b03163b151590565b828054620005e6906200072c565b90600052602060002090601f0160209004810192826200060a576000855562000655565b82601f106200062557805160ff191683800117855562000655565b8280016001018555821562000655579182015b828111156200065557825182559160200191906001019062000638565b506200066392915062000667565b5090565b5b8082111562000663576000815560010162000668565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620006cd5785810182015185820160a001528101620006af565b82811115620006e057600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200070c57600080fd5b81516001600160e01b0319811681146200072557600080fd5b9392505050565b600181811c908216806200074157607f821691505b6020821081036200076257634e487b7160e01b600052602260045260246000fd5b50919050565b61261e80620007786000396000f3fe60806040526004361061021e5760003560e01c806370a0823111610123578063a2b40d19116100ab578063eb8d24441161006f578063eb8d244414610632578063eff31e9e1461064c578063f032554914610661578063f2fde38b14610676578063f47c84c51461069657600080fd5b8063a2b40d1914610569578063b88d4fde14610589578063c87b56dd146105a9578063e58306f9146105c9578063e985e9c5146105e957600080fd5b80638da5cb5b116100f25780638da5cb5b146104e357806395d89b4114610501578063a0712d6814610516578063a144becc14610529578063a22cb4651461054957600080fd5b806370a0823114610468578063715018a6146104885780637ff9b5961461049d5780638cc08025146104b357600080fd5b80632eb4a7ab116101a657806342842e0e1161017557806342842e0e146103c8578063438b6300146103e85780634783f0ef146104155780635a546223146104355780636352211e1461044857600080fd5b80632eb4a7ab1461036857806330176e131461037e57806334918dfd1461039e5780633ccfd60b146103b357600080fd5b806318160ddd116101ed57806318160ddd146102db5780631f0234d8146102fe57806323b872dd1461031d578063243a3f8d1461033d5780632a2c6c081461035357600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b957600080fd5b3661022557005b600080fd5b34801561023657600080fd5b5061024a610245366004611ea7565b6106ac565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b506102746106fe565b6040516102569190611f1c565b34801561028d57600080fd5b506102a161029c366004611f2f565b610790565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d4366004611f64565b6107b7565b005b3480156102e757600080fd5b506102f06108d1565b604051908152602001610256565b34801561030a57600080fd5b50600b5461024a90610100900460ff1681565b34801561032957600080fd5b506102d9610338366004611f8e565b6108e1565b34801561034957600080fd5b506102f0600a5481565b34801561035f57600080fd5b506102f0600281565b34801561037457600080fd5b506102f0600c5481565b34801561038a57600080fd5b506102d9610399366004612069565b610912565b3480156103aa57600080fd5b506102d9610931565b3480156103bf57600080fd5b506102d9610962565b3480156103d457600080fd5b506102d96103e3366004611f8e565b610a2f565b3480156103f457600080fd5b506104086104033660046120b2565b610a4a565b60405161025691906120cd565b34801561042157600080fd5b506102d9610430366004611f2f565b610b11565b6102d9610443366004612111565b610b1e565b34801561045457600080fd5b506102a1610463366004611f2f565b610e33565b34801561047457600080fd5b506102f06104833660046120b2565b610e93565b34801561049457600080fd5b506102d9610f19565b3480156104a957600080fd5b506102f060095481565b3480156104bf57600080fd5b5061024a6104ce3660046120b2565b600d6020526000908152604090205460ff1681565b3480156104ef57600080fd5b506000546001600160a01b03166102a1565b34801561050d57600080fd5b50610274610f2b565b6102d9610524366004611f2f565b610f3a565b34801561053557600080fd5b506102d9610544366004611f2f565b611191565b34801561055557600080fd5b506102d96105643660046121c3565b61119e565b34801561057557600080fd5b506102d9610584366004611f2f565b6111a9565b34801561059557600080fd5b506102d96105a43660046121ff565b6111f2565b3480156105b557600080fd5b506102746105c4366004611f2f565b61122a565b3480156105d557600080fd5b506102d96105e4366004611f64565b611291565b3480156105f557600080fd5b5061024a61060436600461227b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561063e57600080fd5b50600b5461024a9060ff1681565b34801561065857600080fd5b506102f0601a81565b34801561066d57600080fd5b506102d9611397565b34801561068257600080fd5b506102d96106913660046120b2565b6113bc565b3480156106a257600080fd5b506102f0611b3981565b60006001600160e01b031982166380ac58cd60e01b14806106dd57506001600160e01b03198216635b5e139f60e01b145b806106f857506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461070d906122ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610739906122ae565b80156107865780601f1061075b57610100808354040283529160200191610786565b820191906000526020600020905b81548152906001019060200180831161076957829003601f168201915b5050505050905090565b600061079b826115d5565b506000908152600560205260409020546001600160a01b031690565b60006107c282610e33565b9050806001600160a01b0316836001600160a01b0316036108345760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061085057506108508133610604565b6108c25760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161082b565b6108cc8383611634565b505050565b60006108dc60075490565b905090565b6108eb33826116a2565b6109075760405162461bcd60e51b815260040161082b906122e8565b6108cc838383611721565b61091a611885565b805161092d906008906020840190611df8565b5050565b610939611885565b600b805460ff19811660ff91821615908117909255161561096057600b805461ff00191690555b565b61096a611885565b47806109ae5760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b604482015260640161082b565b6109e273d37b441828af470746b06e5500a6fbd6b92ffeab60646109d384601961234b565b6109dd9190612380565b6118df565b610a07735409cfdf149d8ba163a58b25901c050d4df8a12260646109d384602861234b565b610a2c73012e944b7181f4c4e8b18a60cee33c47b3eaf37c60646109d384602361234b565b50565b6108cc838383604051806020016040528060008152506111f2565b60606000610a5783610e93565b905060008167ffffffffffffffff811115610a7457610a74611fca565b604051908082528060200260200182016040528015610a9d578160200160208202803683370190505b5090506000805b8381108015610ab4575060075482105b15610b0757856001600160a01b0316610acc83610e33565b6001600160a01b031603610afc5781838281518110610aed57610aed612394565b60209081029190910101526001015b600190910190610aa4565b5090949350505050565b610b19611885565b600c55565b600b54610100900460ff16610b6d5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b604482015260640161082b565b6000610b776108d1565b90506000600133604051602001610baa92919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b604051602081830303815290604052805190602001209050610bcf83600c5483611982565b610c1b5760405162461bcd60e51b815260206004820152601e60248201527f53656e646572206973206e6f74206f6e207468652077686974656c6973740000604482015260640161082b565b60008411610c3b5760405162461bcd60e51b815260040161082b906123aa565b6002841115610c9a5760405162461bcd60e51b815260206004820152602560248201527f546f74616c206e756d626572206f66206d696e74732063616e6e6f7420657863604482015264656564203360d81b606482015260840161082b565b336000908152600e6020526040902054600290610cb89086906123eb565b1115610d115760405162461bcd60e51b815260206004820152602260248201527f596f752063616e206f6e6c79206d696e74203220647572696e672070726573616044820152616c6560f01b606482015260840161082b565b611b39610d1e85846123eb565b1115610d3c5760405162461bcd60e51b815260040161082b90612403565b336000908152600d602052604090205460ff1615610d86573484600954610d63919061234b565b1115610d815760405162461bcd60e51b815260040161082b9061244d565b610dbd565b34610d92600186612484565b600954610d9f919061234b565b1115610dbd5760405162461bcd60e51b815260040161082b9061244d565b336000908152600e602052604081208054869290610ddc9084906123eb565b90915550600090505b84811015610e1257610e0033610dfb83866123eb565b611a31565b80610e0a8161249b565b915050610de5565b5050336000908152600d60205260409020805460ff19166001179055505050565b6000818152600360205260408120546001600160a01b0316806106f85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161082b565b60006001600160a01b038216610efd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161082b565b506001600160a01b031660009081526004602052604090205490565b610f21611885565b6109606000611a4b565b60606002805461070d906122ae565b600b5460ff16610f825760405162461bcd60e51b815260206004820152601360248201527214d85b19481393d5081858dd1a5d99481e595d606a1b604482015260640161082b565b6000610f8c6108d1565b905060008211610fae5760405162461bcd60e51b815260040161082b906123aa565b600482111561100d5760405162461bcd60e51b815260206004820152602560248201527f546f74616c206e756d626572206f66206d696e74732063616e6e6f7420657863604482015264195959080d60da1b606482015260840161082b565b600a54336000908152600e602052604090205461102b9084906123eb565b11156110795760405162461bcd60e51b815260206004820152601c60248201527f596f752063616e206f6e6c79206d696e74203420696e20746f74616c00000000604482015260640161082b565b611b3961108683836123eb565b11156110a45760405162461bcd60e51b815260040161082b90612403565b336000908152600e6020526040902054156110eb5734826009546110c8919061234b565b11156110e65760405162461bcd60e51b815260040161082b9061244d565b611122565b346110f7600184612484565b600954611104919061234b565b11156111225760405162461bcd60e51b815260040161082b9061244d565b336000908152600e6020526040812080548492906111419084906123eb565b90915550600090505b828110156111725761116033610dfb83856123eb565b8061116a8161249b565b91505061114a565b5050336000908152600d60205260409020805460ff1916600117905550565b611199611885565b600a55565b61092d338383611a9b565b6111b1611885565b600981905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910160405180910390a150565b6111fc33836116a2565b6112185760405162461bcd60e51b815260040161082b906122e8565b61122484848484611b69565b50505050565b6060611235826115d5565b600061123f611b9c565b9050600081511161125f576040518060200160405280600081525061128a565b8061126984611bab565b60405160200161127a9291906124b4565b6040516020818303038152906040525b9392505050565b611299611885565b60006112a36108d1565b9050611b396112b283836123eb565b11156113125760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c79206044820152686f6620546f6b656e7360b81b606482015260840161082b565b601a821061136c5760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323520746f6b656e7320617420612074696d6044820152606560f81b606482015260840161082b565b60005b828110156112245761138584610dfb83856123eb565b8061138f8161249b565b91505061136f565b61139f611885565b600b805461ff001981166101009182900460ff1615909102179055565b6113c4611885565b6001600160a01b0381166114295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161082b565b610a2c81611a4b565b6001600160a01b0382166114885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161082b565b6000818152600360205260409020546001600160a01b0316156114ed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161082b565b6000818152600360205260409020546001600160a01b0316156115525760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161082b565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b6001600160a01b03163b151590565b6000818152600360205260409020546001600160a01b0316610a2c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161082b565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061166982610e33565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806116ae83610e33565b9050806001600160a01b0316846001600160a01b031614806116f557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806117195750836001600160a01b031661170e84610790565b6001600160a01b0316145b949350505050565b826001600160a01b031661173482610e33565b6001600160a01b03161461175a5760405162461bcd60e51b815260040161082b906124e3565b6001600160a01b0382166117bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161082b565b826001600160a01b03166117cf82610e33565b6001600160a01b0316146117f55760405162461bcd60e51b815260040161082b906124e3565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b031633146109605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161082b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461192c576040519150601f19603f3d011682016040523d82523d6000602084013e611931565b606091505b50509050806108cc5760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f2077696474686472617720457468657200000000000000604482015260640161082b565b600081815b8551811015611a265760008682815181106119a4576119a4612394565b602002602001015190508083116119e6576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611a13565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611a1e8161249b565b915050611987565b509092149392505050565b61092d828260405180602001604052806000815250611cac565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603611afc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161082b565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b74848484611721565b611b8084848484611cdf565b6112245760405162461bcd60e51b815260040161082b90612528565b60606008805461070d906122ae565b606081600003611bd25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bfc5780611be68161249b565b9150611bf59050600a83612380565b9150611bd6565b60008167ffffffffffffffff811115611c1757611c17611fca565b6040519080825280601f01601f191660200182016040528015611c41576020820181803683370190505b5090505b841561171957611c56600183612484565b9150611c63600a8661257a565b611c6e9060306123eb565b60f81b818381518110611c8357611c83612394565b60200101906001600160f81b031916908160001a905350611ca5600a86612380565b9450611c45565b611cb68383611de0565b611cc36000848484611cdf565b6108cc5760405162461bcd60e51b815260040161082b90612528565b60006001600160a01b0384163b15611dd557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d2390339089908890889060040161258e565b6020604051808303816000875af1925050508015611d5e575060408051601f3d908101601f19168201909252611d5b918101906125cb565b60015b611dbb573d808015611d8c576040519150601f19603f3d011682016040523d82523d6000602084013e611d91565b606091505b508051600003611db35760405162461bcd60e51b815260040161082b90612528565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611719565b506001949350505050565b611dea8282611432565b61092d600780546001019055565b828054611e04906122ae565b90600052602060002090601f016020900481019282611e265760008555611e6c565b82601f10611e3f57805160ff1916838001178555611e6c565b82800160010185558215611e6c579182015b82811115611e6c578251825591602001919060010190611e51565b50611e78929150611e7c565b5090565b5b80821115611e785760008155600101611e7d565b6001600160e01b031981168114610a2c57600080fd5b600060208284031215611eb957600080fd5b813561128a81611e91565b60005b83811015611edf578181015183820152602001611ec7565b838111156112245750506000910152565b60008151808452611f08816020860160208601611ec4565b601f01601f19169290920160200192915050565b60208152600061128a6020830184611ef0565b600060208284031215611f4157600080fd5b5035919050565b80356001600160a01b0381168114611f5f57600080fd5b919050565b60008060408385031215611f7757600080fd5b611f8083611f48565b946020939093013593505050565b600080600060608486031215611fa357600080fd5b611fac84611f48565b9250611fba60208501611f48565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561200957612009611fca565b604052919050565b600067ffffffffffffffff83111561202b5761202b611fca565b61203e601f8401601f1916602001611fe0565b905082815283838301111561205257600080fd5b828260208301376000602084830101529392505050565b60006020828403121561207b57600080fd5b813567ffffffffffffffff81111561209257600080fd5b8201601f810184136120a357600080fd5b61171984823560208401612011565b6000602082840312156120c457600080fd5b61128a82611f48565b6020808252825182820181905260009190848201906040850190845b81811015612105578351835292840192918401916001016120e9565b50909695505050505050565b6000806040838503121561212457600080fd5b8235915060208084013567ffffffffffffffff8082111561214457600080fd5b818601915086601f83011261215857600080fd5b81358181111561216a5761216a611fca565b8060051b915061217b848301611fe0565b818152918301840191848101908984111561219557600080fd5b938501935b838510156121b35784358252938501939085019061219a565b8096505050505050509250929050565b600080604083850312156121d657600080fd5b6121df83611f48565b9150602083013580151581146121f457600080fd5b809150509250929050565b6000806000806080858703121561221557600080fd5b61221e85611f48565b935061222c60208601611f48565b925060408501359150606085013567ffffffffffffffff81111561224f57600080fd5b8501601f8101871361226057600080fd5b61226f87823560208401612011565b91505092959194509250565b6000806040838503121561228e57600080fd5b61229783611f48565b91506122a560208401611f48565b90509250929050565b600181811c908216806122c257607f821691505b6020821081036122e257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561236557612365612335565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261238f5761238f61236a565b500490565b634e487b7160e01b600052603260045260246000fd5b60208082526021908201527f546f74616c206e756d626572206f66206d696e74732063616e6e6f74206265206040820152600360fc1b606082015260800190565b600082198211156123fe576123fe612335565b500190565b6020808252602a908201527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015269206f6620546f6b656e7360b01b606082015260800190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b60008282101561249657612496612335565b500390565b6000600182016124ad576124ad612335565b5060010190565b600083516124c6818460208801611ec4565b8351908301906124da818360208801611ec4565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826125895761258961236a565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125c190830184611ef0565b9695505050505050565b6000602082840312156125dd57600080fd5b815161128a81611e9156fea26469706673582212202f9f9181962ddd745aeb77a5e1532576c1b71656a02f980e0bedd96b4f779a2a64736f6c634300080d00334552433732313a207472616e7366657220746f206e6f6e204552433732315265697066733a2f2f516d57565034335153646d534d5534773831714e636d38527544733838424739646339566a5a545831596b5843742f
Deployed Bytecode
0x60806040526004361061021e5760003560e01c806370a0823111610123578063a2b40d19116100ab578063eb8d24441161006f578063eb8d244414610632578063eff31e9e1461064c578063f032554914610661578063f2fde38b14610676578063f47c84c51461069657600080fd5b8063a2b40d1914610569578063b88d4fde14610589578063c87b56dd146105a9578063e58306f9146105c9578063e985e9c5146105e957600080fd5b80638da5cb5b116100f25780638da5cb5b146104e357806395d89b4114610501578063a0712d6814610516578063a144becc14610529578063a22cb4651461054957600080fd5b806370a0823114610468578063715018a6146104885780637ff9b5961461049d5780638cc08025146104b357600080fd5b80632eb4a7ab116101a657806342842e0e1161017557806342842e0e146103c8578063438b6300146103e85780634783f0ef146104155780635a546223146104355780636352211e1461044857600080fd5b80632eb4a7ab1461036857806330176e131461037e57806334918dfd1461039e5780633ccfd60b146103b357600080fd5b806318160ddd116101ed57806318160ddd146102db5780631f0234d8146102fe57806323b872dd1461031d578063243a3f8d1461033d5780632a2c6c081461035357600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b957600080fd5b3661022557005b600080fd5b34801561023657600080fd5b5061024a610245366004611ea7565b6106ac565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b506102746106fe565b6040516102569190611f1c565b34801561028d57600080fd5b506102a161029c366004611f2f565b610790565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d4366004611f64565b6107b7565b005b3480156102e757600080fd5b506102f06108d1565b604051908152602001610256565b34801561030a57600080fd5b50600b5461024a90610100900460ff1681565b34801561032957600080fd5b506102d9610338366004611f8e565b6108e1565b34801561034957600080fd5b506102f0600a5481565b34801561035f57600080fd5b506102f0600281565b34801561037457600080fd5b506102f0600c5481565b34801561038a57600080fd5b506102d9610399366004612069565b610912565b3480156103aa57600080fd5b506102d9610931565b3480156103bf57600080fd5b506102d9610962565b3480156103d457600080fd5b506102d96103e3366004611f8e565b610a2f565b3480156103f457600080fd5b506104086104033660046120b2565b610a4a565b60405161025691906120cd565b34801561042157600080fd5b506102d9610430366004611f2f565b610b11565b6102d9610443366004612111565b610b1e565b34801561045457600080fd5b506102a1610463366004611f2f565b610e33565b34801561047457600080fd5b506102f06104833660046120b2565b610e93565b34801561049457600080fd5b506102d9610f19565b3480156104a957600080fd5b506102f060095481565b3480156104bf57600080fd5b5061024a6104ce3660046120b2565b600d6020526000908152604090205460ff1681565b3480156104ef57600080fd5b506000546001600160a01b03166102a1565b34801561050d57600080fd5b50610274610f2b565b6102d9610524366004611f2f565b610f3a565b34801561053557600080fd5b506102d9610544366004611f2f565b611191565b34801561055557600080fd5b506102d96105643660046121c3565b61119e565b34801561057557600080fd5b506102d9610584366004611f2f565b6111a9565b34801561059557600080fd5b506102d96105a43660046121ff565b6111f2565b3480156105b557600080fd5b506102746105c4366004611f2f565b61122a565b3480156105d557600080fd5b506102d96105e4366004611f64565b611291565b3480156105f557600080fd5b5061024a61060436600461227b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561063e57600080fd5b50600b5461024a9060ff1681565b34801561065857600080fd5b506102f0601a81565b34801561066d57600080fd5b506102d9611397565b34801561068257600080fd5b506102d96106913660046120b2565b6113bc565b3480156106a257600080fd5b506102f0611b3981565b60006001600160e01b031982166380ac58cd60e01b14806106dd57506001600160e01b03198216635b5e139f60e01b145b806106f857506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461070d906122ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610739906122ae565b80156107865780601f1061075b57610100808354040283529160200191610786565b820191906000526020600020905b81548152906001019060200180831161076957829003601f168201915b5050505050905090565b600061079b826115d5565b506000908152600560205260409020546001600160a01b031690565b60006107c282610e33565b9050806001600160a01b0316836001600160a01b0316036108345760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061085057506108508133610604565b6108c25760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161082b565b6108cc8383611634565b505050565b60006108dc60075490565b905090565b6108eb33826116a2565b6109075760405162461bcd60e51b815260040161082b906122e8565b6108cc838383611721565b61091a611885565b805161092d906008906020840190611df8565b5050565b610939611885565b600b805460ff19811660ff91821615908117909255161561096057600b805461ff00191690555b565b61096a611885565b47806109ae5760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b604482015260640161082b565b6109e273d37b441828af470746b06e5500a6fbd6b92ffeab60646109d384601961234b565b6109dd9190612380565b6118df565b610a07735409cfdf149d8ba163a58b25901c050d4df8a12260646109d384602861234b565b610a2c73012e944b7181f4c4e8b18a60cee33c47b3eaf37c60646109d384602361234b565b50565b6108cc838383604051806020016040528060008152506111f2565b60606000610a5783610e93565b905060008167ffffffffffffffff811115610a7457610a74611fca565b604051908082528060200260200182016040528015610a9d578160200160208202803683370190505b5090506000805b8381108015610ab4575060075482105b15610b0757856001600160a01b0316610acc83610e33565b6001600160a01b031603610afc5781838281518110610aed57610aed612394565b60209081029190910101526001015b600190910190610aa4565b5090949350505050565b610b19611885565b600c55565b600b54610100900460ff16610b6d5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b604482015260640161082b565b6000610b776108d1565b90506000600133604051602001610baa92919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b604051602081830303815290604052805190602001209050610bcf83600c5483611982565b610c1b5760405162461bcd60e51b815260206004820152601e60248201527f53656e646572206973206e6f74206f6e207468652077686974656c6973740000604482015260640161082b565b60008411610c3b5760405162461bcd60e51b815260040161082b906123aa565b6002841115610c9a5760405162461bcd60e51b815260206004820152602560248201527f546f74616c206e756d626572206f66206d696e74732063616e6e6f7420657863604482015264656564203360d81b606482015260840161082b565b336000908152600e6020526040902054600290610cb89086906123eb565b1115610d115760405162461bcd60e51b815260206004820152602260248201527f596f752063616e206f6e6c79206d696e74203220647572696e672070726573616044820152616c6560f01b606482015260840161082b565b611b39610d1e85846123eb565b1115610d3c5760405162461bcd60e51b815260040161082b90612403565b336000908152600d602052604090205460ff1615610d86573484600954610d63919061234b565b1115610d815760405162461bcd60e51b815260040161082b9061244d565b610dbd565b34610d92600186612484565b600954610d9f919061234b565b1115610dbd5760405162461bcd60e51b815260040161082b9061244d565b336000908152600e602052604081208054869290610ddc9084906123eb565b90915550600090505b84811015610e1257610e0033610dfb83866123eb565b611a31565b80610e0a8161249b565b915050610de5565b5050336000908152600d60205260409020805460ff19166001179055505050565b6000818152600360205260408120546001600160a01b0316806106f85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161082b565b60006001600160a01b038216610efd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161082b565b506001600160a01b031660009081526004602052604090205490565b610f21611885565b6109606000611a4b565b60606002805461070d906122ae565b600b5460ff16610f825760405162461bcd60e51b815260206004820152601360248201527214d85b19481393d5081858dd1a5d99481e595d606a1b604482015260640161082b565b6000610f8c6108d1565b905060008211610fae5760405162461bcd60e51b815260040161082b906123aa565b600482111561100d5760405162461bcd60e51b815260206004820152602560248201527f546f74616c206e756d626572206f66206d696e74732063616e6e6f7420657863604482015264195959080d60da1b606482015260840161082b565b600a54336000908152600e602052604090205461102b9084906123eb565b11156110795760405162461bcd60e51b815260206004820152601c60248201527f596f752063616e206f6e6c79206d696e74203420696e20746f74616c00000000604482015260640161082b565b611b3961108683836123eb565b11156110a45760405162461bcd60e51b815260040161082b90612403565b336000908152600e6020526040902054156110eb5734826009546110c8919061234b565b11156110e65760405162461bcd60e51b815260040161082b9061244d565b611122565b346110f7600184612484565b600954611104919061234b565b11156111225760405162461bcd60e51b815260040161082b9061244d565b336000908152600e6020526040812080548492906111419084906123eb565b90915550600090505b828110156111725761116033610dfb83856123eb565b8061116a8161249b565b91505061114a565b5050336000908152600d60205260409020805460ff1916600117905550565b611199611885565b600a55565b61092d338383611a9b565b6111b1611885565b600981905560408051338152602081018390527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910160405180910390a150565b6111fc33836116a2565b6112185760405162461bcd60e51b815260040161082b906122e8565b61122484848484611b69565b50505050565b6060611235826115d5565b600061123f611b9c565b9050600081511161125f576040518060200160405280600081525061128a565b8061126984611bab565b60405160200161127a9291906124b4565b6040516020818303038152906040525b9392505050565b611299611885565b60006112a36108d1565b9050611b396112b283836123eb565b11156113125760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c79206044820152686f6620546f6b656e7360b81b606482015260840161082b565b601a821061136c5760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323520746f6b656e7320617420612074696d6044820152606560f81b606482015260840161082b565b60005b828110156112245761138584610dfb83856123eb565b8061138f8161249b565b91505061136f565b61139f611885565b600b805461ff001981166101009182900460ff1615909102179055565b6113c4611885565b6001600160a01b0381166114295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161082b565b610a2c81611a4b565b6001600160a01b0382166114885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161082b565b6000818152600360205260409020546001600160a01b0316156114ed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161082b565b6000818152600360205260409020546001600160a01b0316156115525760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161082b565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b6001600160a01b03163b151590565b6000818152600360205260409020546001600160a01b0316610a2c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161082b565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061166982610e33565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806116ae83610e33565b9050806001600160a01b0316846001600160a01b031614806116f557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806117195750836001600160a01b031661170e84610790565b6001600160a01b0316145b949350505050565b826001600160a01b031661173482610e33565b6001600160a01b03161461175a5760405162461bcd60e51b815260040161082b906124e3565b6001600160a01b0382166117bc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161082b565b826001600160a01b03166117cf82610e33565b6001600160a01b0316146117f55760405162461bcd60e51b815260040161082b906124e3565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b031633146109605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161082b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461192c576040519150601f19603f3d011682016040523d82523d6000602084013e611931565b606091505b50509050806108cc5760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f2077696474686472617720457468657200000000000000604482015260640161082b565b600081815b8551811015611a265760008682815181106119a4576119a4612394565b602002602001015190508083116119e6576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611a13565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611a1e8161249b565b915050611987565b509092149392505050565b61092d828260405180602001604052806000815250611cac565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603611afc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161082b565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b74848484611721565b611b8084848484611cdf565b6112245760405162461bcd60e51b815260040161082b90612528565b60606008805461070d906122ae565b606081600003611bd25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bfc5780611be68161249b565b9150611bf59050600a83612380565b9150611bd6565b60008167ffffffffffffffff811115611c1757611c17611fca565b6040519080825280601f01601f191660200182016040528015611c41576020820181803683370190505b5090505b841561171957611c56600183612484565b9150611c63600a8661257a565b611c6e9060306123eb565b60f81b818381518110611c8357611c83612394565b60200101906001600160f81b031916908160001a905350611ca5600a86612380565b9450611c45565b611cb68383611de0565b611cc36000848484611cdf565b6108cc5760405162461bcd60e51b815260040161082b90612528565b60006001600160a01b0384163b15611dd557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d2390339089908890889060040161258e565b6020604051808303816000875af1925050508015611d5e575060408051601f3d908101601f19168201909252611d5b918101906125cb565b60015b611dbb573d808015611d8c576040519150601f19603f3d011682016040523d82523d6000602084013e611d91565b606091505b508051600003611db35760405162461bcd60e51b815260040161082b90612528565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611719565b506001949350505050565b611dea8282611432565b61092d600780546001019055565b828054611e04906122ae565b90600052602060002090601f016020900481019282611e265760008555611e6c565b82601f10611e3f57805160ff1916838001178555611e6c565b82800160010185558215611e6c579182015b82811115611e6c578251825591602001919060010190611e51565b50611e78929150611e7c565b5090565b5b80821115611e785760008155600101611e7d565b6001600160e01b031981168114610a2c57600080fd5b600060208284031215611eb957600080fd5b813561128a81611e91565b60005b83811015611edf578181015183820152602001611ec7565b838111156112245750506000910152565b60008151808452611f08816020860160208601611ec4565b601f01601f19169290920160200192915050565b60208152600061128a6020830184611ef0565b600060208284031215611f4157600080fd5b5035919050565b80356001600160a01b0381168114611f5f57600080fd5b919050565b60008060408385031215611f7757600080fd5b611f8083611f48565b946020939093013593505050565b600080600060608486031215611fa357600080fd5b611fac84611f48565b9250611fba60208501611f48565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561200957612009611fca565b604052919050565b600067ffffffffffffffff83111561202b5761202b611fca565b61203e601f8401601f1916602001611fe0565b905082815283838301111561205257600080fd5b828260208301376000602084830101529392505050565b60006020828403121561207b57600080fd5b813567ffffffffffffffff81111561209257600080fd5b8201601f810184136120a357600080fd5b61171984823560208401612011565b6000602082840312156120c457600080fd5b61128a82611f48565b6020808252825182820181905260009190848201906040850190845b81811015612105578351835292840192918401916001016120e9565b50909695505050505050565b6000806040838503121561212457600080fd5b8235915060208084013567ffffffffffffffff8082111561214457600080fd5b818601915086601f83011261215857600080fd5b81358181111561216a5761216a611fca565b8060051b915061217b848301611fe0565b818152918301840191848101908984111561219557600080fd5b938501935b838510156121b35784358252938501939085019061219a565b8096505050505050509250929050565b600080604083850312156121d657600080fd5b6121df83611f48565b9150602083013580151581146121f457600080fd5b809150509250929050565b6000806000806080858703121561221557600080fd5b61221e85611f48565b935061222c60208601611f48565b925060408501359150606085013567ffffffffffffffff81111561224f57600080fd5b8501601f8101871361226057600080fd5b61226f87823560208401612011565b91505092959194509250565b6000806040838503121561228e57600080fd5b61229783611f48565b91506122a560208401611f48565b90509250929050565b600181811c908216806122c257607f821691505b6020821081036122e257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561236557612365612335565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261238f5761238f61236a565b500490565b634e487b7160e01b600052603260045260246000fd5b60208082526021908201527f546f74616c206e756d626572206f66206d696e74732063616e6e6f74206265206040820152600360fc1b606082015260800190565b600082198211156123fe576123fe612335565b500190565b6020808252602a908201527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015269206f6620546f6b656e7360b01b606082015260800190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b60008282101561249657612496612335565b500390565b6000600182016124ad576124ad612335565b5060010190565b600083516124c6818460208801611ec4565b8351908301906124da818360208801611ec4565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826125895761258961236a565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125c190830184611ef0565b9695505050505050565b6000602082840312156125dd57600080fd5b815161128a81611e9156fea26469706673582212202f9f9181962ddd745aeb77a5e1532576c1b71656a02f980e0bedd96b4f779a2a64736f6c634300080d0033
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.