Overview
TokenID
234
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GradientLifeNFT
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; import "ERC721Enumerable.sol"; import "Ownable.sol"; import "MerkleProof.sol"; import "ERC721AOwnersExplicit.sol"; import "ERC721APausable.sol"; import "ERC721AQueryable.sol"; contract GradientLifeNFT is Ownable, ERC721AOwnersExplicit, ERC721APausable, ERC721AQueryable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public defaultURI; uint256 public revealedProgress = 0; uint256 public generalCost = 0.04 ether; uint256 public whitelistCost = 0.03 ether; uint256 public maxSupply = 3333; uint256 public mintPerAddressLimit = 5; uint256 public mintPerTransactionLimit = 5; uint256 public reserved = 333; bool public isWhitelist = true; mapping(address => bool) public whitelisted; address public owner1 = 0x5E2448CE7bfAebE840e6E6dd2600c0aa9D88f4F7; address public owner2 = 0xAE175b64cE7C4Df5cf3e07bb28Bcbaea847F3683; bytes32 public merkleRoot = 0xa9a8214c20a2642c3196fc892703040bc039f1bee925a25c37a3b49d7e24b452; constructor( string memory _name, string memory _symbol, string memory _initBaseURI, string memory _initNotRevealedUri ) ERC721A(_name, _symbol) { setBaseURI(_initBaseURI); setDefaultURI(_initNotRevealedUri); _safeMint(owner1, 1); _safeMint(owner2, 1); } function _beforeTokenTransfers( address from, address to, uint256 tokenId, uint256 quantity) internal override(ERC721A, ERC721APausable) { super._beforeTokenTransfers(from, to, tokenId, quantity); if (paused()) revert ContractPaused(); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } // public function WhitelistMint(uint256 _amount, bytes32[] calldata _merkleProof) public payable whenNotPaused { require(_amount > 0, "need to mint at least 1 NFT"); require(msg.value >= whitelistCost * _amount, "insufficient funds"); require(_amount <= mintPerTransactionLimit, "max mint per transaction exceeded"); uint256 supply = totalSupply(); require(supply + _amount <= maxSupply - reserved, "max supply exceeded"); //check if there's a mint per address limit uint256 mintedCount = numberMinted(msg.sender); require(mintedCount + _amount <= mintPerAddressLimit, "max mint per address exceeded"); //check for whitelist if(getWhitelisted(msg.sender) == false) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "invalid proof, you're not in the whitelist"); } _safeMint(msg.sender, _amount); } function GeneralMint(uint256 _amount) public payable whenNotPaused { require(!isWhitelist, "only whitelist can mint now"); require(_amount > 0, "need to mint at least 1 NFT"); require(msg.value >= generalCost * _amount, "insufficient funds"); require(_amount <= mintPerTransactionLimit, "max mint per transaction exceeded"); uint256 supply = totalSupply(); require(supply + _amount <= maxSupply - reserved, "max supply exceeded"); //check if there's a mint per address limit uint256 mintedCount = numberMinted(msg.sender); require(mintedCount + _amount <= mintPerAddressLimit, "max mint per address exceeded"); _safeMint(msg.sender, _amount); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function totalMinted() public view returns (uint256) { return _totalMinted(); } function getOwnershipData(uint256 tokenId) public view returns (TokenOwnership memory) { return _ownershipOf(tokenId); } function getWhitelisted(address _check) public view returns (bool) { return whitelisted[_check]; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); if (bytes(currentBaseURI).length > 0 && tokenId <= revealedProgress) { return string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)); } else { return string(abi.encodePacked(defaultURI, tokenId.toString(), baseExtension)); } } //ONLY OWNER function burn(uint256 tokenId) public virtual onlyOwner{ _burn(tokenId, true); } function togglePause() external onlyOwner { if (paused()) { _unpause(); } else { _pause(); } } //set merkle root for whitelist verification function setMerkleRoot(bytes32 _set) external onlyOwner { merkleRoot = _set; } //mint _amount amount of LIFE for to an address function giveAway(address _to, uint256 _amount) external onlyOwner { require(_amount > 0, "need to mint at least 1 NFT"); require(_amount <= reserved, "Exceeds reserved supply"); uint256 supply = totalSupply(); _safeMint(_to, _amount); reserved -= _amount; } function givewayForAll(address[] memory _to) external onlyOwner { require(_to.length > 0, "need to mint at least 1 NFT"); require(_to.length <= reserved, "Exceeds reserved supply"); uint256 supply = totalSupply(); for (uint256 i = 0; i < _to.length; i++) { _safeMint(_to[i], 1); } reserved -= _to.length; } function setRevealedProgress(uint256 _set) public onlyOwner { revealedProgress = _set; } function setCost(uint256 _setGenral, uint256 _setWhitelist) public onlyOwner { generalCost = _setGenral; whitelistCost = _setWhitelist; } function addWhitelist(address[] memory _add) external onlyOwner { for (uint256 i = 0; i < _add.length; i++) { whitelisted[_add[i]] = true; } } function removeWhitelist(address[] memory _remove) external onlyOwner { for (uint256 i = 0; i < _remove.length; i++) { whitelisted[_remove[i]] = false; } } function setBaseURI(string memory _set) public onlyOwner { baseURI = _set; } function setBaseExtension(string memory _set) public onlyOwner { baseExtension = _set; } function setDefaultURI(string memory _set) public onlyOwner { defaultURI = _set; } function setOnlyWhitelisted(bool _set) public onlyOwner { isWhitelist = _set; } function setMintPerAddressLimit(uint256 _limit) public onlyOwner { mintPerAddressLimit = _limit; } function setMintPerTransactionLimit(uint256 _limit) public onlyOwner { mintPerTransactionLimit = _limit; } function withdrawAll() external onlyOwner { uint256 amount = address(this).balance / 2; require(amount > 0); _widthdraw(owner1, amount); _widthdraw(owner2, amount); } function _widthdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); require(success, "Transfer failed."); } function setGradientLifeOwner(address _set1, address _set2) public onlyOwner { owner1 = _set1; owner2 = _set2; } function setOwnersExplicit(uint256 quantity) external onlyOwner { _setOwnersExplicit(quantity); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "ERC721.sol"; import "IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "ERC721A.sol"; error AllOwnershipsHaveBeenSet(); error QuantityMustBeNonZero(); error NoTokensMintedYet(); abstract contract ERC721AOwnersExplicit is ERC721A { uint256 public nextOwnerToExplicitlySet; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { if (quantity == 0) revert QuantityMustBeNonZero(); if (_currentIndex == _startTokenId()) revert NoTokensMintedYet(); uint256 _nextOwnerToExplicitlySet = nextOwnerToExplicitlySet; if (_nextOwnerToExplicitlySet == 0) { _nextOwnerToExplicitlySet = _startTokenId(); } if (_nextOwnerToExplicitlySet >= _currentIndex) revert AllOwnershipsHaveBeenSet(); // Index underflow is impossible. // Counter or index overflow is incredibly unrealistic. unchecked { uint256 endIndex = _nextOwnerToExplicitlySet + quantity - 1; // Set the end index to be the last token index if (endIndex + 1 > _currentIndex) { endIndex = _currentIndex - 1; } for (uint256 i = _nextOwnerToExplicitlySet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0) && !_ownerships[i].burned) { TokenOwnership memory ownership = _ownershipOf(i); _ownerships[i].addr = ownership.addr; _ownerships[i].startTimestamp = ownership.startTimestamp; } } nextOwnerToExplicitlySet = endIndex + 1; } } }
// 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 // Creator: Chiru Labs pragma solidity ^0.8.4; import "ERC721A.sol"; import "Pausable.sol"; error ContractPaused(); /** * @dev ERC721A token with pausable token transfers, minting and burning. * * Based off of OpenZeppelin's ERC721Pausable extension. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721APausable is ERC721A, Pausable { /** * @dev See {ERC721A-_beforeTokenTransfers}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { super._beforeTokenTransfers(from, to, startTokenId, quantity); if (paused()) revert ContractPaused(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "ERC721A.sol"; error InvalidQueryRange(); /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllOwnershipsHaveBeenSet","type":"error"},{"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":"ContractPaused","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoTokensMintedYet","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"QuantityMustBeNonZero","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":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"GeneralMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"WhitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_add","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","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":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generalCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_check","type":"address"}],"name":"getWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"}],"name":"givewayForAll","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":[],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPerTransactionLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner2","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_remove","type":"address[]"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealedProgress","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":"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":"_set","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_set","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_setGenral","type":"uint256"},{"internalType":"uint256","name":"_setWhitelist","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_set","type":"string"}],"name":"setDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_set1","type":"address"},{"internalType":"address","name":"_set2","type":"address"}],"name":"setGradientLifeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_set","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMintPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMintPerTransactionLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_set","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_set","type":"uint256"}],"name":"setRevealedProgress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","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":[],"name":"whitelistCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526005608081905264173539b7b760d91b60a09081526200002891600c91906200061b565b506000600e55668e1bc9bf040000600f55666a94d74f430000601055610d056011556005601281905560135561014d6014556015805460ff19166001179055601780546001600160a01b0319908116735e2448ce7bfaebe840e6e6dd2600c0aa9d88f4f7179091556018805490911673ae175b64ce7c4df5cf3e07bb28bcbaea847f36831790557fa9a8214c20a2642c3196fc892703040bc039f1bee925a25c37a3b49d7e24b452601955348015620000e057600080fd5b506040516200415638038062004156833981016040819052620001039162000797565b838362000110336200019e565b8151620001259060039060208501906200061b565b5080516200013b9060049060208401906200061b565b50600180555050600a805460ff191690556200015782620001ee565b620001628162000256565b6017546200017b906001600160a01b03166001620002b6565b60185462000194906001600160a01b03166001620002b6565b5050505062000916565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146200023d5760405162461bcd60e51b815260206004820181905260248201526000805160206200411683398151915260448201526064015b60405180910390fd5b80516200025290600b9060208401906200061b565b5050565b6000546001600160a01b03163314620002a15760405162461bcd60e51b8152602060048201819052602482015260008051602062004116833981519152604482015260640162000234565b80516200025290600d9060208401906200061b565b62000252828260405180602001604052806000815250620002d860201b60201c565b620002e78383836001620002ec565b505050565b6001546001600160a01b0385166200031657604051622e076360e81b815260040160405180910390fd5b83620003355760405163b562e8dd60e01b815260040160405180910390fd5b620003446000868387620004be565b6001600160a01b038516600081815260066020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015620003fd5750620003fd876001600160a01b03166200050260201b620020b61760201c565b156200047d575b60405182906001600160a01b0389169060009060008051602062004136833981519152908290a46001820191620004419060009089908862000511565b6200045f576040516368d2bf6b60e11b815260040160405180910390fd5b80821415620004045782600154146200047757600080fd5b620004b3565b5b6040516001830192906001600160a01b0389169060009060008051602062004136833981519152908290a4808214156200047e575b506001555050505050565b620004d7848484846200060260201b620020c51760201c565b600a5460ff1615620004fc5760405163ab35696f60e01b815260040160405180910390fd5b50505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200054890339089908890889060040162000850565b6020604051808303816000875af192505050801562000586575060408051601f3d908101601f191682019092526200058391810190620008a6565b60015b620005e5573d808015620005b7576040519150601f19603f3d011682016040523d82523d6000602084013e620005bc565b606091505b508051620005dd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b620004d784848484620004fc60201b620018d61760201c565b8280546200062990620008d9565b90600052602060002090601f0160209004810192826200064d576000855562000698565b82601f106200066857805160ff191683800117855562000698565b8280016001018555821562000698579182015b82811115620006985782518255916020019190600101906200067b565b50620006a6929150620006aa565b5090565b5b80821115620006a65760008155600101620006ab565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620006f4578181015183820152602001620006da565b83811115620004fc5750506000910152565b600082601f8301126200071857600080fd5b81516001600160401b0380821115620007355762000735620006c1565b604051601f8301601f19908116603f01168101908282118183101715620007605762000760620006c1565b816040528381528660208588010111156200077a57600080fd5b6200078d846020830160208901620006d7565b9695505050505050565b60008060008060808587031215620007ae57600080fd5b84516001600160401b0380821115620007c657600080fd5b620007d48883890162000706565b95506020870151915080821115620007eb57600080fd5b620007f98883890162000706565b945060408701519150808211156200081057600080fd5b6200081e8883890162000706565b935060608701519150808211156200083557600080fd5b50620008448782880162000706565b91505092959194509250565b600060018060a01b0380871683528086166020840152508360408301526080606083015282518060808401526200088f8160a0850160208701620006d7565b601f01601f19169190910160a00195945050505050565b600060208284031215620008b957600080fd5b81516001600160e01b031981168114620008d257600080fd5b9392505050565b600181811c90821680620008ee57607f821691505b602082108114156200091057634e487b7160e01b600052602260045260246000fd5b50919050565b6137f080620009266000396000f3fe6080604052600436106103ad5760003560e01c8063853828b6116101e7578063ca8001441161010d578063dc33e681116100a0578063f2fde38b1161006f578063f2fde38b14610ab1578063f8d9ecf114610ad1578063fdc759d114610ae4578063fe60d12c14610b0457600080fd5b8063dc33e68114610a3b578063e7b99ec714610a5b578063e985e9c514610a71578063edac985b14610a9157600080fd5b8063d8b240e1116100dc578063d8b240e1146109b5578063d936547e146109cb578063da1b9e08146109fb578063da3ef23f14610a1b57600080fd5b8063ca80014414610949578063d33cbf1314610969578063d5abeb0114610989578063d7224ba01461099f57600080fd5b8063a5bb862d11610185578063c23dc68f11610154578063c23dc68f146108df578063c4ae3168146108ff578063c668286214610914578063c87b56dd1461092957600080fd5b8063a5bb862d1461085f578063b26656e01461087f578063b521fdb81461089f578063b88d4fde146108bf57600080fd5b806395d89b41116101c157806395d89b41146107f557806399a2557a1461080a578063a22cb4651461082a578063a2309ff81461084a57600080fd5b8063853828b6146107955780638da5cb5b146107aa5780639231ab2a146107c857600080fd5b806342842e0e116102d757806370a082311161026a5780637696e088116102395780637696e088146107125780637bd82416146107325780637cb64759146107485780638462151c1461076857600080fd5b806370a08231146106a7578063715018a6146106c757806373688914146106dc57806375dc983d146106fc57600080fd5b80635bbb2177116102a65780635bbb21771461062d5780635c975abb1461065a5780636352211e146106725780636c0360eb1461069257600080fd5b806342842e0e146105ad57806342966c68146105cd57806352709725146105ed57806355f804b31461060d57600080fd5b806323b872dd1161034f5780633a367a671161031e5780633a367a67146105255780633c9527641461053a5780633f18064a1461055a5780634146ed0a1461059357600080fd5b806323b872dd146104b95780632c049c70146104d95780632d20fb60146104ef5780632eb4a7ab1461050f57600080fd5b8063081812fc1161038b578063081812fc1461041e578063095ea7b31461045657806318160ddd14610476578063232452161461049957600080fd5b806301ffc9a7146103b25780630528a65b146103e757806306fdde03146103fc575b600080fd5b3480156103be57600080fd5b506103d26103cd366004612e65565b610b1a565b60405190151581526020015b60405180910390f35b6103fa6103f5366004612e82565b610b6c565b005b34801561040857600080fd5b50610411610e02565b6040516103de9190612f58565b34801561042a57600080fd5b5061043e610439366004612f6b565b610e94565b6040516001600160a01b0390911681526020016103de565b34801561046257600080fd5b506103fa610471366004612fa0565b610ed8565b34801561048257600080fd5b5061048b610f66565b6040519081526020016103de565b3480156104a557600080fd5b506103fa6104b4366004613033565b610f74565b3480156104c557600080fd5b506103fa6104d43660046130cf565b61100a565b3480156104e557600080fd5b5061048b60135481565b3480156104fb57600080fd5b506103fa61050a366004612f6b565b611015565b34801561051b57600080fd5b5061048b60195481565b34801561053157600080fd5b5061041161104b565b34801561054657600080fd5b506103fa61055536600461311b565b6110d9565b34801561056657600080fd5b506103d2610575366004613136565b6001600160a01b031660009081526016602052604090205460ff1690565b34801561059f57600080fd5b506015546103d29060ff1681565b3480156105b957600080fd5b506103fa6105c83660046130cf565b611116565b3480156105d957600080fd5b506103fa6105e8366004612f6b565b611131565b3480156105f957600080fd5b5060185461043e906001600160a01b031681565b34801561061957600080fd5b506103fa6106283660046131a8565b611166565b34801561063957600080fd5b5061064d6106483660046131f0565b6111a3565b6040516103de9190613275565b34801561066657600080fd5b50600a5460ff166103d2565b34801561067e57600080fd5b5061043e61068d366004612f6b565b611269565b34801561069e57600080fd5b5061041161127b565b3480156106b357600080fd5b5061048b6106c2366004613136565b611288565b3480156106d357600080fd5b506103fa6112d6565b3480156106e857600080fd5b5060175461043e906001600160a01b031681565b34801561070857600080fd5b5061048b60125481565b34801561071e57600080fd5b506103fa61072d3660046132df565b61130c565b34801561073e57600080fd5b5061048b600e5481565b34801561075457600080fd5b506103fa610763366004612f6b565b611341565b34801561077457600080fd5b50610788610783366004613136565b611370565b6040516103de9190613301565b3480156107a157600080fd5b506103fa6114bd565b3480156107b657600080fd5b506000546001600160a01b031661043e565b3480156107d457600080fd5b506107e86107e3366004612f6b565b61152f565b6040516103de9190613339565b34801561080157600080fd5b50610411611555565b34801561081657600080fd5b5061078861082536600461336e565b611564565b34801561083657600080fd5b506103fa6108453660046133a1565b61172b565b34801561085657600080fd5b5061048b6117c1565b34801561086b57600080fd5b506103fa61087a3660046133d4565b6117d5565b34801561088b57600080fd5b506103fa61089a366004612f6b565b61182d565b3480156108ab57600080fd5b506103fa6108ba366004612f6b565b61185c565b3480156108cb57600080fd5b506103fa6108da3660046133fe565b61188b565b3480156108eb57600080fd5b506107e86108fa366004612f6b565b6118dc565b34801561090b57600080fd5b506103fa611996565b34801561092057600080fd5b506104116119db565b34801561093557600080fd5b50610411610944366004612f6b565b6119e8565b34801561095557600080fd5b506103fa610964366004612fa0565b611ad5565b34801561097557600080fd5b506103fa610984366004613033565b611b9d565b34801561099557600080fd5b5061048b60115481565b3480156109ab57600080fd5b5061048b60095481565b3480156109c157600080fd5b5061048b600f5481565b3480156109d757600080fd5b506103d26109e6366004613136565b60166020526000908152604090205460ff1681565b348015610a0757600080fd5b506103fa610a163660046131a8565b611ca0565b348015610a2757600080fd5b506103fa610a363660046131a8565b611cdd565b348015610a4757600080fd5b5061048b610a56366004613136565b611d1a565b348015610a6757600080fd5b5061048b60105481565b348015610a7d57600080fd5b506103d2610a8c3660046133d4565b611d48565b348015610a9d57600080fd5b506103fa610aac366004613033565b611d76565b348015610abd57600080fd5b506103fa610acc366004613136565b611e08565b6103fa610adf366004612f6b565b611ea0565b348015610af057600080fd5b506103fa610aff366004612f6b565b612087565b348015610b1057600080fd5b5061048b60145481565b60006001600160e01b031982166380ac58cd60e01b1480610b4b57506001600160e01b03198216635b5e139f60e01b145b80610b6657506301ffc9a760e01b6001600160e01b03198316145b92915050565b600a5460ff1615610b985760405162461bcd60e51b8152600401610b8f90613479565b60405180910390fd5b60008311610bb85760405162461bcd60e51b8152600401610b8f906134a3565b82601054610bc691906134f0565b341015610c0a5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610b8f565b601354831115610c2c5760405162461bcd60e51b8152600401610b8f9061350f565b6000610c36610f66565b9050601454601154610c489190613550565b610c528583613567565b1115610c965760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610b8f565b6000610ca133611d1a565b601254909150610cb18683613567565b1115610cff5760405162461bcd60e51b815260206004820152601d60248201527f6d6178206d696e742070657220616464726573732065786365656465640000006044820152606401610b8f565b3360009081526016602052604090205460ff16610df1576040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d908585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060195491508490506120e9565b610def5760405162461bcd60e51b815260206004820152602a60248201527f696e76616c69642070726f6f662c20796f75277265206e6f7420696e20746865604482015269081dda1a5d195b1a5cdd60b21b6064820152608401610b8f565b505b610dfb33866120ff565b5050505050565b606060038054610e119061357f565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3d9061357f565b8015610e8a5780601f10610e5f57610100808354040283529160200191610e8a565b820191906000526020600020905b815481529060010190602001808311610e6d57829003601f168201915b5050505050905090565b6000610e9f82612119565b610ebc576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610ee382611269565b9050806001600160a01b0316836001600160a01b03161415610f185760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610f385750610f368133611d48565b155b15610f56576040516367d9dca160e11b815260040160405180910390fd5b610f61838383612152565b505050565b600254600154036000190190565b6000546001600160a01b03163314610f9e5760405162461bcd60e51b8152600401610b8f906135b4565b60005b815181101561100657600060166000848481518110610fc257610fc26135e9565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610ffe816135ff565b915050610fa1565b5050565b610f618383836121ae565b6000546001600160a01b0316331461103f5760405162461bcd60e51b8152600401610b8f906135b4565b61104881612394565b50565b600d80546110589061357f565b80601f01602080910402602001604051908101604052809291908181526020018280546110849061357f565b80156110d15780601f106110a6576101008083540402835291602001916110d1565b820191906000526020600020905b8154815290600101906020018083116110b457829003601f168201915b505050505081565b6000546001600160a01b031633146111035760405162461bcd60e51b8152600401610b8f906135b4565b6015805460ff1916911515919091179055565b610f618383836040518060200160405280600081525061188b565b6000546001600160a01b0316331461115b5760405162461bcd60e51b8152600401610b8f906135b4565b6110488160016124ce565b6000546001600160a01b031633146111905760405162461bcd60e51b8152600401610b8f906135b4565b805161100690600b906020840190612db6565b80516060906000816001600160401b038111156111c2576111c2612fca565b60405190808252806020026020018201604052801561120d57816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816111e05790505b50905060005b8281146112615761123c85828151811061122f5761122f6135e9565b60200260200101516118dc565b82828151811061124e5761124e6135e9565b6020908102919091010152600101611213565b509392505050565b600061127482612690565b5192915050565b600b80546110589061357f565b60006001600160a01b0382166112b1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146113005760405162461bcd60e51b8152600401610b8f906135b4565b61130a60006127b7565b565b6000546001600160a01b031633146113365760405162461bcd60e51b8152600401610b8f906135b4565b600f91909155601055565b6000546001600160a01b0316331461136b5760405162461bcd60e51b8152600401610b8f906135b4565b601955565b6060600080600061138085611288565b90506000816001600160401b0381111561139c5761139c612fca565b6040519080825280602002602001820160405280156113c5578160200160208202803683370190505b5090506113eb604080516060810182526000808252602082018190529181019190915290565b60015b8386146114b157600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529250611454576114a9565b81516001600160a01b03161561146957815194505b876001600160a01b0316856001600160a01b031614156114a9578083878060010198508151811061149c5761149c6135e9565b6020026020010181815250505b6001016113ee565b50909695505050505050565b6000546001600160a01b031633146114e75760405162461bcd60e51b8152600401610b8f906135b4565b60006114f4600247613630565b90506000811161150357600080fd5b601754611519906001600160a01b031682612807565b601854611048906001600160a01b031682612807565b6040805160608101825260008082526020820181905291810191909152610b6682612690565b606060048054610e119061357f565b606081831061158657604051631960ccad60e11b815260040160405180910390fd5b6001805460009185101561159957600194505b808411156115a5578093505b60006115b087611288565b9050848610156115cf57858503818110156115c9578091505b506115d3565b5060005b6000816001600160401b038111156115ed576115ed612fca565b604051908082528060200260200182016040528015611616578160200160208202803683370190505b5090508161162957935061172492505050565b6000611634886118dc565b905060008160400151611645575080515b885b8881141580156116575750848714155b1561171857600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925293506116bb57611710565b82516001600160a01b0316156116d057825191505b8a6001600160a01b0316826001600160a01b031614156117105780848880600101995081518110611703576117036135e9565b6020026020010181815250505b600101611647565b50505092835250909150505b9392505050565b6001600160a01b0382163314156117555760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006117d06001546000190190565b905090565b6000546001600160a01b031633146117ff5760405162461bcd60e51b8152600401610b8f906135b4565b601780546001600160a01b039384166001600160a01b03199182161790915560188054929093169116179055565b6000546001600160a01b031633146118575760405162461bcd60e51b8152600401610b8f906135b4565b601355565b6000546001600160a01b031633146118865760405162461bcd60e51b8152600401610b8f906135b4565b600e55565b6118968484846121ae565b6001600160a01b0383163b151580156118b857506118b68484848461289d565b155b156118d6576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061192257506001548310155b1561192d5792915050565b50600082815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061198d5792915050565b61172483612690565b6000546001600160a01b031633146119c05760405162461bcd60e51b8152600401610b8f906135b4565b600a5460ff16156119d35761130a612986565b61130a612a19565b600c80546110589061357f565b60606119f382612119565b611a575760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b8f565b6000611a61612a71565b905060008151118015611a765750600e548311155b15611ab05780611a8584612a80565b600c604051602001611a99939291906136de565b604051602081830303815290604052915050919050565b600d611abb84612a80565b600c604051602001611a9993929190613710565b50919050565b6000546001600160a01b03163314611aff5760405162461bcd60e51b8152600401610b8f906135b4565b60008111611b1f5760405162461bcd60e51b8152600401610b8f906134a3565b601454811115611b6b5760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610b8f565b6000611b75610f66565b9050611b8183836120ff565b8160146000828254611b939190613550565b9091555050505050565b6000546001600160a01b03163314611bc75760405162461bcd60e51b8152600401610b8f906135b4565b6000815111611be85760405162461bcd60e51b8152600401610b8f906134a3565b60145481511115611c355760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610b8f565b6000611c3f610f66565b905060005b8251811015611c8357611c71838281518110611c6257611c626135e9565b602002602001015160016120ff565b80611c7b816135ff565b915050611c44565b50815160146000828254611c979190613550565b90915550505050565b6000546001600160a01b03163314611cca5760405162461bcd60e51b8152600401610b8f906135b4565b805161100690600d906020840190612db6565b6000546001600160a01b03163314611d075760405162461bcd60e51b8152600401610b8f906135b4565b805161100690600c906020840190612db6565b6001600160a01b038116600090815260066020526040812054600160401b90046001600160401b0316610b66565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b03163314611da05760405162461bcd60e51b8152600401610b8f906135b4565b60005b815181101561100657600160166000848481518110611dc457611dc46135e9565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611e00816135ff565b915050611da3565b6000546001600160a01b03163314611e325760405162461bcd60e51b8152600401610b8f906135b4565b6001600160a01b038116611e975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b8f565b611048816127b7565b600a5460ff1615611ec35760405162461bcd60e51b8152600401610b8f90613479565b60155460ff1615611f165760405162461bcd60e51b815260206004820152601b60248201527f6f6e6c792077686974656c6973742063616e206d696e74206e6f7700000000006044820152606401610b8f565b60008111611f365760405162461bcd60e51b8152600401610b8f906134a3565b80600f54611f4491906134f0565b341015611f885760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610b8f565b601354811115611faa5760405162461bcd60e51b8152600401610b8f9061350f565b6000611fb4610f66565b9050601454601154611fc69190613550565b611fd08383613567565b11156120145760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610b8f565b600061201f33611d1a565b60125490915061202f8483613567565b111561207d5760405162461bcd60e51b815260206004820152601d60248201527f6d6178206d696e742070657220616464726573732065786365656465640000006044820152606401610b8f565b610f6133846120ff565b6000546001600160a01b031633146120b15760405162461bcd60e51b8152600401610b8f906135b4565b601255565b6001600160a01b03163b151590565b600a5460ff16156118d65760405163ab35696f60e01b815260040160405180910390fd5b6000826120f68584612b7d565b14949350505050565b611006828260405180602001604052806000815250612be9565b60008160011115801561212d575060015482105b8015610b66575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006121b982612690565b9050836001600160a01b031681600001516001600160a01b0316146121f05760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061220e575061220e8533611d48565b8061222957503361221e84610e94565b6001600160a01b0316145b90508061224957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661227057604051633a954ecd60e21b815260040160405180910390fd5b61227d8585856001612bf6565b61228960008487612152565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661235d57600154821461235d57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061379b83398151915260405160405180910390a4610dfb565b806123b2576040516356be441560e01b815260040160405180910390fd5b6001805414156123d55760405163c0367cab60e01b815260040160405180910390fd5b600954806123e1575060015b6001548110612403576040516370e89b1b60e01b815260040160405180910390fd5b600154828201600019810191101561241e5750600154600019015b815b8181116124c3576000818152600560205260409020546001600160a01b03161580156124625750600081815260056020526040902054600160e01b900460ff16155b156124bb57600061247282612690565b80516000848152600560209081526040909120805491909301516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055505b600101612420565b506001016009555050565b60006124d983612690565b8051909150821561253f576000336001600160a01b038316148061250257506125028233611d48565b8061251d57503361251286610e94565b6001600160a01b0316145b90508061253d57604051632ce44b5f60e11b815260040160405180910390fd5b505b61254d816000866001612bf6565b61255960008583612152565b6001600160a01b0380821660008181526006602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526005909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661265757600154821461265757805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b0384169060008051602061379b833981519152908390a450506002805460010190555050565b604080516060810182526000808252602082018190529181019190915281806001111580156126c0575060015481105b1561279e57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061279c5780516001600160a01b031615612733579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612797579392505050565b612733565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612854576040519150601f19603f3d011682016040523d82523d6000602084013e612859565b606091505b5050905080610f615760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610b8f565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906128d290339089908890889060040161372c565b6020604051808303816000875af192505050801561290d575060408051601f3d908101601f1916820190925261290a91810190613769565b60015b612968573d80801561293b576040519150601f19603f3d011682016040523d82523d6000602084013e612940565b606091505b508051612960576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600a5460ff166129cf5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b8f565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff1615612a3c5760405162461bcd60e51b8152600401610b8f90613479565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129fc3390565b6060600b8054610e119061357f565b606081612aa45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ace5780612ab8816135ff565b9150612ac79050600a83613630565b9150612aa8565b6000816001600160401b03811115612ae857612ae8612fca565b6040519080825280601f01601f191660200182016040528015612b12576020820181803683370190505b5090505b841561297e57612b27600183613550565b9150612b34600a86613786565b612b3f906030613567565b60f81b818381518110612b5457612b546135e9565b60200101906001600160f81b031916908160001a905350612b76600a86613630565b9450612b16565b600081815b8451811015611261576000858281518110612b9f57612b9f6135e9565b60200260200101519050808311612bc55760008381526020829052604090209250612bd6565b600081815260208490526040902092505b5080612be1816135ff565b915050612b82565b610f618383836001612c02565b6120c5848484846120c5565b6001546001600160a01b038516612c2b57604051622e076360e81b815260040160405180910390fd5b83612c495760405163b562e8dd60e01b815260040160405180910390fd5b612c566000868387612bf6565b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612d0257506001600160a01b0387163b15155b15612d79575b60405182906001600160a01b0389169060009060008051602061379b833981519152908290a4612d41600088848060010195508861289d565b612d5e576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612d08578260015414612d7457600080fd5b612dad565b5b6040516001830192906001600160a01b0389169060009060008051602061379b833981519152908290a480821415612d7a575b50600155610dfb565b828054612dc29061357f565b90600052602060002090601f016020900481019282612de45760008555612e2a565b82601f10612dfd57805160ff1916838001178555612e2a565b82800160010185558215612e2a579182015b82811115612e2a578251825591602001919060010190612e0f565b50612e36929150612e3a565b5090565b5b80821115612e365760008155600101612e3b565b6001600160e01b03198116811461104857600080fd5b600060208284031215612e7757600080fd5b813561172481612e4f565b600080600060408486031215612e9757600080fd5b8335925060208401356001600160401b0380821115612eb557600080fd5b818601915086601f830112612ec957600080fd5b813581811115612ed857600080fd5b8760208260051b8501011115612eed57600080fd5b6020830194508093505050509250925092565b60005b83811015612f1b578181015183820152602001612f03565b838111156118d65750506000910152565b60008151808452612f44816020860160208601612f00565b601f01601f19169290920160200192915050565b6020815260006117246020830184612f2c565b600060208284031215612f7d57600080fd5b5035919050565b80356001600160a01b0381168114612f9b57600080fd5b919050565b60008060408385031215612fb357600080fd5b612fbc83612f84565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561300857613008612fca565b604052919050565b60006001600160401b0382111561302957613029612fca565b5060051b60200190565b6000602080838503121561304657600080fd5b82356001600160401b0381111561305c57600080fd5b8301601f8101851361306d57600080fd5b803561308061307b82613010565b612fe0565b81815260059190911b8201830190838101908783111561309f57600080fd5b928401925b828410156130c4576130b584612f84565b825292840192908401906130a4565b979650505050505050565b6000806000606084860312156130e457600080fd5b6130ed84612f84565b92506130fb60208501612f84565b9150604084013590509250925092565b80358015158114612f9b57600080fd5b60006020828403121561312d57600080fd5b6117248261310b565b60006020828403121561314857600080fd5b61172482612f84565b60006001600160401b0383111561316a5761316a612fca565b61317d601f8401601f1916602001612fe0565b905082815283838301111561319157600080fd5b828260208301376000602084830101529392505050565b6000602082840312156131ba57600080fd5b81356001600160401b038111156131d057600080fd5b8201601f810184136131e157600080fd5b61297e84823560208401613151565b6000602080838503121561320357600080fd5b82356001600160401b0381111561321957600080fd5b8301601f8101851361322a57600080fd5b803561323861307b82613010565b81815260059190911b8201830190838101908783111561325757600080fd5b928401925b828410156130c45783358252928401929084019061325c565b6020808252825182820181905260009190848201906040850190845b818110156114b1576132cc83855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101613291565b600080604083850312156132f257600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b818110156114b15783518352928401929184019160010161331d565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101610b66565b60008060006060848603121561338357600080fd5b61338c84612f84565b95602085013595506040909401359392505050565b600080604083850312156133b457600080fd5b6133bd83612f84565b91506133cb6020840161310b565b90509250929050565b600080604083850312156133e757600080fd5b6133f083612f84565b91506133cb60208401612f84565b6000806000806080858703121561341457600080fd5b61341d85612f84565b935061342b60208601612f84565b92506040850135915060608501356001600160401b0381111561344d57600080fd5b8501601f8101871361345e57600080fd5b61346d87823560208401613151565b91505092959194509250565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601b908201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561350a5761350a6134da565b500290565b60208082526021908201527f6d6178206d696e7420706572207472616e73616374696f6e20657863656564656040820152601960fa1b606082015260800190565b600082821015613562576135626134da565b500390565b6000821982111561357a5761357a6134da565b500190565b600181811c9082168061359357607f821691505b60208210811415611acf57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613613576136136134da565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261363f5761363f61361a565b500490565b8054600090600181811c908083168061365e57607f831692505b602080841082141561368057634e487b7160e01b600052602260045260246000fd5b81801561369457600181146136a5576136d2565b60ff198616895284890196506136d2565b60008881526020902060005b868110156136ca5781548b8201529085019083016136b1565b505084890196505b50505050505092915050565b600084516136f0818460208901612f00565b845190830190613704818360208901612f00565b6130c481830186613644565b600061371c8286613644565b8451613704818360208901612f00565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061375f90830184612f2c565b9695505050505050565b60006020828403121561377b57600080fd5b815161172481612e4f565b6000826137955761379561361a565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e49e47026e1a0afaa004768c7bd4b48e430ad38e4607b759dd9e4df2eea8b6ef64736f6c634300080b00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000114772616469656e74204c696665204e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006475241444945000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d58535135535050344c56747970477933706270543134457a386b39413474366b324a7251674351745a7052542f000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103ad5760003560e01c8063853828b6116101e7578063ca8001441161010d578063dc33e681116100a0578063f2fde38b1161006f578063f2fde38b14610ab1578063f8d9ecf114610ad1578063fdc759d114610ae4578063fe60d12c14610b0457600080fd5b8063dc33e68114610a3b578063e7b99ec714610a5b578063e985e9c514610a71578063edac985b14610a9157600080fd5b8063d8b240e1116100dc578063d8b240e1146109b5578063d936547e146109cb578063da1b9e08146109fb578063da3ef23f14610a1b57600080fd5b8063ca80014414610949578063d33cbf1314610969578063d5abeb0114610989578063d7224ba01461099f57600080fd5b8063a5bb862d11610185578063c23dc68f11610154578063c23dc68f146108df578063c4ae3168146108ff578063c668286214610914578063c87b56dd1461092957600080fd5b8063a5bb862d1461085f578063b26656e01461087f578063b521fdb81461089f578063b88d4fde146108bf57600080fd5b806395d89b41116101c157806395d89b41146107f557806399a2557a1461080a578063a22cb4651461082a578063a2309ff81461084a57600080fd5b8063853828b6146107955780638da5cb5b146107aa5780639231ab2a146107c857600080fd5b806342842e0e116102d757806370a082311161026a5780637696e088116102395780637696e088146107125780637bd82416146107325780637cb64759146107485780638462151c1461076857600080fd5b806370a08231146106a7578063715018a6146106c757806373688914146106dc57806375dc983d146106fc57600080fd5b80635bbb2177116102a65780635bbb21771461062d5780635c975abb1461065a5780636352211e146106725780636c0360eb1461069257600080fd5b806342842e0e146105ad57806342966c68146105cd57806352709725146105ed57806355f804b31461060d57600080fd5b806323b872dd1161034f5780633a367a671161031e5780633a367a67146105255780633c9527641461053a5780633f18064a1461055a5780634146ed0a1461059357600080fd5b806323b872dd146104b95780632c049c70146104d95780632d20fb60146104ef5780632eb4a7ab1461050f57600080fd5b8063081812fc1161038b578063081812fc1461041e578063095ea7b31461045657806318160ddd14610476578063232452161461049957600080fd5b806301ffc9a7146103b25780630528a65b146103e757806306fdde03146103fc575b600080fd5b3480156103be57600080fd5b506103d26103cd366004612e65565b610b1a565b60405190151581526020015b60405180910390f35b6103fa6103f5366004612e82565b610b6c565b005b34801561040857600080fd5b50610411610e02565b6040516103de9190612f58565b34801561042a57600080fd5b5061043e610439366004612f6b565b610e94565b6040516001600160a01b0390911681526020016103de565b34801561046257600080fd5b506103fa610471366004612fa0565b610ed8565b34801561048257600080fd5b5061048b610f66565b6040519081526020016103de565b3480156104a557600080fd5b506103fa6104b4366004613033565b610f74565b3480156104c557600080fd5b506103fa6104d43660046130cf565b61100a565b3480156104e557600080fd5b5061048b60135481565b3480156104fb57600080fd5b506103fa61050a366004612f6b565b611015565b34801561051b57600080fd5b5061048b60195481565b34801561053157600080fd5b5061041161104b565b34801561054657600080fd5b506103fa61055536600461311b565b6110d9565b34801561056657600080fd5b506103d2610575366004613136565b6001600160a01b031660009081526016602052604090205460ff1690565b34801561059f57600080fd5b506015546103d29060ff1681565b3480156105b957600080fd5b506103fa6105c83660046130cf565b611116565b3480156105d957600080fd5b506103fa6105e8366004612f6b565b611131565b3480156105f957600080fd5b5060185461043e906001600160a01b031681565b34801561061957600080fd5b506103fa6106283660046131a8565b611166565b34801561063957600080fd5b5061064d6106483660046131f0565b6111a3565b6040516103de9190613275565b34801561066657600080fd5b50600a5460ff166103d2565b34801561067e57600080fd5b5061043e61068d366004612f6b565b611269565b34801561069e57600080fd5b5061041161127b565b3480156106b357600080fd5b5061048b6106c2366004613136565b611288565b3480156106d357600080fd5b506103fa6112d6565b3480156106e857600080fd5b5060175461043e906001600160a01b031681565b34801561070857600080fd5b5061048b60125481565b34801561071e57600080fd5b506103fa61072d3660046132df565b61130c565b34801561073e57600080fd5b5061048b600e5481565b34801561075457600080fd5b506103fa610763366004612f6b565b611341565b34801561077457600080fd5b50610788610783366004613136565b611370565b6040516103de9190613301565b3480156107a157600080fd5b506103fa6114bd565b3480156107b657600080fd5b506000546001600160a01b031661043e565b3480156107d457600080fd5b506107e86107e3366004612f6b565b61152f565b6040516103de9190613339565b34801561080157600080fd5b50610411611555565b34801561081657600080fd5b5061078861082536600461336e565b611564565b34801561083657600080fd5b506103fa6108453660046133a1565b61172b565b34801561085657600080fd5b5061048b6117c1565b34801561086b57600080fd5b506103fa61087a3660046133d4565b6117d5565b34801561088b57600080fd5b506103fa61089a366004612f6b565b61182d565b3480156108ab57600080fd5b506103fa6108ba366004612f6b565b61185c565b3480156108cb57600080fd5b506103fa6108da3660046133fe565b61188b565b3480156108eb57600080fd5b506107e86108fa366004612f6b565b6118dc565b34801561090b57600080fd5b506103fa611996565b34801561092057600080fd5b506104116119db565b34801561093557600080fd5b50610411610944366004612f6b565b6119e8565b34801561095557600080fd5b506103fa610964366004612fa0565b611ad5565b34801561097557600080fd5b506103fa610984366004613033565b611b9d565b34801561099557600080fd5b5061048b60115481565b3480156109ab57600080fd5b5061048b60095481565b3480156109c157600080fd5b5061048b600f5481565b3480156109d757600080fd5b506103d26109e6366004613136565b60166020526000908152604090205460ff1681565b348015610a0757600080fd5b506103fa610a163660046131a8565b611ca0565b348015610a2757600080fd5b506103fa610a363660046131a8565b611cdd565b348015610a4757600080fd5b5061048b610a56366004613136565b611d1a565b348015610a6757600080fd5b5061048b60105481565b348015610a7d57600080fd5b506103d2610a8c3660046133d4565b611d48565b348015610a9d57600080fd5b506103fa610aac366004613033565b611d76565b348015610abd57600080fd5b506103fa610acc366004613136565b611e08565b6103fa610adf366004612f6b565b611ea0565b348015610af057600080fd5b506103fa610aff366004612f6b565b612087565b348015610b1057600080fd5b5061048b60145481565b60006001600160e01b031982166380ac58cd60e01b1480610b4b57506001600160e01b03198216635b5e139f60e01b145b80610b6657506301ffc9a760e01b6001600160e01b03198316145b92915050565b600a5460ff1615610b985760405162461bcd60e51b8152600401610b8f90613479565b60405180910390fd5b60008311610bb85760405162461bcd60e51b8152600401610b8f906134a3565b82601054610bc691906134f0565b341015610c0a5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610b8f565b601354831115610c2c5760405162461bcd60e51b8152600401610b8f9061350f565b6000610c36610f66565b9050601454601154610c489190613550565b610c528583613567565b1115610c965760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610b8f565b6000610ca133611d1a565b601254909150610cb18683613567565b1115610cff5760405162461bcd60e51b815260206004820152601d60248201527f6d6178206d696e742070657220616464726573732065786365656465640000006044820152606401610b8f565b3360009081526016602052604090205460ff16610df1576040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d908585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060195491508490506120e9565b610def5760405162461bcd60e51b815260206004820152602a60248201527f696e76616c69642070726f6f662c20796f75277265206e6f7420696e20746865604482015269081dda1a5d195b1a5cdd60b21b6064820152608401610b8f565b505b610dfb33866120ff565b5050505050565b606060038054610e119061357f565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3d9061357f565b8015610e8a5780601f10610e5f57610100808354040283529160200191610e8a565b820191906000526020600020905b815481529060010190602001808311610e6d57829003601f168201915b5050505050905090565b6000610e9f82612119565b610ebc576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610ee382611269565b9050806001600160a01b0316836001600160a01b03161415610f185760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610f385750610f368133611d48565b155b15610f56576040516367d9dca160e11b815260040160405180910390fd5b610f61838383612152565b505050565b600254600154036000190190565b6000546001600160a01b03163314610f9e5760405162461bcd60e51b8152600401610b8f906135b4565b60005b815181101561100657600060166000848481518110610fc257610fc26135e9565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610ffe816135ff565b915050610fa1565b5050565b610f618383836121ae565b6000546001600160a01b0316331461103f5760405162461bcd60e51b8152600401610b8f906135b4565b61104881612394565b50565b600d80546110589061357f565b80601f01602080910402602001604051908101604052809291908181526020018280546110849061357f565b80156110d15780601f106110a6576101008083540402835291602001916110d1565b820191906000526020600020905b8154815290600101906020018083116110b457829003601f168201915b505050505081565b6000546001600160a01b031633146111035760405162461bcd60e51b8152600401610b8f906135b4565b6015805460ff1916911515919091179055565b610f618383836040518060200160405280600081525061188b565b6000546001600160a01b0316331461115b5760405162461bcd60e51b8152600401610b8f906135b4565b6110488160016124ce565b6000546001600160a01b031633146111905760405162461bcd60e51b8152600401610b8f906135b4565b805161100690600b906020840190612db6565b80516060906000816001600160401b038111156111c2576111c2612fca565b60405190808252806020026020018201604052801561120d57816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816111e05790505b50905060005b8281146112615761123c85828151811061122f5761122f6135e9565b60200260200101516118dc565b82828151811061124e5761124e6135e9565b6020908102919091010152600101611213565b509392505050565b600061127482612690565b5192915050565b600b80546110589061357f565b60006001600160a01b0382166112b1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146113005760405162461bcd60e51b8152600401610b8f906135b4565b61130a60006127b7565b565b6000546001600160a01b031633146113365760405162461bcd60e51b8152600401610b8f906135b4565b600f91909155601055565b6000546001600160a01b0316331461136b5760405162461bcd60e51b8152600401610b8f906135b4565b601955565b6060600080600061138085611288565b90506000816001600160401b0381111561139c5761139c612fca565b6040519080825280602002602001820160405280156113c5578160200160208202803683370190505b5090506113eb604080516060810182526000808252602082018190529181019190915290565b60015b8386146114b157600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529250611454576114a9565b81516001600160a01b03161561146957815194505b876001600160a01b0316856001600160a01b031614156114a9578083878060010198508151811061149c5761149c6135e9565b6020026020010181815250505b6001016113ee565b50909695505050505050565b6000546001600160a01b031633146114e75760405162461bcd60e51b8152600401610b8f906135b4565b60006114f4600247613630565b90506000811161150357600080fd5b601754611519906001600160a01b031682612807565b601854611048906001600160a01b031682612807565b6040805160608101825260008082526020820181905291810191909152610b6682612690565b606060048054610e119061357f565b606081831061158657604051631960ccad60e11b815260040160405180910390fd5b6001805460009185101561159957600194505b808411156115a5578093505b60006115b087611288565b9050848610156115cf57858503818110156115c9578091505b506115d3565b5060005b6000816001600160401b038111156115ed576115ed612fca565b604051908082528060200260200182016040528015611616578160200160208202803683370190505b5090508161162957935061172492505050565b6000611634886118dc565b905060008160400151611645575080515b885b8881141580156116575750848714155b1561171857600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925293506116bb57611710565b82516001600160a01b0316156116d057825191505b8a6001600160a01b0316826001600160a01b031614156117105780848880600101995081518110611703576117036135e9565b6020026020010181815250505b600101611647565b50505092835250909150505b9392505050565b6001600160a01b0382163314156117555760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006117d06001546000190190565b905090565b6000546001600160a01b031633146117ff5760405162461bcd60e51b8152600401610b8f906135b4565b601780546001600160a01b039384166001600160a01b03199182161790915560188054929093169116179055565b6000546001600160a01b031633146118575760405162461bcd60e51b8152600401610b8f906135b4565b601355565b6000546001600160a01b031633146118865760405162461bcd60e51b8152600401610b8f906135b4565b600e55565b6118968484846121ae565b6001600160a01b0383163b151580156118b857506118b68484848461289d565b155b156118d6576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061192257506001548310155b1561192d5792915050565b50600082815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061198d5792915050565b61172483612690565b6000546001600160a01b031633146119c05760405162461bcd60e51b8152600401610b8f906135b4565b600a5460ff16156119d35761130a612986565b61130a612a19565b600c80546110589061357f565b60606119f382612119565b611a575760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b8f565b6000611a61612a71565b905060008151118015611a765750600e548311155b15611ab05780611a8584612a80565b600c604051602001611a99939291906136de565b604051602081830303815290604052915050919050565b600d611abb84612a80565b600c604051602001611a9993929190613710565b50919050565b6000546001600160a01b03163314611aff5760405162461bcd60e51b8152600401610b8f906135b4565b60008111611b1f5760405162461bcd60e51b8152600401610b8f906134a3565b601454811115611b6b5760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610b8f565b6000611b75610f66565b9050611b8183836120ff565b8160146000828254611b939190613550565b9091555050505050565b6000546001600160a01b03163314611bc75760405162461bcd60e51b8152600401610b8f906135b4565b6000815111611be85760405162461bcd60e51b8152600401610b8f906134a3565b60145481511115611c355760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610b8f565b6000611c3f610f66565b905060005b8251811015611c8357611c71838281518110611c6257611c626135e9565b602002602001015160016120ff565b80611c7b816135ff565b915050611c44565b50815160146000828254611c979190613550565b90915550505050565b6000546001600160a01b03163314611cca5760405162461bcd60e51b8152600401610b8f906135b4565b805161100690600d906020840190612db6565b6000546001600160a01b03163314611d075760405162461bcd60e51b8152600401610b8f906135b4565b805161100690600c906020840190612db6565b6001600160a01b038116600090815260066020526040812054600160401b90046001600160401b0316610b66565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b03163314611da05760405162461bcd60e51b8152600401610b8f906135b4565b60005b815181101561100657600160166000848481518110611dc457611dc46135e9565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611e00816135ff565b915050611da3565b6000546001600160a01b03163314611e325760405162461bcd60e51b8152600401610b8f906135b4565b6001600160a01b038116611e975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b8f565b611048816127b7565b600a5460ff1615611ec35760405162461bcd60e51b8152600401610b8f90613479565b60155460ff1615611f165760405162461bcd60e51b815260206004820152601b60248201527f6f6e6c792077686974656c6973742063616e206d696e74206e6f7700000000006044820152606401610b8f565b60008111611f365760405162461bcd60e51b8152600401610b8f906134a3565b80600f54611f4491906134f0565b341015611f885760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610b8f565b601354811115611faa5760405162461bcd60e51b8152600401610b8f9061350f565b6000611fb4610f66565b9050601454601154611fc69190613550565b611fd08383613567565b11156120145760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610b8f565b600061201f33611d1a565b60125490915061202f8483613567565b111561207d5760405162461bcd60e51b815260206004820152601d60248201527f6d6178206d696e742070657220616464726573732065786365656465640000006044820152606401610b8f565b610f6133846120ff565b6000546001600160a01b031633146120b15760405162461bcd60e51b8152600401610b8f906135b4565b601255565b6001600160a01b03163b151590565b600a5460ff16156118d65760405163ab35696f60e01b815260040160405180910390fd5b6000826120f68584612b7d565b14949350505050565b611006828260405180602001604052806000815250612be9565b60008160011115801561212d575060015482105b8015610b66575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006121b982612690565b9050836001600160a01b031681600001516001600160a01b0316146121f05760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061220e575061220e8533611d48565b8061222957503361221e84610e94565b6001600160a01b0316145b90508061224957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661227057604051633a954ecd60e21b815260040160405180910390fd5b61227d8585856001612bf6565b61228960008487612152565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661235d57600154821461235d57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061379b83398151915260405160405180910390a4610dfb565b806123b2576040516356be441560e01b815260040160405180910390fd5b6001805414156123d55760405163c0367cab60e01b815260040160405180910390fd5b600954806123e1575060015b6001548110612403576040516370e89b1b60e01b815260040160405180910390fd5b600154828201600019810191101561241e5750600154600019015b815b8181116124c3576000818152600560205260409020546001600160a01b03161580156124625750600081815260056020526040902054600160e01b900460ff16155b156124bb57600061247282612690565b80516000848152600560209081526040909120805491909301516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055505b600101612420565b506001016009555050565b60006124d983612690565b8051909150821561253f576000336001600160a01b038316148061250257506125028233611d48565b8061251d57503361251286610e94565b6001600160a01b0316145b90508061253d57604051632ce44b5f60e11b815260040160405180910390fd5b505b61254d816000866001612bf6565b61255960008583612152565b6001600160a01b0380821660008181526006602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526005909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661265757600154821461265757805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b0384169060008051602061379b833981519152908390a450506002805460010190555050565b604080516060810182526000808252602082018190529181019190915281806001111580156126c0575060015481105b1561279e57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061279c5780516001600160a01b031615612733579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612797579392505050565b612733565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612854576040519150601f19603f3d011682016040523d82523d6000602084013e612859565b606091505b5050905080610f615760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610b8f565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906128d290339089908890889060040161372c565b6020604051808303816000875af192505050801561290d575060408051601f3d908101601f1916820190925261290a91810190613769565b60015b612968573d80801561293b576040519150601f19603f3d011682016040523d82523d6000602084013e612940565b606091505b508051612960576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600a5460ff166129cf5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b8f565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff1615612a3c5760405162461bcd60e51b8152600401610b8f90613479565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129fc3390565b6060600b8054610e119061357f565b606081612aa45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ace5780612ab8816135ff565b9150612ac79050600a83613630565b9150612aa8565b6000816001600160401b03811115612ae857612ae8612fca565b6040519080825280601f01601f191660200182016040528015612b12576020820181803683370190505b5090505b841561297e57612b27600183613550565b9150612b34600a86613786565b612b3f906030613567565b60f81b818381518110612b5457612b546135e9565b60200101906001600160f81b031916908160001a905350612b76600a86613630565b9450612b16565b600081815b8451811015611261576000858281518110612b9f57612b9f6135e9565b60200260200101519050808311612bc55760008381526020829052604090209250612bd6565b600081815260208490526040902092505b5080612be1816135ff565b915050612b82565b610f618383836001612c02565b6120c5848484846120c5565b6001546001600160a01b038516612c2b57604051622e076360e81b815260040160405180910390fd5b83612c495760405163b562e8dd60e01b815260040160405180910390fd5b612c566000868387612bf6565b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612d0257506001600160a01b0387163b15155b15612d79575b60405182906001600160a01b0389169060009060008051602061379b833981519152908290a4612d41600088848060010195508861289d565b612d5e576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612d08578260015414612d7457600080fd5b612dad565b5b6040516001830192906001600160a01b0389169060009060008051602061379b833981519152908290a480821415612d7a575b50600155610dfb565b828054612dc29061357f565b90600052602060002090601f016020900481019282612de45760008555612e2a565b82601f10612dfd57805160ff1916838001178555612e2a565b82800160010185558215612e2a579182015b82811115612e2a578251825591602001919060010190612e0f565b50612e36929150612e3a565b5090565b5b80821115612e365760008155600101612e3b565b6001600160e01b03198116811461104857600080fd5b600060208284031215612e7757600080fd5b813561172481612e4f565b600080600060408486031215612e9757600080fd5b8335925060208401356001600160401b0380821115612eb557600080fd5b818601915086601f830112612ec957600080fd5b813581811115612ed857600080fd5b8760208260051b8501011115612eed57600080fd5b6020830194508093505050509250925092565b60005b83811015612f1b578181015183820152602001612f03565b838111156118d65750506000910152565b60008151808452612f44816020860160208601612f00565b601f01601f19169290920160200192915050565b6020815260006117246020830184612f2c565b600060208284031215612f7d57600080fd5b5035919050565b80356001600160a01b0381168114612f9b57600080fd5b919050565b60008060408385031215612fb357600080fd5b612fbc83612f84565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561300857613008612fca565b604052919050565b60006001600160401b0382111561302957613029612fca565b5060051b60200190565b6000602080838503121561304657600080fd5b82356001600160401b0381111561305c57600080fd5b8301601f8101851361306d57600080fd5b803561308061307b82613010565b612fe0565b81815260059190911b8201830190838101908783111561309f57600080fd5b928401925b828410156130c4576130b584612f84565b825292840192908401906130a4565b979650505050505050565b6000806000606084860312156130e457600080fd5b6130ed84612f84565b92506130fb60208501612f84565b9150604084013590509250925092565b80358015158114612f9b57600080fd5b60006020828403121561312d57600080fd5b6117248261310b565b60006020828403121561314857600080fd5b61172482612f84565b60006001600160401b0383111561316a5761316a612fca565b61317d601f8401601f1916602001612fe0565b905082815283838301111561319157600080fd5b828260208301376000602084830101529392505050565b6000602082840312156131ba57600080fd5b81356001600160401b038111156131d057600080fd5b8201601f810184136131e157600080fd5b61297e84823560208401613151565b6000602080838503121561320357600080fd5b82356001600160401b0381111561321957600080fd5b8301601f8101851361322a57600080fd5b803561323861307b82613010565b81815260059190911b8201830190838101908783111561325757600080fd5b928401925b828410156130c45783358252928401929084019061325c565b6020808252825182820181905260009190848201906040850190845b818110156114b1576132cc83855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101613291565b600080604083850312156132f257600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b818110156114b15783518352928401929184019160010161331d565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101610b66565b60008060006060848603121561338357600080fd5b61338c84612f84565b95602085013595506040909401359392505050565b600080604083850312156133b457600080fd5b6133bd83612f84565b91506133cb6020840161310b565b90509250929050565b600080604083850312156133e757600080fd5b6133f083612f84565b91506133cb60208401612f84565b6000806000806080858703121561341457600080fd5b61341d85612f84565b935061342b60208601612f84565b92506040850135915060608501356001600160401b0381111561344d57600080fd5b8501601f8101871361345e57600080fd5b61346d87823560208401613151565b91505092959194509250565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601b908201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561350a5761350a6134da565b500290565b60208082526021908201527f6d6178206d696e7420706572207472616e73616374696f6e20657863656564656040820152601960fa1b606082015260800190565b600082821015613562576135626134da565b500390565b6000821982111561357a5761357a6134da565b500190565b600181811c9082168061359357607f821691505b60208210811415611acf57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613613576136136134da565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261363f5761363f61361a565b500490565b8054600090600181811c908083168061365e57607f831692505b602080841082141561368057634e487b7160e01b600052602260045260246000fd5b81801561369457600181146136a5576136d2565b60ff198616895284890196506136d2565b60008881526020902060005b868110156136ca5781548b8201529085019083016136b1565b505084890196505b50505050505092915050565b600084516136f0818460208901612f00565b845190830190613704818360208901612f00565b6130c481830186613644565b600061371c8286613644565b8451613704818360208901612f00565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061375f90830184612f2c565b9695505050505050565b60006020828403121561377b57600080fd5b815161172481612e4f565b6000826137955761379561361a565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e49e47026e1a0afaa004768c7bd4b48e430ad38e4607b759dd9e4df2eea8b6ef64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000114772616469656e74204c696665204e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006475241444945000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d58535135535050344c56747970477933706270543134457a386b39413474366b324a7251674351745a7052542f000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Gradient Life NFT
Arg [1] : _symbol (string): GRADIE
Arg [2] : _initBaseURI (string):
Arg [3] : _initNotRevealedUri (string): https://gateway.pinata.cloud/ipfs/QmXSQ5SPP4LVtypGy3pbpT14Ez8k9A4t6k2JrQgCQtZpRT/
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 4772616469656e74204c696665204e4654000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 4752414449450000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [11] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [12] : 732f516d58535135535050344c56747970477933706270543134457a386b3941
Arg [13] : 3474366b324a7251674351745a7052542f000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.