chore: refresh topics data from chain state - #177
Open
nickemmons wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for alloradocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
No issues found across 1 file
Architecture diagram
sequenceDiagram
participant Script as generateTopics.js
participant LCD as Testnet LCD API
participant LCD2 as Mainnet LCD API
participant File as public/api/topics.json
participant Page as Topics Page (Client)
Note over Script,Page: Topic Data Refresh Pipeline
Script->>LCD: GET /cosmos/emissions/v10/next_topic_id
Script->>LCD: GET /cosmos/emissions/v10/is_topic_active?ids=...
Script->>LCD: GET /cosmos/emissions/v10/topics
LCD-->>Script: topic IDs, active status, topic metadata
Script->>LCD2: GET /cosmos/emissions/v10/next_topic_id
Script->>LCD2: GET /cosmos/emissions/v10/is_topic_active?ids=...
Script->>LCD2: GET /cosmos/emissions/v10/topics
LCD2-->>Script: topic IDs, active status, topic metadata
Script->>File: Write JSON (generated_at, networks[], topics[])
Note right of Script: Includes 2 new testnet topics: id 4 (BTC 24h Prediction) and id 87 (24 hour xyz:GOLD Triple-Barrier Classification)
Client->>Page: Navigate to /topics
Page->>File: Fetch topics.json (static asset)
File-->>Page: JSON payload
Note over Page: Render topics table with active topic count (testnet: 41, mainnet: 58)
Page-->>Client: Display rendered topics
nickemmons
force-pushed
the
chore/refresh-topics-data
branch
8 times, most recently
from
August 13, 2026 04:38
db1bed2 to
c2bc9a7
Compare
nickemmons
force-pushed
the
chore/refresh-topics-data
branch
4 times, most recently
from
August 17, 2026 04:17
1fd7631 to
009ae29
Compare
nickemmons
force-pushed
the
chore/refresh-topics-data
branch
from
August 18, 2026 04:15
009ae29 to
9edd203
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Regenerated
public/api/topics.jsonfrom live testnet and mainnet chain state viascripts/generateTopics.js. The topics table on the Existing Allora Network Topics page renders from this file.Summary by cubic
Refreshes
public/api/topics.jsonfrom live chain state so the Existing Allora Network Topics page shows up-to-date testnet data.Written for commit 9edd203. Summary will update on new commits.