Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data GYCertificatePreBuild
- = GYStakeAddressRegistrationCertificatePB !GYStakeCredential
- | GYStakeAddressDeregistrationCertificatePB !GYStakeCredential
- | GYStakeAddressDelegationCertificatePB !GYStakeCredential !GYDelegatee
- | GYStakeAddressRegistrationDelegationCertificatePB !GYStakeCredential !GYDelegatee
- | GYDRepRegistrationCertificatePB !(GYCredential 'GYKeyRoleDRep) !(Maybe GYAnchor)
- | GYDRepUpdateCertificatePB !(GYCredential 'GYKeyRoleDRep) !(Maybe GYAnchor)
- | GYDRepUnregistrationCertificatePB !(GYCredential 'GYKeyRoleDRep) !Natural
- | GYStakePoolRegistrationCertificatePB !GYPoolParams
- | GYStakePoolRetirementCertificatePB !(GYKeyHash 'GYKeyRoleStakePool) !GYEpochNo
- | GYCommitteeHotKeyAuthCertificatePB !(GYCredential 'GYKeyRoleColdCommittee) !(GYCredential 'GYKeyRoleHotCommittee)
- | GYCommitteeColdKeyResignationCertificatePB !(GYCredential 'GYKeyRoleColdCommittee) !(Maybe GYAnchor)
- data GYCertificate
- = GYStakeAddressRegistrationCertificate !Natural !GYStakeCredential
- | GYStakeAddressDeregistrationCertificate !Natural !GYStakeCredential
- | GYStakeAddressDelegationCertificate !GYStakeCredential !GYDelegatee
- | GYStakeAddressRegistrationDelegationCertificate !Natural !GYStakeCredential !GYDelegatee
- | GYDRepRegistrationCertificate !Natural !(GYCredential 'GYKeyRoleDRep) !(Maybe GYAnchor)
- | GYDRepUpdateCertificate !(GYCredential 'GYKeyRoleDRep) !(Maybe GYAnchor)
- | GYDRepUnregistrationCertificate !(GYCredential 'GYKeyRoleDRep) !Natural
- | GYStakePoolRegistrationCertificate !GYPoolParams
- | GYStakePoolRetirementCertificate !(GYKeyHash 'GYKeyRoleStakePool) !GYEpochNo
- | GYCommitteeHotKeyAuthCertificate !(GYCredential 'GYKeyRoleColdCommittee) !(GYCredential 'GYKeyRoleHotCommittee)
- | GYCommitteeColdKeyResignationCertificate !(GYCredential 'GYKeyRoleColdCommittee) !(Maybe GYAnchor)
- finaliseCert ∷ ApiProtocolParameters → GYCertificatePreBuild → GYCertificate
- certificateToApi ∷ GYCertificate → Certificate ApiEra
- certificateFromApiMaybe ∷ Certificate ApiEra → Maybe GYCertificate
- certificateToStakeCredential ∷ GYCertificate → GYStakeCredential
Documentation
data GYCertificatePreBuild #
Certificate state before building the transaction.
Instances
data GYCertificate #
Certificate state after populating missing entries from GYCertificatePreBuild
.
Instances
Show GYCertificate # | |
Defined in GeniusYield.Types.Certificate showsPrec ∷ Int → GYCertificate → ShowS # show ∷ GYCertificate → String # showList ∷ [GYCertificate] → ShowS # | |
Eq GYCertificate # | |
Defined in GeniusYield.Types.Certificate (==) ∷ GYCertificate → GYCertificate → Bool # (/=) ∷ GYCertificate → GYCertificate → Bool # | |
Ord GYCertificate # | |
Defined in GeniusYield.Types.Certificate compare ∷ GYCertificate → GYCertificate → Ordering # (<) ∷ GYCertificate → GYCertificate → Bool # (<=) ∷ GYCertificate → GYCertificate → Bool # (>) ∷ GYCertificate → GYCertificate → Bool # (>=) ∷ GYCertificate → GYCertificate → Bool # |
certificateToStakeCredential ∷ GYCertificate → GYStakeCredential #
This casts relevant credentials to stake credentials as that's how cardano-api treats these under the hood, which is nonetheless ugly.