Overview
TUNA provides strongly-typed interfaces for all data structures used in the platform. These types ensure type safety when working with articles, comments, and Walrus content.NewsArticle
Represents a news article in the TUNA platform.Required Fields
Unique identifier for the article
Walrus blob ID containing the full article content
Article title
Article category (e.g., ‘DeFi’, ‘Gaming’, ‘NFT’, ‘Dev’, ‘Governance’, ‘General’)
The source of the article
Unix timestamp when the article was published
Total tips received in MIST (1 SUI = 1,000,000,000 MIST)
Number of tips received
Number of comments on the article
Optional Fields
Full article content (fetched from Walrus)
Article summary or excerpt
Original article URL (for RSS/Twitter sources)
Article featured image URL
Article author name
Comment
Represents a comment on an article.Required Fields
Unique identifier for the comment
The article blob ID this comment belongs to
Wallet address of the comment author
Preview text of the comment (up to 280 characters)
Walrus blob ID for long text or media content (null for short text comments)
Type of comment:
text: Short text comment (≤280 chars)text_long: Long text comment stored in Walrusmedia: Comment with attached media (images/videos)
Unix timestamp when the comment was posted
Total tips received in MIST
Optional Fields
ArticleEngagement
Aggregated engagement metrics for an article.Total tips received in MIST
Number of tips received
Number of comments
WalrusArticleContent
Structure for article content stored in Walrus.Article title
Full article content (can be HTML or plain text)
Article source identifier
Unix timestamp
Article summary
Original article URL
Article image URL
Author name
WalrusCommentContent
Structure for comment content stored in Walrus.Full comment text
Unix timestamp when the comment was created
Array of media attachments (for media-type comments)
