Skip to content
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

Implements ToCanonicalJson for protocol parameters #461

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Quantumplation
Copy link
Collaborator

This is a bit tedious, so if you have suggestions to improve it, please let me know!

This implements the ability to serialize a MultiEraProtocolParameters object to a json format that matches that used by ogmios:

https://ogmios.dev/api/#operation-subscribe-/?QueryLedgerStateProtocolParameters

It also tries to document a bit how some of these are represented / interpreted.

@Quantumplation
Copy link
Collaborator Author

(Also, @scarmuega if there's a FromCanonicalJson, or an easy way to do the inverse of this, please let me know :D)

@Quantumplation Quantumplation force-pushed the pi/pparams_to_canonical_json branch from 20455f9 to c4b05a9 Compare May 19, 2024 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant