Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,222 EG
Holders
449
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 EGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
EtherGrassPFP
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 5000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Pausable.sol"; import "./EtherGrassOwners.sol"; contract EtherGrassPFP is ERC721Enumerable, Ownable, ERC721Burnable, ERC721Pausable { using SafeMath for uint256; using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIds; Counters.Counter private _egOwnerMintCount; uint256 private _price = 5.0 * 10**16; bool private _eg_minting_allowed = false; bool private _public_minting_allowed = false; uint256 public constant MAX_ELEMENTS = 2222; uint256 public constant MAX_PER_MINT = 10; uint256 public constant MAX_PER_MINT_EG = 500; uint256 public constant MAX_EG_MINTS = 500; uint256 public constant EG_MINTS_PER_ID = 10; address public constant CREATOR_ADDRESS = 0xae2269584F7374257f35F41dD19689B804DaFFFb; string public baseTokenURI; string public baseExtension = ".json"; mapping (uint256 => uint256) private _egTokenIdsUsed; event CreateEtherGrassPFP(uint256 indexed id); constructor(string memory baseURI) ERC721("X-B31", "EG") { setBaseURI(baseURI); pause(true); _tokenIds.increment(); } modifier saleIsOpen { require(_totalSupply() <= MAX_ELEMENTS, "Sold Out"); if (_msgSender() != owner()) { require(!paused(), "Sale Closed"); } _; } // public / external function mint(address _to, uint256 _count) public payable saleIsOpen { require(_public_minting_allowed == true); require(_totalSupply() < MAX_ELEMENTS, "Sold Out"); require(_totalSupply() + _count <= MAX_ELEMENTS, "Not Enough Left"); require(_count <= MAX_PER_MINT, "Too Many"); require(msg.value >= price(_count), "Below Price"); for (uint256 i = 0; i < _count; i++) { _mintAnElement(_to); } } function etherGrassMint(address _to, uint256 _count, uint256[] memory _tokensId) public payable saleIsOpen { require(_eg_minting_allowed == true); require(_count <= MAX_PER_MINT_EG, "Over Max Mint"); require(etherGrassMintsClaimable(_msgSender()) >= _count, "Not Enough Claimable"); require(MAX_EG_MINTS.sub(_egTokenSupply()) > 0, "EtherGrass Mints Out"); require(_count <= MAX_EG_MINTS.sub(_egTokenSupply()), "Not Enough EtherGrass Mints"); require(_totalSupply() + _count <= MAX_ELEMENTS, "Not Enough Left"); require(_totalSupply() <= MAX_ELEMENTS, "Sold Out"); uint256 mintedSoFar = 0; for (uint256 i = 0; i < _tokensId.length; i++) { uint256 _tokenId = _tokensId[i]; require(EtherGrassOwners.isEtherGrassToken(_tokenId), "Token Not EtherGrass"); require(EtherGrassOwners.ownsToken(_msgSender(), _tokenId), "Unowned Token"); uint256 mintsLeftOnToken = EG_MINTS_PER_ID - _egTokenIdsUsed[_tokenId]; for (uint256 j = 0; j < mintsLeftOnToken; j++) { if (canClaimEtherGrassTokenId(_tokenId) && mintedSoFar < _count) { _egTokenIdsUsed[_tokenId] = _egTokenIdsUsed[_tokenId] + 1; _egOwnerMintCount.increment(); mintedSoFar += 1; _mintAnElement(_to); } } } } function totalMint() public view returns (uint256) { return _totalSupply(); } function totalEtherGrassMint() public view returns (uint256) { return _egTokenSupply(); } function price(uint256 _count) public view returns (uint256) { return _price.mul(_count); } function walletOfOwner(address _owner) external view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); uint256[] memory tokensId = new uint256[](tokenCount); for (uint256 i = 0; i < tokenCount; i++) { tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function canClaimEtherGrassTokenId(uint256 _tokenId) public view returns (bool) { return _egTokenIdsUsed[_tokenId] < EG_MINTS_PER_ID; } function mintsUsedForTokenId(uint256 _tokenId) public view returns (uint256) { return _egTokenIdsUsed[_tokenId]; } function etherGrassIdsOwned(address _address) external view returns (uint256[] memory) { return EtherGrassOwners.etherGrassIdsOwned(_address); } function etherGrassIdsClaimable(address _address) external view returns (uint256[] memory) { return EtherGrassOwners.etherGrassIdsClaimable(_address, EG_MINTS_PER_ID, _egTokenIdsUsed); } function etherGrassMintsClaimable(address _address) public view returns (uint256) { return EtherGrassOwners.etherGrassMintsClaimable(_address, EG_MINTS_PER_ID, _egTokenIdsUsed); } function etherGrassMintingAllowed() public view returns (bool) { return _eg_minting_allowed; } function publicMintingAllowed() public view returns (bool) { return _public_minting_allowed; } 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(), baseExtension)) : ""; } // onlyOwner function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function setBaseExtension(string memory _newBaseExtension) external onlyOwner { baseExtension = _newBaseExtension; } function pause(bool val) public onlyOwner { if (val == true) { _pause(); return; } _unpause(); } function withdrawAll() public payable onlyOwner { uint256 balance = address(this).balance; require(balance > 0); _withdraw(CREATOR_ADDRESS, balance); } function reserve(uint256 _count) public onlyOwner { uint256 total = _totalSupply(); require(total + _count <= MAX_ELEMENTS, "Not Enough"); require(total <= MAX_ELEMENTS, "Sold Out"); for (uint256 i = 0; i < _count; i++) { _mintAnElement(_msgSender()); } } function setPrice(uint256 _newPrice) external onlyOwner { _price = _newPrice; } function setAllowEGMinting(bool _allow) external onlyOwner { _eg_minting_allowed = _allow; } function setAllowPublicMinting(bool _allow) external onlyOwner { _public_minting_allowed = _allow; } // private / internal function _totalSupply() internal view returns (uint) { return _tokenIds.current() - 1; } function _nextTokenId() internal view returns (uint) { return _tokenIds.current(); } function _egTokenSupply() internal view returns (uint) { return _egOwnerMintCount.current(); } function _mintAnElement(address _to) private { uint id = _nextTokenId(); _tokenIds.increment(); _safeMint(_to, id); emit CreateEtherGrassPFP(id); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function _withdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); require(success, "Transfer Failed"); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Ownable, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (_msgSender() != owner()) { require(!paused(), "ERC721Pausable: token transfer while paused"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./OpenSeaSharedStorefrontIds.sol"; import "./OpenSeaSharedStorefrontInterface.sol"; library EtherGrassOwners { using SafeMath for uint256; using Counters for Counters.Counter; //address public constant OS_ADDRESS = 0x88B48F654c30e99bc2e4A1559b4Dcf1aD93FA656; // Rinkeby address public constant OS_ADDRESS = 0x495f947276749Ce646f68AC8c248420045cb7b5e; // Mainnet function isEtherGrassToken(uint _tokenId) public pure returns (bool) { uint256[50] memory allEtherGrassIds = OpenSeaSharedStorefrontIds.vipIds(); bool isInEtherGrassIds = false; for (uint256 i = 0; i < allEtherGrassIds.length; i++) { if (_tokenId == allEtherGrassIds[i]) { isInEtherGrassIds = true; break; } } return isInEtherGrassIds; } function etherGrassIdsOwned(address _address) public view returns (uint256[] memory) { OpenSeaSharedStorefrontInterface openSeaSharedStorefront = OpenSeaSharedStorefrontInterface(OS_ADDRESS); address[] memory senderAddressArray = new address[](50); uint256[] memory allEtherGrassIdsArray = new uint256[](50); uint256[50] memory allEtherGrassIds = OpenSeaSharedStorefrontIds.vipIds(); for (uint256 i = 0; i < allEtherGrassIds.length; i++) { senderAddressArray[i] = _address; allEtherGrassIdsArray[i] = allEtherGrassIds[i]; } uint256[] memory balanceOfResult = openSeaSharedStorefront.balanceOfBatch(senderAddressArray, allEtherGrassIdsArray); uint256[] memory ownedEtherGrassIds = new uint256[](balanceOfResult.length); uint ownedIdCounter = 0; for (uint256 i = 0; i < balanceOfResult.length; i++) { if (balanceOfResult[i] == 1) { ownedEtherGrassIds[ownedIdCounter] = allEtherGrassIds[i]; ownedIdCounter += 1; } } uint256[] memory ownedEtherGrassIdsTrimmed = new uint256[](ownedIdCounter); for (uint256 i = 0; i < ownedIdCounter; i++) { ownedEtherGrassIdsTrimmed[i] = ownedEtherGrassIds[i]; } return ownedEtherGrassIdsTrimmed; } function etherGrassIdsClaimable(address _address, uint256 _mintsPerId, mapping (uint256 => uint256) storage _idsUsed) public view returns (uint256[] memory) { uint256[] memory ownedEtherGrassIds = etherGrassIdsOwned(_address); uint256[] memory claimableIds = new uint256[](ownedEtherGrassIds.length); uint claimableIdsCounter = 0; for (uint256 i = 0; i < ownedEtherGrassIds.length; i++) { if (_idsUsed[ownedEtherGrassIds[i]] < _mintsPerId) { claimableIds[claimableIdsCounter] = ownedEtherGrassIds[i]; claimableIdsCounter += 1; } } uint256[] memory claimableIdsTrimmed = new uint256[](claimableIdsCounter); for (uint256 i = 0; i < claimableIdsCounter; i++) { claimableIdsTrimmed[i] = claimableIds[i]; } return claimableIdsTrimmed; } function etherGrassMintsClaimable(address _address, uint256 _mintsPerId, mapping (uint256 => uint256) storage _idsUsed) public view returns (uint256) { uint256[] memory ownedEtherGrassIds = etherGrassIdsOwned(_address); uint256 claimableMintsCounter = 0; for (uint256 i = 0; i < ownedEtherGrassIds.length; i++) { claimableMintsCounter += (_mintsPerId - _idsUsed[ownedEtherGrassIds[i]]); } return claimableMintsCounter; } function ownsToken(address _address, uint _tokenId) public view returns (bool) { OpenSeaSharedStorefrontInterface openSeaSharedStorefront = OpenSeaSharedStorefrontInterface(OS_ADDRESS); return (openSeaSharedStorefront.balanceOf(_address, _tokenId) == 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `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.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (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.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.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 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library OpenSeaSharedStorefrontIds { function vipIds() public pure returns(uint256[50] memory) { uint256[50] memory VIP_OS_IDS = [ 78763235517899702300642317908544281341520076745003203023483945953226286694401, // 1 78763235517899702300642317908544281341520076745003203023483945954325798322177, // 2 78763235517899702300642317908544281341520076745003203023483945955425309949953, // 3 78763235517899702300642317908544281341520076745003203023483945956524821577729, // 4 78763235517899702300642317908544281341520076745003203023483945957624333205505, // 5 78763235517899702300642317908544281341520076745003203023483945958723844833281, // 6 78763235517899702300642317908544281341520076745003203023483945959823356461057, // 7 78763235517899702300642317908544281341520076745003203023483945960922868088833, // 8 78763235517899702300642317908544281341520076745003203023483945962022379716609, // 9 78763235517899702300642317908544281341520076745003203023483945963121891344385, // 10 78763235517899702300642317908544281341520076745003203023483945964221402972161, // 11 78763235517899702300642317908544281341520076745003203023483945965320914599937, // 12 78763235517899702300642317908544281341520076745003203023483945966420426227713, // 13 78763235517899702300642317908544281341520076745003203023483945967519937855489, // 14 78763235517899702300642317908544281341520076745003203023483945968619449483265, // 15 78763235517899702300642317908544281341520076745003203023483945969718961111041, // 16 78763235517899702300642317908544281341520076745003203023483945970818472738817, // 17 78763235517899702300642317908544281341520076745003203023483945971917984366593, // 18 78763235517899702300642317908544281341520076745003203023483945973017495994369, // 19 78763235517899702300642317908544281341520076745003203023483945974117007622145, // 20 78763235517899702300642317908544281341520076745003203023483945975216519249921, // 21 78763235517899702300642317908544281341520076745003203023483945976316030877697, // 22 78763235517899702300642317908544281341520076745003203023483945977415542505473, // 23 78763235517899702300642317908544281341520076745003203023483945978515054133249, // 24 78763235517899702300642317908544281341520076745003203023483945979614565761025, // 25 78763235517899702300642317908544281341520076745003203023483945980714077388801, // 26 78763235517899702300642317908544281341520076745003203023483945981813589016577, // 27 78763235517899702300642317908544281341520076745003203023483945982913100644353, // 28 78763235517899702300642317908544281341520076745003203023483945984012612272129, // 29 78763235517899702300642317908544281341520076745003203023483945985112123899905, // 30 78763235517899702300642317908544281341520076745003203023483945986211635527681, // 31 78763235517899702300642317908544281341520076745003203023483945987311147155457, // 32 78763235517899702300642317908544281341520076745003203023483945988410658783233, // 33 78763235517899702300642317908544281341520076745003203023483945989510170411009, // 34 78763235517899702300642317908544281341520076745003203023483945990609682038785, // 35 78763235517899702300642317908544281341520076745003203023483945991709193666561, // 36 78763235517899702300642317908544281341520076745003203023483945992808705294337, // 37 78763235517899702300642317908544281341520076745003203023483945993908216922113, // 38 78763235517899702300642317908544281341520076745003203023483945995007728549889, // 39 78763235517899702300642317908544281341520076745003203023483945996107240177665, // 40 78763235517899702300642317908544281341520076745003203023483945997206751805441, // 41 78763235517899702300642317908544281341520076745003203023483945998306263433217, // 42 78763235517899702300642317908544281341520076745003203023483945999405775060993, // 43 78763235517899702300642317908544281341520076745003203023483946000505286688769, // 44 78763235517899702300642317908544281341520076745003203023483946001604798316545, // 45 78763235517899702300642317908544281341520076745003203023483946002704309944321, // 46 78763235517899702300642317908544281341520076745003203023483946003803821572097, // 47 78763235517899702300642317908544281341520076745003203023483946004903333199873, // 48 78763235517899702300642317908544281341520076745003203023483946006002844827649, // 49 78763235517899702300642317908544281341520076745003203023483946007102356455425 // 50 ]; return VIP_OS_IDS; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract OpenSeaSharedStorefrontInterface { function balanceOf(address _owner, uint256 _id) external view returns (uint256){} function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view returns (uint256[] memory){} }
{ "optimizer": { "enabled": true, "runs": 5000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": { "contracts/EtherGrassOwners.sol": { "EtherGrassOwners": "0x65497eedf6d5f3779ebc39f67b313801516b4460" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"CreateEtherGrassPFP","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":[],"name":"CREATOR_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EG_MINTS_PER_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EG_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ELEMENTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_MINT_EG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"canClaimEtherGrassTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"etherGrassIdsClaimable","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"etherGrassIdsOwned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256[]","name":"_tokensId","type":"uint256[]"}],"name":"etherGrassMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"etherGrassMintingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"etherGrassMintsClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mintsUsedForTokenId","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAllowEGMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAllowPublicMinting","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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalEtherGrassMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
66b1a2bc2ec50000600d55600e805461ffff1916905560c06040526005608081905264173539b7b760d91b60a09081526200003e9160109190620003a6565b503480156200004c57600080fd5b5060405162004262380380620042628339810160408190526200006f9162000462565b6040805180820182526005815264582d42333160d81b602080830191825283518085019094526002845261454760f01b908401528151919291620000b691600091620003a6565b508051620000cc906001906020840190620003a6565b505050620000e9620000e36200012b60201b60201c565b6200012f565b600a805460ff60a01b19169055620001018162000181565b6200010d6001620001e9565b62000124600b6200025760201b620022091760201c565b506200057b565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b03163314620001d05760405162461bcd60e51b815260206004820181905260248201526000805160206200424283398151915260448201526064015b60405180910390fd5b8051620001e590600f906020840190620003a6565b5050565b600a546001600160a01b03163314620002345760405162461bcd60e51b81526020600482018190526024820152600080516020620042428339815191526044820152606401620001c7565b600181151514156200024d576200024a62000260565b50565b6200024a6200030f565b80546001019055565b62000274600a54600160a01b900460ff1690565b15620002b65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620001c7565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002f23390565b6040516001600160a01b03909116815260200160405180910390a1565b62000323600a54600160a01b900460ff1690565b620003715760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401620001c7565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33620002f2565b828054620003b4906200053e565b90600052602060002090601f016020900481019282620003d8576000855562000423565b82601f10620003f357805160ff191683800117855562000423565b8280016001018555821562000423579182015b828111156200042357825182559160200191906001019062000406565b506200043192915062000435565b5090565b5b8082111562000431576000815560010162000436565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200047657600080fd5b82516001600160401b03808211156200048e57600080fd5b818501915085601f830112620004a357600080fd5b815181811115620004b857620004b86200044c565b604051601f8201601f19908116603f01168101908382118183101715620004e357620004e36200044c565b816040528281528886848701011115620004fc57600080fd5b600093505b8284101562000520578484018601518185018701529285019262000501565b82841115620005325760008684830101525b98975050505050505050565b600181811c908216806200055357607f821691505b602082108114156200057557634e487b7160e01b600052602260045260246000fd5b50919050565b613cb7806200058b6000396000f3fe6080604052600436106103295760003560e01c806370a08231116101a5578063b88d4fde116100ec578063e985e9c511610095578063f7a3470c1161006f578063f7a3470c146108f7578063fa5286491461090d578063fa9fe4d9146103ff578063feebfc23146108f757600080fd5b8063e985e9c514610871578063ef4c1bb3146108ba578063f2fde38b146108d757600080fd5b8063c87b56dd116100c6578063c87b56dd1461081c578063d547cfb71461083c578063da3ef23f1461085157600080fd5b8063b88d4fde146107d4578063be506cef146107f4578063c66828621461080757600080fd5b80638882f0141161014e57806395d89b411161012857806395d89b411461077f5780639d81136a14610794578063a22cb465146107b457600080fd5b80638882f014146107215780638da5cb5b1461074157806391b7f5ed1461075f57600080fd5b8063819b25ba1161017f578063819b25ba146106c95780638342ddbd146106e9578063853828b61461071957600080fd5b806370a082311461066c578063715018a61461068c5780637de6b6fe146106a157600080fd5b80632f745c5911610274578063438b63001161021d57806359a7715a116101f757806359a7715a146105e75780635c975abb146105fc5780636352211e1461062c578063639396601461064c57600080fd5b8063438b6300146105875780634f6ccce7146105a757806355f804b3146105c757600080fd5b806340c10f191161024e57806340c10f191461053457806342842e0e1461054757806342966c681461056757600080fd5b80632f745c59146104d157806330bcce53146104f15780633502a7161461051e57600080fd5b806318160ddd116102d657806326a49e37116102b057806326a49e371461046f57806326f27b1d1461048f5780632a9855ad146104a457600080fd5b806318160ddd146104225780632317e9721461043757806323b872dd1461044f57600080fd5b8063081812fc11610307578063081812fc146103a7578063095ea7b3146103df57806309d42b30146103ff57600080fd5b806301ffc9a71461032e57806302329a291461036357806306fdde0314610385575b600080fd5b34801561033a57600080fd5b5061034e6103493660046134ec565b61092d565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b5061038361037e366004613517565b61093e565b005b34801561039157600080fd5b5061039a6109bb565b60405161035a919061358c565b3480156103b357600080fd5b506103c76103c236600461359f565b610a4d565b6040516001600160a01b03909116815260200161035a565b3480156103eb57600080fd5b506103836103fa3660046135d4565b610af3565b34801561040b57600080fd5b50610414600a81565b60405190815260200161035a565b34801561042e57600080fd5b50600854610414565b34801561044357600080fd5b50600e5460ff1661034e565b34801561045b57600080fd5b5061038361046a3660046135fe565b610c25565b34801561047b57600080fd5b5061041461048a36600461359f565b610cad565b34801561049b57600080fd5b50610414610cbd565b3480156104b057600080fd5b506104c46104bf36600461363a565b610ccc565b60405161035a9190613655565b3480156104dd57600080fd5b506104146104ec3660046135d4565b610d86565b3480156104fd57600080fd5b5061041461050c36600461359f565b60009081526011602052604090205490565b34801561052a57600080fd5b506104146108ae81565b6103836105423660046135d4565b610e2e565b34801561055357600080fd5b506103836105623660046135fe565b6110a9565b34801561057357600080fd5b5061038361058236600461359f565b6110c4565b34801561059357600080fd5b506104c46105a236600461363a565b611148565b3480156105b357600080fd5b506104146105c236600461359f565b6111ea565b3480156105d357600080fd5b506103836105e2366004613738565b61128e565b3480156105f357600080fd5b506104146112ff565b34801561060857600080fd5b50600a5474010000000000000000000000000000000000000000900460ff1661034e565b34801561063857600080fd5b506103c761064736600461359f565b611309565b34801561065857600080fd5b5061041461066736600461363a565b611394565b34801561067857600080fd5b5061041461068736600461363a565b611449565b34801561069857600080fd5b506103836114e3565b3480156106ad57600080fd5b506103c773ae2269584f7374257f35f41dd19689b804dafffb81565b3480156106d557600080fd5b506103836106e436600461359f565b611549565b3480156106f557600080fd5b5061034e61070436600461359f565b600090815260116020526040902054600a1190565b610383611682565b34801561072d57600080fd5b5061038361073c366004613517565b611705565b34801561074d57600080fd5b50600a546001600160a01b03166103c7565b34801561076b57600080fd5b5061038361077a36600461359f565b611772565b34801561078b57600080fd5b5061039a6117d1565b3480156107a057600080fd5b506104c46107af36600461363a565b6117e0565b3480156107c057600080fd5b506103836107cf366004613781565b61183c565b3480156107e057600080fd5b506103836107ef3660046137b8565b611847565b610383610802366004613858565b6118d5565b34801561081357600080fd5b5061039a611ea5565b34801561082857600080fd5b5061039a61083736600461359f565b611f33565b34801561084857600080fd5b5061039a61201f565b34801561085d57600080fd5b5061038361086c366004613738565b61202c565b34801561087d57600080fd5b5061034e61088c36600461390a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108c657600080fd5b50600e54610100900460ff1661034e565b3480156108e357600080fd5b506103836108f236600461363a565b612099565b34801561090357600080fd5b506104146101f481565b34801561091957600080fd5b50610383610928366004613517565b612178565b600061093882612212565b92915050565b600a546001600160a01b0316331461099d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600181151514156109b3576109b0612268565b50565b6109b0612357565b6060600080546109ca9061393d565b80601f01602080910402602001604051908101604052809291908181526020018280546109f69061393d565b8015610a435780601f10610a1857610100808354040283529160200191610a43565b820191906000526020600020905b815481529060010190602001808311610a2657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ad75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610994565b506000908152600460205260409020546001600160a01b031690565b6000610afe82611309565b9050806001600160a01b0316836001600160a01b03161415610b885760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610994565b336001600160a01b0382161480610ba45750610ba4813361088c565b610c165760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610994565b610c208383612410565b505050565b610c30335b82612496565b610ca25760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610994565b610c2083838361259e565b600d54600090610938908361278e565b6000610cc761279a565b905090565b6040517ff3555e150000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152600a6024820152601160448201526060907365497eedf6d5f3779ebc39f67b313801516b44609063f3555e15906064015b60006040518083038186803b158015610d4a57600080fd5b505af4158015610d5e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109389190810190613978565b6000610d9183611449565b8210610e055760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610994565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6108ae610e396127a5565b1115610e875760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b600a546001600160a01b03163314610f0457600a5474010000000000000000000000000000000000000000900460ff1615610f045760405162461bcd60e51b815260206004820152600b60248201527f53616c6520436c6f7365640000000000000000000000000000000000000000006044820152606401610994565b600e5460ff610100909104161515600114610f1e57600080fd5b6108ae610f296127a5565b10610f765760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b6108ae81610f826127a5565b610f8c9190613a1f565b1115610fda5760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420456e6f756768204c65667400000000000000000000000000000000006044820152606401610994565b600a81111561102b5760405162461bcd60e51b815260206004820152600860248201527f546f6f204d616e790000000000000000000000000000000000000000000000006044820152606401610994565b61103481610cad565b3410156110835760405162461bcd60e51b815260206004820152600b60248201527f42656c6f772050726963650000000000000000000000000000000000000000006044820152606401610994565b60005b81811015610c2057611097836127bc565b806110a181613a37565b915050611086565b610c2083838360405180602001604052806000815250611847565b6110cd33610c2a565b61113f5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610994565b6109b08161280f565b6060600061115583611449565b905060008167ffffffffffffffff81111561117257611172613699565b60405190808252806020026020018201604052801561119b578160200160208202803683370190505b50905060005b828110156111e2576111b38582610d86565b8282815181106111c5576111c5613a70565b6020908102919091010152806111da81613a37565b9150506111a1565b509392505050565b60006111f560085490565b82106112695760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610994565b6008828154811061127c5761127c613a70565b90600052602060002001549050919050565b600a546001600160a01b031633146112e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b80516112fb90600f906020840190613425565b5050565b6000610cc76127a5565b6000818152600260205260408120546001600160a01b0316806109385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610994565b6040517f62d75d840000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152600a6024820152601160448201526000907365497eedf6d5f3779ebc39f67b313801516b4460906362d75d849060640160206040518083038186803b15801561141157600080fd5b505af4158015611425573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109389190613a86565b60006001600160a01b0382166114c75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610994565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461153d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b61154760006128ce565b565b600a546001600160a01b031633146115a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b60006115ad6127a5565b90506108ae6115bc8383613a1f565b111561160a5760405162461bcd60e51b815260206004820152600a60248201527f4e6f7420456e6f756768000000000000000000000000000000000000000000006044820152606401610994565b6108ae81111561165c5760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b60005b82811015610c2057611670336127bc565b8061167a81613a37565b91505061165f565b600a546001600160a01b031633146116dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b47806116e757600080fd5b6109b073ae2269584f7374257f35f41dd19689b804dafffb82612938565b600a546001600160a01b0316331461175f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b600e805460ff1916911515919091179055565b600a546001600160a01b031633146117cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b600d55565b6060600180546109ca9061393d565b6040517f9d81136a0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526060907365497eedf6d5f3779ebc39f67b313801516b446090639d81136a90602401610d32565b6112fb3383836129db565b6118513383612496565b6118c35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610994565b6118cf84848484612aaa565b50505050565b6108ae6118e06127a5565b111561192e5760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b600a546001600160a01b031633146119ab57600a5474010000000000000000000000000000000000000000900460ff16156119ab5760405162461bcd60e51b815260206004820152600b60248201527f53616c6520436c6f7365640000000000000000000000000000000000000000006044820152606401610994565b600e5460ff1615156001146119bf57600080fd5b6101f4821115611a115760405162461bcd60e51b815260206004820152600d60248201527f4f766572204d6178204d696e74000000000000000000000000000000000000006044820152606401610994565b81611a1b33611394565b1015611a695760405162461bcd60e51b815260206004820152601460248201527f4e6f7420456e6f75676820436c61696d61626c650000000000000000000000006044820152606401610994565b6000611a7f611a7661279a565b6101f490612b33565b11611acc5760405162461bcd60e51b815260206004820152601460248201527f45746865724772617373204d696e7473204f75740000000000000000000000006044820152606401610994565b611ad7611a7661279a565b821115611b265760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420456e6f7567682045746865724772617373204d696e747300000000006044820152606401610994565b6108ae82611b326127a5565b611b3c9190613a1f565b1115611b8a5760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420456e6f756768204c65667400000000000000000000000000000000006044820152606401610994565b6108ae611b956127a5565b1115611be35760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b6000805b8251811015611e9e576000838281518110611c0457611c04613a70565b602002602001015190507365497eedf6d5f3779ebc39f67b313801516b446063852348fb826040518263ffffffff1660e01b8152600401611c4791815260200190565b60206040518083038186803b158015611c5f57600080fd5b505af4158015611c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c979190613a9f565b611ce35760405162461bcd60e51b815260206004820152601460248201527f546f6b656e204e6f7420457468657247726173730000000000000000000000006044820152606401610994565b7365497eedf6d5f3779ebc39f67b313801516b4460639ab0cd88336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810184905260440160206040518083038186803b158015611d5c57600080fd5b505af4158015611d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d949190613a9f565b611de05760405162461bcd60e51b815260206004820152600d60248201527f556e6f776e656420546f6b656e000000000000000000000000000000000000006044820152606401610994565b600081815260116020526040812054611dfa90600a613abc565b905060005b81811015611e8857600083815260116020526040902054600a118015611e2457508685105b15611e7657600083815260116020526040902054611e43906001613a1f565b600084815260116020526040902055611e60600c80546001019055565b611e6b600186613a1f565b9450611e76886127bc565b80611e8081613a37565b915050611dff565b5050508080611e9690613a37565b915050611be7565b5050505050565b60108054611eb29061393d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ede9061393d565b8015611f2b5780601f10611f0057610100808354040283529160200191611f2b565b820191906000526020600020905b815481529060010190602001808311611f0e57829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b0316611fc05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610994565b6000611fca612b3f565b90506000815111611fea5760405180602001604052806000815250612018565b80611ff484612b4e565b601060405160200161200893929190613ad3565b6040516020818303038152906040525b9392505050565b600f8054611eb29061393d565b600a546001600160a01b031633146120865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b80516112fb906010906020840190613425565b600a546001600160a01b031633146120f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b6001600160a01b03811661216f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610994565b6109b0816128ce565b600a546001600160a01b031633146121d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b600e8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b80546001019055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610938575061093882612c80565b600a5474010000000000000000000000000000000000000000900460ff16156122d35760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610994565b600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861233a3390565b6040516001600160a01b03909116815260200160405180910390a1565b600a5474010000000000000000000000000000000000000000900460ff166123c15760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610994565b600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa3361233a565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061245d82611309565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166125205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610994565b600061252b83611309565b9050806001600160a01b0316846001600160a01b031614806125665750836001600160a01b031661255b84610a4d565b6001600160a01b0316145b8061259657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166125b182611309565b6001600160a01b03161461262d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610994565b6001600160a01b0382166126a85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610994565b6126b3838383612d63565b6126be600082612410565b6001600160a01b03831660009081526003602052604081208054600192906126e7908490613abc565b90915550506001600160a01b0382166000908152600360205260408120805460019290612715908490613a1f565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006120188284613b97565b6000610cc7600c5490565b600060016127b2600b5490565b610cc79190613abc565b60006127c6612d6e565b90506127d6600b80546001019055565b6127e08282612d79565b60405181907f304c1794d3f64df808ee0d07c010f335e5bbaf74b2d0a1ae7c8d7d52da14c57790600090a25050565b600061281a82611309565b905061282881600084612d63565b612833600083612410565b6001600160a01b038116600090815260036020526040812080546001929061285c908490613abc565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612985576040519150601f19603f3d011682016040523d82523d6000602084013e61298a565b606091505b5050905080610c205760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572204661696c656400000000000000000000000000000000006044820152606401610994565b816001600160a01b0316836001600160a01b03161415612a3d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610994565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ab584848461259e565b612ac184848484612d93565b6118cf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610994565b60006120188284613abc565b6060600f80546109ca9061393d565b606081612b8e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612bb85780612ba281613a37565b9150612bb19050600a83613bea565b9150612b92565b60008167ffffffffffffffff811115612bd357612bd3613699565b6040519080825280601f01601f191660200182016040528015612bfd576020820181803683370190505b5090505b841561259657612c12600183613abc565b9150612c1f600a86613bfe565b612c2a906030613a1f565b60f81b818381518110612c3f57612c3f613a70565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c79600a86613bea565b9450612c01565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612d1357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061093857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610938565b610c20838383612f40565b6000610cc7600b5490565b6112fb828260405180602001604052806000815250612fee565b60006001600160a01b0384163b15612f35576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612df0903390899088908890600401613c12565b602060405180830381600087803b158015612e0a57600080fd5b505af1925050508015612e3a575060408051601f3d908101601f19168201909252612e3791810190613c4e565b60015b612eea573d808015612e68576040519150601f19603f3d011682016040523d82523d6000602084013e612e6d565b606091505b508051612ee25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610994565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612596565b506001949350505050565b612f4b838383613077565b600a546001600160a01b03163314610c2057600a5474010000000000000000000000000000000000000000900460ff1615610c205760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c65207061757365640000000000000000000000000000000000000000006064820152608401610994565b612ff8838361312f565b6130056000848484612d93565b610c205760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610994565b6001600160a01b0383166130d2576130cd81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6130f5565b816001600160a01b0316836001600160a01b0316146130f5576130f58382613295565b6001600160a01b03821661310c57610c2081613332565b826001600160a01b0316826001600160a01b031614610c2057610c2082826133e1565b6001600160a01b0382166131855760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610994565b6000818152600260205260409020546001600160a01b0316156131ea5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610994565b6131f660008383612d63565b6001600160a01b038216600090815260036020526040812080546001929061321f908490613a1f565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016132a284611449565b6132ac9190613abc565b6000838152600760205260409020549091508082146132ff576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061334490600190613abc565b6000838152600960205260408120546008805493945090928490811061336c5761336c613a70565b90600052602060002001549050806008838154811061338d5761338d613a70565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806133c5576133c5613c6b565b6001900381819060005260206000200160009055905550505050565b60006133ec83611449565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546134319061393d565b90600052602060002090601f0160209004810192826134535760008555613499565b82601f1061346c57805160ff1916838001178555613499565b82800160010185558215613499579182015b8281111561349957825182559160200191906001019061347e565b506134a59291506134a9565b5090565b5b808211156134a557600081556001016134aa565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146109b057600080fd5b6000602082840312156134fe57600080fd5b8135612018816134be565b80151581146109b057600080fd5b60006020828403121561352957600080fd5b813561201881613509565b60005b8381101561354f578181015183820152602001613537565b838111156118cf5750506000910152565b60008151808452613578816020860160208601613534565b601f01601f19169290920160200192915050565b6020815260006120186020830184613560565b6000602082840312156135b157600080fd5b5035919050565b80356001600160a01b03811681146135cf57600080fd5b919050565b600080604083850312156135e757600080fd5b6135f0836135b8565b946020939093013593505050565b60008060006060848603121561361357600080fd5b61361c846135b8565b925061362a602085016135b8565b9150604084013590509250925092565b60006020828403121561364c57600080fd5b612018826135b8565b6020808252825182820181905260009190848201906040850190845b8181101561368d57835183529284019291840191600101613671565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156136d8576136d8613699565b604052919050565b600067ffffffffffffffff8311156136fa576136fa613699565b61370d6020601f19601f860116016136af565b905082815283838301111561372157600080fd5b828260208301376000602084830101529392505050565b60006020828403121561374a57600080fd5b813567ffffffffffffffff81111561376157600080fd5b8201601f8101841361377257600080fd5b612596848235602084016136e0565b6000806040838503121561379457600080fd5b61379d836135b8565b915060208301356137ad81613509565b809150509250929050565b600080600080608085870312156137ce57600080fd5b6137d7856135b8565b93506137e5602086016135b8565b925060408501359150606085013567ffffffffffffffff81111561380857600080fd5b8501601f8101871361381957600080fd5b613828878235602084016136e0565b91505092959194509250565b600067ffffffffffffffff82111561384e5761384e613699565b5060051b60200190565b60008060006060848603121561386d57600080fd5b613876846135b8565b92506020808501359250604085013567ffffffffffffffff81111561389a57600080fd5b8501601f810187136138ab57600080fd5b80356138be6138b982613834565b6136af565b81815260059190911b820183019083810190898311156138dd57600080fd5b928401925b828410156138fb578335825292840192908401906138e2565b80955050505050509250925092565b6000806040838503121561391d57600080fd5b613926836135b8565b9150613934602084016135b8565b90509250929050565b600181811c9082168061395157607f821691505b6020821081141561397257634e487b7160e01b600052602260045260246000fd5b50919050565b6000602080838503121561398b57600080fd5b825167ffffffffffffffff8111156139a257600080fd5b8301601f810185136139b357600080fd5b80516139c16138b982613834565b81815260059190911b820183019083810190878311156139e057600080fd5b928401925b828410156139fe578351825292840192908401906139e5565b979650505050505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613a3257613a32613a09565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a6957613a69613a09565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a9857600080fd5b5051919050565b600060208284031215613ab157600080fd5b815161201881613509565b600082821015613ace57613ace613a09565b500390565b600084516020613ae68285838a01613534565b855191840191613af98184848a01613534565b8554920191600090600181811c9080831680613b1657607f831692505b858310811415613b3457634e487b7160e01b85526022600452602485fd5b808015613b485760018114613b5957613b86565b60ff19851688528388019550613b86565b60008b81526020902060005b85811015613b7e5781548a820152908401908801613b65565b505083880195505b50939b9a5050505050505050505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613bcf57613bcf613a09565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613bf957613bf9613bd4565b500490565b600082613c0d57613c0d613bd4565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c446080830184613560565b9695505050505050565b600060208284031215613c6057600080fd5b8151612018816134be565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220b2cd7c1efef0cd99090958051664155349f1a157164a1d0c9acace617c1050f064736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f657468657267726173732e6d7970696e6174612e636c6f75642f697066732f516d614a5a5046384d374150576a76645879776b464347596f5569614a6b783662396871635672314c66363269562f00000000000000000000
Deployed Bytecode
0x6080604052600436106103295760003560e01c806370a08231116101a5578063b88d4fde116100ec578063e985e9c511610095578063f7a3470c1161006f578063f7a3470c146108f7578063fa5286491461090d578063fa9fe4d9146103ff578063feebfc23146108f757600080fd5b8063e985e9c514610871578063ef4c1bb3146108ba578063f2fde38b146108d757600080fd5b8063c87b56dd116100c6578063c87b56dd1461081c578063d547cfb71461083c578063da3ef23f1461085157600080fd5b8063b88d4fde146107d4578063be506cef146107f4578063c66828621461080757600080fd5b80638882f0141161014e57806395d89b411161012857806395d89b411461077f5780639d81136a14610794578063a22cb465146107b457600080fd5b80638882f014146107215780638da5cb5b1461074157806391b7f5ed1461075f57600080fd5b8063819b25ba1161017f578063819b25ba146106c95780638342ddbd146106e9578063853828b61461071957600080fd5b806370a082311461066c578063715018a61461068c5780637de6b6fe146106a157600080fd5b80632f745c5911610274578063438b63001161021d57806359a7715a116101f757806359a7715a146105e75780635c975abb146105fc5780636352211e1461062c578063639396601461064c57600080fd5b8063438b6300146105875780634f6ccce7146105a757806355f804b3146105c757600080fd5b806340c10f191161024e57806340c10f191461053457806342842e0e1461054757806342966c681461056757600080fd5b80632f745c59146104d157806330bcce53146104f15780633502a7161461051e57600080fd5b806318160ddd116102d657806326a49e37116102b057806326a49e371461046f57806326f27b1d1461048f5780632a9855ad146104a457600080fd5b806318160ddd146104225780632317e9721461043757806323b872dd1461044f57600080fd5b8063081812fc11610307578063081812fc146103a7578063095ea7b3146103df57806309d42b30146103ff57600080fd5b806301ffc9a71461032e57806302329a291461036357806306fdde0314610385575b600080fd5b34801561033a57600080fd5b5061034e6103493660046134ec565b61092d565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b5061038361037e366004613517565b61093e565b005b34801561039157600080fd5b5061039a6109bb565b60405161035a919061358c565b3480156103b357600080fd5b506103c76103c236600461359f565b610a4d565b6040516001600160a01b03909116815260200161035a565b3480156103eb57600080fd5b506103836103fa3660046135d4565b610af3565b34801561040b57600080fd5b50610414600a81565b60405190815260200161035a565b34801561042e57600080fd5b50600854610414565b34801561044357600080fd5b50600e5460ff1661034e565b34801561045b57600080fd5b5061038361046a3660046135fe565b610c25565b34801561047b57600080fd5b5061041461048a36600461359f565b610cad565b34801561049b57600080fd5b50610414610cbd565b3480156104b057600080fd5b506104c46104bf36600461363a565b610ccc565b60405161035a9190613655565b3480156104dd57600080fd5b506104146104ec3660046135d4565b610d86565b3480156104fd57600080fd5b5061041461050c36600461359f565b60009081526011602052604090205490565b34801561052a57600080fd5b506104146108ae81565b6103836105423660046135d4565b610e2e565b34801561055357600080fd5b506103836105623660046135fe565b6110a9565b34801561057357600080fd5b5061038361058236600461359f565b6110c4565b34801561059357600080fd5b506104c46105a236600461363a565b611148565b3480156105b357600080fd5b506104146105c236600461359f565b6111ea565b3480156105d357600080fd5b506103836105e2366004613738565b61128e565b3480156105f357600080fd5b506104146112ff565b34801561060857600080fd5b50600a5474010000000000000000000000000000000000000000900460ff1661034e565b34801561063857600080fd5b506103c761064736600461359f565b611309565b34801561065857600080fd5b5061041461066736600461363a565b611394565b34801561067857600080fd5b5061041461068736600461363a565b611449565b34801561069857600080fd5b506103836114e3565b3480156106ad57600080fd5b506103c773ae2269584f7374257f35f41dd19689b804dafffb81565b3480156106d557600080fd5b506103836106e436600461359f565b611549565b3480156106f557600080fd5b5061034e61070436600461359f565b600090815260116020526040902054600a1190565b610383611682565b34801561072d57600080fd5b5061038361073c366004613517565b611705565b34801561074d57600080fd5b50600a546001600160a01b03166103c7565b34801561076b57600080fd5b5061038361077a36600461359f565b611772565b34801561078b57600080fd5b5061039a6117d1565b3480156107a057600080fd5b506104c46107af36600461363a565b6117e0565b3480156107c057600080fd5b506103836107cf366004613781565b61183c565b3480156107e057600080fd5b506103836107ef3660046137b8565b611847565b610383610802366004613858565b6118d5565b34801561081357600080fd5b5061039a611ea5565b34801561082857600080fd5b5061039a61083736600461359f565b611f33565b34801561084857600080fd5b5061039a61201f565b34801561085d57600080fd5b5061038361086c366004613738565b61202c565b34801561087d57600080fd5b5061034e61088c36600461390a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108c657600080fd5b50600e54610100900460ff1661034e565b3480156108e357600080fd5b506103836108f236600461363a565b612099565b34801561090357600080fd5b506104146101f481565b34801561091957600080fd5b50610383610928366004613517565b612178565b600061093882612212565b92915050565b600a546001600160a01b0316331461099d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600181151514156109b3576109b0612268565b50565b6109b0612357565b6060600080546109ca9061393d565b80601f01602080910402602001604051908101604052809291908181526020018280546109f69061393d565b8015610a435780601f10610a1857610100808354040283529160200191610a43565b820191906000526020600020905b815481529060010190602001808311610a2657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ad75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610994565b506000908152600460205260409020546001600160a01b031690565b6000610afe82611309565b9050806001600160a01b0316836001600160a01b03161415610b885760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610994565b336001600160a01b0382161480610ba45750610ba4813361088c565b610c165760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610994565b610c208383612410565b505050565b610c30335b82612496565b610ca25760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610994565b610c2083838361259e565b600d54600090610938908361278e565b6000610cc761279a565b905090565b6040517ff3555e150000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152600a6024820152601160448201526060907365497eedf6d5f3779ebc39f67b313801516b44609063f3555e15906064015b60006040518083038186803b158015610d4a57600080fd5b505af4158015610d5e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109389190810190613978565b6000610d9183611449565b8210610e055760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610994565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6108ae610e396127a5565b1115610e875760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b600a546001600160a01b03163314610f0457600a5474010000000000000000000000000000000000000000900460ff1615610f045760405162461bcd60e51b815260206004820152600b60248201527f53616c6520436c6f7365640000000000000000000000000000000000000000006044820152606401610994565b600e5460ff610100909104161515600114610f1e57600080fd5b6108ae610f296127a5565b10610f765760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b6108ae81610f826127a5565b610f8c9190613a1f565b1115610fda5760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420456e6f756768204c65667400000000000000000000000000000000006044820152606401610994565b600a81111561102b5760405162461bcd60e51b815260206004820152600860248201527f546f6f204d616e790000000000000000000000000000000000000000000000006044820152606401610994565b61103481610cad565b3410156110835760405162461bcd60e51b815260206004820152600b60248201527f42656c6f772050726963650000000000000000000000000000000000000000006044820152606401610994565b60005b81811015610c2057611097836127bc565b806110a181613a37565b915050611086565b610c2083838360405180602001604052806000815250611847565b6110cd33610c2a565b61113f5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610994565b6109b08161280f565b6060600061115583611449565b905060008167ffffffffffffffff81111561117257611172613699565b60405190808252806020026020018201604052801561119b578160200160208202803683370190505b50905060005b828110156111e2576111b38582610d86565b8282815181106111c5576111c5613a70565b6020908102919091010152806111da81613a37565b9150506111a1565b509392505050565b60006111f560085490565b82106112695760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610994565b6008828154811061127c5761127c613a70565b90600052602060002001549050919050565b600a546001600160a01b031633146112e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b80516112fb90600f906020840190613425565b5050565b6000610cc76127a5565b6000818152600260205260408120546001600160a01b0316806109385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610994565b6040517f62d75d840000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152600a6024820152601160448201526000907365497eedf6d5f3779ebc39f67b313801516b4460906362d75d849060640160206040518083038186803b15801561141157600080fd5b505af4158015611425573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109389190613a86565b60006001600160a01b0382166114c75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610994565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461153d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b61154760006128ce565b565b600a546001600160a01b031633146115a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b60006115ad6127a5565b90506108ae6115bc8383613a1f565b111561160a5760405162461bcd60e51b815260206004820152600a60248201527f4e6f7420456e6f756768000000000000000000000000000000000000000000006044820152606401610994565b6108ae81111561165c5760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b60005b82811015610c2057611670336127bc565b8061167a81613a37565b91505061165f565b600a546001600160a01b031633146116dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b47806116e757600080fd5b6109b073ae2269584f7374257f35f41dd19689b804dafffb82612938565b600a546001600160a01b0316331461175f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b600e805460ff1916911515919091179055565b600a546001600160a01b031633146117cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b600d55565b6060600180546109ca9061393d565b6040517f9d81136a0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526060907365497eedf6d5f3779ebc39f67b313801516b446090639d81136a90602401610d32565b6112fb3383836129db565b6118513383612496565b6118c35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610994565b6118cf84848484612aaa565b50505050565b6108ae6118e06127a5565b111561192e5760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b600a546001600160a01b031633146119ab57600a5474010000000000000000000000000000000000000000900460ff16156119ab5760405162461bcd60e51b815260206004820152600b60248201527f53616c6520436c6f7365640000000000000000000000000000000000000000006044820152606401610994565b600e5460ff1615156001146119bf57600080fd5b6101f4821115611a115760405162461bcd60e51b815260206004820152600d60248201527f4f766572204d6178204d696e74000000000000000000000000000000000000006044820152606401610994565b81611a1b33611394565b1015611a695760405162461bcd60e51b815260206004820152601460248201527f4e6f7420456e6f75676820436c61696d61626c650000000000000000000000006044820152606401610994565b6000611a7f611a7661279a565b6101f490612b33565b11611acc5760405162461bcd60e51b815260206004820152601460248201527f45746865724772617373204d696e7473204f75740000000000000000000000006044820152606401610994565b611ad7611a7661279a565b821115611b265760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420456e6f7567682045746865724772617373204d696e747300000000006044820152606401610994565b6108ae82611b326127a5565b611b3c9190613a1f565b1115611b8a5760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420456e6f756768204c65667400000000000000000000000000000000006044820152606401610994565b6108ae611b956127a5565b1115611be35760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f75740000000000000000000000000000000000000000000000006044820152606401610994565b6000805b8251811015611e9e576000838281518110611c0457611c04613a70565b602002602001015190507365497eedf6d5f3779ebc39f67b313801516b446063852348fb826040518263ffffffff1660e01b8152600401611c4791815260200190565b60206040518083038186803b158015611c5f57600080fd5b505af4158015611c73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c979190613a9f565b611ce35760405162461bcd60e51b815260206004820152601460248201527f546f6b656e204e6f7420457468657247726173730000000000000000000000006044820152606401610994565b7365497eedf6d5f3779ebc39f67b313801516b4460639ab0cd88336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810184905260440160206040518083038186803b158015611d5c57600080fd5b505af4158015611d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d949190613a9f565b611de05760405162461bcd60e51b815260206004820152600d60248201527f556e6f776e656420546f6b656e000000000000000000000000000000000000006044820152606401610994565b600081815260116020526040812054611dfa90600a613abc565b905060005b81811015611e8857600083815260116020526040902054600a118015611e2457508685105b15611e7657600083815260116020526040902054611e43906001613a1f565b600084815260116020526040902055611e60600c80546001019055565b611e6b600186613a1f565b9450611e76886127bc565b80611e8081613a37565b915050611dff565b5050508080611e9690613a37565b915050611be7565b5050505050565b60108054611eb29061393d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ede9061393d565b8015611f2b5780601f10611f0057610100808354040283529160200191611f2b565b820191906000526020600020905b815481529060010190602001808311611f0e57829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b0316611fc05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610994565b6000611fca612b3f565b90506000815111611fea5760405180602001604052806000815250612018565b80611ff484612b4e565b601060405160200161200893929190613ad3565b6040516020818303038152906040525b9392505050565b600f8054611eb29061393d565b600a546001600160a01b031633146120865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b80516112fb906010906020840190613425565b600a546001600160a01b031633146120f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b6001600160a01b03811661216f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610994565b6109b0816128ce565b600a546001600160a01b031633146121d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610994565b600e8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b80546001019055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610938575061093882612c80565b600a5474010000000000000000000000000000000000000000900460ff16156122d35760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610994565b600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861233a3390565b6040516001600160a01b03909116815260200160405180910390a1565b600a5474010000000000000000000000000000000000000000900460ff166123c15760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610994565b600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa3361233a565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061245d82611309565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166125205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610994565b600061252b83611309565b9050806001600160a01b0316846001600160a01b031614806125665750836001600160a01b031661255b84610a4d565b6001600160a01b0316145b8061259657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166125b182611309565b6001600160a01b03161461262d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610994565b6001600160a01b0382166126a85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610994565b6126b3838383612d63565b6126be600082612410565b6001600160a01b03831660009081526003602052604081208054600192906126e7908490613abc565b90915550506001600160a01b0382166000908152600360205260408120805460019290612715908490613a1f565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006120188284613b97565b6000610cc7600c5490565b600060016127b2600b5490565b610cc79190613abc565b60006127c6612d6e565b90506127d6600b80546001019055565b6127e08282612d79565b60405181907f304c1794d3f64df808ee0d07c010f335e5bbaf74b2d0a1ae7c8d7d52da14c57790600090a25050565b600061281a82611309565b905061282881600084612d63565b612833600083612410565b6001600160a01b038116600090815260036020526040812080546001929061285c908490613abc565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612985576040519150601f19603f3d011682016040523d82523d6000602084013e61298a565b606091505b5050905080610c205760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572204661696c656400000000000000000000000000000000006044820152606401610994565b816001600160a01b0316836001600160a01b03161415612a3d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610994565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ab584848461259e565b612ac184848484612d93565b6118cf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610994565b60006120188284613abc565b6060600f80546109ca9061393d565b606081612b8e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612bb85780612ba281613a37565b9150612bb19050600a83613bea565b9150612b92565b60008167ffffffffffffffff811115612bd357612bd3613699565b6040519080825280601f01601f191660200182016040528015612bfd576020820181803683370190505b5090505b841561259657612c12600183613abc565b9150612c1f600a86613bfe565b612c2a906030613a1f565b60f81b818381518110612c3f57612c3f613a70565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c79600a86613bea565b9450612c01565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612d1357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061093857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610938565b610c20838383612f40565b6000610cc7600b5490565b6112fb828260405180602001604052806000815250612fee565b60006001600160a01b0384163b15612f35576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612df0903390899088908890600401613c12565b602060405180830381600087803b158015612e0a57600080fd5b505af1925050508015612e3a575060408051601f3d908101601f19168201909252612e3791810190613c4e565b60015b612eea573d808015612e68576040519150601f19603f3d011682016040523d82523d6000602084013e612e6d565b606091505b508051612ee25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610994565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612596565b506001949350505050565b612f4b838383613077565b600a546001600160a01b03163314610c2057600a5474010000000000000000000000000000000000000000900460ff1615610c205760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c65207061757365640000000000000000000000000000000000000000006064820152608401610994565b612ff8838361312f565b6130056000848484612d93565b610c205760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610994565b6001600160a01b0383166130d2576130cd81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6130f5565b816001600160a01b0316836001600160a01b0316146130f5576130f58382613295565b6001600160a01b03821661310c57610c2081613332565b826001600160a01b0316826001600160a01b031614610c2057610c2082826133e1565b6001600160a01b0382166131855760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610994565b6000818152600260205260409020546001600160a01b0316156131ea5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610994565b6131f660008383612d63565b6001600160a01b038216600090815260036020526040812080546001929061321f908490613a1f565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016132a284611449565b6132ac9190613abc565b6000838152600760205260409020549091508082146132ff576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061334490600190613abc565b6000838152600960205260408120546008805493945090928490811061336c5761336c613a70565b90600052602060002001549050806008838154811061338d5761338d613a70565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806133c5576133c5613c6b565b6001900381819060005260206000200160009055905550505050565b60006133ec83611449565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546134319061393d565b90600052602060002090601f0160209004810192826134535760008555613499565b82601f1061346c57805160ff1916838001178555613499565b82800160010185558215613499579182015b8281111561349957825182559160200191906001019061347e565b506134a59291506134a9565b5090565b5b808211156134a557600081556001016134aa565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146109b057600080fd5b6000602082840312156134fe57600080fd5b8135612018816134be565b80151581146109b057600080fd5b60006020828403121561352957600080fd5b813561201881613509565b60005b8381101561354f578181015183820152602001613537565b838111156118cf5750506000910152565b60008151808452613578816020860160208601613534565b601f01601f19169290920160200192915050565b6020815260006120186020830184613560565b6000602082840312156135b157600080fd5b5035919050565b80356001600160a01b03811681146135cf57600080fd5b919050565b600080604083850312156135e757600080fd5b6135f0836135b8565b946020939093013593505050565b60008060006060848603121561361357600080fd5b61361c846135b8565b925061362a602085016135b8565b9150604084013590509250925092565b60006020828403121561364c57600080fd5b612018826135b8565b6020808252825182820181905260009190848201906040850190845b8181101561368d57835183529284019291840191600101613671565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156136d8576136d8613699565b604052919050565b600067ffffffffffffffff8311156136fa576136fa613699565b61370d6020601f19601f860116016136af565b905082815283838301111561372157600080fd5b828260208301376000602084830101529392505050565b60006020828403121561374a57600080fd5b813567ffffffffffffffff81111561376157600080fd5b8201601f8101841361377257600080fd5b612596848235602084016136e0565b6000806040838503121561379457600080fd5b61379d836135b8565b915060208301356137ad81613509565b809150509250929050565b600080600080608085870312156137ce57600080fd5b6137d7856135b8565b93506137e5602086016135b8565b925060408501359150606085013567ffffffffffffffff81111561380857600080fd5b8501601f8101871361381957600080fd5b613828878235602084016136e0565b91505092959194509250565b600067ffffffffffffffff82111561384e5761384e613699565b5060051b60200190565b60008060006060848603121561386d57600080fd5b613876846135b8565b92506020808501359250604085013567ffffffffffffffff81111561389a57600080fd5b8501601f810187136138ab57600080fd5b80356138be6138b982613834565b6136af565b81815260059190911b820183019083810190898311156138dd57600080fd5b928401925b828410156138fb578335825292840192908401906138e2565b80955050505050509250925092565b6000806040838503121561391d57600080fd5b613926836135b8565b9150613934602084016135b8565b90509250929050565b600181811c9082168061395157607f821691505b6020821081141561397257634e487b7160e01b600052602260045260246000fd5b50919050565b6000602080838503121561398b57600080fd5b825167ffffffffffffffff8111156139a257600080fd5b8301601f810185136139b357600080fd5b80516139c16138b982613834565b81815260059190911b820183019083810190878311156139e057600080fd5b928401925b828410156139fe578351825292840192908401906139e5565b979650505050505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613a3257613a32613a09565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a6957613a69613a09565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a9857600080fd5b5051919050565b600060208284031215613ab157600080fd5b815161201881613509565b600082821015613ace57613ace613a09565b500390565b600084516020613ae68285838a01613534565b855191840191613af98184848a01613534565b8554920191600090600181811c9080831680613b1657607f831692505b858310811415613b3457634e487b7160e01b85526022600452602485fd5b808015613b485760018114613b5957613b86565b60ff19851688528388019550613b86565b60008b81526020902060005b85811015613b7e5781548a820152908401908801613b65565b505083880195505b50939b9a5050505050505050505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613bcf57613bcf613a09565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613bf957613bf9613bd4565b500490565b600082613c0d57613c0d613bd4565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c446080830184613560565b9695505050505050565b600060208284031215613c6057600080fd5b8151612018816134be565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220b2cd7c1efef0cd99090958051664155349f1a157164a1d0c9acace617c1050f064736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f657468657267726173732e6d7970696e6174612e636c6f75642f697066732f516d614a5a5046384d374150576a76645879776b464347596f5569614a6b783662396871635672314c66363269562f00000000000000000000
-----Decoded View---------------
Arg [0] : baseURI (string): https://ethergrass.mypinata.cloud/ipfs/QmaJZPF8M7APWjvdXywkFCGYoUiaJkx6b9hqcVr1Lf62iV/
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000056
Arg [2] : 68747470733a2f2f657468657267726173732e6d7970696e6174612e636c6f75
Arg [3] : 642f697066732f516d614a5a5046384d374150576a76645879776b464347596f
Arg [4] : 5569614a6b783662396871635672314c66363269562f00000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.