NFT
Overview
TokenID
1141
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
VechTokenContract
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.10; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; //******************************************************************************* //******************************************************************************* //............................................................................... //......................,,::,.................................................... //.........*%*;:,,......+##S%?+;:,............................................... //.........,+S##S%?*+;,,.+#@@###S%?+,............................................ //............;S######SS%*+#@@@#####S?+:,........................................ //............+#@@#SS###@@######@@######S%?+::,.................................. //....,:;:,...?@##@####@@@@@#####@@##########SS?+,............................... //....+##S%%*;:S@SS##@###@@@@@@@@##############@@#?;............................. //.....;S@####SS####S#######@@@@@########SSS#######%?,........................... //......,*#@@#####@######@S###@S##;:S######S*%####@@@*,.......................... //........,*#@@@####@@##S#@@#S##:,,;###@###S%?*?S###@@S?+:....................... //.......,?#@#S##SSS###S###@#S#S+;.:##@#@@@##SS%*#@##@@S*+....................... //........:*@@%S#S%SSS######S#@##S?S##@@@##@@#%SS?%#@##@#+....................... //..........*S##@#%#S%%S####SSS#@@#@@@@@@@@#####S#S?%#@##@%:..................... //...........,;*%#@########@@@###@@#@@@@@@@@@@#######%%#####+,................... //...............:+S#####SSSSS####@@@@@###@@@@@@####@@#S####@S,.................. //..................;%#########S#S%S#@@###@@@@@@@@###@@@@####@?,................. //....................:+*%##@##S?S@@@#####S###@@@##@@@@@@@@###@#?+,.............. //.......................,;+*%S*,;?%SSS;,*,,;S##@@@##@@###@@@###@#S?:............ //............................,;:,...:+;;,...,;?S#@@@#@@@##@@##S##S#*............ //..............................................,;?S#####@@@@@@@##SSS*:.......... //.................................................,;?S########@@@@@###:......... //.....%%..%%..%%%%%%...%%%%...%%..%%.................,;+?%S##@##@@@@@@+......... //.....%%..%%..%%......%%..%%..%%..%%......................:*%S####@@@@S,........ //.....%%..%%..%%%%....%%......%%%%%%..........................:+?%#@@#S?........ //......%%%%...%%......%%..%%..%%..%%..............................:;++.,........ //.......%%....%%%%%%...%%%%...%%..%%............................................ //............................................................................... //... Founders: HYDN#1234 & fudzero#0856 ........................................ //... Contract developer: Moonfarm#1138 ......................................... //............................................................................... //******************************************************************************* //******************************************************************************* contract VechTokenContract is ERC721Enumerable, Ownable, ERC721Pausable { using SafeMath for uint256; using MerkleProof for bytes32[]; struct PartialReveal { uint256 seed; uint256 tokenCount; } /// max amount of tokens in the collection uint256 public maxTokens = 8888; /// minted public tokens uint256 public mintedPublicTokens; /// price per token minted uint256 public whitelistTokenPrice = 0.05 ether; /// price per token minted uint256 public publicTokenPrice = 0.08 ether; /// amount of tokens a whitelisted address can mint uint256 public preSaleTokensPerAddress = 3; /// max amount of tokens minted in one transaction uint256 public maxTokensPerTxn = 5; // ### Reserved tokens ### /// reserved tokens for the team uint8 public teamReservedTokens = 30; /// amount of reserved tokens minted uint256 public mintedReservedTokenCount; /// reserved tokens for promotions uint256 public collabReservedTokens = 98; /// amount of reserved tokens minted uint256 public mintedCollabTokenCount; // ### /// max amount of tokens in the collection uint256 public maxPublicMintableTokens = maxTokens - collabReservedTokens; // 8888 - 98 = 8790 // ### Active Sales ### /// og-sale allows addresses in ogAddress to mint /// through ogSaleMint() bool public ogSaleIsActive; /// pre-sale allows addresses in whitelistedAddress to mint /// through preSaleMint() bool public preSaleIsActive; /// public-sale allows anyone to mint /// through publicMint() bool public publicSaleIsActive; // ### // saves the baseURI internally string private baseURI; // saves the baseURI for unrevealed tokens internally string private unrevealedBaseURI; /// track how many tokens every og has minted mapping(address => uint8) public ogMints; // merkle root used to verify that a user is in the og-list bytes32 ogMerkleRoot; /// minted tokens per whitelisted address mapping(address => uint8) public whitelistedMints; // merkle root used to verify that a user is in the whitelist bytes32 whitelistMerkleRoot; /// save seeds and tokenCounts for reveals mapping(uint8 => PartialReveal) public partialReveals; uint8 reveals; uint256 revealedTokens; // ### Payout addresses for the team ### address mintersAddress = 0xd52A48A06D63754972F90Cd22D2b91649CFdf231; // Minters collective address maximAddress = 0x261AC500143171b14Adf7729d33eECD1C5859206; // Lead FX Artist address gilliesAddress = 0x71917bc9F1cc593ab86eDE456E54fF1De33362D3; // Consultant address rodneyAddress = 0x4a53132d7c16240A834f165237Acb72be8E85B3A; // Partner address moonfarmAddress = 0x0C7a1AE154717fdA46A8cc52913C63572FDb66e8; // Developer address burnzAddress = 0x5Df222B967b0C609573Df5e71339616722935303; // Discord team address dvolutionAddress = 0x327c4CDE7c1980D5327982cA2FCA195a20bB7825; // Discord team address cuhryptoAddress = 0x92265F4C85619eC8b70BB179ff1F86C56e54d348; // Discord team address haydenAddress = 0x9b7df2A8Fd78923BB5e3329aA7e024a613a92d5F; // Vech co-founder address fudzeroAddress = 0x9b80a7D7E4CD5CB47a8Bee52fe312dc9267ADaBF; // Vech co-founder address vechOperations = 0xafbfe9fA0348EEefD281fE317bDe861DC4F74910; // Vech operations address vechTreasury = 0xbD9a34eBc30ce0328B759038d41546A354C9bd74; // Vech treasury /// URI for a specific token mapping(uint256 => string) private _tokenURIs; constructor() ERC721("VECH", "VECH") {} // ### Minting ### /// Pre sale minting, for everyone who is on the OG list. /// note: First token is free function ogSaleMint(bytes32[] calldata proof, uint8 amount) public payable activeSale(ogSaleIsActive) ogListed(proof, amount) amountWithinMaxTokens(amount) { if (ogMints[msg.sender] > 0) { require( whitelistTokenPrice.mul(amount) <= msg.value, "Not enough ether to mint" ); } else { // first token minted is free for OGs require( whitelistTokenPrice.mul(amount - 1) <= msg.value, "Not enough ether to mint" ); } mint(amount); ogMints[msg.sender] += amount; } /// Pre sale minting, for everyone who is on the whitelist function preSaleMint(bytes32[] calldata proof, uint8 amount) public payable activeSale(preSaleIsActive) correctWhitelistPayment(amount) whitelisted(proof, amount) amountWithinMaxTokens(amount) { mint(amount); whitelistedMints[msg.sender] += amount; } /// Public minting, everyone can mint as long as publicSaleIsActive = true function publicMint(uint8 amount) public payable activeSale(publicSaleIsActive) correctPublicPayment(amount) amountWithinMaxTokens(amount) { mint(amount); } /// Reserved token minting function collabMint(uint8 amount, address to) public onlyOwner { require( mintedCollabTokenCount.add(amount) <= collabReservedTokens, "Can not mint more than reserved" ); uint256 startId = maxPublicMintableTokens + mintedCollabTokenCount; for (uint8 i = 0; i < amount; i++) { _safeMint(to, startId + i); } mintedCollabTokenCount += amount; } /// Reserved token minting function reservedMint(uint8 amount, address to) public onlyOwner { require( mintedReservedTokenCount.add(amount) <= teamReservedTokens, "Can not mint more than reserved" ); require( mintedPublicTokens.add(amount) <= maxPublicMintableTokens, "No tokens left to mint" ); for (uint8 i = 0; i < amount; i++) { _safeMint(to, mintedPublicTokens + i); } mintedReservedTokenCount += amount; mintedPublicTokens += amount; } function mint(uint8 amount) private whenNotPaused { require(amount <= maxTokensPerTxn, "Too many mints in a txn"); for (uint8 i = 0; i < amount; i++) { _safeMint(msg.sender, mintedPublicTokens + i); } mintedPublicTokens += amount; } // ### Administration ### /// pause contract function pause() public onlyOwner { _pause(); } /// unpause contract function unpause() public onlyOwner { _unpause(); } /// set which sale(s) should be active or inactive function setOGPreAndPublicSale( bool _ogSaleIsActive, bool _preSaleIsActive, bool _publicSaleIsActive ) public onlyOwner { ogSaleIsActive = _ogSaleIsActive; preSaleIsActive = _preSaleIsActive; publicSaleIsActive = _publicSaleIsActive; } /// set minting price function setMintPrice( uint256 _whitelistTokenPrice, uint256 _publicTokenPrice ) public onlyOwner { whitelistTokenPrice = _whitelistTokenPrice; publicTokenPrice = _publicTokenPrice; } /// set amount of tokens allowed to mint in a transaction function setMaxMintsPerTxn(uint256 _tokensPerTxn) public onlyOwner { maxTokensPerTxn = _tokensPerTxn; } /// set the amount of tokens whitelisted or og-listed /// addresses are allowed to mint during pre-sale and og-sale /// note: does not affect public sale function setMaxMintsPerWhitelistedAddress(uint256 tokensPerAddress) public onlyOwner { preSaleTokensPerAddress = tokensPerAddress; } /// set merkle root for og-list verification function setOGMerkleRoot(bytes32 merkleRoot) public onlyOwner { ogMerkleRoot = merkleRoot; } /// set merkle root for whitelist verification function setWhitelistMerkleRoot(bytes32 merkleRoot) public onlyOwner { whitelistMerkleRoot = merkleRoot; } /// set a specific tokens URI /// note: make sure you use the tokenId and not the vechId function setTokenURI(uint256 tokenId, string memory _tokenURI) public onlyOwner { require( _exists(tokenId), "ERC721Metadata: URI set of nonexistent token" ); _tokenURIs[tokenId] = _tokenURI; } /// set the baseURI for the collection function setUnrevealedBaseURI(string memory _URI) external onlyOwner { unrevealedBaseURI = _URI; } /// set the baseURI for the collection function setBaseURI(string memory _URI) external onlyOwner { baseURI = _URI; } /// call to reveal tokens /// note: can be used twice /// note: the second time can only be called at complete sell out function revealTokens() public onlyOwner { require(reveals <= 1, "Can only reveal twice"); require( reveals == 0 || mintedPublicTokens == maxPublicMintableTokens, "Needs all tokens sold before next reveal" ); uint256 seed = uint256( keccak256( abi.encodePacked( block.difficulty, block.timestamp, block.number ) ) ) % maxPublicMintableTokens; partialReveals[reveals] = PartialReveal( seed, mintedPublicTokens.sub(revealedTokens) ); reveals++; revealedTokens = mintedPublicTokens; } /// withdraws funds function withdraw() public onlyOwner { uint256 amountToVechOperations = (address(this).balance * 210) / 1000; // 21% uint256 amountToMintersCollection = (address(this).balance * 200) / 1000; // 20% uint256 amountToMaxim = (address(this).balance * 120) / 1000; // 12% uint256 amountToHydn = (address(this).balance * 100) / 1000; // 10% uint256 amountToFudzero = (address(this).balance * 100) / 1000; // 10% uint256 amountToMoonfarm = (address(this).balance * 100) / 1000; // 10% uint256 amountToGillies = (address(this).balance * 25) / 1000; // 2.5% uint256 amountToRodney = (address(this).balance * 25) / 1000; // 2.5% uint256 amountToDiscordTeam = (address(this).balance * 20) / 1000; // 2% sendEth(mintersAddress, amountToMintersCollection); sendEth(maximAddress, amountToMaxim); sendEth(moonfarmAddress, amountToMoonfarm); sendEth(gilliesAddress, amountToGillies); sendEth(rodneyAddress, amountToRodney); // discord team split 2% sendEth(burnzAddress, amountToDiscordTeam / 3); sendEth(dvolutionAddress, amountToDiscordTeam / 3); sendEth(cuhryptoAddress, amountToDiscordTeam / 3); sendEth(fudzeroAddress, amountToFudzero); sendEth(haydenAddress, amountToHydn); sendEth(vechOperations, amountToVechOperations); // send the rest to treasury if there's a gwei left from rounding the percentages uint256 amountToVechTreasury = address(this).balance; // ~10% sendEth(vechTreasury, amountToVechTreasury); } function sendEth(address to, uint256 amount) internal { (bool success, ) = to.call{value: amount}(""); require(success, "Failed to send ether"); } // ### // ### Utils ### /// get the baseURI internally function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /// get the tokenURI based on seeds generated in reveal /// note: returns unrevealedBaseURI if tokenId hasn't been revealed yet function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory base = _baseURI(); // Collab tokens if (tokenId >= maxPublicMintableTokens) { return string(abi.encodePacked(base, uint2str(tokenId))); } if (tokenId >= revealedTokens) { return unrevealedBaseURI; } string memory _tokenURI = _tokenURIs[tokenId]; // If there is a specific token URI, return the token URI. if (bytes(_tokenURI).length > 0) { return _tokenURI; } uint256 vechId; // At only one reveal this is a trivial case if (reveals == 1 || tokenId < partialReveals[0].tokenCount) { // Calculate vech id from one rotation vechId = (partialReveals[0].seed + tokenId) % maxPublicMintableTokens; // Bundle id with base uri return string(abi.encodePacked(base, uint2str(vechId))); } uint256 firstSeed = partialReveals[0].seed; uint256 offset = tokenId.add(partialReveals[1].seed); vechId = offset; if (offset >= firstSeed) { offset -= firstSeed; offset %= partialReveals[1].tokenCount; vechId = offset.add(partialReveals[0].tokenCount); vechId += firstSeed; } return string(abi.encodePacked(base, uint2str(vechId % maxPublicMintableTokens))); } // returns: the amount of reserved tokens function reservedTokens() public view returns (uint256) { return teamReservedTokens; } // convert int to str function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint256 j = _i; uint256 len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint256 k = len; while (_i != 0) { k = k - 1; uint8 temp = (48 + uint8(_i - (_i / 10) * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, ERC721) returns (bool) { return super.supportsInterface(interfaceId); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override(ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, amount); } /// verify that an address is in the whitelist function isAddressWhitelisted(bytes32[] memory proof, address _address) internal view returns (bool) { return isAddressInMerkleRoot(whitelistMerkleRoot, proof, _address); } /// verify that an address is in the og-list function isAddressOGListed(bytes32[] memory proof, address _address) internal view returns (bool) { return isAddressInMerkleRoot(ogMerkleRoot, proof, _address); } function isAddressInMerkleRoot( bytes32 merkleRoot, bytes32[] memory proof, address _address ) internal pure returns (bool) { return proof.verify(merkleRoot, keccak256(abi.encodePacked(_address))); } // ### // ### Modifiers ### modifier activeSale(bool sale) { require(sale, "this sale is not active"); _; } modifier correctWhitelistPayment(uint8 amount) { require( whitelistTokenPrice.mul(amount) <= msg.value, "Not enough ether to mint" ); _; } modifier correctPublicPayment(uint8 amount) { require( publicTokenPrice.mul(amount) <= msg.value, "Not enough ether to mint" ); _; } modifier whitelisted(bytes32[] calldata proof, uint8 amount) { require( isAddressWhitelisted(proof, msg.sender), "Address not whitelisted" ); require( amount + whitelistedMints[msg.sender] <= preSaleTokensPerAddress, "Exceeded limit of pre-sale tokens" ); _; } modifier ogListed(bytes32[] calldata proof, uint8 amount) { require( isAddressOGListed(proof, msg.sender), "Address not whitelisted" ); require( amount + ogMints[msg.sender] <= preSaleTokensPerAddress, "Exceeded limit of og-sale tokens" ); _; } modifier amountWithinMaxTokens(uint8 amount) { require( mintedPublicTokens.add(amount) <= maxPublicMintableTokens.sub(reservedTokens()), "Not enough tokens left to mint" ); _; } // ### }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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 v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// 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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"address","name":"to","type":"address"}],"name":"collabMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collabReservedTokens","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":"maxPublicMintableTokens","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":"maxTokensPerTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedCollabTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedPublicTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedReservedTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ogMints","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"ogSaleMint","outputs":[],"stateMutability":"payable","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":"uint8","name":"","type":"uint8"}],"name":"partialReveals","outputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint256","name":"tokenCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSaleTokensPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"address","name":"to","type":"address"}],"name":"reservedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokensPerTxn","type":"uint256"}],"name":"setMaxMintsPerTxn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensPerAddress","type":"uint256"}],"name":"setMaxMintsPerWhitelistedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistTokenPrice","type":"uint256"},{"internalType":"uint256","name":"_publicTokenPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setOGMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_ogSaleIsActive","type":"bool"},{"internalType":"bool","name":"_preSaleIsActive","type":"bool"},{"internalType":"bool","name":"_publicSaleIsActive","type":"bool"}],"name":"setOGPreAndPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setUnrevealedBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","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":[],"name":"teamReservedTokens","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedMints","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526122b8600b81905566b1a2bc2ec50000600d5567011c37937e080000600e556003600f5560056010556011805460ff1916601e179055606260138190556200004c9162000352565b601555602080546001600160a01b031990811673d52a48a06d63754972f90cd22d2b91649cfdf2311790915560218054821673261ac500143171b14adf7729d33eecd1c58592061790556022805482167371917bc9f1cc593ab86ede456e54ff1de33362d3179055602380548216734a53132d7c16240a834f165237acb72be8e85b3a179055602480548216730c7a1ae154717fda46a8cc52913c63572fdb66e8179055602580548216735df222b967b0c609573df5e7133961672293530317905560268054821673327c4cde7c1980d5327982ca2fca195a20bb78251790556027805482167392265f4c85619ec8b70bb179ff1f86c56e54d348179055602880548216739b7df2a8fd78923bb5e3329aa7e024a613a92d5f179055602980548216739b80a7d7e4cd5cb47a8bee52fe312dc9267adabf179055602a8054821673afbfe9fa0348eeefd281fe317bde861dc4f74910179055602b805490911673bd9a34ebc30ce0328b759038d41546a354c9bd74179055348015620001d057600080fd5b506040805180820182526004808252630ac8a86960e31b6020808401828152855180870190965292855284015281519192916200021091600091620002ac565b50805162000226906001906020840190620002ac565b505050620002436200023d6200025660201b60201c565b6200025a565b600a805460ff60a01b19169055620003b5565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002ba9062000378565b90600052602060002090601f016020900481019282620002de576000855562000329565b82601f10620002f957805160ff191683800117855562000329565b8280016001018555821562000329579182015b82811115620003295782518255916020019190600101906200030c565b50620003379291506200033b565b5090565b5b808211156200033757600081556001016200033c565b6000828210156200037357634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806200038d57607f821691505b60208210811415620003af57634e487b7160e01b600052602260045260246000fd5b50919050565b613ac480620003c56000396000f3fe60806040526004361061036b5760003560e01c8063647d2d42116101c6578063b88d4fde116100f7578063e185a2cc11610095578063f2fde38b1161006f578063f2fde38b146109d7578063f34341c7146109f7578063f7c64f9e14610a0d578063fa468ead14610a2d57600080fd5b8063e185a2cc14610958578063e831574214610978578063e985e9c51461098e57600080fd5b8063c1ba3938116100d1578063c1ba3938146108f2578063c87b56dd14610908578063ca665d2c14610928578063df643f0c1461093e57600080fd5b8063b88d4fde1461089c578063bd32fb66146108bc578063bef666fb146108dc57600080fd5b80638d4e4cc511610164578063949e180a1161013e578063949e180a1461083a57806395d89b4114610854578063a22cb46514610869578063ad906d681461088957600080fd5b80638d4e4cc5146107e95780638da5cb5b146108095780639125f4ce1461082757600080fd5b8063715018a6116101a0578063715018a6146107965780638456cb59146107ab57806385307950146107c0578063858e83b5146107d657600080fd5b8063647d2d42146107265780636852a8551461074657806370a082311461077657600080fd5b80632c51f5ab116102a05780634c10337c1161023e57806355f804b31161021857806355f804b31461067e5780635c975abb1461069e5780635d761f8e146106bd5780636352211e1461070657600080fd5b80634c10337c146106285780634f6ccce71461063e57806355361eda1461065e57600080fd5b80633ba5939d1161027a5780633ba5939d146105c95780633ccfd60b146105de5780633f4ba83a146105f357806342842e0e1461060857600080fd5b80632c51f5ab146105735780632daccbe9146105895780632f745c59146105a957600080fd5b80630fcf2e751161030d57806318160ddd116102e757806318160ddd146104ff5780631f0234d81461051457806323b872dd1461053357806325c2c0201461055357600080fd5b80630fcf2e75146104a757806315a55347146104c7578063162094c4146104df57600080fd5b8063081812fc11610349578063081812fc146103e957806308e0f0de14610421578063095ea7b31461046357806309c1a36d1461048357600080fd5b806301ffc9a7146103705780630442bfa8146103a557806306fdde03146103c7575b600080fd5b34801561037c57600080fd5b5061039061038b366004613285565b610a43565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c03660046132a2565b610a54565b005b3480156103d357600080fd5b506103dc610a92565b60405161039c919061331c565b3480156103f557600080fd5b5061040961040436600461332f565b610b24565b6040516001600160a01b03909116815260200161039c565b34801561042d57600080fd5b5061045161043c366004613364565b60196020526000908152604090205460ff1681565b60405160ff909116815260200161039c565b34801561046f57600080fd5b506103c561047e36600461337f565b610bb9565b34801561048f57600080fd5b5061049960125481565b60405190815260200161039c565b3480156104b357600080fd5b506016546103909062010000900460ff1681565b3480156104d357600080fd5b5060115460ff16610499565b3480156104eb57600080fd5b506103c56104fa366004613455565b610ccf565b34801561050b57600080fd5b50600854610499565b34801561052057600080fd5b5060165461039090610100900460ff1681565b34801561053f57600080fd5b506103c561054e36600461349c565b610d91565b34801561055f57600080fd5b506103c561056e36600461332f565b610dc2565b34801561057f57600080fd5b50610499600c5481565b34801561059557600080fd5b506103c56105a43660046134e9565b610df1565b3480156105b557600080fd5b506104996105c436600461337f565b610ee9565b3480156105d557600080fd5b506103c5610f7f565b3480156105ea57600080fd5b506103c5611137565b3480156105ff57600080fd5b506103c5611388565b34801561061457600080fd5b506103c561062336600461349c565b6113bc565b34801561063457600080fd5b50610499600e5481565b34801561064a57600080fd5b5061049961065936600461332f565b6113d7565b34801561066a57600080fd5b506103c56106793660046134e9565b61146a565b34801561068a57600080fd5b506103c561069936600461351c565b6115c7565b3480156106aa57600080fd5b50600a54600160a01b900460ff16610390565b3480156106c957600080fd5b506106f16106d8366004613551565b601d602052600090815260409020805460019091015482565b6040805192835260208301919091520161039c565b34801561071257600080fd5b5061040961072136600461332f565b611608565b34801561073257600080fd5b506103c561074136600461357c565b61167f565b34801561075257600080fd5b50610451610761366004613364565b601b6020526000908152604090205460ff1681565b34801561078257600080fd5b50610499610791366004613364565b6116e2565b3480156107a257600080fd5b506103c5611769565b3480156107b757600080fd5b506103c561179d565b3480156107cc57600080fd5b5061049960145481565b6103c56107e4366004613551565b6117cf565b3480156107f557600080fd5b506103c561080436600461332f565b611886565b34801561081557600080fd5b50600a546001600160a01b0316610409565b6103c56108353660046135bf565b6118b5565b34801561084657600080fd5b506011546104519060ff1681565b34801561086057600080fd5b506103dc611ae1565b34801561087557600080fd5b506103c561088436600461363a565b611af0565b6103c56108973660046135bf565b611afb565b3480156108a857600080fd5b506103c56108b7366004613664565b611ce9565b3480156108c857600080fd5b506103c56108d736600461332f565b611d1b565b3480156108e857600080fd5b5061049960155481565b3480156108fe57600080fd5b50610499600f5481565b34801561091457600080fd5b506103dc61092336600461332f565b611d4a565b34801561093457600080fd5b5061049960135481565b34801561094a57600080fd5b506016546103909060ff1681565b34801561096457600080fd5b506103c561097336600461351c565b612149565b34801561098457600080fd5b50610499600b5481565b34801561099a57600080fd5b506103906109a93660046136e0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109e357600080fd5b506103c56109f2366004613364565b612186565b348015610a0357600080fd5b5061049960105481565b348015610a1957600080fd5b506103c5610a2836600461332f565b612221565b348015610a3957600080fd5b50610499600d5481565b6000610a4e82612250565b92915050565b600a546001600160a01b03163314610a875760405162461bcd60e51b8152600401610a7e906136fc565b60405180910390fd5b600d91909155600e55565b606060008054610aa190613731565b80601f0160208091040260200160405190810160405280929190818152602001828054610acd90613731565b8015610b1a5780601f10610aef57610100808354040283529160200191610b1a565b820191906000526020600020905b815481529060010190602001808311610afd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b9d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7e565b506000908152600460205260409020546001600160a01b031690565b6000610bc482611608565b9050806001600160a01b0316836001600160a01b03161415610c325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a7e565b336001600160a01b0382161480610c4e5750610c4e81336109a9565b610cc05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a7e565b610cca8383612275565b505050565b600a546001600160a01b03163314610cf95760405162461bcd60e51b8152600401610a7e906136fc565b6000828152600260205260409020546001600160a01b0316610d725760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7e565b6000828152602c602090815260409091208251610cca928401906131d6565b610d9b33826122e3565b610db75760405162461bcd60e51b8152600401610a7e9061376c565b610cca8383836123da565b600a546001600160a01b03163314610dec5760405162461bcd60e51b8152600401610a7e906136fc565b601a55565b600a546001600160a01b03163314610e1b5760405162461bcd60e51b8152600401610a7e906136fc565b601354601454610e2e9060ff8516612585565b1115610e7c5760405162461bcd60e51b815260206004820152601f60248201527f43616e206e6f74206d696e74206d6f7265207468616e207265736572766564006044820152606401610a7e565b6000601454601554610e8e91906137d3565b905060005b8360ff168160ff161015610ec957610eb783610eb260ff8416856137d3565b612598565b80610ec1816137eb565b915050610e93565b508260ff1660146000828254610edf91906137d3565b9091555050505050565b6000610ef4836116e2565b8210610f565760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a7e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610fa95760405162461bcd60e51b8152600401610a7e906136fc565b601e54600160ff9091161115610ff95760405162461bcd60e51b815260206004820152601560248201527443616e206f6e6c792072657665616c20747769636560581b6044820152606401610a7e565b601e5460ff16158061100e5750601554600c54145b61106b5760405162461bcd60e51b815260206004820152602860248201527f4e6565647320616c6c20746f6b656e7320736f6c64206265666f7265206e65786044820152671d081c995d99585b60c21b6064820152608401610a7e565b601554604080514460208201524291810191909152436060820152600091906080016040516020818303038152906040528051906020012060001c6110b09190613821565b905060405180604001604052808281526020016110da601f54600c546125b290919063ffffffff16565b9052601e805460ff9081166000908152601d6020908152604082208551815594015160019094019390935581541691611112836137eb565b91906101000a81548160ff021916908360ff16021790555050600c54601f8190555050565b600a546001600160a01b031633146111615760405162461bcd60e51b8152600401610a7e906136fc565b60006103e86111714760d2613835565b61117b9190613854565b905060006103e861118d4760c8613835565b6111979190613854565b905060006103e86111a9476078613835565b6111b39190613854565b905060006103e86111c5476064613835565b6111cf9190613854565b905060006103e86111e1476064613835565b6111eb9190613854565b905060006103e86111fd476064613835565b6112079190613854565b905060006103e8611219476019613835565b6112239190613854565b905060006103e8611235476019613835565b61123f9190613854565b905060006103e8611251476014613835565b61125b9190613854565b602054909150611274906001600160a01b0316896125be565b60215461128a906001600160a01b0316886125be565b6024546112a0906001600160a01b0316856125be565b6022546112b6906001600160a01b0316846125be565b6023546112cc906001600160a01b0316836125be565b6025546112ec906001600160a01b03166112e7600384613854565b6125be565b602654611307906001600160a01b03166112e7600384613854565b602754611322906001600160a01b03166112e7600384613854565b602954611338906001600160a01b0316866125be565b60285461134e906001600160a01b0316876125be565b602a54611364906001600160a01b03168a6125be565b602b54479061137c906001600160a01b0316826125be565b50505050505050505050565b600a546001600160a01b031633146113b25760405162461bcd60e51b8152600401610a7e906136fc565b6113ba612658565b565b610cca83838360405180602001604052806000815250611ce9565b60006113e260085490565b82106114455760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a7e565b6008828154811061145857611458613868565b90600052602060002001549050919050565b600a546001600160a01b031633146114945760405162461bcd60e51b8152600401610a7e906136fc565b60115460125460ff918216916114ac91908516612585565b11156114fa5760405162461bcd60e51b815260206004820152601f60248201527f43616e206e6f74206d696e74206d6f7265207468616e207265736572766564006044820152606401610a7e565b601554600c5461150d9060ff8516612585565b11156115545760405162461bcd60e51b8152602060048201526016602482015275139bc81d1bdad95b9cc81b19599d081d1bc81b5a5b9d60521b6044820152606401610a7e565b60005b8260ff168160ff16101561158c5761157a828260ff16600c54610eb291906137d3565b80611584816137eb565b915050611557565b508160ff16601260008282546115a291906137d3565b925050819055508160ff16600c60008282546115be91906137d3565b90915550505050565b600a546001600160a01b031633146115f15760405162461bcd60e51b8152600401610a7e906136fc565b80516116049060179060208401906131d6565b5050565b6000818152600260205260408120546001600160a01b031680610a4e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a7e565b600a546001600160a01b031633146116a95760405162461bcd60e51b8152600401610a7e906136fc565b6016805461ffff191693151561ff00191693909317610100921515929092029190911762ff000019166201000091151591909102179055565b60006001600160a01b03821661174d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a7e565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146117935760405162461bcd60e51b8152600401610a7e906136fc565b6113ba60006126f5565b600a546001600160a01b031633146117c75760405162461bcd60e51b8152600401610a7e906136fc565b6113ba612747565b60165462010000900460ff16806117f85760405162461bcd60e51b8152600401610a7e9061387e565b81346118128260ff16600e546127cf90919063ffffffff16565b11156118305760405162461bcd60e51b8152600401610a7e906138b5565b8261184961184060115460ff1690565b601554906125b2565b600c546118599060ff8416612585565b11156118775760405162461bcd60e51b8152600401610a7e906138ec565b611880846127db565b50505050565b600a546001600160a01b031633146118b05760405162461bcd60e51b8152600401610a7e906136fc565b600f55565b60165460ff16806118d85760405162461bcd60e51b8152600401610a7e9061387e565b8383836119198383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152503392506128d3915050565b61195f5760405162461bcd60e51b81526020600482015260176024820152761059191c995cdcc81b9bdd081dda1a5d195b1a5cdd1959604a1b6044820152606401610a7e565b600f543360009081526019602052604090205461197f9060ff1683613923565b60ff1611156119d05760405162461bcd60e51b815260206004820181905260248201527f4578636565646564206c696d6974206f66206f672d73616c6520746f6b656e736044820152606401610a7e565b846119e061184060115460ff1690565b600c546119f09060ff8416612585565b1115611a0e5760405162461bcd60e51b8152600401610a7e906138ec565b3360009081526019602052604090205460ff1615611a5b57600d543490611a389060ff89166127cf565b1115611a565760405162461bcd60e51b8152600401610a7e906138b5565b611a94565b34611a76611a6a600189613948565b600d549060ff166127cf565b1115611a945760405162461bcd60e51b8152600401610a7e906138b5565b611a9d866127db565b3360009081526019602052604081208054889290611abf90849060ff16613923565b92506101000a81548160ff021916908360ff1602179055505050505050505050565b606060018054610aa190613731565b6116043383836128e2565b601654610100900460ff1680611b235760405162461bcd60e51b8152600401610a7e9061387e565b8134611b3d8260ff16600d546127cf90919063ffffffff16565b1115611b5b5760405162461bcd60e51b8152600401610a7e906138b5565b848484611b9c8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152503392506129b1915050565b611be25760405162461bcd60e51b81526020600482015260176024820152761059191c995cdcc81b9bdd081dda1a5d195b1a5cdd1959604a1b6044820152606401610a7e565b600f54336000908152601b6020526040902054611c029060ff1683613923565b60ff161115611c5d5760405162461bcd60e51b815260206004820152602160248201527f4578636565646564206c696d6974206f66207072652d73616c6520746f6b656e6044820152607360f81b6064820152608401610a7e565b85611c6d61184060115460ff1690565b600c54611c7d9060ff8416612585565b1115611c9b5760405162461bcd60e51b8152600401610a7e906138ec565b611ca4876127db565b336000908152601b602052604081208054899290611cc690849060ff16613923565b92506101000a81548160ff021916908360ff160217905550505050505050505050565b611cf333836122e3565b611d0f5760405162461bcd60e51b8152600401610a7e9061376c565b611880848484846129c0565b600a546001600160a01b03163314611d455760405162461bcd60e51b8152600401610a7e906136fc565b601c55565b6000818152600260205260409020546060906001600160a01b0316611dc95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a7e565b6000611dd36129f3565b90506015548310611e105780611de884612a02565b604051602001611df992919061396b565b604051602081830303815290604052915050919050565b601f548310611eac5760188054611e2690613731565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5290613731565b8015611e9f5780601f10611e7457610100808354040283529160200191611e9f565b820191906000526020600020905b815481529060010190602001808311611e8257829003601f168201915b5050505050915050919050565b6000838152602c602052604081208054611ec590613731565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef190613731565b8015611f3e5780601f10611f1357610100808354040283529160200191611f3e565b820191906000526020600020905b815481529060010190602001808311611f2157829003601f168201915b50505050509050600081511115611f56579392505050565b601e5460009060ff1660011480611f96575060008052601d6020527f0a51588b1664495f089dd83d2d26f247920f94a57a4a09f20cf068efc8f82bd55485105b156120145760155460008052601d6020527f0a51588b1664495f089dd83d2d26f247920f94a57a4a09f20cf068efc8f82bd454611fd49087906137d3565b611fde9190613821565b905082611fea82612a02565b604051602001611ffb92919061396b565b6040516020818303038152906040529350505050919050565b601d6020527f0a51588b1664495f089dd83d2d26f247920f94a57a4a09f20cf068efc8f82bd454600160009081527f9de6abd965d55c3bb0cdbf6fa175050624c6ff8fe86f682dc08f2a450ede22785461206f908890612585565b905080925081811061210657612085828261399a565b6001600052601d6020527f9de6abd965d55c3bb0cdbf6fa175050624c6ff8fe86f682dc08f2a450ede2279549091506120be9082613821565b60008052601d6020527f0a51588b1664495f089dd83d2d26f247920f94a57a4a09f20cf068efc8f82bd5549091506120f7908290612585565b925061210382846137d3565b92505b8461211d601554856121189190613821565b612a02565b60405160200161212e92919061396b565b60405160208183030381529060405295505050505050919050565b600a546001600160a01b031633146121735760405162461bcd60e51b8152600401610a7e906136fc565b80516116049060189060208401906131d6565b600a546001600160a01b031633146121b05760405162461bcd60e51b8152600401610a7e906136fc565b6001600160a01b0381166122155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7e565b61221e816126f5565b50565b600a546001600160a01b0316331461224b5760405162461bcd60e51b8152600401610a7e906136fc565b601055565b60006001600160e01b0319821663780e9d6360e01b1480610a4e5750610a4e82612b2b565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122aa82611608565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661235c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7e565b600061236783611608565b9050806001600160a01b0316846001600160a01b031614806123a25750836001600160a01b031661239784610b24565b6001600160a01b0316145b806123d257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123ed82611608565b6001600160a01b0316146124555760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a7e565b6001600160a01b0382166124b75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a7e565b6124c2838383612b7b565b6124cd600082612275565b6001600160a01b03831660009081526003602052604081208054600192906124f690849061399a565b90915550506001600160a01b03821660009081526003602052604081208054600192906125249084906137d3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061259182846137d3565b9392505050565b611604828260405180602001604052806000815250612b86565b6000612591828461399a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461260b576040519150601f19603f3d011682016040523d82523d6000602084013e612610565b606091505b5050905080610cca5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321032ba3432b960611b6044820152606401610a7e565b600a54600160a01b900460ff166126a85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a7e565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a54600160a01b900460ff16156127945760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a7e565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126d83390565b60006125918284613835565b600a54600160a01b900460ff16156128285760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a7e565b6010548160ff16111561287d5760405162461bcd60e51b815260206004820152601760248201527f546f6f206d616e79206d696e747320696e20612074786e0000000000000000006044820152606401610a7e565b60005b8160ff168160ff1610156128b5576128a3338260ff16600c54610eb291906137d3565b806128ad816137eb565b915050612880565b508060ff16600c60008282546128cb91906137d3565b909155505050565b6000612591601a548484612bb9565b816001600160a01b0316836001600160a01b031614156129445760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a7e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000612591601c548484612bb9565b6129cb8484846123da565b6129d784848484612c07565b6118805760405162461bcd60e51b8152600401610a7e906139b1565b606060178054610aa190613731565b606081612a265750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a505780612a3a81613a03565b9150612a499050600a83613854565b9150612a2a565b60008167ffffffffffffffff811115612a6b57612a6b6133a9565b6040519080825280601f01601f191660200182016040528015612a95576020820181803683370190505b509050815b8515612b2257612aab60018261399a565b90506000612aba600a88613854565b612ac590600a613835565b612acf908861399a565b612ada906030613923565b905060008160f81b905080848481518110612af757612af7613868565b60200101906001600160f81b031916908160001a905350612b19600a89613854565b97505050612a9a565b50949350505050565b60006001600160e01b031982166380ac58cd60e01b1480612b5c57506001600160e01b03198216635b5e139f60e01b145b80610a4e57506301ffc9a760e01b6001600160e01b0319831614610a4e565b610cca838383612d05565b612b908383612d7e565b612b9d6000848484612c07565b610cca5760405162461bcd60e51b8152600401610a7e906139b1565b6040516bffffffffffffffffffffffff19606083901b1660208201526000906123d29085906034016040516020818303038152906040528051906020012085612ecc9092919063ffffffff16565b60006001600160a01b0384163b15612cfa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c4b903390899088908890600401613a1e565b6020604051808303816000875af1925050508015612c86575060408051601f3d908101601f19168201909252612c8391810190613a5b565b60015b612ce0573d808015612cb4576040519150601f19603f3d011682016040523d82523d6000602084013e612cb9565b606091505b508051612cd85760405162461bcd60e51b8152600401610a7e906139b1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123d2565b506001949350505050565b612d10838383612ee2565b600a54600160a01b900460ff1615610cca5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610a7e565b6001600160a01b038216612dd45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a7e565b6000818152600260205260409020546001600160a01b031615612e395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a7e565b612e4560008383612b7b565b6001600160a01b0382166000908152600360205260408120805460019290612e6e9084906137d3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600082612ed98584612f9a565b14949350505050565b6001600160a01b038316612f3d57612f3881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f60565b816001600160a01b0316836001600160a01b031614612f6057612f608382613046565b6001600160a01b038216612f7757610cca816130e3565b826001600160a01b0316826001600160a01b031614610cca57610cca8282613192565b600081815b845181101561303e576000858281518110612fbc57612fbc613868565b60200260200101519050808311612ffe57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061302b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061303681613a03565b915050612f9f565b509392505050565b60006001613053846116e2565b61305d919061399a565b6000838152600760205260409020549091508082146130b0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130f59060019061399a565b6000838152600960205260408120546008805493945090928490811061311d5761311d613868565b90600052602060002001549050806008838154811061313e5761313e613868565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061317657613176613a78565b6001900381819060005260206000200160009055905550505050565b600061319d836116e2565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546131e290613731565b90600052602060002090601f016020900481019282613204576000855561324a565b82601f1061321d57805160ff191683800117855561324a565b8280016001018555821561324a579182015b8281111561324a57825182559160200191906001019061322f565b5061325692915061325a565b5090565b5b80821115613256576000815560010161325b565b6001600160e01b03198116811461221e57600080fd5b60006020828403121561329757600080fd5b81356125918161326f565b600080604083850312156132b557600080fd5b50508035926020909101359150565b60005b838110156132df5781810151838201526020016132c7565b838111156118805750506000910152565b600081518084526133088160208601602086016132c4565b601f01601f19169290920160200192915050565b60208152600061259160208301846132f0565b60006020828403121561334157600080fd5b5035919050565b80356001600160a01b038116811461335f57600080fd5b919050565b60006020828403121561337657600080fd5b61259182613348565b6000806040838503121561339257600080fd5b61339b83613348565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156133da576133da6133a9565b604051601f8501601f19908116603f01168101908282118183101715613402576134026133a9565b8160405280935085815286868601111561341b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261344657600080fd5b612591838335602085016133bf565b6000806040838503121561346857600080fd5b82359150602083013567ffffffffffffffff81111561348657600080fd5b61349285828601613435565b9150509250929050565b6000806000606084860312156134b157600080fd5b6134ba84613348565b92506134c860208501613348565b9150604084013590509250925092565b803560ff8116811461335f57600080fd5b600080604083850312156134fc57600080fd5b613505836134d8565b915061351360208401613348565b90509250929050565b60006020828403121561352e57600080fd5b813567ffffffffffffffff81111561354557600080fd5b6123d284828501613435565b60006020828403121561356357600080fd5b612591826134d8565b8035801515811461335f57600080fd5b60008060006060848603121561359157600080fd5b61359a8461356c565b92506135a86020850161356c565b91506135b66040850161356c565b90509250925092565b6000806000604084860312156135d457600080fd5b833567ffffffffffffffff808211156135ec57600080fd5b818601915086601f83011261360057600080fd5b81358181111561360f57600080fd5b8760208260051b850101111561362457600080fd5b6020928301955093506135b691860190506134d8565b6000806040838503121561364d57600080fd5b61365683613348565b91506135136020840161356c565b6000806000806080858703121561367a57600080fd5b61368385613348565b935061369160208601613348565b925060408501359150606085013567ffffffffffffffff8111156136b457600080fd5b8501601f810187136136c557600080fd5b6136d4878235602084016133bf565b91505092959194509250565b600080604083850312156136f357600080fd5b61350583613348565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061374557607f821691505b6020821081141561376657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156137e6576137e66137bd565b500190565b600060ff821660ff811415613802576138026137bd565b60010192915050565b634e487b7160e01b600052601260045260246000fd5b6000826138305761383061380b565b500690565b600081600019048311821515161561384f5761384f6137bd565b500290565b6000826138635761386361380b565b500490565b634e487b7160e01b600052603260045260246000fd5b60208082526017908201527f746869732073616c65206973206e6f7420616374697665000000000000000000604082015260600190565b60208082526018908201527f4e6f7420656e6f75676820657468657220746f206d696e740000000000000000604082015260600190565b6020808252601e908201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e740000604082015260600190565b600060ff821660ff84168060ff03821115613940576139406137bd565b019392505050565b600060ff821660ff841680821015613962576139626137bd565b90039392505050565b6000835161397d8184602088016132c4565b8351908301906139918183602088016132c4565b01949350505050565b6000828210156139ac576139ac6137bd565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415613a1757613a176137bd565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a51908301846132f0565b9695505050505050565b600060208284031215613a6d57600080fd5b81516125918161326f565b634e487b7160e01b600052603160045260246000fdfea264697066735822122063a82c8fb53904a2755609eaf2f414395889cf027b03270faf37159c39c2d86b64736f6c634300080a0033
Deployed Bytecode
0x60806040526004361061036b5760003560e01c8063647d2d42116101c6578063b88d4fde116100f7578063e185a2cc11610095578063f2fde38b1161006f578063f2fde38b146109d7578063f34341c7146109f7578063f7c64f9e14610a0d578063fa468ead14610a2d57600080fd5b8063e185a2cc14610958578063e831574214610978578063e985e9c51461098e57600080fd5b8063c1ba3938116100d1578063c1ba3938146108f2578063c87b56dd14610908578063ca665d2c14610928578063df643f0c1461093e57600080fd5b8063b88d4fde1461089c578063bd32fb66146108bc578063bef666fb146108dc57600080fd5b80638d4e4cc511610164578063949e180a1161013e578063949e180a1461083a57806395d89b4114610854578063a22cb46514610869578063ad906d681461088957600080fd5b80638d4e4cc5146107e95780638da5cb5b146108095780639125f4ce1461082757600080fd5b8063715018a6116101a0578063715018a6146107965780638456cb59146107ab57806385307950146107c0578063858e83b5146107d657600080fd5b8063647d2d42146107265780636852a8551461074657806370a082311461077657600080fd5b80632c51f5ab116102a05780634c10337c1161023e57806355f804b31161021857806355f804b31461067e5780635c975abb1461069e5780635d761f8e146106bd5780636352211e1461070657600080fd5b80634c10337c146106285780634f6ccce71461063e57806355361eda1461065e57600080fd5b80633ba5939d1161027a5780633ba5939d146105c95780633ccfd60b146105de5780633f4ba83a146105f357806342842e0e1461060857600080fd5b80632c51f5ab146105735780632daccbe9146105895780632f745c59146105a957600080fd5b80630fcf2e751161030d57806318160ddd116102e757806318160ddd146104ff5780631f0234d81461051457806323b872dd1461053357806325c2c0201461055357600080fd5b80630fcf2e75146104a757806315a55347146104c7578063162094c4146104df57600080fd5b8063081812fc11610349578063081812fc146103e957806308e0f0de14610421578063095ea7b31461046357806309c1a36d1461048357600080fd5b806301ffc9a7146103705780630442bfa8146103a557806306fdde03146103c7575b600080fd5b34801561037c57600080fd5b5061039061038b366004613285565b610a43565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c03660046132a2565b610a54565b005b3480156103d357600080fd5b506103dc610a92565b60405161039c919061331c565b3480156103f557600080fd5b5061040961040436600461332f565b610b24565b6040516001600160a01b03909116815260200161039c565b34801561042d57600080fd5b5061045161043c366004613364565b60196020526000908152604090205460ff1681565b60405160ff909116815260200161039c565b34801561046f57600080fd5b506103c561047e36600461337f565b610bb9565b34801561048f57600080fd5b5061049960125481565b60405190815260200161039c565b3480156104b357600080fd5b506016546103909062010000900460ff1681565b3480156104d357600080fd5b5060115460ff16610499565b3480156104eb57600080fd5b506103c56104fa366004613455565b610ccf565b34801561050b57600080fd5b50600854610499565b34801561052057600080fd5b5060165461039090610100900460ff1681565b34801561053f57600080fd5b506103c561054e36600461349c565b610d91565b34801561055f57600080fd5b506103c561056e36600461332f565b610dc2565b34801561057f57600080fd5b50610499600c5481565b34801561059557600080fd5b506103c56105a43660046134e9565b610df1565b3480156105b557600080fd5b506104996105c436600461337f565b610ee9565b3480156105d557600080fd5b506103c5610f7f565b3480156105ea57600080fd5b506103c5611137565b3480156105ff57600080fd5b506103c5611388565b34801561061457600080fd5b506103c561062336600461349c565b6113bc565b34801561063457600080fd5b50610499600e5481565b34801561064a57600080fd5b5061049961065936600461332f565b6113d7565b34801561066a57600080fd5b506103c56106793660046134e9565b61146a565b34801561068a57600080fd5b506103c561069936600461351c565b6115c7565b3480156106aa57600080fd5b50600a54600160a01b900460ff16610390565b3480156106c957600080fd5b506106f16106d8366004613551565b601d602052600090815260409020805460019091015482565b6040805192835260208301919091520161039c565b34801561071257600080fd5b5061040961072136600461332f565b611608565b34801561073257600080fd5b506103c561074136600461357c565b61167f565b34801561075257600080fd5b50610451610761366004613364565b601b6020526000908152604090205460ff1681565b34801561078257600080fd5b50610499610791366004613364565b6116e2565b3480156107a257600080fd5b506103c5611769565b3480156107b757600080fd5b506103c561179d565b3480156107cc57600080fd5b5061049960145481565b6103c56107e4366004613551565b6117cf565b3480156107f557600080fd5b506103c561080436600461332f565b611886565b34801561081557600080fd5b50600a546001600160a01b0316610409565b6103c56108353660046135bf565b6118b5565b34801561084657600080fd5b506011546104519060ff1681565b34801561086057600080fd5b506103dc611ae1565b34801561087557600080fd5b506103c561088436600461363a565b611af0565b6103c56108973660046135bf565b611afb565b3480156108a857600080fd5b506103c56108b7366004613664565b611ce9565b3480156108c857600080fd5b506103c56108d736600461332f565b611d1b565b3480156108e857600080fd5b5061049960155481565b3480156108fe57600080fd5b50610499600f5481565b34801561091457600080fd5b506103dc61092336600461332f565b611d4a565b34801561093457600080fd5b5061049960135481565b34801561094a57600080fd5b506016546103909060ff1681565b34801561096457600080fd5b506103c561097336600461351c565b612149565b34801561098457600080fd5b50610499600b5481565b34801561099a57600080fd5b506103906109a93660046136e0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109e357600080fd5b506103c56109f2366004613364565b612186565b348015610a0357600080fd5b5061049960105481565b348015610a1957600080fd5b506103c5610a2836600461332f565b612221565b348015610a3957600080fd5b50610499600d5481565b6000610a4e82612250565b92915050565b600a546001600160a01b03163314610a875760405162461bcd60e51b8152600401610a7e906136fc565b60405180910390fd5b600d91909155600e55565b606060008054610aa190613731565b80601f0160208091040260200160405190810160405280929190818152602001828054610acd90613731565b8015610b1a5780601f10610aef57610100808354040283529160200191610b1a565b820191906000526020600020905b815481529060010190602001808311610afd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b9d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7e565b506000908152600460205260409020546001600160a01b031690565b6000610bc482611608565b9050806001600160a01b0316836001600160a01b03161415610c325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a7e565b336001600160a01b0382161480610c4e5750610c4e81336109a9565b610cc05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a7e565b610cca8383612275565b505050565b600a546001600160a01b03163314610cf95760405162461bcd60e51b8152600401610a7e906136fc565b6000828152600260205260409020546001600160a01b0316610d725760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7e565b6000828152602c602090815260409091208251610cca928401906131d6565b610d9b33826122e3565b610db75760405162461bcd60e51b8152600401610a7e9061376c565b610cca8383836123da565b600a546001600160a01b03163314610dec5760405162461bcd60e51b8152600401610a7e906136fc565b601a55565b600a546001600160a01b03163314610e1b5760405162461bcd60e51b8152600401610a7e906136fc565b601354601454610e2e9060ff8516612585565b1115610e7c5760405162461bcd60e51b815260206004820152601f60248201527f43616e206e6f74206d696e74206d6f7265207468616e207265736572766564006044820152606401610a7e565b6000601454601554610e8e91906137d3565b905060005b8360ff168160ff161015610ec957610eb783610eb260ff8416856137d3565b612598565b80610ec1816137eb565b915050610e93565b508260ff1660146000828254610edf91906137d3565b9091555050505050565b6000610ef4836116e2565b8210610f565760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a7e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610fa95760405162461bcd60e51b8152600401610a7e906136fc565b601e54600160ff9091161115610ff95760405162461bcd60e51b815260206004820152601560248201527443616e206f6e6c792072657665616c20747769636560581b6044820152606401610a7e565b601e5460ff16158061100e5750601554600c54145b61106b5760405162461bcd60e51b815260206004820152602860248201527f4e6565647320616c6c20746f6b656e7320736f6c64206265666f7265206e65786044820152671d081c995d99585b60c21b6064820152608401610a7e565b601554604080514460208201524291810191909152436060820152600091906080016040516020818303038152906040528051906020012060001c6110b09190613821565b905060405180604001604052808281526020016110da601f54600c546125b290919063ffffffff16565b9052601e805460ff9081166000908152601d6020908152604082208551815594015160019094019390935581541691611112836137eb565b91906101000a81548160ff021916908360ff16021790555050600c54601f8190555050565b600a546001600160a01b031633146111615760405162461bcd60e51b8152600401610a7e906136fc565b60006103e86111714760d2613835565b61117b9190613854565b905060006103e861118d4760c8613835565b6111979190613854565b905060006103e86111a9476078613835565b6111b39190613854565b905060006103e86111c5476064613835565b6111cf9190613854565b905060006103e86111e1476064613835565b6111eb9190613854565b905060006103e86111fd476064613835565b6112079190613854565b905060006103e8611219476019613835565b6112239190613854565b905060006103e8611235476019613835565b61123f9190613854565b905060006103e8611251476014613835565b61125b9190613854565b602054909150611274906001600160a01b0316896125be565b60215461128a906001600160a01b0316886125be565b6024546112a0906001600160a01b0316856125be565b6022546112b6906001600160a01b0316846125be565b6023546112cc906001600160a01b0316836125be565b6025546112ec906001600160a01b03166112e7600384613854565b6125be565b602654611307906001600160a01b03166112e7600384613854565b602754611322906001600160a01b03166112e7600384613854565b602954611338906001600160a01b0316866125be565b60285461134e906001600160a01b0316876125be565b602a54611364906001600160a01b03168a6125be565b602b54479061137c906001600160a01b0316826125be565b50505050505050505050565b600a546001600160a01b031633146113b25760405162461bcd60e51b8152600401610a7e906136fc565b6113ba612658565b565b610cca83838360405180602001604052806000815250611ce9565b60006113e260085490565b82106114455760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a7e565b6008828154811061145857611458613868565b90600052602060002001549050919050565b600a546001600160a01b031633146114945760405162461bcd60e51b8152600401610a7e906136fc565b60115460125460ff918216916114ac91908516612585565b11156114fa5760405162461bcd60e51b815260206004820152601f60248201527f43616e206e6f74206d696e74206d6f7265207468616e207265736572766564006044820152606401610a7e565b601554600c5461150d9060ff8516612585565b11156115545760405162461bcd60e51b8152602060048201526016602482015275139bc81d1bdad95b9cc81b19599d081d1bc81b5a5b9d60521b6044820152606401610a7e565b60005b8260ff168160ff16101561158c5761157a828260ff16600c54610eb291906137d3565b80611584816137eb565b915050611557565b508160ff16601260008282546115a291906137d3565b925050819055508160ff16600c60008282546115be91906137d3565b90915550505050565b600a546001600160a01b031633146115f15760405162461bcd60e51b8152600401610a7e906136fc565b80516116049060179060208401906131d6565b5050565b6000818152600260205260408120546001600160a01b031680610a4e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a7e565b600a546001600160a01b031633146116a95760405162461bcd60e51b8152600401610a7e906136fc565b6016805461ffff191693151561ff00191693909317610100921515929092029190911762ff000019166201000091151591909102179055565b60006001600160a01b03821661174d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a7e565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146117935760405162461bcd60e51b8152600401610a7e906136fc565b6113ba60006126f5565b600a546001600160a01b031633146117c75760405162461bcd60e51b8152600401610a7e906136fc565b6113ba612747565b60165462010000900460ff16806117f85760405162461bcd60e51b8152600401610a7e9061387e565b81346118128260ff16600e546127cf90919063ffffffff16565b11156118305760405162461bcd60e51b8152600401610a7e906138b5565b8261184961184060115460ff1690565b601554906125b2565b600c546118599060ff8416612585565b11156118775760405162461bcd60e51b8152600401610a7e906138ec565b611880846127db565b50505050565b600a546001600160a01b031633146118b05760405162461bcd60e51b8152600401610a7e906136fc565b600f55565b60165460ff16806118d85760405162461bcd60e51b8152600401610a7e9061387e565b8383836119198383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152503392506128d3915050565b61195f5760405162461bcd60e51b81526020600482015260176024820152761059191c995cdcc81b9bdd081dda1a5d195b1a5cdd1959604a1b6044820152606401610a7e565b600f543360009081526019602052604090205461197f9060ff1683613923565b60ff1611156119d05760405162461bcd60e51b815260206004820181905260248201527f4578636565646564206c696d6974206f66206f672d73616c6520746f6b656e736044820152606401610a7e565b846119e061184060115460ff1690565b600c546119f09060ff8416612585565b1115611a0e5760405162461bcd60e51b8152600401610a7e906138ec565b3360009081526019602052604090205460ff1615611a5b57600d543490611a389060ff89166127cf565b1115611a565760405162461bcd60e51b8152600401610a7e906138b5565b611a94565b34611a76611a6a600189613948565b600d549060ff166127cf565b1115611a945760405162461bcd60e51b8152600401610a7e906138b5565b611a9d866127db565b3360009081526019602052604081208054889290611abf90849060ff16613923565b92506101000a81548160ff021916908360ff1602179055505050505050505050565b606060018054610aa190613731565b6116043383836128e2565b601654610100900460ff1680611b235760405162461bcd60e51b8152600401610a7e9061387e565b8134611b3d8260ff16600d546127cf90919063ffffffff16565b1115611b5b5760405162461bcd60e51b8152600401610a7e906138b5565b848484611b9c8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152503392506129b1915050565b611be25760405162461bcd60e51b81526020600482015260176024820152761059191c995cdcc81b9bdd081dda1a5d195b1a5cdd1959604a1b6044820152606401610a7e565b600f54336000908152601b6020526040902054611c029060ff1683613923565b60ff161115611c5d5760405162461bcd60e51b815260206004820152602160248201527f4578636565646564206c696d6974206f66207072652d73616c6520746f6b656e6044820152607360f81b6064820152608401610a7e565b85611c6d61184060115460ff1690565b600c54611c7d9060ff8416612585565b1115611c9b5760405162461bcd60e51b8152600401610a7e906138ec565b611ca4876127db565b336000908152601b602052604081208054899290611cc690849060ff16613923565b92506101000a81548160ff021916908360ff160217905550505050505050505050565b611cf333836122e3565b611d0f5760405162461bcd60e51b8152600401610a7e9061376c565b611880848484846129c0565b600a546001600160a01b03163314611d455760405162461bcd60e51b8152600401610a7e906136fc565b601c55565b6000818152600260205260409020546060906001600160a01b0316611dc95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a7e565b6000611dd36129f3565b90506015548310611e105780611de884612a02565b604051602001611df992919061396b565b604051602081830303815290604052915050919050565b601f548310611eac5760188054611e2690613731565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5290613731565b8015611e9f5780601f10611e7457610100808354040283529160200191611e9f565b820191906000526020600020905b815481529060010190602001808311611e8257829003601f168201915b5050505050915050919050565b6000838152602c602052604081208054611ec590613731565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef190613731565b8015611f3e5780601f10611f1357610100808354040283529160200191611f3e565b820191906000526020600020905b815481529060010190602001808311611f2157829003601f168201915b50505050509050600081511115611f56579392505050565b601e5460009060ff1660011480611f96575060008052601d6020527f0a51588b1664495f089dd83d2d26f247920f94a57a4a09f20cf068efc8f82bd55485105b156120145760155460008052601d6020527f0a51588b1664495f089dd83d2d26f247920f94a57a4a09f20cf068efc8f82bd454611fd49087906137d3565b611fde9190613821565b905082611fea82612a02565b604051602001611ffb92919061396b565b6040516020818303038152906040529350505050919050565b601d6020527f0a51588b1664495f089dd83d2d26f247920f94a57a4a09f20cf068efc8f82bd454600160009081527f9de6abd965d55c3bb0cdbf6fa175050624c6ff8fe86f682dc08f2a450ede22785461206f908890612585565b905080925081811061210657612085828261399a565b6001600052601d6020527f9de6abd965d55c3bb0cdbf6fa175050624c6ff8fe86f682dc08f2a450ede2279549091506120be9082613821565b60008052601d6020527f0a51588b1664495f089dd83d2d26f247920f94a57a4a09f20cf068efc8f82bd5549091506120f7908290612585565b925061210382846137d3565b92505b8461211d601554856121189190613821565b612a02565b60405160200161212e92919061396b565b60405160208183030381529060405295505050505050919050565b600a546001600160a01b031633146121735760405162461bcd60e51b8152600401610a7e906136fc565b80516116049060189060208401906131d6565b600a546001600160a01b031633146121b05760405162461bcd60e51b8152600401610a7e906136fc565b6001600160a01b0381166122155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7e565b61221e816126f5565b50565b600a546001600160a01b0316331461224b5760405162461bcd60e51b8152600401610a7e906136fc565b601055565b60006001600160e01b0319821663780e9d6360e01b1480610a4e5750610a4e82612b2b565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122aa82611608565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661235c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7e565b600061236783611608565b9050806001600160a01b0316846001600160a01b031614806123a25750836001600160a01b031661239784610b24565b6001600160a01b0316145b806123d257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123ed82611608565b6001600160a01b0316146124555760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a7e565b6001600160a01b0382166124b75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a7e565b6124c2838383612b7b565b6124cd600082612275565b6001600160a01b03831660009081526003602052604081208054600192906124f690849061399a565b90915550506001600160a01b03821660009081526003602052604081208054600192906125249084906137d3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061259182846137d3565b9392505050565b611604828260405180602001604052806000815250612b86565b6000612591828461399a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461260b576040519150601f19603f3d011682016040523d82523d6000602084013e612610565b606091505b5050905080610cca5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321032ba3432b960611b6044820152606401610a7e565b600a54600160a01b900460ff166126a85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a7e565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a54600160a01b900460ff16156127945760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a7e565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126d83390565b60006125918284613835565b600a54600160a01b900460ff16156128285760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a7e565b6010548160ff16111561287d5760405162461bcd60e51b815260206004820152601760248201527f546f6f206d616e79206d696e747320696e20612074786e0000000000000000006044820152606401610a7e565b60005b8160ff168160ff1610156128b5576128a3338260ff16600c54610eb291906137d3565b806128ad816137eb565b915050612880565b508060ff16600c60008282546128cb91906137d3565b909155505050565b6000612591601a548484612bb9565b816001600160a01b0316836001600160a01b031614156129445760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a7e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000612591601c548484612bb9565b6129cb8484846123da565b6129d784848484612c07565b6118805760405162461bcd60e51b8152600401610a7e906139b1565b606060178054610aa190613731565b606081612a265750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a505780612a3a81613a03565b9150612a499050600a83613854565b9150612a2a565b60008167ffffffffffffffff811115612a6b57612a6b6133a9565b6040519080825280601f01601f191660200182016040528015612a95576020820181803683370190505b509050815b8515612b2257612aab60018261399a565b90506000612aba600a88613854565b612ac590600a613835565b612acf908861399a565b612ada906030613923565b905060008160f81b905080848481518110612af757612af7613868565b60200101906001600160f81b031916908160001a905350612b19600a89613854565b97505050612a9a565b50949350505050565b60006001600160e01b031982166380ac58cd60e01b1480612b5c57506001600160e01b03198216635b5e139f60e01b145b80610a4e57506301ffc9a760e01b6001600160e01b0319831614610a4e565b610cca838383612d05565b612b908383612d7e565b612b9d6000848484612c07565b610cca5760405162461bcd60e51b8152600401610a7e906139b1565b6040516bffffffffffffffffffffffff19606083901b1660208201526000906123d29085906034016040516020818303038152906040528051906020012085612ecc9092919063ffffffff16565b60006001600160a01b0384163b15612cfa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c4b903390899088908890600401613a1e565b6020604051808303816000875af1925050508015612c86575060408051601f3d908101601f19168201909252612c8391810190613a5b565b60015b612ce0573d808015612cb4576040519150601f19603f3d011682016040523d82523d6000602084013e612cb9565b606091505b508051612cd85760405162461bcd60e51b8152600401610a7e906139b1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123d2565b506001949350505050565b612d10838383612ee2565b600a54600160a01b900460ff1615610cca5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610a7e565b6001600160a01b038216612dd45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a7e565b6000818152600260205260409020546001600160a01b031615612e395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a7e565b612e4560008383612b7b565b6001600160a01b0382166000908152600360205260408120805460019290612e6e9084906137d3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600082612ed98584612f9a565b14949350505050565b6001600160a01b038316612f3d57612f3881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f60565b816001600160a01b0316836001600160a01b031614612f6057612f608382613046565b6001600160a01b038216612f7757610cca816130e3565b826001600160a01b0316826001600160a01b031614610cca57610cca8282613192565b600081815b845181101561303e576000858281518110612fbc57612fbc613868565b60200260200101519050808311612ffe57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061302b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061303681613a03565b915050612f9f565b509392505050565b60006001613053846116e2565b61305d919061399a565b6000838152600760205260409020549091508082146130b0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130f59060019061399a565b6000838152600960205260408120546008805493945090928490811061311d5761311d613868565b90600052602060002001549050806008838154811061313e5761313e613868565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061317657613176613a78565b6001900381819060005260206000200160009055905550505050565b600061319d836116e2565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546131e290613731565b90600052602060002090601f016020900481019282613204576000855561324a565b82601f1061321d57805160ff191683800117855561324a565b8280016001018555821561324a579182015b8281111561324a57825182559160200191906001019061322f565b5061325692915061325a565b5090565b5b80821115613256576000815560010161325b565b6001600160e01b03198116811461221e57600080fd5b60006020828403121561329757600080fd5b81356125918161326f565b600080604083850312156132b557600080fd5b50508035926020909101359150565b60005b838110156132df5781810151838201526020016132c7565b838111156118805750506000910152565b600081518084526133088160208601602086016132c4565b601f01601f19169290920160200192915050565b60208152600061259160208301846132f0565b60006020828403121561334157600080fd5b5035919050565b80356001600160a01b038116811461335f57600080fd5b919050565b60006020828403121561337657600080fd5b61259182613348565b6000806040838503121561339257600080fd5b61339b83613348565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156133da576133da6133a9565b604051601f8501601f19908116603f01168101908282118183101715613402576134026133a9565b8160405280935085815286868601111561341b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261344657600080fd5b612591838335602085016133bf565b6000806040838503121561346857600080fd5b82359150602083013567ffffffffffffffff81111561348657600080fd5b61349285828601613435565b9150509250929050565b6000806000606084860312156134b157600080fd5b6134ba84613348565b92506134c860208501613348565b9150604084013590509250925092565b803560ff8116811461335f57600080fd5b600080604083850312156134fc57600080fd5b613505836134d8565b915061351360208401613348565b90509250929050565b60006020828403121561352e57600080fd5b813567ffffffffffffffff81111561354557600080fd5b6123d284828501613435565b60006020828403121561356357600080fd5b612591826134d8565b8035801515811461335f57600080fd5b60008060006060848603121561359157600080fd5b61359a8461356c565b92506135a86020850161356c565b91506135b66040850161356c565b90509250925092565b6000806000604084860312156135d457600080fd5b833567ffffffffffffffff808211156135ec57600080fd5b818601915086601f83011261360057600080fd5b81358181111561360f57600080fd5b8760208260051b850101111561362457600080fd5b6020928301955093506135b691860190506134d8565b6000806040838503121561364d57600080fd5b61365683613348565b91506135136020840161356c565b6000806000806080858703121561367a57600080fd5b61368385613348565b935061369160208601613348565b925060408501359150606085013567ffffffffffffffff8111156136b457600080fd5b8501601f810187136136c557600080fd5b6136d4878235602084016133bf565b91505092959194509250565b600080604083850312156136f357600080fd5b61350583613348565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061374557607f821691505b6020821081141561376657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156137e6576137e66137bd565b500190565b600060ff821660ff811415613802576138026137bd565b60010192915050565b634e487b7160e01b600052601260045260246000fd5b6000826138305761383061380b565b500690565b600081600019048311821515161561384f5761384f6137bd565b500290565b6000826138635761386361380b565b500490565b634e487b7160e01b600052603260045260246000fd5b60208082526017908201527f746869732073616c65206973206e6f7420616374697665000000000000000000604082015260600190565b60208082526018908201527f4e6f7420656e6f75676820657468657220746f206d696e740000000000000000604082015260600190565b6020808252601e908201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e740000604082015260600190565b600060ff821660ff84168060ff03821115613940576139406137bd565b019392505050565b600060ff821660ff841680821015613962576139626137bd565b90039392505050565b6000835161397d8184602088016132c4565b8351908301906139918183602088016132c4565b01949350505050565b6000828210156139ac576139ac6137bd565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415613a1757613a176137bd565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a51908301846132f0565b9695505050505050565b600060208284031215613a6d57600080fd5b81516125918161326f565b634e487b7160e01b600052603160045260246000fdfea264697066735822122063a82c8fb53904a2755609eaf2f414395889cf027b03270faf37159c39c2d86b64736f6c634300080a0033
Loading...
Loading
Loading...
Loading
[ 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.