Skip to content

chore: refresh topics data from chain state - #177

Open
nickemmons wants to merge 1 commit into
mainfrom
chore/refresh-topics-data
Open

chore: refresh topics data from chain state#177
nickemmons wants to merge 1 commit into
mainfrom
chore/refresh-topics-data

Conversation

@nickemmons

@nickemmons nickemmons commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Regenerated public/api/topics.json from live testnet and mainnet chain state via scripts/generateTopics.js. The topics table on the Existing Allora Network Topics page renders from this file.


Summary by cubic

Refreshes public/api/topics.json from live chain state so the Existing Allora Network Topics page shows up-to-date testnet data.

  • Sets generated_at to 2026-08-18T04:15:28Z.
  • Updates testnet active_topic_count to 41 (was 39); mainnet unchanged.
  • Adds testnet topic 39 "SOL/USD - 5min Volatility Prediction" (epoch_length 35, loss_method mse, category volatility) and topic 87 "24 hour xyz:GOLD (Hyperliquid) Triple-Barrier Classification" (epoch_length 60, loss_method focal, category price).

Written for commit 9edd203. Summary will update on new commits.

Review in cubic

@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploy Preview for alloradocs ready!

Name Link
🔨 Latest commit 9edd203
🔍 Latest deploy log https://app.netlify.com/projects/alloradocs/deploys/6a83dc64bb3515000892df30
😎 Deploy Preview https://deploy-preview-177--alloradocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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
Loading

Re-trigger cubic

@nickemmons
nickemmons force-pushed the chore/refresh-topics-data branch 8 times, most recently from db1bed2 to c2bc9a7 Compare August 13, 2026 04:38
@nickemmons
nickemmons force-pushed the chore/refresh-topics-data branch 4 times, most recently from 1fd7631 to 009ae29 Compare August 17, 2026 04:17
@nickemmons
nickemmons force-pushed the chore/refresh-topics-data branch from 009ae29 to 9edd203 Compare August 18, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant