-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d45ca4
commit fc43c29
Showing
3 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
/// @title IPlasaView Interface | ||
/// @dev This interface defines the functions for viewing Plasa data. | ||
interface IPlasaView { | ||
/// @notice Struct to hold Plasa data. | ||
/// @param contractAddress The address of the Plasa contract. | ||
/// @param namesContract The address of the Names contract. | ||
struct PlasaData { | ||
address contractAddress; | ||
address namesContract; | ||
} | ||
|
||
/// @notice Struct to hold Plasa user data. | ||
/// @param isRegistered Whether the user is registered. | ||
/// @param username The username of the user. | ||
struct PlasaUser { | ||
bool isRegistered; | ||
string username; | ||
} | ||
|
||
/// @notice Struct to hold Plasa view data. | ||
/// @param data The Plasa data. | ||
/// @param user The Plasa user data. | ||
struct PlasaView { | ||
PlasaData data; | ||
PlasaUser user; | ||
} | ||
|
||
/// @notice Retrieves the Plasa view data. | ||
/// @return PlasaView The Plasa view data. | ||
function getPlasaView() external view returns (PlasaView memory); | ||
} |