Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 CSTRNGRS
Holders
773
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CSTRNGRSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CollectiveStrangers
Compiler Version
v0.8.9+commit.e5eed63a
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 "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract CollectiveStrangers is ERC721, IERC2981, Ownable { using Strings for uint256; struct TokenDetails { uint256 state; uint256 transferAllowTime; } uint256 public counter; uint8 private constant STATE_ONE = 0; uint8 private constant STATE_TWO = 1; uint8 private constant STATE_THREE = 2; string[3] private imageURI; string[3] private animationURI; uint256 private globalState; uint256 private round; mapping(uint256 => mapping(uint256 => TokenDetails)) private tokenDetails; // round => tokenId => TokenDetails // These could both be constants or immutable if we are comfortable with that uint256 public maxTokensPerWallet = 2; uint256 public maxTokens; uint256 public constant COMMUNITY_SALE_PRICE = 0.05 ether; uint256 public maxCommunitySaleTokens; bytes32 public communitySaleMerkleRoot; bool public isCommunitySaleActive; uint256 public maxGiftedTokens; uint256 public numGiftedTokens; bytes32 public claimListMerkleRoot; bool public isClaimActive; address public redeemerAddress; mapping(address => uint256) public tokenCount; mapping(address => bool) public claimed; // ============ ACCESS CONTROL/SANITY MODIFIERS ============ modifier isEOA() { require(msg.sender == tx.origin, "Caller is not an EOA"); _; } modifier communitySaleActive() { require(isCommunitySaleActive, "Community sale is not open"); _; } modifier claimActive() { require(isClaimActive, "Token claim is not open"); _; } modifier maxTokensPerWalletCheck(uint256 numberOfTokens) { require( tokenCount[msg.sender] + numberOfTokens <= maxTokensPerWallet, "Too many tokens minted" ); _; } modifier canMintTokens(uint256 numberOfTokens) { require( counter + numberOfTokens <= maxTokens - maxGiftedTokens + numGiftedTokens, "Not enough tokens remaining to mint" ); _; } modifier canGiftTokens(uint256 numberOfTokens) { require( numGiftedTokens + numberOfTokens <= maxGiftedTokens, "Not enough tokens remaining to gift" ); _; } modifier isCorrectPayment(uint256 price, uint256 numberOfTokens) { require( price * numberOfTokens <= msg.value, "Incorrect ETH value sent" ); _; } modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address does not exist in list" ); _; } constructor( uint256 _maxTokens, uint256 _maxCommunitySaleTokens, uint256 _maxGiftedTokens ) ERC721("Collective Strangers", "CSTRNGRS") Ownable() { maxTokens = _maxTokens; maxCommunitySaleTokens = _maxCommunitySaleTokens; maxGiftedTokens = _maxGiftedTokens; } /** * @dev Required to receive royalty payments to the smart contract */ receive() external payable {} // ============ PUBLIC FUNCTIONS FOR MINTING ============ function mintCommunitySale( uint8 numberOfTokens, bytes32[] calldata merkleProof ) external payable communitySaleActive canMintTokens(numberOfTokens) isCorrectPayment(COMMUNITY_SALE_PRICE, numberOfTokens) isValidMerkleProof(merkleProof, communitySaleMerkleRoot) maxTokensPerWalletCheck(numberOfTokens) isEOA { tokenCount[msg.sender] += numberOfTokens; for (uint256 i; i < numberOfTokens; i++) { counter++; _mint(msg.sender, counter); } } function claim(bytes32[] calldata merkleProof) external claimActive canGiftTokens(1) isValidMerkleProof(merkleProof, claimListMerkleRoot) maxTokensPerWalletCheck(1) isEOA { require(!claimed[msg.sender], "Token already claimed by this wallet"); tokenCount[msg.sender] += 1; claimed[msg.sender] = true; numGiftedTokens += 1; counter++; _mint(msg.sender, counter); } // ============ OWNER-ONLY ADMIN FUNCTIONS ============ function setMaxTokensPerWallet(uint256 _maxTokensPerWallet) external onlyOwner { maxTokensPerWallet = _maxTokensPerWallet; } function setMaxGiftedTokens(uint256 _maxGiftedTokens) external onlyOwner { maxGiftedTokens = _maxGiftedTokens; } function setIsCommunitySaleActive(bool _isCommunitySaleActive) external onlyOwner { isCommunitySaleActive = _isCommunitySaleActive; } function setCommunityListMerkleRoot(bytes32 merkleRoot) external onlyOwner { communitySaleMerkleRoot = merkleRoot; } function setIsClaimActive(bool _isClaimActive) external onlyOwner { isClaimActive = _isClaimActive; } function setClaimListMerkleRoot(bytes32 merkleRoot) external onlyOwner { claimListMerkleRoot = merkleRoot; } function reserveForGifting(uint256 numToReserve) external onlyOwner canGiftTokens(numToReserve) { numGiftedTokens += numToReserve; for (uint256 i; i < numToReserve; i++) { counter++; _mint(msg.sender, counter); } } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawTokens(IERC20 token) external onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } function setGlobalState(uint256 _state) external onlyOwner { require( _state == 0 || _state == 1 || _state == 2, "Pass a _state that's either 0 or 1 or 2" ); globalState = _state; } function setRound(uint256 _round) external onlyOwner { round = _round; } function setImageURI( string calldata uriOne, string calldata uriTwo, string calldata uriThree ) external onlyOwner { imageURI[0] = uriOne; imageURI[1] = uriTwo; imageURI[2] = uriThree; } function setAnimationURI( string calldata uriOne, string calldata uriTwo, string calldata uriThree ) external onlyOwner { animationURI[0] = uriOne; animationURI[1] = uriTwo; animationURI[2] = uriThree; } function setRedeemerAddress(address _addr) external onlyOwner { redeemerAddress = _addr; } function redeemAsMintPass(uint256 _tokenId) external returns (bool) { require( msg.sender == redeemerAddress, "Caller is not redeemer address" ); require(globalState == 1, "Global state has not been set to 1"); require(_exists(_tokenId), "Calling for non-existent token"); require( tokenDetails[round][_tokenId].state != 2, "Token already redeemed" ); tokenDetails[round][_tokenId].state = 2; tokenDetails[round][_tokenId].transferAllowTime = block.timestamp + 48 * 3600; return true; } // ============ PUBLIC READ-ONLY FUNCTIONS ============ // ============ FUNCTION OVERRIDES ============ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "Nonexistent token"); TokenDetails memory token = tokenDetails[round][tokenId]; string memory image; string memory animation; string memory used = "No"; if (globalState == STATE_ONE) { image = imageURI[0]; animation = animationURI[0]; } else if (globalState == STATE_THREE) { image = imageURI[2]; animation = animationURI[2]; if (token.state == STATE_THREE) { used = "Yes"; } } else { if (token.state == STATE_THREE) { image = imageURI[2]; animation = animationURI[2]; used = "Yes"; } else { image = imageURI[1]; animation = animationURI[1]; } } return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"name": "Collective Strangers #', tokenId.toString(), '", ', unicode'"description": "The Collective is a members only group of 3,500 strangers, photographers, and those passionate about the stories a photo can tell. The Collective Strangers membership pass acts as your entry to our diverse community, access to member benefits, and our ever evolving product pipeline. Smile 📸",', '"attributes": [{"trait_type": "Used as Mint Pass", "value": "', used, '"}], ', '"image": "', image, '", ', '"animation_url": "', animation, '"}' ) ) ) ) ); } /** * @dev See {IERC165-royaltyInfo}. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), "Nonexistent token"); return (address(this), (salePrice * 5) / 100); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { TokenDetails memory token = tokenDetails[round][tokenId]; require( block.timestamp > token.transferAllowTime, "Token has been used as a mint pass within the past 48 hours" ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../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. * * _Available since v4.5._ */ 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 v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// 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.5.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// 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 // 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 (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"},{"internalType":"uint256","name":"_maxCommunitySaleTokens","type":"uint256"},{"internalType":"uint256","name":"_maxGiftedTokens","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"COMMUNITY_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communitySaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"isClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCommunitySaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCommunitySaleTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxGiftedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfTokens","type":"uint8"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintCommunitySale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numGiftedTokens","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":"uint256","name":"_tokenId","type":"uint256"}],"name":"redeemAsMintPass","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numToReserve","type":"uint256"}],"name":"reserveForGifting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uriOne","type":"string"},{"internalType":"string","name":"uriTwo","type":"string"},{"internalType":"string","name":"uriThree","type":"string"}],"name":"setAnimationURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setClaimListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setCommunityListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_state","type":"uint256"}],"name":"setGlobalState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uriOne","type":"string"},{"internalType":"string","name":"uriTwo","type":"string"},{"internalType":"string","name":"uriThree","type":"string"}],"name":"setImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isClaimActive","type":"bool"}],"name":"setIsClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isCommunitySaleActive","type":"bool"}],"name":"setIsCommunitySaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxGiftedTokens","type":"uint256"}],"name":"setMaxGiftedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokensPerWallet","type":"uint256"}],"name":"setMaxTokensPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setRedeemerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_round","type":"uint256"}],"name":"setRound","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":"address","name":"","type":"address"}],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405260026011553480156200001657600080fd5b50604051620039ac380380620039ac8339810160408190526200003991620001df565b604080518082018252601481527f436f6c6c65637469766520537472616e67657273000000000000000000000000602080830191825283518085019094526008845267435354524e47525360c01b9084015281519192916200009e9160009162000139565b508051620000b490600190602084019062000139565b505050620000d1620000cb620000e360201b60201c565b620000e7565b6012929092556013556016556200024b565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000147906200020e565b90600052602060002090601f0160209004810192826200016b5760008555620001b6565b82601f106200018657805160ff1916838001178555620001b6565b82800160010185558215620001b6579182015b82811115620001b657825182559160200191906001019062000199565b50620001c4929150620001c8565b5090565b5b80821115620001c45760008155600101620001c9565b600080600060608486031215620001f557600080fd5b8351925060208401519150604084015190509250925092565b600181811c908216806200022357607f821691505b602082108114156200024557634e487b7160e01b600052602260045260246000fd5b50919050565b613751806200025b6000396000f3fe6080604052600436106102975760003560e01c806370a082311161015a578063b391c508116100c1578063e10c605f1161007a578063e10c605f146107ec578063e83157421461080c578063e985e9c514610822578063eb4883ab1461086b578063f2fde38b14610885578063fc566c3c146108a557600080fd5b8063b391c50814610721578063b88d4fde14610741578063bec9510714610761578063c87b56dd1461077c578063c884ef831461079c578063defe1141146107cc57600080fd5b806395d89b411161011357806395d89b41146106765780639b624e7b1461068b5780639eb00974146106ab578063a22cb465146106c1578063a2af0419146106e1578063aac5d69f1461070157600080fd5b806370a08231146105e0578063715018a61461060057806374d56382146106155780637fc278031461062b5780638da5cb5b146106455780638e4f86921461066357600080fd5b806323b872dd116101fe57806349c33981116101b757806349c339811461052757806349df728c1461053d57806356225a091461055d57806361bc221a1461058a5780636352211e146105a05780636c3a9b4a146105c057600080fd5b806323b872dd146104595780632a55205a14610479578063326f9ad3146104b85780633ccfd60b146104dc57806342842e0e146104f1578063469132ce1461051157600080fd5b80630d3cf1f2116102505780630d3cf1f2146103945780631157b834146103b457806315853c11146103d957806315bdebe2146103f957806317075f41146104195780631ba991bb1461043957600080fd5b806301ffc9a7146102a35780630328f818146102d85780630661723f146102fa57806306fdde031461031a578063081812fc1461033c578063095ea7b31461037457600080fd5b3661029e57005b600080fd5b3480156102af57600080fd5b506102c36102be366004612c5d565b6108bb565b60405190151581526020015b60405180910390f35b3480156102e457600080fd5b506102f86102f3366004612c81565b6108e6565b005b34801561030657600080fd5b506102f8610315366004612cdc565b610992565b34801561032657600080fd5b5061032f6109f2565b6040516102cf9190612dce565b34801561034857600080fd5b5061035c610357366004612c81565b610a84565b6040516001600160a01b0390911681526020016102cf565b34801561038057600080fd5b506102f861038f366004612df6565b610b0c565b3480156103a057600080fd5b506102f86103af366004612e30565b610c22565b3480156103c057600080fd5b5060195461035c9061010090046001600160a01b031681565b3480156103e557600080fd5b506102f86103f4366004612c81565b610c5f565b34801561040557600080fd5b506102f8610414366004612c81565b610c8e565b34801561042557600080fd5b506102f8610434366004612cdc565b610cbd565b34801561044557600080fd5b506102c3610454366004612c81565b610d0c565b34801561046557600080fd5b506102f8610474366004612e4d565b610ede565b34801561048557600080fd5b50610499610494366004612e8e565b610f0f565b604080516001600160a01b0390931683526020830191909152016102cf565b3480156104c457600080fd5b506104ce60185481565b6040519081526020016102cf565b3480156104e857600080fd5b506102f8610f7f565b3480156104fd57600080fd5b506102f861050c366004612e4d565b610fdc565b34801561051d57600080fd5b506104ce60115481565b34801561053357600080fd5b506104ce60175481565b34801561054957600080fd5b506102f8610558366004612eb0565b610ff7565b34801561056957600080fd5b506104ce610578366004612eb0565b601a6020526000908152604090205481565b34801561059657600080fd5b506104ce60075481565b3480156105ac57600080fd5b5061035c6105bb366004612c81565b61111e565b3480156105cc57600080fd5b506102f86105db366004612c81565b611195565b3480156105ec57600080fd5b506104ce6105fb366004612eb0565b611245565b34801561060c57600080fd5b506102f86112cc565b34801561062157600080fd5b506104ce60135481565b34801561063757600080fd5b506019546102c39060ff1681565b34801561065157600080fd5b506006546001600160a01b031661035c565b6102f8610671366004612f12565b611302565b34801561068257600080fd5b5061032f61162d565b34801561069757600080fd5b506102f86106a6366004612c81565b61163c565b3480156106b757600080fd5b506104ce60145481565b3480156106cd57600080fd5b506102f86106dc366004612f6d565b61166b565b3480156106ed57600080fd5b506102f86106fc366004612eb0565b611676565b34801561070d57600080fd5b506102f861071c366004612c81565b6116c8565b34801561072d57600080fd5b506102f861073c366004612fa6565b6116f7565b34801561074d57600080fd5b506102f861075c366004612ffe565b6119bd565b34801561076d57600080fd5b506104ce66b1a2bc2ec5000081565b34801561078857600080fd5b5061032f610797366004612c81565b6119f5565b3480156107a857600080fd5b506102c36107b7366004612eb0565b601b6020526000908152604090205460ff1681565b3480156107d857600080fd5b506102f86107e7366004612e30565b612018565b3480156107f857600080fd5b506102f8610807366004612c81565b612055565b34801561081857600080fd5b506104ce60125481565b34801561082e57600080fd5b506102c361083d3660046130de565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561087757600080fd5b506015546102c39060ff1681565b34801561089157600080fd5b506102f86108a0366004612eb0565b612084565b3480156108b157600080fd5b506104ce60165481565b60006001600160e01b0319821663152a902d60e11b14806108e057506108e08261211f565b92915050565b6006546001600160a01b031633146109195760405162461bcd60e51b81526004016109109061310c565b60405180910390fd5b8015806109265750806001145b806109315750806002145b61098d5760405162461bcd60e51b815260206004820152602760248201527f506173732061205f737461746520746861742773206569746865722030206f7260448201526610189037b9101960c91b6064820152608401610910565b600e55565b6006546001600160a01b031633146109bc5760405162461bcd60e51b81526004016109109061310c565b6109c860088787612bae565b506109d560098585612bae565b508181600860025b6109e993910191612bae565b50505050505050565b606060008054610a0190613157565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2d90613157565b8015610a7a5780601f10610a4f57610100808354040283529160200191610a7a565b820191906000526020600020905b815481529060010190602001808311610a5d57829003601f168201915b5050505050905090565b6000610a8f8261216f565b610af05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610910565b506000908152600460205260409020546001600160a01b031690565b6000610b178261111e565b9050806001600160a01b0316836001600160a01b03161415610b855760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610910565b336001600160a01b0382161480610ba15750610ba1813361083d565b610c135760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610910565b610c1d838361218c565b505050565b6006546001600160a01b03163314610c4c5760405162461bcd60e51b81526004016109109061310c565b6015805460ff1916911515919091179055565b6006546001600160a01b03163314610c895760405162461bcd60e51b81526004016109109061310c565b601655565b6006546001600160a01b03163314610cb85760405162461bcd60e51b81526004016109109061310c565b601855565b6006546001600160a01b03163314610ce75760405162461bcd60e51b81526004016109109061310c565b610cf3600b8787612bae565b50610d00600c8585612bae565b508181600b60026109dd565b60195460009061010090046001600160a01b03163314610d6e5760405162461bcd60e51b815260206004820152601e60248201527f43616c6c6572206973206e6f742072656465656d6572206164647265737300006044820152606401610910565b600e54600114610dcb5760405162461bcd60e51b815260206004820152602260248201527f476c6f62616c20737461746520686173206e6f74206265656e2073657420746f604482015261203160f01b6064820152608401610910565b610dd48261216f565b610e205760405162461bcd60e51b815260206004820152601e60248201527f43616c6c696e6720666f72206e6f6e2d6578697374656e7420746f6b656e00006044820152606401610910565b600f54600090815260106020908152604080832085845290915290205460021415610e865760405162461bcd60e51b8152602060048201526016602482015275151bdad95b88185b1c9958591e481c995919595b595960521b6044820152606401610910565b600f546000908152601060209081526040808320858452909152902060029055610eb3426202a3006131a8565b600f546000908152601060209081526040808320958352949052929092206001908101929092555090565b610ee833826121fa565b610f045760405162461bcd60e51b8152600401610910906131c0565b610c1d8383836122e4565b600080610f1b8461216f565b610f5b5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610910565b306064610f69856005613211565b610f739190613246565b915091505b9250929050565b6006546001600160a01b03163314610fa95760405162461bcd60e51b81526004016109109061310c565b6040514790339082156108fc029083906000818181858888f19350505050158015610fd8573d6000803e3d6000fd5b5050565b610c1d838383604051806020016040528060008152506119bd565b6006546001600160a01b031633146110215760405162461bcd60e51b81526004016109109061310c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561106357600080fd5b505afa158015611077573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109b919061325a565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156110e657600080fd5b505af11580156110fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1d9190613273565b6000818152600260205260408120546001600160a01b0316806108e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610910565b6006546001600160a01b031633146111bf5760405162461bcd60e51b81526004016109109061310c565b80601654816017546111d191906131a8565b11156111ef5760405162461bcd60e51b815260040161091090613290565b816017600082825461120191906131a8565b90915550600090505b82811015610c1d5760078054906000611222836132d3565b91905055506112333360075461248b565b8061123d816132d3565b91505061120a565b60006001600160a01b0382166112b05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610910565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146112f65760405162461bcd60e51b81526004016109109061310c565b61130060006125ca565b565b60155460ff166113545760405162461bcd60e51b815260206004820152601a60248201527f436f6d6d756e6974792073616c65206973206e6f74206f70656e0000000000006044820152606401610910565b8260ff1660175460165460125461136b91906132ee565b61137591906131a8565b8160075461138391906131a8565b11156113dd5760405162461bcd60e51b815260206004820152602360248201527f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f206d6044820152621a5b9d60ea1b6064820152608401610910565b66b1a2bc2ec5000060ff8516346113f48284613211565b11156114425760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610910565b84846014546114ba838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190505b6040516020818303038152906040528051906020012061261c565b6115065760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c69737400006044820152606401610910565b601154336000908152601a602052604090205460ff8b16919061152a9083906131a8565b11156115715760405162461bcd60e51b8152602060048201526016602482015275151bdbc81b585b9e481d1bdad95b9cc81b5a5b9d195960521b6044820152606401610910565b3332146115b75760405162461bcd60e51b815260206004820152601460248201527343616c6c6572206973206e6f7420616e20454f4160601b6044820152606401610910565b336000908152601a60205260408120805460ff8d1692906115d99084906131a8565b90915550600090505b8a60ff1681101561162057600780549060006115fd836132d3565b919050555061160e3360075461248b565b80611618816132d3565b9150506115e2565b5050505050505050505050565b606060018054610a0190613157565b6006546001600160a01b031633146116665760405162461bcd60e51b81526004016109109061310c565b600f55565b610fd8338383612632565b6006546001600160a01b031633146116a05760405162461bcd60e51b81526004016109109061310c565b601980546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6006546001600160a01b031633146116f25760405162461bcd60e51b81526004016109109061310c565b601155565b60195460ff166117495760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20636c61696d206973206e6f74206f70656e0000000000000000006044820152606401610910565b60016016548160175461175c91906131a8565b111561177a5760405162461bcd60e51b815260040161091090613290565b82826018546117db838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b166020820152859250603401905061149f565b6118275760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c69737400006044820152606401610910565b601154336000908152601a6020526040902054600191906118499083906131a8565b11156118905760405162461bcd60e51b8152602060048201526016602482015275151bdbc81b585b9e481d1bdad95b9cc81b5a5b9d195960521b6044820152606401610910565b3332146118d65760405162461bcd60e51b815260206004820152601460248201527343616c6c6572206973206e6f7420616e20454f4160601b6044820152606401610910565b336000908152601b602052604090205460ff16156119425760405162461bcd60e51b8152602060048201526024808201527f546f6b656e20616c726561647920636c61696d656420627920746869732077616044820152631b1b195d60e21b6064820152608401610910565b336000908152601a602052604081208054600192906119629084906131a8565b9091555050336000908152601b60205260408120805460ff1916600190811790915560178054919290916119979084906131a8565b9091555050600780549060006119ac836132d3565b91905055506109e93360075461248b565b6119c733836121fa565b6119e35760405162461bcd60e51b8152600401610910906131c0565b6119ef84848484612701565b50505050565b6060611a008261216f565b611a405760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610910565b600f546000908152601060209081526040808320858452825291829020825180840184528154815260019091015481830152825180840190935260028352614e6f60f01b91830191909152600e549091606091829190611bcc5760088054611aa790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad390613157565b8015611b205780601f10611af557610100808354040283529160200191611b20565b820191906000526020600020905b815481529060010190602001808311611b0357829003601f168201915b50505050509250600b600060038110611b3b57611b3b613141565b018054611b4790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611b7390613157565b8015611bc05780601f10611b9557610100808354040283529160200191611bc0565b820191906000526020600020905b815481529060010190602001808311611ba357829003601f168201915b50505050509150611fb8565b600e5460021415611d3057600a8054611be490613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1090613157565b8015611c5d5780601f10611c3257610100808354040283529160200191611c5d565b820191906000526020600020905b815481529060010190602001808311611c4057829003601f168201915b50505050509250600b600260038110611c7857611c78613141565b018054611c8490613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb090613157565b8015611cfd5780601f10611cd257610100808354040283529160200191611cfd565b820191906000526020600020905b815481529060010190602001808311611ce057829003601f168201915b5050875193955050505060021415611d2b575060408051808201909152600381526259657360e81b60208201525b611fb8565b835160021415611e8a57600a8054611d4790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7390613157565b8015611dc05780601f10611d9557610100808354040283529160200191611dc0565b820191906000526020600020905b815481529060010190602001808311611da357829003601f168201915b50505050509250600b600260038110611ddb57611ddb613141565b018054611de790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1390613157565b8015611e605780601f10611e3557610100808354040283529160200191611e60565b820191906000526020600020905b815481529060010190602001808311611e4357829003601f168201915b505050505091506040518060400160405280600381526020016259657360e81b8152509050611fb8565b60098054611e9790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611ec390613157565b8015611f105780601f10611ee557610100808354040283529160200191611f10565b820191906000526020600020905b815481529060010190602001808311611ef357829003601f168201915b50505050509250600b600160038110611f2b57611f2b613141565b018054611f3790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6390613157565b8015611fb05780601f10611f8557610100808354040283529160200191611fb0565b820191906000526020600020905b815481529060010190602001808311611f9357829003601f168201915b505050505091505b611fee611fc487612734565b828585604051602001611fda9493929190613321565b604051602081830303815290604052612832565b604051602001611ffe91906135d6565b604051602081830303815290604052945050505050919050565b6006546001600160a01b031633146120425760405162461bcd60e51b81526004016109109061310c565b6019805460ff1916911515919091179055565b6006546001600160a01b0316331461207f5760405162461bcd60e51b81526004016109109061310c565b601455565b6006546001600160a01b031633146120ae5760405162461bcd60e51b81526004016109109061310c565b6001600160a01b0381166121135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610910565b61211c816125ca565b50565b60006001600160e01b031982166380ac58cd60e01b148061215057506001600160e01b03198216635b5e139f60e01b145b806108e057506301ffc9a760e01b6001600160e01b03198316146108e0565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121c18261111e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122058261216f565b6122665760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610910565b60006122718361111e565b9050806001600160a01b0316846001600160a01b031614806122b857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806122dc5750836001600160a01b03166122d184610a84565b6001600160a01b0316145b949350505050565b826001600160a01b03166122f78261111e565b6001600160a01b03161461235b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610910565b6001600160a01b0382166123bd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610910565b6123c8838383612986565b6123d360008261218c565b6001600160a01b03831660009081526003602052604081208054600192906123fc9084906132ee565b90915550506001600160a01b038216600090815260036020526040812080546001929061242a9084906131a8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166124e15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610910565b6124ea8161216f565b156125375760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610910565b61254360008383612986565b6001600160a01b038216600090815260036020526040812080546001929061256c9084906131a8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826126298584612a2d565b14949350505050565b816001600160a01b0316836001600160a01b031614156126945760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610910565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61270c8484846122e4565b61271884848484612aa1565b6119ef5760405162461bcd60e51b81526004016109109061361b565b6060816127585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612782578061276c816132d3565b915061277b9050600a83613246565b915061275c565b60008167ffffffffffffffff81111561279d5761279d612fe8565b6040519080825280601f01601f1916602001820160405280156127c7576020820181803683370190505b5090505b84156122dc576127dc6001836132ee565b91506127e9600a8661366d565b6127f49060306131a8565b60f81b81838151811061280957612809613141565b60200101906001600160f81b031916908160001a90535061282b600a86613246565b94506127cb565b606081516000141561285257505060408051602081019091526000815290565b60006040518060600160405280604081526020016136dc604091399050600060038451600261288191906131a8565b61288b9190613246565b612896906004613211565b67ffffffffffffffff8111156128ae576128ae612fe8565b6040519080825280601f01601f1916602001820160405280156128d8576020820181803683370190505b509050600182016020820185865187015b80821015612944576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506128e9565b505060038651066001811461296057600281146129735761297b565b603d6001830353603d600283035361297b565b603d60018303535b509195945050505050565b600f5460009081526010602090815260408083208484528252918290208251808401909352805483526001015490820181905242116119ef5760405162461bcd60e51b815260206004820152603b60248201527f546f6b656e20686173206265656e20757365642061732061206d696e7420706160448201527f73732077697468696e20746865207061737420343820686f75727300000000006064820152608401610910565b600081815b8451811015612a99576000858281518110612a4f57612a4f613141565b60200260200101519050808311612a755760008381526020829052604090209250612a86565b600081815260208490526040902092505b5080612a91816132d3565b915050612a32565b509392505050565b60006001600160a01b0384163b15612ba357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ae5903390899088908890600401613681565b602060405180830381600087803b158015612aff57600080fd5b505af1925050508015612b2f575060408051601f3d908101601f19168201909252612b2c918101906136be565b60015b612b89573d808015612b5d576040519150601f19603f3d011682016040523d82523d6000602084013e612b62565b606091505b508051612b815760405162461bcd60e51b81526004016109109061361b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122dc565b506001949350505050565b828054612bba90613157565b90600052602060002090601f016020900481019282612bdc5760008555612c22565b82601f10612bf55782800160ff19823516178555612c22565b82800160010185558215612c22579182015b82811115612c22578235825591602001919060010190612c07565b50612c2e929150612c32565b5090565b5b80821115612c2e5760008155600101612c33565b6001600160e01b03198116811461211c57600080fd5b600060208284031215612c6f57600080fd5b8135612c7a81612c47565b9392505050565b600060208284031215612c9357600080fd5b5035919050565b60008083601f840112612cac57600080fd5b50813567ffffffffffffffff811115612cc457600080fd5b602083019150836020828501011115610f7857600080fd5b60008060008060008060608789031215612cf557600080fd5b863567ffffffffffffffff80821115612d0d57600080fd5b612d198a838b01612c9a565b90985096506020890135915080821115612d3257600080fd5b612d3e8a838b01612c9a565b90965094506040890135915080821115612d5757600080fd5b50612d6489828a01612c9a565b979a9699509497509295939492505050565b60005b83811015612d91578181015183820152602001612d79565b838111156119ef5750506000910152565b60008151808452612dba816020860160208601612d76565b601f01601f19169290920160200192915050565b602081526000612c7a6020830184612da2565b6001600160a01b038116811461211c57600080fd5b60008060408385031215612e0957600080fd5b8235612e1481612de1565b946020939093013593505050565b801515811461211c57600080fd5b600060208284031215612e4257600080fd5b8135612c7a81612e22565b600080600060608486031215612e6257600080fd5b8335612e6d81612de1565b92506020840135612e7d81612de1565b929592945050506040919091013590565b60008060408385031215612ea157600080fd5b50508035926020909101359150565b600060208284031215612ec257600080fd5b8135612c7a81612de1565b60008083601f840112612edf57600080fd5b50813567ffffffffffffffff811115612ef757600080fd5b6020830191508360208260051b8501011115610f7857600080fd5b600080600060408486031215612f2757600080fd5b833560ff81168114612f3857600080fd5b9250602084013567ffffffffffffffff811115612f5457600080fd5b612f6086828701612ecd565b9497909650939450505050565b60008060408385031215612f8057600080fd5b8235612f8b81612de1565b91506020830135612f9b81612e22565b809150509250929050565b60008060208385031215612fb957600080fd5b823567ffffffffffffffff811115612fd057600080fd5b612fdc85828601612ecd565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561301457600080fd5b843561301f81612de1565b9350602085013561302f81612de1565b925060408501359150606085013567ffffffffffffffff8082111561305357600080fd5b818701915087601f83011261306757600080fd5b81358181111561307957613079612fe8565b604051601f8201601f19908116603f011681019083821181831017156130a1576130a1612fe8565b816040528281528a60208487010111156130ba57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156130f157600080fd5b82356130fc81612de1565b91506020830135612f9b81612de1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061316b57607f821691505b6020821081141561318c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156131bb576131bb613192565b500190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600081600019048311821515161561322b5761322b613192565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261325557613255613230565b500490565b60006020828403121561326c57600080fd5b5051919050565b60006020828403121561328557600080fd5b8151612c7a81612e22565b60208082526023908201527f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f20676040820152621a599d60ea1b606082015260800190565b60006000198214156132e7576132e7613192565b5060010190565b60008282101561330057613300613192565b500390565b60008151613317818560208601612d76565b9290920192915050565b7f7b226e616d65223a2022436f6c6c65637469766520537472616e676572732023815260008551613359816020850160208a01612d76565b6201116160ed1b6020918401918201527f226465736372697074696f6e223a202254686520436f6c6c656374697665206960238201527f732061206d656d62657273206f6e6c792067726f7570206f6620332c3530302060438201527f737472616e676572732c2070686f746f67726170686572732c20616e6420746860638201527f6f73652070617373696f6e6174652061626f7574207468652073746f7269657360838201527f20612070686f746f2063616e2074656c6c2e2054686520436f6c6c656374697660a38201527f6520537472616e67657273206d656d626572736869702070617373206163747360c38201527f20617320796f757220656e74727920746f206f7572206469766572736520636f60e38201527f6d6d756e6974792c2061636365737320746f206d656d6265722062656e6566696101038201527f74732c20616e64206f757220657665722065766f6c76696e672070726f6475636101238201527f7420706970656c696e652e20536d696c6520f09f93b8222c00000000000000006101438201526135cb6135bd6135b761359961358a61358461356e61355d61355761015b8a017f2261747472696275746573223a205b7b2274726169745f74797065223a20225581527f736564206173204d696e742050617373222c202276616c7565223a20220000006020820152603d0190565b8e613305565b640113eae96160dd1b815260050190565b691134b6b0b3b2911d101160b11b8152600a0190565b8a613305565b6201116160ed1b815260030190565b711130b734b6b0ba34b7b72fbab936111d101160711b815260120190565b86613305565b61227d60f01b815260020190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161360e81601d850160208701612d76565b91909101601d0192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261367c5761367c613230565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136b490830184612da2565b9695505050505050565b6000602082840312156136d057600080fd5b8151612c7a81612c4756fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122069ed34ed00e65a9a25bffeecca8cb5bbddb9807097e6cbc12903075a56335dcc64736f6c634300080900330000000000000000000000000000000000000000000000000000000000000dac0000000000000000000000000000000000000000000000000000000000000d7a0000000000000000000000000000000000000000000000000000000000000032
Deployed Bytecode
0x6080604052600436106102975760003560e01c806370a082311161015a578063b391c508116100c1578063e10c605f1161007a578063e10c605f146107ec578063e83157421461080c578063e985e9c514610822578063eb4883ab1461086b578063f2fde38b14610885578063fc566c3c146108a557600080fd5b8063b391c50814610721578063b88d4fde14610741578063bec9510714610761578063c87b56dd1461077c578063c884ef831461079c578063defe1141146107cc57600080fd5b806395d89b411161011357806395d89b41146106765780639b624e7b1461068b5780639eb00974146106ab578063a22cb465146106c1578063a2af0419146106e1578063aac5d69f1461070157600080fd5b806370a08231146105e0578063715018a61461060057806374d56382146106155780637fc278031461062b5780638da5cb5b146106455780638e4f86921461066357600080fd5b806323b872dd116101fe57806349c33981116101b757806349c339811461052757806349df728c1461053d57806356225a091461055d57806361bc221a1461058a5780636352211e146105a05780636c3a9b4a146105c057600080fd5b806323b872dd146104595780632a55205a14610479578063326f9ad3146104b85780633ccfd60b146104dc57806342842e0e146104f1578063469132ce1461051157600080fd5b80630d3cf1f2116102505780630d3cf1f2146103945780631157b834146103b457806315853c11146103d957806315bdebe2146103f957806317075f41146104195780631ba991bb1461043957600080fd5b806301ffc9a7146102a35780630328f818146102d85780630661723f146102fa57806306fdde031461031a578063081812fc1461033c578063095ea7b31461037457600080fd5b3661029e57005b600080fd5b3480156102af57600080fd5b506102c36102be366004612c5d565b6108bb565b60405190151581526020015b60405180910390f35b3480156102e457600080fd5b506102f86102f3366004612c81565b6108e6565b005b34801561030657600080fd5b506102f8610315366004612cdc565b610992565b34801561032657600080fd5b5061032f6109f2565b6040516102cf9190612dce565b34801561034857600080fd5b5061035c610357366004612c81565b610a84565b6040516001600160a01b0390911681526020016102cf565b34801561038057600080fd5b506102f861038f366004612df6565b610b0c565b3480156103a057600080fd5b506102f86103af366004612e30565b610c22565b3480156103c057600080fd5b5060195461035c9061010090046001600160a01b031681565b3480156103e557600080fd5b506102f86103f4366004612c81565b610c5f565b34801561040557600080fd5b506102f8610414366004612c81565b610c8e565b34801561042557600080fd5b506102f8610434366004612cdc565b610cbd565b34801561044557600080fd5b506102c3610454366004612c81565b610d0c565b34801561046557600080fd5b506102f8610474366004612e4d565b610ede565b34801561048557600080fd5b50610499610494366004612e8e565b610f0f565b604080516001600160a01b0390931683526020830191909152016102cf565b3480156104c457600080fd5b506104ce60185481565b6040519081526020016102cf565b3480156104e857600080fd5b506102f8610f7f565b3480156104fd57600080fd5b506102f861050c366004612e4d565b610fdc565b34801561051d57600080fd5b506104ce60115481565b34801561053357600080fd5b506104ce60175481565b34801561054957600080fd5b506102f8610558366004612eb0565b610ff7565b34801561056957600080fd5b506104ce610578366004612eb0565b601a6020526000908152604090205481565b34801561059657600080fd5b506104ce60075481565b3480156105ac57600080fd5b5061035c6105bb366004612c81565b61111e565b3480156105cc57600080fd5b506102f86105db366004612c81565b611195565b3480156105ec57600080fd5b506104ce6105fb366004612eb0565b611245565b34801561060c57600080fd5b506102f86112cc565b34801561062157600080fd5b506104ce60135481565b34801561063757600080fd5b506019546102c39060ff1681565b34801561065157600080fd5b506006546001600160a01b031661035c565b6102f8610671366004612f12565b611302565b34801561068257600080fd5b5061032f61162d565b34801561069757600080fd5b506102f86106a6366004612c81565b61163c565b3480156106b757600080fd5b506104ce60145481565b3480156106cd57600080fd5b506102f86106dc366004612f6d565b61166b565b3480156106ed57600080fd5b506102f86106fc366004612eb0565b611676565b34801561070d57600080fd5b506102f861071c366004612c81565b6116c8565b34801561072d57600080fd5b506102f861073c366004612fa6565b6116f7565b34801561074d57600080fd5b506102f861075c366004612ffe565b6119bd565b34801561076d57600080fd5b506104ce66b1a2bc2ec5000081565b34801561078857600080fd5b5061032f610797366004612c81565b6119f5565b3480156107a857600080fd5b506102c36107b7366004612eb0565b601b6020526000908152604090205460ff1681565b3480156107d857600080fd5b506102f86107e7366004612e30565b612018565b3480156107f857600080fd5b506102f8610807366004612c81565b612055565b34801561081857600080fd5b506104ce60125481565b34801561082e57600080fd5b506102c361083d3660046130de565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561087757600080fd5b506015546102c39060ff1681565b34801561089157600080fd5b506102f86108a0366004612eb0565b612084565b3480156108b157600080fd5b506104ce60165481565b60006001600160e01b0319821663152a902d60e11b14806108e057506108e08261211f565b92915050565b6006546001600160a01b031633146109195760405162461bcd60e51b81526004016109109061310c565b60405180910390fd5b8015806109265750806001145b806109315750806002145b61098d5760405162461bcd60e51b815260206004820152602760248201527f506173732061205f737461746520746861742773206569746865722030206f7260448201526610189037b9101960c91b6064820152608401610910565b600e55565b6006546001600160a01b031633146109bc5760405162461bcd60e51b81526004016109109061310c565b6109c860088787612bae565b506109d560098585612bae565b508181600860025b6109e993910191612bae565b50505050505050565b606060008054610a0190613157565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2d90613157565b8015610a7a5780601f10610a4f57610100808354040283529160200191610a7a565b820191906000526020600020905b815481529060010190602001808311610a5d57829003601f168201915b5050505050905090565b6000610a8f8261216f565b610af05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610910565b506000908152600460205260409020546001600160a01b031690565b6000610b178261111e565b9050806001600160a01b0316836001600160a01b03161415610b855760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610910565b336001600160a01b0382161480610ba15750610ba1813361083d565b610c135760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610910565b610c1d838361218c565b505050565b6006546001600160a01b03163314610c4c5760405162461bcd60e51b81526004016109109061310c565b6015805460ff1916911515919091179055565b6006546001600160a01b03163314610c895760405162461bcd60e51b81526004016109109061310c565b601655565b6006546001600160a01b03163314610cb85760405162461bcd60e51b81526004016109109061310c565b601855565b6006546001600160a01b03163314610ce75760405162461bcd60e51b81526004016109109061310c565b610cf3600b8787612bae565b50610d00600c8585612bae565b508181600b60026109dd565b60195460009061010090046001600160a01b03163314610d6e5760405162461bcd60e51b815260206004820152601e60248201527f43616c6c6572206973206e6f742072656465656d6572206164647265737300006044820152606401610910565b600e54600114610dcb5760405162461bcd60e51b815260206004820152602260248201527f476c6f62616c20737461746520686173206e6f74206265656e2073657420746f604482015261203160f01b6064820152608401610910565b610dd48261216f565b610e205760405162461bcd60e51b815260206004820152601e60248201527f43616c6c696e6720666f72206e6f6e2d6578697374656e7420746f6b656e00006044820152606401610910565b600f54600090815260106020908152604080832085845290915290205460021415610e865760405162461bcd60e51b8152602060048201526016602482015275151bdad95b88185b1c9958591e481c995919595b595960521b6044820152606401610910565b600f546000908152601060209081526040808320858452909152902060029055610eb3426202a3006131a8565b600f546000908152601060209081526040808320958352949052929092206001908101929092555090565b610ee833826121fa565b610f045760405162461bcd60e51b8152600401610910906131c0565b610c1d8383836122e4565b600080610f1b8461216f565b610f5b5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610910565b306064610f69856005613211565b610f739190613246565b915091505b9250929050565b6006546001600160a01b03163314610fa95760405162461bcd60e51b81526004016109109061310c565b6040514790339082156108fc029083906000818181858888f19350505050158015610fd8573d6000803e3d6000fd5b5050565b610c1d838383604051806020016040528060008152506119bd565b6006546001600160a01b031633146110215760405162461bcd60e51b81526004016109109061310c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561106357600080fd5b505afa158015611077573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109b919061325a565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156110e657600080fd5b505af11580156110fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1d9190613273565b6000818152600260205260408120546001600160a01b0316806108e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610910565b6006546001600160a01b031633146111bf5760405162461bcd60e51b81526004016109109061310c565b80601654816017546111d191906131a8565b11156111ef5760405162461bcd60e51b815260040161091090613290565b816017600082825461120191906131a8565b90915550600090505b82811015610c1d5760078054906000611222836132d3565b91905055506112333360075461248b565b8061123d816132d3565b91505061120a565b60006001600160a01b0382166112b05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610910565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146112f65760405162461bcd60e51b81526004016109109061310c565b61130060006125ca565b565b60155460ff166113545760405162461bcd60e51b815260206004820152601a60248201527f436f6d6d756e6974792073616c65206973206e6f74206f70656e0000000000006044820152606401610910565b8260ff1660175460165460125461136b91906132ee565b61137591906131a8565b8160075461138391906131a8565b11156113dd5760405162461bcd60e51b815260206004820152602360248201527f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f206d6044820152621a5b9d60ea1b6064820152608401610910565b66b1a2bc2ec5000060ff8516346113f48284613211565b11156114425760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e7400000000000000006044820152606401610910565b84846014546114ba838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190505b6040516020818303038152906040528051906020012061261c565b6115065760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c69737400006044820152606401610910565b601154336000908152601a602052604090205460ff8b16919061152a9083906131a8565b11156115715760405162461bcd60e51b8152602060048201526016602482015275151bdbc81b585b9e481d1bdad95b9cc81b5a5b9d195960521b6044820152606401610910565b3332146115b75760405162461bcd60e51b815260206004820152601460248201527343616c6c6572206973206e6f7420616e20454f4160601b6044820152606401610910565b336000908152601a60205260408120805460ff8d1692906115d99084906131a8565b90915550600090505b8a60ff1681101561162057600780549060006115fd836132d3565b919050555061160e3360075461248b565b80611618816132d3565b9150506115e2565b5050505050505050505050565b606060018054610a0190613157565b6006546001600160a01b031633146116665760405162461bcd60e51b81526004016109109061310c565b600f55565b610fd8338383612632565b6006546001600160a01b031633146116a05760405162461bcd60e51b81526004016109109061310c565b601980546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6006546001600160a01b031633146116f25760405162461bcd60e51b81526004016109109061310c565b601155565b60195460ff166117495760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20636c61696d206973206e6f74206f70656e0000000000000000006044820152606401610910565b60016016548160175461175c91906131a8565b111561177a5760405162461bcd60e51b815260040161091090613290565b82826018546117db838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b166020820152859250603401905061149f565b6118275760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c69737400006044820152606401610910565b601154336000908152601a6020526040902054600191906118499083906131a8565b11156118905760405162461bcd60e51b8152602060048201526016602482015275151bdbc81b585b9e481d1bdad95b9cc81b5a5b9d195960521b6044820152606401610910565b3332146118d65760405162461bcd60e51b815260206004820152601460248201527343616c6c6572206973206e6f7420616e20454f4160601b6044820152606401610910565b336000908152601b602052604090205460ff16156119425760405162461bcd60e51b8152602060048201526024808201527f546f6b656e20616c726561647920636c61696d656420627920746869732077616044820152631b1b195d60e21b6064820152608401610910565b336000908152601a602052604081208054600192906119629084906131a8565b9091555050336000908152601b60205260408120805460ff1916600190811790915560178054919290916119979084906131a8565b9091555050600780549060006119ac836132d3565b91905055506109e93360075461248b565b6119c733836121fa565b6119e35760405162461bcd60e51b8152600401610910906131c0565b6119ef84848484612701565b50505050565b6060611a008261216f565b611a405760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610910565b600f546000908152601060209081526040808320858452825291829020825180840184528154815260019091015481830152825180840190935260028352614e6f60f01b91830191909152600e549091606091829190611bcc5760088054611aa790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad390613157565b8015611b205780601f10611af557610100808354040283529160200191611b20565b820191906000526020600020905b815481529060010190602001808311611b0357829003601f168201915b50505050509250600b600060038110611b3b57611b3b613141565b018054611b4790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611b7390613157565b8015611bc05780601f10611b9557610100808354040283529160200191611bc0565b820191906000526020600020905b815481529060010190602001808311611ba357829003601f168201915b50505050509150611fb8565b600e5460021415611d3057600a8054611be490613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1090613157565b8015611c5d5780601f10611c3257610100808354040283529160200191611c5d565b820191906000526020600020905b815481529060010190602001808311611c4057829003601f168201915b50505050509250600b600260038110611c7857611c78613141565b018054611c8490613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb090613157565b8015611cfd5780601f10611cd257610100808354040283529160200191611cfd565b820191906000526020600020905b815481529060010190602001808311611ce057829003601f168201915b5050875193955050505060021415611d2b575060408051808201909152600381526259657360e81b60208201525b611fb8565b835160021415611e8a57600a8054611d4790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7390613157565b8015611dc05780601f10611d9557610100808354040283529160200191611dc0565b820191906000526020600020905b815481529060010190602001808311611da357829003601f168201915b50505050509250600b600260038110611ddb57611ddb613141565b018054611de790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1390613157565b8015611e605780601f10611e3557610100808354040283529160200191611e60565b820191906000526020600020905b815481529060010190602001808311611e4357829003601f168201915b505050505091506040518060400160405280600381526020016259657360e81b8152509050611fb8565b60098054611e9790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611ec390613157565b8015611f105780601f10611ee557610100808354040283529160200191611f10565b820191906000526020600020905b815481529060010190602001808311611ef357829003601f168201915b50505050509250600b600160038110611f2b57611f2b613141565b018054611f3790613157565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6390613157565b8015611fb05780601f10611f8557610100808354040283529160200191611fb0565b820191906000526020600020905b815481529060010190602001808311611f9357829003601f168201915b505050505091505b611fee611fc487612734565b828585604051602001611fda9493929190613321565b604051602081830303815290604052612832565b604051602001611ffe91906135d6565b604051602081830303815290604052945050505050919050565b6006546001600160a01b031633146120425760405162461bcd60e51b81526004016109109061310c565b6019805460ff1916911515919091179055565b6006546001600160a01b0316331461207f5760405162461bcd60e51b81526004016109109061310c565b601455565b6006546001600160a01b031633146120ae5760405162461bcd60e51b81526004016109109061310c565b6001600160a01b0381166121135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610910565b61211c816125ca565b50565b60006001600160e01b031982166380ac58cd60e01b148061215057506001600160e01b03198216635b5e139f60e01b145b806108e057506301ffc9a760e01b6001600160e01b03198316146108e0565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121c18261111e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122058261216f565b6122665760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610910565b60006122718361111e565b9050806001600160a01b0316846001600160a01b031614806122b857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806122dc5750836001600160a01b03166122d184610a84565b6001600160a01b0316145b949350505050565b826001600160a01b03166122f78261111e565b6001600160a01b03161461235b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610910565b6001600160a01b0382166123bd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610910565b6123c8838383612986565b6123d360008261218c565b6001600160a01b03831660009081526003602052604081208054600192906123fc9084906132ee565b90915550506001600160a01b038216600090815260036020526040812080546001929061242a9084906131a8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166124e15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610910565b6124ea8161216f565b156125375760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610910565b61254360008383612986565b6001600160a01b038216600090815260036020526040812080546001929061256c9084906131a8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826126298584612a2d565b14949350505050565b816001600160a01b0316836001600160a01b031614156126945760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610910565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61270c8484846122e4565b61271884848484612aa1565b6119ef5760405162461bcd60e51b81526004016109109061361b565b6060816127585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612782578061276c816132d3565b915061277b9050600a83613246565b915061275c565b60008167ffffffffffffffff81111561279d5761279d612fe8565b6040519080825280601f01601f1916602001820160405280156127c7576020820181803683370190505b5090505b84156122dc576127dc6001836132ee565b91506127e9600a8661366d565b6127f49060306131a8565b60f81b81838151811061280957612809613141565b60200101906001600160f81b031916908160001a90535061282b600a86613246565b94506127cb565b606081516000141561285257505060408051602081019091526000815290565b60006040518060600160405280604081526020016136dc604091399050600060038451600261288191906131a8565b61288b9190613246565b612896906004613211565b67ffffffffffffffff8111156128ae576128ae612fe8565b6040519080825280601f01601f1916602001820160405280156128d8576020820181803683370190505b509050600182016020820185865187015b80821015612944576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506128e9565b505060038651066001811461296057600281146129735761297b565b603d6001830353603d600283035361297b565b603d60018303535b509195945050505050565b600f5460009081526010602090815260408083208484528252918290208251808401909352805483526001015490820181905242116119ef5760405162461bcd60e51b815260206004820152603b60248201527f546f6b656e20686173206265656e20757365642061732061206d696e7420706160448201527f73732077697468696e20746865207061737420343820686f75727300000000006064820152608401610910565b600081815b8451811015612a99576000858281518110612a4f57612a4f613141565b60200260200101519050808311612a755760008381526020829052604090209250612a86565b600081815260208490526040902092505b5080612a91816132d3565b915050612a32565b509392505050565b60006001600160a01b0384163b15612ba357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ae5903390899088908890600401613681565b602060405180830381600087803b158015612aff57600080fd5b505af1925050508015612b2f575060408051601f3d908101601f19168201909252612b2c918101906136be565b60015b612b89573d808015612b5d576040519150601f19603f3d011682016040523d82523d6000602084013e612b62565b606091505b508051612b815760405162461bcd60e51b81526004016109109061361b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122dc565b506001949350505050565b828054612bba90613157565b90600052602060002090601f016020900481019282612bdc5760008555612c22565b82601f10612bf55782800160ff19823516178555612c22565b82800160010185558215612c22579182015b82811115612c22578235825591602001919060010190612c07565b50612c2e929150612c32565b5090565b5b80821115612c2e5760008155600101612c33565b6001600160e01b03198116811461211c57600080fd5b600060208284031215612c6f57600080fd5b8135612c7a81612c47565b9392505050565b600060208284031215612c9357600080fd5b5035919050565b60008083601f840112612cac57600080fd5b50813567ffffffffffffffff811115612cc457600080fd5b602083019150836020828501011115610f7857600080fd5b60008060008060008060608789031215612cf557600080fd5b863567ffffffffffffffff80821115612d0d57600080fd5b612d198a838b01612c9a565b90985096506020890135915080821115612d3257600080fd5b612d3e8a838b01612c9a565b90965094506040890135915080821115612d5757600080fd5b50612d6489828a01612c9a565b979a9699509497509295939492505050565b60005b83811015612d91578181015183820152602001612d79565b838111156119ef5750506000910152565b60008151808452612dba816020860160208601612d76565b601f01601f19169290920160200192915050565b602081526000612c7a6020830184612da2565b6001600160a01b038116811461211c57600080fd5b60008060408385031215612e0957600080fd5b8235612e1481612de1565b946020939093013593505050565b801515811461211c57600080fd5b600060208284031215612e4257600080fd5b8135612c7a81612e22565b600080600060608486031215612e6257600080fd5b8335612e6d81612de1565b92506020840135612e7d81612de1565b929592945050506040919091013590565b60008060408385031215612ea157600080fd5b50508035926020909101359150565b600060208284031215612ec257600080fd5b8135612c7a81612de1565b60008083601f840112612edf57600080fd5b50813567ffffffffffffffff811115612ef757600080fd5b6020830191508360208260051b8501011115610f7857600080fd5b600080600060408486031215612f2757600080fd5b833560ff81168114612f3857600080fd5b9250602084013567ffffffffffffffff811115612f5457600080fd5b612f6086828701612ecd565b9497909650939450505050565b60008060408385031215612f8057600080fd5b8235612f8b81612de1565b91506020830135612f9b81612e22565b809150509250929050565b60008060208385031215612fb957600080fd5b823567ffffffffffffffff811115612fd057600080fd5b612fdc85828601612ecd565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561301457600080fd5b843561301f81612de1565b9350602085013561302f81612de1565b925060408501359150606085013567ffffffffffffffff8082111561305357600080fd5b818701915087601f83011261306757600080fd5b81358181111561307957613079612fe8565b604051601f8201601f19908116603f011681019083821181831017156130a1576130a1612fe8565b816040528281528a60208487010111156130ba57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156130f157600080fd5b82356130fc81612de1565b91506020830135612f9b81612de1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061316b57607f821691505b6020821081141561318c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156131bb576131bb613192565b500190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600081600019048311821515161561322b5761322b613192565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261325557613255613230565b500490565b60006020828403121561326c57600080fd5b5051919050565b60006020828403121561328557600080fd5b8151612c7a81612e22565b60208082526023908201527f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f20676040820152621a599d60ea1b606082015260800190565b60006000198214156132e7576132e7613192565b5060010190565b60008282101561330057613300613192565b500390565b60008151613317818560208601612d76565b9290920192915050565b7f7b226e616d65223a2022436f6c6c65637469766520537472616e676572732023815260008551613359816020850160208a01612d76565b6201116160ed1b6020918401918201527f226465736372697074696f6e223a202254686520436f6c6c656374697665206960238201527f732061206d656d62657273206f6e6c792067726f7570206f6620332c3530302060438201527f737472616e676572732c2070686f746f67726170686572732c20616e6420746860638201527f6f73652070617373696f6e6174652061626f7574207468652073746f7269657360838201527f20612070686f746f2063616e2074656c6c2e2054686520436f6c6c656374697660a38201527f6520537472616e67657273206d656d626572736869702070617373206163747360c38201527f20617320796f757220656e74727920746f206f7572206469766572736520636f60e38201527f6d6d756e6974792c2061636365737320746f206d656d6265722062656e6566696101038201527f74732c20616e64206f757220657665722065766f6c76696e672070726f6475636101238201527f7420706970656c696e652e20536d696c6520f09f93b8222c00000000000000006101438201526135cb6135bd6135b761359961358a61358461356e61355d61355761015b8a017f2261747472696275746573223a205b7b2274726169745f74797065223a20225581527f736564206173204d696e742050617373222c202276616c7565223a20220000006020820152603d0190565b8e613305565b640113eae96160dd1b815260050190565b691134b6b0b3b2911d101160b11b8152600a0190565b8a613305565b6201116160ed1b815260030190565b711130b734b6b0ba34b7b72fbab936111d101160711b815260120190565b86613305565b61227d60f01b815260020190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161360e81601d850160208701612d76565b91909101601d0192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261367c5761367c613230565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136b490830184612da2565b9695505050505050565b6000602082840312156136d057600080fd5b8151612c7a81612c4756fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122069ed34ed00e65a9a25bffeecca8cb5bbddb9807097e6cbc12903075a56335dcc64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000dac0000000000000000000000000000000000000000000000000000000000000d7a0000000000000000000000000000000000000000000000000000000000000032
-----Decoded View---------------
Arg [0] : _maxTokens (uint256): 3500
Arg [1] : _maxCommunitySaleTokens (uint256): 3450
Arg [2] : _maxGiftedTokens (uint256): 50
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000dac
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000d7a
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000032
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.