Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
10,520 AM
Holders
606
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 AMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AlphaMutants
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Author: etherice.eth pragma solidity ^0.8.0; import "Ownable.sol"; import "ERC721A.sol"; import "Whitelist.sol"; contract AlphaMutants is Ownable, ERC721A, Whitelistable { uint public constant MAX_NFTS = 11094; uint public constant GENESIS_KEYS = 1094; uint public MAX_QTY_PER_MINT = 10; uint256 public price = 0.025 ether; uint256 public totalGenesisMinted = 0; bool public hasPublicSaleStarted; bool public hasWLSaleStarted; bool public hasGenesisSaleStarted; bool public hasAirdropped = false; string public baseIPFS; string public baseHashURI; string public baseContractURI; mapping (address => uint) private wlCount; mapping (address => bool) private genesisMinted; bool[MAX_NFTS] public genesisTokenList; constructor(address _whitelistAdmin) ERC721A("Alpha Mutants","AM") Whitelistable(_whitelistAdmin) { baseIPFS = "https://ipfs.io/ipfs/"; } /////////////////////////////////// Getters //////////////////////////////////////////////////////// function contractURI() public view returns (string memory) { return baseContractURI; } function _baseURI() internal view virtual override returns (string memory) { return baseHashURI; } function getBaseURI() public view returns (string memory) { return baseHashURI; } function getWLMintedForAddress(address _wlAddress) public view returns(uint) { return wlCount[_wlAddress]; } function hasAddressMigrated(address _wlAddress) public view returns(bool) { return genesisMinted[_wlAddress]; } function isTokenGenesis(uint256 _tokenID) public view returns(bool) { return genesisTokenList[_tokenID]; } function tokenURI(uint256 _tokenID) override public view returns (string memory) { return string(abi.encodePacked(baseIPFS, baseHashURI, "/", Strings.toString(_tokenID))); } function tokensOfOwner(address _owner) external view returns(uint256[] memory ) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { // Return an empty array return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 index; for (index = 0; index < tokenCount; index++) { result[index] = tokenOfOwnerByIndex(_owner, index); } return result; } } function tokenOfOwnerByIndex(address owner, uint256 index) internal view returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } function numGenesisTokens() public view returns(uint256) { return totalGenesisMinted; } function numNonGenesisTokens() public view returns(uint256) { return totalSupply() - totalGenesisMinted; } /////////////////////////////////// Seters //////////////////////////////////////////////////////// function setBaseURI(string memory _newBaseHashURI) public onlyOwner { baseHashURI = _newBaseHashURI; } function setBaseIPFS(string memory _baseIPFS) public onlyOwner { baseIPFS = _baseIPFS; } function setContractURI(string memory _contractURI) public onlyOwner { baseContractURI = _contractURI; } function set_MAX_QTY_PER_MINT(uint256 _newMaxPerMint) public onlyOwner { MAX_QTY_PER_MINT = _newMaxPerMint; } function startPublicSale() public onlyOwner { hasPublicSaleStarted = true; } function pausePublicSale() public onlyOwner { hasPublicSaleStarted = false; } function startWLSale() public onlyOwner { hasWLSaleStarted = true; } function pauseWLSale() public onlyOwner { hasWLSaleStarted = false; } function startGenesisSale() public onlyOwner { hasGenesisSaleStarted = true; } function pauseGenesisSale() public onlyOwner { hasGenesisSaleStarted = false; } function updatePrice(uint256 _newPrice) public onlyOwner { price = _newPrice; } /////////////////////////////////// Minting //////////////////////////////////////////////////////// function mintGenesis(uint256 _numNFTz, bytes memory _proof) public isWhitelisted(keccak256( abi.encodePacked( _numNFTz, msg.sender ) ), _proof) { require(hasGenesisSaleStarted, "Genesis drop hasn't started"); require(!genesisMinted[msg.sender], "Address has already minted Genesis keys"); require(totalGenesisMinted + _numNFTz <= GENESIS_KEYS, "Exceeds number of Genesis Keys"); uint tokenNum = totalSupply(); for (uint i = tokenNum; i < tokenNum + _numNFTz; i++) { genesisTokenList[i] = true; } totalGenesisMinted += _numNFTz; genesisMinted[msg.sender] = true; _safeMint(msg.sender, _numNFTz); } function mintMultiWLNFT(uint256 _numNFTz, bytes memory _proof, uint256 _maxWLForAccount) public payable isWhitelisted(keccak256( abi.encodePacked( msg.sender, _numNFTz, _maxWLForAccount ) ), _proof) { require(hasWLSaleStarted, "Drop hasn't started"); require(wlCount[msg.sender] + _numNFTz <= _maxWLForAccount, "Exceeded max allowed mint"); require(numNonGenesisTokens() + _numNFTz <= MAX_NFTS - GENESIS_KEYS, "Exceeds MAX_NFTz - GENESIS_KEYS"); require(msg.value >= price * _numNFTz, "Ether value sent is below the price"); wlCount[msg.sender] += _numNFTz; _safeMint(msg.sender, _numNFTz); } function mintNFT(uint256 _numNFTz) public payable { require(hasPublicSaleStarted, "Drop hasn't started"); require(_numNFTz <= MAX_QTY_PER_MINT, "You can mint minimum 1, maximum 10 NFTz per mint"); require(numNonGenesisTokens() + _numNFTz <= MAX_NFTS - GENESIS_KEYS, "Exceeds MAX_NFTz - GENESIS_KEYS"); require(msg.value >= price * _numNFTz, "Ether value sent is below the price"); _safeMint(msg.sender, _numNFTz); } function reserveAirdrop() public onlyOwner { require(!hasPublicSaleStarted, "Sale has already started"); require(!hasAirdropped, "You can only airdrop once"); // Reserved for airdrops and giveaways for (uint256 i = 0; i < 10; i++){ genesisTokenList[i] = true; } totalGenesisMinted += 10; _safeMint(msg.sender, 20); } /////////////////////////////////// Withdraw //////////////////////////////////////////////////////// function withdrawAll() public payable onlyOwner { require(payable(msg.sender).send(address(this).balance)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "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 (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 // Creator: Chiru Labs pragma solidity ^0.8.4; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "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); }
// 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/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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/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 // https://etherscan.io/address/0x3ce3b6d9372a4d761172a89cf0139129309fa0ae#code pragma solidity ^0.8.0; import "Ownable.sol"; import "ECDSA.sol"; interface WhitelistableI { function changeAdmin(address _admin) external; function invalidateHash(bytes32 _hash) external; function invalidateHashes(bytes32[] calldata _hashes) external; } /** * @title Eliptic curve signature operations * * @dev Based on https://gist.github.com/axic/5b33912c6f61ae6fd96d6c4a47afde6d * * TODO Remove this library once solidity supports passing a signature to ecrecover. * See https://github.com/ethereum/solidity/issues/864 * */ abstract contract Whitelistable is WhitelistableI, Ownable { using ECDSA for bytes32; address public whitelistAdmin; // True if the hash has been invalidated mapping(bytes32 => bool) public invalidHash; event AdminUpdated(address indexed newAdmin); modifier validAdmin(address _admin) { require(_admin != address(0x0)); _; } modifier onlyAdmin { require(msg.sender == whitelistAdmin); _; } modifier isWhitelisted(bytes32 _hash, bytes memory _sig) { bool check = checkWhitelisted(_hash, _sig); require(checkWhitelisted(_hash, _sig)); _; } /// @dev Constructor for Whitelistable contract /// @param _admin the address of the admin that will generate the signatures constructor(address _admin) validAdmin(_admin) { whitelistAdmin = _admin; } /// @dev Updates whitelistAdmin address /// @dev Can only be called by the current owner /// @param _admin the new admin address function changeAdmin(address _admin) external override onlyOwner validAdmin(_admin) { emit AdminUpdated(_admin); whitelistAdmin = _admin; } // @dev blacklists the given address to ban them from contributing // @param _contributor Address of the contributor to blacklist function invalidateHash(bytes32 _hash) external override onlyAdmin { invalidHash[_hash] = true; } function invalidateHashes(bytes32[] memory _hashes) external override onlyAdmin { for (uint i = 0; i < _hashes.length; i++) { invalidHash[_hashes[i]] = true; } } /// @dev Checks if a hash has been signed by the whitelistAdmin /// @param _rawHash The hash that was used to generate the signature /// @param _sig The EC signature generated by the whitelistAdmin /// @return Was the signature generated by the admin for the hash? function checkWhitelisted( bytes32 _rawHash, bytes memory _sig ) public view returns(bool) { bytes32 hash = _rawHash.toEthSignedMessageHash(); address hashAddr = hash.recover(_sig); bool validHash = invalidHash[_rawHash]; return !validHash && whitelistAdmin == hashAddr; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "AlphaMutants.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_whitelistAdmin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"GENESIS_KEYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_QTY_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseContractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseHashURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseIPFS","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_rawHash","type":"bytes32"},{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"checkWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"genesisTokenList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wlAddress","type":"address"}],"name":"getWLMintedForAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wlAddress","type":"address"}],"name":"hasAddressMigrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasAirdropped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasGenesisSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasPublicSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasWLSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"invalidHash","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"}],"name":"invalidateHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_hashes","type":"bytes32[]"}],"name":"invalidateHashes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"isTokenGenesis","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numNFTz","type":"uint256"},{"internalType":"bytes","name":"_proof","type":"bytes"}],"name":"mintGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numNFTz","type":"uint256"},{"internalType":"bytes","name":"_proof","type":"bytes"},{"internalType":"uint256","name":"_maxWLForAccount","type":"uint256"}],"name":"mintMultiWLNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numNFTz","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numGenesisTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numNonGenesisTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseGenesisSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pausePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseWLSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveAirdrop","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":"_baseIPFS","type":"string"}],"name":"setBaseIPFS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseHashURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxPerMint","type":"uint256"}],"name":"set_MAX_QTY_PER_MINT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startGenesisSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startWLSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalGenesisMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052600a600b556658d15e17628000600c556000600d55600e805463ff000000191690553480156200003357600080fd5b506040516200337b3803806200337b833981016040819052620000569162000263565b806040518060400160405280600d81526020016c416c706861204d7574616e747360981b81525060405180604001604052806002815260200161414d60f01b815250620000b2620000ac6200016960201b60201c565b6200016d565b8151620000c7906003906020850190620001bd565b508051620000dd906004906020840190620001bd565b5050600060015550806001600160a01b038116620000fa57600080fd5b50600980546001600160a01b0319166001600160a01b03929092169190911790556040805180820190915260158082527f68747470733a2f2f697066732e696f2f697066732f000000000000000000000060209092019182526200016191600f91620001bd565b5050620002d2565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001cb9062000295565b90600052602060002090601f016020900481019282620001ef57600085556200023a565b82601f106200020a57805160ff19168380011785556200023a565b828001600101855582156200023a579182015b828111156200023a5782518255916020019190600101906200021d565b50620002489291506200024c565b5090565b5b808211156200024857600081556001016200024d565b6000602082840312156200027657600080fd5b81516001600160a01b03811681146200028e57600080fd5b9392505050565b600181811c90821680620002aa57607f821691505b60208210811415620002cc57634e487b7160e01b600052602260045260246000fd5b50919050565b61309980620002e26000396000f3fe6080604052600436106103975760003560e01c80638462151c116101dc578063ab95958211610102578063e985e9c5116100a0578063f456b15c1161006f578063f456b15c14610a13578063f7ea140a14610a34578063fdd4b0f014610a54578063ffbf33f714610a6e57600080fd5b8063e985e9c514610993578063eac5a89d146109b3578063edacfd25146109d3578063f2fde38b146109f357600080fd5b8063c453fb86116100dc578063c453fb8614610929578063c87b56dd14610949578063e1c5363f14610969578063e8a3d4851461097e57600080fd5b8063ab959582146108d6578063b13ed9b0146108f6578063b88d4fde1461090957600080fd5b8063938e3d7b1161017a5780639b562319116101495780639b56231914610861578063a035b1fe14610880578063a106576914610896578063a22cb465146108b657600080fd5b8063938e3d7b1461080157806393928e7d1461082157806395d89b4114610837578063968d523e1461084c57600080fd5b80638d6cc56d116101b65780638d6cc56d146107905780638da5cb5b146107b05780638f283970146107ce57806392642744146107ee57600080fd5b80638462151c14610725578063853828b6146107525780638728be7a1461075a57600080fd5b8063311adc75116102c15780636352211e1161025f578063715018a61161022e578063715018a6146106c657806371caa8a2146106db57806372fcb272146106f057806380f2152e1461071057600080fd5b80636352211e146106385780636bc84a9e1461065857806370a0823114610691578063714c5398146106b157600080fd5b80634adbe5511161029b5780634adbe551146105c357806355f804b3146105e357806358cd28bb146106035780635e23a18d1461061857600080fd5b8063311adc751461055357806342842e0e1461058357806345af7ceb146105a357600080fd5b80630ee59f191161033957806318160ddd1161030857806318160ddd146104f05780631b6e0095146105095780632045b1be1461051e57806323b872dd1461053357600080fd5b80630ee59f191461049b578063122be4a3146104b057806316b72219146104c657806316d7ebb7146104db57600080fd5b8063093d8c6411610375578063093d8c641461042b578063095ea7b31461044f5780630c1c972a146104715780630c41f4971461048657600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612909565b610a84565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610ad6565b6040516103c89190612985565b3480156103ff57600080fd5b5061041361040e366004612998565b610b68565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b50610441612b5681565b6040519081526020016103c8565b34801561045b57600080fd5b5061046f61046a3660046129cd565b610bac565b005b34801561047d57600080fd5b5061046f610c3a565b34801561049257600080fd5b5061046f610c7c565b3480156104a757600080fd5b5061046f610cb2565b3480156104bc57600080fd5b50610441600b5481565b3480156104d257600080fd5b506103e6610cea565b3480156104e757600080fd5b5061046f610d78565b3480156104fc57600080fd5b5060025460015403610441565b34801561051557600080fd5b5061046f610db5565b34801561052a57600080fd5b5061046f610dec565b34801561053f57600080fd5b5061046f61054e3660046129f7565b610e27565b34801561055f57600080fd5b506103bc61056e366004612998565b600a6020526000908152604090205460ff1681565b34801561058f57600080fd5b5061046f61059e3660046129f7565b610e32565b3480156105af57600080fd5b5061046f6105be366004612998565b610e4d565b3480156105cf57600080fd5b50600954610413906001600160a01b031681565b3480156105ef57600080fd5b5061046f6105fe366004612ad0565b610e7f565b34801561060f57600080fd5b50610441610ec0565b34801561062457600080fd5b5061046f610633366004612998565b610ee1565b34801561064457600080fd5b50610413610653366004612998565b610f10565b34801561066457600080fd5b506103bc610673366004612b18565b6001600160a01b031660009081526013602052604090205460ff1690565b34801561069d57600080fd5b506104416106ac366004612b18565b610f22565b3480156106bd57600080fd5b506103e6610f70565b3480156106d257600080fd5b5061046f610f7f565b3480156106e757600080fd5b50600d54610441565b3480156106fc57600080fd5b50600e546103bc9062010000900460ff1681565b34801561071c57600080fd5b506103e6610fb5565b34801561073157600080fd5b50610745610740366004612b18565b610fc2565b6040516103c89190612b33565b61046f611080565b34801561076657600080fd5b50610441610775366004612b18565b6001600160a01b031660009081526012602052604090205490565b34801561079c57600080fd5b5061046f6107ab366004612998565b6110ce565b3480156107bc57600080fd5b506000546001600160a01b0316610413565b3480156107da57600080fd5b5061046f6107e9366004612b18565b6110fd565b61046f6107fc366004612998565b611192565b34801561080d57600080fd5b5061046f61081c366004612ad0565b6112ee565b34801561082d57600080fd5b5061044161044681565b34801561084357600080fd5b506103e661132b565b34801561085857600080fd5b5061046f61133a565b34801561086d57600080fd5b50600e546103bc90610100900460ff1681565b34801561088c57600080fd5b50610441600c5481565b3480156108a257600080fd5b5061046f6108b1366004612b97565b61148a565b3480156108c257600080fd5b5061046f6108d1366004612bdd565b6116c7565b3480156108e257600080fd5b506103bc6108f1366004612998565b61175d565b61046f610904366004612c19565b61178f565b34801561091557600080fd5b5061046f610924366004612c68565b611976565b34801561093557600080fd5b506103bc610944366004612998565b6119c7565b34801561095557600080fd5b506103e6610964366004612998565b6119f2565b34801561097557600080fd5b506103e6611a29565b34801561098a57600080fd5b506103e6611a36565b34801561099f57600080fd5b506103bc6109ae366004612ccf565b611a45565b3480156109bf57600080fd5b506103bc6109ce366004612b97565b611a73565b3480156109df57600080fd5b5061046f6109ee366004612d02565b611b15565b3480156109ff57600080fd5b5061046f610a0e366004612b18565b611b90565b348015610a1f57600080fd5b50600e546103bc906301000000900460ff1681565b348015610a4057600080fd5b5061046f610a4f366004612ad0565b611c28565b348015610a6057600080fd5b50600e546103bc9060ff1681565b348015610a7a57600080fd5b50610441600d5481565b60006001600160e01b031982166380ac58cd60e01b1480610ab557506001600160e01b03198216635b5e139f60e01b145b80610ad057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610ae590612da7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1190612da7565b8015610b5e5780601f10610b3357610100808354040283529160200191610b5e565b820191906000526020600020905b815481529060010190602001808311610b4157829003601f168201915b5050505050905090565b6000610b7382611c65565b610b90576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610bb782610f10565b9050806001600160a01b0316836001600160a01b03161415610bec5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c0c5750610c0a8133611a45565b155b15610c2a576040516367d9dca160e11b815260040160405180910390fd5b610c35838383611c91565b505050565b6000546001600160a01b03163314610c6d5760405162461bcd60e51b8152600401610c6490612ddc565b60405180910390fd5b600e805460ff19166001179055565b6000546001600160a01b03163314610ca65760405162461bcd60e51b8152600401610c6490612ddc565b600e805460ff19169055565b6000546001600160a01b03163314610cdc5760405162461bcd60e51b8152600401610c6490612ddc565b600e805462ff000019169055565b600f8054610cf790612da7565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2390612da7565b8015610d705780601f10610d4557610100808354040283529160200191610d70565b820191906000526020600020905b815481529060010190602001808311610d5357829003601f168201915b505050505081565b6000546001600160a01b03163314610da25760405162461bcd60e51b8152600401610c6490612ddc565b600e805462ff0000191662010000179055565b6000546001600160a01b03163314610ddf5760405162461bcd60e51b8152600401610c6490612ddc565b600e805461ff0019169055565b6000546001600160a01b03163314610e165760405162461bcd60e51b8152600401610c6490612ddc565b600e805461ff001916610100179055565b610c35838383611ced565b610c3583838360405180602001604052806000815250611976565b6009546001600160a01b03163314610e6457600080fd5b6000908152600a60205260409020805460ff19166001179055565b6000546001600160a01b03163314610ea95760405162461bcd60e51b8152600401610c6490612ddc565b8051610ebc90601090602084019061285a565b5050565b6000600d54610ed26002546001540390565b610edc9190612e27565b905090565b6000546001600160a01b03163314610f0b5760405162461bcd60e51b8152600401610c6490612ddc565b600b55565b6000610f1b82611edb565b5192915050565b60006001600160a01b038216610f4b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b606060108054610ae590612da7565b6000546001600160a01b03163314610fa95760405162461bcd60e51b8152600401610c6490612ddc565b610fb36000611ff5565b565b60118054610cf790612da7565b60606000610fcf83610f22565b905080610ff05760408051600080825260208201909252905b509392505050565b6000816001600160401b0381111561100a5761100a612a33565b604051908082528060200260200182016040528015611033578160200160208202803683370190505b50905060005b82811015610fe85761104b8582612045565b82828151811061105d5761105d612e3e565b60209081029190910101528061107281612e54565b915050611039565b50919050565b6000546001600160a01b031633146110aa5760405162461bcd60e51b8152600401610c6490612ddc565b60405133904780156108fc02916000818181858888f19350505050610fb357600080fd5b6000546001600160a01b031633146110f85760405162461bcd60e51b8152600401610c6490612ddc565b600c55565b6000546001600160a01b031633146111275760405162461bcd60e51b8152600401610c6490612ddc565b806001600160a01b03811661113b57600080fd5b6040516001600160a01b038316907f54e4612788f90384e6843298d7854436f3a585b2c3831ab66abf1de63bfa6c2d90600090a250600980546001600160a01b0319166001600160a01b0392909216919091179055565b600e5460ff166111da5760405162461bcd60e51b8152602060048201526013602482015272111c9bdc081a185cdb89dd081cdd185c9d1959606a1b6044820152606401610c64565b600b548111156112455760405162461bcd60e51b815260206004820152603060248201527f596f752063616e206d696e74206d696e696d756d20312c206d6178696d756d2060448201526f0c4c081391951e881c195c881b5a5b9d60821b6064820152608401610c64565b611253610446612b56612e27565b8161125c610ec0565b6112669190612e6f565b11156112b45760405162461bcd60e51b815260206004820152601f60248201527f45786365656473204d41585f4e46547a202d2047454e455349535f4b455953006044820152606401610c64565b80600c546112c29190612e87565b3410156112e15760405162461bcd60e51b8152600401610c6490612ea6565b6112eb3382612110565b50565b6000546001600160a01b031633146113185760405162461bcd60e51b8152600401610c6490612ddc565b8051610ebc90601190602084019061285a565b606060048054610ae590612da7565b6000546001600160a01b031633146113645760405162461bcd60e51b8152600401610c6490612ddc565b600e5460ff16156113b75760405162461bcd60e51b815260206004820152601860248201527f53616c652068617320616c7265616479207374617274656400000000000000006044820152606401610c64565b600e546301000000900460ff16156114115760405162461bcd60e51b815260206004820152601960248201527f596f752063616e206f6e6c792061697264726f70206f6e6365000000000000006044820152606401610c64565b60005b600a811015611465576001601482612b56811061143357611433612e3e565b602091828204019190066101000a81548160ff021916908315150217905550808061145d90612e54565b915050611414565b50600a600d60008282546114799190612e6f565b90915550610fb39050336014612110565b81336040516020016114b892919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b604051602081830303815290604052805190602001208160006114db8383611a73565b90506114e78383611a73565b6114f057600080fd5b600e5462010000900460ff166115485760405162461bcd60e51b815260206004820152601b60248201527f47656e657369732064726f70206861736e2774207374617274656400000000006044820152606401610c64565b3360009081526013602052604090205460ff16156115b85760405162461bcd60e51b815260206004820152602760248201527f416464726573732068617320616c7265616479206d696e7465642047656e65736044820152666973206b65797360c81b6064820152608401610c64565b61044685600d546115c99190612e6f565b11156116175760405162461bcd60e51b815260206004820152601e60248201527f45786365656473206e756d626572206f662047656e65736973204b65797300006044820152606401610c64565b60006116266002546001540390565b9050805b6116348783612e6f565b811015611683576001601482612b56811061165157611651612e3e565b602091828204019190066101000a81548160ff021916908315150217905550808061167b90612e54565b91505061162a565b5085600d60008282546116969190612e6f565b9091555050336000818152601360205260409020805460ff191660011790556116bf9087612110565b505050505050565b6001600160a01b0382163314156116f15760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000601482612b56811061177357611773612e3e565b602081049091015460ff601f9092166101000a90041692915050565b6040516bffffffffffffffffffffffff193360601b1660208201526034810184905260548101829052607401604051602081830303815290604052805190602001208260006117de8383611a73565b90506117ea8383611a73565b6117f357600080fd5b600e54610100900460ff166118405760405162461bcd60e51b8152602060048201526013602482015272111c9bdc081a185cdb89dd081cdd185c9d1959606a1b6044820152606401610c64565b33600090815260126020526040902054849061185d908890612e6f565b11156118ab5760405162461bcd60e51b815260206004820152601960248201527f4578636565646564206d617820616c6c6f776564206d696e74000000000000006044820152606401610c64565b6118b9610446612b56612e27565b866118c2610ec0565b6118cc9190612e6f565b111561191a5760405162461bcd60e51b815260206004820152601f60248201527f45786365656473204d41585f4e46547a202d2047454e455349535f4b455953006044820152606401610c64565b85600c546119289190612e87565b3410156119475760405162461bcd60e51b8152600401610c6490612ea6565b3360009081526012602052604081208054889290611966908490612e6f565b909155506116bf90503387612110565b611981848484611ced565b6001600160a01b0383163b151580156119a357506119a18484848461212a565b155b156119c1576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b601481612b5681106119d857600080fd5b60209182820401919006915054906101000a900460ff1681565b6060600f6010611a0184612213565b604051602001611a1393929190612f83565b6040516020818303038152906040529050919050565b60108054610cf790612da7565b606060118054610ae590612da7565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b600080611acd846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000611adb8285612310565b6000868152600a602052604090205490915060ff1680158015611b0b57506009546001600160a01b038381169116145b9695505050505050565b6009546001600160a01b03163314611b2c57600080fd5b60005b8151811015610ebc576001600a6000848481518110611b5057611b50612e3e565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611b8890612e54565b915050611b2f565b6000546001600160a01b03163314611bba5760405162461bcd60e51b8152600401610c6490612ddc565b6001600160a01b038116611c1f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c64565b6112eb81611ff5565b6000546001600160a01b03163314611c525760405162461bcd60e51b8152600401610c6490612ddc565b8051610ebc90600f90602084019061285a565b600060015482108015610ad0575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611cf882611edb565b9050836001600160a01b031681600001516001600160a01b031614611d2f5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611d4d5750611d4d8533611a45565b80611d68575033611d5d84610b68565b6001600160a01b0316145b905080611d8857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611daf57604051633a954ecd60e21b815260040160405180910390fd5b611dbb60008487611c91565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611e8f576001548214611e8f57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281600154811015611fdc57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611fda5780516001600160a01b031615611f71579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611fd5579392505050565b611f71565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001546000908180805b8381101561210a57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906120b65750612102565b80516001600160a01b0316156120cb57805192505b876001600160a01b0316836001600160a01b0316141561210057868414156120f957509350610ad092505050565b6001909301925b505b60010161204f565b50600080fd5b610ebc82826040518060200160405280600081525061232c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061215f903390899088908890600401612fbf565b6020604051808303816000875af192505050801561219a575060408051601f3d908101601f1916820190925261219791810190612ff2565b60015b6121f5573d8080156121c8576040519150601f19603f3d011682016040523d82523d6000602084013e6121cd565b606091505b5080516121ed576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816122375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612261578061224b81612e54565b915061225a9050600a83613025565b915061223b565b6000816001600160401b0381111561227b5761227b612a33565b6040519080825280601f01601f1916602001820160405280156122a5576020820181803683370190505b5090505b841561220b576122ba600183612e27565b91506122c7600a86613039565b6122d2906030612e6f565b60f81b8183815181106122e7576122e7612e3e565b60200101906001600160f81b031916908160001a905350612309600a86613025565b94506122a9565b600080600061231f8585612339565b91509150610fe8816123a9565b610c358383836001612564565b6000808251604114156123705760208301516040840151606085015160001a61236487828585612734565b945094505050506123a2565b82516040141561239a576020830151604084015161238f868383612821565b9350935050506123a2565b506000905060025b9250929050565b60008160048111156123bd576123bd61304d565b14156123c65750565b60018160048111156123da576123da61304d565b14156124285760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c64565b600281600481111561243c5761243c61304d565b141561248a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c64565b600381600481111561249e5761249e61304d565b14156124f75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c64565b600481600481111561250b5761250b61304d565b14156112eb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c64565b6001546001600160a01b03851661258d57604051622e076360e81b815260040160405180910390fd5b836125ab5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561265c57506001600160a01b0387163b15155b156126e5575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46126ad600088848060010195508861212a565b6126ca576040516368d2bf6b60e11b815260040160405180910390fd5b808214156126625782600154146126e057600080fd5b61272b565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156126e6575b50600155611ed4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561276b5750600090506003612818565b8460ff16601b1415801561278357508460ff16601c14155b156127945750600090506004612818565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156127e8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661281157600060019250925050612818565b9150600090505b94509492505050565b6000806001600160ff1b0383168161283e60ff86901c601b612e6f565b905061284c87828885612734565b935093505050935093915050565b82805461286690612da7565b90600052602060002090601f01602090048101928261288857600085556128ce565b82601f106128a157805160ff19168380011785556128ce565b828001600101855582156128ce579182015b828111156128ce5782518255916020019190600101906128b3565b506128da9291506128de565b5090565b5b808211156128da57600081556001016128df565b6001600160e01b0319811681146112eb57600080fd5b60006020828403121561291b57600080fd5b8135612926816128f3565b9392505050565b60005b83811015612948578181015183820152602001612930565b838111156119c15750506000910152565b6000815180845261297181602086016020860161292d565b601f01601f19169290920160200192915050565b6020815260006129266020830184612959565b6000602082840312156129aa57600080fd5b5035919050565b80356001600160a01b03811681146129c857600080fd5b919050565b600080604083850312156129e057600080fd5b6129e9836129b1565b946020939093013593505050565b600080600060608486031215612a0c57600080fd5b612a15846129b1565b9250612a23602085016129b1565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612a7157612a71612a33565b604052919050565b60006001600160401b03831115612a9257612a92612a33565b612aa5601f8401601f1916602001612a49565b9050828152838383011115612ab957600080fd5b828260208301376000602084830101529392505050565b600060208284031215612ae257600080fd5b81356001600160401b03811115612af857600080fd5b8201601f81018413612b0957600080fd5b61220b84823560208401612a79565b600060208284031215612b2a57600080fd5b612926826129b1565b6020808252825182820181905260009190848201906040850190845b81811015612b6b57835183529284019291840191600101612b4f565b50909695505050505050565b600082601f830112612b8857600080fd5b61292683833560208501612a79565b60008060408385031215612baa57600080fd5b8235915060208301356001600160401b03811115612bc757600080fd5b612bd385828601612b77565b9150509250929050565b60008060408385031215612bf057600080fd5b612bf9836129b1565b915060208301358015158114612c0e57600080fd5b809150509250929050565b600080600060608486031215612c2e57600080fd5b8335925060208401356001600160401b03811115612c4b57600080fd5b612c5786828701612b77565b925050604084013590509250925092565b60008060008060808587031215612c7e57600080fd5b612c87856129b1565b9350612c95602086016129b1565b92506040850135915060608501356001600160401b03811115612cb757600080fd5b612cc387828801612b77565b91505092959194509250565b60008060408385031215612ce257600080fd5b612ceb836129b1565b9150612cf9602084016129b1565b90509250929050565b60006020808385031215612d1557600080fd5b82356001600160401b0380821115612d2c57600080fd5b818501915085601f830112612d4057600080fd5b813581811115612d5257612d52612a33565b8060051b9150612d63848301612a49565b8181529183018401918481019088841115612d7d57600080fd5b938501935b83851015612d9b57843582529385019390850190612d82565b98975050505050505050565b600181811c90821680612dbb57607f821691505b6020821081141561107a57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612e3957612e39612e11565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612e6857612e68612e11565b5060010190565b60008219821115612e8257612e82612e11565b500190565b6000816000190483118215151615612ea157612ea1612e11565b500290565b60208082526023908201527f45746865722076616c75652073656e742069732062656c6f772074686520707260408201526269636560e81b606082015260800190565b8054600090600181811c9080831680612f0357607f831692505b6020808410821415612f2557634e487b7160e01b600052602260045260246000fd5b818015612f395760018114612f4a57612f77565b60ff19861689528489019650612f77565b60008881526020902060005b86811015612f6f5781548b820152908501908301612f56565b505084890196505b50505050505092915050565b6000612f98612f928387612ee9565b85612ee9565b602f60f81b81528351612fb281600184016020880161292d565b0160010195945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b0b90830184612959565b60006020828403121561300457600080fd5b8151612926816128f3565b634e487b7160e01b600052601260045260246000fd5b6000826130345761303461300f565b500490565b6000826130485761304861300f565b500690565b634e487b7160e01b600052602160045260246000fdfea26469706673582212209a6e10025cd232b3a9ef9c30fe678456955192814b8f61c3d758179368bf179664736f6c634300080b003300000000000000000000000098b3652b89c62849c40ae5991fe863d5d4de320f
Deployed Bytecode
0x6080604052600436106103975760003560e01c80638462151c116101dc578063ab95958211610102578063e985e9c5116100a0578063f456b15c1161006f578063f456b15c14610a13578063f7ea140a14610a34578063fdd4b0f014610a54578063ffbf33f714610a6e57600080fd5b8063e985e9c514610993578063eac5a89d146109b3578063edacfd25146109d3578063f2fde38b146109f357600080fd5b8063c453fb86116100dc578063c453fb8614610929578063c87b56dd14610949578063e1c5363f14610969578063e8a3d4851461097e57600080fd5b8063ab959582146108d6578063b13ed9b0146108f6578063b88d4fde1461090957600080fd5b8063938e3d7b1161017a5780639b562319116101495780639b56231914610861578063a035b1fe14610880578063a106576914610896578063a22cb465146108b657600080fd5b8063938e3d7b1461080157806393928e7d1461082157806395d89b4114610837578063968d523e1461084c57600080fd5b80638d6cc56d116101b65780638d6cc56d146107905780638da5cb5b146107b05780638f283970146107ce57806392642744146107ee57600080fd5b80638462151c14610725578063853828b6146107525780638728be7a1461075a57600080fd5b8063311adc75116102c15780636352211e1161025f578063715018a61161022e578063715018a6146106c657806371caa8a2146106db57806372fcb272146106f057806380f2152e1461071057600080fd5b80636352211e146106385780636bc84a9e1461065857806370a0823114610691578063714c5398146106b157600080fd5b80634adbe5511161029b5780634adbe551146105c357806355f804b3146105e357806358cd28bb146106035780635e23a18d1461061857600080fd5b8063311adc751461055357806342842e0e1461058357806345af7ceb146105a357600080fd5b80630ee59f191161033957806318160ddd1161030857806318160ddd146104f05780631b6e0095146105095780632045b1be1461051e57806323b872dd1461053357600080fd5b80630ee59f191461049b578063122be4a3146104b057806316b72219146104c657806316d7ebb7146104db57600080fd5b8063093d8c6411610375578063093d8c641461042b578063095ea7b31461044f5780630c1c972a146104715780630c41f4971461048657600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612909565b610a84565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610ad6565b6040516103c89190612985565b3480156103ff57600080fd5b5061041361040e366004612998565b610b68565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b50610441612b5681565b6040519081526020016103c8565b34801561045b57600080fd5b5061046f61046a3660046129cd565b610bac565b005b34801561047d57600080fd5b5061046f610c3a565b34801561049257600080fd5b5061046f610c7c565b3480156104a757600080fd5b5061046f610cb2565b3480156104bc57600080fd5b50610441600b5481565b3480156104d257600080fd5b506103e6610cea565b3480156104e757600080fd5b5061046f610d78565b3480156104fc57600080fd5b5060025460015403610441565b34801561051557600080fd5b5061046f610db5565b34801561052a57600080fd5b5061046f610dec565b34801561053f57600080fd5b5061046f61054e3660046129f7565b610e27565b34801561055f57600080fd5b506103bc61056e366004612998565b600a6020526000908152604090205460ff1681565b34801561058f57600080fd5b5061046f61059e3660046129f7565b610e32565b3480156105af57600080fd5b5061046f6105be366004612998565b610e4d565b3480156105cf57600080fd5b50600954610413906001600160a01b031681565b3480156105ef57600080fd5b5061046f6105fe366004612ad0565b610e7f565b34801561060f57600080fd5b50610441610ec0565b34801561062457600080fd5b5061046f610633366004612998565b610ee1565b34801561064457600080fd5b50610413610653366004612998565b610f10565b34801561066457600080fd5b506103bc610673366004612b18565b6001600160a01b031660009081526013602052604090205460ff1690565b34801561069d57600080fd5b506104416106ac366004612b18565b610f22565b3480156106bd57600080fd5b506103e6610f70565b3480156106d257600080fd5b5061046f610f7f565b3480156106e757600080fd5b50600d54610441565b3480156106fc57600080fd5b50600e546103bc9062010000900460ff1681565b34801561071c57600080fd5b506103e6610fb5565b34801561073157600080fd5b50610745610740366004612b18565b610fc2565b6040516103c89190612b33565b61046f611080565b34801561076657600080fd5b50610441610775366004612b18565b6001600160a01b031660009081526012602052604090205490565b34801561079c57600080fd5b5061046f6107ab366004612998565b6110ce565b3480156107bc57600080fd5b506000546001600160a01b0316610413565b3480156107da57600080fd5b5061046f6107e9366004612b18565b6110fd565b61046f6107fc366004612998565b611192565b34801561080d57600080fd5b5061046f61081c366004612ad0565b6112ee565b34801561082d57600080fd5b5061044161044681565b34801561084357600080fd5b506103e661132b565b34801561085857600080fd5b5061046f61133a565b34801561086d57600080fd5b50600e546103bc90610100900460ff1681565b34801561088c57600080fd5b50610441600c5481565b3480156108a257600080fd5b5061046f6108b1366004612b97565b61148a565b3480156108c257600080fd5b5061046f6108d1366004612bdd565b6116c7565b3480156108e257600080fd5b506103bc6108f1366004612998565b61175d565b61046f610904366004612c19565b61178f565b34801561091557600080fd5b5061046f610924366004612c68565b611976565b34801561093557600080fd5b506103bc610944366004612998565b6119c7565b34801561095557600080fd5b506103e6610964366004612998565b6119f2565b34801561097557600080fd5b506103e6611a29565b34801561098a57600080fd5b506103e6611a36565b34801561099f57600080fd5b506103bc6109ae366004612ccf565b611a45565b3480156109bf57600080fd5b506103bc6109ce366004612b97565b611a73565b3480156109df57600080fd5b5061046f6109ee366004612d02565b611b15565b3480156109ff57600080fd5b5061046f610a0e366004612b18565b611b90565b348015610a1f57600080fd5b50600e546103bc906301000000900460ff1681565b348015610a4057600080fd5b5061046f610a4f366004612ad0565b611c28565b348015610a6057600080fd5b50600e546103bc9060ff1681565b348015610a7a57600080fd5b50610441600d5481565b60006001600160e01b031982166380ac58cd60e01b1480610ab557506001600160e01b03198216635b5e139f60e01b145b80610ad057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610ae590612da7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1190612da7565b8015610b5e5780601f10610b3357610100808354040283529160200191610b5e565b820191906000526020600020905b815481529060010190602001808311610b4157829003601f168201915b5050505050905090565b6000610b7382611c65565b610b90576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610bb782610f10565b9050806001600160a01b0316836001600160a01b03161415610bec5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c0c5750610c0a8133611a45565b155b15610c2a576040516367d9dca160e11b815260040160405180910390fd5b610c35838383611c91565b505050565b6000546001600160a01b03163314610c6d5760405162461bcd60e51b8152600401610c6490612ddc565b60405180910390fd5b600e805460ff19166001179055565b6000546001600160a01b03163314610ca65760405162461bcd60e51b8152600401610c6490612ddc565b600e805460ff19169055565b6000546001600160a01b03163314610cdc5760405162461bcd60e51b8152600401610c6490612ddc565b600e805462ff000019169055565b600f8054610cf790612da7565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2390612da7565b8015610d705780601f10610d4557610100808354040283529160200191610d70565b820191906000526020600020905b815481529060010190602001808311610d5357829003601f168201915b505050505081565b6000546001600160a01b03163314610da25760405162461bcd60e51b8152600401610c6490612ddc565b600e805462ff0000191662010000179055565b6000546001600160a01b03163314610ddf5760405162461bcd60e51b8152600401610c6490612ddc565b600e805461ff0019169055565b6000546001600160a01b03163314610e165760405162461bcd60e51b8152600401610c6490612ddc565b600e805461ff001916610100179055565b610c35838383611ced565b610c3583838360405180602001604052806000815250611976565b6009546001600160a01b03163314610e6457600080fd5b6000908152600a60205260409020805460ff19166001179055565b6000546001600160a01b03163314610ea95760405162461bcd60e51b8152600401610c6490612ddc565b8051610ebc90601090602084019061285a565b5050565b6000600d54610ed26002546001540390565b610edc9190612e27565b905090565b6000546001600160a01b03163314610f0b5760405162461bcd60e51b8152600401610c6490612ddc565b600b55565b6000610f1b82611edb565b5192915050565b60006001600160a01b038216610f4b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b606060108054610ae590612da7565b6000546001600160a01b03163314610fa95760405162461bcd60e51b8152600401610c6490612ddc565b610fb36000611ff5565b565b60118054610cf790612da7565b60606000610fcf83610f22565b905080610ff05760408051600080825260208201909252905b509392505050565b6000816001600160401b0381111561100a5761100a612a33565b604051908082528060200260200182016040528015611033578160200160208202803683370190505b50905060005b82811015610fe85761104b8582612045565b82828151811061105d5761105d612e3e565b60209081029190910101528061107281612e54565b915050611039565b50919050565b6000546001600160a01b031633146110aa5760405162461bcd60e51b8152600401610c6490612ddc565b60405133904780156108fc02916000818181858888f19350505050610fb357600080fd5b6000546001600160a01b031633146110f85760405162461bcd60e51b8152600401610c6490612ddc565b600c55565b6000546001600160a01b031633146111275760405162461bcd60e51b8152600401610c6490612ddc565b806001600160a01b03811661113b57600080fd5b6040516001600160a01b038316907f54e4612788f90384e6843298d7854436f3a585b2c3831ab66abf1de63bfa6c2d90600090a250600980546001600160a01b0319166001600160a01b0392909216919091179055565b600e5460ff166111da5760405162461bcd60e51b8152602060048201526013602482015272111c9bdc081a185cdb89dd081cdd185c9d1959606a1b6044820152606401610c64565b600b548111156112455760405162461bcd60e51b815260206004820152603060248201527f596f752063616e206d696e74206d696e696d756d20312c206d6178696d756d2060448201526f0c4c081391951e881c195c881b5a5b9d60821b6064820152608401610c64565b611253610446612b56612e27565b8161125c610ec0565b6112669190612e6f565b11156112b45760405162461bcd60e51b815260206004820152601f60248201527f45786365656473204d41585f4e46547a202d2047454e455349535f4b455953006044820152606401610c64565b80600c546112c29190612e87565b3410156112e15760405162461bcd60e51b8152600401610c6490612ea6565b6112eb3382612110565b50565b6000546001600160a01b031633146113185760405162461bcd60e51b8152600401610c6490612ddc565b8051610ebc90601190602084019061285a565b606060048054610ae590612da7565b6000546001600160a01b031633146113645760405162461bcd60e51b8152600401610c6490612ddc565b600e5460ff16156113b75760405162461bcd60e51b815260206004820152601860248201527f53616c652068617320616c7265616479207374617274656400000000000000006044820152606401610c64565b600e546301000000900460ff16156114115760405162461bcd60e51b815260206004820152601960248201527f596f752063616e206f6e6c792061697264726f70206f6e6365000000000000006044820152606401610c64565b60005b600a811015611465576001601482612b56811061143357611433612e3e565b602091828204019190066101000a81548160ff021916908315150217905550808061145d90612e54565b915050611414565b50600a600d60008282546114799190612e6f565b90915550610fb39050336014612110565b81336040516020016114b892919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b604051602081830303815290604052805190602001208160006114db8383611a73565b90506114e78383611a73565b6114f057600080fd5b600e5462010000900460ff166115485760405162461bcd60e51b815260206004820152601b60248201527f47656e657369732064726f70206861736e2774207374617274656400000000006044820152606401610c64565b3360009081526013602052604090205460ff16156115b85760405162461bcd60e51b815260206004820152602760248201527f416464726573732068617320616c7265616479206d696e7465642047656e65736044820152666973206b65797360c81b6064820152608401610c64565b61044685600d546115c99190612e6f565b11156116175760405162461bcd60e51b815260206004820152601e60248201527f45786365656473206e756d626572206f662047656e65736973204b65797300006044820152606401610c64565b60006116266002546001540390565b9050805b6116348783612e6f565b811015611683576001601482612b56811061165157611651612e3e565b602091828204019190066101000a81548160ff021916908315150217905550808061167b90612e54565b91505061162a565b5085600d60008282546116969190612e6f565b9091555050336000818152601360205260409020805460ff191660011790556116bf9087612110565b505050505050565b6001600160a01b0382163314156116f15760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000601482612b56811061177357611773612e3e565b602081049091015460ff601f9092166101000a90041692915050565b6040516bffffffffffffffffffffffff193360601b1660208201526034810184905260548101829052607401604051602081830303815290604052805190602001208260006117de8383611a73565b90506117ea8383611a73565b6117f357600080fd5b600e54610100900460ff166118405760405162461bcd60e51b8152602060048201526013602482015272111c9bdc081a185cdb89dd081cdd185c9d1959606a1b6044820152606401610c64565b33600090815260126020526040902054849061185d908890612e6f565b11156118ab5760405162461bcd60e51b815260206004820152601960248201527f4578636565646564206d617820616c6c6f776564206d696e74000000000000006044820152606401610c64565b6118b9610446612b56612e27565b866118c2610ec0565b6118cc9190612e6f565b111561191a5760405162461bcd60e51b815260206004820152601f60248201527f45786365656473204d41585f4e46547a202d2047454e455349535f4b455953006044820152606401610c64565b85600c546119289190612e87565b3410156119475760405162461bcd60e51b8152600401610c6490612ea6565b3360009081526012602052604081208054889290611966908490612e6f565b909155506116bf90503387612110565b611981848484611ced565b6001600160a01b0383163b151580156119a357506119a18484848461212a565b155b156119c1576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b601481612b5681106119d857600080fd5b60209182820401919006915054906101000a900460ff1681565b6060600f6010611a0184612213565b604051602001611a1393929190612f83565b6040516020818303038152906040529050919050565b60108054610cf790612da7565b606060118054610ae590612da7565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b600080611acd846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000611adb8285612310565b6000868152600a602052604090205490915060ff1680158015611b0b57506009546001600160a01b038381169116145b9695505050505050565b6009546001600160a01b03163314611b2c57600080fd5b60005b8151811015610ebc576001600a6000848481518110611b5057611b50612e3e565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611b8890612e54565b915050611b2f565b6000546001600160a01b03163314611bba5760405162461bcd60e51b8152600401610c6490612ddc565b6001600160a01b038116611c1f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c64565b6112eb81611ff5565b6000546001600160a01b03163314611c525760405162461bcd60e51b8152600401610c6490612ddc565b8051610ebc90600f90602084019061285a565b600060015482108015610ad0575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611cf882611edb565b9050836001600160a01b031681600001516001600160a01b031614611d2f5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611d4d5750611d4d8533611a45565b80611d68575033611d5d84610b68565b6001600160a01b0316145b905080611d8857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611daf57604051633a954ecd60e21b815260040160405180910390fd5b611dbb60008487611c91565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611e8f576001548214611e8f57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281600154811015611fdc57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611fda5780516001600160a01b031615611f71579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611fd5579392505050565b611f71565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001546000908180805b8381101561210a57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906120b65750612102565b80516001600160a01b0316156120cb57805192505b876001600160a01b0316836001600160a01b0316141561210057868414156120f957509350610ad092505050565b6001909301925b505b60010161204f565b50600080fd5b610ebc82826040518060200160405280600081525061232c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061215f903390899088908890600401612fbf565b6020604051808303816000875af192505050801561219a575060408051601f3d908101601f1916820190925261219791810190612ff2565b60015b6121f5573d8080156121c8576040519150601f19603f3d011682016040523d82523d6000602084013e6121cd565b606091505b5080516121ed576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816122375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612261578061224b81612e54565b915061225a9050600a83613025565b915061223b565b6000816001600160401b0381111561227b5761227b612a33565b6040519080825280601f01601f1916602001820160405280156122a5576020820181803683370190505b5090505b841561220b576122ba600183612e27565b91506122c7600a86613039565b6122d2906030612e6f565b60f81b8183815181106122e7576122e7612e3e565b60200101906001600160f81b031916908160001a905350612309600a86613025565b94506122a9565b600080600061231f8585612339565b91509150610fe8816123a9565b610c358383836001612564565b6000808251604114156123705760208301516040840151606085015160001a61236487828585612734565b945094505050506123a2565b82516040141561239a576020830151604084015161238f868383612821565b9350935050506123a2565b506000905060025b9250929050565b60008160048111156123bd576123bd61304d565b14156123c65750565b60018160048111156123da576123da61304d565b14156124285760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c64565b600281600481111561243c5761243c61304d565b141561248a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c64565b600381600481111561249e5761249e61304d565b14156124f75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c64565b600481600481111561250b5761250b61304d565b14156112eb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c64565b6001546001600160a01b03851661258d57604051622e076360e81b815260040160405180910390fd5b836125ab5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561265c57506001600160a01b0387163b15155b156126e5575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46126ad600088848060010195508861212a565b6126ca576040516368d2bf6b60e11b815260040160405180910390fd5b808214156126625782600154146126e057600080fd5b61272b565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156126e6575b50600155611ed4565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561276b5750600090506003612818565b8460ff16601b1415801561278357508460ff16601c14155b156127945750600090506004612818565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156127e8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661281157600060019250925050612818565b9150600090505b94509492505050565b6000806001600160ff1b0383168161283e60ff86901c601b612e6f565b905061284c87828885612734565b935093505050935093915050565b82805461286690612da7565b90600052602060002090601f01602090048101928261288857600085556128ce565b82601f106128a157805160ff19168380011785556128ce565b828001600101855582156128ce579182015b828111156128ce5782518255916020019190600101906128b3565b506128da9291506128de565b5090565b5b808211156128da57600081556001016128df565b6001600160e01b0319811681146112eb57600080fd5b60006020828403121561291b57600080fd5b8135612926816128f3565b9392505050565b60005b83811015612948578181015183820152602001612930565b838111156119c15750506000910152565b6000815180845261297181602086016020860161292d565b601f01601f19169290920160200192915050565b6020815260006129266020830184612959565b6000602082840312156129aa57600080fd5b5035919050565b80356001600160a01b03811681146129c857600080fd5b919050565b600080604083850312156129e057600080fd5b6129e9836129b1565b946020939093013593505050565b600080600060608486031215612a0c57600080fd5b612a15846129b1565b9250612a23602085016129b1565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612a7157612a71612a33565b604052919050565b60006001600160401b03831115612a9257612a92612a33565b612aa5601f8401601f1916602001612a49565b9050828152838383011115612ab957600080fd5b828260208301376000602084830101529392505050565b600060208284031215612ae257600080fd5b81356001600160401b03811115612af857600080fd5b8201601f81018413612b0957600080fd5b61220b84823560208401612a79565b600060208284031215612b2a57600080fd5b612926826129b1565b6020808252825182820181905260009190848201906040850190845b81811015612b6b57835183529284019291840191600101612b4f565b50909695505050505050565b600082601f830112612b8857600080fd5b61292683833560208501612a79565b60008060408385031215612baa57600080fd5b8235915060208301356001600160401b03811115612bc757600080fd5b612bd385828601612b77565b9150509250929050565b60008060408385031215612bf057600080fd5b612bf9836129b1565b915060208301358015158114612c0e57600080fd5b809150509250929050565b600080600060608486031215612c2e57600080fd5b8335925060208401356001600160401b03811115612c4b57600080fd5b612c5786828701612b77565b925050604084013590509250925092565b60008060008060808587031215612c7e57600080fd5b612c87856129b1565b9350612c95602086016129b1565b92506040850135915060608501356001600160401b03811115612cb757600080fd5b612cc387828801612b77565b91505092959194509250565b60008060408385031215612ce257600080fd5b612ceb836129b1565b9150612cf9602084016129b1565b90509250929050565b60006020808385031215612d1557600080fd5b82356001600160401b0380821115612d2c57600080fd5b818501915085601f830112612d4057600080fd5b813581811115612d5257612d52612a33565b8060051b9150612d63848301612a49565b8181529183018401918481019088841115612d7d57600080fd5b938501935b83851015612d9b57843582529385019390850190612d82565b98975050505050505050565b600181811c90821680612dbb57607f821691505b6020821081141561107a57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612e3957612e39612e11565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612e6857612e68612e11565b5060010190565b60008219821115612e8257612e82612e11565b500190565b6000816000190483118215151615612ea157612ea1612e11565b500290565b60208082526023908201527f45746865722076616c75652073656e742069732062656c6f772074686520707260408201526269636560e81b606082015260800190565b8054600090600181811c9080831680612f0357607f831692505b6020808410821415612f2557634e487b7160e01b600052602260045260246000fd5b818015612f395760018114612f4a57612f77565b60ff19861689528489019650612f77565b60008881526020902060005b86811015612f6f5781548b820152908501908301612f56565b505084890196505b50505050505092915050565b6000612f98612f928387612ee9565b85612ee9565b602f60f81b81528351612fb281600184016020880161292d565b0160010195945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b0b90830184612959565b60006020828403121561300457600080fd5b8151612926816128f3565b634e487b7160e01b600052601260045260246000fd5b6000826130345761303461300f565b500490565b6000826130485761304861300f565b500690565b634e487b7160e01b600052602160045260246000fdfea26469706673582212209a6e10025cd232b3a9ef9c30fe678456955192814b8f61c3d758179368bf179664736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000098b3652b89c62849c40ae5991fe863d5d4de320f
-----Decoded View---------------
Arg [0] : _whitelistAdmin (address): 0x98B3652B89C62849C40ae5991Fe863d5d4De320F
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000098b3652b89c62849c40ae5991fe863d5d4de320f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.