structs.sol

Overview

This file defines several Solidity data structures (structs) used for organizing and managing key pieces of data within the system. These structs provide a compact and efficient way to group related variables, enabling consistent handling of message metadata and token-related information. The file does not contain executable logic or contract definitions but serves as a foundational module for representing structured data in other parts of the application.

Structs

MessageInfo

Represents metadata about a specific message, primarily identified by a hash and an expiration timestamp.


EccToken

Encapsulates information about a token, including identification, precision, supply, and description.


EccData

Combines an EccToken instance with a timestamp, likely to represent a snapshot or event related to the token.


Implementation Details

Interactions with Other Parts of the System

Structure Diagram

classDiagram
class MessageInfo {
+uint256 messageHash
+uint32 expireAt
}
class EccToken {
+uint32 key
+string name
+uint64 decimals
+uint64 baseMinted
+string description
}
class EccData {
+EccToken data
+uint32 time
}
EccData --> EccToken : contains