Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0.05 ETH
Eth Value
$131.91 (@ $2,638.11/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 43 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 15474304 | 774 days ago | IN | 0 ETH | 0.0002913 | ||||
Transfer From | 14963119 | 857 days ago | IN | 0 ETH | 0.00256067 | ||||
Transfer From | 14929562 | 862 days ago | IN | 0 ETH | 0.00329275 | ||||
Mint | 14584743 | 918 days ago | IN | 0.05 ETH | 0.00452652 | ||||
Withdraw | 14299305 | 962 days ago | IN | 0 ETH | 0.00188212 | ||||
Transfer From | 14252236 | 969 days ago | IN | 0 ETH | 0.00711357 | ||||
Mint | 14251985 | 970 days ago | IN | 0.15 ETH | 0.01631955 | ||||
Withdraw | 14251962 | 970 days ago | IN | 0 ETH | 0.00340041 | ||||
Mint | 14251959 | 970 days ago | IN | 0.15 ETH | 0.01212539 | ||||
Set Public Sales... | 14251580 | 970 days ago | IN | 0 ETH | 0.00363245 | ||||
Signed Mint | 14251273 | 970 days ago | IN | 0.05 ETH | 0.01944318 | ||||
Signed Mint | 14238181 | 972 days ago | IN | 0.05 ETH | 0.00970493 | ||||
Signed Mint | 14236834 | 972 days ago | IN | 0 ETH | 0.00522552 | ||||
Signed Mint | 14235454 | 972 days ago | IN | 0.1 ETH | 0.00731373 | ||||
Transfer From | 14235278 | 972 days ago | IN | 0 ETH | 0.00230001 | ||||
Signed Mint | 14235058 | 972 days ago | IN | 0 ETH | 0.00903598 | ||||
Signed Mint | 14233143 | 972 days ago | IN | 0 ETH | 0.01018311 | ||||
Signed Mint | 14231990 | 973 days ago | IN | 0 ETH | 0.00847099 | ||||
Signed Mint | 14231525 | 973 days ago | IN | 0 ETH | 0.01825338 | ||||
Signed Mint | 14228588 | 973 days ago | IN | 0.05 ETH | 0.00510085 | ||||
Signed Mint | 14228581 | 973 days ago | IN | 0 ETH | 0.00660207 | ||||
Signed Mint | 14227831 | 973 days ago | IN | 0.1 ETH | 0.0086591 | ||||
Signed Mint | 14227104 | 973 days ago | IN | 0 ETH | 0.00676847 | ||||
Signed Mint | 14227070 | 973 days ago | IN | 0 ETH | 0.00928458 | ||||
Signed Mint | 14226908 | 973 days ago | IN | 0 ETH | 0.01004795 |
Loading...
Loading
Contract Name:
Funguys
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; // ________ ___ _ ,---. .--. .-_'''-. ___ _ ____ __ .-'''-. // | |.' | | || \ | | '_( )_ \ .' | | | \ \ / // _ \ // | .----'| .' | || , \ | ||(_ o _)| ' | .' | | \ _. / '(`' )/`--' // | _|____ .' '_ | || |\_ \| |. (_,_)/___| .' '_ | | _( )_ .'(_ o _). // |_( )_ |' ( \.-.|| _( )_\ || | .-----.' ( \.-.| ___(_ o _)' (_,_). '. // (_ o._)__|' (`. _` /|| (_ o _) |' \ '- .'' (`. _` /|| |(_,_)' .---. \ : // |(_,_) | (_ (_) _)| (_,_)\ | \ `-'` | | (_ (_) _)| `-' / \ `-' | // | | \ / . \ /| | | | \ / \ / . \ / \ / \ / // '---' ``-'`-'' '--' '--' `'-...-' ``-'`-'' `-..-' `-...-' contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract Funguys is ERC721, Ownable { using SafeMath for uint256; event Received(address from, uint256 amount); event NewFunguy(address indexed funguyAddress, uint256 count); event NewFunguyFreeClaim(address indexed funguyAddress, uint256 count); uint256 public constant MAX_SUPPLY = 4913; bool public pauseState; bool public publicSalesState; uint256 public totalSupply; address public proxyRegistryAddress; string private _baseTokenURI; string private _currentContractURI; uint256 private _maxTokensPerPurchase; uint256 private _reservedTokensNumber; uint256 private _price; address[] private _members; mapping(string => bool) private _isNonceUsed; mapping(address => uint256) private _wlQtyMintedByFunguy; mapping(address => uint256) private _freeClaimQtyMintedByFunguy; constructor( address newProxyRegistryAddress, address[] memory members, string memory baseURI, string memory newContractURI ) ERC721("Funguys", "Funguy") { pauseState = true; publicSalesState = false; totalSupply = 0; proxyRegistryAddress = newProxyRegistryAddress; _members = members; _baseTokenURI = baseURI; _currentContractURI = newContractURI; _maxTokensPerPurchase = 3; _reservedTokensNumber = 200; _price = 0.05 ether; } function Mint(uint256 quantityToMint) external payable { require(!pauseState, "Sale paused"); require(publicSalesState, "Public sale paused"); require(totalSupply < MAX_SUPPLY, "Sold out"); require( quantityToMint > 0 && quantityToMint <= _maxTokensPerPurchase, "3 is max per purchase" ); require( totalSupply + quantityToMint <= MAX_SUPPLY - _reservedTokensNumber, "Exceed max supply" ); require(msg.value >= _price * quantityToMint, "Insufficient ETH"); for (uint256 i = 0; i < quantityToMint; i++) { _safeMint(msg.sender, totalSupply + i); } totalSupply += quantityToMint; emit NewFunguy(msg.sender, quantityToMint); } function SignedMint( string memory nonce, uint256 quantityToMint, uint256 maxQtyForOneGuy, bool freeMintEligible, bytes memory signature ) external payable { require(!pauseState, "Sale paused"); require(quantityToMint > 0, "Quantity must be greater 0"); require(totalSupply < MAX_SUPPLY, "Sold out"); if (freeMintEligible) { require( quantityToMint <= _reservedTokensNumber, "Exceeds reserved supply" ); } else { require( totalSupply + quantityToMint <= MAX_SUPPLY - _reservedTokensNumber, "Exceed max supply" ); } address signerAddress = _verifySign( msg.sender, nonce, maxQtyForOneGuy, freeMintEligible, signature ); require(signerAddress == owner(), "Not authorized"); require(!_isNonceUsed[nonce], "Used nonce"); if (freeMintEligible) { require( _freeClaimQtyMintedByFunguy[msg.sender] + quantityToMint <= maxQtyForOneGuy, "Exceed max free mints" ); } else { require( _wlQtyMintedByFunguy[msg.sender] + quantityToMint <= maxQtyForOneGuy, "Exceed max wl mints" ); require(msg.value >= _price * quantityToMint, "Insufficient ETH"); } for (uint256 i = 0; i < quantityToMint; i++) { _safeMint(msg.sender, totalSupply + i); } totalSupply += quantityToMint; _isNonceUsed[nonce] = true; if (freeMintEligible) { _reservedTokensNumber -= quantityToMint; _freeClaimQtyMintedByFunguy[msg.sender] += quantityToMint; emit NewFunguyFreeClaim(msg.sender, quantityToMint); } else { _wlQtyMintedByFunguy[msg.sender] += quantityToMint; emit NewFunguy(msg.sender, quantityToMint); } } function _verifySign( address funguyAddress, string memory nonce, uint256 maxQtyForOneGuy, bool freeMintEligible, bytes memory signature ) internal pure returns (address) { return ECDSA.recover( keccak256( abi.encodePacked( funguyAddress, nonce, maxQtyForOneGuy, freeMintEligible ) ), signature ); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function contractURI() public view returns (string memory) { return _currentContractURI; } function getNumberOfMaxTokensPerPurchase() external view returns (uint256) { return _maxTokensPerPurchase; } function getNumberOfReservedTokens() external view returns (uint256) { return _reservedTokensNumber; } function getPrice() external view returns (uint256) { return _price; } function getWlQtyMintedByFunguy(address funguyAddress) external view returns (uint256) { return _wlQtyMintedByFunguy[funguyAddress]; } function getFreeClaimQtyMintedByFunguy(address funguyAddress) external view returns (uint256) { return _freeClaimQtyMintedByFunguy[funguyAddress]; } function ownedBy(address owner) external view returns (uint256[] memory) { uint256 counter = 0; uint256[] memory tokenIds = new uint256[](balanceOf(owner)); for (uint256 i = 0; i < totalSupply; i++) { if (ownerOf(i) == owner) { tokenIds[counter] = i; counter++; } } return tokenIds; } // Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } //only Owner function setBaseURI(string memory newBaseURI) public onlyOwner { _baseTokenURI = newBaseURI; } function setContractURI(string memory newContractURI) external onlyOwner { _currentContractURI = newContractURI; } function setPauseState(bool newPauseState) external onlyOwner { pauseState = newPauseState; } function setPublicSalesState(bool newPublicSalesState) external onlyOwner { publicSalesState = newPublicSalesState; } function setNumberOfMaxTokensPerPurchase(uint256 newNumber) public onlyOwner { _maxTokensPerPurchase = newNumber; } function setNumberOfReservedTokens(uint256 newNumber) external onlyOwner { require(newNumber >= 0, "New number must be not negative"); require( MAX_SUPPLY - (totalSupply + newNumber) >= 0, "New number exceeds max supply" ); _reservedTokensNumber = newNumber; } function setPrice(uint256 newPrice) external onlyOwner { _price = newPrice; } function setProxy(address newProxyRegistryAddress) external onlyOwner { proxyRegistryAddress = newProxyRegistryAddress; } //External function giveAway(address to, uint256 quantityToMint) external onlyOwner { require(quantityToMint > 0, "Quantity must be greater 0"); require(totalSupply < MAX_SUPPLY, "Sold out"); require( quantityToMint <= _reservedTokensNumber, "Exceeds reserved supply" ); for (uint256 i; i < quantityToMint; i++) { _safeMint(to, totalSupply + i); } totalSupply += quantityToMint; _reservedTokensNumber -= quantityToMint; } function withdraw(address to, uint256 amount) external onlyOwner { require(address(this).balance > 0, "Balance is zero"); (bool success, ) = to.call{value: amount}(""); require(success, "Transfer failed"); } function withdrawAll() external onlyOwner { uint256 _totalBalance = address(this).balance; require(_totalBalance > 0, "Balance is zero"); uint256 _amount = _totalBalance / _members.length; for (uint256 i = 0; i < _members.length; i++) { (bool success, ) = _members[i].call{value: _amount}(""); require(success, "Transfer failed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"newProxyRegistryAddress","type":"address"},{"internalType":"address[]","name":"members","type":"address[]"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"newContractURI","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":"address","name":"funguyAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"NewFunguy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"funguyAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"NewFunguyFreeClaim","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":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantityToMint","type":"uint256"}],"name":"Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"nonce","type":"string"},{"internalType":"uint256","name":"quantityToMint","type":"uint256"},{"internalType":"uint256","name":"maxQtyForOneGuy","type":"uint256"},{"internalType":"bool","name":"freeMintEligible","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"SignedMint","outputs":[],"stateMutability":"payable","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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"funguyAddress","type":"address"}],"name":"getFreeClaimQtyMintedByFunguy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfMaxTokensPerPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfReservedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"funguyAddress","type":"address"}],"name":"getWlQtyMintedByFunguy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantityToMint","type":"uint256"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ownedBy","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalesState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNumber","type":"uint256"}],"name":"setNumberOfMaxTokensPerPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNumber","type":"uint256"}],"name":"setNumberOfReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newPauseState","type":"bool"}],"name":"setPauseState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newProxyRegistryAddress","type":"address"}],"name":"setProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newPublicSalesState","type":"bool"}],"name":"setPublicSalesState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200342e3803806200342e83398101604081905262000034916200039a565b604080518082018252600781526646756e6775797360c81b60208083019182528351808501909452600684526546756e67757960d01b9084015281519192916200008191600091620001a1565b50805162000097906001906020840190620001a1565b505050620000b4620000ae6200014b60201b60201c565b6200014f565b6006805461ffff60a01b1916600160a01b1790556000600755600880546001600160a01b0386166001600160a01b03199091161790558251620000ff90600e90602086019062000230565b50815162000115906009906020850190620001a1565b5080516200012b90600a906020840190620001a1565b50506003600b55505060c8600c555066b1a2bc2ec50000600d55620004f4565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001af90620004b7565b90600052602060002090601f016020900481019282620001d357600085556200021e565b82601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b506200022c92915062000288565b5090565b8280548282559060005260206000209081019282156200021e579160200282015b828111156200021e57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000251565b5b808211156200022c576000815560010162000289565b80516001600160a01b0381168114620002b757600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620002fd57620002fd620002bc565b604052919050565b600082601f8301126200031757600080fd5b81516001600160401b03811115620003335762000333620002bc565b602062000349601f8301601f19168201620002d2565b82815285828487010111156200035e57600080fd5b60005b838110156200037e57858101830151828201840152820162000361565b83811115620003905760008385840101525b5095945050505050565b60008060008060808587031215620003b157600080fd5b620003bc856200029f565b602086810151919550906001600160401b0380821115620003dc57600080fd5b818801915088601f830112620003f157600080fd5b815181811115620004065762000406620002bc565b8060051b62000417858201620002d2565b918252838101850191858101908c8411156200043257600080fd5b948601945b838610156200045b576200044b866200029f565b8252948601949086019062000437565b60408c01519099509550505050808311156200047657600080fd5b6200048489848a0162000305565b945060608801519250808311156200049b57600080fd5b5050620004ab8782880162000305565b91505092959194509250565b600181811c90821680620004cc57607f821691505b60208210811415620004ee57634e487b7160e01b600052602260045260246000fd5b50919050565b612f2a80620005046000396000f3fe6080604052600436106102465760003560e01c80638839be5511610139578063b88d4fde116100b6578063d71183511161007a578063d7118351146106bf578063e8a3d485146106e0578063e985e9c5146106f5578063ea2bd48414610715578063f2fde38b14610728578063f3fef3a31461074857600080fd5b8063b88d4fde1461061f578063c87b56dd1461063f578063ca8001441461065f578063cd7c03261461067f578063cdb88ad11461069f57600080fd5b806397107d6d116100fd57806397107d6d1461057d57806398d5fdca1461059d578063a22cb465146105b2578063a9bc72cf146105d2578063b8377644146105f257600080fd5b80638839be55146104f55780638da5cb5b1461050a57806391b7f5ed14610528578063938e3d7b1461054857806395d89b411461056857600080fd5b806332cb6b0c116101c757806364b5d0dd1161018b57806364b5d0dd1461047557806370a0823114610496578063715018a6146104b65780637976bae0146104cb578063853828b6146104e057600080fd5b806332cb6b0c146103df57806342842e0e146103f557806355f804b31461041557806359167dfa146104355780636352211e1461045557600080fd5b80630b33e5411161020e5780630b33e5411461030f5780630faa4f37146103535780631447ba791461038957806318160ddd146103a957806323b872dd146103bf57600080fd5b806301ffc9a71461024b57806306fdde031461028057806307883703146102a2578063081812fc146102b7578063095ea7b3146102ef575b600080fd5b34801561025757600080fd5b5061026b6102663660046127e7565b610768565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107ba565b604051610277919061285c565b6102b56102b036600461286f565b61084c565b005b3480156102c357600080fd5b506102d76102d236600461286f565b610a93565b6040516001600160a01b039091168152602001610277565b3480156102fb57600080fd5b506102b561030a36600461289d565b610b28565b34801561031b57600080fd5b5061034561032a3660046128c9565b6001600160a01b031660009081526010602052604090205490565b604051908152602001610277565b34801561035f57600080fd5b5061034561036e3660046128c9565b6001600160a01b031660009081526011602052604090205490565b34801561039557600080fd5b506102b56103a43660046128fb565b610c3e565b3480156103b557600080fd5b5061034560075481565b3480156103cb57600080fd5b506102b56103da366004612916565b610c86565b3480156103eb57600080fd5b5061034561133181565b34801561040157600080fd5b506102b5610410366004612916565b610cb7565b34801561042157600080fd5b506102b56104303660046129fa565b610cd2565b34801561044157600080fd5b506102b561045036600461286f565b610d13565b34801561046157600080fd5b506102d761047036600461286f565b610d42565b34801561048157600080fd5b5060065461026b90600160a81b900460ff1681565b3480156104a257600080fd5b506103456104b13660046128c9565b610db9565b3480156104c257600080fd5b506102b5610e40565b3480156104d757600080fd5b50600b54610345565b3480156104ec57600080fd5b506102b5610e76565b34801561050157600080fd5b50600c54610345565b34801561051657600080fd5b506006546001600160a01b03166102d7565b34801561053457600080fd5b506102b561054336600461286f565b610fc3565b34801561055457600080fd5b506102b56105633660046129fa565b610ff2565b34801561057457600080fd5b5061029561102f565b34801561058957600080fd5b506102b56105983660046128c9565b61103e565b3480156105a957600080fd5b50600d54610345565b3480156105be57600080fd5b506102b56105cd366004612a2f565b61108a565b3480156105de57600080fd5b506102b56105ed36600461286f565b611095565b3480156105fe57600080fd5b5061061261060d3660046128c9565b61112e565b6040516102779190612a64565b34801561062b57600080fd5b506102b561063a366004612aa8565b6111f5565b34801561064b57600080fd5b5061029561065a36600461286f565b61122d565b34801561066b57600080fd5b506102b561067a36600461289d565b611308565b34801561068b57600080fd5b506008546102d7906001600160a01b031681565b3480156106ab57600080fd5b506102b56106ba3660046128fb565b611455565b3480156106cb57600080fd5b5060065461026b90600160a01b900460ff1681565b3480156106ec57600080fd5b5061029561149d565b34801561070157600080fd5b5061026b610710366004612b14565b6114ac565b6102b5610723366004612b4d565b61156d565b34801561073457600080fd5b506102b56107433660046128c9565b611a26565b34801561075457600080fd5b506102b561076336600461289d565b611ac1565b60006001600160e01b031982166380ac58cd60e01b148061079957506001600160e01b03198216635b5e139f60e01b145b806107b457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107c990612bd5565b80601f01602080910402602001604051908101604052809291908181526020018280546107f590612bd5565b80156108425780601f1061081757610100808354040283529160200191610842565b820191906000526020600020905b81548152906001019060200180831161082557829003601f168201915b5050505050905090565b600654600160a01b900460ff16156108995760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b60448201526064015b60405180910390fd5b600654600160a81b900460ff166108e75760405162461bcd60e51b8152602060048201526012602482015271141d589b1a58c81cd85b19481c185d5cd95960721b6044820152606401610890565b6113316007541061090a5760405162461bcd60e51b815260040161089090612c10565b60008111801561091c5750600b548111155b6109605760405162461bcd60e51b815260206004820152601560248201527433206973206d61782070657220707572636861736560581b6044820152606401610890565b600c5461096f90611331612c48565b8160075461097d9190612c5f565b11156109bf5760405162461bcd60e51b8152602060048201526011602482015270457863656564206d617820737570706c7960781b6044820152606401610890565b80600d546109cd9190612c77565b341015610a0f5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610890565b60005b81811015610a4357610a313382600754610a2c9190612c5f565b611bc2565b80610a3b81612c96565b915050610a12565b508060076000828254610a569190612c5f565b909155505060405181815233907f5d2607c31cca90bb3cebb888062da641fe864bb45fc682d110414f54042404e49060200160405180910390a250565b6000818152600260205260408120546001600160a01b0316610b0c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610890565b506000908152600460205260409020546001600160a01b031690565b6000610b3382610d42565b9050806001600160a01b0316836001600160a01b03161415610ba15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610890565b336001600160a01b0382161480610bbd5750610bbd81336114ac565b610c2f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610890565b610c398383611bdc565b505050565b6006546001600160a01b03163314610c685760405162461bcd60e51b815260040161089090612cb1565b60068054911515600160a81b0260ff60a81b19909216919091179055565b610c903382611c4a565b610cac5760405162461bcd60e51b815260040161089090612ce6565b610c39838383611d19565b610c39838383604051806020016040528060008152506111f5565b6006546001600160a01b03163314610cfc5760405162461bcd60e51b815260040161089090612cb1565b8051610d0f906009906020840190612738565b5050565b6006546001600160a01b03163314610d3d5760405162461bcd60e51b815260040161089090612cb1565b600b55565b6000818152600260205260408120546001600160a01b0316806107b45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610890565b60006001600160a01b038216610e245760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610890565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e6a5760405162461bcd60e51b815260040161089090612cb1565b610e746000611eb5565b565b6006546001600160a01b03163314610ea05760405162461bcd60e51b815260040161089090612cb1565b4780610ee05760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606401610890565b600e54600090610ef09083612d4d565b905060005b600e54811015610c39576000600e8281548110610f1457610f14612d61565b60009182526020822001546040516001600160a01b039091169185919081818185875af1925050503d8060008114610f68576040519150601f19603f3d011682016040523d82523d6000602084013e610f6d565b606091505b5050905080610fb05760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610890565b5080610fbb81612c96565b915050610ef5565b6006546001600160a01b03163314610fed5760405162461bcd60e51b815260040161089090612cb1565b600d55565b6006546001600160a01b0316331461101c5760405162461bcd60e51b815260040161089090612cb1565b8051610d0f90600a906020840190612738565b6060600180546107c990612bd5565b6006546001600160a01b031633146110685760405162461bcd60e51b815260040161089090612cb1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610d0f338383611f07565b6006546001600160a01b031633146110bf5760405162461bcd60e51b815260040161089090612cb1565b6000816007546110cf9190612c5f565b6110db90611331612c48565b10156111295760405162461bcd60e51b815260206004820152601d60248201527f4e6577206e756d6265722065786365656473206d617820737570706c790000006044820152606401610890565b600c55565b606060008061113c84610db9565b67ffffffffffffffff81111561115457611154612957565b60405190808252806020026020018201604052801561117d578160200160208202803683370190505b50905060005b6007548110156111ed57846001600160a01b03166111a082610d42565b6001600160a01b031614156111db57808284815181106111c2576111c2612d61565b6020908102919091010152826111d781612c96565b9350505b806111e581612c96565b915050611183565b509392505050565b6111ff3383611c4a565b61121b5760405162461bcd60e51b815260040161089090612ce6565b61122784848484611fd6565b50505050565b6000818152600260205260409020546060906001600160a01b03166112ac5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610890565b60006112b6612009565b905060008151116112d65760405180602001604052806000815250611301565b806112e084612018565b6040516020016112f1929190612d77565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146113325760405162461bcd60e51b815260040161089090612cb1565b600081116113825760405162461bcd60e51b815260206004820152601a60248201527f5175616e74697479206d757374206265206772656174657220300000000000006044820152606401610890565b611331600754106113a55760405162461bcd60e51b815260040161089090612c10565b600c548111156113f15760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610890565b60005b818110156114205761140e8382600754610a2c9190612c5f565b8061141881612c96565b9150506113f4565b5080600760008282546114339190612c5f565b9250508190555080600c600082825461144c9190612c48565b90915550505050565b6006546001600160a01b0316331461147f5760405162461bcd60e51b815260040161089090612cb1565b60068054911515600160a01b0260ff60a01b19909216919091179055565b6060600a80546107c990612bd5565b60085460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115229190612da6565b6001600160a01b0316141561153b5760019150506107b4565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600654600160a01b900460ff16156115b55760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610890565b600084116116055760405162461bcd60e51b815260206004820152601a60248201527f5175616e74697479206d757374206265206772656174657220300000000000006044820152606401610890565b611331600754106116285760405162461bcd60e51b815260040161089090612c10565b811561167f57600c5484111561167a5760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610890565b6116de565b600c5461168e90611331612c48565b8460075461169c9190612c5f565b11156116de5760405162461bcd60e51b8152602060048201526011602482015270457863656564206d617820737570706c7960781b6044820152606401610890565b60006116ed3387868686612116565b90506117016006546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146117525760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610890565b600f866040516117629190612dc3565b9081526040519081900360200190205460ff16156117af5760405162461bcd60e51b815260206004820152600a60248201526955736564206e6f6e636560b01b6044820152606401610890565b821561181d573360009081526011602052604090205484906117d2908790612c5f565b11156118185760405162461bcd60e51b8152602060048201526015602482015274457863656564206d61782066726565206d696e747360581b6044820152606401610890565b6118ce565b33600090815260106020526040902054849061183a908790612c5f565b111561187e5760405162461bcd60e51b8152602060048201526013602482015272457863656564206d617820776c206d696e747360681b6044820152606401610890565b84600d5461188c9190612c77565b3410156118ce5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610890565b60005b858110156118fd576118eb3382600754610a2c9190612c5f565b806118f581612c96565b9150506118d1565b5084600760008282546119109190612c5f565b925050819055506001600f876040516119299190612dc3565b908152604051908190036020019020805491151560ff1990921691909117905582156119c45784600c60008282546119619190612c48565b90915550503360009081526011602052604081208054879290611985908490612c5f565b909155505060405185815233907f4801179c77e151249559e2320ef3a17b83b0c0ae10205841253755532e4df4ea9060200160405180910390a2611a1e565b33600090815260106020526040812080548792906119e3908490612c5f565b909155505060405185815233907f5d2607c31cca90bb3cebb888062da641fe864bb45fc682d110414f54042404e49060200160405180910390a25b505050505050565b6006546001600160a01b03163314611a505760405162461bcd60e51b815260040161089090612cb1565b6001600160a01b038116611ab55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610890565b611abe81611eb5565b50565b6006546001600160a01b03163314611aeb5760405162461bcd60e51b815260040161089090612cb1565b60004711611b2d5760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606401610890565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b7a576040519150601f19603f3d011682016040523d82523d6000602084013e611b7f565b606091505b5050905080610c395760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610890565b610d0f828260405180602001604052806000815250612158565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c1182610d42565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611cc35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610890565b6000611cce83610d42565b9050806001600160a01b0316846001600160a01b03161480611d095750836001600160a01b0316611cfe84610a93565b6001600160a01b0316145b80611565575061156581856114ac565b826001600160a01b0316611d2c82610d42565b6001600160a01b031614611d905760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610890565b6001600160a01b038216611df25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610890565b611dfd600082611bdc565b6001600160a01b0383166000908152600360205260408120805460019290611e26908490612c48565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e54908490612c5f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611f695760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610890565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611fe1848484611d19565b611fed8484848461218b565b6112275760405162461bcd60e51b815260040161089090612ddf565b6060600980546107c990612bd5565b60608161203c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612066578061205081612c96565b915061205f9050600a83612d4d565b9150612040565b60008167ffffffffffffffff81111561208157612081612957565b6040519080825280601f01601f1916602001820160405280156120ab576020820181803683370190505b5090505b8415611565576120c0600183612c48565b91506120cd600a86612e31565b6120d8906030612c5f565b60f81b8183815181106120ed576120ed612d61565b60200101906001600160f81b031916908160001a90535061210f600a86612d4d565b94506120af565b600061214e868686866040516020016121329493929190612e45565b6040516020818303038152906040528051906020012083612289565b9695505050505050565b61216283836122a5565b61216f600084848461218b565b610c395760405162461bcd60e51b815260040161089090612ddf565b60006001600160a01b0384163b1561227e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121cf903390899088908890600401612e8e565b6020604051808303816000875af192505050801561220a575060408051601f3d908101601f1916820190925261220791810190612ec1565b60015b612264573d808015612238576040519150601f19603f3d011682016040523d82523d6000602084013e61223d565b606091505b50805161225c5760405162461bcd60e51b815260040161089090612ddf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611565565b506001949350505050565b600080600061229885856123e7565b915091506111ed81612457565b6001600160a01b0382166122fb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610890565b6000818152600260205260409020546001600160a01b0316156123605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610890565b6001600160a01b0382166000908152600360205260408120805460019290612389908490612c5f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008082516041141561241e5760208301516040840151606085015160001a61241287828585612612565b94509450505050612450565b825160401415612448576020830151604084015161243d8683836126ff565b935093505050612450565b506000905060025b9250929050565b600081600481111561246b5761246b612ede565b14156124745750565b600181600481111561248857612488612ede565b14156124d65760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610890565b60028160048111156124ea576124ea612ede565b14156125385760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610890565b600381600481111561254c5761254c612ede565b14156125a55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610890565b60048160048111156125b9576125b9612ede565b1415611abe5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610890565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561264957506000905060036126f6565b8460ff16601b1415801561266157508460ff16601c14155b1561267257506000905060046126f6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126c6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126ef576000600192509250506126f6565b9150600090505b94509492505050565b6000806001600160ff1b0383168161271c60ff86901c601b612c5f565b905061272a87828885612612565b935093505050935093915050565b82805461274490612bd5565b90600052602060002090601f01602090048101928261276657600085556127ac565b82601f1061277f57805160ff19168380011785556127ac565b828001600101855582156127ac579182015b828111156127ac578251825591602001919060010190612791565b506127b89291506127bc565b5090565b5b808211156127b857600081556001016127bd565b6001600160e01b031981168114611abe57600080fd5b6000602082840312156127f957600080fd5b8135611301816127d1565b60005b8381101561281f578181015183820152602001612807565b838111156112275750506000910152565b60008151808452612848816020860160208601612804565b601f01601f19169290920160200192915050565b6020815260006113016020830184612830565b60006020828403121561288157600080fd5b5035919050565b6001600160a01b0381168114611abe57600080fd5b600080604083850312156128b057600080fd5b82356128bb81612888565b946020939093013593505050565b6000602082840312156128db57600080fd5b813561130181612888565b803580151581146128f657600080fd5b919050565b60006020828403121561290d57600080fd5b611301826128e6565b60008060006060848603121561292b57600080fd5b833561293681612888565b9250602084013561294681612888565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261297e57600080fd5b813567ffffffffffffffff8082111561299957612999612957565b604051601f8301601f19908116603f011681019082821181831017156129c1576129c1612957565b816040528381528660208588010111156129da57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215612a0c57600080fd5b813567ffffffffffffffff811115612a2357600080fd5b6115658482850161296d565b60008060408385031215612a4257600080fd5b8235612a4d81612888565b9150612a5b602084016128e6565b90509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612a9c57835183529284019291840191600101612a80565b50909695505050505050565b60008060008060808587031215612abe57600080fd5b8435612ac981612888565b93506020850135612ad981612888565b925060408501359150606085013567ffffffffffffffff811115612afc57600080fd5b612b088782880161296d565b91505092959194509250565b60008060408385031215612b2757600080fd5b8235612b3281612888565b91506020830135612b4281612888565b809150509250929050565b600080600080600060a08688031215612b6557600080fd5b853567ffffffffffffffff80821115612b7d57600080fd5b612b8989838a0161296d565b96506020880135955060408801359450612ba5606089016128e6565b93506080880135915080821115612bbb57600080fd5b50612bc88882890161296d565b9150509295509295909350565b600181811c90821680612be957607f821691505b60208210811415612c0a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612c5a57612c5a612c32565b500390565b60008219821115612c7257612c72612c32565b500190565b6000816000190483118215151615612c9157612c91612c32565b500290565b6000600019821415612caa57612caa612c32565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612d5c57612d5c612d37565b500490565b634e487b7160e01b600052603260045260246000fd5b60008351612d89818460208801612804565b835190830190612d9d818360208801612804565b01949350505050565b600060208284031215612db857600080fd5b815161130181612888565b60008251612dd5818460208701612804565b9190910192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612e4057612e40612d37565b500690565b6bffffffffffffffffffffffff198560601b16815260008451612e6f816014850160208901612804565b909101601481019390935250151560f81b603482015260350192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061214e90830184612830565b600060208284031215612ed357600080fd5b8151611301816127d1565b634e487b7160e01b600052602160045260246000fdfea264697066735822122070fb6435dd45e76e4dcc70608954b03cf0baed6d9bbcaa9d420b36456a7d3f7c64736f6c634300080c0033000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004a0309acd37931fc64b3e067412eb407193657c600000000000000000000000097b6458b7b2db22ed2a8f38561fa15d22eefc52d000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f75732d63656e7472616c312d66756e677579732d70726f642e636c6f756466756e6374696f6e732e6e65742f617070000000000000000000000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f66756e677579732e6d7970696e6174612e636c6f75642f697066732f516d576546474a6a3769747a6d677170427642437a62324d4d444446507a314d795a4c75654a5955477936776e460000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102465760003560e01c80638839be5511610139578063b88d4fde116100b6578063d71183511161007a578063d7118351146106bf578063e8a3d485146106e0578063e985e9c5146106f5578063ea2bd48414610715578063f2fde38b14610728578063f3fef3a31461074857600080fd5b8063b88d4fde1461061f578063c87b56dd1461063f578063ca8001441461065f578063cd7c03261461067f578063cdb88ad11461069f57600080fd5b806397107d6d116100fd57806397107d6d1461057d57806398d5fdca1461059d578063a22cb465146105b2578063a9bc72cf146105d2578063b8377644146105f257600080fd5b80638839be55146104f55780638da5cb5b1461050a57806391b7f5ed14610528578063938e3d7b1461054857806395d89b411461056857600080fd5b806332cb6b0c116101c757806364b5d0dd1161018b57806364b5d0dd1461047557806370a0823114610496578063715018a6146104b65780637976bae0146104cb578063853828b6146104e057600080fd5b806332cb6b0c146103df57806342842e0e146103f557806355f804b31461041557806359167dfa146104355780636352211e1461045557600080fd5b80630b33e5411161020e5780630b33e5411461030f5780630faa4f37146103535780631447ba791461038957806318160ddd146103a957806323b872dd146103bf57600080fd5b806301ffc9a71461024b57806306fdde031461028057806307883703146102a2578063081812fc146102b7578063095ea7b3146102ef575b600080fd5b34801561025757600080fd5b5061026b6102663660046127e7565b610768565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107ba565b604051610277919061285c565b6102b56102b036600461286f565b61084c565b005b3480156102c357600080fd5b506102d76102d236600461286f565b610a93565b6040516001600160a01b039091168152602001610277565b3480156102fb57600080fd5b506102b561030a36600461289d565b610b28565b34801561031b57600080fd5b5061034561032a3660046128c9565b6001600160a01b031660009081526010602052604090205490565b604051908152602001610277565b34801561035f57600080fd5b5061034561036e3660046128c9565b6001600160a01b031660009081526011602052604090205490565b34801561039557600080fd5b506102b56103a43660046128fb565b610c3e565b3480156103b557600080fd5b5061034560075481565b3480156103cb57600080fd5b506102b56103da366004612916565b610c86565b3480156103eb57600080fd5b5061034561133181565b34801561040157600080fd5b506102b5610410366004612916565b610cb7565b34801561042157600080fd5b506102b56104303660046129fa565b610cd2565b34801561044157600080fd5b506102b561045036600461286f565b610d13565b34801561046157600080fd5b506102d761047036600461286f565b610d42565b34801561048157600080fd5b5060065461026b90600160a81b900460ff1681565b3480156104a257600080fd5b506103456104b13660046128c9565b610db9565b3480156104c257600080fd5b506102b5610e40565b3480156104d757600080fd5b50600b54610345565b3480156104ec57600080fd5b506102b5610e76565b34801561050157600080fd5b50600c54610345565b34801561051657600080fd5b506006546001600160a01b03166102d7565b34801561053457600080fd5b506102b561054336600461286f565b610fc3565b34801561055457600080fd5b506102b56105633660046129fa565b610ff2565b34801561057457600080fd5b5061029561102f565b34801561058957600080fd5b506102b56105983660046128c9565b61103e565b3480156105a957600080fd5b50600d54610345565b3480156105be57600080fd5b506102b56105cd366004612a2f565b61108a565b3480156105de57600080fd5b506102b56105ed36600461286f565b611095565b3480156105fe57600080fd5b5061061261060d3660046128c9565b61112e565b6040516102779190612a64565b34801561062b57600080fd5b506102b561063a366004612aa8565b6111f5565b34801561064b57600080fd5b5061029561065a36600461286f565b61122d565b34801561066b57600080fd5b506102b561067a36600461289d565b611308565b34801561068b57600080fd5b506008546102d7906001600160a01b031681565b3480156106ab57600080fd5b506102b56106ba3660046128fb565b611455565b3480156106cb57600080fd5b5060065461026b90600160a01b900460ff1681565b3480156106ec57600080fd5b5061029561149d565b34801561070157600080fd5b5061026b610710366004612b14565b6114ac565b6102b5610723366004612b4d565b61156d565b34801561073457600080fd5b506102b56107433660046128c9565b611a26565b34801561075457600080fd5b506102b561076336600461289d565b611ac1565b60006001600160e01b031982166380ac58cd60e01b148061079957506001600160e01b03198216635b5e139f60e01b145b806107b457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107c990612bd5565b80601f01602080910402602001604051908101604052809291908181526020018280546107f590612bd5565b80156108425780601f1061081757610100808354040283529160200191610842565b820191906000526020600020905b81548152906001019060200180831161082557829003601f168201915b5050505050905090565b600654600160a01b900460ff16156108995760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b60448201526064015b60405180910390fd5b600654600160a81b900460ff166108e75760405162461bcd60e51b8152602060048201526012602482015271141d589b1a58c81cd85b19481c185d5cd95960721b6044820152606401610890565b6113316007541061090a5760405162461bcd60e51b815260040161089090612c10565b60008111801561091c5750600b548111155b6109605760405162461bcd60e51b815260206004820152601560248201527433206973206d61782070657220707572636861736560581b6044820152606401610890565b600c5461096f90611331612c48565b8160075461097d9190612c5f565b11156109bf5760405162461bcd60e51b8152602060048201526011602482015270457863656564206d617820737570706c7960781b6044820152606401610890565b80600d546109cd9190612c77565b341015610a0f5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610890565b60005b81811015610a4357610a313382600754610a2c9190612c5f565b611bc2565b80610a3b81612c96565b915050610a12565b508060076000828254610a569190612c5f565b909155505060405181815233907f5d2607c31cca90bb3cebb888062da641fe864bb45fc682d110414f54042404e49060200160405180910390a250565b6000818152600260205260408120546001600160a01b0316610b0c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610890565b506000908152600460205260409020546001600160a01b031690565b6000610b3382610d42565b9050806001600160a01b0316836001600160a01b03161415610ba15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610890565b336001600160a01b0382161480610bbd5750610bbd81336114ac565b610c2f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610890565b610c398383611bdc565b505050565b6006546001600160a01b03163314610c685760405162461bcd60e51b815260040161089090612cb1565b60068054911515600160a81b0260ff60a81b19909216919091179055565b610c903382611c4a565b610cac5760405162461bcd60e51b815260040161089090612ce6565b610c39838383611d19565b610c39838383604051806020016040528060008152506111f5565b6006546001600160a01b03163314610cfc5760405162461bcd60e51b815260040161089090612cb1565b8051610d0f906009906020840190612738565b5050565b6006546001600160a01b03163314610d3d5760405162461bcd60e51b815260040161089090612cb1565b600b55565b6000818152600260205260408120546001600160a01b0316806107b45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610890565b60006001600160a01b038216610e245760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610890565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e6a5760405162461bcd60e51b815260040161089090612cb1565b610e746000611eb5565b565b6006546001600160a01b03163314610ea05760405162461bcd60e51b815260040161089090612cb1565b4780610ee05760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606401610890565b600e54600090610ef09083612d4d565b905060005b600e54811015610c39576000600e8281548110610f1457610f14612d61565b60009182526020822001546040516001600160a01b039091169185919081818185875af1925050503d8060008114610f68576040519150601f19603f3d011682016040523d82523d6000602084013e610f6d565b606091505b5050905080610fb05760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610890565b5080610fbb81612c96565b915050610ef5565b6006546001600160a01b03163314610fed5760405162461bcd60e51b815260040161089090612cb1565b600d55565b6006546001600160a01b0316331461101c5760405162461bcd60e51b815260040161089090612cb1565b8051610d0f90600a906020840190612738565b6060600180546107c990612bd5565b6006546001600160a01b031633146110685760405162461bcd60e51b815260040161089090612cb1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610d0f338383611f07565b6006546001600160a01b031633146110bf5760405162461bcd60e51b815260040161089090612cb1565b6000816007546110cf9190612c5f565b6110db90611331612c48565b10156111295760405162461bcd60e51b815260206004820152601d60248201527f4e6577206e756d6265722065786365656473206d617820737570706c790000006044820152606401610890565b600c55565b606060008061113c84610db9565b67ffffffffffffffff81111561115457611154612957565b60405190808252806020026020018201604052801561117d578160200160208202803683370190505b50905060005b6007548110156111ed57846001600160a01b03166111a082610d42565b6001600160a01b031614156111db57808284815181106111c2576111c2612d61565b6020908102919091010152826111d781612c96565b9350505b806111e581612c96565b915050611183565b509392505050565b6111ff3383611c4a565b61121b5760405162461bcd60e51b815260040161089090612ce6565b61122784848484611fd6565b50505050565b6000818152600260205260409020546060906001600160a01b03166112ac5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610890565b60006112b6612009565b905060008151116112d65760405180602001604052806000815250611301565b806112e084612018565b6040516020016112f1929190612d77565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146113325760405162461bcd60e51b815260040161089090612cb1565b600081116113825760405162461bcd60e51b815260206004820152601a60248201527f5175616e74697479206d757374206265206772656174657220300000000000006044820152606401610890565b611331600754106113a55760405162461bcd60e51b815260040161089090612c10565b600c548111156113f15760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610890565b60005b818110156114205761140e8382600754610a2c9190612c5f565b8061141881612c96565b9150506113f4565b5080600760008282546114339190612c5f565b9250508190555080600c600082825461144c9190612c48565b90915550505050565b6006546001600160a01b0316331461147f5760405162461bcd60e51b815260040161089090612cb1565b60068054911515600160a01b0260ff60a01b19909216919091179055565b6060600a80546107c990612bd5565b60085460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115229190612da6565b6001600160a01b0316141561153b5760019150506107b4565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600654600160a01b900460ff16156115b55760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610890565b600084116116055760405162461bcd60e51b815260206004820152601a60248201527f5175616e74697479206d757374206265206772656174657220300000000000006044820152606401610890565b611331600754106116285760405162461bcd60e51b815260040161089090612c10565b811561167f57600c5484111561167a5760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610890565b6116de565b600c5461168e90611331612c48565b8460075461169c9190612c5f565b11156116de5760405162461bcd60e51b8152602060048201526011602482015270457863656564206d617820737570706c7960781b6044820152606401610890565b60006116ed3387868686612116565b90506117016006546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146117525760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610890565b600f866040516117629190612dc3565b9081526040519081900360200190205460ff16156117af5760405162461bcd60e51b815260206004820152600a60248201526955736564206e6f6e636560b01b6044820152606401610890565b821561181d573360009081526011602052604090205484906117d2908790612c5f565b11156118185760405162461bcd60e51b8152602060048201526015602482015274457863656564206d61782066726565206d696e747360581b6044820152606401610890565b6118ce565b33600090815260106020526040902054849061183a908790612c5f565b111561187e5760405162461bcd60e51b8152602060048201526013602482015272457863656564206d617820776c206d696e747360681b6044820152606401610890565b84600d5461188c9190612c77565b3410156118ce5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610890565b60005b858110156118fd576118eb3382600754610a2c9190612c5f565b806118f581612c96565b9150506118d1565b5084600760008282546119109190612c5f565b925050819055506001600f876040516119299190612dc3565b908152604051908190036020019020805491151560ff1990921691909117905582156119c45784600c60008282546119619190612c48565b90915550503360009081526011602052604081208054879290611985908490612c5f565b909155505060405185815233907f4801179c77e151249559e2320ef3a17b83b0c0ae10205841253755532e4df4ea9060200160405180910390a2611a1e565b33600090815260106020526040812080548792906119e3908490612c5f565b909155505060405185815233907f5d2607c31cca90bb3cebb888062da641fe864bb45fc682d110414f54042404e49060200160405180910390a25b505050505050565b6006546001600160a01b03163314611a505760405162461bcd60e51b815260040161089090612cb1565b6001600160a01b038116611ab55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610890565b611abe81611eb5565b50565b6006546001600160a01b03163314611aeb5760405162461bcd60e51b815260040161089090612cb1565b60004711611b2d5760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606401610890565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b7a576040519150601f19603f3d011682016040523d82523d6000602084013e611b7f565b606091505b5050905080610c395760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610890565b610d0f828260405180602001604052806000815250612158565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c1182610d42565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611cc35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610890565b6000611cce83610d42565b9050806001600160a01b0316846001600160a01b03161480611d095750836001600160a01b0316611cfe84610a93565b6001600160a01b0316145b80611565575061156581856114ac565b826001600160a01b0316611d2c82610d42565b6001600160a01b031614611d905760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610890565b6001600160a01b038216611df25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610890565b611dfd600082611bdc565b6001600160a01b0383166000908152600360205260408120805460019290611e26908490612c48565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e54908490612c5f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611f695760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610890565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611fe1848484611d19565b611fed8484848461218b565b6112275760405162461bcd60e51b815260040161089090612ddf565b6060600980546107c990612bd5565b60608161203c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612066578061205081612c96565b915061205f9050600a83612d4d565b9150612040565b60008167ffffffffffffffff81111561208157612081612957565b6040519080825280601f01601f1916602001820160405280156120ab576020820181803683370190505b5090505b8415611565576120c0600183612c48565b91506120cd600a86612e31565b6120d8906030612c5f565b60f81b8183815181106120ed576120ed612d61565b60200101906001600160f81b031916908160001a90535061210f600a86612d4d565b94506120af565b600061214e868686866040516020016121329493929190612e45565b6040516020818303038152906040528051906020012083612289565b9695505050505050565b61216283836122a5565b61216f600084848461218b565b610c395760405162461bcd60e51b815260040161089090612ddf565b60006001600160a01b0384163b1561227e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121cf903390899088908890600401612e8e565b6020604051808303816000875af192505050801561220a575060408051601f3d908101601f1916820190925261220791810190612ec1565b60015b612264573d808015612238576040519150601f19603f3d011682016040523d82523d6000602084013e61223d565b606091505b50805161225c5760405162461bcd60e51b815260040161089090612ddf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611565565b506001949350505050565b600080600061229885856123e7565b915091506111ed81612457565b6001600160a01b0382166122fb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610890565b6000818152600260205260409020546001600160a01b0316156123605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610890565b6001600160a01b0382166000908152600360205260408120805460019290612389908490612c5f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008082516041141561241e5760208301516040840151606085015160001a61241287828585612612565b94509450505050612450565b825160401415612448576020830151604084015161243d8683836126ff565b935093505050612450565b506000905060025b9250929050565b600081600481111561246b5761246b612ede565b14156124745750565b600181600481111561248857612488612ede565b14156124d65760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610890565b60028160048111156124ea576124ea612ede565b14156125385760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610890565b600381600481111561254c5761254c612ede565b14156125a55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610890565b60048160048111156125b9576125b9612ede565b1415611abe5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610890565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561264957506000905060036126f6565b8460ff16601b1415801561266157508460ff16601c14155b1561267257506000905060046126f6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126c6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126ef576000600192509250506126f6565b9150600090505b94509492505050565b6000806001600160ff1b0383168161271c60ff86901c601b612c5f565b905061272a87828885612612565b935093505050935093915050565b82805461274490612bd5565b90600052602060002090601f01602090048101928261276657600085556127ac565b82601f1061277f57805160ff19168380011785556127ac565b828001600101855582156127ac579182015b828111156127ac578251825591602001919060010190612791565b506127b89291506127bc565b5090565b5b808211156127b857600081556001016127bd565b6001600160e01b031981168114611abe57600080fd5b6000602082840312156127f957600080fd5b8135611301816127d1565b60005b8381101561281f578181015183820152602001612807565b838111156112275750506000910152565b60008151808452612848816020860160208601612804565b601f01601f19169290920160200192915050565b6020815260006113016020830184612830565b60006020828403121561288157600080fd5b5035919050565b6001600160a01b0381168114611abe57600080fd5b600080604083850312156128b057600080fd5b82356128bb81612888565b946020939093013593505050565b6000602082840312156128db57600080fd5b813561130181612888565b803580151581146128f657600080fd5b919050565b60006020828403121561290d57600080fd5b611301826128e6565b60008060006060848603121561292b57600080fd5b833561293681612888565b9250602084013561294681612888565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261297e57600080fd5b813567ffffffffffffffff8082111561299957612999612957565b604051601f8301601f19908116603f011681019082821181831017156129c1576129c1612957565b816040528381528660208588010111156129da57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215612a0c57600080fd5b813567ffffffffffffffff811115612a2357600080fd5b6115658482850161296d565b60008060408385031215612a4257600080fd5b8235612a4d81612888565b9150612a5b602084016128e6565b90509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612a9c57835183529284019291840191600101612a80565b50909695505050505050565b60008060008060808587031215612abe57600080fd5b8435612ac981612888565b93506020850135612ad981612888565b925060408501359150606085013567ffffffffffffffff811115612afc57600080fd5b612b088782880161296d565b91505092959194509250565b60008060408385031215612b2757600080fd5b8235612b3281612888565b91506020830135612b4281612888565b809150509250929050565b600080600080600060a08688031215612b6557600080fd5b853567ffffffffffffffff80821115612b7d57600080fd5b612b8989838a0161296d565b96506020880135955060408801359450612ba5606089016128e6565b93506080880135915080821115612bbb57600080fd5b50612bc88882890161296d565b9150509295509295909350565b600181811c90821680612be957607f821691505b60208210811415612c0a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612c5a57612c5a612c32565b500390565b60008219821115612c7257612c72612c32565b500190565b6000816000190483118215151615612c9157612c91612c32565b500290565b6000600019821415612caa57612caa612c32565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612d5c57612d5c612d37565b500490565b634e487b7160e01b600052603260045260246000fd5b60008351612d89818460208801612804565b835190830190612d9d818360208801612804565b01949350505050565b600060208284031215612db857600080fd5b815161130181612888565b60008251612dd5818460208701612804565b9190910192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612e4057612e40612d37565b500690565b6bffffffffffffffffffffffff198560601b16815260008451612e6f816014850160208901612804565b909101601481019390935250151560f81b603482015260350192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061214e90830184612830565b600060208284031215612ed357600080fd5b8151611301816127d1565b634e487b7160e01b600052602160045260246000fdfea264697066735822122070fb6435dd45e76e4dcc70608954b03cf0baed6d9bbcaa9d420b36456a7d3f7c64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004a0309acd37931fc64b3e067412eb407193657c600000000000000000000000097b6458b7b2db22ed2a8f38561fa15d22eefc52d000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f75732d63656e7472616c312d66756e677579732d70726f642e636c6f756466756e6374696f6e732e6e65742f617070000000000000000000000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f66756e677579732e6d7970696e6174612e636c6f75642f697066732f516d576546474a6a3769747a6d677170427642437a62324d4d444446507a314d795a4c75654a5955477936776e460000000000000000000000000000
-----Decoded View---------------
Arg [0] : newProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : members (address[]): 0x4a0309aCD37931Fc64b3E067412EB407193657c6,0x97B6458b7B2DB22ED2a8F38561FA15D22eeFc52d
Arg [2] : baseURI (string): https://us-central1-funguys-prod.cloudfunctions.net/app
Arg [3] : newContractURI (string): https://funguys.mypinata.cloud/ipfs/QmWeFGJj7itzmgqpBvBCzb2MMDDFPz1MyZLueJYUGy6wnF
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 0000000000000000000000004a0309acd37931fc64b3e067412eb407193657c6
Arg [6] : 00000000000000000000000097b6458b7b2db22ed2a8f38561fa15d22eefc52d
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [8] : 68747470733a2f2f75732d63656e7472616c312d66756e677579732d70726f64
Arg [9] : 2e636c6f756466756e6374696f6e732e6e65742f617070000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000052
Arg [11] : 68747470733a2f2f66756e677579732e6d7970696e6174612e636c6f75642f69
Arg [12] : 7066732f516d576546474a6a3769747a6d677170427642437a62324d4d444446
Arg [13] : 507a314d795a4c75654a5955477936776e460000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,638.11 | 0.05 | $131.91 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.