-
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
6cab2be
commit 48720ed
Showing
2 changed files
with
62 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
interface IStampView { | ||
enum StampType { | ||
Null, | ||
AccountOwnership, | ||
FollowerSince | ||
} | ||
|
||
struct StampData { | ||
address contractAddress; | ||
StampType stampType; | ||
string name; | ||
string symbol; | ||
string platform; | ||
uint256 totalSupply; | ||
} | ||
|
||
struct StampUser { | ||
bool owns; | ||
uint256 stampId; | ||
uint256 mintingTimestamp; | ||
} | ||
|
||
struct Stamp { | ||
StampData data; | ||
StampUser user; | ||
} | ||
|
||
struct FollowerSinceStampData { | ||
StampData stampData; | ||
address followedAccount; | ||
string space; | ||
} | ||
|
||
struct FollowerSinceStampUser { | ||
StampUser stampUser; | ||
uint256 followTimestamp; | ||
uint256 timeSinceFollow; | ||
} | ||
|
||
struct FollowerSinceStamp { | ||
FollowerSinceStampData data; | ||
FollowerSinceStampUser user; | ||
} | ||
|
||
struct AccountOwnershipStamp { | ||
Stamp stamp; | ||
string userUsername; | ||
} | ||
|
||
struct StampView { | ||
Stamp[] stamps; | ||
FollowerSinceStamp[] followerSinceStamps; | ||
AccountOwnershipStamp[] accountOwnershipStamps; | ||
} | ||
|
||
function getStampView(address user) external view returns (StampView memory); | ||
} |