Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 716 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Restore Ownershi... | 15054513 | 869 days ago | IN | 0 ETH | 0.00080183 | ||||
Withdraw Money | 15054485 | 869 days ago | IN | 0 ETH | 0.00078024 | ||||
Transfer Ownersh... | 15054463 | 869 days ago | IN | 0 ETH | 0.00065025 | ||||
Airdrop Mint | 15054416 | 869 days ago | IN | 0 ETH | 0.00859734 | ||||
Airdrop Mint | 15054388 | 869 days ago | IN | 0 ETH | 0.06119282 | ||||
Airdrop Mint | 15054193 | 869 days ago | IN | 0 ETH | 0.06868607 | ||||
Airdrop Mint | 15054090 | 869 days ago | IN | 0 ETH | 0.06868607 | ||||
Airdrop Mint | 15053983 | 869 days ago | IN | 0 ETH | 0.07925447 | ||||
Airdrop Mint | 15053778 | 869 days ago | IN | 0 ETH | 0.07950405 | ||||
Airdrop Mint | 15053693 | 869 days ago | IN | 0 ETH | 0.09312399 | ||||
Airdrop Mint | 15053668 | 869 days ago | IN | 0 ETH | 0.07631786 | ||||
Airdrop Mint | 15049337 | 870 days ago | IN | 0 ETH | 0.00523693 | ||||
Set Pre Sale Tim... | 15049136 | 870 days ago | IN | 0 ETH | 0.00134912 | ||||
Set Root | 15049129 | 870 days ago | IN | 0 ETH | 0.00143922 | ||||
Public Sale Mint | 15045081 | 871 days ago | IN | 0.045 ETH | 0.00348386 | ||||
Public Sale Mint | 15045019 | 871 days ago | IN | 0.045 ETH | 0.00193784 | ||||
Public Sale Mint | 15044927 | 871 days ago | IN | 0.135 ETH | 0.00841732 | ||||
Public Sale Mint | 15044489 | 871 days ago | IN | 0.225 ETH | 0.00551292 | ||||
Public Sale Mint | 15041035 | 872 days ago | IN | 0.045 ETH | 0.00522725 | ||||
Public Sale Mint | 15036196 | 872 days ago | IN | 0.045 ETH | 0.00653871 | ||||
Public Sale Mint | 15032682 | 873 days ago | IN | 0.135 ETH | 0.00457999 | ||||
Public Sale Mint | 15030180 | 874 days ago | IN | 0.09 ETH | 0.00933492 | ||||
Public Sale Mint | 15028264 | 874 days ago | IN | 0.045 ETH | 0.00285506 | ||||
Public Sale Mint | 15027268 | 874 days ago | IN | 0.09 ETH | 0.00249178 | ||||
Public Sale Mint | 15025980 | 874 days ago | IN | 0.045 ETH | 0.00354282 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15054485 | 869 days ago | 7.02 ETH |
Loading...
Loading
Contract Name:
MazkGangPostSale
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./MazkGang.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; /// @notice Gas optimized verification of proof of inclusion for a leaf in a Merkle tree. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/MerkleProof.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/MerkleProof.sol) library MerkleProof2 { function verify( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool isValid) { assembly { let computedHash := leaf // Initialize `data` to the offset of `proof` in the calldata. let data := proof.offset // Iterate over proof elements to compute root hash. for { // Left shift by 5 is equivalent to multiplying by 0x20. let end := add(data, shl(5, proof.length)) } lt(data, end) { data := add(data, 0x20) } { let loadedData := calldataload(data) // Slot of `computedHash` in scratch space. // If the condition is true: 0x20, otherwise: 0x00. let scratch := shl(5, gt(computedHash, loadedData)) // Store elements to hash contiguously in scratch space. // Scratch space is 64 bytes (0x00 - 0x3f) and both elements are 32 bytes. mstore(scratch, computedHash) mstore(xor(scratch, 0x20), loadedData) computedHash := keccak256(0x00, 0x40) } isValid := eq(computedHash, root) } } } contract MazkGangPostSale is Ownable, ReentrancyGuard, ERC721Holder { MazkGang public immutable mazk; bytes32 root; // Presale is free mint uint256 public preSaleStartTime; uint256 public preSaleEndTime; // Public sale has variable price uint256 public publicSaleStartTime; uint256 public publicSaleEndTime; uint256 public publicSalePrice = 0.05 ether; mapping(address => uint256) public numberMinted; constructor( MazkGang _mazk, uint256 _preSaleStartTime, uint256 _publicSaleStartTime, uint256 _preSaleEndTime, uint256 _publicSaleEndTime, bytes32 _root ) { mazk = _mazk; preSaleStartTime = _preSaleStartTime; preSaleEndTime = _preSaleEndTime; publicSaleStartTime = _publicSaleStartTime; publicSaleEndTime = _publicSaleEndTime; root = _root; } //for merkle tree function setRoot(bytes32 _root) public onlyOwner { root = _root; } function _mint(uint256 amount) internal { require(amount <= 100, "Hacker"); unchecked { uint256 supply = mazk.totalSupply(); if (amount <= 5) { mazk.lastDevMint(amount); for (uint256 j = 0; j < amount; ++j) { mazk.transferFrom(address(this), msg.sender, supply++); } } else { for (uint256 i = 0; i < amount; i += 5) { if (amount - i < 5) { mazk.lastDevMint(amount - i); for (uint256 j = 0; j < amount - i; ++j) { mazk.transferFrom(address(this), msg.sender, supply++); } } else { mazk.lastDevMint(5); // Loop unrolling mazk.transferFrom(address(this), msg.sender, supply++); mazk.transferFrom(address(this), msg.sender, supply++); mazk.transferFrom(address(this), msg.sender, supply++); mazk.transferFrom(address(this), msg.sender, supply++); mazk.transferFrom(address(this), msg.sender, supply++); } } } } } function airdropMint(uint256 maxAmount, uint256 amount, bytes32[] calldata proof) external nonReentrant { bytes32 leaf = keccak256(abi.encodePacked(msg.sender, maxAmount)); require(MerkleProof2.verify(proof, root, leaf), "Incorrect proof"); require(isPreSaleOn(), "Airdrop not active"); require( numberMinted[msg.sender] + amount <= maxAmount, "Limited" ); _mint(amount); numberMinted[msg.sender] += amount; } function publicSaleMint(uint256 amount) external payable nonReentrant { require(msg.sender == tx.origin, "Not EOA"); require(amount <= 5, "Limit 5"); require( isPublicSaleOn(), "public sale has not begun yet" ); refundIfOver(publicSalePrice * amount); _mint(amount); } function refundIfOver(uint256 price) private { require(msg.value >= price, "Need to send more ETH."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function isPreSaleOn() public view returns (bool) { return block.timestamp >= preSaleStartTime && block.timestamp < preSaleEndTime; } function isPublicSaleOn() public view returns (bool) { return block.timestamp >= publicSaleStartTime && block.timestamp < publicSaleEndTime; } //Just in case, we have to change. function setPreSaleTime(uint256 _start, uint256 _end) external onlyOwner { preSaleStartTime = _start; preSaleEndTime = _end; } //Just in case, we have to change. function setPublicSaleTime(uint256 _start, uint256 _end) external onlyOwner { publicSaleStartTime = _start; publicSaleEndTime = _end; } function setPublicSalePrice(uint256 price) external onlyOwner { publicSalePrice = price; } function restoreOwnership() external onlyOwner { mazk.transferOwnership(owner()); } function withdrawMoney(address to) external onlyOwner { (bool success, ) = payable(to).call{value: address(this).balance}(""); require(success, "Transfer failed."); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract MazkGang is Ownable, ERC721A, ReentrancyGuard { bytes32 root; uint256 public preSaleStartTime; uint256 public preSaleEndTime; uint256 public publicSaleStartTime; uint256 public publicSaleEndTime; uint256 public lastDevMintTime; uint256 public maxPerTxDuringMint; uint256 public amountForDevs; uint256 public allowlistPrice = 0.08 ether; uint256 public publicPrice = 0.15 ether; bool public usedDevMint = false; constructor( uint256 _preSaleStartTime, uint256 _publicSaleStartTime, uint256 _preSaleEndTime, uint256 _publicSaleEndTime, uint256 _lastDevMintTime, uint256 _maxBatchSize, uint256 _collectionSize, uint256 _amountForDevs ) ERC721A("MAZK GANG", "MAZK", _maxBatchSize, _collectionSize) { preSaleStartTime = _preSaleStartTime; preSaleEndTime = _preSaleEndTime; publicSaleStartTime = _publicSaleStartTime; publicSaleEndTime = _publicSaleEndTime; lastDevMintTime = _lastDevMintTime; amountForDevs = _amountForDevs; maxPerTxDuringMint = _maxBatchSize; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } //for merkle tree function setRoot(bytes32 _root) public onlyOwner { root = _root; } function allowlistMint(uint256 _amount, bytes32[] calldata _merkleProof) external payable callerIsUser { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, root, leaf), "Incorrect proof"); require(isPreSaleOn(), "allowlist sale has not begun yet/ already end"); require(totalSupply() + _amount <= collectionSize, "reached max supply"); require(_amount <= 2, "exceed presale batch limit"); require( numberMinted(msg.sender) + _amount <= 2, "can not mint over 2 MAZK for allowlistMint" ); refundIfOver(allowlistPrice * _amount); _safeMint(msg.sender, _amount); } function publicSaleMint(uint256 _amount) external payable callerIsUser { require( isPublicSaleOn(), "public sale has not begun yet" ); require(totalSupply() + _amount <= collectionSize, "reached max supply"); require( _amount <= maxPerTxDuringMint, "can not mint this many" ); refundIfOver(publicPrice * _amount); _safeMint(msg.sender, _amount); } function refundIfOver(uint256 price) private { require(msg.value >= price, "Need to send more ETH."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function isPreSaleOn() public view returns (bool) { return block.timestamp >= preSaleStartTime && block.timestamp < preSaleEndTime; } function isPublicSaleOn() public view returns (bool) { return block.timestamp >= publicSaleStartTime && block.timestamp < publicSaleEndTime; } //Just in case, we have to change. function setPreSaleTime(uint256 _start, uint256 _end) external onlyOwner { preSaleStartTime = _start; preSaleEndTime = _end; } //Just in case, we have to change. function setPublicSaleTime(uint256 _start, uint256 _end) external onlyOwner { publicSaleStartTime = _start; publicSaleEndTime = _end; } // For marketing etc. function devMint() external onlyOwner { require(usedDevMint != true, "can only use once"); require( amountForDevs % maxPerTxDuringMint == 0, "can only mint a multiple of the maxBatchSize" ); usedDevMint = true; uint256 numChunks = amountForDevs / maxPerTxDuringMint; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxPerTxDuringMint); } } //only incase MAZK doesn't sold out function lastDevMint(uint256 _amount) external onlyOwner { require(block.timestamp > lastDevMintTime); require(totalSupply() + _amount <= collectionSize, "reached max supply"); require( _amount <= maxPerTxDuringMint, "can not mint this many" ); _safeMint(msg.sender, _amount); } // // metadata URI string private _baseTokenURI; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function withdrawMoney() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function setOwnersExplicit(uint256 quantity) external onlyOwner nonReentrant { _setOwnersExplicit(quantity); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract MazkGang","name":"_mazk","type":"address"},{"internalType":"uint256","name":"_preSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_publicSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_preSaleEndTime","type":"uint256"},{"internalType":"uint256","name":"_publicSaleEndTime","type":"uint256"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isPreSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mazk","outputs":[{"internalType":"contract MazkGang","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"restoreOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"setPreSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"setPublicSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405266b1a2bc2ec5000060075534801561001b57600080fd5b5060405161160d38038061160d83398101604081905261003a916100bc565b6100433361006c565b600180556001600160a01b0390951660805260039390935560045560055560065560025561011b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060008060008060c087890312156100d557600080fd5b86516001600160a01b03811681146100ec57600080fd5b6020880151604089015160608a015160808b015160a0909b0151939c929b509099909850965090945092505050565b60805161148361018a6000396000818161022b0152818161074a01528181610abe01528181610b5e01528181610be901528181610c8f01528181610d1c01528181610dac01528181610e2a01528181610eaf01528181610f3401528181610fb9015261103e01526114836000f3fe60806040526004361061012a5760003560e01c8063791a2519116100ab578063cce29ea71161006f578063cce29ea71461032c578063cd4c16e214610342578063d4b2c67d14610357578063dab5f34014610377578063dc33e68114610397578063f2fde38b146103c457600080fd5b8063791a2519146102b05780638b90c31e146102d05780638da5cb5b146102e55780639b6860c814610303578063b3ab66b01461031957600080fd5b806354645d6a116100f257806354645d6a146101f9578063577218b71461021957806365fedeae146102655780636bb7b1d914610285578063715018a61461029b57600080fd5b806306d65af31461012f578063150b7a02146101585780631e4d185f1461019c5780632f971029146101b25780633f5e4741146101d4575b600080fd5b34801561013b57600080fd5b5061014560035481565b6040519081526020015b60405180910390f35b34801561016457600080fd5b506101836101733660046111bb565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161014f565b3480156101a857600080fd5b5061014560065481565b3480156101be57600080fd5b506101d26101cd366004611297565b6103e4565b005b3480156101e057600080fd5b506101e96104b1565b604051901515815260200161014f565b34801561020557600080fd5b506101d26102143660046112b9565b6104cb565b34801561022557600080fd5b5061024d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161014f565b34801561027157600080fd5b506101d26102803660046112db565b610500565b34801561029157600080fd5b5061014560055481565b3480156102a757600080fd5b506101d26106b9565b3480156102bc57600080fd5b506101d26102cb36600461135e565b6106ef565b3480156102dc57600080fd5b506101d261071e565b3480156102f157600080fd5b506000546001600160a01b031661024d565b34801561030f57600080fd5b5061014560075481565b6101d261032736600461135e565b6107e4565b34801561033857600080fd5b5061014560045481565b34801561034e57600080fd5b506101e9610929565b34801561036357600080fd5b506101d26103723660046112b9565b610941565b34801561038357600080fd5b506101d261039236600461135e565b610976565b3480156103a357600080fd5b506101456103b2366004611297565b60086020526000908152604090205481565b3480156103d057600080fd5b506101d26103df366004611297565b6109a5565b6000546001600160a01b031633146104175760405162461bcd60e51b815260040161040e90611377565b60405180910390fd5b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610464576040519150601f19603f3d011682016040523d82523d6000602084013e610469565b606091505b50509050806104ad5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161040e565b5050565b600060055442101580156104c6575060065442105b905090565b6000546001600160a01b031633146104f55760405162461bcd60e51b815260040161040e90611377565b600591909155600655565b6002600154036105525760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161040e565b60026001556040516bffffffffffffffffffffffff193360601b166020820152603481018590526000906054016040516020818303038152906040528051906020012090506105a5838360025484610a40565b6105e35760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10383937b7b360891b604482015260640161040e565b6105eb610929565b61062c5760405162461bcd60e51b815260206004820152601260248201527141697264726f70206e6f742061637469766560701b604482015260640161040e565b3360009081526008602052604090205485906106499086906113c2565b11156106815760405162461bcd60e51b8152602060048201526007602482015266131a5b5a5d195960ca1b604482015260640161040e565b61068a84610a80565b33600090815260086020526040812080548692906106a99084906113c2565b9091555050600180555050505050565b6000546001600160a01b031633146106e35760405162461bcd60e51b815260040161040e90611377565b6106ed60006110b2565b565b6000546001600160a01b031633146107195760405162461bcd60e51b815260040161040e90611377565b600755565b6000546001600160a01b031633146107485760405162461bcd60e51b815260040161040e90611377565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f2fde38b6107896000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156107ca57600080fd5b505af11580156107de573d6000803e3d6000fd5b50505050565b6002600154036108365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161040e565b60026001553332146108745760405162461bcd60e51b81526020600482015260076024820152664e6f7420454f4160c81b604482015260640161040e565b60058111156108af5760405162461bcd60e51b81526020600482015260076024820152664c696d6974203560c81b604482015260640161040e565b6108b76104b1565b6109035760405162461bcd60e51b815260206004820152601d60248201527f7075626c69632073616c6520686173206e6f7420626567756e20796574000000604482015260640161040e565b6109198160075461091491906113da565b611102565b61092281610a80565b5060018055565b600060035442101580156104c6575050600454421090565b6000546001600160a01b0316331461096b5760405162461bcd60e51b815260040161040e90611377565b600391909155600455565b6000546001600160a01b031633146109a05760405162461bcd60e51b815260040161040e90611377565b600255565b6000546001600160a01b031633146109cf5760405162461bcd60e51b815260040161040e90611377565b6001600160a01b038116610a345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161040e565b610a3d816110b2565b50565b600081858560051b81015b80821015610a7357813580841160051b93845260209384185260406000209290910190610a4b565b5050909214949350505050565b6064811115610aba5760405162461bcd60e51b81526020600482015260066024820152652430b1b5b2b960d11b604482015260640161040e565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3e91906113f9565b905060058211610c6257604051635718eb0960e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ae31d61290602401600060405180830381600087803b158015610baa57600080fd5b505af1158015610bbe573d6000803e3d6000fd5b5050505060005b82811015610c5d576040516323b872dd60e01b815260018301926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd91610c209130913391600401611412565b600060405180830381600087803b158015610c3a57600080fd5b505af1158015610c4e573d6000803e3d6000fd5b50505050806001019050610bc5565b505050565b60005b82811015610c5d5760058184031015610d9657604051635718eb0960e11b815281840360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ae31d61290602401600060405180830381600087803b158015610cdb57600080fd5b505af1158015610cef573d6000803e3d6000fd5b5050505060005b818403811015610d90576040516323b872dd60e01b815260018401936001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd91610d539130913391600401611412565b600060405180830381600087803b158015610d6d57600080fd5b505af1158015610d81573d6000803e3d6000fd5b50505050806001019050610cf6565b506110aa565b604051635718eb0960e11b8152600560048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ae31d61290602401600060405180830381600087803b158015610df857600080fd5b505af1158015610e0c573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001693506323b872dd9250610e639130913391600401611412565b600060405180830381600087803b158015610e7d57600080fd5b505af1158015610e91573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001693506323b872dd9250610ee89130913391600401611412565b600060405180830381600087803b158015610f0257600080fd5b505af1158015610f16573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001693506323b872dd9250610f6d9130913391600401611412565b600060405180830381600087803b158015610f8757600080fd5b505af1158015610f9b573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001693506323b872dd9250610ff29130913391600401611412565b600060405180830381600087803b15801561100c57600080fd5b505af1158015611020573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001693506323b872dd92506110779130913391600401611412565b600060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050505b600501610c65565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8034101561114b5760405162461bcd60e51b81526020600482015260166024820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b604482015260640161040e565b80341115610a3d57336108fc6111618334611436565b6040518115909202916000818181858888f193505050501580156104ad573d6000803e3d6000fd5b80356001600160a01b03811681146111a057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156111d157600080fd5b6111da85611189565b93506111e860208601611189565b925060408501359150606085013567ffffffffffffffff8082111561120c57600080fd5b818701915087601f83011261122057600080fd5b813581811115611232576112326111a5565b604051601f8201601f19908116603f0116810190838211818310171561125a5761125a6111a5565b816040528281528a602084870101111561127357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000602082840312156112a957600080fd5b6112b282611189565b9392505050565b600080604083850312156112cc57600080fd5b50508035926020909101359150565b600080600080606085870312156112f157600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561131757600080fd5b818701915087601f83011261132b57600080fd5b81358181111561133a57600080fd5b8860208260051b850101111561134f57600080fd5b95989497505060200194505050565b60006020828403121561137057600080fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156113d5576113d56113ac565b500190565b60008160001904831182151516156113f4576113f46113ac565b500290565b60006020828403121561140b57600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600082821015611448576114486113ac565b50039056fea264697066735822122028d2697a840fef0dc968180fb2717d66444dfa0f8f12d526733cd4b489932d2764736f6c634300080d0033000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b00000000000000000000000000000000000000000000000000000000062afb8800000000000000000000000000000000000000000000000000000000062b260300000000000000000000000000000000000000000000000000000000062b25b8000000000000000000000000000000000000000000000000000000003daf7c1e0c015e92cc9133e31fcc041601b8a9d014d6bee22db2ff8f2bd880f9022c9459d
Deployed Bytecode
0x60806040526004361061012a5760003560e01c8063791a2519116100ab578063cce29ea71161006f578063cce29ea71461032c578063cd4c16e214610342578063d4b2c67d14610357578063dab5f34014610377578063dc33e68114610397578063f2fde38b146103c457600080fd5b8063791a2519146102b05780638b90c31e146102d05780638da5cb5b146102e55780639b6860c814610303578063b3ab66b01461031957600080fd5b806354645d6a116100f257806354645d6a146101f9578063577218b71461021957806365fedeae146102655780636bb7b1d914610285578063715018a61461029b57600080fd5b806306d65af31461012f578063150b7a02146101585780631e4d185f1461019c5780632f971029146101b25780633f5e4741146101d4575b600080fd5b34801561013b57600080fd5b5061014560035481565b6040519081526020015b60405180910390f35b34801561016457600080fd5b506101836101733660046111bb565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161014f565b3480156101a857600080fd5b5061014560065481565b3480156101be57600080fd5b506101d26101cd366004611297565b6103e4565b005b3480156101e057600080fd5b506101e96104b1565b604051901515815260200161014f565b34801561020557600080fd5b506101d26102143660046112b9565b6104cb565b34801561022557600080fd5b5061024d7f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b081565b6040516001600160a01b03909116815260200161014f565b34801561027157600080fd5b506101d26102803660046112db565b610500565b34801561029157600080fd5b5061014560055481565b3480156102a757600080fd5b506101d26106b9565b3480156102bc57600080fd5b506101d26102cb36600461135e565b6106ef565b3480156102dc57600080fd5b506101d261071e565b3480156102f157600080fd5b506000546001600160a01b031661024d565b34801561030f57600080fd5b5061014560075481565b6101d261032736600461135e565b6107e4565b34801561033857600080fd5b5061014560045481565b34801561034e57600080fd5b506101e9610929565b34801561036357600080fd5b506101d26103723660046112b9565b610941565b34801561038357600080fd5b506101d261039236600461135e565b610976565b3480156103a357600080fd5b506101456103b2366004611297565b60086020526000908152604090205481565b3480156103d057600080fd5b506101d26103df366004611297565b6109a5565b6000546001600160a01b031633146104175760405162461bcd60e51b815260040161040e90611377565b60405180910390fd5b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610464576040519150601f19603f3d011682016040523d82523d6000602084013e610469565b606091505b50509050806104ad5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161040e565b5050565b600060055442101580156104c6575060065442105b905090565b6000546001600160a01b031633146104f55760405162461bcd60e51b815260040161040e90611377565b600591909155600655565b6002600154036105525760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161040e565b60026001556040516bffffffffffffffffffffffff193360601b166020820152603481018590526000906054016040516020818303038152906040528051906020012090506105a5838360025484610a40565b6105e35760405162461bcd60e51b815260206004820152600f60248201526e24b731b7b93932b1ba10383937b7b360891b604482015260640161040e565b6105eb610929565b61062c5760405162461bcd60e51b815260206004820152601260248201527141697264726f70206e6f742061637469766560701b604482015260640161040e565b3360009081526008602052604090205485906106499086906113c2565b11156106815760405162461bcd60e51b8152602060048201526007602482015266131a5b5a5d195960ca1b604482015260640161040e565b61068a84610a80565b33600090815260086020526040812080548692906106a99084906113c2565b9091555050600180555050505050565b6000546001600160a01b031633146106e35760405162461bcd60e51b815260040161040e90611377565b6106ed60006110b2565b565b6000546001600160a01b031633146107195760405162461bcd60e51b815260040161040e90611377565b600755565b6000546001600160a01b031633146107485760405162461bcd60e51b815260040161040e90611377565b7f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b06001600160a01b031663f2fde38b6107896000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156107ca57600080fd5b505af11580156107de573d6000803e3d6000fd5b50505050565b6002600154036108365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161040e565b60026001553332146108745760405162461bcd60e51b81526020600482015260076024820152664e6f7420454f4160c81b604482015260640161040e565b60058111156108af5760405162461bcd60e51b81526020600482015260076024820152664c696d6974203560c81b604482015260640161040e565b6108b76104b1565b6109035760405162461bcd60e51b815260206004820152601d60248201527f7075626c69632073616c6520686173206e6f7420626567756e20796574000000604482015260640161040e565b6109198160075461091491906113da565b611102565b61092281610a80565b5060018055565b600060035442101580156104c6575050600454421090565b6000546001600160a01b0316331461096b5760405162461bcd60e51b815260040161040e90611377565b600391909155600455565b6000546001600160a01b031633146109a05760405162461bcd60e51b815260040161040e90611377565b600255565b6000546001600160a01b031633146109cf5760405162461bcd60e51b815260040161040e90611377565b6001600160a01b038116610a345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161040e565b610a3d816110b2565b50565b600081858560051b81015b80821015610a7357813580841160051b93845260209384185260406000209290910190610a4b565b5050909214949350505050565b6064811115610aba5760405162461bcd60e51b81526020600482015260066024820152652430b1b5b2b960d11b604482015260640161040e565b60007f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b06001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3e91906113f9565b905060058211610c6257604051635718eb0960e11b8152600481018390527f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b06001600160a01b03169063ae31d61290602401600060405180830381600087803b158015610baa57600080fd5b505af1158015610bbe573d6000803e3d6000fd5b5050505060005b82811015610c5d576040516323b872dd60e01b815260018301926001600160a01b037f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b016916323b872dd91610c209130913391600401611412565b600060405180830381600087803b158015610c3a57600080fd5b505af1158015610c4e573d6000803e3d6000fd5b50505050806001019050610bc5565b505050565b60005b82811015610c5d5760058184031015610d9657604051635718eb0960e11b815281840360048201527f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b06001600160a01b03169063ae31d61290602401600060405180830381600087803b158015610cdb57600080fd5b505af1158015610cef573d6000803e3d6000fd5b5050505060005b818403811015610d90576040516323b872dd60e01b815260018401936001600160a01b037f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b016916323b872dd91610d539130913391600401611412565b600060405180830381600087803b158015610d6d57600080fd5b505af1158015610d81573d6000803e3d6000fd5b50505050806001019050610cf6565b506110aa565b604051635718eb0960e11b8152600560048201527f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b06001600160a01b03169063ae31d61290602401600060405180830381600087803b158015610df857600080fd5b505af1158015610e0c573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b01693506323b872dd9250610e639130913391600401611412565b600060405180830381600087803b158015610e7d57600080fd5b505af1158015610e91573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b01693506323b872dd9250610ee89130913391600401611412565b600060405180830381600087803b158015610f0257600080fd5b505af1158015610f16573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b01693506323b872dd9250610f6d9130913391600401611412565b600060405180830381600087803b158015610f8757600080fd5b505af1158015610f9b573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b01693506323b872dd9250610ff29130913391600401611412565b600060405180830381600087803b15801561100c57600080fd5b505af1158015611020573d6000803e3d6000fd5b50506040516323b872dd60e01b815260018501946001600160a01b037f000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b01693506323b872dd92506110779130913391600401611412565b600060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050505b600501610c65565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8034101561114b5760405162461bcd60e51b81526020600482015260166024820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b604482015260640161040e565b80341115610a3d57336108fc6111618334611436565b6040518115909202916000818181858888f193505050501580156104ad573d6000803e3d6000fd5b80356001600160a01b03811681146111a057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156111d157600080fd5b6111da85611189565b93506111e860208601611189565b925060408501359150606085013567ffffffffffffffff8082111561120c57600080fd5b818701915087601f83011261122057600080fd5b813581811115611232576112326111a5565b604051601f8201601f19908116603f0116810190838211818310171561125a5761125a6111a5565b816040528281528a602084870101111561127357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000602082840312156112a957600080fd5b6112b282611189565b9392505050565b600080604083850312156112cc57600080fd5b50508035926020909101359150565b600080600080606085870312156112f157600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561131757600080fd5b818701915087601f83011261132b57600080fd5b81358181111561133a57600080fd5b8860208260051b850101111561134f57600080fd5b95989497505060200194505050565b60006020828403121561137057600080fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156113d5576113d56113ac565b500190565b60008160001904831182151516156113f4576113f46113ac565b500290565b60006020828403121561140b57600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600082821015611448576114486113ac565b50039056fea264697066735822122028d2697a840fef0dc968180fb2717d66444dfa0f8f12d526733cd4b489932d2764736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b00000000000000000000000000000000000000000000000000000000062afb8800000000000000000000000000000000000000000000000000000000062b260300000000000000000000000000000000000000000000000000000000062b25b8000000000000000000000000000000000000000000000000000000003daf7c1e0c015e92cc9133e31fcc041601b8a9d014d6bee22db2ff8f2bd880f9022c9459d
-----Decoded View---------------
Arg [0] : _mazk (address): 0xfa3c785b3F9E6140a9D058976D85BBB9bdD704B0
Arg [1] : _preSaleStartTime (uint256): 1655683200
Arg [2] : _publicSaleStartTime (uint256): 1655857200
Arg [3] : _preSaleEndTime (uint256): 1655856000
Arg [4] : _publicSaleEndTime (uint256): 16558572000
Arg [5] : _root (bytes32): 0xc015e92cc9133e31fcc041601b8a9d014d6bee22db2ff8f2bd880f9022c9459d
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000fa3c785b3f9e6140a9d058976d85bbb9bdd704b0
Arg [1] : 0000000000000000000000000000000000000000000000000000000062afb880
Arg [2] : 0000000000000000000000000000000000000000000000000000000062b26030
Arg [3] : 0000000000000000000000000000000000000000000000000000000062b25b80
Arg [4] : 00000000000000000000000000000000000000000000000000000003daf7c1e0
Arg [5] : c015e92cc9133e31fcc041601b8a9d014d6bee22db2ff8f2bd880f9022c9459d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.