-
Notifications
You must be signed in to change notification settings - Fork 86
/
ILandMetadataRegistry.sol
32 lines (26 loc) · 1.33 KB
/
ILandMetadataRegistry.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title ILandMetadataRegistry
/// @notice Interface implemented by the LandMetadataRegistry
interface ILandMetadataRegistry {
/// @notice return the metadata for one land
/// @param tokenId the token id
/// @return premium true if the land is premium
/// @return neighborhoodId the number that identifies the neighborhood
/// @return neighborhoodName the neighborhood name
function getMetadata(
uint256 tokenId
) external view returns (bool premium, uint256 neighborhoodId, string memory neighborhoodName);
/// @notice return true if a land is premium
/// @param tokenId the token id
function isPremium(uint256 tokenId) external view returns (bool);
/// @notice return the id that identifies the neighborhood
/// @param tokenId the token id
function getNeighborhoodId(uint256 tokenId) external view returns (uint256);
/// @notice return the neighborhood name
/// @param tokenId the token id
function getNeighborhoodName(uint256 tokenId) external view returns (string memory);
/// @notice return the neighborhood name using neighborhood id as the key
/// @param neighborhoodId the number that identifies the neighborhood
function getNeighborhoodNameForId(uint256 neighborhoodId) external view returns (string memory);
}