Overview
ETH Balance
0.0465 ETH
Eth Value
$122.42 (@ $2,632.79/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 133 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 19146958 | 271 days ago | IN | 0.0044 ETH | 0.00180265 | ||||
Set Approval For... | 19111222 | 276 days ago | IN | 0 ETH | 0.00055766 | ||||
Set Approval For... | 19062794 | 282 days ago | IN | 0 ETH | 0.00084363 | ||||
Set Approval For... | 19037825 | 286 days ago | IN | 0 ETH | 0.00137207 | ||||
Set Approval For... | 18982870 | 294 days ago | IN | 0 ETH | 0.00104261 | ||||
Mint | 18937232 | 300 days ago | IN | 0.0044 ETH | 0.00186117 | ||||
Mint | 18714106 | 331 days ago | IN | 0.0176 ETH | 0.00708231 | ||||
Mint | 18703225 | 333 days ago | IN | 0.0176 ETH | 0.00360987 | ||||
Presalemint | 18701746 | 333 days ago | IN | 0.0025 ETH | 0.00450369 | ||||
Set Approval For... | 18700411 | 333 days ago | IN | 0 ETH | 0.00170626 | ||||
Presalemint | 18700148 | 333 days ago | IN | 0 ETH | 0.00094209 | ||||
Withdraw | 18700087 | 333 days ago | IN | 0 ETH | 0.00119763 | ||||
Mint | 18699577 | 333 days ago | IN | 0.0132 ETH | 0.00377895 | ||||
Mint | 18697641 | 334 days ago | IN | 0.0176 ETH | 0.00370932 | ||||
Mint | 18697552 | 334 days ago | IN | 0.0176 ETH | 0.00402838 | ||||
Presalemint | 18696273 | 334 days ago | IN | 0 ETH | 0.00393963 | ||||
Presalemint | 18695925 | 334 days ago | IN | 0.005 ETH | 0.00467928 | ||||
Presalemint | 18695723 | 334 days ago | IN | 0 ETH | 0.00434677 | ||||
Presalemint | 18695193 | 334 days ago | IN | 0 ETH | 0.00452713 | ||||
Set Approval For... | 18695157 | 334 days ago | IN | 0 ETH | 0.0014726 | ||||
Presalemint | 18695143 | 334 days ago | IN | 0.0075 ETH | 0.00447645 | ||||
Mint | 18695131 | 334 days ago | IN | 0.0044 ETH | 0.00310728 | ||||
Presalemint | 18695095 | 334 days ago | IN | 0 ETH | 0.00389242 | ||||
Mint | 18695066 | 334 days ago | IN | 0.0176 ETH | 0.00347729 | ||||
Set Approval For... | 18694928 | 334 days ago | IN | 0 ETH | 0.00137195 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
18700087 | 333 days ago | 0.7697 ETH |
Loading...
Loading
Contract Name:
CZRunners
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // . ... // . . . // . .*///*,..,///// , // *((((((((((((((((((,.. // .*((((((((((((((((((((/. // ,*/(((((((((((((((((((((* // *(((((/**,,*////**,,*//(/ // ,((((//*/*/**.,..***///*/ // *,/((((///,**//*(////*//(/(* // /*/((((((((/*/#((//((((/(** // /#(((/(/////***/////((((* // ((//(////*,***(//((( // /(((/(////(((/////(( // (////(((///((((/( // (//****//**///*( // /((///******//((( . // .% *((((////((//((* . // .. % .(((/////((* # // . ... . % .###((, ( . // .. / * , // ... . ,./ . // .. ##(( . // .. #((* *##(* (%% . // . (#((* ##((/ *% . // . %#((/ (##((. #(# .. // . .%#((( /#(#(* .##((( // ###########(( /((((( .. // .. ###(#(((#(##((((((( . // . #((((((//(/(((((/ ../#####* // /#%%%%##(*,. . (#(((((/////////(((((////. ..***/(### // ######(((((/*. #(((((////////////, ..*/(((##(/ // (((((((////*,.#(((((/////////// . .,*/(((((( // (((((((///*(#(///////////// . .,*//((((( // (((//((((#((///////**///, . .,*///((((( // ,*(####((((////*/*****/ ,*////((((( // ((((((((((//////**/// ,*/////(((( // /(////////////**//* .*/////((((( // ,///************* .,*/////(((( // (////********, ,*////(((((/ // ,/***** .**///(((((( // ,*////((((( // .,*///((((( // ,**///((((// // Developer: Fazel Pejmanfar, Twitter: @Pejmanfarfazel pragma solidity >=0.7.0 <0.9.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract CZRunners is ERC721A, Ownable, ReentrancyGuard, ERC2981 { string public baseURI; string public notRevealedUri; uint256 public cost = 0.0044 ether; uint256 public wlcost = 0.0025 ether; uint256 public maxSupply = 4444; uint256 public wlSupply = 2222; uint256 public MaxperWallet = 4; uint256 public MaxperWalletWl = 4; bool public paused = false; bool public revealed = false; bool public preSale = false; bool public publicSale = false; bytes32 public merkleRoot; mapping(address => uint256) public PublicMintofUser; mapping(address => uint256) public WhitelistedMintofUser; mapping(address => bool) public isMintedForFree; constructor(address _owner) ERC721A ("CZ Runners", "CZrunners") Ownable(_owner) { _safeMint(_owner, 44); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } /// @dev Public mint function mint(uint256 tokens) public payable nonReentrant { require(!paused, "Sale is paused"); require(_msgSenderERC721A() == tx.origin, "BOTS Are not Allowed"); require(publicSale, "Public Sale Hasn't started yet"); require(tokens <= MaxperWallet, "max mint amount per tx exceeded"); require(totalSupply() + tokens <= maxSupply, "Soldout"); require( PublicMintofUser[_msgSenderERC721A()] + tokens <= MaxperWallet, "Max NFT Per Wallet exceeded" ); require(msg.value >= cost * tokens, "insufficient funds"); PublicMintofUser[_msgSenderERC721A()] += tokens; _safeMint(_msgSenderERC721A(), tokens); } /// @dev presale mint for whitelisted users function presalemint(uint256 tokens, bytes32[] calldata merkleProof) public payable nonReentrant { require(!paused, "Sale is paused"); require(preSale, "Presale Hasn't started yet"); require(_msgSenderERC721A() == tx.origin, "BOTS Are not Allowed"); require( MerkleProof.verify( merkleProof, merkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "You are not Whitelisted" ); require( WhitelistedMintofUser[_msgSenderERC721A()] + tokens <= MaxperWalletWl, "Max NFT Per Wallet exceeded" ); require(tokens <= MaxperWalletWl, "max mint per Tx exceeded"); require( totalSupply() + tokens <= wlSupply, "Whitelist MaxSupply exceeded" ); if (!isMintedForFree[_msgSenderERC721A()]) { uint256 pricetopay = tokens - 1; require(msg.value >= wlcost * pricetopay, "insufficient funds"); isMintedForFree[_msgSenderERC721A()] = true; } else { require(msg.value >= wlcost * tokens, "insufficient funds"); } WhitelistedMintofUser[_msgSenderERC721A()] += tokens; _safeMint(_msgSenderERC721A(), tokens); } /// @dev use it for giveaway and team mint function airdrop(uint256 _mintAmount, address[] calldata destination) public onlyOwner nonReentrant { uint256 totalnft = _mintAmount * destination.length; require( totalSupply() + totalnft <= maxSupply, "max NFT limit exceeded" ); for (uint256 i = 0; i < destination.length; i++) { _safeMint(destination[i], _mintAmount); } } /// @dev use it To Burn NFTs function burn(uint256[] calldata tokenID) public nonReentrant { for (uint256 id = 0; id < tokenID.length; id++) { require(_exists(tokenID[id]), "Burning for nonexistent token"); require( ownerOf(tokenID[id]) == _msgSenderERC721A(), "You are not owner of this NFT" ); _burn(tokenID[id]); } } /// @notice returns metadata link of tokenid function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721AMetadata: URI query for nonexistent token" ); if (revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _toString(tokenId), ".json" ) ) : ""; } /// @notice return the total number minted by an address function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } /// @notice return all tokens owned by an address function tokensOfOwner(address owner) public view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for ( uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i ) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } /// @dev to reveal collection, true for reveal function reveal(bool _state) public onlyOwner { revealed = _state; } /// @dev change the merkle root for the whitelist phase function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /// @dev change the public max per wallet function setMaxPerWallet(uint256 _limit) public onlyOwner { MaxperWallet = _limit; } /// @dev change the whitelist max per wallet function setWlMaxPerWallet(uint256 _limit) public onlyOwner { MaxperWalletWl = _limit; } /// @dev change the public price(amount need to be in wei) function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } /// @dev change the whitelist price(amount need to be in wei) function setWlCost(uint256 _newWlCost) public onlyOwner { wlcost = _newWlCost; } /// @dev cut the supply if we dont sold out function setMaxsupply(uint256 _newsupply) public onlyOwner { maxSupply = _newsupply; } /// @dev cut the supply if we dont sold out function setWlsupply(uint256 _newsupply) public onlyOwner { wlSupply = _newsupply; } /// @dev set your baseuri function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } /// @dev set hidden uri function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } /// @dev to pause and unpause your contract(use booleans true or false) function pause(bool _state) public onlyOwner { paused = _state; } /// @dev activate whitelist sale(use booleans true or false) function togglepreSale(bool _state) external onlyOwner { preSale = _state; } /// @dev activate public sale(use booleans true or false) function togglepublicSale(bool _state) external onlyOwner { publicSale = _state; } /// @dev withdraw funds from contract function withdraw() public payable onlyOwner nonReentrant { uint256 balance = address(this).balance; payable(_msgSenderERC721A()).transfer(balance); } // ERC2981 functions function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } /// @dev set royalty %, eg. 500 = 5% function setRoyaltyInfo(address _receiver, uint96 _feeNumerator) external onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } function deleteRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol) pragma solidity ^0.8.20; import {IERC2981} from "../../interfaces/IERC2981.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator); /** * @dev The default royalty receiver is invalid. */ error ERC2981InvalidDefaultRoyaltyReceiver(address receiver); /** * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator); /** * @dev The royalty receiver for `tokenId` is invalid. */ error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidDefaultRoyaltyReceiver(address(0)); } _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0)); } _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the Merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates Merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** *@dev The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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 v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MaxperWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxperWalletWl","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PublicMintofUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhitelistedMintofUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address[]","name":"destination","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenID","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMintedForFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"presalemint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newsupply","type":"uint256"}],"name":"setMaxsupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newWlCost","type":"uint256"}],"name":"setWlCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setWlMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newsupply","type":"uint256"}],"name":"setWlsupply","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":"bool","name":"_state","type":"bool"}],"name":"togglepreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"togglepublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlcost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052660fa1c6d5030000600e556608e1bc9bf04000600f5561115c6010556108ae601155600460128190556013556014805463ffffffff1916905534801562000049575f80fd5b50604051620030bc380380620030bc8339810160408190526200006c91620003dd565b806040518060400160405280600a815260200169435a2052756e6e65727360b01b81525060405180604001604052806009815260200168435a72756e6e65727360b81b8152508160029081620000c39190620004a2565b506003620000d28282620004a2565b5060015f5550506001600160a01b0381166200010757604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b62000112816200012c565b5060016009556200012581602c6200017d565b5062000608565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6200019e828260405180602001604052805f815250620001a260201b60201c565b5050565b620001ae838362000215565b6001600160a01b0383163b1562000210575f548281035b6001810190620001da905f90879086620002ed565b620001f8576040516368d2bf6b60e11b815260040160405180910390fd5b818110620001c557815f54146200020d575f80fd5b50505b505050565b5f8054908290036200023a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083905f805160206200309c8339815191528180a4600183015b818114620002c45780835f5f805160206200309c8339815191525f80a46001016200029e565b50815f03620002e557604051622e076360e81b815260040160405180910390fd5b5f5550505050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290620003239033908990889088906004016200056e565b6020604051808303815f875af192505050801562000360575060408051601f3d908101601f191682019092526200035d91810190620005df565b60015b620003c0573d80801562000390576040519150601f19603f3d011682016040523d82523d5f602084013e62000395565b606091505b5080515f03620003b8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b5f60208284031215620003ee575f80fd5b81516001600160a01b038116811462000405575f80fd5b9392505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200043557607f821691505b6020821081036200045457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200021057805f5260205f20601f840160051c81016020851015620004815750805b601f840160051c820191505b818110156200020d575f81556001016200048d565b81516001600160401b03811115620004be57620004be6200040c565b620004d681620004cf845462000420565b846200045a565b602080601f8311600181146200050c575f8415620004f45750858301515b5f19600386901b1c1916600185901b17855562000566565b5f85815260208120601f198616915b828110156200053c578886015182559484019460019091019084016200051b565b50858210156200055a57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f60018060a01b0380871683526020818716602085015285604085015260806060850152845191508160808501525f5b82811015620005bc5785810182015185820160a0015281016200059e565b50505f60a0828501015260a0601f19601f83011684010191505095945050505050565b5f60208284031215620005f0575f80fd5b81516001600160e01b03198116811462000405575f80fd5b612a8680620006165f395ff3fe60806040526004361061035a575f3560e01c806370a08231116101bd578063bde0608a116100f2578063f12f6d5d11610092578063f3257cdd1161006d578063f3257cdd14610948578063fd571e0914610967578063fea0e05814610986578063fff8d2fc146109a5575f80fd5b8063f12f6d5d146108eb578063f2c4ce1e1461090a578063f2fde38b14610929575f80fd5b8063d5abeb01116100cd578063d5abeb0114610879578063dc33e6811461088e578063e268e4d3146108ad578063e985e9c5146108cc575f80fd5b8063bde0608a1461081c578063bdf7a8e61461083b578063c87b56dd1461085a575f80fd5b8063940cd05b1161015d578063a22cb46511610138578063a22cb465146107b6578063b80f55c9146107d5578063b88d4fde146107f4578063bd7a199814610807575f80fd5b8063940cd05b1461077057806395d89b411461078f578063a0712d68146107a3575f80fd5b8063827852141161019857806382785214146106e85780638462151c146106fc5780638b14966b146107285780638da5cb5b14610753575f80fd5b806370a0823114610696578063715018a6146106b55780637cb64759146106c9575f80fd5b80632a55205a1161029357806351830227116102335780635c975abb1161020e5780635c975abb146106355780636352211e1461064e5780636c0360eb1461066d5780636c2d3c4f14610681575f80fd5b806351830227146105d957806355f804b3146105f75780635a7adf7f14610616575f80fd5b806333bc1c5c1161026e57806333bc1c5c1461057f5780633ccfd60b1461059f57806342842e0e146105a757806344a0d68a146105ba575f80fd5b80632a55205a146104fe5780632eb4a7ab1461053c57806331940f3f14610551575f80fd5b8063081c8c44116102fe57806313faede6116102d957806313faede61461049c578063149835a0146104b157806318160ddd146104d057806323b872dd146104eb575f80fd5b8063081c8c4414610460578063095ea7b3146104745780630fe8418b14610487575f80fd5b806302fa7c471161033957806302fa7c47146103d6578063036e4cb5146103f557806306fdde0314610408578063081812fc14610429575f80fd5b806277ec051461035e57806301ffc9a71461038657806302329a29146103b5575b5f80fd5b348015610369575f80fd5b5061037360135481565b6040519081526020015b60405180910390f35b348015610391575f80fd5b506103a56103a036600461236a565b6109d0565b604051901515815260200161037d565b3480156103c0575f80fd5b506103d46103cf366004612399565b6109ef565b005b3480156103e1575f80fd5b506103d46103f03660046123c8565b610a0a565b6103d4610403366004612449565b610a20565b348015610413575f80fd5b5061041c610dd1565b60405161037d91906124de565b348015610434575f80fd5b506104486104433660046124f0565b610e61565b6040516001600160a01b03909116815260200161037d565b34801561046b575f80fd5b5061041c610ea3565b6103d4610482366004612507565b610f2f565b348015610492575f80fd5b5061037360115481565b3480156104a7575f80fd5b50610373600e5481565b3480156104bc575f80fd5b506103d46104cb3660046124f0565b610fcd565b3480156104db575f80fd5b506103736001545f54035f190190565b6103d46104f936600461252f565b610fda565b348015610509575f80fd5b5061051d610518366004612568565b611161565b604080516001600160a01b03909316835260208301919091520161037d565b348015610547575f80fd5b5061037360155481565b34801561055c575f80fd5b506103a561056b366004612588565b60186020525f908152604090205460ff1681565b34801561058a575f80fd5b506014546103a5906301000000900460ff1681565b6103d461120d565b6103d46105b536600461252f565b611257565b3480156105c5575f80fd5b506103d46105d43660046124f0565b611271565b3480156105e4575f80fd5b506014546103a590610100900460ff1681565b348015610602575f80fd5b506103d4610611366004612628565b61127e565b348015610621575f80fd5b506014546103a59062010000900460ff1681565b348015610640575f80fd5b506014546103a59060ff1681565b348015610659575f80fd5b506104486106683660046124f0565b611292565b348015610678575f80fd5b5061041c61129c565b34801561068c575f80fd5b50610373600f5481565b3480156106a1575f80fd5b506103736106b0366004612588565b6112a9565b3480156106c0575f80fd5b506103d46112f6565b3480156106d4575f80fd5b506103d46106e33660046124f0565b611307565b3480156106f3575f80fd5b506103d4611314565b348015610707575f80fd5b5061071b610716366004612588565b611325565b60405161037d919061266d565b348015610733575f80fd5b50610373610742366004612588565b60176020525f908152604090205481565b34801561075e575f80fd5b506008546001600160a01b0316610448565b34801561077b575f80fd5b506103d461078a366004612399565b61142a565b34801561079a575f80fd5b5061041c61144c565b6103d46107b13660046124f0565b61145b565b3480156107c1575f80fd5b506103d46107d03660046126a4565b6116c0565b3480156107e0575f80fd5b506103d46107ef3660046126d5565b61172b565b6103d4610802366004612714565b611856565b348015610812575f80fd5b5061037360125481565b348015610827575f80fd5b506103d46108363660046124f0565b6118a0565b348015610846575f80fd5b506103d4610855366004612449565b6118ad565b348015610865575f80fd5b5061041c6108743660046124f0565b61197c565b348015610884575f80fd5b5061037360105481565b348015610899575f80fd5b506103736108a8366004612588565b611ae8565b3480156108b8575f80fd5b506103d46108c73660046124f0565b611b12565b3480156108d7575f80fd5b506103a56108e636600461278b565b611b1f565b3480156108f6575f80fd5b506103d46109053660046124f0565b611b4c565b348015610915575f80fd5b506103d4610924366004612628565b611b59565b348015610934575f80fd5b506103d4610943366004612588565b611b6d565b348015610953575f80fd5b506103d4610962366004612399565b611ba7565b348015610972575f80fd5b506103d46109813660046124f0565b611bcd565b348015610991575f80fd5b506103d46109a0366004612399565b611bda565b3480156109b0575f80fd5b506103736109bf366004612588565b60166020525f908152604090205481565b5f6109da82611bfe565b806109e957506109e982611c4b565b92915050565b6109f7611c7f565b6014805460ff1916911515919091179055565b610a12611c7f565b610a1c8282611cac565b5050565b610a28611d4e565b60145460ff1615610a715760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b60448201526064015b60405180910390fd5b60145462010000900460ff16610ac95760405162461bcd60e51b815260206004820152601a60248201527f50726573616c65204861736e27742073746172746564207965740000000000006044820152606401610a68565b333214610b0f5760405162461bcd60e51b81526020600482015260146024820152731093d514c8105c99481b9bdd08105b1b1bddd95960621b6044820152606401610a68565b610b838282808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250506015546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120611da7565b610bcf5760405162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f742057686974656c69737465640000000000000000006044820152606401610a68565b601354335f90815260176020526040902054610bec9085906127c7565b1115610c3a5760405162461bcd60e51b815260206004820152601b60248201527f4d6178204e4654205065722057616c6c657420657863656564656400000000006044820152606401610a68565b601354831115610c8c5760405162461bcd60e51b815260206004820152601860248201527f6d6178206d696e742070657220547820657863656564656400000000000000006044820152606401610a68565b60115483610c9f6001545f54035f190190565b610ca991906127c7565b1115610cf75760405162461bcd60e51b815260206004820152601c60248201527f57686974656c697374204d6178537570706c79206578636565646564000000006044820152606401610a68565b335f9081526018602052604090205460ff16610d67575f610d196001856127da565b905080600f54610d2991906127ed565b341015610d485760405162461bcd60e51b8152600401610a6890612804565b50335f908152601860205260409020805460ff19166001179055610d94565b82600f54610d7591906127ed565b341015610d945760405162461bcd60e51b8152600401610a6890612804565b335f9081526017602052604081208054859290610db29084906127c7565b90915550610dc290503384611dbc565b610dcc6001600955565b505050565b606060028054610de090612830565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0c90612830565b8015610e575780601f10610e2e57610100808354040283529160200191610e57565b820191905f5260205f20905b815481529060010190602001808311610e3a57829003601f168201915b5050505050905090565b5f610e6b82611dd5565b610e88576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b600d8054610eb090612830565b80601f0160208091040260200160405190810160405280929190818152602001828054610edc90612830565b8015610f275780601f10610efe57610100808354040283529160200191610f27565b820191905f5260205f20905b815481529060010190602001808311610f0a57829003601f168201915b505050505081565b5f610f3982611292565b9050336001600160a01b03821614610f7257610f558133611b1f565b610f72576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610fd5611c7f565b601055565b5f610fe482611e07565b9050836001600160a01b0316816001600160a01b0316146110175760405162a1148160e81b815260040160405180910390fd5b5f82815260066020526040902080546110428187335b6001600160a01b039081169116811491141790565b61106d576110508633611b1f565b61106d57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661109457604051633a954ecd60e21b815260040160405180910390fd5b801561109e575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b8416900361112a57600184015f818152600460205260408120549003611128575f548114611128575f8181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03165f80516020612a3183398151915260405160405180910390a45b505050505050565b5f828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111d5575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f90612710906111f3906001600160601b0316876127ed565b6111fd9190612868565b91519350909150505b9250929050565b611215611c7f565b61121d611d4e565b6040514790339082156108fc029083905f818181858888f19350505050158015611249573d5f803e3d5ffd5b50506112556001600955565b565b610dcc83838360405180602001604052805f815250611856565b611279611c7f565b600e55565b611286611c7f565b600c610a1c82826128cb565b5f6109e982611e07565b600c8054610eb090612830565b5f6001600160a01b0382166112d1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b6112fe611c7f565b6112555f611e70565b61130f611c7f565b601555565b61131c611c7f565b6112555f600a55565b60605f805f611333856112a9565b90505f8167ffffffffffffffff81111561134f5761134f6125a1565b604051908082528060200260200182016040528015611378578160200160208202803683370190505b5090506113a4604080516080810182525f80825260208201819052918101829052606081019190915290565b60015b83861461141e576113b781611ec1565b915081604001516114165781516001600160a01b0316156113d757815194505b876001600160a01b0316856001600160a01b031603611416578083878060010198508151811061140957611409612987565b6020026020010181815250505b6001016113a7565b50909695505050505050565b611432611c7f565b601480549115156101000261ff0019909216919091179055565b606060038054610de090612830565b611463611d4e565b60145460ff16156114a75760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610a68565b3332146114ed5760405162461bcd60e51b81526020600482015260146024820152731093d514c8105c99481b9bdd08105b1b1bddd95960621b6044820152606401610a68565b6014546301000000900460ff166115465760405162461bcd60e51b815260206004820152601e60248201527f5075626c69632053616c65204861736e277420737461727465642079657400006044820152606401610a68565b6012548111156115985760405162461bcd60e51b815260206004820152601f60248201527f6d6178206d696e7420616d6f756e7420706572207478206578636565646564006044820152606401610a68565b601054816115ab6001545f54035f190190565b6115b591906127c7565b11156115ed5760405162461bcd60e51b815260206004820152600760248201526614dbdb191bdd5d60ca1b6044820152606401610a68565b601254335f9081526016602052604090205461160a9083906127c7565b11156116585760405162461bcd60e51b815260206004820152601b60248201527f4d6178204e4654205065722057616c6c657420657863656564656400000000006044820152606401610a68565b80600e5461166691906127ed565b3410156116855760405162461bcd60e51b8152600401610a6890612804565b335f90815260166020526040812080548392906116a39084906127c7565b909155506116b390503382611dbc565b6116bd6001600955565b50565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611733611d4e565b5f5b8181101561184b5761175e83838381811061175257611752612987565b90506020020135611dd5565b6117aa5760405162461bcd60e51b815260206004820152601d60248201527f4275726e696e6720666f72206e6f6e6578697374656e7420746f6b656e0000006044820152606401610a68565b336117cc8484848181106117c0576117c0612987565b90506020020135611292565b6001600160a01b0316146118225760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f74206f776e6572206f662074686973204e46540000006044820152606401610a68565b61184383838381811061183757611837612987565b90506020020135611f3e565b600101611735565b50610a1c6001600955565b611861848484610fda565b6001600160a01b0383163b1561189a5761187d84848484611f48565b61189a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6118a8611c7f565b601355565b6118b5611c7f565b6118bd611d4e565b5f6118c882856127ed565b9050601054816118dd6001545f54035f190190565b6118e791906127c7565b111561192e5760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610a68565b5f5b828110156119705761196884848381811061194d5761194d612987565b90506020020160208101906119629190612588565b86611dbc565b600101611930565b5050610dcc6001600955565b606061198782611dd5565b6119ec5760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610a68565b601454610100900460ff1615155f03611a8f57600d8054611a0c90612830565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3890612830565b8015611a835780601f10611a5a57610100808354040283529160200191611a83565b820191905f5260205f20905b815481529060010190602001808311611a6657829003601f168201915b50505050509050919050565b5f611a98612030565b90505f815111611ab65760405180602001604052805f815250611ae1565b80611ac08461203f565b604051602001611ad192919061299b565b6040516020818303038152906040525b9392505050565b6001600160a01b0381165f908152600560205260408082205467ffffffffffffffff911c166109e9565b611b1a611c7f565b601255565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b611b54611c7f565b600f55565b611b61611c7f565b600d610a1c82826128cb565b611b75611c7f565b6001600160a01b038116611b9e57604051631e4fbdf760e01b81525f6004820152602401610a68565b6116bd81611e70565b611baf611c7f565b6014805491151563010000000263ff00000019909216919091179055565b611bd5611c7f565b601155565b611be2611c7f565b60148054911515620100000262ff000019909216919091179055565b5f6301ffc9a760e01b6001600160e01b031983161480611c2e57506380ac58cd60e01b6001600160e01b03198316145b806109e95750506001600160e01b031916635b5e139f60e01b1490565b5f6001600160e01b0319821663152a902d60e11b14806109e957506301ffc9a760e01b6001600160e01b03198316146109e9565b6008546001600160a01b031633146112555760405163118cdaa760e01b8152336004820152602401610a68565b6127106001600160601b038216811015611ceb57604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401610a68565b6001600160a01b038316611d1457604051635b6cc80560e11b81525f6004820152602401610a68565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b600260095403611da05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a68565b6002600955565b5f82611db38584612082565b14949350505050565b610a1c828260405180602001604052805f8152506120c4565b5f81600111158015611de757505f5482105b80156109e95750505f90815260046020526040902054600160e01b161590565b5f8180600111611e57575f54811015611e57575f8181526004602052604081205490600160e01b82169003611e55575b805f03611ae157505f19015f81815260046020526040902054611e37565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604080516080810182525f8082526020820181905291810182905260608101919091525f828152600460205260409020546109e990604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6116bd815f61212d565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290611f7c9033908990889088906004016129d9565b6020604051808303815f875af1925050508015611fb6575060408051601f3d908101601f19168201909252611fb391810190612a15565b60015b612012573d808015611fe3576040519150601f19603f3d011682016040523d82523d5f602084013e611fe8565b606091505b5080515f0361200a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600c8054610de090612830565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806120585750819003601f19909101908152919050565b5f81815b84518110156120bc576120b2828683815181106120a5576120a5612987565b602002602001015161225a565b9150600101612086565b509392505050565b6120ce8383612283565b6001600160a01b0383163b15610dcc575f548281035b6120f65f868380600101945086611f48565b612113576040516368d2bf6b60e11b815260040160405180910390fd5b8181106120e457815f5414612126575f80fd5b5050505050565b5f61213783611e07565b9050805f80612153865f90815260066020526040902080549091565b9150915084156121935761216881843361102d565b612193576121768333611b1f565b61219357604051632ce44b5f60e11b815260040160405180910390fd5b801561219d575f82555b6001600160a01b0383165f81815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b175f87815260046020526040812091909155600160e11b8516900361222657600186015f818152600460205260408120549003612224575f548114612224575f8181526004602052604090208590555b505b60405186905f906001600160a01b038616905f80516020612a31833981519152908390a45050600180548101905550505050565b5f818310612274575f828152602084905260409020611ae1565b505f9182526020526040902090565b5f8054908290036122a75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083905f80516020612a318339815191528180a4600183015b81811461232d5780835f5f80516020612a318339815191525f80a460010161230a565b50815f0361234d57604051622e076360e81b815260040160405180910390fd5b5f5550505050565b6001600160e01b0319811681146116bd575f80fd5b5f6020828403121561237a575f80fd5b8135611ae181612355565b80358015158114612394575f80fd5b919050565b5f602082840312156123a9575f80fd5b611ae182612385565b80356001600160a01b0381168114612394575f80fd5b5f80604083850312156123d9575f80fd5b6123e2836123b2565b915060208301356001600160601b03811681146123fd575f80fd5b809150509250929050565b5f8083601f840112612418575f80fd5b50813567ffffffffffffffff81111561242f575f80fd5b6020830191508360208260051b8501011115611206575f80fd5b5f805f6040848603121561245b575f80fd5b83359250602084013567ffffffffffffffff811115612478575f80fd5b61248486828701612408565b9497909650939450505050565b5f5b838110156124ab578181015183820152602001612493565b50505f910152565b5f81518084526124ca816020860160208601612491565b601f01601f19169290920160200192915050565b602081525f611ae160208301846124b3565b5f60208284031215612500575f80fd5b5035919050565b5f8060408385031215612518575f80fd5b612521836123b2565b946020939093013593505050565b5f805f60608486031215612541575f80fd5b61254a846123b2565b9250612558602085016123b2565b9150604084013590509250925092565b5f8060408385031215612579575f80fd5b50508035926020909101359150565b5f60208284031215612598575f80fd5b611ae1826123b2565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff808411156125cf576125cf6125a1565b604051601f8501601f19908116603f011681019082821181831017156125f7576125f76125a1565b8160405280935085815286868601111561260f575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215612638575f80fd5b813567ffffffffffffffff81111561264e575f80fd5b8201601f8101841361265e575f80fd5b612028848235602084016125b5565b602080825282518282018190525f9190848201906040850190845b8181101561141e57835183529284019291840191600101612688565b5f80604083850312156126b5575f80fd5b6126be836123b2565b91506126cc60208401612385565b90509250929050565b5f80602083850312156126e6575f80fd5b823567ffffffffffffffff8111156126fc575f80fd5b61270885828601612408565b90969095509350505050565b5f805f8060808587031215612727575f80fd5b612730856123b2565b935061273e602086016123b2565b925060408501359150606085013567ffffffffffffffff811115612760575f80fd5b8501601f81018713612770575f80fd5b61277f878235602084016125b5565b91505092959194509250565b5f806040838503121561279c575f80fd5b6127a5836123b2565b91506126cc602084016123b2565b634e487b7160e01b5f52601160045260245ffd5b808201808211156109e9576109e96127b3565b818103818111156109e9576109e96127b3565b80820281158282048414176109e9576109e96127b3565b602080825260129082015271696e73756666696369656e742066756e647360701b604082015260600190565b600181811c9082168061284457607f821691505b60208210810361286257634e487b7160e01b5f52602260045260245ffd5b50919050565b5f8261288257634e487b7160e01b5f52601260045260245ffd5b500490565b601f821115610dcc57805f5260205f20601f840160051c810160208510156128ac5750805b601f840160051c820191505b81811015612126575f81556001016128b8565b815167ffffffffffffffff8111156128e5576128e56125a1565b6128f9816128f38454612830565b84612887565b602080601f83116001811461292c575f84156129155750858301515b5f19600386901b1c1916600185901b178555611159565b5f85815260208120601f198616915b8281101561295a5788860151825594840194600190910190840161293b565b508582101561297757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b5f83516129ac818460208801612491565b8351908301906129c0818360208801612491565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90612a0b908301846124b3565b9695505050505050565b5f60208284031215612a25575f80fd5b8151611ae18161235556feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205fa86b3ed6d0dd01541c0ada8df98ca363606a627e24b59fc249da8697f0b07e64736f6c63430008160033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000018d5ec84249246da448445f4a85423a5f888e88
Deployed Bytecode
0x60806040526004361061035a575f3560e01c806370a08231116101bd578063bde0608a116100f2578063f12f6d5d11610092578063f3257cdd1161006d578063f3257cdd14610948578063fd571e0914610967578063fea0e05814610986578063fff8d2fc146109a5575f80fd5b8063f12f6d5d146108eb578063f2c4ce1e1461090a578063f2fde38b14610929575f80fd5b8063d5abeb01116100cd578063d5abeb0114610879578063dc33e6811461088e578063e268e4d3146108ad578063e985e9c5146108cc575f80fd5b8063bde0608a1461081c578063bdf7a8e61461083b578063c87b56dd1461085a575f80fd5b8063940cd05b1161015d578063a22cb46511610138578063a22cb465146107b6578063b80f55c9146107d5578063b88d4fde146107f4578063bd7a199814610807575f80fd5b8063940cd05b1461077057806395d89b411461078f578063a0712d68146107a3575f80fd5b8063827852141161019857806382785214146106e85780638462151c146106fc5780638b14966b146107285780638da5cb5b14610753575f80fd5b806370a0823114610696578063715018a6146106b55780637cb64759146106c9575f80fd5b80632a55205a1161029357806351830227116102335780635c975abb1161020e5780635c975abb146106355780636352211e1461064e5780636c0360eb1461066d5780636c2d3c4f14610681575f80fd5b806351830227146105d957806355f804b3146105f75780635a7adf7f14610616575f80fd5b806333bc1c5c1161026e57806333bc1c5c1461057f5780633ccfd60b1461059f57806342842e0e146105a757806344a0d68a146105ba575f80fd5b80632a55205a146104fe5780632eb4a7ab1461053c57806331940f3f14610551575f80fd5b8063081c8c44116102fe57806313faede6116102d957806313faede61461049c578063149835a0146104b157806318160ddd146104d057806323b872dd146104eb575f80fd5b8063081c8c4414610460578063095ea7b3146104745780630fe8418b14610487575f80fd5b806302fa7c471161033957806302fa7c47146103d6578063036e4cb5146103f557806306fdde0314610408578063081812fc14610429575f80fd5b806277ec051461035e57806301ffc9a71461038657806302329a29146103b5575b5f80fd5b348015610369575f80fd5b5061037360135481565b6040519081526020015b60405180910390f35b348015610391575f80fd5b506103a56103a036600461236a565b6109d0565b604051901515815260200161037d565b3480156103c0575f80fd5b506103d46103cf366004612399565b6109ef565b005b3480156103e1575f80fd5b506103d46103f03660046123c8565b610a0a565b6103d4610403366004612449565b610a20565b348015610413575f80fd5b5061041c610dd1565b60405161037d91906124de565b348015610434575f80fd5b506104486104433660046124f0565b610e61565b6040516001600160a01b03909116815260200161037d565b34801561046b575f80fd5b5061041c610ea3565b6103d4610482366004612507565b610f2f565b348015610492575f80fd5b5061037360115481565b3480156104a7575f80fd5b50610373600e5481565b3480156104bc575f80fd5b506103d46104cb3660046124f0565b610fcd565b3480156104db575f80fd5b506103736001545f54035f190190565b6103d46104f936600461252f565b610fda565b348015610509575f80fd5b5061051d610518366004612568565b611161565b604080516001600160a01b03909316835260208301919091520161037d565b348015610547575f80fd5b5061037360155481565b34801561055c575f80fd5b506103a561056b366004612588565b60186020525f908152604090205460ff1681565b34801561058a575f80fd5b506014546103a5906301000000900460ff1681565b6103d461120d565b6103d46105b536600461252f565b611257565b3480156105c5575f80fd5b506103d46105d43660046124f0565b611271565b3480156105e4575f80fd5b506014546103a590610100900460ff1681565b348015610602575f80fd5b506103d4610611366004612628565b61127e565b348015610621575f80fd5b506014546103a59062010000900460ff1681565b348015610640575f80fd5b506014546103a59060ff1681565b348015610659575f80fd5b506104486106683660046124f0565b611292565b348015610678575f80fd5b5061041c61129c565b34801561068c575f80fd5b50610373600f5481565b3480156106a1575f80fd5b506103736106b0366004612588565b6112a9565b3480156106c0575f80fd5b506103d46112f6565b3480156106d4575f80fd5b506103d46106e33660046124f0565b611307565b3480156106f3575f80fd5b506103d4611314565b348015610707575f80fd5b5061071b610716366004612588565b611325565b60405161037d919061266d565b348015610733575f80fd5b50610373610742366004612588565b60176020525f908152604090205481565b34801561075e575f80fd5b506008546001600160a01b0316610448565b34801561077b575f80fd5b506103d461078a366004612399565b61142a565b34801561079a575f80fd5b5061041c61144c565b6103d46107b13660046124f0565b61145b565b3480156107c1575f80fd5b506103d46107d03660046126a4565b6116c0565b3480156107e0575f80fd5b506103d46107ef3660046126d5565b61172b565b6103d4610802366004612714565b611856565b348015610812575f80fd5b5061037360125481565b348015610827575f80fd5b506103d46108363660046124f0565b6118a0565b348015610846575f80fd5b506103d4610855366004612449565b6118ad565b348015610865575f80fd5b5061041c6108743660046124f0565b61197c565b348015610884575f80fd5b5061037360105481565b348015610899575f80fd5b506103736108a8366004612588565b611ae8565b3480156108b8575f80fd5b506103d46108c73660046124f0565b611b12565b3480156108d7575f80fd5b506103a56108e636600461278b565b611b1f565b3480156108f6575f80fd5b506103d46109053660046124f0565b611b4c565b348015610915575f80fd5b506103d4610924366004612628565b611b59565b348015610934575f80fd5b506103d4610943366004612588565b611b6d565b348015610953575f80fd5b506103d4610962366004612399565b611ba7565b348015610972575f80fd5b506103d46109813660046124f0565b611bcd565b348015610991575f80fd5b506103d46109a0366004612399565b611bda565b3480156109b0575f80fd5b506103736109bf366004612588565b60166020525f908152604090205481565b5f6109da82611bfe565b806109e957506109e982611c4b565b92915050565b6109f7611c7f565b6014805460ff1916911515919091179055565b610a12611c7f565b610a1c8282611cac565b5050565b610a28611d4e565b60145460ff1615610a715760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b60448201526064015b60405180910390fd5b60145462010000900460ff16610ac95760405162461bcd60e51b815260206004820152601a60248201527f50726573616c65204861736e27742073746172746564207965740000000000006044820152606401610a68565b333214610b0f5760405162461bcd60e51b81526020600482015260146024820152731093d514c8105c99481b9bdd08105b1b1bddd95960621b6044820152606401610a68565b610b838282808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250506015546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120611da7565b610bcf5760405162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f742057686974656c69737465640000000000000000006044820152606401610a68565b601354335f90815260176020526040902054610bec9085906127c7565b1115610c3a5760405162461bcd60e51b815260206004820152601b60248201527f4d6178204e4654205065722057616c6c657420657863656564656400000000006044820152606401610a68565b601354831115610c8c5760405162461bcd60e51b815260206004820152601860248201527f6d6178206d696e742070657220547820657863656564656400000000000000006044820152606401610a68565b60115483610c9f6001545f54035f190190565b610ca991906127c7565b1115610cf75760405162461bcd60e51b815260206004820152601c60248201527f57686974656c697374204d6178537570706c79206578636565646564000000006044820152606401610a68565b335f9081526018602052604090205460ff16610d67575f610d196001856127da565b905080600f54610d2991906127ed565b341015610d485760405162461bcd60e51b8152600401610a6890612804565b50335f908152601860205260409020805460ff19166001179055610d94565b82600f54610d7591906127ed565b341015610d945760405162461bcd60e51b8152600401610a6890612804565b335f9081526017602052604081208054859290610db29084906127c7565b90915550610dc290503384611dbc565b610dcc6001600955565b505050565b606060028054610de090612830565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0c90612830565b8015610e575780601f10610e2e57610100808354040283529160200191610e57565b820191905f5260205f20905b815481529060010190602001808311610e3a57829003601f168201915b5050505050905090565b5f610e6b82611dd5565b610e88576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b600d8054610eb090612830565b80601f0160208091040260200160405190810160405280929190818152602001828054610edc90612830565b8015610f275780601f10610efe57610100808354040283529160200191610f27565b820191905f5260205f20905b815481529060010190602001808311610f0a57829003601f168201915b505050505081565b5f610f3982611292565b9050336001600160a01b03821614610f7257610f558133611b1f565b610f72576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610fd5611c7f565b601055565b5f610fe482611e07565b9050836001600160a01b0316816001600160a01b0316146110175760405162a1148160e81b815260040160405180910390fd5b5f82815260066020526040902080546110428187335b6001600160a01b039081169116811491141790565b61106d576110508633611b1f565b61106d57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661109457604051633a954ecd60e21b815260040160405180910390fd5b801561109e575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b8416900361112a57600184015f818152600460205260408120549003611128575f548114611128575f8181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03165f80516020612a3183398151915260405160405180910390a45b505050505050565b5f828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111d5575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f90612710906111f3906001600160601b0316876127ed565b6111fd9190612868565b91519350909150505b9250929050565b611215611c7f565b61121d611d4e565b6040514790339082156108fc029083905f818181858888f19350505050158015611249573d5f803e3d5ffd5b50506112556001600955565b565b610dcc83838360405180602001604052805f815250611856565b611279611c7f565b600e55565b611286611c7f565b600c610a1c82826128cb565b5f6109e982611e07565b600c8054610eb090612830565b5f6001600160a01b0382166112d1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b6112fe611c7f565b6112555f611e70565b61130f611c7f565b601555565b61131c611c7f565b6112555f600a55565b60605f805f611333856112a9565b90505f8167ffffffffffffffff81111561134f5761134f6125a1565b604051908082528060200260200182016040528015611378578160200160208202803683370190505b5090506113a4604080516080810182525f80825260208201819052918101829052606081019190915290565b60015b83861461141e576113b781611ec1565b915081604001516114165781516001600160a01b0316156113d757815194505b876001600160a01b0316856001600160a01b031603611416578083878060010198508151811061140957611409612987565b6020026020010181815250505b6001016113a7565b50909695505050505050565b611432611c7f565b601480549115156101000261ff0019909216919091179055565b606060038054610de090612830565b611463611d4e565b60145460ff16156114a75760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610a68565b3332146114ed5760405162461bcd60e51b81526020600482015260146024820152731093d514c8105c99481b9bdd08105b1b1bddd95960621b6044820152606401610a68565b6014546301000000900460ff166115465760405162461bcd60e51b815260206004820152601e60248201527f5075626c69632053616c65204861736e277420737461727465642079657400006044820152606401610a68565b6012548111156115985760405162461bcd60e51b815260206004820152601f60248201527f6d6178206d696e7420616d6f756e7420706572207478206578636565646564006044820152606401610a68565b601054816115ab6001545f54035f190190565b6115b591906127c7565b11156115ed5760405162461bcd60e51b815260206004820152600760248201526614dbdb191bdd5d60ca1b6044820152606401610a68565b601254335f9081526016602052604090205461160a9083906127c7565b11156116585760405162461bcd60e51b815260206004820152601b60248201527f4d6178204e4654205065722057616c6c657420657863656564656400000000006044820152606401610a68565b80600e5461166691906127ed565b3410156116855760405162461bcd60e51b8152600401610a6890612804565b335f90815260166020526040812080548392906116a39084906127c7565b909155506116b390503382611dbc565b6116bd6001600955565b50565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611733611d4e565b5f5b8181101561184b5761175e83838381811061175257611752612987565b90506020020135611dd5565b6117aa5760405162461bcd60e51b815260206004820152601d60248201527f4275726e696e6720666f72206e6f6e6578697374656e7420746f6b656e0000006044820152606401610a68565b336117cc8484848181106117c0576117c0612987565b90506020020135611292565b6001600160a01b0316146118225760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f74206f776e6572206f662074686973204e46540000006044820152606401610a68565b61184383838381811061183757611837612987565b90506020020135611f3e565b600101611735565b50610a1c6001600955565b611861848484610fda565b6001600160a01b0383163b1561189a5761187d84848484611f48565b61189a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6118a8611c7f565b601355565b6118b5611c7f565b6118bd611d4e565b5f6118c882856127ed565b9050601054816118dd6001545f54035f190190565b6118e791906127c7565b111561192e5760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610a68565b5f5b828110156119705761196884848381811061194d5761194d612987565b90506020020160208101906119629190612588565b86611dbc565b600101611930565b5050610dcc6001600955565b606061198782611dd5565b6119ec5760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610a68565b601454610100900460ff1615155f03611a8f57600d8054611a0c90612830565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3890612830565b8015611a835780601f10611a5a57610100808354040283529160200191611a83565b820191905f5260205f20905b815481529060010190602001808311611a6657829003601f168201915b50505050509050919050565b5f611a98612030565b90505f815111611ab65760405180602001604052805f815250611ae1565b80611ac08461203f565b604051602001611ad192919061299b565b6040516020818303038152906040525b9392505050565b6001600160a01b0381165f908152600560205260408082205467ffffffffffffffff911c166109e9565b611b1a611c7f565b601255565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b611b54611c7f565b600f55565b611b61611c7f565b600d610a1c82826128cb565b611b75611c7f565b6001600160a01b038116611b9e57604051631e4fbdf760e01b81525f6004820152602401610a68565b6116bd81611e70565b611baf611c7f565b6014805491151563010000000263ff00000019909216919091179055565b611bd5611c7f565b601155565b611be2611c7f565b60148054911515620100000262ff000019909216919091179055565b5f6301ffc9a760e01b6001600160e01b031983161480611c2e57506380ac58cd60e01b6001600160e01b03198316145b806109e95750506001600160e01b031916635b5e139f60e01b1490565b5f6001600160e01b0319821663152a902d60e11b14806109e957506301ffc9a760e01b6001600160e01b03198316146109e9565b6008546001600160a01b031633146112555760405163118cdaa760e01b8152336004820152602401610a68565b6127106001600160601b038216811015611ceb57604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401610a68565b6001600160a01b038316611d1457604051635b6cc80560e11b81525f6004820152602401610a68565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b600260095403611da05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a68565b6002600955565b5f82611db38584612082565b14949350505050565b610a1c828260405180602001604052805f8152506120c4565b5f81600111158015611de757505f5482105b80156109e95750505f90815260046020526040902054600160e01b161590565b5f8180600111611e57575f54811015611e57575f8181526004602052604081205490600160e01b82169003611e55575b805f03611ae157505f19015f81815260046020526040902054611e37565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604080516080810182525f8082526020820181905291810182905260608101919091525f828152600460205260409020546109e990604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6116bd815f61212d565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290611f7c9033908990889088906004016129d9565b6020604051808303815f875af1925050508015611fb6575060408051601f3d908101601f19168201909252611fb391810190612a15565b60015b612012573d808015611fe3576040519150601f19603f3d011682016040523d82523d5f602084013e611fe8565b606091505b5080515f0361200a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600c8054610de090612830565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806120585750819003601f19909101908152919050565b5f81815b84518110156120bc576120b2828683815181106120a5576120a5612987565b602002602001015161225a565b9150600101612086565b509392505050565b6120ce8383612283565b6001600160a01b0383163b15610dcc575f548281035b6120f65f868380600101945086611f48565b612113576040516368d2bf6b60e11b815260040160405180910390fd5b8181106120e457815f5414612126575f80fd5b5050505050565b5f61213783611e07565b9050805f80612153865f90815260066020526040902080549091565b9150915084156121935761216881843361102d565b612193576121768333611b1f565b61219357604051632ce44b5f60e11b815260040160405180910390fd5b801561219d575f82555b6001600160a01b0383165f81815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b175f87815260046020526040812091909155600160e11b8516900361222657600186015f818152600460205260408120549003612224575f548114612224575f8181526004602052604090208590555b505b60405186905f906001600160a01b038616905f80516020612a31833981519152908390a45050600180548101905550505050565b5f818310612274575f828152602084905260409020611ae1565b505f9182526020526040902090565b5f8054908290036122a75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083905f80516020612a318339815191528180a4600183015b81811461232d5780835f5f80516020612a318339815191525f80a460010161230a565b50815f0361234d57604051622e076360e81b815260040160405180910390fd5b5f5550505050565b6001600160e01b0319811681146116bd575f80fd5b5f6020828403121561237a575f80fd5b8135611ae181612355565b80358015158114612394575f80fd5b919050565b5f602082840312156123a9575f80fd5b611ae182612385565b80356001600160a01b0381168114612394575f80fd5b5f80604083850312156123d9575f80fd5b6123e2836123b2565b915060208301356001600160601b03811681146123fd575f80fd5b809150509250929050565b5f8083601f840112612418575f80fd5b50813567ffffffffffffffff81111561242f575f80fd5b6020830191508360208260051b8501011115611206575f80fd5b5f805f6040848603121561245b575f80fd5b83359250602084013567ffffffffffffffff811115612478575f80fd5b61248486828701612408565b9497909650939450505050565b5f5b838110156124ab578181015183820152602001612493565b50505f910152565b5f81518084526124ca816020860160208601612491565b601f01601f19169290920160200192915050565b602081525f611ae160208301846124b3565b5f60208284031215612500575f80fd5b5035919050565b5f8060408385031215612518575f80fd5b612521836123b2565b946020939093013593505050565b5f805f60608486031215612541575f80fd5b61254a846123b2565b9250612558602085016123b2565b9150604084013590509250925092565b5f8060408385031215612579575f80fd5b50508035926020909101359150565b5f60208284031215612598575f80fd5b611ae1826123b2565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff808411156125cf576125cf6125a1565b604051601f8501601f19908116603f011681019082821181831017156125f7576125f76125a1565b8160405280935085815286868601111561260f575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215612638575f80fd5b813567ffffffffffffffff81111561264e575f80fd5b8201601f8101841361265e575f80fd5b612028848235602084016125b5565b602080825282518282018190525f9190848201906040850190845b8181101561141e57835183529284019291840191600101612688565b5f80604083850312156126b5575f80fd5b6126be836123b2565b91506126cc60208401612385565b90509250929050565b5f80602083850312156126e6575f80fd5b823567ffffffffffffffff8111156126fc575f80fd5b61270885828601612408565b90969095509350505050565b5f805f8060808587031215612727575f80fd5b612730856123b2565b935061273e602086016123b2565b925060408501359150606085013567ffffffffffffffff811115612760575f80fd5b8501601f81018713612770575f80fd5b61277f878235602084016125b5565b91505092959194509250565b5f806040838503121561279c575f80fd5b6127a5836123b2565b91506126cc602084016123b2565b634e487b7160e01b5f52601160045260245ffd5b808201808211156109e9576109e96127b3565b818103818111156109e9576109e96127b3565b80820281158282048414176109e9576109e96127b3565b602080825260129082015271696e73756666696369656e742066756e647360701b604082015260600190565b600181811c9082168061284457607f821691505b60208210810361286257634e487b7160e01b5f52602260045260245ffd5b50919050565b5f8261288257634e487b7160e01b5f52601260045260245ffd5b500490565b601f821115610dcc57805f5260205f20601f840160051c810160208510156128ac5750805b601f840160051c820191505b81811015612126575f81556001016128b8565b815167ffffffffffffffff8111156128e5576128e56125a1565b6128f9816128f38454612830565b84612887565b602080601f83116001811461292c575f84156129155750858301515b5f19600386901b1c1916600185901b178555611159565b5f85815260208120601f198616915b8281101561295a5788860151825594840194600190910190840161293b565b508582101561297757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b5f83516129ac818460208801612491565b8351908301906129c0818360208801612491565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90612a0b908301846124b3565b9695505050505050565b5f60208284031215612a25575f80fd5b8151611ae18161235556feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205fa86b3ed6d0dd01541c0ada8df98ca363606a627e24b59fc249da8697f0b07e64736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000018d5ec84249246da448445f4a85423a5f888e88
-----Decoded View---------------
Arg [0] : _owner (address): 0x018D5ec84249246Da448445F4A85423A5F888E88
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000018d5ec84249246da448445f4a85423a5f888e88
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.