-
Notifications
You must be signed in to change notification settings - Fork 720
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
More API updates for the Allegra and Mary eras #2111
Merged
Merged
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
fc87d88
Generalise toShelleyStakeAddr to work for any ledger era
dcoutts 12fd233
Move and generalise toShelley{Metadata,MetadataHash} functions
dcoutts b10061d
Generalise toShelleyWithdrawal over all ledger eras
dcoutts 1d32e24
Move toShelleyUpdate to the ProtocolParameters module
dcoutts 3225463
Change type of Praos extra entropy update parameter
dcoutts dfdb712
Add functions to convert from Shelley update proposal types
dcoutts 73a6ebf
Change representation of UpdateProposal to use the API types
dcoutts 9fff1ad
Export UpdateProposal and protocol params from the API
dcoutts e9b2245
Generalise to/fromShelleyUpdate over all ledger eras
dcoutts e29ce3c
Change the API's stake pool metadata URL type to match ledger type
dcoutts 92b8158
Add a fromShelleyPoolParams to allow conversion both ways
dcoutts 1354aa3
Add to/fromShelleyCertificate conversion functions
dcoutts c026892
Change certificate representation to use surface types
dcoutts e85ad6e
Generalise the toShelley*Credential functions for all eras
dcoutts eb6ea84
Generalise to/fromShelleyCertificate over all eras
dcoutts f095db2
Generalise toShelley{TxId,TxIn,TxOut} over all ledger eras
dcoutts 7a9cd1f
Use single Eq, Show and HasTypeProxy instance for TxBody
dcoutts afa2961
Use single SerialiseAsCBOR and HasTextEnvelope instance for TxBody
dcoutts 580e50c
Initial step to generalise makeShelleyTransaction over other eras
dcoutts 630f02d
Switch TxBody from Shelley-specific type to era-dependent
dcoutts 67b78cf
Generalise the ShelleyTxBody representation over multiple eras
dcoutts 134403f
Generalise several tx and witness functions over eras
dcoutts b54ad58
Extend TxBody serialisation to the Allegra and Mary eras
dcoutts 49edfcb
Partially fill in makeShelleyTransaction for the Allegra & Mary eras
dcoutts ea18858
Add to/fromShelleyScriptHash and use them
dcoutts 4b476ce
Add to/fromMaryValue for converting the Value type
dcoutts f6db51c
Cover the multi-asset case in toShelleyTxOut
dcoutts 844dde7
Adjust the sort order of Value entries
dcoutts eaa770e
Move toByronLovelace and TxIn/TxOut declarations
dcoutts dde3664
Move TxOutValue and MintValue types to TxBody module
dcoutts ee54b49
Make hlint suggestions
intricate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nice 👍.
I'm slightly concerned that someone reading through the types will be confused, but doc like this should help.