Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
128 INKHA
Holders
100
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 INKHALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
INKHA
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 400 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // inkha.net - Art by @MatthewWhoosh, Contract and website by @georgefatlion. Implementation based on the awesome ERC721A contract from AZUKI. // whooshlabs.co.uk // ██╗███╗░░██╗██╗░░██╗██╗░░██╗░█████╗░ ███╗░░██╗███████╗████████╗ // ██║████╗░██║██║░██╔╝██║░░██║██╔══██╗ ████╗░██║██╔════╝╚══██╔══╝ // ██║██╔██╗██║█████═╝░███████║███████║ ██╔██╗██║█████╗░░░░░██║░░░ // ██║██║╚████║██╔═██╗░██╔══██║██╔══██║ ██║╚████║██╔══╝░░░░░██║░░░ // ██║██║░╚███║██║░╚██╗██║░░██║██║░░██║ ██║░╚███║██║░░░░░░░░██║░░░ // ╚═╝╚═╝░░╚══╝╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝ ╚═╝░░╚══╝╚═╝░░░░░░░░╚═╝░░░ // █░█░█ █░█ █▀█ █▀█ █▀ █░█ █░░ ▄▀█ █▄▄ █▀ // ▀▄▀▄▀ █▀█ █▄█ █▄█ ▄█ █▀█ █▄▄ █▀█ █▄█ ▄█ // █░█ █░░ █▀█ ▀▄▀ // ▀▄▀ █▄▄ █▄█ █░█ pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract INKHA is ERC721A, Ownable { constructor() ERC721A("Inkha", "INKHA") {} /* ========== STATE VARIABLES ========== */ uint256 private constant MAX_SUPPLY = 128; bool private claimOpen; string private baseTokenURI; string private contracturi; bytes32 private merkleRoot; uint8 private maxPerTx = 1; uint8 private maxPerWallet = 1; mapping(address => uint8) public numberClaimed; bool public checkMerkle = true; mapping(address=> bool) blockedMarketplaces; /* ========== VIEWS ========== */ /** * @notice Get the claim open state. * */ function getClaimState() public view returns (bool) { return claimOpen; } /** * @notice Get the numbed claimed by an address. * */ function getClaimed(address _addr) public view returns (uint8) { return numberClaimed[_addr]; } /** * @notice Get the max per transaction. * */ function getMaxPerTx() public view returns (uint8) { return maxPerTx; } /** * @notice Get the max per wallet. * */ function getMaxPerWallet() public view returns (uint8) { return maxPerWallet; } /** * @notice Get the number claimed by an address. * */ function getMaxSupply() public pure returns (uint256) { return MAX_SUPPLY; } /** * @notice Return the contractURI */ function contractURI() public view returns (string memory) { return contracturi; } function getTokenIDS(address _addr) public view returns (string memory) { uint256 totalInkhas = this.balanceOf( _addr ); string memory tokenIds; for (uint256 x = 0; x < totalInkhas; x++) { uint256 tokenNo = this.tokenOfOwnerByIndex(_addr, x); tokenIds = string( abi.encodePacked( tokenIds, Strings.toString(tokenNo), "," ) ); } return tokenIds; } /* ========== MUTATIVE FUNCTIONS ========== */ /** * @notice Mint an Inkha. * * @param _amount the tokensToClaim. * @param _merkleProof the proof for the tx. */ function mintInkha( uint8 _amount, bytes32[] calldata _merkleProof) public { // check the claim is open require(claimOpen, "Claim is not open"); require(_amount <= maxPerTx, "Too many at once"); require(_amount + numberClaimed[ msg.sender] <= maxPerWallet, "Too many in total"); // Stop contracts calling the method. require(tx.origin == msg.sender); // Check the amount isn't over the max supply. require( totalSupply() + _amount <= MAX_SUPPLY, "Surpasses supply" ); if (checkMerkle){ require(verifyMerkleProof(_merkleProof, merkleRoot),"Invalid proof"); } numberClaimed[msg.sender] += _amount; // Safemint a number of tokens equal to the length of the tokenIDs array. _safeMint(msg.sender, _amount); } /** * @notice Set the claim open state. * * @param _claimState. */ function setClaimState(bool _claimState,bool _merkleState,uint8 _maxPerTx,uint8 _maxPerWallet) external onlyOwner { if(_claimState!=claimOpen){ claimOpen = _claimState; } if(_merkleState!=checkMerkle){ checkMerkle = _merkleState; } if(_maxPerTx!=maxPerTx){ maxPerTx = _maxPerTx; } if(_maxPerWallet!=maxPerWallet){ maxPerWallet = _maxPerWallet; } } /** * @notice Verify the merkle proof for a given root. * * @param proof the merkle proof * @param root the merkle root */ function verifyMerkleProof(bytes32[] memory proof, bytes32 root) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); return MerkleProof.verify(proof, root, leaf); } /** * @notice edit the merkle root * @param _merkleRoot the merkleRoot. */ function editMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /** * @notice Admin mint, to allow direct minting of the 1/1s. * * @param _recipient the address to mint to. * @param _quantity the quantity to mint. */ function mintAdmin(address _recipient, uint256 _quantity) public onlyOwner { // Check the amount isn't over the max supply. require(totalSupply() + _quantity <= MAX_SUPPLY, "Surpasses supply"); // Safemint the quantiy of tokens to the recipient. _safeMint(_recipient, _quantity); } /** * @notice Change the contract URI * * @param _uri the respective base URI */ function setContractURI(string memory _uri) external onlyOwner { contracturi = _uri; } /** * @notice Change the base URI for returning metadata * * @param _baseTokenURI the respective base URI */ function setBaseURI(string memory _baseTokenURI) external onlyOwner { baseTokenURI = _baseTokenURI; } function isBlocked(address operator) internal view returns (bool){ return blockedMarketplaces[operator]; } function setBlockedOperator(address operator, bool state) external onlyOwner{ blockedMarketplaces[operator] = state; } /* ========== OVERRIDES ========== */ /** * @notice Return the baseTokenURI */ function _baseURI() internal view override returns (string memory) { return baseTokenURI; } function setApprovalForAll (address operator, bool approved) public virtual override(ERC721A){ require(!isBlocked(operator), "This operator is blocked"); super.setApprovalForAll(operator,approved); } function isApprovedForAll (address account, address operator) public view virtual override(ERC721A) returns (bool){ if (isBlocked(operator)) return false; return super.isApprovedForAll(account,operator); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (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 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // Compiler will pack the following // _currentIndex and _burnCounter into a single 256bit word. // The tokenId of the next token to be minted. uint128 internal _currentIndex; // The number of tokens burned. uint128 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. * 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 tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert TokenIndexOutOfBounds(); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * 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 tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, 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 override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 { _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 { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = uint128(updatedIndex); } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @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 { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// 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/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 (last updated v4.5.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 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 (last updated v4.5.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); /** * @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); }
// 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 v4.4.1 (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.1 (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.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); }
{ "optimizer": { "enabled": true, "runs": 400 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkMerkle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"editMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getClaimed","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxPerTx","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTokenIDS","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintInkha","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberClaimed","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"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":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setBlockedOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_claimState","type":"bool"},{"internalType":"bool","name":"_merkleState","type":"bool"},{"internalType":"uint8","name":"_maxPerTx","type":"uint8"},{"internalType":"uint8","name":"_maxPerWallet","type":"uint8"}],"name":"setClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","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":"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":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"verifyMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600b805461ffff1916610101179055600d805460ff191660011790553480156200002d57600080fd5b5060405180604001604052806005815260200164496e6b686160d81b81525060405180604001604052806005815260200164494e4b484160d81b81525081600190805190602001906200008292919062000111565b5080516200009890600290602084019062000111565b505050620000b5620000af620000bb60201b60201c565b620000bf565b620001f3565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011f90620001b7565b90600052602060002090601f0160209004810192826200014357600085556200018e565b82601f106200015e57805160ff19168380011785556200018e565b828001600101855582156200018e579182015b828111156200018e57825182559160200191906001019062000171565b506200019c929150620001a0565b5090565b5b808211156200019c5760008155600101620001a1565b600181811c90821680620001cc57607f821691505b602082108103620001ed57634e487b7160e01b600052602260045260246000fd5b50919050565b61239880620002036000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80635f04405211610125578063b88d4fde116100ad578063e8a3d4851161007c578063e8a3d485146104a4578063e985e9c5146104ac578063eb46260e146104bf578063f2fde38b146104eb578063f95fbcd5146104fe57600080fd5b8063b88d4fde1461045e578063c3a7199914610471578063c87b56dd14610484578063d0f44bf71461049757600080fd5b8063715018a6116100f4578063715018a6146104175780638da5cb5b1461041f578063938e3d7b1461043057806395d89b4114610443578063a22cb4651461044b57600080fd5b80635f044052146103ce5780636352211e146103e15780636bbc4291146103f457806370a082311461040457600080fd5b806323b872dd116101a857806342842e0e1161017757806342842e0e1461037c5780634b43c6f91461038f5780634c0f38c2146103a15780634f6ccce7146103a857806355f804b3146103bb57600080fd5b806323b872dd146103205780632f745c59146103335780633788a31a146103465780633cd3d9fb1461035957600080fd5b80630ea1b511116101ef5780630ea1b5111461029e578063141c6fbe146102b757806318160ddd146102ca5780631bace9a8146102fa5780631f6bf01c1461030d57600080fd5b806301ffc9a71461022157806306fdde0314610249578063081812fc1461025e578063095ea7b314610289575b600080fd5b61023461022f366004611caf565b610511565b60405190151581526020015b60405180910390f35b61025161057e565b6040516102409190611d24565b61027161026c366004611d37565b610610565b6040516001600160a01b039091168152602001610240565b61029c610297366004611d6c565b610654565b005b600b5460ff165b60405160ff9091168152602001610240565b61029c6102c5366004611db7565b6106e1565b6102ec6000546001600160801b03600160801b82048116918116919091031690565b604051908152602001610240565b61029c610308366004611e0b565b6107cd565b61025161031b366004611e3e565b610840565b61029c61032e366004611e59565b610979565b6102ec610341366004611d6c565b610984565b61029c610354366004611e95565b610a7f565b6102a5610367366004611e3e565b600c6020526000908152604090205460ff1681565b61029c61038a366004611e59565b610ceb565b600754600160a01b900460ff16610234565b60806102ec565b6102ec6103b6366004611d37565b610d06565b61029c6103c9366004611fba565b610db0565b6102346103dc366004612003565b610e0f565b6102716103ef366004611d37565b610e5d565b600b54610100900460ff166102a5565b6102ec610412366004611e3e565b610e6f565b61029c610ebe565b6007546001600160a01b0316610271565b61029c61043e366004611fba565b610f12565b610251610f6d565b61029c610459366004611e0b565b610f7c565b61029c61046c3660046120af565b610fef565b61029c61047f366004611d6c565b611023565b610251610492366004611d37565b6110e5565b600d546102349060ff1681565b610251611169565b6102346104ba36600461212b565b611178565b6102a56104cd366004611e3e565b6001600160a01b03166000908152600c602052604090205460ff1690565b61029c6104f9366004611e3e565b6111cf565b61029c61050c366004611d37565b611288565b60006001600160e01b031982166380ac58cd60e01b148061054257506001600160e01b03198216635b5e139f60e01b145b8061055d57506001600160e01b0319821663780e9d6360e01b145b8061057857506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461058d90612155565b80601f01602080910402602001604051908101604052809291908181526020018280546105b990612155565b80156106065780601f106105db57610100808354040283529160200191610606565b820191906000526020600020905b8154815290600101906020018083116105e957829003601f168201915b5050505050905090565b600061061b826112d5565b610638576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061065f82610e5d565b9050806001600160a01b0316836001600160a01b0316036106935760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106b357506106b18133611178565b155b156106d1576040516367d9dca160e11b815260040160405180910390fd5b6106dc838383611309565b505050565b6007546001600160a01b0316331461072e5760405162461bcd60e51b8152602060048201819052602482015260008051602061234383398151915260448201526064015b60405180910390fd5b600760149054906101000a900460ff16151584151514610760576007805460ff60a01b1916600160a01b861515021790555b600d5460ff1615158315151461077f57600d805460ff19168415151790555b600b5460ff83811691161461079e57600b805460ff191660ff84161790555b600b5460ff82811661010090920416146107c757600b805461ff00191661010060ff8416021790555b50505050565b6007546001600160a01b031633146108155760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b6040516370a0823160e01b81526001600160a01b038216600482015260609060009030906370a0823190602401602060405180830381865afa15801561088a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ae919061218f565b9050606060005b8281101561097157604051632f745c5960e01b81526001600160a01b0386166004820152602481018290526000903090632f745c5990604401602060405180830381865afa15801561090b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092f919061218f565b90508261093b82611365565b60405160200161094c9291906121a8565b6040516020818303038152906040529250508080610969906121f9565b9150506108b5565b509392505050565b6106dc83838361147e565b600061098f83610e6f565b82106109ae576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610a7957600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290610a275750610a71565b80516001600160a01b031615610a3c57805192505b876001600160a01b0316836001600160a01b031603610a6f57868403610a685750935061057892505050565b6001909301925b505b6001016109bf565b50600080fd5b600754600160a01b900460ff16610ad85760405162461bcd60e51b815260206004820152601160248201527f436c61696d206973206e6f74206f70656e0000000000000000000000000000006044820152606401610725565b600b5460ff9081169084161115610b245760405162461bcd60e51b815260206004820152601060248201526f546f6f206d616e79206174206f6e636560801b6044820152606401610725565b600b54336000908152600c602052604090205460ff610100909204821691610b4d911685612212565b60ff161115610b9e5760405162461bcd60e51b815260206004820152601160248201527f546f6f206d616e7920696e20746f74616c0000000000000000000000000000006044820152606401610725565b323314610baa57600080fd5b60808360ff16610bd26000546001600160801b03600160801b82048116918116919091031690565b610bdc9190612237565b1115610c1d5760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b6044820152606401610725565b600d5460ff1615610ca457610c6882828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150610e0f9050565b610ca45760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610725565b336000908152600c602052604081208054859290610cc690849060ff16612212565b92506101000a81548160ff021916908360ff1602179055506106dc338460ff1661169d565b6106dc83838360405180602001604052806000815250610fef565b600080546001600160801b031681805b82811015610d9657600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290610d8d57858303610d865750949350505050565b6001909201915b50600101610d16565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b03163314610df85760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b8051610e0b906008906020840190611c00565b5050565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190603401604051602081830303815290604052805190602001209050610e558484836116b7565b949350505050565b6000610e68826116cd565b5192915050565b60006001600160a01b038216610e98576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6007546001600160a01b03163314610f065760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b610f1060006117f1565b565b6007546001600160a01b03163314610f5a5760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b8051610e0b906009906020840190611c00565b60606002805461058d90612155565b6001600160a01b0382166000908152600e602052604090205460ff1615610fe55760405162461bcd60e51b815260206004820152601860248201527f54686973206f70657261746f7220697320626c6f636b656400000000000000006044820152606401610725565b610e0b8282611843565b610ffa84848461147e565b611006848484846118d8565b6107c7576040516368d2bf6b60e11b815260040160405180910390fd5b6007546001600160a01b0316331461106b5760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b6080816110906000546001600160801b03600160801b82048116918116919091031690565b61109a9190612237565b11156110db5760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b6044820152606401610725565b610e0b828261169d565b60606110f0826112d5565b61110d57604051630a14c4b560e41b815260040160405180910390fd5b60006111176119da565b905080516000036111375760405180602001604052806000815250611162565b8061114184611365565b60405160200161115292919061224f565b6040516020818303038152906040525b9392505050565b60606009805461058d90612155565b6001600160a01b0381166000908152600e602052604081205460ff16156111a157506000610578565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff16611162565b6007546001600160a01b031633146112175760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b6001600160a01b03811661127c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610725565b611285816117f1565b50565b6007546001600160a01b031633146112d05760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b600a55565b600080546001600160801b031682108015610578575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60608160000361138c5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113b657806113a0816121f9565b91506113af9050600a83612294565b9150611390565b60008167ffffffffffffffff8111156113d1576113d1611f1b565b6040519080825280601f01601f1916602001820160405280156113fb576020820181803683370190505b5090505b8415610e55576114106001836122a8565b915061141d600a866122bf565b611428906030612237565b60f81b81838151811061143d5761143d6122d3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611477600a86612294565b94506113ff565b6000611489826116cd565b80519091506000906001600160a01b0316336001600160a01b031614806114b7575081516114b79033611178565b806114d25750336114c784610610565b6001600160a01b0316145b9050806114f257604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146115275760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661154e57604051633a954ecd60e21b815260040160405180910390fd5b61155e6000848460000151611309565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611653576000546001600160801b0316811015611653578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610e0b8282604051806020016040528060008152506119e9565b6000826116c485846119f6565b14949350505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156117d857600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906117d65780516001600160a01b03161561176c579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156117d1579392505050565b61176c565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336001600160a01b0383160361186c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006001600160a01b0384163b156119cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061191c9033908990889088906004016122e9565b6020604051808303816000875af1925050508015611957575060408051601f3d908101601f1916820190925261195491810190612325565b60015b6119b5573d808015611985576040519150601f19603f3d011682016040523d82523d6000602084013e61198a565b606091505b5080516000036119ad576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e55565b506001949350505050565b60606008805461058d90612155565b6106dc8383836001611a62565b600081815b8451811015610971576000858281518110611a1857611a186122d3565b60200260200101519050808311611a3e5760008381526020829052604090209250611a4f565b600081815260208490526040902092505b5080611a5a816121f9565b9150506119fb565b6000546001600160801b03166001600160a01b038516611a9457604051622e076360e81b815260040160405180910390fd5b83600003611ab55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015611bd15760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015611ba75750611ba560008884886118d8565b155b15611bc5576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101611b50565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055611696565b828054611c0c90612155565b90600052602060002090601f016020900481019282611c2e5760008555611c74565b82601f10611c4757805160ff1916838001178555611c74565b82800160010185558215611c74579182015b82811115611c74578251825591602001919060010190611c59565b50611c80929150611c84565b5090565b5b80821115611c805760008155600101611c85565b6001600160e01b03198116811461128557600080fd5b600060208284031215611cc157600080fd5b813561116281611c99565b60005b83811015611ce7578181015183820152602001611ccf565b838111156107c75750506000910152565b60008151808452611d10816020860160208601611ccc565b601f01601f19169290920160200192915050565b6020815260006111626020830184611cf8565b600060208284031215611d4957600080fd5b5035919050565b80356001600160a01b0381168114611d6757600080fd5b919050565b60008060408385031215611d7f57600080fd5b611d8883611d50565b946020939093013593505050565b80358015158114611d6757600080fd5b803560ff81168114611d6757600080fd5b60008060008060808587031215611dcd57600080fd5b611dd685611d96565b9350611de460208601611d96565b9250611df260408601611da6565b9150611e0060608601611da6565b905092959194509250565b60008060408385031215611e1e57600080fd5b611e2783611d50565b9150611e3560208401611d96565b90509250929050565b600060208284031215611e5057600080fd5b61116282611d50565b600080600060608486031215611e6e57600080fd5b611e7784611d50565b9250611e8560208501611d50565b9150604084013590509250925092565b600080600060408486031215611eaa57600080fd5b611eb384611da6565b9250602084013567ffffffffffffffff80821115611ed057600080fd5b818601915086601f830112611ee457600080fd5b813581811115611ef357600080fd5b8760208260051b8501011115611f0857600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611f5a57611f5a611f1b565b604052919050565b600067ffffffffffffffff831115611f7c57611f7c611f1b565b611f8f601f8401601f1916602001611f31565b9050828152838383011115611fa357600080fd5b828260208301376000602084830101529392505050565b600060208284031215611fcc57600080fd5b813567ffffffffffffffff811115611fe357600080fd5b8201601f81018413611ff457600080fd5b610e5584823560208401611f62565b6000806040838503121561201657600080fd5b823567ffffffffffffffff8082111561202e57600080fd5b818501915085601f83011261204257600080fd5b813560208282111561205657612056611f1b565b8160051b9250612067818401611f31565b828152928401810192818101908985111561208157600080fd5b948201945b8486101561209f57853582529482019490820190612086565b9997909101359750505050505050565b600080600080608085870312156120c557600080fd5b6120ce85611d50565b93506120dc60208601611d50565b925060408501359150606085013567ffffffffffffffff8111156120ff57600080fd5b8501601f8101871361211057600080fd5b61211f87823560208401611f62565b91505092959194509250565b6000806040838503121561213e57600080fd5b61214783611d50565b9150611e3560208401611d50565b600181811c9082168061216957607f821691505b60208210810361218957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156121a157600080fd5b5051919050565b600083516121ba818460208801611ccc565b8351908301906121ce818360208801611ccc565b600b60fa1b9101908152600101949350505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161220b5761220b6121e3565b5060010190565b600060ff821660ff84168060ff0382111561222f5761222f6121e3565b019392505050565b6000821982111561224a5761224a6121e3565b500190565b60008351612261818460208801611ccc565b835190830190612275818360208801611ccc565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826122a3576122a361227e565b500490565b6000828210156122ba576122ba6121e3565b500390565b6000826122ce576122ce61227e565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261231b6080830184611cf8565b9695505050505050565b60006020828403121561233757600080fd5b815161116281611c9956fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f7bce95d99a1c3d4b88634a0ef4f165b8881dc68e185cdf3370b6a9c53e95aba64736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80635f04405211610125578063b88d4fde116100ad578063e8a3d4851161007c578063e8a3d485146104a4578063e985e9c5146104ac578063eb46260e146104bf578063f2fde38b146104eb578063f95fbcd5146104fe57600080fd5b8063b88d4fde1461045e578063c3a7199914610471578063c87b56dd14610484578063d0f44bf71461049757600080fd5b8063715018a6116100f4578063715018a6146104175780638da5cb5b1461041f578063938e3d7b1461043057806395d89b4114610443578063a22cb4651461044b57600080fd5b80635f044052146103ce5780636352211e146103e15780636bbc4291146103f457806370a082311461040457600080fd5b806323b872dd116101a857806342842e0e1161017757806342842e0e1461037c5780634b43c6f91461038f5780634c0f38c2146103a15780634f6ccce7146103a857806355f804b3146103bb57600080fd5b806323b872dd146103205780632f745c59146103335780633788a31a146103465780633cd3d9fb1461035957600080fd5b80630ea1b511116101ef5780630ea1b5111461029e578063141c6fbe146102b757806318160ddd146102ca5780631bace9a8146102fa5780631f6bf01c1461030d57600080fd5b806301ffc9a71461022157806306fdde0314610249578063081812fc1461025e578063095ea7b314610289575b600080fd5b61023461022f366004611caf565b610511565b60405190151581526020015b60405180910390f35b61025161057e565b6040516102409190611d24565b61027161026c366004611d37565b610610565b6040516001600160a01b039091168152602001610240565b61029c610297366004611d6c565b610654565b005b600b5460ff165b60405160ff9091168152602001610240565b61029c6102c5366004611db7565b6106e1565b6102ec6000546001600160801b03600160801b82048116918116919091031690565b604051908152602001610240565b61029c610308366004611e0b565b6107cd565b61025161031b366004611e3e565b610840565b61029c61032e366004611e59565b610979565b6102ec610341366004611d6c565b610984565b61029c610354366004611e95565b610a7f565b6102a5610367366004611e3e565b600c6020526000908152604090205460ff1681565b61029c61038a366004611e59565b610ceb565b600754600160a01b900460ff16610234565b60806102ec565b6102ec6103b6366004611d37565b610d06565b61029c6103c9366004611fba565b610db0565b6102346103dc366004612003565b610e0f565b6102716103ef366004611d37565b610e5d565b600b54610100900460ff166102a5565b6102ec610412366004611e3e565b610e6f565b61029c610ebe565b6007546001600160a01b0316610271565b61029c61043e366004611fba565b610f12565b610251610f6d565b61029c610459366004611e0b565b610f7c565b61029c61046c3660046120af565b610fef565b61029c61047f366004611d6c565b611023565b610251610492366004611d37565b6110e5565b600d546102349060ff1681565b610251611169565b6102346104ba36600461212b565b611178565b6102a56104cd366004611e3e565b6001600160a01b03166000908152600c602052604090205460ff1690565b61029c6104f9366004611e3e565b6111cf565b61029c61050c366004611d37565b611288565b60006001600160e01b031982166380ac58cd60e01b148061054257506001600160e01b03198216635b5e139f60e01b145b8061055d57506001600160e01b0319821663780e9d6360e01b145b8061057857506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461058d90612155565b80601f01602080910402602001604051908101604052809291908181526020018280546105b990612155565b80156106065780601f106105db57610100808354040283529160200191610606565b820191906000526020600020905b8154815290600101906020018083116105e957829003601f168201915b5050505050905090565b600061061b826112d5565b610638576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061065f82610e5d565b9050806001600160a01b0316836001600160a01b0316036106935760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106b357506106b18133611178565b155b156106d1576040516367d9dca160e11b815260040160405180910390fd5b6106dc838383611309565b505050565b6007546001600160a01b0316331461072e5760405162461bcd60e51b8152602060048201819052602482015260008051602061234383398151915260448201526064015b60405180910390fd5b600760149054906101000a900460ff16151584151514610760576007805460ff60a01b1916600160a01b861515021790555b600d5460ff1615158315151461077f57600d805460ff19168415151790555b600b5460ff83811691161461079e57600b805460ff191660ff84161790555b600b5460ff82811661010090920416146107c757600b805461ff00191661010060ff8416021790555b50505050565b6007546001600160a01b031633146108155760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b6040516370a0823160e01b81526001600160a01b038216600482015260609060009030906370a0823190602401602060405180830381865afa15801561088a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ae919061218f565b9050606060005b8281101561097157604051632f745c5960e01b81526001600160a01b0386166004820152602481018290526000903090632f745c5990604401602060405180830381865afa15801561090b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092f919061218f565b90508261093b82611365565b60405160200161094c9291906121a8565b6040516020818303038152906040529250508080610969906121f9565b9150506108b5565b509392505050565b6106dc83838361147e565b600061098f83610e6f565b82106109ae576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610a7957600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290610a275750610a71565b80516001600160a01b031615610a3c57805192505b876001600160a01b0316836001600160a01b031603610a6f57868403610a685750935061057892505050565b6001909301925b505b6001016109bf565b50600080fd5b600754600160a01b900460ff16610ad85760405162461bcd60e51b815260206004820152601160248201527f436c61696d206973206e6f74206f70656e0000000000000000000000000000006044820152606401610725565b600b5460ff9081169084161115610b245760405162461bcd60e51b815260206004820152601060248201526f546f6f206d616e79206174206f6e636560801b6044820152606401610725565b600b54336000908152600c602052604090205460ff610100909204821691610b4d911685612212565b60ff161115610b9e5760405162461bcd60e51b815260206004820152601160248201527f546f6f206d616e7920696e20746f74616c0000000000000000000000000000006044820152606401610725565b323314610baa57600080fd5b60808360ff16610bd26000546001600160801b03600160801b82048116918116919091031690565b610bdc9190612237565b1115610c1d5760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b6044820152606401610725565b600d5460ff1615610ca457610c6882828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150610e0f9050565b610ca45760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610725565b336000908152600c602052604081208054859290610cc690849060ff16612212565b92506101000a81548160ff021916908360ff1602179055506106dc338460ff1661169d565b6106dc83838360405180602001604052806000815250610fef565b600080546001600160801b031681805b82811015610d9657600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290610d8d57858303610d865750949350505050565b6001909201915b50600101610d16565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b03163314610df85760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b8051610e0b906008906020840190611c00565b5050565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190603401604051602081830303815290604052805190602001209050610e558484836116b7565b949350505050565b6000610e68826116cd565b5192915050565b60006001600160a01b038216610e98576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6007546001600160a01b03163314610f065760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b610f1060006117f1565b565b6007546001600160a01b03163314610f5a5760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b8051610e0b906009906020840190611c00565b60606002805461058d90612155565b6001600160a01b0382166000908152600e602052604090205460ff1615610fe55760405162461bcd60e51b815260206004820152601860248201527f54686973206f70657261746f7220697320626c6f636b656400000000000000006044820152606401610725565b610e0b8282611843565b610ffa84848461147e565b611006848484846118d8565b6107c7576040516368d2bf6b60e11b815260040160405180910390fd5b6007546001600160a01b0316331461106b5760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b6080816110906000546001600160801b03600160801b82048116918116919091031690565b61109a9190612237565b11156110db5760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b6044820152606401610725565b610e0b828261169d565b60606110f0826112d5565b61110d57604051630a14c4b560e41b815260040160405180910390fd5b60006111176119da565b905080516000036111375760405180602001604052806000815250611162565b8061114184611365565b60405160200161115292919061224f565b6040516020818303038152906040525b9392505050565b60606009805461058d90612155565b6001600160a01b0381166000908152600e602052604081205460ff16156111a157506000610578565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff16611162565b6007546001600160a01b031633146112175760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b6001600160a01b03811661127c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610725565b611285816117f1565b50565b6007546001600160a01b031633146112d05760405162461bcd60e51b815260206004820181905260248201526000805160206123438339815191526044820152606401610725565b600a55565b600080546001600160801b031682108015610578575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60608160000361138c5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113b657806113a0816121f9565b91506113af9050600a83612294565b9150611390565b60008167ffffffffffffffff8111156113d1576113d1611f1b565b6040519080825280601f01601f1916602001820160405280156113fb576020820181803683370190505b5090505b8415610e55576114106001836122a8565b915061141d600a866122bf565b611428906030612237565b60f81b81838151811061143d5761143d6122d3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611477600a86612294565b94506113ff565b6000611489826116cd565b80519091506000906001600160a01b0316336001600160a01b031614806114b7575081516114b79033611178565b806114d25750336114c784610610565b6001600160a01b0316145b9050806114f257604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146115275760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661154e57604051633a954ecd60e21b815260040160405180910390fd5b61155e6000848460000151611309565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611653576000546001600160801b0316811015611653578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610e0b8282604051806020016040528060008152506119e9565b6000826116c485846119f6565b14949350505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156117d857600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906117d65780516001600160a01b03161561176c579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156117d1579392505050565b61176c565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336001600160a01b0383160361186c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006001600160a01b0384163b156119cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061191c9033908990889088906004016122e9565b6020604051808303816000875af1925050508015611957575060408051601f3d908101601f1916820190925261195491810190612325565b60015b6119b5573d808015611985576040519150601f19603f3d011682016040523d82523d6000602084013e61198a565b606091505b5080516000036119ad576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e55565b506001949350505050565b60606008805461058d90612155565b6106dc8383836001611a62565b600081815b8451811015610971576000858281518110611a1857611a186122d3565b60200260200101519050808311611a3e5760008381526020829052604090209250611a4f565b600081815260208490526040902092505b5080611a5a816121f9565b9150506119fb565b6000546001600160801b03166001600160a01b038516611a9457604051622e076360e81b815260040160405180910390fd5b83600003611ab55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015611bd15760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015611ba75750611ba560008884886118d8565b155b15611bc5576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101611b50565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055611696565b828054611c0c90612155565b90600052602060002090601f016020900481019282611c2e5760008555611c74565b82601f10611c4757805160ff1916838001178555611c74565b82800160010185558215611c74579182015b82811115611c74578251825591602001919060010190611c59565b50611c80929150611c84565b5090565b5b80821115611c805760008155600101611c85565b6001600160e01b03198116811461128557600080fd5b600060208284031215611cc157600080fd5b813561116281611c99565b60005b83811015611ce7578181015183820152602001611ccf565b838111156107c75750506000910152565b60008151808452611d10816020860160208601611ccc565b601f01601f19169290920160200192915050565b6020815260006111626020830184611cf8565b600060208284031215611d4957600080fd5b5035919050565b80356001600160a01b0381168114611d6757600080fd5b919050565b60008060408385031215611d7f57600080fd5b611d8883611d50565b946020939093013593505050565b80358015158114611d6757600080fd5b803560ff81168114611d6757600080fd5b60008060008060808587031215611dcd57600080fd5b611dd685611d96565b9350611de460208601611d96565b9250611df260408601611da6565b9150611e0060608601611da6565b905092959194509250565b60008060408385031215611e1e57600080fd5b611e2783611d50565b9150611e3560208401611d96565b90509250929050565b600060208284031215611e5057600080fd5b61116282611d50565b600080600060608486031215611e6e57600080fd5b611e7784611d50565b9250611e8560208501611d50565b9150604084013590509250925092565b600080600060408486031215611eaa57600080fd5b611eb384611da6565b9250602084013567ffffffffffffffff80821115611ed057600080fd5b818601915086601f830112611ee457600080fd5b813581811115611ef357600080fd5b8760208260051b8501011115611f0857600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611f5a57611f5a611f1b565b604052919050565b600067ffffffffffffffff831115611f7c57611f7c611f1b565b611f8f601f8401601f1916602001611f31565b9050828152838383011115611fa357600080fd5b828260208301376000602084830101529392505050565b600060208284031215611fcc57600080fd5b813567ffffffffffffffff811115611fe357600080fd5b8201601f81018413611ff457600080fd5b610e5584823560208401611f62565b6000806040838503121561201657600080fd5b823567ffffffffffffffff8082111561202e57600080fd5b818501915085601f83011261204257600080fd5b813560208282111561205657612056611f1b565b8160051b9250612067818401611f31565b828152928401810192818101908985111561208157600080fd5b948201945b8486101561209f57853582529482019490820190612086565b9997909101359750505050505050565b600080600080608085870312156120c557600080fd5b6120ce85611d50565b93506120dc60208601611d50565b925060408501359150606085013567ffffffffffffffff8111156120ff57600080fd5b8501601f8101871361211057600080fd5b61211f87823560208401611f62565b91505092959194509250565b6000806040838503121561213e57600080fd5b61214783611d50565b9150611e3560208401611d50565b600181811c9082168061216957607f821691505b60208210810361218957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156121a157600080fd5b5051919050565b600083516121ba818460208801611ccc565b8351908301906121ce818360208801611ccc565b600b60fa1b9101908152600101949350505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161220b5761220b6121e3565b5060010190565b600060ff821660ff84168060ff0382111561222f5761222f6121e3565b019392505050565b6000821982111561224a5761224a6121e3565b500190565b60008351612261818460208801611ccc565b835190830190612275818360208801611ccc565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826122a3576122a361227e565b500490565b6000828210156122ba576122ba6121e3565b500390565b6000826122ce576122ce61227e565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261231b6080830184611cf8565b9695505050505050565b60006020828403121561233757600080fd5b815161116281611c9956fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f7bce95d99a1c3d4b88634a0ef4f165b8881dc68e185cdf3370b6a9c53e95aba64736f6c634300080d0033
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.