Skip to content

Conversation

whankinsiv
Copy link
Collaborator

This PR:

  • Aligns ProtocolParamsRest fields with Blockfrost /epochs/*/parameters response format (except the nonce field which will be implemented in a later PR in epoch_activity_counter).
  • Implements handle_epoch_params_blockfrost for /epochs/latest/parameters and /epochs/{number}/parameters.
  • Registers placeholder REST handlers for all Blockfrost /epochs/* endpoints.
  • Adds cost_models.rs defining static arrays for Plutus V1/V2/V3 cost model parameter names.
  • Removes the unused active_epoch field from State.

@@ -0,0 +1,646 @@
pub static PLUTUS_V1: &[&str] = &[
Copy link
Collaborator

Choose a reason for hiding this comment

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

Well done for mapping all these! It occurs to me at some point we will need to implement the fee calculation using them (shudder!) so we might need to pull this back into the common types and have them explicitly named in the parameters structures. But that's for the future...

@sandtreader
Copy link
Collaborator

Good work! Just one redundant info!() and conflict fix and it's good to go.

@whankinsiv whankinsiv merged commit 8951137 into main Sep 5, 2025
2 checks passed
@whankinsiv whankinsiv deleted the whankinsiv/parameters-endpoints branch September 10, 2025 20:46
buddhisthead pushed a commit that referenced this pull request Oct 10, 2025
…dpoints

feat: rest_blockfrost parameters endpoints
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.

3 participants