-
Notifications
You must be signed in to change notification settings - Fork 3
feat: impl pools historical and spo endpoints #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: impl pools historical and spo endpoints #187
Conversation
- Introduced struct to encapsulate live stake data. - Implemented method in to calculate live stake metrics.
…pl-pools-historical-spo-endpoints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The REST handlers look good but I would like to see blocks stored in spo_state
instead of relying on epoch_state
. Please add a config option store-blocks
to spo_state
with an optional subscription to cardano.block.header
and expand HistoricalSPOState
to store these hashes.
- fix handle_mint on epochs_state to handle block mint even when vrf_vkey is none
- remove block_hashes from epoch_state
…_id map - added test cases for block hashes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few more comments about the block related query in epoch_state
and a typo in the const definition.
🎯 Implement Pool Historical and SPO endpoints
This PR implements SPO (Stake Pool Operator) historical data endpoints, and SPO Endpoint for single pool's detailed information.
✨ Key Features
New Endpoints Implemented:
/pools/{pool_id}
- Comprehensive pool details including live stake, delegators, registration and retirement history, etc...New Data Structures:
PoolInfoRest
: Complete pool information response structurePoolLiveStakeInfo
: Live stake metrics and delegator countsPoolUpdateAction
: Enhanced enum for pool update actions (Registered, Deregistered, etc.)🧪 Testing