Skip to content

Conversation

@whankinsiv
Copy link
Collaborator

This PR implements the placeholder handle_tx_certificates function to process and store historical registration, delegation, and MIR history by stake address. It contributes toward #256 and adds state support for:

  • /accounts/{stake_address}/registrations
  • /accounts/{stake_address}/delegations
  • /accounts/{stake_address}/mirs

Main changes:

  • Expanded certificate messages to {Type}WithPos wrappers in tx_unpacker to include TxIdentifier for historical tracking.
  • Implemented handle_tx_certificates, which now processes all relevant certificate types via helper methods (handle_stake_registration_change, handle_stake_delegation, and handle_mir).
  • Added get_registration_history, get_delegation_history, and get_mir_history to HistoricalAccountsState for aggregated retrieval from both volatile and immutable state.
  • Added query handlers for GetAccountRegistrationHistory, GetAccountDelegationHistory, and GetAccountMIRHistory.

Next steps:

  • A follow up PR will extend the rest_blockfrost module with REST handlers for the 3 endpoints listed above.

@whankinsiv whankinsiv changed the title historical_accounts_state certificate processing Historical accounts state certificate processing Oct 22, 2025
Signed-off-by: William Hankins <[email protected]>
Signed-off-by: William Hankins <[email protected]>
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.

2 participants