Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,595 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Fund | 17352276 | 458 days ago | IN | 0.09 ETH | 0.00060533 | ||||
Fund | 14855587 | 823 days ago | IN | 0.06 ETH | 0.00091423 | ||||
Fund | 14855586 | 823 days ago | IN | 0.06 ETH | 0.00097169 | ||||
Withdraw | 14804643 | 831 days ago | IN | 0 ETH | 0.00068209 | ||||
Disable | 14804640 | 831 days ago | IN | 0 ETH | 0.0009278 | ||||
Fund | 14789563 | 834 days ago | IN | 0.09 ETH | 0.00883722 | ||||
Fund | 14788262 | 834 days ago | IN | 0.09 ETH | 0.0051847 | ||||
Fund | 14788254 | 834 days ago | IN | 0.09 ETH | 0.00563292 | ||||
Fund | 14786908 | 834 days ago | IN | 0.09 ETH | 0.00690071 | ||||
Fund | 14785200 | 835 days ago | IN | 0.09 ETH | 0.00457207 | ||||
Fund | 14784233 | 835 days ago | IN | 0.09 ETH | 0.0024709 | ||||
Fund | 14783758 | 835 days ago | IN | 0.09 ETH | 0.00281917 | ||||
Fund | 14777599 | 836 days ago | IN | 0.27 ETH | 0.00401866 | ||||
Fund | 14775398 | 836 days ago | IN | 0.09 ETH | 0.00471751 | ||||
Fund | 14774111 | 836 days ago | IN | 0.09 ETH | 0.00888916 | ||||
Fund | 14774107 | 836 days ago | IN | 0.09 ETH | 0.01044734 | ||||
Fund | 14774036 | 836 days ago | IN | 0.27 ETH | 0.00669294 | ||||
Fund | 14774035 | 836 days ago | IN | 0.27 ETH | 0.00597871 | ||||
Fund | 14769766 | 837 days ago | IN | 0.27 ETH | 0.00786547 | ||||
Fund | 14767425 | 837 days ago | IN | 0.09 ETH | 0.0114585 | ||||
Fund | 14767038 | 837 days ago | IN | 0.09 ETH | 0.00841324 | ||||
Fund | 14766929 | 837 days ago | IN | 0.09 ETH | 0.01234984 | ||||
Fund | 14766929 | 837 days ago | IN | 0.09 ETH | 0.01234843 | ||||
Fund | 14766928 | 837 days ago | IN | 0.09 ETH | 0.01100695 | ||||
Fund | 14766927 | 837 days ago | IN | 0.09 ETH | 0.01277581 |
Loading...
Loading
Contract Name:
HighriseLandFund
Compiler Version
v0.8.12+commit.f00d7308
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity =0.8.12; import "ECDSA.sol"; import "ERC165Checker.sol"; import "Address.sol"; import "IHighriseLand.sol"; contract HighriseLandFund { using ERC165Checker for address; using ECDSA for bytes32; event FundLandEvent(address indexed sender, uint256 fundAmount); event FundStateChangedEvent(bool enabled); enum FundState { ENABLED, DISABLED } address public immutable owner; address public immutable landContract; // mapping to store which address deposited how much ETH mapping(address => uint256) public addressToAmountFunded; FundState public fundState; constructor(address _landContract) { require( _landContract.supportsInterface(type(IHighriseLand).interfaceId), "IS_NOT_HIGHRISE_LAND_CONTRACT" ); owner = msg.sender; fundState = FundState.DISABLED; landContract = _landContract; } modifier enabled() { require( fundState == FundState.ENABLED, "Contract not enabled for funding" ); _; } function fund(bytes memory data, bytes memory signature) public payable enabled { require(_verify(keccak256(data), signature, owner), "Payload verification failed"); (uint256 tokenId, uint256 expiry, uint256 cost, address approvedOwner) = abi.decode( abi.encodePacked(data), (uint256, uint256, uint256, address) ); require(msg.sender == approvedOwner, "Sender not approved to buy token"); require(expiry > block.timestamp, "Reservation expired"); require(msg.value == cost, "Amount sent does not match land price"); addressToAmountFunded[msg.sender] += msg.value; IHighriseLand(landContract).mint(msg.sender, tokenId); emit FundLandEvent(msg.sender, msg.value); } modifier onlyOwner() { require(msg.sender == owner, "Sender is not the owner"); _; } function enable() public onlyOwner { fundState = FundState.ENABLED; emit FundStateChangedEvent(true); } function disable() public onlyOwner { fundState = FundState.DISABLED; emit FundStateChangedEvent(false); } modifier disabled() { require( fundState == FundState.DISABLED, "Disable contract before withdrawing" ); _; } function withdraw() public onlyOwner disabled { Address.sendValue(payable(msg.sender), address(this).balance); } function _verify( bytes32 data, bytes memory signature, address account ) internal pure returns (bool) { return data.recover(signature) == account; } }
// 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/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/ERC165Checker.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams); if (result.length < 32) return false; return success && abi.decode(result, (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 (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 pragma solidity =0.8.12; interface IHighriseLand { function mint(address user, uint256 tokenId) external; }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "HighriseLandFund.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_landContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"fundAmount","type":"uint256"}],"name":"FundLandEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"FundStateChangedEvent","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToAmountFunded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"fund","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fundState","outputs":[{"internalType":"enum HighriseLandFund.FundState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"landContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b506040516200124d3803806200124d833981016040819052620000349162000225565b6200005e6340c10f1960e01b826001600160a01b0316620000d160201b6200069e1790919060201c565b620000af5760405162461bcd60e51b815260206004820152601d60248201527f49535f4e4f545f48494748524953455f4c414e445f434f4e5452414354000000604482015260640160405180910390fd5b336080526001805460ff1916811790556001600160a01b031660a052620002b9565b6000620000de83620000fb565b8015620000f25750620000f2838362000133565b90505b92915050565b600062000110826301ffc9a760e01b62000133565b8015620000f557506200012c826001600160e01b031962000133565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b179052905160009190829081906001600160a01b03871690617530906200019c90869062000257565b6000604051808303818686fa925050503d8060008114620001da576040519150601f19603f3d011682016040523d82523d6000602084013e620001df565b606091505b5091509150602081511015620001fc5760009350505050620000f5565b8180156200021b5750808060200190518101906200021b919062000295565b9695505050505050565b6000602082840312156200023857600080fd5b81516001600160a01b03811681146200025057600080fd5b9392505050565b6000825160005b818110156200027a57602081860181015185830152016200025e565b818111156200028a576000828501525b509190910192915050565b600060208284031215620002a857600080fd5b815180151581146200025057600080fd5b60805160a051610f4c62000301600039600081816092015261057b015260008181610184015281816101c60152818161025a0152818161038701526106270152610f4c6000f3fe60806040526004361061007b5760003560e01c80633e47d6f31161004e5780633e47d6f314610124578063715776591461015f5780638da5cb5b14610172578063a3907d71146101a657600080fd5b806303d073401461008057806316a16f0b146100d15780632f2770db146100f85780633ccfd60b1461010f575b600080fd5b34801561008c57600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100dd57600080fd5b506001546100eb9060ff1681565b6040516100c89190610cb3565b34801561010457600080fd5b5061010d6101bb565b005b34801561011b57600080fd5b5061010d61024f565b34801561013057600080fd5b5061015161013f366004610cf0565b60006020819052908152604090205481565b6040519081526020016100c8565b61010d61016d366004610db7565b610313565b34801561017e57600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b3480156101b257600080fd5b5061010d61061c565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461020c5760405162461bcd60e51b815260040161020390610e1b565b60405180910390fd5b6001805460ff191681179055604051600081527fc69eaf01f77c1fa85dd4aa3ecaaac7e96f509ac7b939a810e044c3436a345dd9906020015b60405180910390a1565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146102975760405162461bcd60e51b815260040161020390610e1b565b6001805460ff16818111156102ae576102ae610c9d565b146103075760405162461bcd60e51b815260206004820152602360248201527f44697361626c6520636f6e7472616374206265666f7265207769746864726177604482015262696e6760e81b6064820152608401610203565b61031133476106c3565b565b60006001805460ff169081111561032c5761032c610c9d565b146103795760405162461bcd60e51b815260206004820181905260248201527f436f6e7472616374206e6f7420656e61626c656420666f722066756e64696e676044820152606401610203565b6103ab8280519060200120827f00000000000000000000000000000000000000000000000000000000000000006107e1565b6103f75760405162461bcd60e51b815260206004820152601b60248201527f5061796c6f616420766572696669636174696f6e206661696c656400000000006044820152606401610203565b6000806000808560405160200161040e9190610e52565b6040516020818303038152906040528060200190518101906104309190610e8d565b9350935093509350806001600160a01b0316336001600160a01b0316146104995760405162461bcd60e51b815260206004820181905260248201527f53656e646572206e6f7420617070726f76656420746f2062757920746f6b656e6044820152606401610203565b4283116104de5760405162461bcd60e51b815260206004820152601360248201527214995cd95c9d985d1a5bdb88195e1c1a5c9959606a1b6044820152606401610203565b81341461053b5760405162461bcd60e51b815260206004820152602560248201527f416d6f756e742073656e7420646f6573206e6f74206d61746368206c616e6420604482015264707269636560d81b6064820152608401610203565b336000908152602081905260408120805434929061055a908490610ece565b90915550506040516340c10f1960e01b8152336004820152602481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340c10f1990604401600060405180830381600087803b1580156105c757600080fd5b505af11580156105db573d6000803e3d6000fd5b50506040513481523392507fdc579df4977834c246bbbabf0f2ebc12597225f54135b4821ee7aeba50b69b94915060200160405180910390a2505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106645760405162461bcd60e51b815260040161020390610e1b565b6001805460ff191681556040519081527fc69eaf01f77c1fa85dd4aa3ecaaac7e96f509ac7b939a810e044c3436a345dd990602001610245565b60006106a983610809565b80156106ba57506106ba838361083c565b90505b92915050565b804710156107135760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610203565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610760576040519150601f19603f3d011682016040523d82523d6000602084013e610765565b606091505b50509050806107dc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610203565b505050565b60006001600160a01b0382166107f78585610925565b6001600160a01b031614949350505050565b600061081c826301ffc9a760e01b61083c565b80156106bd5750610835826001600160e01b031961083c565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b179052905160009190829081906001600160a01b03871690617530906108a3908690610e52565b6000604051808303818686fa925050503d80600081146108df576040519150601f19603f3d011682016040523d82523d6000602084013e6108e4565b606091505b50915091506020815110156108ff57600093505050506106bd565b81801561091b57508080602001905181019061091b9190610ef4565b9695505050505050565b60008060006109348585610949565b91509150610941816109b9565b509392505050565b6000808251604114156109805760208301516040840151606085015160001a61097487828585610b77565b945094505050506109b2565b8251604014156109aa576020830151604084015161099f868383610c64565b9350935050506109b2565b506000905060025b9250929050565b60008160048111156109cd576109cd610c9d565b14156109d65750565b60018160048111156109ea576109ea610c9d565b1415610a385760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610203565b6002816004811115610a4c57610a4c610c9d565b1415610a9a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610203565b6003816004811115610aae57610aae610c9d565b1415610b075760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610203565b6004816004811115610b1b57610b1b610c9d565b1415610b745760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610203565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610bae5750600090506003610c5b565b8460ff16601b14158015610bc657508460ff16601c14155b15610bd75750600090506004610c5b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610c2b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c5457600060019250925050610c5b565b9150600090505b94509492505050565b6000806001600160ff1b03831681610c8160ff86901c601b610ece565b9050610c8f87828885610b77565b935093505050935093915050565b634e487b7160e01b600052602160045260246000fd5b6020810160028310610cd557634e487b7160e01b600052602160045260246000fd5b91905290565b6001600160a01b0381168114610b7457600080fd5b600060208284031215610d0257600080fd5b8135610d0d81610cdb565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610d3b57600080fd5b813567ffffffffffffffff80821115610d5657610d56610d14565b604051601f8301601f19908116603f01168101908282118183101715610d7e57610d7e610d14565b81604052838152866020858801011115610d9757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610dca57600080fd5b823567ffffffffffffffff80821115610de257600080fd5b610dee86838701610d2a565b93506020850135915080821115610e0457600080fd5b50610e1185828601610d2a565b9150509250929050565b60208082526017908201527f53656e646572206973206e6f7420746865206f776e6572000000000000000000604082015260600190565b6000825160005b81811015610e735760208186018101518583015201610e59565b81811115610e82576000828501525b509190910192915050565b60008060008060808587031215610ea357600080fd5b8451935060208501519250604085015191506060850151610ec381610cdb565b939692955090935050565b60008219821115610eef57634e487b7160e01b600052601160045260246000fd5b500190565b600060208284031215610f0657600080fd5b81518015158114610d0d57600080fdfea2646970667358221220565326a2b225625b51174be90fd8d99f30c6f01380eef187da8a4c2be40e219d64736f6c634300080c00330000000000000000000000008bf3a40ea2337e6e4f6e540680ea6390cb3b4e11
Deployed Bytecode
0x60806040526004361061007b5760003560e01c80633e47d6f31161004e5780633e47d6f314610124578063715776591461015f5780638da5cb5b14610172578063a3907d71146101a657600080fd5b806303d073401461008057806316a16f0b146100d15780632f2770db146100f85780633ccfd60b1461010f575b600080fd5b34801561008c57600080fd5b506100b47f0000000000000000000000008bf3a40ea2337e6e4f6e540680ea6390cb3b4e1181565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100dd57600080fd5b506001546100eb9060ff1681565b6040516100c89190610cb3565b34801561010457600080fd5b5061010d6101bb565b005b34801561011b57600080fd5b5061010d61024f565b34801561013057600080fd5b5061015161013f366004610cf0565b60006020819052908152604090205481565b6040519081526020016100c8565b61010d61016d366004610db7565b610313565b34801561017e57600080fd5b506100b47f0000000000000000000000007dff0afffcd164f9e2f95973301002d76279d3f781565b3480156101b257600080fd5b5061010d61061c565b336001600160a01b037f0000000000000000000000007dff0afffcd164f9e2f95973301002d76279d3f7161461020c5760405162461bcd60e51b815260040161020390610e1b565b60405180910390fd5b6001805460ff191681179055604051600081527fc69eaf01f77c1fa85dd4aa3ecaaac7e96f509ac7b939a810e044c3436a345dd9906020015b60405180910390a1565b336001600160a01b037f0000000000000000000000007dff0afffcd164f9e2f95973301002d76279d3f716146102975760405162461bcd60e51b815260040161020390610e1b565b6001805460ff16818111156102ae576102ae610c9d565b146103075760405162461bcd60e51b815260206004820152602360248201527f44697361626c6520636f6e7472616374206265666f7265207769746864726177604482015262696e6760e81b6064820152608401610203565b61031133476106c3565b565b60006001805460ff169081111561032c5761032c610c9d565b146103795760405162461bcd60e51b815260206004820181905260248201527f436f6e7472616374206e6f7420656e61626c656420666f722066756e64696e676044820152606401610203565b6103ab8280519060200120827f0000000000000000000000007dff0afffcd164f9e2f95973301002d76279d3f76107e1565b6103f75760405162461bcd60e51b815260206004820152601b60248201527f5061796c6f616420766572696669636174696f6e206661696c656400000000006044820152606401610203565b6000806000808560405160200161040e9190610e52565b6040516020818303038152906040528060200190518101906104309190610e8d565b9350935093509350806001600160a01b0316336001600160a01b0316146104995760405162461bcd60e51b815260206004820181905260248201527f53656e646572206e6f7420617070726f76656420746f2062757920746f6b656e6044820152606401610203565b4283116104de5760405162461bcd60e51b815260206004820152601360248201527214995cd95c9d985d1a5bdb88195e1c1a5c9959606a1b6044820152606401610203565b81341461053b5760405162461bcd60e51b815260206004820152602560248201527f416d6f756e742073656e7420646f6573206e6f74206d61746368206c616e6420604482015264707269636560d81b6064820152608401610203565b336000908152602081905260408120805434929061055a908490610ece565b90915550506040516340c10f1960e01b8152336004820152602481018590527f0000000000000000000000008bf3a40ea2337e6e4f6e540680ea6390cb3b4e116001600160a01b0316906340c10f1990604401600060405180830381600087803b1580156105c757600080fd5b505af11580156105db573d6000803e3d6000fd5b50506040513481523392507fdc579df4977834c246bbbabf0f2ebc12597225f54135b4821ee7aeba50b69b94915060200160405180910390a2505050505050565b336001600160a01b037f0000000000000000000000007dff0afffcd164f9e2f95973301002d76279d3f716146106645760405162461bcd60e51b815260040161020390610e1b565b6001805460ff191681556040519081527fc69eaf01f77c1fa85dd4aa3ecaaac7e96f509ac7b939a810e044c3436a345dd990602001610245565b60006106a983610809565b80156106ba57506106ba838361083c565b90505b92915050565b804710156107135760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610203565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610760576040519150601f19603f3d011682016040523d82523d6000602084013e610765565b606091505b50509050806107dc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610203565b505050565b60006001600160a01b0382166107f78585610925565b6001600160a01b031614949350505050565b600061081c826301ffc9a760e01b61083c565b80156106bd5750610835826001600160e01b031961083c565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b179052905160009190829081906001600160a01b03871690617530906108a3908690610e52565b6000604051808303818686fa925050503d80600081146108df576040519150601f19603f3d011682016040523d82523d6000602084013e6108e4565b606091505b50915091506020815110156108ff57600093505050506106bd565b81801561091b57508080602001905181019061091b9190610ef4565b9695505050505050565b60008060006109348585610949565b91509150610941816109b9565b509392505050565b6000808251604114156109805760208301516040840151606085015160001a61097487828585610b77565b945094505050506109b2565b8251604014156109aa576020830151604084015161099f868383610c64565b9350935050506109b2565b506000905060025b9250929050565b60008160048111156109cd576109cd610c9d565b14156109d65750565b60018160048111156109ea576109ea610c9d565b1415610a385760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610203565b6002816004811115610a4c57610a4c610c9d565b1415610a9a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610203565b6003816004811115610aae57610aae610c9d565b1415610b075760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610203565b6004816004811115610b1b57610b1b610c9d565b1415610b745760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610203565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610bae5750600090506003610c5b565b8460ff16601b14158015610bc657508460ff16601c14155b15610bd75750600090506004610c5b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610c2b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c5457600060019250925050610c5b565b9150600090505b94509492505050565b6000806001600160ff1b03831681610c8160ff86901c601b610ece565b9050610c8f87828885610b77565b935093505050935093915050565b634e487b7160e01b600052602160045260246000fd5b6020810160028310610cd557634e487b7160e01b600052602160045260246000fd5b91905290565b6001600160a01b0381168114610b7457600080fd5b600060208284031215610d0257600080fd5b8135610d0d81610cdb565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610d3b57600080fd5b813567ffffffffffffffff80821115610d5657610d56610d14565b604051601f8301601f19908116603f01168101908282118183101715610d7e57610d7e610d14565b81604052838152866020858801011115610d9757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610dca57600080fd5b823567ffffffffffffffff80821115610de257600080fd5b610dee86838701610d2a565b93506020850135915080821115610e0457600080fd5b50610e1185828601610d2a565b9150509250929050565b60208082526017908201527f53656e646572206973206e6f7420746865206f776e6572000000000000000000604082015260600190565b6000825160005b81811015610e735760208186018101518583015201610e59565b81811115610e82576000828501525b509190910192915050565b60008060008060808587031215610ea357600080fd5b8451935060208501519250604085015191506060850151610ec381610cdb565b939692955090935050565b60008219821115610eef57634e487b7160e01b600052601160045260246000fd5b500190565b600060208284031215610f0657600080fd5b81518015158114610d0d57600080fdfea2646970667358221220565326a2b225625b51174be90fd8d99f30c6f01380eef187da8a4c2be40e219d64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008bf3a40ea2337e6e4f6e540680ea6390cb3b4e11
-----Decoded View---------------
Arg [0] : _landContract (address): 0x8Bf3A40EA2337e6E4F6E540680eA6390cB3B4E11
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008bf3a40ea2337e6e4f6e540680ea6390cb3b4e11
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.