Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.

feat: Added TopicRepository to search topics and topic messages#167

Merged
hendrikebbers merged 3 commits into
OpenElements:mainfrom
manishdait:topic-repository
Apr 10, 2025
Merged

feat: Added TopicRepository to search topics and topic messages#167
hendrikebbers merged 3 commits into
OpenElements:mainfrom
manishdait:topic-repository

Conversation

@manishdait
Copy link
Copy Markdown
Contributor

This pull request introduces the TopicRepository interface and its implementation for interacting with the Mirror Node REST API to query topic information and messages.

Key Features Implemented:

  • findTopicById()
  • getMessaages()
  • getMessageBySequenceNumber()

Closes: #166

Signed-off-by: Manish Dait <daitmanish88@gmail.com>
Signed-off-by: Manish Dait <daitmanish88@gmail.com>

@NonNull
default JSON queryTopicById(TopicId topicId) throws HieroException {
System.out.println("/api/v1/topics/" + topicId);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the System.out.println ;)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Manish Dait <daitmanish88@gmail.com>
@hendrikebbers hendrikebbers merged commit 20ff854 into OpenElements:main Apr 10, 2025
3 of 4 checks passed
@manishdait manishdait deleted the topic-repository branch April 11, 2025 03:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide TopicRepository to query Information about Topic and TopicMessages

2 participants