More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
HippyGhostsSwapPool
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/interfaces/IERC721.sol"; contract HippyGhostsSwapPool { address public immutable hippyGhosts; constructor( address hippyGhosts_, address gnosisSafe_ ) { hippyGhosts = hippyGhosts_; IERC721(hippyGhosts_).setApprovalForAll(gnosisSafe_, true); } /** * caller must be HippyGhosts contract, this ensures: * - The Transfer really happened before onERC721Received * - SwapPool only accepts NFTs of HippyGhosts */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4) { operator = address(0); // yeah ! require(msg.sender == hippyGhosts, "Caller is not HippyGhosts."); require(IERC721(hippyGhosts).ownerOf(tokenId) == address(this), "Ghost is not received."); if (data.length > 0) { (bytes4 op, uint256 wantTokenId) = abi.decode(data, (bytes4, uint256)); require(op == bytes4(keccak256("swap(uint256)")), "Wrong op."); require(IERC721(hippyGhosts).ownerOf(wantTokenId) == address(this), "The wanted Ghost doesn't belongs to SwapPool."); IERC721(hippyGhosts).transferFrom(address(this), from, wantTokenId); } // return HippyGhostSwapPool.onERC721Received.selector; return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; /** * _ _ _____ _____ _______ __ _____ _ _ ____ _____ _______ _____ * | | | |_ _| __ \| __ \ \ / / / ____| | | |/ __ \ / ____|__ __/ ____| * | |__| | | | | |__) | |__) \ \_/ / | | __| |__| | | | | (___ | | | (___ * | __ | | | | ___/| ___/ \ / | | |_ | __ | | | |\___ \ | | \___ \ * | | | |_| |_| | | | | | | |__| | | | | |__| |____) | | | ____) | * |_| |_|_____|_| |_| |_| \_____|_| |_|\____/|_____/ |_| |_____/ * */ import "./ERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract HippyGhosts is ERC721, IERC2981, Ownable { /**************************************** * Variables ****************************************/ /** * @dev mint logic */ address public mintController; /** * @dev renderer for {IERC721Metadata-tokenURI} */ address public renderer; /**************************************** * Functions ****************************************/ constructor() ERC721("Hippy Ghosts", "GHOST") {} receive() external payable {} /* config functions */ function setAddresses(address renderer_, address mintController_) external onlyOwner { if (renderer_ != address(0)) { renderer = renderer_; } if (mintController_ != address(0)) { mintController = mintController_; } } /* mint logic */ function mint(address to, uint256 tokenId) external { require(msg.sender == mintController, "caller is not mint controller"); require(tokenId >= 1 && tokenId <= 9999, "Incorrect tokenId to mint"); _safeMint(to, tokenId, ""); } /* overrides */ /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_ownerOf[tokenId] != address(0), "ERC721Metadata: URI query for nonexistent token"); return IRenderer(renderer).tokenURI(tokenId); } /** * @dev See {IERC2981-royaltyInfo}. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) public view override returns (address receiver, uint256 royaltyAmount) { require(_ownerOf[tokenId] != address(0), "royaltyInfo for nonexistent token"); return (address(this), salePrice * 5 / 100); } function supportsInterface( bytes4 interfaceId ) public view override(ERC721, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /* withdraw from contract */ function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawTokens(IERC20 token) external onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } } interface IRenderer { function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity 0.8.11; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract HippyGhostsRenderer is Ownable { using Strings for uint256; bytes32 constant public MERKLE_ROOT = 0x58d247a687ef48f010e2e6107a04d575787163cfb0d70543c421a5001e9f5aab; address public immutable hippyGhosts; string public baseURI; constructor( address hippyGhosts_, string memory baseURI_ ) { hippyGhosts = hippyGhosts_; baseURI = baseURI_; } function setBaseURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; } function tokenURI(uint256 tokenId) external view returns (string memory) { return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } }
// 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 (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 pragma solidity 0.8.11; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; library SignatureVerification { using ECDSA for bytes32; // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol // https://docs.soliditylang.org/en/v0.8.4/solidity-by-example.html?highlight=ecrecover#the-full-contract /** * @dev Performs address recovery on data and signature. Compares recovred address to varification address. * @param data Packed data used for signature generation * @param signature Signature for the provided data * @param verificationAddress Address to compare to recovered address */ function requireValidSignature( bytes memory data, bytes memory signature, address verificationAddress ) internal pure { require( verificationAddress != address(0), "verification address not initialized" ); require( keccak256(data).toEthSignedMessageHash().recover(signature) == verificationAddress, "signature invalid" ); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; /** * _ _ _____ _____ _______ __ _____ _ _ ____ _____ _______ _____ * | | | |_ _| __ \| __ \ \ / / / ____| | | |/ __ \ / ____|__ __/ ____| * | |__| | | | | |__) | |__) \ \_/ / | | __| |__| | | | | (___ | | | (___ * | __ | | | | ___/| ___/ \ / | | |_ | __ | | | |\___ \ | | \___ \ * | | | |_| |_| | | | | | | |__| | | | | |__| |____) | | | ____) | * |_| |_|_____|_| |_| |_| \_____|_| |_|\____/|_____/ |_| |_____/ * * Total 9999 Hippy Ghosts * ---------------------------------------------------------------------------- * 1 | 180 | [ 1, 180] | kept for team * 2 | 1320 | [ 181,1500] | private mint, 320 for team, 1000 for community * 3 | 8499 | [1501,9999] | public mint, release 300 ghosts every 40000 blocks * ---------------------------------------------------------------------------- */ import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./libraries/SignatureVerification.sol"; contract HippyGhostsMinter is Ownable { /**************************************** * Variables ****************************************/ address public immutable hippyGhosts; /** * @dev Ether value for each token in public mint */ uint256 public constant publicMintPriceUpper = 0.24 ether; uint256 public constant publicMintPriceLower = 0.08 ether; uint256 public constant publicMintPriceDecay = 0.04 ether; /** * @dev Starting block and inverval for public mint */ uint256 public publicMintStartBlock = 0; uint256 public constant EPOCH_BLOCKS = 40000; uint256 public constant GHOSTS_PER_EPOCH = 300; /** * @dev Index and upper bound for mint */ // general uint256 public constant MAX_GHOSTS_PER_MINT = 10; // team uint256 public ownerMintCount = 0; uint256 public constant MAX_OWNER_MINT_COUNT = 300; // private uint128 public privateMintCount = 0; uint128 public privateMintIndex = 180; uint256 public constant MAX_PRIVATE_MINT_INDEX = 1500; // public uint256 public publicMintIndex = 1500; uint256 public constant MAX_PUBLIC_MINT_INDEX = 9999; /** * @dev Public address used to sign function calls parameters */ address public verificationAddress; /** * @dev Key(address) mapping to a claimed key. * Used to prevent address from rebroadcasting mint transactions */ mapping(address => bool) private _claimedMintKeys; /**************************************** * Events ****************************************/ /** * @dev provide feedback on mint key used for signed mints */ event MintKeyClaimed( address indexed claimer, address indexed mintKey, uint256 numberOfTokens ); /**************************************** * Functions ****************************************/ constructor( address hippyGhosts_, address verificationAddress_ ) { hippyGhosts = hippyGhosts_; verificationAddress = verificationAddress_; } receive() external payable {} /* config functions */ function setPublicMintStartBlock(uint256 publicMintStartBlock_) external onlyOwner { require(publicMintStartBlock == 0, "publicMintStartBlock has already been set"); publicMintStartBlock = publicMintStartBlock_; } function setVerificationAddress(address verificationAddress_) external onlyOwner { verificationAddress = verificationAddress_; } function isMintKeyClaimed(address mintKey) external view returns (bool) { return _claimedMintKeys[mintKey]; } /* private mint functions */ function ownerMint( address[] calldata addresses, uint256[] calldata tokenIds ) external onlyOwner { ownerMintCount = ownerMintCount + tokenIds.length; require(ownerMintCount <= MAX_OWNER_MINT_COUNT, "Not enough ghosts remaining to mint"); for (uint256 i = 0; i < tokenIds.length; i++) { require(tokenIds[i] <= MAX_PRIVATE_MINT_INDEX, "Incorrect tokenId to mint"); IHippyGhosts(hippyGhosts).mint(addresses[i], tokenIds[i]); } } function mintWithSignature( uint256 numberOfTokens, uint256 valueInWei, address mintKey, bytes memory signature ) external payable { require(valueInWei == msg.value, "Incorrect ether value"); require(_claimedMintKeys[mintKey] == false, "Mint key already claimed"); SignatureVerification.requireValidSignature( abi.encodePacked(msg.sender, numberOfTokens, valueInWei, mintKey, this), signature, verificationAddress ); _claimedMintKeys[mintKey] = true; emit MintKeyClaimed(msg.sender, mintKey, numberOfTokens); uint256 currentMintIndex = uint256(privateMintIndex); for (uint256 i = 0; i < numberOfTokens; i++) { bool success = false; bytes memory result; while (!success) { // count to next index before minting currentMintIndex = currentMintIndex + 1; require(currentMintIndex <= MAX_PRIVATE_MINT_INDEX, "Incorrect tokenId to mint"); (success, result) = hippyGhosts.call( abi.encodeWithSignature("mint(address,uint256)", msg.sender, currentMintIndex) ); // mint will fail ONLY when tokenId is taken } } privateMintCount = privateMintCount + uint128(numberOfTokens); privateMintIndex = uint128(currentMintIndex); } /* public mint functions */ /** * @dev Epoch number start from 1, will increase every [EPOCH_BLOCKS] blocks */ function currentEpoch() public view returns (uint256) { if (publicMintStartBlock == 0 || block.number < publicMintStartBlock) { return 0; } uint256 epoches = (block.number - publicMintStartBlock) / EPOCH_BLOCKS; return epoches + 1; } function epochOfToken(uint256 tokenId) public pure returns (uint256) { require(tokenId > MAX_PRIVATE_MINT_INDEX, "Invalid tokenId"); uint256 epoches = (tokenId - MAX_PRIVATE_MINT_INDEX - 1) / GHOSTS_PER_EPOCH; return epoches + 1; } function availableForPublicMint() public view returns (uint256) { uint256 released = GHOSTS_PER_EPOCH * currentEpoch(); if (released > MAX_PUBLIC_MINT_INDEX - MAX_PRIVATE_MINT_INDEX) { released = MAX_PUBLIC_MINT_INDEX - MAX_PRIVATE_MINT_INDEX; } uint256 ghostsMintedInPublic = publicMintIndex - MAX_PRIVATE_MINT_INDEX; return released - ghostsMintedInPublic; } function priceForTokenId(uint256 tokenId) public view returns (uint256) { return priceForTokenId(currentEpoch(), epochOfToken(tokenId)); } function priceForTokenId(uint256 _currentEpoch, uint256 _tokenEpoch) public pure returns (uint256) { require(_currentEpoch >= _tokenEpoch, "Target epoch is not open"); uint256 price = publicMintPriceUpper - (_currentEpoch - _tokenEpoch) * publicMintPriceDecay; if (price < publicMintPriceLower) { price = publicMintPriceLower; } return price; } function mint(uint256 numberOfTokens) external payable { uint256 _currentEpoch = currentEpoch(); require(_currentEpoch > 0, "Public sale is not open"); require(numberOfTokens <= MAX_GHOSTS_PER_MINT, "Max ghosts to mint is ten"); require(publicMintIndex + numberOfTokens <= MAX_PUBLIC_MINT_INDEX, "Not enough ghosts remaining to mint"); uint256 _etherValue = msg.value; for (uint256 i = 0; i < numberOfTokens; i++) { publicMintIndex = publicMintIndex + 1; uint256 _tokenEpoch = epochOfToken(publicMintIndex); uint256 price = priceForTokenId(_currentEpoch, _tokenEpoch); _etherValue = _etherValue - price; IHippyGhosts(hippyGhosts).mint(msg.sender, publicMintIndex); } if (_etherValue > 0) { payable(msg.sender).transfer(_etherValue); } } /* withdraw from contract */ function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawTokens(IERC20 token) external onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } function selfDestruct() external onlyOwner { selfdestruct(payable(msg.sender)); } } interface IHippyGhosts { function mint(address to, uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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; /** * @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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"hippyGhosts_","type":"address"},{"internalType":"address","name":"gnosisSafe_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"hippyGhosts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b5060405161068638038061068683398101604081905261002f916100ba565b6001600160a01b03828116608081905260405163a22cb46560e01b81529183166004830152600160248301529063a22cb46590604401600060405180830381600087803b15801561007f57600080fd5b505af1158015610093573d6000803e3d6000fd5b5050505050506100ed565b80516001600160a01b03811681146100b557600080fd5b919050565b600080604083850312156100cd57600080fd5b6100d68361009e565b91506100e46020840161009e565b90509250929050565b6080516105646101226000396000818160710152818160bb0152818161014d0152818161028d015261039001526105646000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063150b7a021461003b578063b75ffd561461006c575b600080fd5b61004e610049366004610432565b6100ab565b6040516001600160e01b031990911681526020015b60405180910390f35b6100937f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610063565b6000945084336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461012d5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c6572206973206e6f7420486970707947686f7374732e00000000000060448201526064015b60405180910390fd5b6040516331a9108f60e11b81526004810185905230906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa158015610194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b891906104d1565b6001600160a01b0316146102075760405162461bcd60e51b815260206004820152601660248201527523b437b9ba1034b9903737ba103932b1b2b4bb32b21760511b6044820152606401610124565b81156103ef5760008061021c848601866104f5565b90925090506001600160e01b03198216634a5c8c6f60e11b1461026d5760405162461bcd60e51b81526020600482015260096024820152682bb937b7339037b81760b91b6044820152606401610124565b6040516331a9108f60e11b81526004810182905230906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa1580156102d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f891906104d1565b6001600160a01b0316146103645760405162461bcd60e51b815260206004820152602d60248201527f5468652077616e7465642047686f737420646f65736e27742062656c6f6e677360448201526c103a379029bbb0b82837b7b61760991b6064820152608401610124565b6040516323b872dd60e01b81523060048201526001600160a01b038881166024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b1580156103d457600080fd5b505af11580156103e8573d6000803e3d6000fd5b5050505050505b507f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6001600160a01b038116811461042f57600080fd5b50565b60008060008060006080868803121561044a57600080fd5b85356104558161041a565b945060208601356104658161041a565b935060408601359250606086013567ffffffffffffffff8082111561048957600080fd5b818801915088601f83011261049d57600080fd5b8135818111156104ac57600080fd5b8960208285010111156104be57600080fd5b9699959850939650602001949392505050565b6000602082840312156104e357600080fd5b81516104ee8161041a565b9392505050565b6000806040838503121561050857600080fd5b82356001600160e01b03198116811461052057600080fd5b94602093909301359350505056fea2646970667358221220f4affe0c2567d3e5080fd386d7e4da0bbef94c7af01a24ba4a35995ffae8fc1564736f6c634300080b00330000000000000000000000002a5503280d66a47de0754ddc73252ca9a4e93dcb000000000000000000000000ca4f157682559551ac39b66be5766355dfe66ef9
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063150b7a021461003b578063b75ffd561461006c575b600080fd5b61004e610049366004610432565b6100ab565b6040516001600160e01b031990911681526020015b60405180910390f35b6100937f0000000000000000000000002a5503280d66a47de0754ddc73252ca9a4e93dcb81565b6040516001600160a01b039091168152602001610063565b6000945084336001600160a01b037f0000000000000000000000002a5503280d66a47de0754ddc73252ca9a4e93dcb161461012d5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c6572206973206e6f7420486970707947686f7374732e00000000000060448201526064015b60405180910390fd5b6040516331a9108f60e11b81526004810185905230906001600160a01b037f0000000000000000000000002a5503280d66a47de0754ddc73252ca9a4e93dcb1690636352211e90602401602060405180830381865afa158015610194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b891906104d1565b6001600160a01b0316146102075760405162461bcd60e51b815260206004820152601660248201527523b437b9ba1034b9903737ba103932b1b2b4bb32b21760511b6044820152606401610124565b81156103ef5760008061021c848601866104f5565b90925090506001600160e01b03198216634a5c8c6f60e11b1461026d5760405162461bcd60e51b81526020600482015260096024820152682bb937b7339037b81760b91b6044820152606401610124565b6040516331a9108f60e11b81526004810182905230906001600160a01b037f0000000000000000000000002a5503280d66a47de0754ddc73252ca9a4e93dcb1690636352211e90602401602060405180830381865afa1580156102d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f891906104d1565b6001600160a01b0316146103645760405162461bcd60e51b815260206004820152602d60248201527f5468652077616e7465642047686f737420646f65736e27742062656c6f6e677360448201526c103a379029bbb0b82837b7b61760991b6064820152608401610124565b6040516323b872dd60e01b81523060048201526001600160a01b038881166024830152604482018390527f0000000000000000000000002a5503280d66a47de0754ddc73252ca9a4e93dcb16906323b872dd90606401600060405180830381600087803b1580156103d457600080fd5b505af11580156103e8573d6000803e3d6000fd5b5050505050505b507f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6001600160a01b038116811461042f57600080fd5b50565b60008060008060006080868803121561044a57600080fd5b85356104558161041a565b945060208601356104658161041a565b935060408601359250606086013567ffffffffffffffff8082111561048957600080fd5b818801915088601f83011261049d57600080fd5b8135818111156104ac57600080fd5b8960208285010111156104be57600080fd5b9699959850939650602001949392505050565b6000602082840312156104e357600080fd5b81516104ee8161041a565b9392505050565b6000806040838503121561050857600080fd5b82356001600160e01b03198116811461052057600080fd5b94602093909301359350505056fea2646970667358221220f4affe0c2567d3e5080fd386d7e4da0bbef94c7af01a24ba4a35995ffae8fc1564736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002a5503280d66a47de0754ddc73252ca9a4e93dcb000000000000000000000000ca4f157682559551ac39b66be5766355dfe66ef9
-----Decoded View---------------
Arg [0] : hippyGhosts_ (address): 0x2a5503280d66A47DE0754ddc73252CA9a4e93dcb
Arg [1] : gnosisSafe_ (address): 0xCA4F157682559551AC39b66be5766355DFE66EF9
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a5503280d66a47de0754ddc73252ca9a4e93dcb
Arg [1] : 000000000000000000000000ca4f157682559551ac39b66be5766355dfe66ef9
Deployed Bytecode Sourcemap
115:1424:14:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;578:959;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;1253:33:16;;;1235:52;;1223:2;1208:18;578:959:14;;;;;;;;150:36;;;;;;;;-1:-1:-1;;;;;1462:32:16;;;1444:51;;1432:2;1417:18;150:36:14;1298:203:16;578:959:14;730:6;;-1:-1:-1;730:6:14;798:10;-1:-1:-1;;;;;812:11:14;798:25;;790:64;;;;-1:-1:-1;;;790:64:14;;1708:2:16;790:64:14;;;1690:21:16;1747:2;1727:18;;;1720:30;1786:28;1766:18;;;1759:56;1832:18;;790:64:14;;;;;;;;;872:37;;-1:-1:-1;;;872:37:14;;;;;2007:25:16;;;921:4:14;;-1:-1:-1;;;;;880:11:14;872:28;;;;1980:18:16;;872:37:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;872:54:14;;864:89;;;;-1:-1:-1;;;864:89:14;;2501:2:16;864:89:14;;;2483:21:16;2540:2;2520:18;;;2513:30;-1:-1:-1;;;2559:18:16;;;2552:52;2621:18;;864:89:14;2299:346:16;864:89:14;967:15;;963:419;;999:9;;1033:35;;;;1044:4;1033:35;:::i;:::-;998:70;;-1:-1:-1;998:70:14;-1:-1:-1;;;;;;;1090:40:14;;-1:-1:-1;;;1090:40:14;1082:62;;;;-1:-1:-1;;;1082:62:14;;3211:2:16;1082:62:14;;;3193:21:16;3250:1;3230:18;;;3223:29;-1:-1:-1;;;3268:18:16;;;3261:39;3317:18;;1082:62:14;3009:332:16;1082:62:14;1166:41;;-1:-1:-1;;;1166:41:14;;;;;2007:25:16;;;1219:4:14;;-1:-1:-1;;;;;1174:11:14;1166:28;;;;1980:18:16;;1166:41:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;1166:58:14;;1158:132;;;;-1:-1:-1;;;1158:132:14;;3548:2:16;1158:132:14;;;3530:21:16;3587:2;3567:18;;;3560:30;3626:34;3606:18;;;3599:62;-1:-1:-1;;;3677:18:16;;;3670:43;3730:19;;1158:132:14;3346:409:16;1158:132:14;1304:67;;-1:-1:-1;;;1304:67:14;;1346:4;1304:67;;;4000:34:16;-1:-1:-1;;;;;4070:15:16;;;4050:18;;;4043:43;4102:18;;;4095:34;;;1312:11:14;1304:33;;;;3935:18:16;;1304:67:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;984:398;;963:419;-1:-1:-1;1469:60:14;578:959;;;;;;;:::o;14:131:16:-;-1:-1:-1;;;;;89:31:16;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:936::-;247:6;255;263;271;279;332:3;320:9;311:7;307:23;303:33;300:53;;;349:1;346;339:12;300:53;388:9;375:23;407:31;432:5;407:31;:::i;:::-;457:5;-1:-1:-1;514:2:16;499:18;;486:32;527:33;486:32;527:33;:::i;:::-;579:7;-1:-1:-1;633:2:16;618:18;;605:32;;-1:-1:-1;688:2:16;673:18;;660:32;711:18;741:14;;;738:34;;;768:1;765;758:12;738:34;806:6;795:9;791:22;781:32;;851:7;844:4;840:2;836:13;832:27;822:55;;873:1;870;863:12;822:55;913:2;900:16;939:2;931:6;928:14;925:34;;;955:1;952;945:12;925:34;1000:7;995:2;986:6;982:2;978:15;974:24;971:37;968:57;;;1021:1;1018;1011:12;968:57;150:936;;;;-1:-1:-1;150:936:16;;-1:-1:-1;1052:2:16;1044:11;;1074:6;150:936;-1:-1:-1;;;150:936:16:o;2043:251::-;2113:6;2166:2;2154:9;2145:7;2141:23;2137:32;2134:52;;;2182:1;2179;2172:12;2134:52;2214:9;2208:16;2233:31;2258:5;2233:31;:::i;:::-;2283:5;2043:251;-1:-1:-1;;;2043:251:16:o;2650:354::-;2717:6;2725;2778:2;2766:9;2757:7;2753:23;2749:32;2746:52;;;2794:1;2791;2784:12;2746:52;2820:23;;-1:-1:-1;;;;;;2872:32:16;;2862:43;;2852:71;;2919:1;2916;2909:12;2852:71;2942:5;2994:2;2979:18;;;;2966:32;;-1:-1:-1;;;2650:354:16:o
Swarm Source
ipfs://f4affe0c2567d3e5080fd386d7e4da0bbef94c7af01a24ba4a35995ffae8fc15
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.