Skip to content

feat: typed scenario loader, fee_stats serving, axum router bootstrap#287

Open
Tyler7x wants to merge 4 commits into
StellarCommons:mainfrom
Tyler7x:feat/tyler7x-issues-214-215-216-217
Open

feat: typed scenario loader, fee_stats serving, axum router bootstrap#287
Tyler7x wants to merge 4 commits into
StellarCommons:mainfrom
Tyler7x:feat/tyler7x-issues-214-215-216-217

Conversation

@Tyler7x
Copy link
Copy Markdown
Contributor

@Tyler7x Tyler7x commented May 30, 2026

Summary

  • Verifies normal.json has correct Horizon fee_stats shape (mode=100, p50=100, p90=200, p95=300, p99=500)
  • Adds Scenario, ScenarioFeeStats, FeeDistribution typed structs with load_scenario() that validates required fields
  • Adds HorizonMock::fee_stats_payload_validated() using typed deserialization for safe scenario serving
  • Bootstraps axum router with GET /fee_stats and GET /health routes via async serve(mock, port) function

Closes #214
Closes #215
Closes #216
Closes #217

…al.json fix

Closes StellarCommons#214
Closes StellarCommons#215
Closes StellarCommons#216
Closes StellarCommons#217

Co-Authored-By: Tyler7x <Tyler7x@users.noreply.github.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@Tyler7x Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant