Contract
0x17f4baa9d35ee54ffbcb2608e20786473c7aa49f
4
Contract Overview
Balance:
0.009999999999999999 ETH
ETH Value:
$17.69 (@ $1,768.76/ETH)
My Name Tag:
Not Available
TokenTracker:
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
GBC
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract GBC is Context, Ownable, ERC721Enumerable { using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; string public _baseTokenURI; uint256 public max = 10000; uint256 public maxMintPerTx = 20; bool public publicSaleStarted = false; bool public wlMintStarted = false; bool public tokenURIFrozen = false; uint256 public cost = 0.03 ether; address public wlSigner; mapping(address => bool) blacklist; constructor(string memory name, string memory symbol, string memory baseTokenURI) ERC721(name, symbol) { _baseTokenURI = baseTokenURI; _tokenIdTracker.increment(); wlSigner = address(this); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function adminMint(uint256 _mintAmount, address _to) external onlyOwner{ for (uint256 i = 1; i <= _mintAmount; i++) { require(_tokenIdTracker.current() <= max, "Transaction exceeds max mint amount"); _mint(_to, _tokenIdTracker.current()); _tokenIdTracker.increment(); } } function claim(bytes memory sig) external { require(wlMintStarted == true, "WL Mint not started yet"); require(checkSignature(sig, _msgSender()) == true, "Signature not valid"); require(blacklist[_msgSender()] == false, "This address was already used"); require(_tokenIdTracker.current() <= max, "Transaction exceeds max mint amount"); _mint(_msgSender(), _tokenIdTracker.current()); _tokenIdTracker.increment(); blacklist[_msgSender()] = true; } function whitelistMint(uint256 _mintAmount, bytes memory sig) external payable { require(publicSaleStarted == true, "Public Sale not started yet"); require(wlMintStarted == true, "WL Mint not started yet"); require(_mintAmount <= maxMintPerTx, "Exceeds max amount per transaction allowed"); require(checkSignature(sig, _msgSender()) == true, "Signature is not valid"); require(blacklist[_msgSender()] == false, "This whitelisted address was already used"); require(msg.value >= cost * (_mintAmount - 1), "Not enough ether provided"); for (uint256 i = 1; i <= _mintAmount; i++) { require(_tokenIdTracker.current() <= max, "Transaction exceeds max mint amount"); _mint(_msgSender(), _tokenIdTracker.current()); _tokenIdTracker.increment(); } blacklist[_msgSender()] = true; } function mint(uint256 _mintAmount) external payable { require(publicSaleStarted == true, "Public Sale not started yet"); require(_mintAmount <= maxMintPerTx, "Exceeds max amount per transaction allowed"); require(msg.value >= cost * _mintAmount, "Not enough ether provided"); for (uint256 i = 1; i <= _mintAmount; i++) { require(_tokenIdTracker.current() <= max, "Transaction exceeds max mint amount"); _mint(_msgSender(), _tokenIdTracker.current()); _tokenIdTracker.increment(); } } function withdraw(address token, uint256 amount) external onlyOwner { if(token == address(0)) { payable(_msgSender()).transfer(amount); } else { IERC20(token).transfer(_msgSender(), amount); } } function setBaseTokenURI(string memory uri) external onlyOwner { require(tokenURIFrozen == false, "Token URIs are frozen"); _baseTokenURI = uri; } function setWLSigner(address signer) external onlyOwner { require(signer != 0x0000000000000000000000000000000000000000, "Can't set WL signer as 0x00 address"); wlSigner = signer; } function setCost(uint256 price) external onlyOwner { cost = price; } function freezeBaseURI() external onlyOwner { tokenURIFrozen = true; } function startPublicSale() external onlyOwner { publicSaleStarted = true; } function startWLMint() external onlyOwner { wlMintStarted = true; } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function isBlacklisted(address _address) external view returns (bool) { return blacklist[_address]; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function checkSignature(bytes memory sig, address sender) private view returns (bool){ bytes32 hash = keccak256(abi.encodePacked(address(this), sender)); address signer = recover(hash, sig); return(wlSigner == signer); } function recover(bytes32 hash, bytes memory sig) private pure returns (address) { bytes32 r; bytes32 s; uint8 v; //Check the signature length if (sig.length != 65) { return (address(0)); } // Divide the signature in r, s and v variables assembly { r := mload(add(sig, 32)) s := mload(add(sig, 64)) v := byte(0, mload(add(sig, 96))) } // Version of signature should be 27 or 28, but 0 and 1 are also possible versions if (v < 27) { v += 27; } bytes memory prefix = "\x19Ethereum Signed Message:\n32"; bytes32 prefixedHash = keccak256(abi.encodePacked(prefix, hash)); // If the version is correct return the signer address if (v != 27 && v != 28) { return (address(0)); } else { return ecrecover(prefixedHash, v, r, s); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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: balance query for the zero address"); 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: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); 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 overriden 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); 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: transfer caller is not owner nor 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: transfer caller is not owner nor 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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(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 of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {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 a {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 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 { 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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (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 v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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 v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"}],"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"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"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":"bytes","name":"sig","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeBaseURI","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":"_address","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","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":[],"name":"publicSaleStarted","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setWLSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startWLMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","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":"tokenURIFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlMintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052612710600d556014600e55600f805462ffffff19169055666a94d74f4300006010553480156200003357600080fd5b50604051620031c6380380620031c6833981016040819052620000569162000290565b82826200006c62000066620000e2565b620000e6565b8151620000819060019060208501906200013f565b508051620000979060029060208401906200013f565b50508151620000af9150600c9060208401906200013f565b50620000c7600b6200013660201b620014911760201c565b5050601180546001600160a01b031916301790555062000370565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80546001019055565b8280546200014d906200031d565b90600052602060002090601f016020900481019282620001715760008555620001bc565b82601f106200018c57805160ff1916838001178555620001bc565b82800160010185558215620001bc579182015b82811115620001bc5782518255916020019190600101906200019f565b50620001ca929150620001ce565b5090565b5b80821115620001ca5760008155600101620001cf565b600082601f830112620001f6578081fd5b81516001600160401b03808211156200021357620002136200035a565b6040516020601f8401601f19168201810183811183821017156200023b576200023b6200035a565b604052838252858401810187101562000252578485fd5b8492505b8383101562000275578583018101518284018201529182019162000256565b838311156200028657848185840101525b5095945050505050565b600080600060608486031215620002a5578283fd5b83516001600160401b0380821115620002bc578485fd5b620002ca87838801620001e5565b94506020860151915080821115620002e0578384fd5b620002ee87838801620001e5565b9350604086015191508082111562000304578283fd5b506200031386828701620001e5565b9150509250925092565b6002810460018216806200033257607f821691505b602082108114156200035457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612e4680620003806000396000f3fe6080604052600436106101cb5760003560e01c806301ffc9a7146101d05780630399e3bc1461020657806306fdde0314610228578063081812fc1461024a578063095ea7b3146102775780630c1c972a146102975780630dc28efe146102ac57806313faede6146102cc57806318160ddd146102ee57806323b872dd146103035780632f745c591461032357806330176e131461034357806342842e0e14610363578063438b63001461038357806344a0d68a146103b05780634f6ccce7146103d05780636352211e146103f05780636ac5db191461041057806370a0823114610425578063715018a6146104455780637e5f3e141461045a5780638da5cb5b1461046f578063927a5d211461048457806395d89b41146104995780639e852f75146104ae578063a0712d68146104c1578063a22cb465146104d4578063a2e91477146104f4578063b88d4fde14610509578063c29de63014610529578063c63ff8dd1461053e578063c87b56dd1461055e578063cfc86f7b1461057e578063dce042fd14610593578063de7fcb1d146105a8578063e7bc8208146105bd578063e985e9c5146105d2578063f2fde38b146105f2578063f3fef3a314610612578063fe575a8714610632575b600080fd5b3480156101dc57600080fd5b506101f06101eb366004612246565b610652565b6040516101fd91906124c0565b60405180910390f35b34801561021257600080fd5b506102266102213660046120df565b610665565b005b34801561023457600080fd5b5061023d6106f5565b6040516101fd91906124e9565b34801561025657600080fd5b5061026a6102653660046122f5565b610787565b6040516101fd9190612412565b34801561028357600080fd5b50610226610292366004612201565b6107ca565b3480156102a357600080fd5b50610226610862565b3480156102b857600080fd5b506102266102c736600461230d565b6108b0565b3480156102d857600080fd5b506102e1610953565b6040516101fd9190612c64565b3480156102fa57600080fd5b506102e1610959565b34801561030f57600080fd5b5061022661031e36600461212b565b61095f565b34801561032f57600080fd5b506102e161033e366004612201565b610997565b34801561034f57600080fd5b5061022661035e3660046122b0565b6109ec565b34801561036f57600080fd5b5061022661037e36600461212b565b610a6b565b34801561038f57600080fd5b506103a361039e3660046120df565b610a86565b6040516101fd919061247c565b3480156103bc57600080fd5b506102266103cb3660046122f5565b610b43565b3480156103dc57600080fd5b506102e16103eb3660046122f5565b610b87565b3480156103fc57600080fd5b5061026a61040b3660046122f5565b610be2565b34801561041c57600080fd5b506102e1610c17565b34801561043157600080fd5b506102e16104403660046120df565b610c1d565b34801561045157600080fd5b50610226610c61565b34801561046657600080fd5b50610226610cac565b34801561047b57600080fd5b5061026a610cfc565b34801561049057600080fd5b506101f0610d0b565b3480156104a557600080fd5b5061023d610d19565b6102266104bc36600461232f565b610d28565b6102266104cf3660046122f5565b610eee565b3480156104e057600080fd5b506102266104ef3660046121cb565b610fc0565b34801561050057600080fd5b506101f0610fd2565b34801561051557600080fd5b50610226610524366004612166565b610fdb565b34801561053557600080fd5b506101f061101a565b34801561054a57600080fd5b5061022661055936600461227e565b611029565b34801561056a57600080fd5b5061023d6105793660046122f5565b611142565b34801561058a57600080fd5b5061023d6111c5565b34801561059f57600080fd5b5061026a611253565b3480156105b457600080fd5b506102e1611262565b3480156105c957600080fd5b50610226611268565b3480156105de57600080fd5b506101f06105ed3660046120f9565b6112ba565b3480156105fe57600080fd5b5061022661060d3660046120df565b6112e8565b34801561061e57600080fd5b5061022661062d366004612201565b611359565b34801561063e57600080fd5b506101f061064d3660046120df565b611473565b600061065d8261149a565b90505b919050565b61066d6114bf565b6001600160a01b031661067e610cfc565b6001600160a01b0316146106ad5760405162461bcd60e51b81526004016106a490612962565b60405180910390fd5b6001600160a01b0381166106d35760405162461bcd60e51b81526004016106a490612aa1565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60606001805461070490612d20565b80601f016020809104026020016040519081016040528092919081815260200182805461073090612d20565b801561077d5780601f106107525761010080835404028352916020019161077d565b820191906000526020600020905b81548152906001019060200180831161076057829003601f168201915b5050505050905090565b6000610792826114c3565b6107ae5760405162461bcd60e51b81526004016106a490612916565b506000908152600560205260409020546001600160a01b031690565b60006107d582610be2565b9050806001600160a01b0316836001600160a01b031614156108095760405162461bcd60e51b81526004016106a490612a60565b806001600160a01b031661081b6114bf565b6001600160a01b031614806108375750610837816105ed6114bf565b6108535760405162461bcd60e51b81526004016106a4906127c9565b61085d83836114e0565b505050565b61086a6114bf565b6001600160a01b031661087b610cfc565b6001600160a01b0316146108a15760405162461bcd60e51b81526004016106a490612962565b600f805460ff19166001179055565b6108b86114bf565b6001600160a01b03166108c9610cfc565b6001600160a01b0316146108ef5760405162461bcd60e51b81526004016106a490612962565b60015b82811161085d57600d54610906600b61154e565b11156109245760405162461bcd60e51b81526004016106a4906124fc565b61093782610932600b61154e565b611552565b610941600b611491565b8061094b81612d5b565b9150506108f2565b60105481565b60095490565b61097061096a6114bf565b8261161f565b61098c5760405162461bcd60e51b81526004016106a490612ae4565b61085d8383836116a4565b60006109a283610c1d565b82106109c05760405162461bcd60e51b81526004016106a49061253f565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b6109f46114bf565b6001600160a01b0316610a05610cfc565b6001600160a01b031614610a2b5760405162461bcd60e51b81526004016106a490612962565b600f5462010000900460ff1615610a545760405162461bcd60e51b81526004016106a490612b35565b8051610a6790600c906020840190611fa1565b5050565b61085d83838360405180602001604052806000815250610fdb565b60606000610a9383610c1d565b90506000816001600160401b03811115610abd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ae6578160200160208202803683370190505b50905060005b82811015610b3b57610afe8582610997565b828281518110610b1e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610b3381612d5b565b915050610aec565b509392505050565b610b4b6114bf565b6001600160a01b0316610b5c610cfc565b6001600160a01b031614610b825760405162461bcd60e51b81526004016106a490612962565b601055565b6000610b91610959565b8210610baf5760405162461bcd60e51b81526004016106a490612b9b565b60098281548110610bd057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600360205260408120546001600160a01b03168061065d5760405162461bcd60e51b81526004016106a49061286b565b600d5481565b60006001600160a01b038216610c455760405162461bcd60e51b81526004016106a490612821565b506001600160a01b031660009081526004602052604090205490565b610c696114bf565b6001600160a01b0316610c7a610cfc565b6001600160a01b031614610ca05760405162461bcd60e51b81526004016106a490612962565b610caa60006117bf565b565b610cb46114bf565b6001600160a01b0316610cc5610cfc565b6001600160a01b031614610ceb5760405162461bcd60e51b81526004016106a490612962565b600f805461ff001916610100179055565b6000546001600160a01b031690565b600f54610100900460ff1681565b60606002805461070490612d20565b600f5460ff161515600114610d4f5760405162461bcd60e51b81526004016106a49061258a565b600f5460ff610100909104161515600114610d7c5760405162461bcd60e51b81526004016106a490612a2f565b600e54821115610d9e5760405162461bcd60e51b81526004016106a490612be7565b610daf81610daa6114bf565b61180f565b1515600114610dd05760405162461bcd60e51b81526004016106a49061274d565b60126000610ddc6114bf565b6001600160a01b0316815260208101919091526040016000205460ff1615610e165760405162461bcd60e51b81526004016106a49061268d565b610e21600183612cdd565b601054610e2e9190612cbe565b341015610e4d5760405162461bcd60e51b81526004016106a490612c31565b60015b828111610eb357600d54610e64600b61154e565b1115610e825760405162461bcd60e51b81526004016106a4906124fc565b610e97610e8d6114bf565b610932600b61154e565b610ea1600b611491565b80610eab81612d5b565b915050610e50565b50600160126000610ec26114bf565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790555050565b600f5460ff161515600114610f155760405162461bcd60e51b81526004016106a49061258a565b600e54811115610f375760405162461bcd60e51b81526004016106a490612be7565b80601054610f459190612cbe565b341015610f645760405162461bcd60e51b81526004016106a490612c31565b60015b818111610a6757600d54610f7b600b61154e565b1115610f995760405162461bcd60e51b81526004016106a4906124fc565b610fa4610e8d6114bf565b610fae600b611491565b80610fb881612d5b565b915050610f67565b610a67610fcb6114bf565b8383611863565b600f5460ff1681565b610fec610fe66114bf565b8361161f565b6110085760405162461bcd60e51b81526004016106a490612ae4565b61101484848484611906565b50505050565b600f5462010000900460ff1681565b600f5460ff6101009091041615156001146110565760405162461bcd60e51b81526004016106a490612a2f565b61106281610daa6114bf565b15156001146110835760405162461bcd60e51b81526004016106a4906128b4565b6012600061108f6114bf565b6001600160a01b0316815260208101919091526040016000205460ff16156110c95760405162461bcd60e51b81526004016106a490612b64565b600d546110d6600b61154e565b11156110f45760405162461bcd60e51b81526004016106a4906124fc565b6110ff610e8d6114bf565b611109600b611491565b6001601260006111176114bf565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905550565b606061114d826114c3565b6111695760405162461bcd60e51b81526004016106a4906129e0565b6000611173611939565b9050600081511161119357604051806020016040528060008152506111be565b8061119d84611948565b6040516020016111ae9291906123e3565b6040516020818303038152906040525b9392505050565b600c80546111d290612d20565b80601f01602080910402602001604051908101604052809291908181526020018280546111fe90612d20565b801561124b5780601f106112205761010080835404028352916020019161124b565b820191906000526020600020905b81548152906001019060200180831161122e57829003601f168201915b505050505081565b6011546001600160a01b031681565b600e5481565b6112706114bf565b6001600160a01b0316611281610cfc565b6001600160a01b0316146112a75760405162461bcd60e51b81526004016106a490612962565b600f805462ff0000191662010000179055565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6112f06114bf565b6001600160a01b0316611301610cfc565b6001600160a01b0316146113275760405162461bcd60e51b81526004016106a490612962565b6001600160a01b03811661134d5760405162461bcd60e51b81526004016106a490612611565b611356816117bf565b50565b6113616114bf565b6001600160a01b0316611372610cfc565b6001600160a01b0316146113985760405162461bcd60e51b81526004016106a490612962565b6001600160a01b0382166113ec576113ae6114bf565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156113e6573d6000803e3d6000fd5b50610a67565b816001600160a01b031663a9059cbb6114036114bf565b836040518363ffffffff1660e01b8152600401611421929190612463565b602060405180830381600087803b15801561143b57600080fd5b505af115801561144f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085d919061222a565b6001600160a01b031660009081526012602052604090205460ff1690565b80546001019055565b60006001600160e01b0319821663780e9d6360e01b148061065d575061065d82611a62565b3390565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061151582610be2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5490565b6001600160a01b0382166115785760405162461bcd60e51b81526004016106a4906128e1565b611581816114c3565b1561159e5760405162461bcd60e51b81526004016106a490612657565b6115aa60008383611aa2565b6001600160a01b03821660009081526004602052604081208054600192906115d3908490612c6d565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020612df1833981519152908290a45050565b600061162a826114c3565b6116465760405162461bcd60e51b81526004016106a49061277d565b600061165183610be2565b9050806001600160a01b0316846001600160a01b0316148061168c5750836001600160a01b031661168184610787565b6001600160a01b0316145b8061169c575061169c81856112ba565b949350505050565b826001600160a01b03166116b782610be2565b6001600160a01b0316146116dd5760405162461bcd60e51b81526004016106a490612997565b6001600160a01b0382166117035760405162461bcd60e51b81526004016106a4906126d6565b61170e838383611aa2565b6117196000826114e0565b6001600160a01b0383166000908152600460205260408120805460019290611742908490612cdd565b90915550506001600160a01b0382166000908152600460205260408120805460019290611770908490612c6d565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020612df183398151915291a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080308360405160200161182592919061239f565b60405160208183030381529060405280519060200120905060006118498286611aad565b6011546001600160a01b0391821691161495945050505050565b816001600160a01b0316836001600160a01b031614156118955760405162461bcd60e51b81526004016106a49061271a565b6001600160a01b0383811660008181526006602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906118f99085906124c0565b60405180910390a3505050565b6119118484846116a4565b61191d84848484611be0565b6110145760405162461bcd60e51b81526004016106a4906125bf565b6060600c805461070490612d20565b60608161196d57506040805180820190915260018152600360fc1b6020820152610660565b8160005b8115611997578061198181612d5b565b91506119909050600a83612caa565b9150611971565b6000816001600160401b038111156119bf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119e9576020820181803683370190505b5090505b841561169c576119fe600183612cdd565b9150611a0b600a86612d76565b611a16906030612c6d565b60f81b818381518110611a3957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a5b600a86612caa565b94506119ed565b60006001600160e01b031982166380ac58cd60e01b1480611a9357506001600160e01b03198216635b5e139f60e01b145b8061065d575061065d82611cfb565b61085d838383611d14565b6000806000808451604114611ac857600093505050506109e6565b50505060208201516040830151606084015160001a601b811015611af457611af1601b82612c85565b90505b60006040518060400160405280601c81526020017b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b815250905060008188604051602001611b429291906123c1565b6040516020818303038152906040528051906020012090508260ff16601b14158015611b7257508260ff16601c14155b15611b85576000955050505050506109e6565b60018184878760405160008152602001604052604051611ba894939291906124cb565b6020604051602081039080840390855afa158015611bca573d6000803e3d6000fd5b50505060206040510351955050505050506109e6565b6000611bf4846001600160a01b0316611d9d565b15611cf057836001600160a01b031663150b7a02611c106114bf565b8786866040518563ffffffff1660e01b8152600401611c329493929190612426565b602060405180830381600087803b158015611c4c57600080fd5b505af1925050508015611c7c575060408051601f3d908101601f19168201909252611c7991810190612262565b60015b611cd6573d808015611caa576040519150601f19603f3d011682016040523d82523d6000602084013e611caf565b606091505b508051611cce5760405162461bcd60e51b81526004016106a4906125bf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061169c565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b611d1f83838361085d565b6001600160a01b038316611d3b57611d3681611da3565b611d5e565b816001600160a01b0316836001600160a01b031614611d5e57611d5e8382611de7565b6001600160a01b038216611d7a57611d7581611e84565b61085d565b826001600160a01b0316826001600160a01b03161461085d5761085d8282611f5d565b3b151590565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b60006001611df484610c1d565b611dfe9190612cdd565b600083815260086020526040902054909150808214611e51576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611e9690600190612cdd565b6000838152600a602052604081205460098054939450909284908110611ecc57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110611efb57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611f4157634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611f6883610c1d565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b828054611fad90612d20565b90600052602060002090601f016020900481019282611fcf5760008555612015565b82601f10611fe857805160ff1916838001178555612015565b82800160010185558215612015579182015b82811115612015578251825591602001919060010190611ffa565b50612021929150612025565b5090565b5b808211156120215760008155600101612026565b60006001600160401b038084111561205457612054612db6565b604051601f8501601f19168101602001828111828210171561207857612078612db6565b60405284815291508183850186101561209057600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461066057600080fd5b600082601f8301126120d0578081fd5b6111be8383356020850161203a565b6000602082840312156120f0578081fd5b6111be826120a9565b6000806040838503121561210b578081fd5b612114836120a9565b9150612122602084016120a9565b90509250929050565b60008060006060848603121561213f578081fd5b612148846120a9565b9250612156602085016120a9565b9150604084013590509250925092565b6000806000806080858703121561217b578081fd5b612184856120a9565b9350612192602086016120a9565b92506040850135915060608501356001600160401b038111156121b3578182fd5b6121bf878288016120c0565b91505092959194509250565b600080604083850312156121dd578182fd5b6121e6836120a9565b915060208301356121f681612dcc565b809150509250929050565b60008060408385031215612213578182fd5b61221c836120a9565b946020939093013593505050565b60006020828403121561223b578081fd5b81516111be81612dcc565b600060208284031215612257578081fd5b81356111be81612dda565b600060208284031215612273578081fd5b81516111be81612dda565b60006020828403121561228f578081fd5b81356001600160401b038111156122a4578182fd5b61169c848285016120c0565b6000602082840312156122c1578081fd5b81356001600160401b038111156122d6578182fd5b8201601f810184136122e6578182fd5b61169c8482356020840161203a565b600060208284031215612306578081fd5b5035919050565b6000806040838503121561231f578182fd5b82359150612122602084016120a9565b60008060408385031215612341578182fd5b8235915060208301356001600160401b0381111561235d578182fd5b612369858286016120c0565b9150509250929050565b6000815180845261238b816020860160208601612cf4565b601f01601f19169290920160200192915050565b6001600160601b0319606093841b811682529190921b16601482015260280190565b600083516123d3818460208801612cf4565b9190910191825250602001919050565b600083516123f5818460208801612cf4565b835190830190612409818360208801612cf4565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061245990830184612373565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b818110156124b457835183529284019291840191600101612498565b50909695505050505050565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526111be6020830184612373565b60208082526023908201527f5472616e73616374696f6e2065786365656473206d6178206d696e7420616d6f6040820152621d5b9d60ea1b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b6020808252601b908201527a141d589b1a58c814d85b19481b9bdd081cdd185c9d1959081e595d602a1b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604082015260600190565b60208082526029908201527f546869732077686974656c697374656420616464726573732077617320616c726040820152681958591e481d5cd95960ba1b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604082015260600190565b60208082526016908201527514da59db985d1d5c99481a5cc81b9bdd081d985b1a5960521b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776040820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526013908201527214da59db985d1d5c99481b9bdd081d985b1a59606a1b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526017908201527615d308135a5b9d081b9bdd081cdd185c9d1959081e595d604a1b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526023908201527f43616e27742073657420574c207369676e65722061732030783030206164647260408201526265737360e81b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601590820152742a37b5b2b7102aa924b99030b93290333937bd32b760591b604082015260600190565b6020808252601d908201527f5468697320616464726573732077617320616c72656164792075736564000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602a908201527f45786365656473206d617820616d6f756e7420706572207472616e73616374696040820152691bdb88185b1b1bddd95960b21b606082015260800190565b602080825260199082015278139bdd08195b9bdd59da08195d1a195c881c1c9bdd9a591959603a1b604082015260600190565b90815260200190565b60008219821115612c8057612c80612d8a565b500190565b600060ff821660ff84168060ff03821115612ca257612ca2612d8a565b019392505050565b600082612cb957612cb9612da0565b500490565b6000816000190483118215151615612cd857612cd8612d8a565b500290565b600082821015612cef57612cef612d8a565b500390565b60005b83811015612d0f578181015183820152602001612cf7565b838111156110145750506000910152565b600281046001821680612d3457607f821691505b60208210811415612d5557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612d6f57612d6f612d8a565b5060010190565b600082612d8557612d85612da0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461135657600080fd5b6001600160e01b03198116811461135657600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220b5c63fa4f4d0697e8bd85fb9e9fc351ee28dee35cf3ea03c46ba0863ae132e4664736f6c63430008000033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000e426c7565626572727920436c7562000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000347424300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000e426c7565626572727920436c7562000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000347424300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Blueberry Club
Arg [1] : symbol (string): GBC
Arg [2] : baseTokenURI (string):
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [4] : 426c7565626572727920436c7562000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 4742430000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.