-
Notifications
You must be signed in to change notification settings - Fork 23
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
Incorporate remaining ledger certificates #119
Commits on Jul 17, 2023
-
Introduce internal module Cardano.Api.ReexposeLedger. This module
imports cardano-ledger's Cardano.Ledger.Api module and other necessary modules from cardano-ledger Introduce external module Cardano.Api.Ledger. This module reexports Cardano.Api.ReexposeLedger with the aim of transitioning cardano-api (and cardano-cli) to be fully reliant on cardano-ledger-api
Configuration menu - View commit details
-
Copy full SHA for 58d7f3e - Browse repository at this point
Copy the full SHA 58d7f3eView commit details -
Redefine Certificate era to be a sum type of two data constructors:
ShelleyRelatedCertificate and ConwayCertificate. These wrap the data types exposed by cardano-ledger that correspond to the certificates of the aforementioned eras. Certificate era is also a GADT now.
Configuration menu - View commit details
-
Copy full SHA for 8a042a9 - Browse repository at this point
Copy the full SHA 8a042a9View commit details -
Introduce ConwayEraOnwards and AtMostBabbageEra GADTs in order to
resolve cardano-ledger's certificate related type families to the correct type given an era.
Configuration menu - View commit details
-
Copy full SHA for 517a6c6 - Browse repository at this point
Copy the full SHA 517a6c6View commit details -
Implement the following GADTs to be more explicit about the
different requirements of certificates across changing eras: StakeDelegationRequirements era StakePoolRegistrationRequirements era StakePoolRetirementRequirements era GenesisKeyDelegationRequirements era MirCertificateRequirements era DRepRegistrationRequirements era CommitteeHotKeyAuthorizationRequirements era CommitteeColdkeyResignationRequirements era DRepUnregistrationRequirements era In combination with the following GADTs: ConwayEraOnwards era and AtMostBabbageEra era. We inherit the type safety of the ledger's type families via the ConwayEraOnwards and AtMostBabbageEra GADTs.
Configuration menu - View commit details
-
Copy full SHA for e13f833 - Browse repository at this point
Copy the full SHA e13f833View commit details -
Configuration menu - View commit details
-
Copy full SHA for c53ef68 - Browse repository at this point
Copy the full SHA c53ef68View commit details -
Update HasTextEnvelope (Certificate era) instance
Add helper functions selectStakeCredential and filterUnRegCreds
Configuration menu - View commit details
-
Copy full SHA for ede3820 - Browse repository at this point
Copy the full SHA ede3820View commit details -
Expose new conway certificate constructor functions:
makeCommitteeColdkeyResignationCertificate makeCommitteeHotKeyAuthorizationCertificate makeDrepRegistrationCertificate makeDrepUnregistrationCertificate Re-export ledger types: MIRTarget MIRPot Import Cardano.Api.ReexposeLedger with the aim of consolidating all of the ledger modules cardano-api depends on. This will make it easier to hand off the cardano-api's ledger functionality to the ledger team.
Configuration menu - View commit details
-
Copy full SHA for 60640b8 - Browse repository at this point
Copy the full SHA 60640b8View commit details -
Propagate new Cardano.Api.ReexposeLedger module exports in
Cardano.Api.Certificate
Configuration menu - View commit details
-
Copy full SHA for e899efd - Browse repository at this point
Copy the full SHA e899efdView commit details -
Update CastEra Certificate instance to handle casting certificates from
Babbage to Conway
Configuration menu - View commit details
-
Copy full SHA for 0a8a62f - Browse repository at this point
Copy the full SHA 0a8a62fView commit details -
Configuration menu - View commit details
-
Copy full SHA for da9be77 - Browse repository at this point
Copy the full SHA da9be77View commit details