cardano-api:internal
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.ReexposeLedger

Synopsis

Documentation

data Credential (kr :: KeyRole) c Source #

Script hash or key hash for a payment or a staking object.

Note that credentials (unlike raw key hashes) do appear to vary from era to era, since they reference the hash of a script, which can change. This parameter is a phantom, however, so in actuality the instances will remain the same.

Constructors

ScriptHashObj !(ScriptHash c) 
KeyHashObj !(KeyHash kr c) 

Instances

Instances details
HasKeyRole Credential 
Instance details

Defined in Cardano.Ledger.Credential

Methods

coerceKeyRole :: forall (r :: KeyRole) c (r' :: KeyRole). Credential r c -> Credential r' c Source #

Crypto c => FromJSON (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

parseJSON :: Value -> Parser (Credential kr c) #

parseJSONList :: Value -> Parser [Credential kr c] #

omittedField :: Maybe (Credential kr c) #

Crypto c => FromJSONKey (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

fromJSONKey :: FromJSONKeyFunction (Credential kr c)

fromJSONKeyList :: FromJSONKeyFunction [Credential kr c]

Crypto c => ToJSON (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

toJSON :: Credential kr c -> Value #

toEncoding :: Credential kr c -> Encoding #

toJSONList :: [Credential kr c] -> Value #

toEncodingList :: [Credential kr c] -> Encoding #

omitField :: Credential kr c -> Bool #

Crypto c => ToJSONKey (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

toJSONKey :: ToJSONKeyFunction (Credential kr c)

toJSONKeyList :: ToJSONKeyFunction [Credential kr c]

Generic (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

type Rep (Credential kr c) = D1 ('MetaData "Credential" "Cardano.Ledger.Credential" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "ScriptHashObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ScriptHash c))) :+: C1 ('MetaCons "KeyHashObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash kr c))))

Methods

from :: Credential kr c -> Rep (Credential kr c) x Source #

to :: Rep (Credential kr c) x -> Credential kr c Source #

Show (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

(Typeable kr, Crypto c) => FromCBOR (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

(Typeable kr, Crypto c) => ToCBOR (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

toCBOR :: Credential kr c -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Credential kr c) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Credential kr c] -> Size Source #

(Typeable kr, Crypto c) => DecCBOR (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

(Typeable kr, Crypto c) => EncCBOR (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

encCBOR :: Credential kr c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (Credential kr c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Credential kr c] -> Size Source #

Crypto e => Default (Credential r e) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

def :: Credential r e #

NFData (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnf :: Credential kr c -> () Source #

Eq (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

(==) :: Credential kr c -> Credential kr c -> Bool Source #

(/=) :: Credential kr c -> Credential kr c -> Bool Source #

Ord (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

compare :: Credential kr c -> Credential kr c -> Ordering Source #

(<) :: Credential kr c -> Credential kr c -> Bool Source #

(<=) :: Credential kr c -> Credential kr c -> Bool Source #

(>) :: Credential kr c -> Credential kr c -> Bool Source #

(>=) :: Credential kr c -> Credential kr c -> Bool Source #

max :: Credential kr c -> Credential kr c -> Credential kr c Source #

min :: Credential kr c -> Credential kr c -> Credential kr c Source #

NoThunks (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

noThunks :: Context -> Credential kr c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Credential kr c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (Credential kr c) -> String #

type Rep (Credential kr c) 
Instance details

Defined in Cardano.Ledger.Credential

type Rep (Credential kr c) = D1 ('MetaData "Credential" "Cardano.Ledger.Credential" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "ScriptHashObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ScriptHash c))) :+: C1 ('MetaCons "KeyHashObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash kr c))))

credToText :: forall (kr :: KeyRole) c. Credential kr c -> Text Source #

newtype KeyHash (discriminator :: KeyRole) c Source #

Discriminated hash of public Key

Constructors

KeyHash 

Fields

Instances

Instances details
HasKeyRole KeyHash 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

coerceKeyRole :: forall (r :: KeyRole) c (r' :: KeyRole). KeyHash r c -> KeyHash r' c Source #

Crypto c => FromJSON (KeyHash disc c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

parseJSON :: Value -> Parser (KeyHash disc c) #

parseJSONList :: Value -> Parser [KeyHash disc c] #

omittedField :: Maybe (KeyHash disc c) #

Crypto c => FromJSONKey (KeyHash disc c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

fromJSONKey :: FromJSONKeyFunction (KeyHash disc c)

fromJSONKeyList :: FromJSONKeyFunction [KeyHash disc c]

Crypto c => ToJSON (KeyHash disc c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

toJSON :: KeyHash disc c -> Value #

toEncoding :: KeyHash disc c -> Encoding #

toJSONList :: [KeyHash disc c] -> Value #

toEncodingList :: [KeyHash disc c] -> Encoding #

omitField :: KeyHash disc c -> Bool #

Crypto c => ToJSONKey (KeyHash disc c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

toJSONKey :: ToJSONKeyFunction (KeyHash disc c)

toJSONKeyList :: ToJSONKeyFunction [KeyHash disc c]

Generic (KeyHash discriminator c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Associated Types

type Rep (KeyHash discriminator c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (KeyHash discriminator c) = Rep (Hash (ADDRHASH c) (VerKeyDSIGN (DSIGN c)))

Methods

from :: KeyHash discriminator c -> Rep (KeyHash discriminator c) x Source #

to :: Rep (KeyHash discriminator c) x -> KeyHash discriminator c Source #

Show (KeyHash discriminator c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

showsPrec :: Int -> KeyHash discriminator c -> ShowS Source #

show :: KeyHash discriminator c -> String Source #

showList :: [KeyHash discriminator c] -> ShowS Source #

(Crypto c, Typeable disc) => FromCBOR (KeyHash disc c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

fromCBOR :: Decoder s (KeyHash disc c) Source #

label :: Proxy (KeyHash disc c) -> Text Source #

(Crypto c, Typeable disc) => ToCBOR (KeyHash disc c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

toCBOR :: KeyHash disc c -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (KeyHash disc c) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [KeyHash disc c] -> Size Source #

(Crypto c, Typeable disc) => DecCBOR (KeyHash disc c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

decCBOR :: Decoder s (KeyHash disc c) Source #

dropCBOR :: Proxy (KeyHash disc c) -> Decoder s () Source #

label :: Proxy (KeyHash disc c) -> Text Source #

(Crypto c, Typeable disc) => EncCBOR (KeyHash disc c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

encCBOR :: KeyHash disc c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (KeyHash disc c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [KeyHash disc c] -> Size Source #

Crypto b => Default (KeyHash a b) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

def :: KeyHash a b #

NFData (KeyHash discriminator c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

rnf :: KeyHash discriminator c -> () Source #

Eq (KeyHash discriminator c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

(==) :: KeyHash discriminator c -> KeyHash discriminator c -> Bool Source #

(/=) :: KeyHash discriminator c -> KeyHash discriminator c -> Bool Source #

Ord (KeyHash discriminator c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

compare :: KeyHash discriminator c -> KeyHash discriminator c -> Ordering Source #

(<) :: KeyHash discriminator c -> KeyHash discriminator c -> Bool Source #

(<=) :: KeyHash discriminator c -> KeyHash discriminator c -> Bool Source #

(>) :: KeyHash discriminator c -> KeyHash discriminator c -> Bool Source #

(>=) :: KeyHash discriminator c -> KeyHash discriminator c -> Bool Source #

max :: KeyHash discriminator c -> KeyHash discriminator c -> KeyHash discriminator c Source #

min :: KeyHash discriminator c -> KeyHash discriminator c -> KeyHash discriminator c Source #

NoThunks (KeyHash discriminator c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

noThunks :: Context -> KeyHash discriminator c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> KeyHash discriminator c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (KeyHash discriminator c) -> String #

type Rep (KeyHash discriminator c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (KeyHash discriminator c) = Rep (Hash (ADDRHASH c) (VerKeyDSIGN (DSIGN c)))

data KeyRole Source #

The role of a key.

Note that a role is not _fixed_, nor is it unique. In particular, keys may variously be used as witnesses, and so in many case we will change the role of a key to the Witness role.

It is also perfectly allowable for a key to be used in many roles; there is nothing prohibiting somebody using the same underlying key as their payment and staking key, as well as the key for their stake pool. So these roles are more intended for two purposes:

  • To make explicit how we are using a key in the specifications
  • To provide a guide to downstream implementors, for whom the profusion of keys may be confusing.

Instances

Instances details
Show KeyRole 
Instance details

Defined in Cardano.Ledger.Keys.Internal

newtype VKey (kd :: KeyRole) c Source #

Discriminated verification key

We wrap the basic VerKeyDSIGN in order to add the key role.

Constructors

VKey 

Fields

Instances

Instances details
HasKeyRole VKey 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

coerceKeyRole :: forall (r :: KeyRole) c (r' :: KeyRole). VKey r c -> VKey r' c Source #

Crypto c => ToJSON (VKey 'Witness c) Source # 
Instance details

Defined in Cardano.Api.Orphans

Methods

toJSON :: VKey 'Witness c -> Value #

toEncoding :: VKey 'Witness c -> Encoding #

toJSONList :: [VKey 'Witness c] -> Value #

toEncodingList :: [VKey 'Witness c] -> Encoding #

omitField :: VKey 'Witness c -> Bool #

Generic (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Associated Types

type Rep (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (VKey kd c) = D1 ('MetaData "VKey" "Cardano.Ledger.Keys.Internal" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "VKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VerKeyDSIGN (DSIGN c)))))

Methods

from :: VKey kd c -> Rep (VKey kd c) x Source #

to :: Rep (VKey kd c) x -> VKey kd c Source #

Crypto c => Show (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

showsPrec :: Int -> VKey kd c -> ShowS Source #

show :: VKey kd c -> String Source #

showList :: [VKey kd c] -> ShowS Source #

(Crypto c, Typeable kd) => FromCBOR (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

fromCBOR :: Decoder s (VKey kd c) Source #

label :: Proxy (VKey kd c) -> Text Source #

(Crypto c, Typeable kd) => ToCBOR (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

toCBOR :: VKey kd c -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (VKey kd c) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [VKey kd c] -> Size Source #

(Crypto c, Typeable kd) => DecCBOR (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

decCBOR :: Decoder s (VKey kd c) Source #

dropCBOR :: Proxy (VKey kd c) -> Decoder s () Source #

label :: Proxy (VKey kd c) -> Text Source #

(Crypto c, Typeable kd) => EncCBOR (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

encCBOR :: VKey kd c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (VKey kd c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [VKey kd c] -> Size Source #

(Crypto c, NFData (VerKeyDSIGN (DSIGN c))) => NFData (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

rnf :: VKey kd c -> () Source #

Crypto c => Eq (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

(==) :: VKey kd c -> VKey kd c -> Bool Source #

(/=) :: VKey kd c -> VKey kd c -> Bool Source #

Crypto c => NoThunks (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

noThunks :: Context -> VKey kd c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> VKey kd c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (VKey kd c) -> String #

type Rep (VKey kd c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (VKey kd c) = D1 ('MetaData "VKey" "Cardano.Ledger.Keys.Internal" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "VKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VerKeyDSIGN (DSIGN c)))))

data ShelleyTxCert era Source #

A heavyweight certificate.

Instances

Instances details
Era era => ToJSON (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

toJSON :: ShelleyTxCert era -> Value #

toEncoding :: ShelleyTxCert era -> Encoding #

toJSONList :: [ShelleyTxCert era] -> Value #

toEncodingList :: [ShelleyTxCert era] -> Encoding #

omitField :: ShelleyTxCert era -> Bool #

Generic (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (ShelleyTxCert era) = D1 ('MetaData "ShelleyTxCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) ((C1 ('MetaCons "ShelleyTxCertDelegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ShelleyDelegCert (EraCrypto era)))) :+: C1 ('MetaCons "ShelleyTxCertPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PoolCert (EraCrypto era))))) :+: (C1 ('MetaCons "ShelleyTxCertGenesisDeleg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (GenesisDelegCert (EraCrypto era)))) :+: C1 ('MetaCons "ShelleyTxCertMir" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MIRCert (EraCrypto era))))))

Methods

from :: ShelleyTxCert era -> Rep (ShelleyTxCert era) x Source #

to :: Rep (ShelleyTxCert era) x -> ShelleyTxCert era Source #

Show (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

(ShelleyEraTxCert era, TxCert era ~ ShelleyTxCert era) => FromCBOR (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Era era => ToCBOR (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

toCBOR :: ShelleyTxCert era -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (ShelleyTxCert era) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [ShelleyTxCert era] -> Size Source #

(ShelleyEraTxCert era, TxCert era ~ ShelleyTxCert era) => DecCBOR (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Era era => EncCBOR (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

encCBOR :: ShelleyTxCert era -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (ShelleyTxCert era) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [ShelleyTxCert era] -> Size Source #

NFData (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf :: ShelleyTxCert era -> () Source #

Eq (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Ord (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

noThunks :: Context -> ShelleyTxCert era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ShelleyTxCert era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ShelleyTxCert era) -> String #

type Rep (ShelleyTxCert era) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (ShelleyTxCert era) = D1 ('MetaData "ShelleyTxCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) ((C1 ('MetaCons "ShelleyTxCertDelegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ShelleyDelegCert (EraCrypto era)))) :+: C1 ('MetaCons "ShelleyTxCertPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PoolCert (EraCrypto era))))) :+: (C1 ('MetaCons "ShelleyTxCertGenesisDeleg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (GenesisDelegCert (EraCrypto era)))) :+: C1 ('MetaCons "ShelleyTxCertMir" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MIRCert (EraCrypto era))))))

data ShelleyDelegCert c Source #

Constructors

ShelleyRegCert !(StakeCredential c)

A stake credential registration certificate.

ShelleyUnRegCert !(StakeCredential c)

A stake credential deregistration certificate.

ShelleyDelegCert !(StakeCredential c) !(KeyHash 'StakePool c)

A stake delegation certificate.

Bundled Patterns

pattern DeRegKey :: StakeCredential c -> ShelleyDelegCert c 
pattern Delegate :: Delegation c -> ShelleyDelegCert c 
pattern RegKey :: StakeCredential c -> ShelleyDelegCert c 

Instances

Instances details
Crypto c => ToJSON (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

toJSON :: ShelleyDelegCert c -> Value #

toEncoding :: ShelleyDelegCert c -> Encoding #

toJSONList :: [ShelleyDelegCert c] -> Value #

toEncodingList :: [ShelleyDelegCert c] -> Encoding #

omitField :: ShelleyDelegCert c -> Bool #

Generic (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (ShelleyDelegCert c) = D1 ('MetaData "ShelleyDelegCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "ShelleyRegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakeCredential c))) :+: (C1 ('MetaCons "ShelleyUnRegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakeCredential c))) :+: C1 ('MetaCons "ShelleyDelegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakeCredential c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)))))
Show (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NFData (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf :: ShelleyDelegCert c -> () Source #

Eq (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Ord (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

noThunks :: Context -> ShelleyDelegCert c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ShelleyDelegCert c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ShelleyDelegCert c) -> String #

type Rep (ShelleyDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (ShelleyDelegCert c) = D1 ('MetaData "ShelleyDelegCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "ShelleyRegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakeCredential c))) :+: (C1 ('MetaCons "ShelleyUnRegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakeCredential c))) :+: C1 ('MetaCons "ShelleyDelegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakeCredential c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)))))

class EraTxCert era => ShelleyEraTxCert era where Source #

data PState era Source #

The state used by the POOL rule, which tracks stake pool information.

Constructors

PState 

Fields

Instances

Instances details
Era era => ToJSON (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

toJSON :: PState era -> Value #

toEncoding :: PState era -> Encoding #

toJSONList :: [PState era] -> Value #

toEncodingList :: [PState era] -> Encoding #

omitField :: PState era -> Bool #

Generic (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Rep (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (PState era) = D1 ('MetaData "PState" "Cardano.Ledger.CertState" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "PState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "psStakePoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool (EraCrypto era)) (PoolParams (EraCrypto era)))) :*: S1 ('MetaSel ('Just "psFutureStakePoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool (EraCrypto era)) (PoolParams (EraCrypto era))))) :*: (S1 ('MetaSel ('Just "psRetiring") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool (EraCrypto era)) EpochNo)) :*: S1 ('MetaSel ('Just "psDeposits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool (EraCrypto era)) Coin)))))

Methods

from :: PState era -> Rep (PState era) x Source #

to :: Rep (PState era) x -> PState era Source #

Show (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

showsPrec :: Int -> PState era -> ShowS Source #

show :: PState era -> String Source #

showList :: [PState era] -> ShowS Source #

(Era era, DecShareCBOR (PState era)) => DecCBOR (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

decCBOR :: Decoder s (PState era) Source #

dropCBOR :: Proxy (PState era) -> Decoder s () Source #

label :: Proxy (PState era) -> Text Source #

Era era => DecShareCBOR (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Associated Types

type Share (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Era era => EncCBOR (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

encCBOR :: PState era -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (PState era) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [PState era] -> Size Source #

Default (PState c) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

def :: PState c #

NFData (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

rnf :: PState era -> () Source #

Eq (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

(==) :: PState era -> PState era -> Bool Source #

(/=) :: PState era -> PState era -> Bool Source #

NoThunks (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

Methods

noThunks :: Context -> PState era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> PState era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (PState era) -> String #

type Rep (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

type Rep (PState era) = D1 ('MetaData "PState" "Cardano.Ledger.CertState" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "PState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "psStakePoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool (EraCrypto era)) (PoolParams (EraCrypto era)))) :*: S1 ('MetaSel ('Just "psFutureStakePoolParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool (EraCrypto era)) (PoolParams (EraCrypto era))))) :*: (S1 ('MetaSel ('Just "psRetiring") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool (EraCrypto era)) EpochNo)) :*: S1 ('MetaSel ('Just "psDeposits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (KeyHash 'StakePool (EraCrypto era)) Coin)))))
type Share (PState era) 
Instance details

Defined in Cardano.Ledger.CertState

type TranslationError (AllegraEra c) PState 
Instance details

Defined in Cardano.Ledger.Allegra.Translation

type TranslationError (AlonzoEra c) PState 
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError (BabbageEra c) PState 
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError (ConwayEra c) PState 
Instance details

Defined in Cardano.Ledger.Conway.Translation

type TranslationError (MaryEra c) PState 
Instance details

Defined in Cardano.Ledger.Mary.Translation

data GenesisDelegCert c Source #

Genesis key delegation certificate

Instances

Instances details
Crypto c => ToJSON (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

toJSON :: GenesisDelegCert c -> Value #

toEncoding :: GenesisDelegCert c -> Encoding #

toJSONList :: [GenesisDelegCert c] -> Value #

toEncodingList :: [GenesisDelegCert c] -> Encoding #

omitField :: GenesisDelegCert c -> Bool #

Generic (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (GenesisDelegCert c) = D1 ('MetaData "GenesisDelegCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "GenesisDelegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'Genesis c)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'GenesisDelegate c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash c (VerKeyVRF c))))))
Show (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NFData (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf :: GenesisDelegCert c -> () Source #

Eq (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Ord (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

noThunks :: Context -> GenesisDelegCert c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> GenesisDelegCert c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (GenesisDelegCert c) -> String #

type Rep (GenesisDelegCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (GenesisDelegCert c) = D1 ('MetaData "GenesisDelegCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "GenesisDelegCert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'Genesis c)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'GenesisDelegate c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash c (VerKeyVRF c))))))

data GenDelegPair c Source #

Instances

Instances details
Crypto c => FromJSON (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

parseJSON :: Value -> Parser (GenDelegPair c) #

parseJSONList :: Value -> Parser [GenDelegPair c] #

omittedField :: Maybe (GenDelegPair c) #

Crypto c => ToJSON (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

toJSON :: GenDelegPair c -> Value #

toEncoding :: GenDelegPair c -> Encoding #

toJSONList :: [GenDelegPair c] -> Value #

toEncodingList :: [GenDelegPair c] -> Encoding #

omitField :: GenDelegPair c -> Bool #

Generic (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Associated Types

type Rep (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (GenDelegPair c) = D1 ('MetaData "GenDelegPair" "Cardano.Ledger.Keys.Internal" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "GenDelegPair" 'PrefixI 'True) (S1 ('MetaSel ('Just "genDelegKeyHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'GenesisDelegate c)) :*: S1 ('MetaSel ('Just "genDelegVrfHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash c (VerKeyVRF c)))))
Show (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Crypto c => DecCBOR (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Crypto c => EncCBOR (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

encCBOR :: GenDelegPair c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (GenDelegPair c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [GenDelegPair c] -> Size Source #

NFData (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

rnf :: GenDelegPair c -> () Source #

Eq (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Ord (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

NoThunks (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

noThunks :: Context -> GenDelegPair c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> GenDelegPair c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (GenDelegPair c) -> String #

type Rep (GenDelegPair c) 
Instance details

Defined in Cardano.Ledger.Keys.Internal

type Rep (GenDelegPair c) = D1 ('MetaData "GenDelegPair" "Cardano.Ledger.Keys.Internal" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "GenDelegPair" 'PrefixI 'True) (S1 ('MetaSel ('Just "genDelegKeyHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'GenesisDelegate c)) :*: S1 ('MetaSel ('Just "genDelegVrfHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash c (VerKeyVRF c)))))

data StakeReference c Source #

Instances

Instances details
Crypto c => ToJSON (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

toJSON :: StakeReference c -> Value #

toEncoding :: StakeReference c -> Encoding #

toJSONList :: [StakeReference c] -> Value #

toEncodingList :: [StakeReference c] -> Encoding #

omitField :: StakeReference c -> Bool #

Generic (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

Associated Types

type Rep (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

type Rep (StakeReference c) = D1 ('MetaData "StakeReference" "Cardano.Ledger.Credential" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "StakeRefBase" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakeCredential c))) :+: (C1 ('MetaCons "StakeRefPtr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Ptr)) :+: C1 ('MetaCons "StakeRefNull" 'PrefixI 'False) (U1 :: Type -> Type)))
Show (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

NFData (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

rnf :: StakeReference c -> () Source #

Eq (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

Ord (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

NoThunks (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

Methods

noThunks :: Context -> StakeReference c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> StakeReference c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (StakeReference c) -> String #

type Rep (StakeReference c) 
Instance details

Defined in Cardano.Ledger.Credential

type Rep (StakeReference c) = D1 ('MetaData "StakeReference" "Cardano.Ledger.Credential" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "StakeRefBase" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StakeCredential c))) :+: (C1 ('MetaCons "StakeRefPtr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Ptr)) :+: C1 ('MetaCons "StakeRefNull" 'PrefixI 'False) (U1 :: Type -> Type)))

data WitVKey (kr :: KeyRole) c where Source #

Proof/Witness that a transaction is authorized by the given key holder.

Bundled Patterns

pattern WitVKey :: (Typeable kr, Crypto c) => VKey kr c -> SignedDSIGN c (Hash c EraIndependentTxBody) -> WitVKey kr c 

Instances

Instances details
(Typeable kr, Crypto c) => DecCBOR (Annotator (WitVKey kr c)) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Generic (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Associated Types

type Rep (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

type Rep (WitVKey kr c) = D1 ('MetaData "WitVKey" "Cardano.Ledger.Keys.WitVKey" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "WitVKeyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "wvkKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VKey kr c)) :*: S1 ('MetaSel ('Just "wvkSig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SignedDSIGN c (Hash c EraIndependentTxBody)))) :*: (S1 ('MetaSel ('Just "wvkKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'Witness c)) :*: S1 ('MetaSel ('Just "wvkBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))))

Methods

from :: WitVKey kr c -> Rep (WitVKey kr c) x Source #

to :: Rep (WitVKey kr c) x -> WitVKey kr c Source #

Crypto c => Show (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

showsPrec :: Int -> WitVKey kr c -> ShowS Source #

show :: WitVKey kr c -> String Source #

showList :: [WitVKey kr c] -> ShowS Source #

(Typeable kr, Crypto c) => ToCBOR (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

toCBOR :: WitVKey kr c -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (WitVKey kr c) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [WitVKey kr c] -> Size Source #

(Typeable kr, Crypto c) => EncCBOR (WitVKey kr c)

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

encCBOR :: WitVKey kr c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (WitVKey kr c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [WitVKey kr c] -> Size Source #

(Crypto c, Typeable kr) => EqRaw (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

eqRaw :: WitVKey kr c -> WitVKey kr c -> Bool Source #

NFData (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

rnf :: WitVKey kr c -> () Source #

Crypto c => Eq (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

(==) :: WitVKey kr c -> WitVKey kr c -> Bool Source #

(/=) :: WitVKey kr c -> WitVKey kr c -> Bool Source #

(Typeable kr, Crypto c) => Ord (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

compare :: WitVKey kr c -> WitVKey kr c -> Ordering Source #

(<) :: WitVKey kr c -> WitVKey kr c -> Bool Source #

(<=) :: WitVKey kr c -> WitVKey kr c -> Bool Source #

(>) :: WitVKey kr c -> WitVKey kr c -> Bool Source #

(>=) :: WitVKey kr c -> WitVKey kr c -> Bool Source #

max :: WitVKey kr c -> WitVKey kr c -> WitVKey kr c Source #

min :: WitVKey kr c -> WitVKey kr c -> WitVKey kr c Source #

(Crypto c, Typeable kr) => NoThunks (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

Methods

noThunks :: Context -> WitVKey kr c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> WitVKey kr c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (WitVKey kr c) -> String #

type Rep (WitVKey kr c) 
Instance details

Defined in Cardano.Ledger.Keys.WitVKey

type Rep (WitVKey kr c) = D1 ('MetaData "WitVKey" "Cardano.Ledger.Keys.WitVKey" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "WitVKeyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "wvkKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VKey kr c)) :*: S1 ('MetaSel ('Just "wvkSig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SignedDSIGN c (Hash c EraIndependentTxBody)))) :*: (S1 ('MetaSel ('Just "wvkKeyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (KeyHash 'Witness c)) :*: S1 ('MetaSel ('Just "wvkBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))))

hashKey :: forall c (kd :: KeyRole). Crypto c => VKey kd c -> KeyHash kd c Source #

Hash a given public key

hashWithSerialiser :: HashAlgorithm h => (a -> Encoding) -> a -> Hash h a Source #

A variation on hashWith, but specially for CBOR encodings.

data PoolParams c Source #

A stake pool.

Instances

Instances details
Crypto c => FromJSON (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

parseJSON :: Value -> Parser (PoolParams c) #

parseJSONList :: Value -> Parser [PoolParams c] #

omittedField :: Maybe (PoolParams c) #

Crypto c => ToJSON (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

toJSON :: PoolParams c -> Value #

toEncoding :: PoolParams c -> Encoding #

toJSONList :: [PoolParams c] -> Value #

toEncodingList :: [PoolParams c] -> Encoding #

omitField :: PoolParams c -> Bool #

Generic (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep (PoolParams c) = D1 ('MetaData "PoolParams" "Cardano.Ledger.PoolParams" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "PoolParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ppId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)) :*: S1 ('MetaSel ('Just "ppVrf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash c (VerKeyVRF c)))) :*: (S1 ('MetaSel ('Just "ppPledge") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "ppCost") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))) :*: ((S1 ('MetaSel ('Just "ppMargin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "ppRewardAccount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (RewardAccount c))) :*: (S1 ('MetaSel ('Just "ppOwners") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (KeyHash 'Staking c))) :*: (S1 ('MetaSel ('Just "ppRelays") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq StakePoolRelay)) :*: S1 ('MetaSel ('Just "ppMetadata") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe PoolMetadata)))))))

Methods

from :: PoolParams c -> Rep (PoolParams c) x Source #

to :: Rep (PoolParams c) x -> PoolParams c Source #

Show (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Crypto c => DecCBOR (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Crypto c => EncCBOR (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

encCBOR :: PoolParams c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (PoolParams c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [PoolParams c] -> Size Source #

Crypto c => DecCBORGroup (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Crypto c => EncCBORGroup (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Crypto c => Default (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

def :: PoolParams c #

NFData (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnf :: PoolParams c -> () Source #

Eq (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Ord (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

noThunks :: Context -> PoolParams c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> PoolParams c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (PoolParams c) -> String #

type Rep (PoolParams c) 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep (PoolParams c) = D1 ('MetaData "PoolParams" "Cardano.Ledger.PoolParams" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "PoolParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ppId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)) :*: S1 ('MetaSel ('Just "ppVrf") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Hash c (VerKeyVRF c)))) :*: (S1 ('MetaSel ('Just "ppPledge") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "ppCost") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))) :*: ((S1 ('MetaSel ('Just "ppMargin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "ppRewardAccount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (RewardAccount c))) :*: (S1 ('MetaSel ('Just "ppOwners") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (KeyHash 'Staking c))) :*: (S1 ('MetaSel ('Just "ppRelays") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq StakePoolRelay)) :*: S1 ('MetaSel ('Just "ppMetadata") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe PoolMetadata)))))))

class HasKeyRole (a :: KeyRole -> Type -> Type) Source #

Instances

Instances details
HasKeyRole Credential 
Instance details

Defined in Cardano.Ledger.Credential

Methods

coerceKeyRole :: forall (r :: KeyRole) c (r' :: KeyRole). Credential r c -> Credential r' c Source #

HasKeyRole KeyHash 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

coerceKeyRole :: forall (r :: KeyRole) c (r' :: KeyRole). KeyHash r c -> KeyHash r' c Source #

HasKeyRole VKey 
Instance details

Defined in Cardano.Ledger.Keys.Internal

Methods

coerceKeyRole :: forall (r :: KeyRole) c (r' :: KeyRole). VKey r c -> VKey r' c Source #

HasKeyRole KeyPair 
Instance details

Defined in Test.Cardano.Ledger.Core.KeyPair

Methods

coerceKeyRole :: forall (r :: KeyRole) c (r' :: KeyRole). KeyPair r c -> KeyPair r' c Source #

data MIRPot Source #

Constructors

ReservesMIR 
TreasuryMIR 

Instances

Instances details
ToJSON MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

toJSON :: MIRPot -> Value #

toEncoding :: MIRPot -> Encoding #

toJSONList :: [MIRPot] -> Value #

toEncodingList :: [MIRPot] -> Encoding #

omitField :: MIRPot -> Bool #

Bounded MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Enum MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Generic MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRPot = D1 ('MetaData "MIRPot" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "ReservesMIR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TreasuryMIR" 'PrefixI 'False) (U1 :: Type -> Type))
Show MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

DecCBOR MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

EncCBOR MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

encCBOR :: MIRPot -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy MIRPot -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [MIRPot] -> Size Source #

NFData MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf :: MIRPot -> () Source #

Eq MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Ord MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

noThunks :: Context -> MIRPot -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> MIRPot -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy MIRPot -> String #

type Rep MIRPot 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep MIRPot = D1 ('MetaData "MIRPot" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "ReservesMIR" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TreasuryMIR" 'PrefixI 'False) (U1 :: Type -> Type))

data MIRTarget c Source #

MIRTarget specifies if funds from either the reserves or the treasury are to be handed out to a collection of reward accounts or instead transfered to the opposite pot.

Instances

Instances details
Crypto c => ToJSON (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

toJSON :: MIRTarget c -> Value #

toEncoding :: MIRTarget c -> Encoding #

toJSONList :: [MIRTarget c] -> Value #

toEncodingList :: [MIRTarget c] -> Encoding #

omitField :: MIRTarget c -> Bool #

Generic (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (MIRTarget c) = D1 ('MetaData "MIRTarget" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "StakeAddressesMIR" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'Staking c) DeltaCoin))) :+: C1 ('MetaCons "SendToOppositePotMIR" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))

Methods

from :: MIRTarget c -> Rep (MIRTarget c) x Source #

to :: Rep (MIRTarget c) x -> MIRTarget c Source #

Show (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Crypto c => DecCBOR (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Crypto c => EncCBOR (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

encCBOR :: MIRTarget c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (MIRTarget c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [MIRTarget c] -> Size Source #

NFData (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf :: MIRTarget c -> () Source #

Eq (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Ord (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

noThunks :: Context -> MIRTarget c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> MIRTarget c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (MIRTarget c) -> String #

type Rep (MIRTarget c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (MIRTarget c) = D1 ('MetaData "MIRTarget" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "StakeAddressesMIR" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'Staking c) DeltaCoin))) :+: C1 ('MetaCons "SendToOppositePotMIR" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))

data MIRCert c Source #

Move instantaneous rewards certificate

Constructors

MIRCert 

Fields

Instances

Instances details
Crypto c => ToJSON (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

toJSON :: MIRCert c -> Value #

toEncoding :: MIRCert c -> Encoding #

toJSONList :: [MIRCert c] -> Value #

toEncodingList :: [MIRCert c] -> Encoding #

omitField :: MIRCert c -> Bool #

Generic (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Associated Types

type Rep (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (MIRCert c) = D1 ('MetaData "MIRCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "MIRCert" 'PrefixI 'True) (S1 ('MetaSel ('Just "mirPot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MIRPot) :*: S1 ('MetaSel ('Just "mirRewards") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MIRTarget c))))

Methods

from :: MIRCert c -> Rep (MIRCert c) x Source #

to :: Rep (MIRCert c) x -> MIRCert c Source #

Show (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Crypto c => DecCBOR (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Crypto c => EncCBOR (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

encCBOR :: MIRCert c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (MIRCert c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [MIRCert c] -> Size Source #

NFData (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

rnf :: MIRCert c -> () Source #

Eq (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

(==) :: MIRCert c -> MIRCert c -> Bool Source #

(/=) :: MIRCert c -> MIRCert c -> Bool Source #

Ord (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

NoThunks (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

Methods

noThunks :: Context -> MIRCert c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> MIRCert c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (MIRCert c) -> String #

type Rep (MIRCert c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

type Rep (MIRCert c) = D1 ('MetaData "MIRCert" "Cardano.Ledger.Shelley.TxCert" "cardano-ledger-shelley-1.13.1.0-9008b3bd97a7f1369e796695331dde72764672e215156bc5aa38fd60c04f2fef" 'False) (C1 ('MetaCons "MIRCert" 'PrefixI 'True) (S1 ('MetaSel ('Just "mirPot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MIRPot) :*: S1 ('MetaSel ('Just "mirRewards") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MIRTarget c))))

data StakePoolRelay Source #

Constructors

SingleHostAddr !(StrictMaybe Port) !(StrictMaybe IPv4) !(StrictMaybe IPv6)

One or both of IPv4 & IPv6

SingleHostName !(StrictMaybe Port) !DnsName

An A or AAAA DNS record

MultiHostName !DnsName

A SRV DNS record

Instances

Instances details
FromJSON StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

parseJSON :: Value -> Parser StakePoolRelay #

parseJSONList :: Value -> Parser [StakePoolRelay] #

omittedField :: Maybe StakePoolRelay #

ToJSON StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Generic StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Show StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

DecCBOR StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBOR StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

NFData StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnf :: StakePoolRelay -> () Source #

Eq StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Ord StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

noThunks :: Context -> StakePoolRelay -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> StakePoolRelay -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy StakePoolRelay -> String #

type Rep StakePoolRelay 
Instance details

Defined in Cardano.Ledger.PoolParams

data PoolMetadata Source #

Constructors

PoolMetadata 

Fields

Instances

Instances details
FromJSON PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

parseJSON :: Value -> Parser PoolMetadata #

parseJSONList :: Value -> Parser [PoolMetadata] #

omittedField :: Maybe PoolMetadata #

ToJSON PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

toJSON :: PoolMetadata -> Value #

toEncoding :: PoolMetadata -> Encoding #

toJSONList :: [PoolMetadata] -> Value #

toEncodingList :: [PoolMetadata] -> Encoding #

omitField :: PoolMetadata -> Bool #

Generic PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Associated Types

type Rep PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolMetadata = D1 ('MetaData "PoolMetadata" "Cardano.Ledger.PoolParams" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "PoolMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "pmUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Url) :*: S1 ('MetaSel ('Just "pmHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)))
Show PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

DecCBOR PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

EncCBOR PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

NFData PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

rnf :: PoolMetadata -> () Source #

Eq PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Ord PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

NoThunks PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

Methods

noThunks :: Context -> PoolMetadata -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> PoolMetadata -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy PoolMetadata -> String #

type Rep PoolMetadata 
Instance details

Defined in Cardano.Ledger.PoolParams

type Rep PoolMetadata = D1 ('MetaData "PoolMetadata" "Cardano.Ledger.PoolParams" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "PoolMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "pmUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Url) :*: S1 ('MetaSel ('Just "pmHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)))

class (Era era, ToJSON (TxCert era), DecCBOR (TxCert era), EncCBOR (TxCert era), ToCBOR (TxCert era), FromCBOR (TxCert era), NoThunks (TxCert era), NFData (TxCert era), Show (TxCert era), Ord (TxCert era), Eq (TxCert era)) => EraTxCert era where Source #

Associated Types

type TxCert era = (r :: Type) | r -> era Source #

type TxCertUpgradeError era Source #

Methods

upgradeTxCert :: TxCert (PreviousEra era) -> Either (TxCertUpgradeError era) (TxCert era) Source #

Every era, except Shelley, must be able to upgrade a TxCert from a previous era. However, not all certificates can be upgraded, because some eras lose some of the certificates, thus return type is an Either. Eg. from Babbage to Conway: MIR and Genesis certificates were removed.

getVKeyWitnessTxCert :: TxCert era -> Maybe (KeyHash 'Witness (EraCrypto era)) Source #

Return a witness key whenever a certificate requires one

getScriptWitnessTxCert :: TxCert era -> Maybe (ScriptHash (EraCrypto era)) Source #

Return a ScriptHash for certificate types that require a witness

mkRegPoolTxCert :: PoolParams (EraCrypto era) -> TxCert era Source #

getRegPoolTxCert :: TxCert era -> Maybe (PoolParams (EraCrypto era)) Source #

mkRetirePoolTxCert :: KeyHash 'StakePool (EraCrypto era) -> EpochNo -> TxCert era Source #

getRetirePoolTxCert :: TxCert era -> Maybe (KeyHash 'StakePool (EraCrypto era), EpochNo) Source #

lookupRegStakeTxCert :: TxCert era -> Maybe (Credential 'Staking (EraCrypto era)) Source #

Extract staking credential from any certificate that can register such credential

lookupUnRegStakeTxCert :: TxCert era -> Maybe (Credential 'Staking (EraCrypto era)) Source #

Extract staking credential from any certificate that can unregister such credential

getTotalDepositsTxCerts Source #

Arguments

:: Foldable f 
=> PParams era 
-> (KeyHash 'StakePool (EraCrypto era) -> Bool)

Check whether stake pool is registered or not

-> f (TxCert era) 
-> Coin 

Compute the total deposits from a list of certificates.

getTotalRefundsTxCerts Source #

Arguments

:: Foldable f 
=> PParams era 
-> (Credential 'Staking (EraCrypto era) -> Maybe Coin)

Lookup current deposit for Staking credential if one is registered

-> (Credential 'DRepRole (EraCrypto era) -> Maybe Coin)

Lookup current deposit for DRep credential if one is registered

-> f (TxCert era) 
-> Coin 

Compute the total refunds from a list of certificates.

data StrictMaybe a Source #

Constructors

SNothing 
SJust !a 

Instances

Instances details
MonadFail StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

fail :: String -> StrictMaybe a Source #

Foldable StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

fold :: Monoid m => StrictMaybe m -> m Source #

foldMap :: Monoid m => (a -> m) -> StrictMaybe a -> m Source #

foldMap' :: Monoid m => (a -> m) -> StrictMaybe a -> m Source #

foldr :: (a -> b -> b) -> b -> StrictMaybe a -> b Source #

foldr' :: (a -> b -> b) -> b -> StrictMaybe a -> b Source #

foldl :: (b -> a -> b) -> b -> StrictMaybe a -> b Source #

foldl' :: (b -> a -> b) -> b -> StrictMaybe a -> b Source #

foldr1 :: (a -> a -> a) -> StrictMaybe a -> a Source #

foldl1 :: (a -> a -> a) -> StrictMaybe a -> a Source #

toList :: StrictMaybe a -> [a] Source #

null :: StrictMaybe a -> Bool Source #

length :: StrictMaybe a -> Int Source #

elem :: Eq a => a -> StrictMaybe a -> Bool Source #

maximum :: Ord a => StrictMaybe a -> a Source #

minimum :: Ord a => StrictMaybe a -> a Source #

sum :: Num a => StrictMaybe a -> a Source #

product :: Num a => StrictMaybe a -> a Source #

Traversable StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

traverse :: Applicative f => (a -> f b) -> StrictMaybe a -> f (StrictMaybe b) Source #

sequenceA :: Applicative f => StrictMaybe (f a) -> f (StrictMaybe a) Source #

mapM :: Monad m => (a -> m b) -> StrictMaybe a -> m (StrictMaybe b) Source #

sequence :: Monad m => StrictMaybe (m a) -> m (StrictMaybe a) Source #

Alternative StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Applicative StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Functor StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

Methods

fmap :: (a -> b) -> StrictMaybe a -> StrictMaybe b Source #

(<$) :: a -> StrictMaybe b -> StrictMaybe a Source #

Monad StrictMaybe 
Instance details

Defined in Data.Maybe.Strict

HKDApplicative StrictMaybe 
Instance details

Defined in Cardano.Ledger.HKD

Methods

hkdPure :: a -> HKD StrictMaybe a Source #

hkdLiftA2 :: (a -> b -> c) -> HKD StrictMaybe a -> HKD StrictMaybe b -> HKD StrictMaybe c Source #

HKDFunctor StrictMaybe 
Instance details

Defined in Cardano.Ledger.HKD

FromJSON a => FromJSON (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

parseJSON :: Value -> Parser (StrictMaybe a) #

parseJSONList :: Value -> Parser [StrictMaybe a] #

omittedField :: Maybe (StrictMaybe a) #

ToJSON a => ToJSON (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

toJSON :: StrictMaybe a -> Value #

toEncoding :: StrictMaybe a -> Encoding #

toJSONList :: [StrictMaybe a] -> Value #

toEncodingList :: [StrictMaybe a] -> Encoding #

omitField :: StrictMaybe a -> Bool #

Semigroup a => Monoid (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Semigroup a => Semigroup (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Generic (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Associated Types

type Rep (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

type Rep (StrictMaybe a) = D1 ('MetaData "StrictMaybe" "Data.Maybe.Strict" "cardano-strict-containers-0.1.3.0-f2133c72b8376441021fa47809c02967743003ffcbb177397ab6d07939b9435c" 'False) (C1 ('MetaCons "SNothing" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SJust" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))
Show (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Show a => Show (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

FromCBOR a => FromCBOR (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

ToCBOR a => ToCBOR (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

toCBOR :: StrictMaybe a -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (StrictMaybe a) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [StrictMaybe a] -> Size Source #

DecCBOR a => DecCBOR (StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.DecCBOR

EncCBOR a => EncCBOR (StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

encCBOR :: StrictMaybe a -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (StrictMaybe a) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [StrictMaybe a] -> Size Source #

Default (UpgradeAlonzoPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Default (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Default (StrictMaybe t) 
Instance details

Defined in Data.Maybe.Strict

Methods

def :: StrictMaybe t #

NFData (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NFData a => NFData (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

rnf :: StrictMaybe a -> () Source #

Eq (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Eq a => Eq (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Ord (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Ord a => Ord (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

NoThunks (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NoThunks a => NoThunks (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

Methods

noThunks :: Context -> StrictMaybe a -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> StrictMaybe a -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (StrictMaybe a) -> String #

Crypto c => ToJSON (AlonzoPParams StrictMaybe (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

(PParamsHKD StrictMaybe era ~ BabbagePParams StrictMaybe era, BabbageEraPParams era, ProtVerAtMost era 8) => ToJSON (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

(ConwayEraPParams era, PParamsHKD StrictMaybe era ~ ConwayPParams StrictMaybe era) => ToJSON (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

(EraPParams era, PParamsHKD StrictMaybe era ~ ShelleyPParams StrictMaybe era, ProtVerAtMost era 4, ProtVerAtMost era 6, ProtVerAtMost era 8) => ToJSON (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Semigroup (AlonzoPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Api.Orphans

Semigroup (BabbagePParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Api.Orphans

Semigroup (ConwayPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Api.Orphans

Semigroup (ShelleyPParams StrictMaybe era) Source # 
Instance details

Defined in Cardano.Api.Orphans

Show (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Show (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Show (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Show (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Era era => FromCBOR (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Era era => FromCBOR (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Era era => FromCBOR (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Era era => FromCBOR (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Era era => ToCBOR (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Era era => ToCBOR (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Era era => ToCBOR (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Era era => ToCBOR (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Era era => DecCBOR (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Era era => DecCBOR (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Era era => DecCBOR (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Era era => DecCBOR (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Era era => EncCBOR (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Era era => EncCBOR (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Era era => EncCBOR (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Era era => EncCBOR (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NFData (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Methods

rnf :: AlonzoPParams StrictMaybe era -> () Source #

NFData (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Methods

rnf :: BabbagePParams StrictMaybe era -> () Source #

NFData (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Methods

rnf :: ConwayPParams StrictMaybe era -> () Source #

NFData (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

rnf :: ShelleyPParams StrictMaybe era -> () Source #

Eq (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Eq (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Eq (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Eq (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Ord (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Ord (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Ord (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Ord (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

NoThunks (AlonzoPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Methods

noThunks :: Context -> AlonzoPParams StrictMaybe era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> AlonzoPParams StrictMaybe era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (AlonzoPParams StrictMaybe era) -> String #

NoThunks (BabbagePParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Methods

noThunks :: Context -> BabbagePParams StrictMaybe era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> BabbagePParams StrictMaybe era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (BabbagePParams StrictMaybe era) -> String #

NoThunks (ConwayPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Methods

noThunks :: Context -> ConwayPParams StrictMaybe era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ConwayPParams StrictMaybe era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ConwayPParams StrictMaybe era) -> String #

NoThunks (ShelleyPParams StrictMaybe era) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

Methods

noThunks :: Context -> ShelleyPParams StrictMaybe era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ShelleyPParams StrictMaybe era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ShelleyPParams StrictMaybe era) -> String #

(Typeable t, FromJSON a) => FromJSON (THKD t StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Methods

parseJSON :: Value -> Parser (THKD t StrictMaybe a) #

parseJSONList :: Value -> Parser [THKD t StrictMaybe a] #

omittedField :: Maybe (THKD t StrictMaybe a) #

(Typeable t, ToJSON a) => ToJSON (THKD t StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Methods

toJSON :: THKD t StrictMaybe a -> Value #

toEncoding :: THKD t StrictMaybe a -> Encoding #

toJSONList :: [THKD t StrictMaybe a] -> Value #

toEncodingList :: [THKD t StrictMaybe a] -> Encoding #

omitField :: THKD t StrictMaybe a -> Bool #

(Typeable t, DecCBOR a) => DecCBOR (THKD t StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

(Typeable t, EncCBOR a) => EncCBOR (THKD t StrictMaybe a) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Methods

encCBOR :: THKD t StrictMaybe a -> Encoding Source #

encodedSizeExpr :: (forall t0. EncCBOR t0 => Proxy t0 -> Size) -> Proxy (THKD t StrictMaybe a) -> Size Source #

encodedListSizeExpr :: (forall t0. EncCBOR t0 => Proxy t0 -> Size) -> Proxy [THKD t StrictMaybe a] -> Size Source #

Updatable (K1 t x a) (K1 t (StrictMaybe x) u) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

applyUpdate :: K1 t x a -> K1 t (StrictMaybe x) u -> K1 t x a

type Rep (StrictMaybe a) 
Instance details

Defined in Data.Maybe.Strict

type Rep (StrictMaybe a) = D1 ('MetaData "StrictMaybe" "Data.Maybe.Strict" "cardano-strict-containers-0.1.3.0-f2133c72b8376441021fa47809c02967743003ffcbb177397ab6d07939b9435c" 'False) (C1 ('MetaCons "SNothing" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SJust" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))

pattern RegPoolTxCert :: EraTxCert era => PoolParams (EraCrypto era) -> TxCert era Source #

pattern MirTxCert :: (ShelleyEraTxCert era, ProtVerAtMost era 8) => MIRCert (EraCrypto era) -> TxCert era Source #

newtype Coin Source #

The amount of value held by a transaction output.

Constructors

Coin 

Fields

Instances

Instances details
FromJSON Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

parseJSON :: Value -> Parser Coin #

parseJSONList :: Value -> Parser [Coin] #

omittedField :: Maybe Coin #

ToJSON Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

toJSON :: Coin -> Value #

toEncoding :: Coin -> Encoding #

toJSONList :: [Coin] -> Value #

toEncodingList :: [Coin] -> Encoding #

omitField :: Coin -> Bool #

Monoid Coin 
Instance details

Defined in Cardano.Ledger.Coin

Semigroup Coin 
Instance details

Defined in Cardano.Ledger.Coin

Enum Coin 
Instance details

Defined in Cardano.Ledger.Coin

Generic Coin 
Instance details

Defined in Cardano.Ledger.Coin

Associated Types

type Rep Coin 
Instance details

Defined in Cardano.Ledger.Coin

type Rep Coin = D1 ('MetaData "Coin" "Cardano.Ledger.Coin" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "Coin" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCoin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

Methods

from :: Coin -> Rep Coin x Source #

to :: Rep Coin x -> Coin Source #

Num Coin Source # 
Instance details

Defined in Cardano.Api.Orphans

Integral Coin Source # 
Instance details

Defined in Cardano.Api.Orphans

Real Coin Source #

These instances originally existed on the Lovelace type. As the Lovelace type is deleted and we use L.Coin instead, these instances are added to L.Coin. The instances are purely for the convenience of writing expressions involving L.Coin but be aware that not all uses of these typeclasses are valid.

Instance details

Defined in Cardano.Api.Orphans

Show Coin 
Instance details

Defined in Cardano.Ledger.Coin

FromCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

ToCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

toCBOR :: Coin -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy Coin -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Coin] -> Size Source #

DecCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

EncCBOR Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

encCBOR :: Coin -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy Coin -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Coin] -> Size Source #

Compactible Coin 
Instance details

Defined in Cardano.Ledger.Coin

Associated Types

newtype CompactForm Coin 
Instance details

Defined in Cardano.Ledger.Coin

ToPlutusData Coin 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

Val Coin 
Instance details

Defined in Cardano.Ledger.Val

NFData Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

rnf :: Coin -> () Source #

Eq Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

(==) :: Coin -> Coin -> Bool Source #

(/=) :: Coin -> Coin -> Bool Source #

Ord Coin 
Instance details

Defined in Cardano.Ledger.Coin

Abelian Coin 
Instance details

Defined in Cardano.Ledger.Coin

Group Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

invert :: Coin -> Coin

(~~) :: Coin -> Coin -> Coin

pow :: Integral x => Coin -> x -> Coin

HeapWords Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

heapWords :: Coin -> Int

NoThunks Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

noThunks :: Context -> Coin -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Coin -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy Coin -> String #

PartialOrd Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

(<=) :: Coin -> Coin -> Bool

(>=) :: Coin -> Coin -> Bool

(==) :: Coin -> Coin -> Bool

(/=) :: Coin -> Coin -> Bool

(<) :: Coin -> Coin -> Bool

(>) :: Coin -> Coin -> Bool

compare :: Coin -> Coin -> Maybe Ordering

Pretty Coin Source # 
Instance details

Defined in Cardano.Api.Orphans

Methods

pretty :: Coin -> Doc ann #

prettyList :: [Coin] -> Doc ann #

Uniform Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformM :: StatefulGen g m => g -> m Coin

UniformRange Coin 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformRM :: StatefulGen g m => (Coin, Coin) -> g -> m Coin

Inject Coin DeltaCoin 
Instance details

Defined in Cardano.Ledger.Coin

Inject Coin (MaryValue c) 
Instance details

Defined in Cardano.Ledger.Mary.Value

Methods

inject :: Coin -> MaryValue c Source #

FromJSON (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

parseJSON :: Value -> Parser (CompactForm Coin) #

parseJSONList :: Value -> Parser [CompactForm Coin] #

omittedField :: Maybe (CompactForm Coin) #

ToJSON (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Monoid (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Semigroup (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Show (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

ToCBOR (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

DecCBOR (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

EncCBOR (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

NFData (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

rnf :: CompactForm Coin -> () Source #

Eq (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Ord (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Abelian (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Group (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

HeapWords (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

NoThunks (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

noThunks :: Context -> CompactForm Coin -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> CompactForm Coin -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (CompactForm Coin) -> String #

Prim (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Uniform (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformM :: StatefulGen g m => g -> m (CompactForm Coin)

UniformRange (CompactForm Coin) 
Instance details

Defined in Cardano.Ledger.Coin

Methods

uniformRM :: StatefulGen g m => (CompactForm Coin, CompactForm Coin) -> g -> m (CompactForm Coin)

type Rep Coin 
Instance details

Defined in Cardano.Ledger.Coin

type Rep Coin = D1 ('MetaData "Coin" "Cardano.Ledger.Coin" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "Coin" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCoin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))
newtype CompactForm Coin 
Instance details

Defined in Cardano.Ledger.Coin

class (Era era, Eq (PParamsHKD Identity era), Ord (PParamsHKD Identity era), Show (PParamsHKD Identity era), NFData (PParamsHKD Identity era), EncCBOR (PParamsHKD Identity era), DecCBOR (PParamsHKD Identity era), ToCBOR (PParamsHKD Identity era), FromCBOR (PParamsHKD Identity era), NoThunks (PParamsHKD Identity era), ToJSON (PParamsHKD Identity era), FromJSON (PParamsHKD Identity era), Eq (PParamsHKD StrictMaybe era), Ord (PParamsHKD StrictMaybe era), Show (PParamsHKD StrictMaybe era), NFData (PParamsHKD StrictMaybe era), EncCBOR (PParamsHKD StrictMaybe era), DecCBOR (PParamsHKD StrictMaybe era), ToCBOR (PParamsHKD StrictMaybe era), FromCBOR (PParamsHKD StrictMaybe era), NoThunks (PParamsHKD StrictMaybe era), ToJSON (PParamsHKD StrictMaybe era)) => EraPParams era where Source #

Associated Types

type PParamsHKD (f :: Type -> Type) era = (r :: Type) | r -> era Source #

Protocol parameters where the fields are represented with a HKD

type UpgradePParams (f :: Type -> Type) era Source #

type DowngradePParams (f :: Type -> Type) era Source #

Methods

applyPPUpdates :: PParams era -> PParamsUpdate era -> PParams era Source #

Applies a protocol parameters update

emptyPParamsIdentity :: PParamsHKD Identity era Source #

emptyPParamsStrictMaybe :: PParamsHKD StrictMaybe era Source #

upgradePParamsHKD :: forall (f :: Type -> Type). (HKDApplicative f, EraPParams (PreviousEra era)) => UpgradePParams f era -> PParamsHKD f (PreviousEra era) -> PParamsHKD f era Source #

Upgrade PParams from previous era to the current one

downgradePParamsHKD :: forall (f :: Type -> Type). (HKDFunctor f, EraPParams (PreviousEra era)) => DowngradePParams f era -> PParamsHKD f era -> PParamsHKD f (PreviousEra era) Source #

Downgrade PParams from the current era to the previous one

hkdMinFeeAL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Coin) Source #

The linear factor for the minimum fee calculation

hkdMinFeeBL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Coin) Source #

The constant factor for the minimum fee calculation

hkdMaxBBSizeL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Word32) Source #

Maximal block body size

hkdMaxTxSizeL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Word32) Source #

Maximal transaction size

hkdMaxBHSizeL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Word16) Source #

Maximal block header size

hkdKeyDepositL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Coin) Source #

The amount of a key registration deposit

hkdPoolDepositL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Coin) Source #

The amount of a pool registration deposit

hkdEMaxL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f EpochInterval) Source #

epoch bound on pool retirement

hkdNOptL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Natural) Source #

Desired number of pools

hkdA0L :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f NonNegativeInterval) Source #

Pool influence

hkdRhoL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f UnitInterval) Source #

Monetary expansion

hkdTauL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f UnitInterval) Source #

Treasury expansion

hkdDL :: forall (f :: Type -> Type). (HKDFunctor f, ProtVerAtMost era 6) => Lens' (PParamsHKD f era) (HKD f UnitInterval) Source #

Decentralization parameter

ppDG :: SimpleGetter (PParams era) UnitInterval Source #

Decentralization parameter getter

default ppDG :: ProtVerAtMost era 6 => SimpleGetter (PParams era) UnitInterval Source #

hkdExtraEntropyL :: forall (f :: Type -> Type). (HKDFunctor f, ProtVerAtMost era 6) => Lens' (PParamsHKD f era) (HKD f Nonce) Source #

Extra entropy

hkdProtocolVersionL :: forall (f :: Type -> Type). (HKDFunctor f, ProtVerAtMost era 8) => Lens' (PParamsHKD f era) (HKD f ProtVer) Source #

Protocol version

ppProtocolVersionL :: Lens' (PParams era) ProtVer Source #

default ppProtocolVersionL :: ProtVerAtMost era 8 => Lens' (PParams era) ProtVer Source #

ppuProtocolVersionL :: Lens' (PParamsUpdate era) (StrictMaybe ProtVer) Source #

PParamsUpdate Protocol version

hkdMinUTxOValueL :: forall (f :: Type -> Type). (HKDFunctor f, ProtVerAtMost era 4) => Lens' (PParamsHKD f era) (HKD f Coin) Source #

Minimum UTxO value

hkdMinPoolCostL :: forall (f :: Type -> Type). HKDFunctor f => Lens' (PParamsHKD f era) (HKD f Coin) Source #

Minimum Stake Pool Cost

class (Crypto (EraCrypto era), Typeable era, KnownNat (ProtVerLow era), KnownNat (ProtVerHigh era), ProtVerLow era <= ProtVerHigh era, MinVersion <= ProtVerLow era, MinVersion <= ProtVerHigh era, CmpNat (ProtVerLow era) MaxVersion ~ 'LT, CmpNat (ProtVerHigh era) MaxVersion ~ 'LT, ProtVerLow era <= MaxVersion, ProtVerHigh era <= MaxVersion) => Era era where Source #

Associated Types

type EraCrypto era Source #

type PreviousEra era = (r :: Type) | r -> era Source #

Map an era to its predecessor.

For example:

type instance PreviousEra (AllegraEra c) = ShelleyEra c

type ProtVerLow era :: Nat Source #

Lowest major protocol version for this era

type ProtVerHigh era :: Nat Source #

Highest major protocol version for this era. By default se to ProtVerLow

type ProtVerHigh era = ProtVerLow era

Methods

eraName :: String Source #

Textual name of the current era.

Designed to be used with TypeApplications:

>>> eraName @(ByronEra StandardCrypto)
Byron

Instances

Instances details
Crypto c => Era (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.Era

Associated Types

type EraCrypto (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.Era

type EraCrypto (AllegraEra c) = c
type PreviousEra (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.Era

type ProtVerLow (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.Era

type ProtVerLow (AllegraEra c) = 3
type ProtVerHigh (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.Era

Crypto c => Era (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Era

Associated Types

type EraCrypto (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Era

type EraCrypto (AlonzoEra c) = c
type PreviousEra (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Era

type ProtVerLow (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Era

type ProtVerLow (AlonzoEra c) = 5
type ProtVerHigh (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Era

type ProtVerHigh (AlonzoEra c) = 6
Crypto c => Era (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Era

Associated Types

type EraCrypto (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Era

type EraCrypto (BabbageEra c) = c
type PreviousEra (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Era

type ProtVerLow (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Era

type ProtVerLow (BabbageEra c) = 7
type ProtVerHigh (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Era

type ProtVerHigh (BabbageEra c) = 8
Crypto c => Era (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

Associated Types

type EraCrypto (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

type EraCrypto (ConwayEra c) = c
type PreviousEra (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

type ProtVerLow (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

type ProtVerLow (ConwayEra c) = 9
type ProtVerHigh (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

type ProtVerHigh (ConwayEra c) = 10
Crypto c => Era (ByronEra c) 
Instance details

Defined in Cardano.Ledger.Core.Era

Associated Types

type EraCrypto (ByronEra c) 
Instance details

Defined in Cardano.Ledger.Core.Era

type EraCrypto (ByronEra c) = c
type PreviousEra (ByronEra c) 
Instance details

Defined in Cardano.Ledger.Core.Era

type PreviousEra (ByronEra c) = VoidEra c
type ProtVerLow (ByronEra c) 
Instance details

Defined in Cardano.Ledger.Core.Era

type ProtVerLow (ByronEra c) = 0
type ProtVerHigh (ByronEra c) 
Instance details

Defined in Cardano.Ledger.Core.Era

type ProtVerHigh (ByronEra c) = 1
Crypto c => Era (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Era

Associated Types

type EraCrypto (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Era

type EraCrypto (MaryEra c) = c
type PreviousEra (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Era

type ProtVerLow (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Era

type ProtVerLow (MaryEra c) = 4
type ProtVerHigh (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Era

Crypto c => Era (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Era

Associated Types

type EraCrypto (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Era

type EraCrypto (ShelleyEra c) = c
type PreviousEra (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Era

type ProtVerLow (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Era

type ProtVerLow (ShelleyEra c) = 2
type ProtVerHigh (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Era

data Network Source #

Constructors

Testnet 
Mainnet 

Instances

Instances details
FromJSON Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

parseJSON :: Value -> Parser Network #

parseJSONList :: Value -> Parser [Network] #

omittedField :: Maybe Network #

ToJSON Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toJSON :: Network -> Value #

toEncoding :: Network -> Encoding #

toJSONList :: [Network] -> Value #

toEncodingList :: [Network] -> Encoding #

omitField :: Network -> Bool #

Bounded Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Enum Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Network = D1 ('MetaData "Network" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 :: Type -> Type))
Show Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR :: Network -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy Network -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Network] -> Size Source #

Default Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

def :: Network #

NFData Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf :: Network -> () Source #

Eq Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Ord Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

noThunks :: Context -> Network -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Network -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy Network -> String #

type Rep Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Network = D1 ('MetaData "Network" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 :: Type -> Type))

data PoolCert c Source #

Constructors

RegPool !(PoolParams c)

A stake pool registration certificate.

RetirePool !(KeyHash 'StakePool c) !EpochNo

A stake pool retirement certificate.

Instances

Instances details
Crypto c => ToJSON (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

toJSON :: PoolCert c -> Value #

toEncoding :: PoolCert c -> Encoding #

toJSONList :: [PoolCert c] -> Value #

toEncodingList :: [PoolCert c] -> Encoding #

omitField :: PoolCert c -> Bool #

Generic (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Associated Types

type Rep (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

type Rep (PoolCert c) = D1 ('MetaData "PoolCert" "Cardano.Ledger.Core.TxCert" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "RegPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PoolParams c))) :+: C1 ('MetaCons "RetirePool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo)))

Methods

from :: PoolCert c -> Rep (PoolCert c) x Source #

to :: Rep (PoolCert c) x -> PoolCert c Source #

Show (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

NFData (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

rnf :: PoolCert c -> () Source #

Eq (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

(==) :: PoolCert c -> PoolCert c -> Bool Source #

(/=) :: PoolCert c -> PoolCert c -> Bool Source #

Ord (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

NoThunks (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

noThunks :: Context -> PoolCert c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> PoolCert c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (PoolCert c) -> String #

type Rep (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

type Rep (PoolCert c) = D1 ('MetaData "PoolCert" "Cardano.Ledger.Core.TxCert" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "RegPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PoolParams c))) :+: C1 ('MetaCons "RetirePool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo)))

newtype PParams era Source #

Protocol parameters

Constructors

PParams (PParamsHKD Identity era) 

Instances

Instances details
FromJSON (PParamsHKD Identity era) => FromJSON (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

parseJSON :: Value -> Parser (PParams era) #

parseJSONList :: Value -> Parser [PParams era] #

omittedField :: Maybe (PParams era) #

ToJSON (PParamsHKD Identity era) => ToJSON (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

toJSON :: PParams era -> Value #

toEncoding :: PParams era -> Encoding #

toJSONList :: [PParams era] -> Value #

toEncodingList :: [PParams era] -> Encoding #

omitField :: PParams era -> Bool #

Generic (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Associated Types

type Rep (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

type Rep (PParams era) = D1 ('MetaData "PParams" "Cardano.Ledger.Core.PParams" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "PParams" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParamsHKD Identity era))))

Methods

from :: PParams era -> Rep (PParams era) x Source #

to :: Rep (PParams era) x -> PParams era Source #

Show (PParamsHKD Identity era) => Show (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

showsPrec :: Int -> PParams era -> ShowS Source #

show :: PParams era -> String Source #

showList :: [PParams era] -> ShowS Source #

(Typeable era, FromCBOR (PParamsHKD Identity era)) => FromCBOR (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

fromCBOR :: Decoder s (PParams era) Source #

label :: Proxy (PParams era) -> Text Source #

(Typeable era, ToCBOR (PParamsHKD Identity era)) => ToCBOR (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

toCBOR :: PParams era -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (PParams era) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [PParams era] -> Size Source #

(Typeable era, DecCBOR (PParamsHKD Identity era)) => DecCBOR (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

decCBOR :: Decoder s (PParams era) Source #

dropCBOR :: Proxy (PParams era) -> Decoder s () Source #

label :: Proxy (PParams era) -> Text Source #

(Typeable era, EncCBOR (PParamsHKD Identity era)) => EncCBOR (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

encCBOR :: PParams era -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (PParams era) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [PParams era] -> Size Source #

EraPParams era => Default (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

def :: PParams era #

NFData (PParamsHKD Identity era) => NFData (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

rnf :: PParams era -> () Source #

Eq (PParamsHKD Identity era) => Eq (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

(==) :: PParams era -> PParams era -> Bool Source #

(/=) :: PParams era -> PParams era -> Bool Source #

Ord (PParamsHKD Identity era) => Ord (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

compare :: PParams era -> PParams era -> Ordering Source #

(<) :: PParams era -> PParams era -> Bool Source #

(<=) :: PParams era -> PParams era -> Bool Source #

(>) :: PParams era -> PParams era -> Bool Source #

(>=) :: PParams era -> PParams era -> Bool Source #

max :: PParams era -> PParams era -> PParams era Source #

min :: PParams era -> PParams era -> PParams era Source #

NoThunks (PParamsHKD Identity era) => NoThunks (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

noThunks :: Context -> PParams era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> PParams era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (PParams era) -> String #

type Rep (PParams era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

type Rep (PParams era) = D1 ('MetaData "PParams" "Cardano.Ledger.Core.PParams" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "PParams" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParamsHKD Identity era))))
type TranslationError (AllegraEra c) PParams 
Instance details

Defined in Cardano.Ledger.Allegra.Translation

type TranslationError (AlonzoEra c) PParams 
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError (BabbageEra c) PParams 
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError (ConwayEra c) PParams 
Instance details

Defined in Cardano.Ledger.Conway.Translation

type TranslationError (MaryEra c) PParams 
Instance details

Defined in Cardano.Ledger.Mary.Translation

data PParamsUpdate era Source #

The type of updates to Protocol parameters

Instances

Instances details
FromJSON (PParamsHKD StrictMaybe era) => FromJSON (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

parseJSON :: Value -> Parser (PParamsUpdate era) #

parseJSONList :: Value -> Parser [PParamsUpdate era] #

omittedField :: Maybe (PParamsUpdate era) #

ToJSON (PParamsHKD StrictMaybe era) => ToJSON (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

toJSON :: PParamsUpdate era -> Value #

toEncoding :: PParamsUpdate era -> Encoding #

toJSONList :: [PParamsUpdate era] -> Value #

toEncodingList :: [PParamsUpdate era] -> Encoding #

omitField :: PParamsUpdate era -> Bool #

Generic (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Associated Types

type Rep (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

type Rep (PParamsUpdate era) = D1 ('MetaData "PParamsUpdate" "Cardano.Ledger.Core.PParams" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "PParamsUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParamsHKD StrictMaybe era))))

Methods

from :: PParamsUpdate era -> Rep (PParamsUpdate era) x Source #

to :: Rep (PParamsUpdate era) x -> PParamsUpdate era Source #

Show (PParamsHKD StrictMaybe era) => Show (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

(Typeable era, FromCBOR (PParamsHKD StrictMaybe era)) => FromCBOR (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

(Typeable era, ToCBOR (PParamsHKD StrictMaybe era)) => ToCBOR (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

toCBOR :: PParamsUpdate era -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (PParamsUpdate era) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [PParamsUpdate era] -> Size Source #

(Typeable era, DecCBOR (PParamsHKD StrictMaybe era)) => DecCBOR (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

(Typeable era, EncCBOR (PParamsHKD StrictMaybe era)) => EncCBOR (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

encCBOR :: PParamsUpdate era -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (PParamsUpdate era) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [PParamsUpdate era] -> Size Source #

EraPParams era => Default (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

def :: PParamsUpdate era #

NFData (PParamsHKD StrictMaybe era) => NFData (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

rnf :: PParamsUpdate era -> () Source #

Eq (PParamsHKD StrictMaybe era) => Eq (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Ord (PParamsHKD StrictMaybe era) => Ord (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

NoThunks (PParamsHKD StrictMaybe era) => NoThunks (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

Methods

noThunks :: Context -> PParamsUpdate era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> PParamsUpdate era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (PParamsUpdate era) -> String #

type Rep (PParamsUpdate era) 
Instance details

Defined in Cardano.Ledger.Core.PParams

type Rep (PParamsUpdate era) = D1 ('MetaData "PParamsUpdate" "Cardano.Ledger.Core.PParams" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "PParamsUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParamsHKD StrictMaybe era))))
type TranslationError (AllegraEra c) PParamsUpdate 
Instance details

Defined in Cardano.Ledger.Allegra.Translation

type TranslationError (MaryEra c) PParamsUpdate 
Instance details

Defined in Cardano.Ledger.Mary.Translation

type family Value era Source #

A value is something which quantifies a transaction output.

Instances

Instances details
type Value (AllegraEra _1) 
Instance details

Defined in Cardano.Ledger.Allegra.Era

type Value (AllegraEra _1) = Coin
type Value (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Era

type Value (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Era

type Value (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

type Value (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Era

type Value (MaryEra c) = MaryValue c
type Value (ShelleyEra _c) 
Instance details

Defined in Cardano.Ledger.Shelley.Era

type Value (ShelleyEra _c) = Coin

toEraCBOR :: (Era era, EncCBOR t) => t -> Encoding Source #

Convert a type that implements EncCBOR to plain Encoding using the lowest protocol version for the supplied era

fromEraCBOR :: (Era era, DecCBOR t) => Decoder s t Source #

Convert a type that implements DecCBOR to plain Decoder using the lowest protocol version for the supplied era

ppMinUTxOValueL :: (EraPParams era, ProtVerAtMost era 4) => Lens' (PParams era) Coin Source #

Minimum UTxO value

data Anchor c Source #

Constructors

Anchor 

Instances

Instances details
Crypto c => FromJSON (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

parseJSON :: Value -> Parser (Anchor c) #

parseJSONList :: Value -> Parser [Anchor c] #

omittedField :: Maybe (Anchor c) #

Crypto c => ToJSON (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toJSON :: Anchor c -> Value #

toEncoding :: Anchor c -> Encoding #

toJSONList :: [Anchor c] -> Value #

toEncodingList :: [Anchor c] -> Encoding #

omitField :: Anchor c -> Bool #

Generic (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep (Anchor c) = D1 ('MetaData "Anchor" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "Anchor" 'PrefixI 'True) (S1 ('MetaSel ('Just "anchorUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Url) :*: S1 ('MetaSel ('Just "anchorDataHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SafeHash c AnchorData))))

Methods

from :: Anchor c -> Rep (Anchor c) x Source #

to :: Rep (Anchor c) x -> Anchor c Source #

Show (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Crypto c => DecCBOR (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Crypto c => EncCBOR (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR :: Anchor c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (Anchor c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Anchor c] -> Size Source #

Crypto c => Default (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

def :: Anchor c #

Crypto c => NFData (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf :: Anchor c -> () Source #

Eq (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==) :: Anchor c -> Anchor c -> Bool Source #

(/=) :: Anchor c -> Anchor c -> Bool Source #

Ord (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compare :: Anchor c -> Anchor c -> Ordering Source #

(<) :: Anchor c -> Anchor c -> Bool Source #

(<=) :: Anchor c -> Anchor c -> Bool Source #

(>) :: Anchor c -> Anchor c -> Bool Source #

(>=) :: Anchor c -> Anchor c -> Bool Source #

max :: Anchor c -> Anchor c -> Anchor c Source #

min :: Anchor c -> Anchor c -> Anchor c Source #

NoThunks (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

noThunks :: Context -> Anchor c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Anchor c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (Anchor c) -> String #

type Rep (Anchor c) 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep (Anchor c) = D1 ('MetaData "Anchor" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "Anchor" 'PrefixI 'True) (S1 ('MetaSel ('Just "anchorUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Url) :*: S1 ('MetaSel ('Just "anchorDataHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SafeHash c AnchorData))))

data Delegatee c Source #

First type argument is the deposit

Instances

Instances details
Crypto c => FromJSON (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

parseJSON :: Value -> Parser (Delegatee c) #

parseJSONList :: Value -> Parser [Delegatee c] #

omittedField :: Maybe (Delegatee c) #

Crypto c => ToJSON (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

toJSON :: Delegatee c -> Value #

toEncoding :: Delegatee c -> Encoding #

toJSONList :: [Delegatee c] -> Value #

toEncodingList :: [Delegatee c] -> Encoding #

omitField :: Delegatee c -> Bool #

Generic (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Associated Types

type Rep (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

type Rep (Delegatee c) = D1 ('MetaData "Delegatee" "Cardano.Ledger.Conway.TxCert" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "DelegStake" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c))) :+: (C1 ('MetaCons "DelegVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (DRep c))) :+: C1 ('MetaCons "DelegStakeVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (DRep c)))))

Methods

from :: Delegatee c -> Rep (Delegatee c) x Source #

to :: Rep (Delegatee c) x -> Delegatee c Source #

Show (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Crypto c => DecCBOR (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Crypto c => EncCBOR (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

encCBOR :: Delegatee c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (Delegatee c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Delegatee c] -> Size Source #

NFData (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

rnf :: Delegatee c -> () Source #

Eq (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Ord (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

NoThunks (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

noThunks :: Context -> Delegatee c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Delegatee c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (Delegatee c) -> String #

type Rep (Delegatee c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

type Rep (Delegatee c) = D1 ('MetaData "Delegatee" "Cardano.Ledger.Conway.TxCert" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "DelegStake" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c))) :+: (C1 ('MetaCons "DelegVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (DRep c))) :+: C1 ('MetaCons "DelegStakeVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (DRep c)))))

data DRep c Source #

Bundled Patterns

pattern DRepCredential :: Credential 'DRepRole c -> DRep c 

Instances

Instances details
Crypto c => FromJSON (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

parseJSON :: Value -> Parser (DRep c) #

parseJSONList :: Value -> Parser [DRep c] #

omittedField :: Maybe (DRep c) #

Crypto c => FromJSONKey (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

fromJSONKey :: FromJSONKeyFunction (DRep c)

fromJSONKeyList :: FromJSONKeyFunction [DRep c]

Crypto c => ToJSON (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

toJSON :: DRep c -> Value #

toEncoding :: DRep c -> Encoding #

toJSONList :: [DRep c] -> Value #

toEncodingList :: [DRep c] -> Encoding #

omitField :: DRep c -> Bool #

Crypto c => ToJSONKey (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

toJSONKey :: ToJSONKeyFunction (DRep c)

toJSONKeyList :: ToJSONKeyFunction [DRep c]

Generic (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Associated Types

type Rep (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

type Rep (DRep c) = D1 ('MetaData "DRep" "Cardano.Ledger.DRep" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) ((C1 ('MetaCons "DRepKeyHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'DRepRole c))) :+: C1 ('MetaCons "DRepScriptHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ScriptHash c)))) :+: (C1 ('MetaCons "DRepAlwaysAbstain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DRepAlwaysNoConfidence" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: DRep c -> Rep (DRep c) x Source #

to :: Rep (DRep c) x -> DRep c Source #

Show (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

showsPrec :: Int -> DRep c -> ShowS Source #

show :: DRep c -> String Source #

showList :: [DRep c] -> ShowS Source #

Crypto c => DecCBOR (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

decCBOR :: Decoder s (DRep c) Source #

dropCBOR :: Proxy (DRep c) -> Decoder s () Source #

label :: Proxy (DRep c) -> Text Source #

Crypto c => EncCBOR (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

encCBOR :: DRep c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (DRep c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [DRep c] -> Size Source #

NFData (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

rnf :: DRep c -> () Source #

Eq (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

(==) :: DRep c -> DRep c -> Bool Source #

(/=) :: DRep c -> DRep c -> Bool Source #

Ord (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

compare :: DRep c -> DRep c -> Ordering Source #

(<) :: DRep c -> DRep c -> Bool Source #

(<=) :: DRep c -> DRep c -> Bool Source #

(>) :: DRep c -> DRep c -> Bool Source #

(>=) :: DRep c -> DRep c -> Bool Source #

max :: DRep c -> DRep c -> DRep c Source #

min :: DRep c -> DRep c -> DRep c Source #

NoThunks (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

noThunks :: Context -> DRep c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> DRep c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (DRep c) -> String #

type Rep (DRep c) 
Instance details

Defined in Cardano.Ledger.DRep

type Rep (DRep c) = D1 ('MetaData "DRep" "Cardano.Ledger.DRep" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) ((C1 ('MetaCons "DRepKeyHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'DRepRole c))) :+: C1 ('MetaCons "DRepScriptHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ScriptHash c)))) :+: (C1 ('MetaCons "DRepAlwaysAbstain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DRepAlwaysNoConfidence" 'PrefixI 'False) (U1 :: Type -> Type)))

data DRepState c Source #

Constructors

DRepState 

Instances

Instances details
Crypto c => FromJSON (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

parseJSON :: Value -> Parser (DRepState c) #

parseJSONList :: Value -> Parser [DRepState c] #

omittedField :: Maybe (DRepState c) #

Crypto c => ToJSON (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

toJSON :: DRepState c -> Value #

toEncoding :: DRepState c -> Encoding #

toJSONList :: [DRepState c] -> Value #

toEncodingList :: [DRepState c] -> Encoding #

omitField :: DRepState c -> Bool #

Generic (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

Associated Types

type Rep (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

type Rep (DRepState c) = D1 ('MetaData "DRepState" "Cardano.Ledger.DRep" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "DRepState" 'PrefixI 'True) (S1 ('MetaSel ('Just "drepExpiry") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo) :*: (S1 ('MetaSel ('Just "drepAnchor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor c))) :*: S1 ('MetaSel ('Just "drepDeposit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))))

Methods

from :: DRepState c -> Rep (DRepState c) x Source #

to :: Rep (DRepState c) x -> DRepState c Source #

Show (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

Crypto c => DecCBOR (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

Crypto c => EncCBOR (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

encCBOR :: DRepState c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (DRepState c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [DRepState c] -> Size Source #

Crypto c => NFData (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

rnf :: DRepState c -> () Source #

Eq (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

Ord (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

NoThunks (DRepState era) 
Instance details

Defined in Cardano.Ledger.DRep

Methods

noThunks :: Context -> DRepState era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> DRepState era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (DRepState era) -> String #

type Rep (DRepState c) 
Instance details

Defined in Cardano.Ledger.DRep

type Rep (DRepState c) = D1 ('MetaData "DRepState" "Cardano.Ledger.DRep" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "DRepState" 'PrefixI 'True) (S1 ('MetaSel ('Just "drepExpiry") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo) :*: (S1 ('MetaSel ('Just "drepAnchor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor c))) :*: S1 ('MetaSel ('Just "drepDeposit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))))

data ConwayTxCert era Source #

Instances

Instances details
Era era => ToJSON (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

toJSON :: ConwayTxCert era -> Value #

toEncoding :: ConwayTxCert era -> Encoding #

toJSONList :: [ConwayTxCert era] -> Value #

toEncodingList :: [ConwayTxCert era] -> Encoding #

omitField :: ConwayTxCert era -> Bool #

Generic (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Associated Types

type Rep (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

type Rep (ConwayTxCert era) = D1 ('MetaData "ConwayTxCert" "Cardano.Ledger.Conway.TxCert" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "ConwayTxCertDeleg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ConwayDelegCert (EraCrypto era)))) :+: (C1 ('MetaCons "ConwayTxCertPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PoolCert (EraCrypto era)))) :+: C1 ('MetaCons "ConwayTxCertGov" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ConwayGovCert (EraCrypto era))))))

Methods

from :: ConwayTxCert era -> Rep (ConwayTxCert era) x Source #

to :: Rep (ConwayTxCert era) x -> ConwayTxCert era Source #

Show (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

(ShelleyEraTxCert era, TxCert era ~ ConwayTxCert era) => FromCBOR (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

(Era era, Val (Value era)) => ToCBOR (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

toCBOR :: ConwayTxCert era -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (ConwayTxCert era) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [ConwayTxCert era] -> Size Source #

(ConwayEraTxCert era, TxCert era ~ ConwayTxCert era) => DecCBOR (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

(Era era, Val (Value era)) => EncCBOR (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

encCBOR :: ConwayTxCert era -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (ConwayTxCert era) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [ConwayTxCert era] -> Size Source #

Crypto (EraCrypto era) => NFData (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

rnf :: ConwayTxCert era -> () Source #

Eq (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Ord (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

NoThunks (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

noThunks :: Context -> ConwayTxCert era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ConwayTxCert era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ConwayTxCert era) -> String #

type Rep (ConwayTxCert era) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

type Rep (ConwayTxCert era) = D1 ('MetaData "ConwayTxCert" "Cardano.Ledger.Conway.TxCert" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "ConwayTxCertDeleg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ConwayDelegCert (EraCrypto era)))) :+: (C1 ('MetaCons "ConwayTxCertPool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PoolCert (EraCrypto era)))) :+: C1 ('MetaCons "ConwayTxCertGov" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ConwayGovCert (EraCrypto era))))))

data ConwayDelegCert c Source #

Certificates for registration and delegation of stake to Pools and DReps. Comparing to previous eras, there is now ability to:

  • Register and delegate with a single certificate: ConwayRegDelegCert
  • Ability to delegate to DReps with DelegVote and DelegStakeVote
  • Ability to specify the deposit amount. Deposits during registration and unregistration in Conway are optional, which will change in the future era. They are optional only for the smooth transition from Babbage to Conway. Validity of deposits is checked by the CERT rule.

Constructors

ConwayRegCert !(StakeCredential c) !(StrictMaybe Coin)

Register staking credential. Deposit, when present, must match the expected deposit amount specified by ppKeyDepositL in the protocol parameters.

ConwayUnRegCert !(StakeCredential c) !(StrictMaybe Coin)

De-Register the staking credential. Deposit, if present, must match the amount that was left as a deposit upon stake credential registration.

ConwayDelegCert !(StakeCredential c) !(Delegatee c)

Redelegate to another delegatee. Staking credential must already be registered.

ConwayRegDelegCert !(StakeCredential c) !(Delegatee c) !Coin

This is a new type of certificate, which allows to register staking credential and delegate within a single certificate. Deposit is required and must match the expected deposit amount specified by ppKeyDepositL in the protocol parameters.

Instances

Instances details
Crypto c => ToJSON (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

toJSON :: ConwayDelegCert c -> Value #

toEncoding :: ConwayDelegCert c -> Encoding #

toJSONList :: [ConwayDelegCert c] -> Value #

toEncodingList :: [ConwayDelegCert c] -> Encoding #

omitField :: ConwayDelegCert c -> Bool #

Generic (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Associated Types

type Rep (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Show (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

NFData (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

rnf :: ConwayDelegCert c -> () Source #

Eq (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Ord (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

NoThunks (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

noThunks :: Context -> ConwayDelegCert c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ConwayDelegCert c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ConwayDelegCert c) -> String #

type Rep (ConwayDelegCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

class ShelleyEraTxCert era => ConwayEraTxCert era where Source #

Methods

mkRegDepositTxCert :: StakeCredential (EraCrypto era) -> Coin -> TxCert era Source #

getRegDepositTxCert :: TxCert era -> Maybe (StakeCredential (EraCrypto era), Coin) Source #

mkUnRegDepositTxCert :: StakeCredential (EraCrypto era) -> Coin -> TxCert era Source #

getUnRegDepositTxCert :: TxCert era -> Maybe (StakeCredential (EraCrypto era), Coin) Source #

mkDelegTxCert :: StakeCredential (EraCrypto era) -> Delegatee (EraCrypto era) -> TxCert era Source #

getDelegTxCert :: TxCert era -> Maybe (StakeCredential (EraCrypto era), Delegatee (EraCrypto era)) Source #

mkRegDepositDelegTxCert :: StakeCredential (EraCrypto era) -> Delegatee (EraCrypto era) -> Coin -> TxCert era Source #

getRegDepositDelegTxCert :: TxCert era -> Maybe (StakeCredential (EraCrypto era), Delegatee (EraCrypto era), Coin) Source #

mkAuthCommitteeHotKeyTxCert :: Credential 'ColdCommitteeRole (EraCrypto era) -> Credential 'HotCommitteeRole (EraCrypto era) -> TxCert era Source #

getAuthCommitteeHotKeyTxCert :: TxCert era -> Maybe (Credential 'ColdCommitteeRole (EraCrypto era), Credential 'HotCommitteeRole (EraCrypto era)) Source #

mkResignCommitteeColdTxCert :: Credential 'ColdCommitteeRole (EraCrypto era) -> StrictMaybe (Anchor (EraCrypto era)) -> TxCert era Source #

getResignCommitteeColdTxCert :: TxCert era -> Maybe (Credential 'ColdCommitteeRole (EraCrypto era), StrictMaybe (Anchor (EraCrypto era))) Source #

mkRegDRepTxCert :: Credential 'DRepRole (EraCrypto era) -> Coin -> StrictMaybe (Anchor (EraCrypto era)) -> TxCert era Source #

getRegDRepTxCert :: TxCert era -> Maybe (Credential 'DRepRole (EraCrypto era), Coin, StrictMaybe (Anchor (EraCrypto era))) Source #

mkUnRegDRepTxCert :: Credential 'DRepRole (EraCrypto era) -> Coin -> TxCert era Source #

getUnRegDRepTxCert :: TxCert era -> Maybe (Credential 'DRepRole (EraCrypto era), Coin) Source #

mkUpdateDRepTxCert :: Credential 'DRepRole (EraCrypto era) -> StrictMaybe (Anchor (EraCrypto era)) -> TxCert era Source #

getUpdateDRepTxCert :: TxCert era -> Maybe (Credential 'DRepRole (EraCrypto era), StrictMaybe (Anchor (EraCrypto era))) Source #

Instances

Instances details
Crypto c => ConwayEraTxCert (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

mkRegDepositTxCert :: StakeCredential (EraCrypto (ConwayEra c)) -> Coin -> TxCert (ConwayEra c) Source #

getRegDepositTxCert :: TxCert (ConwayEra c) -> Maybe (StakeCredential (EraCrypto (ConwayEra c)), Coin) Source #

mkUnRegDepositTxCert :: StakeCredential (EraCrypto (ConwayEra c)) -> Coin -> TxCert (ConwayEra c) Source #

getUnRegDepositTxCert :: TxCert (ConwayEra c) -> Maybe (StakeCredential (EraCrypto (ConwayEra c)), Coin) Source #

mkDelegTxCert :: StakeCredential (EraCrypto (ConwayEra c)) -> Delegatee (EraCrypto (ConwayEra c)) -> TxCert (ConwayEra c) Source #

getDelegTxCert :: TxCert (ConwayEra c) -> Maybe (StakeCredential (EraCrypto (ConwayEra c)), Delegatee (EraCrypto (ConwayEra c))) Source #

mkRegDepositDelegTxCert :: StakeCredential (EraCrypto (ConwayEra c)) -> Delegatee (EraCrypto (ConwayEra c)) -> Coin -> TxCert (ConwayEra c) Source #

getRegDepositDelegTxCert :: TxCert (ConwayEra c) -> Maybe (StakeCredential (EraCrypto (ConwayEra c)), Delegatee (EraCrypto (ConwayEra c)), Coin) Source #

mkAuthCommitteeHotKeyTxCert :: Credential 'ColdCommitteeRole (EraCrypto (ConwayEra c)) -> Credential 'HotCommitteeRole (EraCrypto (ConwayEra c)) -> TxCert (ConwayEra c) Source #

getAuthCommitteeHotKeyTxCert :: TxCert (ConwayEra c) -> Maybe (Credential 'ColdCommitteeRole (EraCrypto (ConwayEra c)), Credential 'HotCommitteeRole (EraCrypto (ConwayEra c))) Source #

mkResignCommitteeColdTxCert :: Credential 'ColdCommitteeRole (EraCrypto (ConwayEra c)) -> StrictMaybe (Anchor (EraCrypto (ConwayEra c))) -> TxCert (ConwayEra c) Source #

getResignCommitteeColdTxCert :: TxCert (ConwayEra c) -> Maybe (Credential 'ColdCommitteeRole (EraCrypto (ConwayEra c)), StrictMaybe (Anchor (EraCrypto (ConwayEra c)))) Source #

mkRegDRepTxCert :: Credential 'DRepRole (EraCrypto (ConwayEra c)) -> Coin -> StrictMaybe (Anchor (EraCrypto (ConwayEra c))) -> TxCert (ConwayEra c) Source #

getRegDRepTxCert :: TxCert (ConwayEra c) -> Maybe (Credential 'DRepRole (EraCrypto (ConwayEra c)), Coin, StrictMaybe (Anchor (EraCrypto (ConwayEra c)))) Source #

mkUnRegDRepTxCert :: Credential 'DRepRole (EraCrypto (ConwayEra c)) -> Coin -> TxCert (ConwayEra c) Source #

getUnRegDRepTxCert :: TxCert (ConwayEra c) -> Maybe (Credential 'DRepRole (EraCrypto (ConwayEra c)), Coin) Source #

mkUpdateDRepTxCert :: Credential 'DRepRole (EraCrypto (ConwayEra c)) -> StrictMaybe (Anchor (EraCrypto (ConwayEra c))) -> TxCert (ConwayEra c) Source #

getUpdateDRepTxCert :: TxCert (ConwayEra c) -> Maybe (Credential 'DRepRole (EraCrypto (ConwayEra c)), StrictMaybe (Anchor (EraCrypto (ConwayEra c)))) Source #

data ConwayGovCert c Source #

Instances

Instances details
Crypto c => ToJSON (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

toJSON :: ConwayGovCert c -> Value #

toEncoding :: ConwayGovCert c -> Encoding #

toJSONList :: [ConwayGovCert c] -> Value #

toEncodingList :: [ConwayGovCert c] -> Encoding #

omitField :: ConwayGovCert c -> Bool #

Generic (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Associated Types

type Rep (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

type Rep (ConwayGovCert c) = D1 ('MetaData "ConwayGovCert" "Cardano.Ledger.Conway.TxCert" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) ((C1 ('MetaCons "ConwayRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'DRepRole c)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor c))))) :+: C1 ('MetaCons "ConwayUnRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'DRepRole c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))) :+: (C1 ('MetaCons "ConwayUpdateDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'DRepRole c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor c)))) :+: (C1 ('MetaCons "ConwayAuthCommitteeHotKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'ColdCommitteeRole c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'HotCommitteeRole c))) :+: C1 ('MetaCons "ConwayResignCommitteeColdKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'ColdCommitteeRole c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor c)))))))
Show (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Crypto c => NFData (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

rnf :: ConwayGovCert c -> () Source #

Eq (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Ord (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

NoThunks (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

Methods

noThunks :: Context -> ConwayGovCert c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ConwayGovCert c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ConwayGovCert c) -> String #

type Rep (ConwayGovCert c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

type Rep (ConwayGovCert c) = D1 ('MetaData "ConwayGovCert" "Cardano.Ledger.Conway.TxCert" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) ((C1 ('MetaCons "ConwayRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'DRepRole c)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor c))))) :+: C1 ('MetaCons "ConwayUnRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'DRepRole c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin))) :+: (C1 ('MetaCons "ConwayUpdateDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'DRepRole c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor c)))) :+: (C1 ('MetaCons "ConwayAuthCommitteeHotKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'ColdCommitteeRole c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'HotCommitteeRole c))) :+: C1 ('MetaCons "ConwayResignCommitteeColdKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'ColdCommitteeRole c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor c)))))))

data ConwayGenesis c Source #

Instances

Instances details
Crypto c => FromJSON (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

Methods

parseJSON :: Value -> Parser (ConwayGenesis c) #

parseJSONList :: Value -> Parser [ConwayGenesis c] #

omittedField :: Maybe (ConwayGenesis c) #

Crypto c => ToJSON (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

Methods

toJSON :: ConwayGenesis c -> Value #

toEncoding :: ConwayGenesis c -> Encoding #

toJSONList :: [ConwayGenesis c] -> Value #

toEncodingList :: [ConwayGenesis c] -> Encoding #

omitField :: ConwayGenesis c -> Bool #

Generic (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

Associated Types

type Rep (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

type Rep (ConwayGenesis c) = D1 ('MetaData "ConwayGenesis" "Cardano.Ledger.Conway.Genesis" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "ConwayGenesis" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cgUpgradePParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (UpgradeConwayPParams Identity)) :*: S1 ('MetaSel ('Just "cgConstitution") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Constitution (ConwayEra c)))) :*: (S1 ('MetaSel ('Just "cgCommittee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Committee (ConwayEra c))) :*: (S1 ('MetaSel ('Just "cgDelegs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (Credential 'Staking c) (Delegatee c))) :*: S1 ('MetaSel ('Just "cgInitialDReps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (Credential 'DRepRole c) (DRepState c)))))))
Show (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

Crypto c => DecCBOR (ConwayGenesis c)

Genesis are always encoded with the version of era they are defined in.

Instance details

Defined in Cardano.Ledger.Conway.Genesis

Crypto c => EncCBOR (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

Eq (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

Crypto c => NoThunks (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

Methods

noThunks :: Context -> ConwayGenesis c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ConwayGenesis c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ConwayGenesis c) -> String #

type Rep (ConwayGenesis c) 
Instance details

Defined in Cardano.Ledger.Conway.Genesis

type Rep (ConwayGenesis c) = D1 ('MetaData "ConwayGenesis" "Cardano.Ledger.Conway.Genesis" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "ConwayGenesis" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cgUpgradePParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (UpgradeConwayPParams Identity)) :*: S1 ('MetaSel ('Just "cgConstitution") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Constitution (ConwayEra c)))) :*: (S1 ('MetaSel ('Just "cgCommittee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Committee (ConwayEra c))) :*: (S1 ('MetaSel ('Just "cgDelegs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (Credential 'Staking c) (Delegatee c))) :*: S1 ('MetaSel ('Just "cgInitialDReps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (Credential 'DRepRole c) (DRepState c)))))))

data UpgradeConwayPParams (f :: Type -> Type) Source #

Instances

Instances details
FromJSON (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

ToJSON (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Generic (UpgradeConwayPParams f) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Associated Types

type Rep (UpgradeConwayPParams f) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type Rep (UpgradeConwayPParams f) = D1 ('MetaData "UpgradeConwayPParams" "Cardano.Ledger.Conway.PParams" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "UpgradeConwayPParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ucppPoolVotingThresholds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f PoolVotingThresholds)) :*: S1 ('MetaSel ('Just "ucppDRepVotingThresholds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f DRepVotingThresholds))) :*: (S1 ('MetaSel ('Just "ucppCommitteeMinSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f Word16)) :*: (S1 ('MetaSel ('Just "ucppCommitteeMaxTermLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f EpochInterval)) :*: S1 ('MetaSel ('Just "ucppGovActionLifetime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f EpochInterval))))) :*: ((S1 ('MetaSel ('Just "ucppGovActionDeposit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f Coin)) :*: S1 ('MetaSel ('Just "ucppDRepDeposit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f Coin))) :*: (S1 ('MetaSel ('Just "ucppDRepActivity") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f EpochInterval)) :*: (S1 ('MetaSel ('Just "ucppMinFeeRefScriptCostPerByte") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f NonNegativeInterval)) :*: S1 ('MetaSel ('Just "ucppPlutusV3CostModel") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f CostModel)))))))
Show (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Show (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

DecCBOR (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

EncCBOR (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Default (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NFData (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NFData (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Eq (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Eq (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Ord (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Ord (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NoThunks (UpgradeConwayPParams Identity) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NoThunks (UpgradeConwayPParams StrictMaybe) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type Rep (UpgradeConwayPParams f) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type Rep (UpgradeConwayPParams f) = D1 ('MetaData "UpgradeConwayPParams" "Cardano.Ledger.Conway.PParams" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "UpgradeConwayPParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ucppPoolVotingThresholds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f PoolVotingThresholds)) :*: S1 ('MetaSel ('Just "ucppDRepVotingThresholds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f DRepVotingThresholds))) :*: (S1 ('MetaSel ('Just "ucppCommitteeMinSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f Word16)) :*: (S1 ('MetaSel ('Just "ucppCommitteeMaxTermLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f EpochInterval)) :*: S1 ('MetaSel ('Just "ucppGovActionLifetime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f EpochInterval))))) :*: ((S1 ('MetaSel ('Just "ucppGovActionDeposit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f Coin)) :*: S1 ('MetaSel ('Just "ucppDRepDeposit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f Coin))) :*: (S1 ('MetaSel ('Just "ucppDRepActivity") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f EpochInterval)) :*: (S1 ('MetaSel ('Just "ucppMinFeeRefScriptCostPerByte") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f NonNegativeInterval)) :*: S1 ('MetaSel ('Just "ucppPlutusV3CostModel") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (HKD f CostModel)))))))

type family GovState era = (r :: Type) | r -> era Source #

Instances

Instances details
type GovState (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.PParams

type GovState (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

type GovState (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

type GovState (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance

type GovState (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.PParams

type GovState (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Governance

data GovActionId c Source #

Constructors

GovActionId 

Instances

Instances details
Crypto c => ToJSON (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: GovActionId c -> Value #

toEncoding :: GovActionId c -> Encoding #

toJSONList :: [GovActionId c] -> Value #

toEncodingList :: [GovActionId c] -> Encoding #

omitField :: GovActionId c -> Bool #

Crypto c => ToJSONKey (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSONKey :: ToJSONKeyFunction (GovActionId c)

toJSONKeyList :: ToJSONKeyFunction [GovActionId c]

Generic (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (GovActionId c) = D1 ('MetaData "GovActionId" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "GovActionId" 'PrefixI 'True) (S1 ('MetaSel ('Just "gaidTxId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxId c)) :*: S1 ('MetaSel ('Just "gaidGovActionIx") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 GovActionIx)))
Show (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Crypto c => DecCBOR (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Crypto c => EncCBOR (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

encCBOR :: GovActionId c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (GovActionId c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [GovActionId c] -> Size Source #

Crypto c => NFData (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: GovActionId c -> () Source #

Eq (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Ord (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

NoThunks (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

noThunks :: Context -> GovActionId c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> GovActionId c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (GovActionId c) -> String #

c ~ EraCrypto era => HasOKey (GovActionId c) (GovActionState era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

okeyL :: Lens' (GovActionState era) (GovActionId c) Source #

type Rep (GovActionId c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (GovActionId c) = D1 ('MetaData "GovActionId" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "GovActionId" 'PrefixI 'True) (S1 ('MetaSel ('Just "gaidTxId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxId c)) :*: S1 ('MetaSel ('Just "gaidGovActionIx") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 GovActionIx)))

data Vote Source #

Constructors

VoteNo 
VoteYes 
Abstain 

Instances

Instances details
ToJSON Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: Vote -> Value #

toEncoding :: Vote -> Encoding #

toJSONList :: [Vote] -> Value #

toEncodingList :: [Vote] -> Encoding #

omitField :: Vote -> Bool #

Bounded Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Enum Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Generic Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep Vote = D1 ('MetaData "Vote" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "VoteNo" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "VoteYes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Abstain" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: Vote -> Rep Vote x Source #

to :: Rep Vote x -> Vote Source #

Show Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

DecCBOR Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EncCBOR Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

encCBOR :: Vote -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy Vote -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Vote] -> Size Source #

NFData Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: Vote -> () Source #

Eq Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

(==) :: Vote -> Vote -> Bool Source #

(/=) :: Vote -> Vote -> Bool Source #

Ord Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

NoThunks Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

noThunks :: Context -> Vote -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Vote -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy Vote -> String #

type Rep Vote 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep Vote = D1 ('MetaData "Vote" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "VoteNo" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "VoteYes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Abstain" 'PrefixI 'False) (U1 :: Type -> Type)))

data Voter c Source #

Instances

Instances details
Crypto c => ToJSON (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: Voter c -> Value #

toEncoding :: Voter c -> Encoding #

toJSONList :: [Voter c] -> Value #

toEncodingList :: [Voter c] -> Encoding #

omitField :: Voter c -> Bool #

Crypto c => ToJSONKey (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSONKey :: ToJSONKeyFunction (Voter c)

toJSONKeyList :: ToJSONKeyFunction [Voter c]

Generic (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (Voter c) = D1 ('MetaData "Voter" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "CommitteeVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'HotCommitteeRole c))) :+: (C1 ('MetaCons "DRepVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'DRepRole c))) :+: C1 ('MetaCons "StakePoolVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)))))

Methods

from :: Voter c -> Rep (Voter c) x Source #

to :: Rep (Voter c) x -> Voter c Source #

Show (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Crypto c => DecCBOR (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Crypto c => EncCBOR (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

encCBOR :: Voter c -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (Voter c) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Voter c] -> Size Source #

NFData (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: Voter c -> () Source #

Eq (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

(==) :: Voter c -> Voter c -> Bool Source #

(/=) :: Voter c -> Voter c -> Bool Source #

Ord (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

compare :: Voter c -> Voter c -> Ordering Source #

(<) :: Voter c -> Voter c -> Bool Source #

(<=) :: Voter c -> Voter c -> Bool Source #

(>) :: Voter c -> Voter c -> Bool Source #

(>=) :: Voter c -> Voter c -> Bool Source #

max :: Voter c -> Voter c -> Voter c Source #

min :: Voter c -> Voter c -> Voter c Source #

NoThunks (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

noThunks :: Context -> Voter c -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Voter c -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (Voter c) -> String #

c ~ EraCrypto era => Indexable (Voter c) (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (Voter c) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (Voter c) = D1 ('MetaData "Voter" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "CommitteeVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'HotCommitteeRole c))) :+: (C1 ('MetaCons "DRepVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'DRepRole c))) :+: C1 ('MetaCons "StakePoolVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (KeyHash 'StakePool c)))))

data VotingProcedure era Source #

Constructors

VotingProcedure 

Instances

Instances details
EraPParams era => ToJSON (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: VotingProcedure era -> Value #

toEncoding :: VotingProcedure era -> Encoding #

toJSONList :: [VotingProcedure era] -> Value #

toEncodingList :: [VotingProcedure era] -> Encoding #

omitField :: VotingProcedure era -> Bool #

Generic (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (VotingProcedure era) = D1 ('MetaData "VotingProcedure" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "VotingProcedure" 'PrefixI 'True) (S1 ('MetaSel ('Just "vProcVote") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Vote) :*: S1 ('MetaSel ('Just "vProcAnchor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor (EraCrypto era))))))
Show (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => DecCBOR (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => EncCBOR (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

encCBOR :: VotingProcedure era -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (VotingProcedure era) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [VotingProcedure era] -> Size Source #

Crypto (EraCrypto era) => NFData (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: VotingProcedure era -> () Source #

Eq (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

NoThunks (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

noThunks :: Context -> VotingProcedure era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> VotingProcedure era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (VotingProcedure era) -> String #

type Rep (VotingProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (VotingProcedure era) = D1 ('MetaData "VotingProcedure" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "VotingProcedure" 'PrefixI 'True) (S1 ('MetaSel ('Just "vProcVote") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Vote) :*: S1 ('MetaSel ('Just "vProcAnchor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (Anchor (EraCrypto era))))))

data ProposalProcedure era Source #

Instances

Instances details
EraPParams era => ToJSON (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: ProposalProcedure era -> Value #

toEncoding :: ProposalProcedure era -> Encoding #

toJSONList :: [ProposalProcedure era] -> Value #

toEncodingList :: [ProposalProcedure era] -> Encoding #

omitField :: ProposalProcedure era -> Bool #

Generic (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (ProposalProcedure era) = D1 ('MetaData "ProposalProcedure" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "ProposalProcedure" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pProcDeposit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "pProcReturnAddr") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (RewardAccount (EraCrypto era)))) :*: (S1 ('MetaSel ('Just "pProcGovAction") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (GovAction era)) :*: S1 ('MetaSel ('Just "pProcAnchor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Anchor (EraCrypto era))))))
EraPParams era => Show (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EraPParams era => DecCBOR (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EraPParams era => EncCBOR (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EraPParams era => NFData (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: ProposalProcedure era -> () Source #

EraPParams era => Eq (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EraPParams era => Ord (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EraPParams era => NoThunks (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

noThunks :: Context -> ProposalProcedure era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ProposalProcedure era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (ProposalProcedure era) -> String #

type Rep (ProposalProcedure era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (ProposalProcedure era) = D1 ('MetaData "ProposalProcedure" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "ProposalProcedure" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pProcDeposit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "pProcReturnAddr") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (RewardAccount (EraCrypto era)))) :*: (S1 ('MetaSel ('Just "pProcGovAction") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (GovAction era)) :*: S1 ('MetaSel ('Just "pProcAnchor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Anchor (EraCrypto era))))))

newtype VotingProcedures era Source #

Instances

Instances details
EraPParams era => ToJSON (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: VotingProcedures era -> Value #

toEncoding :: VotingProcedures era -> Encoding #

toJSONList :: [VotingProcedures era] -> Value #

toEncodingList :: [VotingProcedures era] -> Encoding #

omitField :: VotingProcedures era -> Bool #

Generic (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (VotingProcedures era) = D1 ('MetaData "VotingProcedures" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'True) (C1 ('MetaCons "VotingProcedures" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVotingProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (Voter (EraCrypto era)) (Map (GovActionId (EraCrypto era)) (VotingProcedure era))))))
Show (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => DecCBOR (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => EncCBOR (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => NFData (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: VotingProcedures era -> () Source #

Eq (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

NoThunks (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

noThunks :: Context -> VotingProcedures era -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> VotingProcedures era -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (VotingProcedures era) -> String #

c ~ EraCrypto era => Indexable (Voter c) (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (VotingProcedures era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (VotingProcedures era) = D1 ('MetaData "VotingProcedures" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'True) (C1 ('MetaCons "VotingProcedures" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVotingProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (Voter (EraCrypto era)) (Map (GovActionId (EraCrypto era)) (VotingProcedure era))))))

data PoolVotingThresholds Source #

Instances

Instances details
FromJSON PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

ToJSON PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Generic PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Associated Types

type Rep PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type Rep PoolVotingThresholds = D1 ('MetaData "PoolVotingThresholds" "Cardano.Ledger.Conway.PParams" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "PoolVotingThresholds" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pvtMotionNoConfidence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "pvtCommitteeNormal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)) :*: (S1 ('MetaSel ('Just "pvtCommitteeNoConfidence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: (S1 ('MetaSel ('Just "pvtHardForkInitiation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "pvtPPSecurityGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)))))
Show PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

DecCBOR PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

EncCBOR PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Default PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NFData PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Eq PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Ord PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NoThunks PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Methods

noThunks :: Context -> PoolVotingThresholds -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> PoolVotingThresholds -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy PoolVotingThresholds -> String #

type Rep PoolVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type Rep PoolVotingThresholds = D1 ('MetaData "PoolVotingThresholds" "Cardano.Ledger.Conway.PParams" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "PoolVotingThresholds" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pvtMotionNoConfidence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "pvtCommitteeNormal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)) :*: (S1 ('MetaSel ('Just "pvtCommitteeNoConfidence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: (S1 ('MetaSel ('Just "pvtHardForkInitiation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "pvtPPSecurityGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)))))

data DRepVotingThresholds Source #

Instances

Instances details
FromJSON DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

ToJSON DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Generic DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Associated Types

type Rep DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type Rep DRepVotingThresholds = D1 ('MetaData "DRepVotingThresholds" "Cardano.Ledger.Conway.PParams" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "DRepVotingThresholds" 'PrefixI 'True) (((S1 ('MetaSel ('Just "dvtMotionNoConfidence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "dvtCommitteeNormal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)) :*: (S1 ('MetaSel ('Just "dvtCommitteeNoConfidence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: (S1 ('MetaSel ('Just "dvtUpdateToConstitution") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "dvtHardForkInitiation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)))) :*: ((S1 ('MetaSel ('Just "dvtPPNetworkGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "dvtPPEconomicGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)) :*: (S1 ('MetaSel ('Just "dvtPPTechnicalGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: (S1 ('MetaSel ('Just "dvtPPGovGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "dvtTreasuryWithdrawal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval))))))
Show DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

DecCBOR DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

EncCBOR DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Default DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NFData DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Eq DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Ord DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

NoThunks DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

Methods

noThunks :: Context -> DRepVotingThresholds -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> DRepVotingThresholds -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy DRepVotingThresholds -> String #

type Rep DRepVotingThresholds 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type Rep DRepVotingThresholds = D1 ('MetaData "DRepVotingThresholds" "Cardano.Ledger.Conway.PParams" "cardano-ledger-conway-1.16.1.0-abad22fe348abeab766aad8ca2442cc9d8fcf7ebde4323c701d467ff645717a4" 'False) (C1 ('MetaCons "DRepVotingThresholds" 'PrefixI 'True) (((S1 ('MetaSel ('Just "dvtMotionNoConfidence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "dvtCommitteeNormal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)) :*: (S1 ('MetaSel ('Just "dvtCommitteeNoConfidence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: (S1 ('MetaSel ('Just "dvtUpdateToConstitution") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "dvtHardForkInitiation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)))) :*: ((S1 ('MetaSel ('Just "dvtPPNetworkGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "dvtPPEconomicGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)) :*: (S1 ('MetaSel ('Just "dvtPPTechnicalGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: (S1 ('MetaSel ('Just "dvtPPGovGroup") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval) :*: S1 ('MetaSel ('Just "dvtTreasuryWithdrawal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval))))))

drepExpiryL :: forall c f. Functor f => (EpochNo -> f EpochNo) -> DRepState c -> f (DRepState c) Source #

drepAnchorL :: forall c f. Functor f => (StrictMaybe (Anchor c) -> f (StrictMaybe (Anchor c))) -> DRepState c -> f (DRepState c) Source #

drepDepositL :: forall c f. Functor f => (Coin -> f Coin) -> DRepState c -> f (DRepState c) Source #

data Annotated b a Source #

Constructors

Annotated 

Fields

Instances

Instances details
Bifunctor Annotated 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

bimap :: (a -> b) -> (c -> d) -> Annotated a c -> Annotated b d Source #

first :: (a -> b) -> Annotated a c -> Annotated b c Source #

second :: (b -> c) -> Annotated a b -> Annotated a c Source #

Functor (Annotated b) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

fmap :: (a -> b0) -> Annotated b a -> Annotated b b0 Source #

(<$) :: a -> Annotated b b0 -> Annotated b a Source #

FromJSON b => FromJSON (Annotated b ()) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

parseJSON :: Value -> Parser (Annotated b ()) #

parseJSONList :: Value -> Parser [Annotated b ()] #

omittedField :: Maybe (Annotated b ()) #

ToJSON b => ToJSON (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

toJSON :: Annotated b a -> Value #

toEncoding :: Annotated b a -> Encoding #

toJSONList :: [Annotated b a] -> Value #

toEncodingList :: [Annotated b a] -> Encoding #

omitField :: Annotated b a -> Bool #

Generic (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Associated Types

type Rep (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

type Rep (Annotated b a) = D1 ('MetaData "Annotated" "Cardano.Ledger.Binary.Decoding.Annotated" "cardano-ledger-binary-1.3.4.0-b0db08c54972215c972ae6181a5484353b6b477d1320f98c132bfb2ec234259c" 'False) (C1 ('MetaCons "Annotated" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAnnotated") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 b) :*: S1 ('MetaSel ('Just "annotation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))

Methods

from :: Annotated b a -> Rep (Annotated b a) x Source #

to :: Rep (Annotated b a) x -> Annotated b a Source #

(Show b, Show a) => Show (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Decoded (Annotated b ByteString) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Associated Types

type BaseType (Annotated b ByteString) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

(NFData b, NFData a) => NFData (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

rnf :: Annotated b a -> () Source #

(Eq b, Eq a) => Eq (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

(==) :: Annotated b a -> Annotated b a -> Bool Source #

(/=) :: Annotated b a -> Annotated b a -> Bool Source #

(Eq a, Ord b) => Ord (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

compare :: Annotated b a -> Annotated b a -> Ordering Source #

(<) :: Annotated b a -> Annotated b a -> Bool Source #

(<=) :: Annotated b a -> Annotated b a -> Bool Source #

(>) :: Annotated b a -> Annotated b a -> Bool Source #

(>=) :: Annotated b a -> Annotated b a -> Bool Source #

max :: Annotated b a -> Annotated b a -> Annotated b a Source #

min :: Annotated b a -> Annotated b a -> Annotated b a Source #

(NoThunks b, NoThunks a) => NoThunks (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

noThunks :: Context -> Annotated b a -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Annotated b a -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (Annotated b a) -> String #

HasSignTag (Annotated ToSign ByteString) 
Instance details

Defined in Ouroboros.Consensus.Byron.Crypto.DSIGN

type Rep (Annotated b a) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

type Rep (Annotated b a) = D1 ('MetaData "Annotated" "Cardano.Ledger.Binary.Decoding.Annotated" "cardano-ledger-binary-1.3.4.0-b0db08c54972215c972ae6181a5484353b6b477d1320f98c132bfb2ec234259c" 'False) (C1 ('MetaCons "Annotated" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAnnotated") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 b) :*: S1 ('MetaSel ('Just "annotation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))
type BaseType (Annotated b ByteString) 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

data Tx Source #

Transaction

NB: transaction witnesses are stored separately

Constructors

UnsafeTx 

Fields

Instances

Instances details
ToJSON Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

toJSON :: Tx -> Value #

toEncoding :: Tx -> Encoding #

toJSONList :: [Tx] -> Value #

toEncodingList :: [Tx] -> Encoding #

omitField :: Tx -> Bool #

Generic Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Associated Types

type Rep Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep Tx = D1 ('MetaData "Tx" "Cardano.Chain.UTxO.Tx" "cardano-ledger-byron-1.0.1.0-ee1397b2c0d43b85f835fc34d15006ff5cedf035a94d0c96915a880ab6ff4d0e" 'False) (C1 ('MetaCons "UnsafeTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "txInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonEmpty TxIn)) :*: (S1 ('MetaSel ('Just "txOutputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonEmpty TxOut)) :*: S1 ('MetaSel ('Just "txAttributes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAttributes))))

Methods

from :: Tx -> Rep Tx x Source #

to :: Rep Tx x -> Tx Source #

Show Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

FromCBOR Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

ToCBOR Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

toCBOR :: Tx -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy Tx -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Tx] -> Size Source #

DecCBOR Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

EncCBOR Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

encCBOR :: Tx -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy Tx -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Tx] -> Size Source #

NFData Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

rnf :: Tx -> () Source #

Buildable Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

build :: Tx -> Builder

Eq Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

(==) :: Tx -> Tx -> Bool Source #

(/=) :: Tx -> Tx -> Bool Source #

Ord Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

Methods

compare :: Tx -> Tx -> Ordering Source #

(<) :: Tx -> Tx -> Bool Source #

(<=) :: Tx -> Tx -> Bool Source #

(>) :: Tx -> Tx -> Bool Source #

(>=) :: Tx -> Tx -> Bool Source #

max :: Tx -> Tx -> Tx Source #

min :: Tx -> Tx -> Tx Source #

type Rep Tx 
Instance details

Defined in Cardano.Chain.UTxO.Tx

type Rep Tx = D1 ('MetaData "Tx" "Cardano.Chain.UTxO.Tx" "cardano-ledger-byron-1.0.1.0-ee1397b2c0d43b85f835fc34d15006ff5cedf035a94d0c96915a880ab6ff4d0e" 'False) (C1 ('MetaCons "UnsafeTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "txInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonEmpty TxIn)) :*: (S1 ('MetaSel ('Just "txOutputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonEmpty TxOut)) :*: S1 ('MetaSel ('Just "txAttributes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxAttributes))))

serialize' :: EncCBOR a => Version -> a -> ByteString Source #

Serialize a Haskell value to an external binary representation.

The output is represented as a strict ByteString.

toPlainDecoder :: Version -> Decoder s a -> Decoder s a Source #

Extract the underlying Decoder by specifying the concrete version to be used.

data ByteSpan Source #

A pair of offsets delimiting the beginning and end of a substring of a ByteString

Instances

Instances details
ToJSON ByteSpan 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Methods

toJSON :: ByteSpan -> Value #

toEncoding :: ByteSpan -> Encoding #

toJSONList :: [ByteSpan] -> Value #

toEncodingList :: [ByteSpan] -> Encoding #

omitField :: ByteSpan -> Bool #

Generic ByteSpan 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

Associated Types

type Rep ByteSpan 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

type Rep ByteSpan = D1 ('MetaData "ByteSpan" "Cardano.Ledger.Binary.Decoding.Annotated" "cardano-ledger-binary-1.3.4.0-b0db08c54972215c972ae6181a5484353b6b477d1320f98c132bfb2ec234259c" 'False) (C1 ('MetaCons "ByteSpan" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByteOffset) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByteOffset)))
Show ByteSpan 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

FromCBOR (ABody ByteSpan) 
Instance details

Defined in Cardano.Chain.Block.Body

FromCBOR (ABlockSignature ByteSpan) 
Instance details

Defined in Cardano.Chain.Block.Header

FromCBOR (ACertificate ByteSpan) 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

FromCBOR (APayload ByteSpan) 
Instance details

Defined in Cardano.Chain.Delegation.Payload

FromCBOR (AMempoolPayload ByteSpan) 
Instance details

Defined in Cardano.Chain.MempoolPayload

FromCBOR (ATxAux ByteSpan) 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

FromCBOR (ATxPayload ByteSpan) 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

FromCBOR (APayload ByteSpan) 
Instance details

Defined in Cardano.Chain.Update.Payload

FromCBOR (AProposal ByteSpan) 
Instance details

Defined in Cardano.Chain.Update.Proposal

FromCBOR (AVote ByteSpan) 
Instance details

Defined in Cardano.Chain.Update.Vote

DecCBOR (ABody ByteSpan) 
Instance details

Defined in Cardano.Chain.Block.Body

DecCBOR (ABlockSignature ByteSpan) 
Instance details

Defined in Cardano.Chain.Block.Header

DecCBOR (ACertificate ByteSpan) 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

DecCBOR (APayload ByteSpan) 
Instance details

Defined in Cardano.Chain.Delegation.Payload

DecCBOR (AMempoolPayload ByteSpan) 
Instance details

Defined in Cardano.Chain.MempoolPayload

DecCBOR (ATxAux ByteSpan) 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

DecCBOR (ATxPayload ByteSpan) 
Instance details

Defined in Cardano.Chain.UTxO.TxPayload

DecCBOR (APayload ByteSpan) 
Instance details

Defined in Cardano.Chain.Update.Payload

DecCBOR (AProposal ByteSpan) 
Instance details

Defined in Cardano.Chain.Update.Proposal

DecCBOR (AVote ByteSpan) 
Instance details

Defined in Cardano.Chain.Update.Vote

type Rep ByteSpan 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.Annotated

type Rep ByteSpan = D1 ('MetaData "ByteSpan" "Cardano.Ledger.Binary.Decoding.Annotated" "cardano-ledger-binary-1.3.4.0-b0db08c54972215c972ae6181a5484353b6b477d1320f98c132bfb2ec234259c" 'False) (C1 ('MetaCons "ByteSpan" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByteOffset) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 ByteOffset)))

slice :: ByteString -> ByteSpan -> ByteString Source #

Extract a substring of a given ByteString corresponding to the offsets.

data Decoder s a #

Instances

Instances details
MonadFail (Decoder s) 
Instance details

Defined in Codec.CBOR.Decoding

Methods

fail :: String -> Decoder s a Source #

Applicative (Decoder s) 
Instance details

Defined in Codec.CBOR.Decoding

Methods

pure :: a -> Decoder s a Source #

(<*>) :: Decoder s (a -> b) -> Decoder s a -> Decoder s b Source #

liftA2 :: (a -> b -> c) -> Decoder s a -> Decoder s b -> Decoder s c Source #

(*>) :: Decoder s a -> Decoder s b -> Decoder s b Source #

(<*) :: Decoder s a -> Decoder s b -> Decoder s a Source #

Functor (Decoder s) 
Instance details

Defined in Codec.CBOR.Decoding

Methods

fmap :: (a -> b) -> Decoder s a -> Decoder s b Source #

(<$) :: a -> Decoder s b -> Decoder s a Source #

Monad (Decoder s) 
Instance details

Defined in Codec.CBOR.Decoding

Methods

(>>=) :: Decoder s a -> (a -> Decoder s b) -> Decoder s b Source #

(>>) :: Decoder s a -> Decoder s b -> Decoder s b Source #

return :: a -> Decoder s a Source #

newtype CoinPerByte Source #

Constructors

CoinPerByte 

Fields

Instances

Instances details
FromJSON CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Methods

parseJSON :: Value -> Parser CoinPerByte #

parseJSONList :: Value -> Parser [CoinPerByte] #

omittedField :: Maybe CoinPerByte #

ToJSON CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Methods

toJSON :: CoinPerByte -> Value #

toEncoding :: CoinPerByte -> Encoding #

toJSONList :: [CoinPerByte] -> Value #

toEncodingList :: [CoinPerByte] -> Encoding #

omitField :: CoinPerByte -> Bool #

Show CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

DecCBOR CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

EncCBOR CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

NFData CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Methods

rnf :: CoinPerByte -> () Source #

Eq CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Ord CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

NoThunks CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Methods

noThunks :: Context -> CoinPerByte -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> CoinPerByte -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy CoinPerByte -> String #

newtype CoinPerWord Source #

Constructors

CoinPerWord 

Fields

Instances

Instances details
FromJSON CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Methods

parseJSON :: Value -> Parser CoinPerWord #

parseJSONList :: Value -> Parser [CoinPerWord] #

omittedField :: Maybe CoinPerWord #

ToJSON CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Methods

toJSON :: CoinPerWord -> Value #

toEncoding :: CoinPerWord -> Encoding #

toJSONList :: [CoinPerWord] -> Value #

toEncodingList :: [CoinPerWord] -> Encoding #

omitField :: CoinPerWord -> Bool #

Show CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

DecCBOR CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

EncCBOR CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NFData CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Methods

rnf :: CoinPerWord -> () Source #

Eq CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Ord CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

NoThunks CoinPerWord 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

Methods

noThunks :: Context -> CoinPerWord -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> CoinPerWord -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy CoinPerWord -> String #

data Prices Source #

Prices per execution unit

Instances

Instances details
FromJSON Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

parseJSON :: Value -> Parser Prices #

parseJSONList :: Value -> Parser [Prices] #

omittedField :: Maybe Prices #

ToJSON Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

toJSON :: Prices -> Value #

toEncoding :: Prices -> Encoding #

toJSONList :: [Prices] -> Value #

toEncodingList :: [Prices] -> Encoding #

omitField :: Prices -> Bool #

Generic Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Associated Types

type Rep Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

type Rep Prices = D1 ('MetaData "Prices" "Cardano.Ledger.Plutus.ExUnits" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "Prices" 'PrefixI 'True) (S1 ('MetaSel ('Just "prMem") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonNegativeInterval) :*: S1 ('MetaSel ('Just "prSteps") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonNegativeInterval)))
Show Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

DecCBOR Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

EncCBOR Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

encCBOR :: Prices -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy Prices -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Prices] -> Size Source #

ToPlutusData Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

NFData Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

rnf :: Prices -> () Source #

Eq Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Ord Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

NoThunks Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

noThunks :: Context -> Prices -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Prices -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy Prices -> String #

type Rep Prices 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

type Rep Prices = D1 ('MetaData "Prices" "Cardano.Ledger.Plutus.ExUnits" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "Prices" 'PrefixI 'True) (S1 ('MetaSel ('Just "prMem") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonNegativeInterval) :*: S1 ('MetaSel ('Just "prSteps") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonNegativeInterval)))

data CostModels Source #

For a known version of Plutus, attempting to construct a cost model with too few parameters (depending on the version) will result in an error. CostModelApplyError exists to collect these errors in the CostModels type. The CostModels type itself needs to be flexible enough to accept any map of Word8 to '[Int64]', so that cost models can be placed in the protocol parameters ahead of changes to the Plutus evaluation context. In this way, serializing a cost model, updating software, and deserializing can result in errors going away.

Additionally, CostModels needs to be able to store cost models for future version of Plutus, which we cannot yet even validate. These are stored in costModelsUnknown.

Instances

Instances details
FromJSON CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Methods

parseJSON :: Value -> Parser CostModels #

parseJSONList :: Value -> Parser [CostModels] #

omittedField :: Maybe CostModels #

ToJSON CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Methods

toJSON :: CostModels -> Value #

toEncoding :: CostModels -> Encoding #

toJSONList :: [CostModels] -> Value #

toEncodingList :: [CostModels] -> Encoding #

omitField :: CostModels -> Bool #

Monoid CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Semigroup CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Generic CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Associated Types

type Rep CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

type Rep CostModels = D1 ('MetaData "CostModels" "Cardano.Ledger.Plutus.CostModels" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "CostModels" 'PrefixI 'True) (S1 ('MetaSel ('Just "_costModelsValid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map Language CostModel)) :*: S1 ('MetaSel ('Just "_costModelsUnknown") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map Word8 [Int64]))))
Show CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

DecCBOR CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

EncCBOR CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

ToPlutusData CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

NFData CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Methods

rnf :: CostModels -> () Source #

Eq CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Ord CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

NoThunks CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Methods

noThunks :: Context -> CostModels -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> CostModels -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy CostModels -> String #

type Rep CostModels 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

type Rep CostModels = D1 ('MetaData "CostModels" "Cardano.Ledger.Plutus.CostModels" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "CostModels" 'PrefixI 'True) (S1 ('MetaSel ('Just "_costModelsValid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map Language CostModel)) :*: S1 ('MetaSel ('Just "_costModelsUnknown") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map Word8 [Int64]))))

data AlonzoGenesis Source #

All configuration that is necessary to bootstrap AlonzoEra from ShelleyGenesis

Instances

Instances details
FromJSON AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

Methods

parseJSON :: Value -> Parser AlonzoGenesis #

parseJSONList :: Value -> Parser [AlonzoGenesis] #

omittedField :: Maybe AlonzoGenesis #

ToJSON AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

Methods

toJSON :: AlonzoGenesis -> Value #

toEncoding :: AlonzoGenesis -> Encoding #

toJSONList :: [AlonzoGenesis] -> Value #

toEncodingList :: [AlonzoGenesis] -> Encoding #

omitField :: AlonzoGenesis -> Bool #

Generic AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

Associated Types

type Rep AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

type Rep AlonzoGenesis = D1 ('MetaData "AlonzoGenesis" "Cardano.Ledger.Alonzo.Genesis" "cardano-ledger-alonzo-1.10.2.0-71cf1339965996875f0674fa770dc68a15d6642b63a3e5c2701c56574ee87518" 'True) (C1 ('MetaCons "AlonzoGenesisWrapper" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlonzoGenesisWrapper") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (UpgradeAlonzoPParams Identity))))
Show AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

FromCBOR AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

ToCBOR AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

DecCBOR AlonzoGenesis

Genesis types are always encoded with the version of era they are defined in.

Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

EncCBOR AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

Eq AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

NoThunks AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

Methods

noThunks :: Context -> AlonzoGenesis -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> AlonzoGenesis -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy AlonzoGenesis -> String #

type Rep AlonzoGenesis 
Instance details

Defined in Cardano.Ledger.Alonzo.Genesis

type Rep AlonzoGenesis = D1 ('MetaData "AlonzoGenesis" "Cardano.Ledger.Alonzo.Genesis" "cardano-ledger-alonzo-1.10.2.0-71cf1339965996875f0674fa770dc68a15d6642b63a3e5c2701c56574ee87518" 'True) (C1 ('MetaCons "AlonzoGenesisWrapper" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlonzoGenesisWrapper") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (UpgradeAlonzoPParams Identity))))

boundRational :: BoundedRational r => Rational -> Maybe r Source #

Returns Nothing when supplied value is not within bounds or when precision is too high to be represented by the underlying type

Example

Expand
>>> :set -XTypeApplications
>>> import Data.Ratio
>>> boundRational @UnitInterval $ 2 % 3
Just (2 % 3)
>>> boundRational @UnitInterval (-0.5)
Nothing
>>> boundRational @UnitInterval (1.5)
Nothing
>>> boundRational @UnitInterval 0
Just (0 % 1)
>>> boundRational @PositiveUnitInterval 0
Nothing

unboundRational :: BoundedRational r => r -> Rational Source #

Promote bounded rational type into the unbounded Rational.

data DnsName Source #

Instances

Instances details
FromJSON DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

parseJSON :: Value -> Parser DnsName #

parseJSONList :: Value -> Parser [DnsName] #

omittedField :: Maybe DnsName #

ToJSON DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toJSON :: DnsName -> Value #

toEncoding :: DnsName -> Encoding #

toJSONList :: [DnsName] -> Value #

toEncodingList :: [DnsName] -> Encoding #

omitField :: DnsName -> Bool #

Generic DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep DnsName = D1 ('MetaData "DnsName" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "DnsName" 'PrefixI 'True) (S1 ('MetaSel ('Just "dnsToText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))
Show DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR :: DnsName -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy DnsName -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [DnsName] -> Size Source #

NFData DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf :: DnsName -> () Source #

Eq DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Ord DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

noThunks :: Context -> DnsName -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> DnsName -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy DnsName -> String #

type Rep DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep DnsName = D1 ('MetaData "DnsName" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "DnsName" 'PrefixI 'True) (S1 ('MetaSel ('Just "dnsToText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype EpochInterval Source #

Constructors

EpochInterval 

Instances

Instances details
FromJSON EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

Methods

parseJSON :: Value -> Parser EpochInterval #

parseJSONList :: Value -> Parser [EpochInterval] #

omittedField :: Maybe EpochInterval #

ToJSON EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toJSON :: EpochInterval -> Value #

toEncoding :: EpochInterval -> Encoding #

toJSONList :: [EpochInterval] -> Value #

toEncodingList :: [EpochInterval] -> Encoding #

omitField :: EpochInterval -> Bool #

Generic EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochInterval = D1 ('MetaData "EpochInterval" "Cardano.Slotting.Slot" "cardano-slotting-0.2.0.0-886a3531c066a8cf893d904908b2d4b5847cecce4ba51139f879cc7ba241da23" 'True) (C1 ('MetaCons "EpochInterval" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))
Show EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

DecCBOR EpochInterval 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.DecCBOR

EncCBOR EpochInterval 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

ToPlutusData EpochInterval 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

NFData EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

Methods

rnf :: EpochInterval -> () Source #

Eq EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

Ord EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

NoThunks EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

Methods

noThunks :: Context -> EpochInterval -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> EpochInterval -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy EpochInterval -> String #

type Rep EpochInterval 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochInterval = D1 ('MetaData "EpochInterval" "Cardano.Slotting.Slot" "cardano-slotting-0.2.0.0-886a3531c066a8cf893d904908b2d4b5847cecce4ba51139f879cc7ba241da23" 'True) (C1 ('MetaCons "EpochInterval" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

textToDns :: MonadFail m => Int -> Text -> m DnsName Source #

Turn a Text into a DnsName, fail if the Text has more than n Bytes

data Url Source #

Instances

Instances details
FromJSON Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

parseJSON :: Value -> Parser Url #

parseJSONList :: Value -> Parser [Url] #

omittedField :: Maybe Url #

ToJSON Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toJSON :: Url -> Value #

toEncoding :: Url -> Encoding #

toJSONList :: [Url] -> Value #

toEncodingList :: [Url] -> Encoding #

omitField :: Url -> Bool #

Generic Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Url = D1 ('MetaData "Url" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "Url" 'PrefixI 'True) (S1 ('MetaSel ('Just "urlToText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Methods

from :: Url -> Rep Url x Source #

to :: Rep Url x -> Url Source #

Show Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR :: Url -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy Url -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [Url] -> Size Source #

NFData Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf :: Url -> () Source #

Eq Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==) :: Url -> Url -> Bool Source #

(/=) :: Url -> Url -> Bool Source #

Ord Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compare :: Url -> Url -> Ordering Source #

(<) :: Url -> Url -> Bool Source #

(<=) :: Url -> Url -> Bool Source #

(>) :: Url -> Url -> Bool Source #

(>=) :: Url -> Url -> Bool Source #

max :: Url -> Url -> Url Source #

min :: Url -> Url -> Url Source #

NoThunks Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

noThunks :: Context -> Url -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Url -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy Url -> String #

type Rep Url 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Url = D1 ('MetaData "Url" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "Url" 'PrefixI 'True) (S1 ('MetaSel ('Just "urlToText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

textToUrl :: MonadFail m => Int -> Text -> m Url Source #

Turn a Text into a Url, fail if the Text has more than n Bytes

data ProtVer Source #

Constructors

ProtVer 

Fields

Instances

Instances details
FromJSON ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

parseJSON :: Value -> Parser ProtVer #

parseJSONList :: Value -> Parser [ProtVer] #

omittedField :: Maybe ProtVer #

ToJSON ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toJSON :: ProtVer -> Value #

toEncoding :: ProtVer -> Encoding #

toJSONList :: [ProtVer] -> Value #

toEncodingList :: [ProtVer] -> Encoding #

omitField :: ProtVer -> Bool #

Generic ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep ProtVer = D1 ('MetaData "ProtVer" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "ProtVer" 'PrefixI 'True) (S1 ('MetaSel ('Just "pvMajor") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Version) :*: S1 ('MetaSel ('Just "pvMinor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural)))
Show ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

FromCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toCBOR :: ProtVer -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy ProtVer -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [ProtVer] -> Size Source #

DecCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR :: ProtVer -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy ProtVer -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [ProtVer] -> Size Source #

DecCBORGroup ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBORGroup ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToPlutusData ProtVer 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

NFData ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf :: ProtVer -> () Source #

Eq ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Ord ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

noThunks :: Context -> ProtVer -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> ProtVer -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy ProtVer -> String #

type Rep ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep ProtVer = D1 ('MetaData "ProtVer" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'False) (C1 ('MetaCons "ProtVer" 'PrefixI 'True) (S1 ('MetaSel ('Just "pvMajor") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Version) :*: S1 ('MetaSel ('Just "pvMinor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural)))

data UnitInterval Source #

Type to represent a value in the unit interval [0; 1]

Instances

Instances details
FromJSON UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

parseJSON :: Value -> Parser UnitInterval #

parseJSONList :: Value -> Parser [UnitInterval] #

omittedField :: Maybe UnitInterval #

ToJSON UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toJSON :: UnitInterval -> Value #

toEncoding :: UnitInterval -> Encoding #

toJSONList :: [UnitInterval] -> Value #

toEncodingList :: [UnitInterval] -> Encoding #

omitField :: UnitInterval -> Bool #

Bounded UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep UnitInterval = D1 ('MetaData "UnitInterval" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "UnitInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BoundedRatio UnitInterval Word64))))
Show UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

BoundedRational UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToPlutusData UnitInterval 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

IsRatio UnitInterval 
Instance details

Defined in Test.Cardano.Ledger.Core.Rational

Default UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

def :: UnitInterval #

NFData UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf :: UnitInterval -> () Source #

Eq UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Ord UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

noThunks :: Context -> UnitInterval -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> UnitInterval -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy UnitInterval -> String #

Integral a => Bounded (BoundedRatio UnitInterval a) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

minBound :: BoundedRatio UnitInterval a Source #

maxBound :: BoundedRatio UnitInterval a Source #

type Rep UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep UnitInterval = D1 ('MetaData "UnitInterval" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "UnitInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BoundedRatio UnitInterval Word64))))

mkVersion :: (Integral i, MonadFail m) => i -> m Version Source #

Construct a Version and fail if the supplied value is not a supported version number.

data NonNegativeInterval Source #

Type to represent a value in the interval [0; +∞)

Instances

Instances details
FromJSON NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Bounded NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep NonNegativeInterval = D1 ('MetaData "NonNegativeInterval" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "NonNegativeInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BoundedRatio NonNegativeInterval Word64))))
Show NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

BoundedRational NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToPlutusData NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.Plutus.ToPlutusData

IsRatio NonNegativeInterval 
Instance details

Defined in Test.Cardano.Ledger.Core.Rational

NFData NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Eq NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Ord NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

noThunks :: Context -> NonNegativeInterval -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> NonNegativeInterval -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy NonNegativeInterval -> String #

Bounded (BoundedRatio NonNegativeInterval Word64) 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep NonNegativeInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep NonNegativeInterval = D1 ('MetaData "NonNegativeInterval" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.14.0.0-e482da903ea0a556be8188c8742208d281f0c2d201fb32a1902f0b24a982d14a" 'True) (C1 ('MetaCons "NonNegativeInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BoundedRatio NonNegativeInterval Word64))))

hashToBytes :: Hash h a -> ByteString Source #

The representation of the hash as bytes.

hashFromBytes Source #

Arguments

:: HashAlgorithm h 
=> ByteString

It must have an exact length, as given by sizeHash.

-> Maybe (Hash h a) 

Make a hash from it bytes representation.

class (HashAlgorithm (HASH c), HashAlgorithm (ADDRHASH c), DSIGNAlgorithm (DSIGN c), KESAlgorithm (KES c), VRFAlgorithm (VRF c), ContextDSIGN (DSIGN c) ~ (), ContextKES (KES c) ~ (), ContextVRF (VRF c) ~ (), Typeable c) => Crypto c Source #

Instances

Instances details
Crypto StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

Associated Types

type HASH StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type ADDRHASH StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type DSIGN StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type KES StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type VRF StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

data StandardCrypto Source #

The same crypto used on the net

Instances

Instances details
Crypto StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

Associated Types

type HASH StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type ADDRHASH StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type DSIGN StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type KES StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type VRF StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

PraosCrypto StandardCrypto 
Instance details

Defined in Cardano.Protocol.TPraos.API

PraosCrypto StandardCrypto 
Instance details

Defined in Ouroboros.Consensus.Protocol.Praos

(CardanoHardForkConstraints StandardCrypto, IOLike m) => Protocol m (CardanoBlock StandardCrypto) Source # 
Instance details

Defined in Cardano.Api.Protocol

(IOLike m, LedgerSupportsProtocol (ShelleyBlock (TPraos StandardCrypto) (ShelleyEra StandardCrypto))) => Protocol m (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) Source # 
Instance details

Defined in Cardano.Api.Protocol

ToJSON (ChainDepState StandardCrypto) Source # 
Instance details

Defined in Cardano.Api.Orphans

ToJSON (PrtclState StandardCrypto) Source # 
Instance details

Defined in Cardano.Api.Orphans

ToJSON (PraosState StandardCrypto) Source # 
Instance details

Defined in Cardano.Api.Orphans

ToJSON (TPraosState StandardCrypto) Source # 
Instance details

Defined in Cardano.Api.Orphans

CardanoHardForkConstraints StandardCrypto => ProtocolClient (CardanoBlock StandardCrypto) Source # 
Instance details

Defined in Cardano.Api.Protocol

LedgerSupportsProtocol (ShelleyBlock (TPraos StandardCrypto) (ShelleyEra StandardCrypto)) => ProtocolClient (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) Source # 
Instance details

Defined in Cardano.Api.Protocol

type ADDRHASH StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type DSIGN StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type HASH StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type KES StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

type VRF StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

data ProtocolClientInfoArgs (CardanoBlock StandardCrypto) Source # 
Instance details

Defined in Cardano.Api.Protocol

data ProtocolInfoArgs (CardanoBlock StandardCrypto) Source # 
Instance details

Defined in Cardano.Api.Protocol

data ProtocolClientInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) Source # 
Instance details

Defined in Cardano.Api.Protocol

data ProtocolInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) Source # 
Instance details

Defined in Cardano.Api.Protocol

type family ADDRHASH c Source #

Instances

Instances details
type ADDRHASH StandardCrypto 
Instance details

Defined in Cardano.Ledger.Crypto

newtype EpochNo Source #

An epoch, i.e. the number of the epoch.

Constructors

EpochNo 

Fields

Instances

Instances details
FromJSON EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

parseJSON :: Value -> Parser EpochNo #

parseJSONList :: Value -> Parser [EpochNo] #

omittedField :: Maybe EpochNo #

ToJSON EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toJSON :: EpochNo -> Value #

toEncoding :: EpochNo -> Encoding #

toJSONList :: [EpochNo] -> Value #

toEncodingList :: [EpochNo] -> Encoding #

omitField :: EpochNo -> Bool #

Enum EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Generic EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo = D1 ('MetaData "EpochNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.0.0-886a3531c066a8cf893d904908b2d4b5847cecce4ba51139f879cc7ba241da23" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))
Show EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

toCBOR :: EpochNo -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy EpochNo -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [EpochNo] -> Size Source #

DecCBOR EpochNo 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.DecCBOR

EncCBOR EpochNo 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

encCBOR :: EpochNo -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy EpochNo -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [EpochNo] -> Size Source #

NFData EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

rnf :: EpochNo -> () Source #

Eq EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Ord EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

NoThunks EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

Methods

noThunks :: Context -> EpochNo -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> EpochNo -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy EpochNo -> String #

Condense EpochNo 
Instance details

Defined in Ouroboros.Consensus.Util.Condense

Serialise EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo 
Instance details

Defined in Cardano.Slotting.Slot

type Rep EpochNo = D1 ('MetaData "EpochNo" "Cardano.Slotting.Slot" "cardano-slotting-0.2.0.0-886a3531c066a8cf893d904908b2d4b5847cecce4ba51139f879cc7ba241da23" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data SafeHash c index Source #

A SafeHash is a hash of something that is safe to hash. Such types store their own serialisation bytes. The prime example is (MemoBytes t), but other examples are things that consist of only ByteStrings (i.e. they are their own serialization) or for some other reason store their original bytes.

We do NOT export the constructor SafeHash, but instead export other functions such as 'hashWithCrypto, hashAnnotated and extractHash which have constraints that limit their application to types which preserve their original serialization bytes.

Instances

Instances details
Crypto c => FromJSON (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

parseJSON :: Value -> Parser (SafeHash c index) #

parseJSONList :: Value -> Parser [SafeHash c index] #

omittedField :: Maybe (SafeHash c index) #

Crypto c => ToJSON (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

toJSON :: SafeHash c index -> Value #

toEncoding :: SafeHash c index -> Encoding #

toJSONList :: [SafeHash c index] -> Value #

toEncodingList :: [SafeHash c index] -> Encoding #

omitField :: SafeHash c index -> Bool #

Show (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

showsPrec :: Int -> SafeHash c index -> ShowS Source #

show :: SafeHash c index -> String Source #

showList :: [SafeHash c index] -> ShowS Source #

(Typeable index, Crypto c) => FromCBOR (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

fromCBOR :: Decoder s (SafeHash c index) Source #

label :: Proxy (SafeHash c index) -> Text Source #

(Typeable index, Crypto c) => ToCBOR (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

toCBOR :: SafeHash c index -> Encoding Source #

encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (SafeHash c index) -> Size Source #

encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [SafeHash c index] -> Size Source #

(Typeable index, Crypto c) => DecCBOR (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

decCBOR :: Decoder s (SafeHash c index) Source #

dropCBOR :: Proxy (SafeHash c index) -> Decoder s () Source #

label :: Proxy (SafeHash c index) -> Text Source #

(Typeable index, Crypto c) => EncCBOR (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

encCBOR :: SafeHash c index -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (SafeHash c index) -> Size Source #

encodedListSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy [SafeHash c index] -> Size Source #

HashAlgorithm (HASH c) => SafeToHash (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Crypto c => Default (SafeHash c i) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

def :: SafeHash c i #

NFData (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

rnf :: SafeHash c index -> () Source #

Eq (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

(==) :: SafeHash c index -> SafeHash c index -> Bool Source #

(/=) :: SafeHash c index -> SafeHash c index -> Bool Source #

Ord (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

compare :: SafeHash c index -> SafeHash c index -> Ordering Source #

(<) :: SafeHash c index -> SafeHash c index -> Bool Source #

(<=) :: SafeHash c index -> SafeHash c index -> Bool Source #

(>) :: SafeHash c index -> SafeHash c index -> Bool Source #

(>=) :: SafeHash c index -> SafeHash c index -> Bool Source #

max :: SafeHash c index -> SafeHash c index -> SafeHash c index Source #

min :: SafeHash c index -> SafeHash c index -> SafeHash c index Source #

HeapWords (SafeHash c i) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

heapWords :: SafeHash c i -> Int

NoThunks (SafeHash c index) 
Instance details

Defined in Cardano.Ledger.SafeHash

Methods

noThunks :: Context -> SafeHash c index -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> SafeHash c index -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (SafeHash c index) -> String #

unsafeMakeSafeHash :: Hash (HASH c) index -> SafeHash c index Source #

Don't use this except in Testing to make Arbitrary instances, etc. Defined here, only because the Constructor is in scope here.

extractHash :: SafeHash c i -> Hash (HASH c) i Source #

Extract the hash out of a SafeHash