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 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 14159845 | 897 days ago | IN | Create: Skoolverse | 0 ETH | 0.37415184 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Skoolverse
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol"; interface IScholarz { function ownerOf(uint256 tokenId) external view returns (address owner); function isApprovedForAll(address owner, address operator) external view returns (bool); function transferFrom(address from, address to, uint256 tokenId) external; } contract Skoolverse is ERC721Upgradeable, ERC721PausableUpgradeable, OwnableUpgradeable { using StringsUpgradeable for uint256; using ECDSAUpgradeable for bytes32; IScholarz Scholarz; uint public totalClaimed; uint public activationTime; bool public claimStarted; bool public openHouse; address private _signer; string private _tokenBaseURI; mapping(uint => bool) public landActive; mapping(uint => uint) public homeOf; mapping(uint => uint) public tenantOf; mapping(uint => uint) public placedAt; mapping(uint => uint) public removedAt; mapping(uint => address) public placedBy; mapping(bytes32 => bool) public usedKey; event Claimed(address indexed from, bytes32 indexed key, uint[] TokenIds, uint timestamp); event Stay(address indexed from, uint indexed TenantId, uint timestamp); event Leave(address indexed from, uint indexed TenantId, uint timestamp); event Activated(address indexed from, bytes32 indexed key, uint[] LandIds, uint timestamp); function initialize() public initializer { __ERC721_init("Skoolverse", "SKV"); __Ownable_init(); _signer = 0xBc9eebF48B2B8B54f57d6c56F41882424d632EA7; activationTime = 2 weeks; removedAt[0] = 1; } // internal function claim(uint _tokenId) internal { require(_tokenId <= 2500, "Only Genesis allowed"); require(Scholarz.ownerOf(_tokenId) == msg.sender, "You don't own this Scholarz ID"); _safeMint(msg.sender, _tokenId); totalClaimed++; } function stay(uint _scholarzId, uint _landId) internal { require(_scholarzId <= 2500, "Only Genesis allowed"); require(_landId <= 2500, "ID > 2500"); require(ownerOf(_landId) == msg.sender, "Not owner of this land"); require(homeOf[tenantOf[_landId]] != _landId || removedAt[tenantOf[_landId]] != 0, "Land is already occupied"); Scholarz.transferFrom(msg.sender, address(this), _scholarzId); homeOf[_scholarzId] = _landId; tenantOf[_landId] = _scholarzId; placedAt[_scholarzId] = block.timestamp; removedAt[_scholarzId] = 0; placedBy[_scholarzId] = address(msg.sender); emit Stay(msg.sender, _scholarzId, block.timestamp); } function leave(uint _scholarzId) internal { require(placedBy[_scholarzId] == msg.sender, "Not owner of this Scholarz"); Scholarz.transferFrom(address(this), msg.sender, _scholarzId); if (removedAt[_scholarzId] == 0) { // staking is active, set removedAt to now landActive[homeOf[_scholarzId]] = false; tenantOf[homeOf[_scholarzId]] = 0; removedAt[_scholarzId] = block.timestamp; } homeOf[_scholarzId] = 0; placedBy[_scholarzId] = address(0); emit Leave(msg.sender, _scholarzId, block.timestamp); } function activate(uint _landId) internal { require(!landActive[_landId], "Land is already activated"); require(ownerOf(_landId) == msg.sender, "Land is not yours"); require(homeOf[tenantOf[_landId]] == _landId, "Tenant is not your scholarz"); require(removedAt[tenantOf[_landId]] == 0, "Scholarz is not staked"); require(block.timestamp - placedAt[tenantOf[_landId]] >= activationTime, "Land is not ready"); landActive[_landId] = true; } function _beforeTokenTransfer(address from, address, uint256 tokenId) internal whenNotPaused override(ERC721Upgradeable, ERC721PausableUpgradeable) { if (from != address(0)) { landActive[tokenId] = false; if (removedAt[tenantOf[tokenId]] == 0) { removedAt[tenantOf[tokenId]] = block.timestamp; } } // super._beforeTokenTransfer(from, to, tokenId); } // external function claimMultiple(bytes32 key, bytes calldata signature, uint[] memory _tokenIds, uint timestamp) external { require(!usedKey[key], "Key has been used."); require(block.timestamp < timestamp, "Expired mint time."); require(keccak256(abi.encode(msg.sender, "claim", _tokenIds, timestamp, key)).toEthSignedMessageHash().recover(signature) == _signer, "Invalid signature"); require(claimStarted, "Not yet started"); for (uint i = 0; i < _tokenIds.length; i++) { claim(_tokenIds[i]); } usedKey[key] = true; emit Claimed(msg.sender, key, _tokenIds, block.timestamp); } function stayTogether(uint[] memory _scholarzIds, uint[] memory _landIds) external { require(openHouse, "Not yet started"); require(Scholarz.isApprovedForAll(msg.sender, address(this)), "Contract is not approved"); require(_scholarzIds.length == _landIds.length, "Amount does not match"); for (uint i = 0; i < _scholarzIds.length; i++) { stay(_scholarzIds[i], _landIds[i]); } } function leaveTogether(uint[] memory _scholarzIds) external { require(Scholarz.isApprovedForAll(msg.sender, address(this)), "Contract is not approved"); for (uint i = 0; i < _scholarzIds.length; i++) { leave(_scholarzIds[i]); } } function activateMultiple(bytes32 key, bytes calldata signature, uint[] memory _landIds, uint timestamp) external { require(!usedKey[key], "Key has been used."); require(block.timestamp < timestamp, "Expired mint time."); require(keccak256(abi.encode(msg.sender, "activate", _landIds, timestamp, key)).toEthSignedMessageHash().recover(signature) == _signer, "Invalid signature"); for (uint i = 0; i < _landIds.length; i++) { activate(_landIds[i]); } usedKey[key] = true; emit Activated(msg.sender, key, _landIds, block.timestamp); } // onlyOwner function setScholarzAddress(address _address) public onlyOwner { Scholarz = IScholarz(_address); } function setSignerAddress(address _address) public onlyOwner { _signer = _address; } function setBaseURI(string memory URI) public onlyOwner { _tokenBaseURI = URI; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function toggleClaimStart() public onlyOwner { claimStarted = !claimStarted; } function toggleStakeStart() public onlyOwner { openHouse = !openHouse; } function setActivationTime(uint _seconds) public onlyOwner { activationTime = _seconds; } // view function isClaimed(uint _landId) external view returns (bool) { return (_exists(_landId)); } function lastStayDuration(uint _scholarzId) external view returns(uint) { if (removedAt[_scholarzId] == 0 && placedAt[_scholarzId] != 0) { return block.timestamp - placedAt[_scholarzId]; } else { return removedAt[_scholarzId] - placedAt[_scholarzId]; } } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(_tokenBaseURI, tokenId.toString())); } }
// SPDX-License-Identifier: MIT 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 IERC165Upgradeable { /** * @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 pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 ECDSAUpgradeable { 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; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 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 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.0; /** * @dev String operations. */ library StringsUpgradeable { 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 pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev 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.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721Upgradeable.sol"; import "../../../security/PausableUpgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721PausableUpgradeable is Initializable, ERC721Upgradeable, PausableUpgradeable { function __ERC721Pausable_init() internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __Pausable_init_unchained(); __ERC721Pausable_init_unchained(); } function __ERC721Pausable_init_unchained() internal initializer { } /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} uint256[44] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal initializer { __Context_init_unchained(); __Pausable_init_unchained(); } function __Pausable_init_unchained() internal initializer { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256[]","name":"LandIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Activated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256[]","name":"TokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"TenantId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Leave","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"TenantId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Stay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256[]","name":"_landIds","type":"uint256[]"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"activateMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activationTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"claimMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"homeOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_landId","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"landActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scholarzId","type":"uint256"}],"name":"lastStayDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_scholarzIds","type":"uint256[]"}],"name":"leaveTogether","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openHouse","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"placedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"placedBy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"removedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"setActivationTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setScholarzAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_scholarzIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_landIds","type":"uint256[]"}],"name":"stayTogether","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tenantOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleClaimStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleStakeStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedKey","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613770806100206000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80637c8c47a511610151578063c0bca7c6116100c3578063d54ad2a111610087578063d54ad2a114610565578063d6b2fde31461056f578063da4493f614610590578063e4e4be501461059a578063e985e9c5146105bb578063f2fde38b146105f757600080fd5b8063c0bca7c61461050b578063c1664b131461051e578063c3a7efb91461052c578063c87b56dd1461053f578063ceef98971461055257600080fd5b80639e34070f116101155780639e34070f14610474578063a22cb46514610487578063acc7a5b01461049a578063aea5f419146104ad578063b2735d93146104ce578063b88d4fde146104f857600080fd5b80637c8c47a5146104275780638129fc1c1461044b5780638456cb59146104535780638da5cb5b1461045b57806395d89b411461046c57600080fd5b80632cde5ab9116101ea5780635c975abb116101ae5780635c975abb146103d35780635e2917b9146103de5780636352211e146103e657806370a08231146103f9578063715018a61461040c5780637c5486a21461041457600080fd5b80632cde5ab91461037f57806331dd58a4146103925780633f4ba83a146103a557806342842e0e146103ad57806355f804b3146103c057600080fd5b8063095ea7b311610231578063095ea7b3146102f35780630ee9db5c1461030657806323b872dd1461031957806326cb67da1461032c5780632754b5d11461035057600080fd5b806301ffc9a71461026e57806303502b5a14610296578063046dc166146102a057806306fdde03146102b3578063081812fc146102c8575b600080fd5b61028161027c366004612de5565b61060a565b60405190151581526020015b60405180910390f35b61029e61065c565b005b61029e6102ae366004612e1e565b6106a4565b6102bb6106f9565b60405161028d9190612e93565b6102db6102d6366004612ea6565b61078b565b6040516001600160a01b03909116815260200161028d565b61029e610301366004612ebf565b610820565b61029e610314366004612fb2565b610936565b61029e61032736600461305b565b610b93565b61028161033a366004612ea6565b6101386020526000908152604090205460ff1681565b61037161035e366004612ea6565b6101346020526000908152604090205481565b60405190815260200161028d565b61029e61038d36600461309c565b610bc4565b61029e6103a0366004612fb2565b610d6b565b61029e610f98565b61029e6103bb36600461305b565b610fcc565b61029e6103ce366004613158565b610fe7565b60975460ff16610281565b61029e611029565b6102db6103f4366004612ea6565b611071565b610371610407366004612e1e565b6110e8565b61029e61116f565b61029e610422366004612ea6565b6111a3565b610281610435366004612ea6565b6101326020526000908152604090205460ff1681565b61029e6111d3565b61029e6112ef565b60fb546001600160a01b03166102db565b6102bb611321565b610281610482366004612ea6565b611330565b61029e6104953660046131af565b61134f565b6103716104a8366004612ea6565b611415565b6103716104bb366004612ea6565b6101356020526000908152604090205481565b6102db6104dc366004612ea6565b610137602052600090815260409020546001600160a01b031681565b61029e6105063660046131e8565b611486565b6101305461028190610100900460ff1681565b610130546102819060ff1681565b61029e61053a366004612e1e565b6114be565b6102bb61054d366004612ea6565b61150b565b61029e610560366004613268565b6115bd565b61037161012e5481565b61037161057d366004612ea6565b6101366020526000908152604090205481565b61037161012f5481565b6103716105a8366004612ea6565b6101336020526000908152604090205481565b6102816105c936600461329d565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b61029e610605366004612e1e565b6116b7565b60006001600160e01b031982166380ac58cd60e01b148061063b57506001600160e01b03198216635b5e139f60e01b145b8061065657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60fb546001600160a01b0316331461068f5760405162461bcd60e51b8152600401610686906132cb565b60405180910390fd5b610130805460ff19811660ff90911615179055565b60fb546001600160a01b031633146106ce5760405162461bcd60e51b8152600401610686906132cb565b61013080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60606065805461070890613300565b80601f016020809104026020016040519081016040528092919081815260200182805461073490613300565b80156107815780601f1061075657610100808354040283529160200191610781565b820191906000526020600020905b81548152906001019060200180831161076457829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108045760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610686565b506000908152606960205260409020546001600160a01b031690565b600061082b82611071565b9050806001600160a01b0316836001600160a01b031614156108995760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610686565b336001600160a01b03821614806108b557506108b581336105c9565b6109275760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610686565b610931838361174f565b505050565b6000858152610138602052604090205460ff161561098b5760405162461bcd60e51b815260206004820152601260248201527125b2bc903430b9903132b2b7103ab9b2b21760711b6044820152606401610686565b8042106109cf5760405162461bcd60e51b815260206004820152601260248201527122bc3834b932b21036b4b73a103a34b6b29760711b6044820152606401610686565b61013060029054906101000a90046001600160a01b03166001600160a01b0316610aa985858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051610aa39250610a4391503390889088908d90602001613376565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b906117bd565b6001600160a01b031614610af35760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610686565b60005b8251811015610b3357610b21838281518110610b1457610b146133c9565b60200260200101516117e1565b80610b2b816133f5565b915050610af6565b506000858152610138602052604090819020805460ff1916600117905551859033907f2b259f99ebaa0d2af453ddf879cec3d739c72579578bc730f5e042e4a6a2528890610b849086904290613410565b60405180910390a35050505050565b610b9d33826119ef565b610bb95760405162461bcd60e51b815260040161068690613432565b610931838383611ae6565b61013054610100900460ff16610c0e5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081e595d081cdd185c9d1959608a1b6044820152606401610686565b61012d5460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015610c5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c819190613483565b610cc85760405162461bcd60e51b815260206004820152601860248201527710dbdb9d1c9858dd081a5cc81b9bdd08185c1c1c9bdd995960421b6044820152606401610686565b8051825114610d115760405162461bcd60e51b8152602060048201526015602482015274082dadeeadce840c8decae640dcdee840dac2e8c6d605b1b6044820152606401610686565b60005b825181101561093157610d59838281518110610d3257610d326133c9565b6020026020010151838381518110610d4c57610d4c6133c9565b6020026020010151611c91565b80610d63816133f5565b915050610d14565b6000858152610138602052604090205460ff1615610dc05760405162461bcd60e51b815260206004820152601260248201527125b2bc903430b9903132b2b7103ab9b2b21760711b6044820152606401610686565b804210610e045760405162461bcd60e51b815260206004820152601260248201527122bc3834b932b21036b4b73a103a34b6b29760711b6044820152606401610686565b61013060029054906101000a90046001600160a01b03166001600160a01b0316610e7885858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051610aa39250610a4391503390889088908d906020016134a0565b6001600160a01b031614610ec25760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610686565b6101305460ff16610f075760405162461bcd60e51b815260206004820152600f60248201526e139bdd081e595d081cdd185c9d1959608a1b6044820152606401610686565b60005b8251811015610f4757610f35838281518110610f2857610f286133c9565b6020026020010151611efa565b80610f3f816133f5565b915050610f0a565b506000858152610138602052604090819020805460ff1916600117905551859033907f4e81b56f716218bcc36ea00b26cbff0f6759c87238460d354272913d0a4a0b5290610b849086904290613410565b60fb546001600160a01b03163314610fc25760405162461bcd60e51b8152600401610686906132cb565b610fca61202a565b565b61093183838360405180602001604052806000815250611486565b60fb546001600160a01b031633146110115760405162461bcd60e51b8152600401610686906132cb565b805161102590610131906020840190612d36565b5050565b60fb546001600160a01b031633146110535760405162461bcd60e51b8152600401610686906132cb565b610130805461ff001981166101009182900460ff1615909102179055565b6000818152606760205260408120546001600160a01b0316806106565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610686565b60006001600160a01b0382166111535760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610686565b506001600160a01b031660009081526068602052604090205490565b60fb546001600160a01b031633146111995760405162461bcd60e51b8152600401610686906132cb565b610fca60006120bd565b60fb546001600160a01b031633146111cd5760405162461bcd60e51b8152600401610686906132cb565b61012f55565b600054610100900460ff16806111ec575060005460ff16155b6112085760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff1615801561122a576000805461ffff19166101011790555b6112716040518060400160405280600a815260200169536b6f6f6c766572736560b01b8152506040518060400160405280600381526020016229a5ab60e91b81525061210f565b611279612196565b610130805462010000600160b01b03191675bc9eebf48b2b8b54f57d6c56f41882424d632ea700001790556212750061012f556000805261013660205260017f51d6fdb3121932cfc04bb42e8c5cc689745fb5fb74fc25ea8dd6f9b2090fe5545580156112ec576000805461ff00191690555b50565b60fb546001600160a01b031633146113195760405162461bcd60e51b8152600401610686906132cb565b610fca612211565b60606066805461070890613300565b6000818152606760205260408120546001600160a01b03161515610656565b6001600160a01b0382163314156113a85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610686565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a35050565b6000818152610136602052604081205415801561144057506000828152610135602052604090205415155b1561145f5760008281526101356020526040902054610656904261352b565b6000828152610135602090815260408083205461013690925290912054610656919061352b565b61149033836119ef565b6114ac5760405162461bcd60e51b815260040161068690613432565b6114b88484848461228c565b50505050565b60fb546001600160a01b031633146114e85760405162461bcd60e51b8152600401610686906132cb565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152606760205260409020546060906001600160a01b031661158a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610686565b610131611596836122bf565b6040516020016115a792919061355e565b6040516020818303038152906040529050919050565b61012d5460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa15801561160c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116309190613483565b6116775760405162461bcd60e51b815260206004820152601860248201527710dbdb9d1c9858dd081a5cc81b9bdd08185c1c1c9bdd995960421b6044820152606401610686565b60005b8151811015611025576116a5828281518110611698576116986133c9565b60200260200101516123bd565b806116af816133f5565b91505061167a565b60fb546001600160a01b031633146116e15760405162461bcd60e51b8152600401610686906132cb565b6001600160a01b0381166117465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610686565b6112ec816120bd565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061178482611071565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008060006117cc858561254c565b915091506117d9816125bc565b509392505050565b6000818152610132602052604090205460ff16156118415760405162461bcd60e51b815260206004820152601960248201527f4c616e6420697320616c726561647920616374697661746564000000000000006044820152606401610686565b3361184b82611071565b6001600160a01b0316146118955760405162461bcd60e51b81526020600482015260116024820152704c616e64206973206e6f7420796f75727360781b6044820152606401610686565b60008181526101346020908152604080832054835261013390915290205481146119015760405162461bcd60e51b815260206004820152601b60248201527f54656e616e74206973206e6f7420796f7572207363686f6c61727a00000000006044820152606401610686565b600081815261013460209081526040808320548352610136909152902054156119655760405162461bcd60e51b815260206004820152601660248201527514d8da1bdb185c9e881a5cc81b9bdd081cdd185ad95960521b6044820152606401610686565b61012f54600082815261013460209081526040808320548352610135909152902054611991904261352b565b10156119d35760405162461bcd60e51b81526020600482015260116024820152704c616e64206973206e6f7420726561647960781b6044820152606401610686565b600090815261013260205260409020805460ff19166001179055565b6000818152606760205260408120546001600160a01b0316611a685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610686565b6000611a7383611071565b9050806001600160a01b0316846001600160a01b03161480611aae5750836001600160a01b0316611aa38461078b565b6001600160a01b0316145b80611ade57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611af982611071565b6001600160a01b031614611b615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610686565b6001600160a01b038216611bc35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610686565b611bce838383612777565b611bd960008261174f565b6001600160a01b0383166000908152606860205260408120805460019290611c0290849061352b565b90915550506001600160a01b0382166000908152606860205260408120805460019290611c30908490613605565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6109c4821115611cda5760405162461bcd60e51b815260206004820152601460248201527313db9b1e4811d95b995cda5cc8185b1b1bddd95960621b6044820152606401610686565b6109c4811115611d185760405162461bcd60e51b815260206004820152600960248201526804944203e20323530360bc1b6044820152606401610686565b33611d2282611071565b6001600160a01b031614611d715760405162461bcd60e51b8152602060048201526016602482015275139bdd081bdddb995c881bd9881d1a1a5cc81b185b9960521b6044820152606401610686565b60008181526101346020908152604080832054835261013390915290205481141580611db9575060008181526101346020908152604080832054835261013690915290205415155b611e055760405162461bcd60e51b815260206004820152601860248201527f4c616e6420697320616c7265616479206f6363757069656400000000000000006044820152606401610686565b61012d546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015611e5857600080fd5b505af1158015611e6c573d6000803e3d6000fd5b505050600083815261013360209081526040808320859055848352610134825280832086905585835261013582528083204290819055610136835281842084905561013783529281902080546001600160a01b031916339081179091559051928352859350917f62d896ebcef7ba3f63ba65ad054aff2abbaa9591a3ed3cd89ac07e1c4015a05f9101611409565b6109c4811115611f435760405162461bcd60e51b815260206004820152601460248201527313db9b1e4811d95b995cda5cc8185b1b1bddd95960621b6044820152606401610686565b61012d546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa158015611f8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb1919061361d565b6001600160a01b0316146120075760405162461bcd60e51b815260206004820152601e60248201527f596f7520646f6e2774206f776e2074686973205363686f6c61727a20494400006044820152606401610686565b6120113382612822565b61012e8054906000612022836133f5565b919050555050565b60975460ff166120735760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610686565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60fb80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1680612128575060005460ff16155b6121445760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff16158015612166576000805461ffff19166101011790555b61216e61283c565b61217661283c565b61218083836128a6565b8015610931576000805461ff0019169055505050565b600054610100900460ff16806121af575060005460ff16155b6121cb5760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff161580156121ed576000805461ffff19166101011790555b6121f561283c565b6121fd61293b565b80156112ec576000805461ff001916905550565b60975460ff16156122575760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610686565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120a03390565b612297848484611ae6565b6122a38484848461299b565b6114b85760405162461bcd60e51b81526004016106869061363a565b6060816122e35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561230d57806122f7816133f5565b91506123069050600a836136a2565b91506122e7565b60008167ffffffffffffffff81111561232857612328612eeb565b6040519080825280601f01601f191660200182016040528015612352576020820181803683370190505b5090505b8415611ade5761236760018361352b565b9150612374600a866136b6565b61237f906030613605565b60f81b818381518110612394576123946133c9565b60200101906001600160f81b031916908160001a9053506123b6600a866136a2565b9450612356565b600081815261013760205260409020546001600160a01b031633146124245760405162461bcd60e51b815260206004820152601a60248201527f4e6f74206f776e6572206f662074686973205363686f6c61727a0000000000006044820152606401610686565b61012d546040516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561247757600080fd5b505af115801561248b573d6000803e3d6000fd5b50505060008281526101366020526040902054151590506124e957600081815261013360209081526040808320805484526101328352818420805460ff19169055548352610134825280832083905583835261013690915290204290555b60008181526101336020908152604080832083905561013782529182902080546001600160a01b03191690559051428152829133917f0f0f7f8153c6d63a5696720d4cc434e56bb5ac1cf8c791ed9c180defb6e92153910160405180910390a350565b6000808251604114156125835760208301516040840151606085015160001a61257787828585612a99565b945094505050506125b5565b8251604014156125ad57602083015160408401516125a2868383612b86565b9350935050506125b5565b506000905060025b9250929050565b60008160048111156125d0576125d06136ca565b14156125d95750565b60018160048111156125ed576125ed6136ca565b141561263b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610686565b600281600481111561264f5761264f6136ca565b141561269d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610686565b60038160048111156126b1576126b16136ca565b141561270a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610686565b600481600481111561271e5761271e6136ca565b14156112ec5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610686565b60975460ff16156127bd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610686565b6001600160a01b0383161561093157600081815261013260209081526040808320805460ff1916905561013482528083205483526101369091529020546109315760009081526101346020908152604080832054835261013690915290204290555050565b611025828260405180602001604052806000815250612bb5565b600054610100900460ff1680612855575060005460ff16155b6128715760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff161580156121fd576000805461ffff191661010117905580156112ec576000805461ff001916905550565b600054610100900460ff16806128bf575060005460ff16155b6128db5760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff161580156128fd576000805461ffff19166101011790555b8251612910906065906020860190612d36565b508151612924906066906020850190612d36565b508015610931576000805461ff0019169055505050565b600054610100900460ff1680612954575060005460ff16155b6129705760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff16158015612992576000805461ffff19166101011790555b6121fd336120bd565b60006001600160a01b0384163b15612a8e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129df9033908990889088906004016136e0565b6020604051808303816000875af1925050508015612a1a575060408051601f3d908101601f19168201909252612a179181019061371d565b60015b612a74573d808015612a48576040519150601f19603f3d011682016040523d82523d6000602084013e612a4d565b606091505b508051612a6c5760405162461bcd60e51b81526004016106869061363a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ade565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ad05750600090506003612b7d565b8460ff16601b14158015612ae857508460ff16601c14155b15612af95750600090506004612b7d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612b4d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612b7657600060019250925050612b7d565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612ba787828885612a99565b935093505050935093915050565b612bbf8383612be8565b612bcc600084848461299b565b6109315760405162461bcd60e51b81526004016106869061363a565b6001600160a01b038216612c3e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610686565b6000818152606760205260409020546001600160a01b031615612ca35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610686565b612caf60008383612777565b6001600160a01b0382166000908152606860205260408120805460019290612cd8908490613605565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612d4290613300565b90600052602060002090601f016020900481019282612d645760008555612daa565b82601f10612d7d57805160ff1916838001178555612daa565b82800160010185558215612daa579182015b82811115612daa578251825591602001919060010190612d8f565b50612db6929150612dba565b5090565b5b80821115612db65760008155600101612dbb565b6001600160e01b0319811681146112ec57600080fd5b600060208284031215612df757600080fd5b8135612e0281612dcf565b9392505050565b6001600160a01b03811681146112ec57600080fd5b600060208284031215612e3057600080fd5b8135612e0281612e09565b60005b83811015612e56578181015183820152602001612e3e565b838111156114b85750506000910152565b60008151808452612e7f816020860160208601612e3b565b601f01601f19169290920160200192915050565b602081526000612e026020830184612e67565b600060208284031215612eb857600080fd5b5035919050565b60008060408385031215612ed257600080fd5b8235612edd81612e09565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612f2a57612f2a612eeb565b604052919050565b600082601f830112612f4357600080fd5b8135602067ffffffffffffffff821115612f5f57612f5f612eeb565b8160051b612f6e828201612f01565b9283528481018201928281019087851115612f8857600080fd5b83870192505b84831015612fa757823582529183019190830190612f8e565b979650505050505050565b600080600080600060808688031215612fca57600080fd5b85359450602086013567ffffffffffffffff80821115612fe957600080fd5b818801915088601f830112612ffd57600080fd5b81358181111561300c57600080fd5b89602082850101111561301e57600080fd5b60208301965080955050604088013591508082111561303c57600080fd5b5061304988828901612f32565b95989497509295606001359392505050565b60008060006060848603121561307057600080fd5b833561307b81612e09565b9250602084013561308b81612e09565b929592945050506040919091013590565b600080604083850312156130af57600080fd5b823567ffffffffffffffff808211156130c757600080fd5b6130d386838701612f32565b935060208501359150808211156130e957600080fd5b506130f685828601612f32565b9150509250929050565b600067ffffffffffffffff83111561311a5761311a612eeb565b61312d601f8401601f1916602001612f01565b905082815283838301111561314157600080fd5b828260208301376000602084830101529392505050565b60006020828403121561316a57600080fd5b813567ffffffffffffffff81111561318157600080fd5b8201601f8101841361319257600080fd5b611ade84823560208401613100565b80151581146112ec57600080fd5b600080604083850312156131c257600080fd5b82356131cd81612e09565b915060208301356131dd816131a1565b809150509250929050565b600080600080608085870312156131fe57600080fd5b843561320981612e09565b9350602085013561321981612e09565b925060408501359150606085013567ffffffffffffffff81111561323c57600080fd5b8501601f8101871361324d57600080fd5b61325c87823560208401613100565b91505092959194509250565b60006020828403121561327a57600080fd5b813567ffffffffffffffff81111561329157600080fd5b611ade84828501612f32565b600080604083850312156132b057600080fd5b82356132bb81612e09565b915060208301356131dd81612e09565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061331457607f821691505b6020821081141561333557634e487b7160e01b600052602260045260246000fd5b50919050565b600081518084526020808501945080840160005b8381101561336b5781518752958201959082019060010161334f565b509495945050505050565b60018060a01b038516815260a06020820152600860a082015267616374697661746560c01b60c082015260e0604082015260006133b660e083018661333b565b6060830194909452506080015292915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613409576134096133df565b5060010190565b604081526000613423604083018561333b565b90508260208301529392505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60006020828403121561349557600080fd5b8151612e02816131a1565b60018060a01b038516815260a06020820152600560a082015264636c61696d60d81b60c082015260e0604082015260006133b660e083018661333b565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60008282101561353d5761353d6133df565b500390565b60008151613554818560208601612e3b565b9290920192915050565b600080845481600182811c91508083168061357a57607f831692505b602080841082141561359a57634e487b7160e01b86526022600452602486fd5b8180156135ae57600181146135bf576135ec565b60ff198616895284890196506135ec565b60008b81526020902060005b868110156135e45781548b8201529085019083016135cb565b505084890196505b5050505050506135fc8185613542565b95945050505050565b60008219821115613618576136186133df565b500190565b60006020828403121561362f57600080fd5b8151612e0281612e09565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826136b1576136b161368c565b500490565b6000826136c5576136c561368c565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061371390830184612e67565b9695505050505050565b60006020828403121561372f57600080fd5b8151612e0281612dcf56fea2646970667358221220652072b1c3301dd3f8f37cd83626e6efcd67d36391de07326b9a62ad99ee616164736f6c634300080a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102695760003560e01c80637c8c47a511610151578063c0bca7c6116100c3578063d54ad2a111610087578063d54ad2a114610565578063d6b2fde31461056f578063da4493f614610590578063e4e4be501461059a578063e985e9c5146105bb578063f2fde38b146105f757600080fd5b8063c0bca7c61461050b578063c1664b131461051e578063c3a7efb91461052c578063c87b56dd1461053f578063ceef98971461055257600080fd5b80639e34070f116101155780639e34070f14610474578063a22cb46514610487578063acc7a5b01461049a578063aea5f419146104ad578063b2735d93146104ce578063b88d4fde146104f857600080fd5b80637c8c47a5146104275780638129fc1c1461044b5780638456cb59146104535780638da5cb5b1461045b57806395d89b411461046c57600080fd5b80632cde5ab9116101ea5780635c975abb116101ae5780635c975abb146103d35780635e2917b9146103de5780636352211e146103e657806370a08231146103f9578063715018a61461040c5780637c5486a21461041457600080fd5b80632cde5ab91461037f57806331dd58a4146103925780633f4ba83a146103a557806342842e0e146103ad57806355f804b3146103c057600080fd5b8063095ea7b311610231578063095ea7b3146102f35780630ee9db5c1461030657806323b872dd1461031957806326cb67da1461032c5780632754b5d11461035057600080fd5b806301ffc9a71461026e57806303502b5a14610296578063046dc166146102a057806306fdde03146102b3578063081812fc146102c8575b600080fd5b61028161027c366004612de5565b61060a565b60405190151581526020015b60405180910390f35b61029e61065c565b005b61029e6102ae366004612e1e565b6106a4565b6102bb6106f9565b60405161028d9190612e93565b6102db6102d6366004612ea6565b61078b565b6040516001600160a01b03909116815260200161028d565b61029e610301366004612ebf565b610820565b61029e610314366004612fb2565b610936565b61029e61032736600461305b565b610b93565b61028161033a366004612ea6565b6101386020526000908152604090205460ff1681565b61037161035e366004612ea6565b6101346020526000908152604090205481565b60405190815260200161028d565b61029e61038d36600461309c565b610bc4565b61029e6103a0366004612fb2565b610d6b565b61029e610f98565b61029e6103bb36600461305b565b610fcc565b61029e6103ce366004613158565b610fe7565b60975460ff16610281565b61029e611029565b6102db6103f4366004612ea6565b611071565b610371610407366004612e1e565b6110e8565b61029e61116f565b61029e610422366004612ea6565b6111a3565b610281610435366004612ea6565b6101326020526000908152604090205460ff1681565b61029e6111d3565b61029e6112ef565b60fb546001600160a01b03166102db565b6102bb611321565b610281610482366004612ea6565b611330565b61029e6104953660046131af565b61134f565b6103716104a8366004612ea6565b611415565b6103716104bb366004612ea6565b6101356020526000908152604090205481565b6102db6104dc366004612ea6565b610137602052600090815260409020546001600160a01b031681565b61029e6105063660046131e8565b611486565b6101305461028190610100900460ff1681565b610130546102819060ff1681565b61029e61053a366004612e1e565b6114be565b6102bb61054d366004612ea6565b61150b565b61029e610560366004613268565b6115bd565b61037161012e5481565b61037161057d366004612ea6565b6101366020526000908152604090205481565b61037161012f5481565b6103716105a8366004612ea6565b6101336020526000908152604090205481565b6102816105c936600461329d565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b61029e610605366004612e1e565b6116b7565b60006001600160e01b031982166380ac58cd60e01b148061063b57506001600160e01b03198216635b5e139f60e01b145b8061065657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60fb546001600160a01b0316331461068f5760405162461bcd60e51b8152600401610686906132cb565b60405180910390fd5b610130805460ff19811660ff90911615179055565b60fb546001600160a01b031633146106ce5760405162461bcd60e51b8152600401610686906132cb565b61013080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60606065805461070890613300565b80601f016020809104026020016040519081016040528092919081815260200182805461073490613300565b80156107815780601f1061075657610100808354040283529160200191610781565b820191906000526020600020905b81548152906001019060200180831161076457829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b03166108045760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610686565b506000908152606960205260409020546001600160a01b031690565b600061082b82611071565b9050806001600160a01b0316836001600160a01b031614156108995760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610686565b336001600160a01b03821614806108b557506108b581336105c9565b6109275760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610686565b610931838361174f565b505050565b6000858152610138602052604090205460ff161561098b5760405162461bcd60e51b815260206004820152601260248201527125b2bc903430b9903132b2b7103ab9b2b21760711b6044820152606401610686565b8042106109cf5760405162461bcd60e51b815260206004820152601260248201527122bc3834b932b21036b4b73a103a34b6b29760711b6044820152606401610686565b61013060029054906101000a90046001600160a01b03166001600160a01b0316610aa985858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051610aa39250610a4391503390889088908d90602001613376565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b906117bd565b6001600160a01b031614610af35760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610686565b60005b8251811015610b3357610b21838281518110610b1457610b146133c9565b60200260200101516117e1565b80610b2b816133f5565b915050610af6565b506000858152610138602052604090819020805460ff1916600117905551859033907f2b259f99ebaa0d2af453ddf879cec3d739c72579578bc730f5e042e4a6a2528890610b849086904290613410565b60405180910390a35050505050565b610b9d33826119ef565b610bb95760405162461bcd60e51b815260040161068690613432565b610931838383611ae6565b61013054610100900460ff16610c0e5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081e595d081cdd185c9d1959608a1b6044820152606401610686565b61012d5460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015610c5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c819190613483565b610cc85760405162461bcd60e51b815260206004820152601860248201527710dbdb9d1c9858dd081a5cc81b9bdd08185c1c1c9bdd995960421b6044820152606401610686565b8051825114610d115760405162461bcd60e51b8152602060048201526015602482015274082dadeeadce840c8decae640dcdee840dac2e8c6d605b1b6044820152606401610686565b60005b825181101561093157610d59838281518110610d3257610d326133c9565b6020026020010151838381518110610d4c57610d4c6133c9565b6020026020010151611c91565b80610d63816133f5565b915050610d14565b6000858152610138602052604090205460ff1615610dc05760405162461bcd60e51b815260206004820152601260248201527125b2bc903430b9903132b2b7103ab9b2b21760711b6044820152606401610686565b804210610e045760405162461bcd60e51b815260206004820152601260248201527122bc3834b932b21036b4b73a103a34b6b29760711b6044820152606401610686565b61013060029054906101000a90046001600160a01b03166001600160a01b0316610e7885858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051610aa39250610a4391503390889088908d906020016134a0565b6001600160a01b031614610ec25760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610686565b6101305460ff16610f075760405162461bcd60e51b815260206004820152600f60248201526e139bdd081e595d081cdd185c9d1959608a1b6044820152606401610686565b60005b8251811015610f4757610f35838281518110610f2857610f286133c9565b6020026020010151611efa565b80610f3f816133f5565b915050610f0a565b506000858152610138602052604090819020805460ff1916600117905551859033907f4e81b56f716218bcc36ea00b26cbff0f6759c87238460d354272913d0a4a0b5290610b849086904290613410565b60fb546001600160a01b03163314610fc25760405162461bcd60e51b8152600401610686906132cb565b610fca61202a565b565b61093183838360405180602001604052806000815250611486565b60fb546001600160a01b031633146110115760405162461bcd60e51b8152600401610686906132cb565b805161102590610131906020840190612d36565b5050565b60fb546001600160a01b031633146110535760405162461bcd60e51b8152600401610686906132cb565b610130805461ff001981166101009182900460ff1615909102179055565b6000818152606760205260408120546001600160a01b0316806106565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610686565b60006001600160a01b0382166111535760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610686565b506001600160a01b031660009081526068602052604090205490565b60fb546001600160a01b031633146111995760405162461bcd60e51b8152600401610686906132cb565b610fca60006120bd565b60fb546001600160a01b031633146111cd5760405162461bcd60e51b8152600401610686906132cb565b61012f55565b600054610100900460ff16806111ec575060005460ff16155b6112085760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff1615801561122a576000805461ffff19166101011790555b6112716040518060400160405280600a815260200169536b6f6f6c766572736560b01b8152506040518060400160405280600381526020016229a5ab60e91b81525061210f565b611279612196565b610130805462010000600160b01b03191675bc9eebf48b2b8b54f57d6c56f41882424d632ea700001790556212750061012f556000805261013660205260017f51d6fdb3121932cfc04bb42e8c5cc689745fb5fb74fc25ea8dd6f9b2090fe5545580156112ec576000805461ff00191690555b50565b60fb546001600160a01b031633146113195760405162461bcd60e51b8152600401610686906132cb565b610fca612211565b60606066805461070890613300565b6000818152606760205260408120546001600160a01b03161515610656565b6001600160a01b0382163314156113a85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610686565b336000818152606a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a35050565b6000818152610136602052604081205415801561144057506000828152610135602052604090205415155b1561145f5760008281526101356020526040902054610656904261352b565b6000828152610135602090815260408083205461013690925290912054610656919061352b565b61149033836119ef565b6114ac5760405162461bcd60e51b815260040161068690613432565b6114b88484848461228c565b50505050565b60fb546001600160a01b031633146114e85760405162461bcd60e51b8152600401610686906132cb565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152606760205260409020546060906001600160a01b031661158a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610686565b610131611596836122bf565b6040516020016115a792919061355e565b6040516020818303038152906040529050919050565b61012d5460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa15801561160c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116309190613483565b6116775760405162461bcd60e51b815260206004820152601860248201527710dbdb9d1c9858dd081a5cc81b9bdd08185c1c1c9bdd995960421b6044820152606401610686565b60005b8151811015611025576116a5828281518110611698576116986133c9565b60200260200101516123bd565b806116af816133f5565b91505061167a565b60fb546001600160a01b031633146116e15760405162461bcd60e51b8152600401610686906132cb565b6001600160a01b0381166117465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610686565b6112ec816120bd565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061178482611071565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008060006117cc858561254c565b915091506117d9816125bc565b509392505050565b6000818152610132602052604090205460ff16156118415760405162461bcd60e51b815260206004820152601960248201527f4c616e6420697320616c726561647920616374697661746564000000000000006044820152606401610686565b3361184b82611071565b6001600160a01b0316146118955760405162461bcd60e51b81526020600482015260116024820152704c616e64206973206e6f7420796f75727360781b6044820152606401610686565b60008181526101346020908152604080832054835261013390915290205481146119015760405162461bcd60e51b815260206004820152601b60248201527f54656e616e74206973206e6f7420796f7572207363686f6c61727a00000000006044820152606401610686565b600081815261013460209081526040808320548352610136909152902054156119655760405162461bcd60e51b815260206004820152601660248201527514d8da1bdb185c9e881a5cc81b9bdd081cdd185ad95960521b6044820152606401610686565b61012f54600082815261013460209081526040808320548352610135909152902054611991904261352b565b10156119d35760405162461bcd60e51b81526020600482015260116024820152704c616e64206973206e6f7420726561647960781b6044820152606401610686565b600090815261013260205260409020805460ff19166001179055565b6000818152606760205260408120546001600160a01b0316611a685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610686565b6000611a7383611071565b9050806001600160a01b0316846001600160a01b03161480611aae5750836001600160a01b0316611aa38461078b565b6001600160a01b0316145b80611ade57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611af982611071565b6001600160a01b031614611b615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610686565b6001600160a01b038216611bc35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610686565b611bce838383612777565b611bd960008261174f565b6001600160a01b0383166000908152606860205260408120805460019290611c0290849061352b565b90915550506001600160a01b0382166000908152606860205260408120805460019290611c30908490613605565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6109c4821115611cda5760405162461bcd60e51b815260206004820152601460248201527313db9b1e4811d95b995cda5cc8185b1b1bddd95960621b6044820152606401610686565b6109c4811115611d185760405162461bcd60e51b815260206004820152600960248201526804944203e20323530360bc1b6044820152606401610686565b33611d2282611071565b6001600160a01b031614611d715760405162461bcd60e51b8152602060048201526016602482015275139bdd081bdddb995c881bd9881d1a1a5cc81b185b9960521b6044820152606401610686565b60008181526101346020908152604080832054835261013390915290205481141580611db9575060008181526101346020908152604080832054835261013690915290205415155b611e055760405162461bcd60e51b815260206004820152601860248201527f4c616e6420697320616c7265616479206f6363757069656400000000000000006044820152606401610686565b61012d546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015611e5857600080fd5b505af1158015611e6c573d6000803e3d6000fd5b505050600083815261013360209081526040808320859055848352610134825280832086905585835261013582528083204290819055610136835281842084905561013783529281902080546001600160a01b031916339081179091559051928352859350917f62d896ebcef7ba3f63ba65ad054aff2abbaa9591a3ed3cd89ac07e1c4015a05f9101611409565b6109c4811115611f435760405162461bcd60e51b815260206004820152601460248201527313db9b1e4811d95b995cda5cc8185b1b1bddd95960621b6044820152606401610686565b61012d546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa158015611f8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb1919061361d565b6001600160a01b0316146120075760405162461bcd60e51b815260206004820152601e60248201527f596f7520646f6e2774206f776e2074686973205363686f6c61727a20494400006044820152606401610686565b6120113382612822565b61012e8054906000612022836133f5565b919050555050565b60975460ff166120735760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610686565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60fb80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff1680612128575060005460ff16155b6121445760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff16158015612166576000805461ffff19166101011790555b61216e61283c565b61217661283c565b61218083836128a6565b8015610931576000805461ff0019169055505050565b600054610100900460ff16806121af575060005460ff16155b6121cb5760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff161580156121ed576000805461ffff19166101011790555b6121f561283c565b6121fd61293b565b80156112ec576000805461ff001916905550565b60975460ff16156122575760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610686565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120a03390565b612297848484611ae6565b6122a38484848461299b565b6114b85760405162461bcd60e51b81526004016106869061363a565b6060816122e35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561230d57806122f7816133f5565b91506123069050600a836136a2565b91506122e7565b60008167ffffffffffffffff81111561232857612328612eeb565b6040519080825280601f01601f191660200182016040528015612352576020820181803683370190505b5090505b8415611ade5761236760018361352b565b9150612374600a866136b6565b61237f906030613605565b60f81b818381518110612394576123946133c9565b60200101906001600160f81b031916908160001a9053506123b6600a866136a2565b9450612356565b600081815261013760205260409020546001600160a01b031633146124245760405162461bcd60e51b815260206004820152601a60248201527f4e6f74206f776e6572206f662074686973205363686f6c61727a0000000000006044820152606401610686565b61012d546040516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561247757600080fd5b505af115801561248b573d6000803e3d6000fd5b50505060008281526101366020526040902054151590506124e957600081815261013360209081526040808320805484526101328352818420805460ff19169055548352610134825280832083905583835261013690915290204290555b60008181526101336020908152604080832083905561013782529182902080546001600160a01b03191690559051428152829133917f0f0f7f8153c6d63a5696720d4cc434e56bb5ac1cf8c791ed9c180defb6e92153910160405180910390a350565b6000808251604114156125835760208301516040840151606085015160001a61257787828585612a99565b945094505050506125b5565b8251604014156125ad57602083015160408401516125a2868383612b86565b9350935050506125b5565b506000905060025b9250929050565b60008160048111156125d0576125d06136ca565b14156125d95750565b60018160048111156125ed576125ed6136ca565b141561263b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610686565b600281600481111561264f5761264f6136ca565b141561269d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610686565b60038160048111156126b1576126b16136ca565b141561270a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610686565b600481600481111561271e5761271e6136ca565b14156112ec5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610686565b60975460ff16156127bd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610686565b6001600160a01b0383161561093157600081815261013260209081526040808320805460ff1916905561013482528083205483526101369091529020546109315760009081526101346020908152604080832054835261013690915290204290555050565b611025828260405180602001604052806000815250612bb5565b600054610100900460ff1680612855575060005460ff16155b6128715760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff161580156121fd576000805461ffff191661010117905580156112ec576000805461ff001916905550565b600054610100900460ff16806128bf575060005460ff16155b6128db5760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff161580156128fd576000805461ffff19166101011790555b8251612910906065906020860190612d36565b508151612924906066906020850190612d36565b508015610931576000805461ff0019169055505050565b600054610100900460ff1680612954575060005460ff16155b6129705760405162461bcd60e51b8152600401610686906134dd565b600054610100900460ff16158015612992576000805461ffff19166101011790555b6121fd336120bd565b60006001600160a01b0384163b15612a8e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129df9033908990889088906004016136e0565b6020604051808303816000875af1925050508015612a1a575060408051601f3d908101601f19168201909252612a179181019061371d565b60015b612a74573d808015612a48576040519150601f19603f3d011682016040523d82523d6000602084013e612a4d565b606091505b508051612a6c5760405162461bcd60e51b81526004016106869061363a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ade565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ad05750600090506003612b7d565b8460ff16601b14158015612ae857508460ff16601c14155b15612af95750600090506004612b7d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612b4d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612b7657600060019250925050612b7d565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612ba787828885612a99565b935093505050935093915050565b612bbf8383612be8565b612bcc600084848461299b565b6109315760405162461bcd60e51b81526004016106869061363a565b6001600160a01b038216612c3e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610686565b6000818152606760205260409020546001600160a01b031615612ca35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610686565b612caf60008383612777565b6001600160a01b0382166000908152606860205260408120805460019290612cd8908490613605565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612d4290613300565b90600052602060002090601f016020900481019282612d645760008555612daa565b82601f10612d7d57805160ff1916838001178555612daa565b82800160010185558215612daa579182015b82811115612daa578251825591602001919060010190612d8f565b50612db6929150612dba565b5090565b5b80821115612db65760008155600101612dbb565b6001600160e01b0319811681146112ec57600080fd5b600060208284031215612df757600080fd5b8135612e0281612dcf565b9392505050565b6001600160a01b03811681146112ec57600080fd5b600060208284031215612e3057600080fd5b8135612e0281612e09565b60005b83811015612e56578181015183820152602001612e3e565b838111156114b85750506000910152565b60008151808452612e7f816020860160208601612e3b565b601f01601f19169290920160200192915050565b602081526000612e026020830184612e67565b600060208284031215612eb857600080fd5b5035919050565b60008060408385031215612ed257600080fd5b8235612edd81612e09565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612f2a57612f2a612eeb565b604052919050565b600082601f830112612f4357600080fd5b8135602067ffffffffffffffff821115612f5f57612f5f612eeb565b8160051b612f6e828201612f01565b9283528481018201928281019087851115612f8857600080fd5b83870192505b84831015612fa757823582529183019190830190612f8e565b979650505050505050565b600080600080600060808688031215612fca57600080fd5b85359450602086013567ffffffffffffffff80821115612fe957600080fd5b818801915088601f830112612ffd57600080fd5b81358181111561300c57600080fd5b89602082850101111561301e57600080fd5b60208301965080955050604088013591508082111561303c57600080fd5b5061304988828901612f32565b95989497509295606001359392505050565b60008060006060848603121561307057600080fd5b833561307b81612e09565b9250602084013561308b81612e09565b929592945050506040919091013590565b600080604083850312156130af57600080fd5b823567ffffffffffffffff808211156130c757600080fd5b6130d386838701612f32565b935060208501359150808211156130e957600080fd5b506130f685828601612f32565b9150509250929050565b600067ffffffffffffffff83111561311a5761311a612eeb565b61312d601f8401601f1916602001612f01565b905082815283838301111561314157600080fd5b828260208301376000602084830101529392505050565b60006020828403121561316a57600080fd5b813567ffffffffffffffff81111561318157600080fd5b8201601f8101841361319257600080fd5b611ade84823560208401613100565b80151581146112ec57600080fd5b600080604083850312156131c257600080fd5b82356131cd81612e09565b915060208301356131dd816131a1565b809150509250929050565b600080600080608085870312156131fe57600080fd5b843561320981612e09565b9350602085013561321981612e09565b925060408501359150606085013567ffffffffffffffff81111561323c57600080fd5b8501601f8101871361324d57600080fd5b61325c87823560208401613100565b91505092959194509250565b60006020828403121561327a57600080fd5b813567ffffffffffffffff81111561329157600080fd5b611ade84828501612f32565b600080604083850312156132b057600080fd5b82356132bb81612e09565b915060208301356131dd81612e09565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061331457607f821691505b6020821081141561333557634e487b7160e01b600052602260045260246000fd5b50919050565b600081518084526020808501945080840160005b8381101561336b5781518752958201959082019060010161334f565b509495945050505050565b60018060a01b038516815260a06020820152600860a082015267616374697661746560c01b60c082015260e0604082015260006133b660e083018661333b565b6060830194909452506080015292915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613409576134096133df565b5060010190565b604081526000613423604083018561333b565b90508260208301529392505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60006020828403121561349557600080fd5b8151612e02816131a1565b60018060a01b038516815260a06020820152600560a082015264636c61696d60d81b60c082015260e0604082015260006133b660e083018661333b565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60008282101561353d5761353d6133df565b500390565b60008151613554818560208601612e3b565b9290920192915050565b600080845481600182811c91508083168061357a57607f831692505b602080841082141561359a57634e487b7160e01b86526022600452602486fd5b8180156135ae57600181146135bf576135ec565b60ff198616895284890196506135ec565b60008b81526020902060005b868110156135e45781548b8201529085019083016135cb565b505084890196505b5050505050506135fc8185613542565b95945050505050565b60008219821115613618576136186133df565b500190565b60006020828403121561362f57600080fd5b8151612e0281612e09565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826136b1576136b161368c565b500490565b6000826136c5576136c561368c565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061371390830184612e67565b9695505050505050565b60006020828403121561372f57600080fd5b8151612e0281612dcf56fea2646970667358221220652072b1c3301dd3f8f37cd83626e6efcd67d36391de07326b9a62ad99ee616164736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.