Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | None |
Language | GHC2021 |
GeniusYield.Types.Certificate
Description
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.
Constructors
Instances
Show GYCertificatePreBuild # | |
Defined in GeniusYield.Types.Certificate Methods showsPrec :: Int -> GYCertificatePreBuild -> ShowS # show :: GYCertificatePreBuild -> String # showList :: [GYCertificatePreBuild] -> ShowS # | |
Eq GYCertificatePreBuild # | |
Defined in GeniusYield.Types.Certificate Methods (==) :: GYCertificatePreBuild -> GYCertificatePreBuild -> Bool # (/=) :: GYCertificatePreBuild -> GYCertificatePreBuild -> Bool # | |
Ord GYCertificatePreBuild # | |
Defined in GeniusYield.Types.Certificate Methods compare :: GYCertificatePreBuild -> GYCertificatePreBuild -> Ordering # (<) :: GYCertificatePreBuild -> GYCertificatePreBuild -> Bool # (<=) :: GYCertificatePreBuild -> GYCertificatePreBuild -> Bool # (>) :: GYCertificatePreBuild -> GYCertificatePreBuild -> Bool # (>=) :: GYCertificatePreBuild -> GYCertificatePreBuild -> Bool # max :: GYCertificatePreBuild -> GYCertificatePreBuild -> GYCertificatePreBuild # min :: GYCertificatePreBuild -> GYCertificatePreBuild -> GYCertificatePreBuild # |
data GYCertificate #
Certificate state after populating missing entries from GYCertificatePreBuild
.
Constructors
Instances
Show GYCertificate # | |
Defined in GeniusYield.Types.Certificate Methods showsPrec :: Int -> GYCertificate -> ShowS # show :: GYCertificate -> String # showList :: [GYCertificate] -> ShowS # | |
Eq GYCertificate # | |
Defined in GeniusYield.Types.Certificate Methods (==) :: GYCertificate -> GYCertificate -> Bool # (/=) :: GYCertificate -> GYCertificate -> Bool # | |
Ord GYCertificate # | |
Defined in GeniusYield.Types.Certificate Methods compare :: GYCertificate -> GYCertificate -> Ordering # (<) :: GYCertificate -> GYCertificate -> Bool # (<=) :: GYCertificate -> GYCertificate -> Bool # (>) :: GYCertificate -> GYCertificate -> Bool # (>=) :: GYCertificate -> GYCertificate -> Bool # max :: GYCertificate -> GYCertificate -> GYCertificate # min :: GYCertificate -> GYCertificate -> GYCertificate # |
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.