cardano-api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Ledger

Synopsis

Documentation

data Data era where Source #

Bundled Patterns

pattern Data :: Era era => Data -> Data era 

Instances

Instances details
Memoized Data 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Associated Types

type RawType Data 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Generic (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Associated Types

type Rep (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type Rep (Data era) = D1 ('MetaData "Data" "Cardano.Ledger.Plutus.Data" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "DataConstr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes PlutusData era))))

Methods

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

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

HashAlgorithm (HASH (EraCrypto era)) => Show (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

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

show :: Data era -> String Source #

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

Typeable era => ToCBOR (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

toCBOR :: Data era -> Encoding Source #

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

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

Era era => DecCBOR (Annotator (Data era)) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Typeable era => EncCBOR (Data era)

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

encCBOR :: Data era -> Encoding Source #

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

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

SafeToHash (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

NFData (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

rnf :: Data era -> () Source #

Eq (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

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

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

Typeable era => NoThunks (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

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

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

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

EraCrypto era ~ c => HashAnnotated (Data era) EraIndependentData c 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type RawType Data 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type Rep (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type Rep (Data era) = D1 ('MetaData "Data" "Cardano.Ledger.Plutus.Data" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "DataConstr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes PlutusData era))))

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 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 #

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "VKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (VerKeyDSIGN (DSIGN c)))))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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 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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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 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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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)))

class (EraTxBody era, EraTxWits era, EraTxAuxData era, EraPParams era, NoThunks (Tx era), DecCBOR (Annotator (Tx era)), EncCBOR (Tx era), ToCBOR (Tx era), Show (Tx era), Eq (Tx era), EqRaw (Tx era)) => EraTx era where Source #

A transaction.

Associated Types

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

Methods

bodyTxL :: Lens' (Tx era) (TxBody era) Source #

witsTxL :: Lens' (Tx era) (TxWits era) Source #

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

Instances

Instances details
type Tx (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

type Tx (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Tx (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Tx

type Tx (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Tx

type Tx (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

type Tx (MaryEra c) = ShelleyTx (MaryEra c)
type Tx (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx.Internal

data TxIn c Source #

The input of a UTxO.

Constructors

TxIn !(TxId c) !TxIx 

Instances

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

Defined in Cardano.Ledger.TxIn

Methods

toJSON :: TxIn c -> Value

toEncoding :: TxIn c -> Encoding

toJSONList :: [TxIn c] -> Value

toEncodingList :: [TxIn c] -> Encoding

omitField :: TxIn c -> Bool

Crypto c => ToJSONKey (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

toJSONKey :: ToJSONKeyFunction (TxIn c)

toJSONKeyList :: ToJSONKeyFunction [TxIn c]

Generic (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Rep (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

type Rep (TxIn c) = D1 ('MetaData "TxIn" "Cardano.Ledger.TxIn" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'False) (C1 ('MetaCons "TxIn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxId c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 TxIx)))

Methods

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

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

Show (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

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

show :: TxIn c -> String Source #

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

Crypto c => DecCBOR (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

decCBOR :: Decoder s (TxIn c) Source #

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

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

Crypto c => EncCBOR (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

encCBOR :: TxIn c -> Encoding Source #

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

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

Crypto c => NFData (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

rnf :: TxIn c -> () Source #

Eq (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

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

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

Ord (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

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

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

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

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

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

max :: TxIn c -> TxIn c -> TxIn c Source #

min :: TxIn c -> TxIn c -> TxIn c Source #

Crypto c => HeapWords (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

heapWords :: TxIn c -> Int

NoThunks (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

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

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

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

type Rep (TxIn c) 
Instance details

Defined in Cardano.Ledger.TxIn

type Rep (TxIn c) = D1 ('MetaData "TxIn" "Cardano.Ledger.TxIn" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'False) (C1 ('MetaCons "TxIn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxId c)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 TxIx)))

newtype TxId c Source #

A unique ID of a transaction, which is computable from the transaction.

Constructors

TxId 

Instances

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

Defined in Cardano.Ledger.TxIn

Methods

parseJSON :: Value -> Parser (TxId c)

parseJSONList :: Value -> Parser [TxId c]

omittedField :: Maybe (TxId c)

Crypto c => ToJSON (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

toJSON :: TxId c -> Value

toEncoding :: TxId c -> Encoding

toJSONList :: [TxId c] -> Value

toEncodingList :: [TxId c] -> Encoding

omitField :: TxId c -> Bool

Generic (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Associated Types

type Rep (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

type Rep (TxId c) = D1 ('MetaData "TxId" "Cardano.Ledger.TxIn" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "TxId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTxId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SafeHash c EraIndependentTxBody))))

Methods

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

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

Show (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

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

show :: TxId c -> String Source #

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

Crypto c => DecCBOR (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

decCBOR :: Decoder s (TxId c) Source #

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

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

Crypto c => EncCBOR (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

encCBOR :: TxId c -> Encoding Source #

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

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

Crypto c => NFData (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

rnf :: TxId c -> () Source #

Eq (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

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

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

Ord (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

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

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

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

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

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

max :: TxId c -> TxId c -> TxId c Source #

min :: TxId c -> TxId c -> TxId c Source #

Crypto c => HeapWords (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

heapWords :: TxId c -> Int

NoThunks (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

Methods

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

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

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

type Rep (TxId c) 
Instance details

Defined in Cardano.Ledger.TxIn

type Rep (TxId c) = D1 ('MetaData "TxId" "Cardano.Ledger.TxIn" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "TxId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTxId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SafeHash c EraIndependentTxBody))))

serialize' :: EncCBOR a => Version -> a -> ByteString Source #

Serialize a Haskell value to an external binary representation.

The output is represented as a strict ByteString.

slice :: ByteString -> ByteSpan -> ByteString Source #

Extract a substring of a given ByteString corresponding to the offsets.

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.

hashToBytes :: Hash h a -> ByteString Source #

The representation of the hash as bytes.

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

A variation on hashWith, but specially for CBOR encodings.

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-0a3f9168281c6ab7fea9d29726617b85d9cafa4cf443fc9b32faaad15c31f49b" '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

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-0a3f9168281c6ab7fea9d29726617b85d9cafa4cf443fc9b32faaad15c31f49b" 'False) (C1 ('MetaCons "SNothing" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SJust" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))

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

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

ppMinFeeAL :: EraPParams era => Lens' (PParams era) Coin Source #

The linear factor for the minimum fee calculation

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

Minimum UTxO value

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

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

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

Scripts which may lock transaction outputs in this era

Instances

Instances details
type Script (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.Scripts

type Script (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Script (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Scripts

type Script (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

type Script (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Scripts

type Script (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

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

Scripts which may lock transaction outputs in this era

Instances

Instances details
type Script (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.Scripts

type Script (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Script (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Scripts

type Script (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

type Script (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.Scripts

type Script (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Scripts

class (Val (Value era), ToJSON (TxOut era), DecCBOR (Value era), DecCBOR (CompactForm (Value era)), EncCBOR (Value era), ToCBOR (TxOut era), FromCBOR (TxOut era), EncCBOR (TxOut era), DecCBOR (TxOut era), DecShareCBOR (TxOut era), Share (TxOut era) ~ Interns (Credential 'Staking (EraCrypto era)), NoThunks (TxOut era), NFData (TxOut era), Show (TxOut era), Eq (TxOut era), EraPParams era) => EraTxOut era Source #

Abstract interface into specific fields of a TxOut

class (EraScript era, Eq (TxWits era), EqRaw (TxWits era), Show (TxWits era), Monoid (TxWits era), NoThunks (TxWits era), ToCBOR (TxWits era), EncCBOR (TxWits era), DecCBOR (Annotator (TxWits era))) => EraTxWits era where Source #

A collection of witnesses in a Tx

Associated Types

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

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

Instances

Instances details
type TxWits (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.TxWits

type TxWits (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

type TxWits (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.TxWits

type TxWits (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.TxWits

type TxWits (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.TxWits

type TxWits (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxWits

type family Value era Source #

A value is something which quantifies a transaction output.

Instances

Instances details
type Value (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

type Value (ShelleyEra _c) 
Instance details

Defined in Cardano.Ledger.Shelley.Era

type Value (ShelleyEra _c) = Coin

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 (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 (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

type family EraCrypto era Source #

Instances

Instances details
type EraCrypto (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

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

Defined in Cardano.Ledger.Core.Era

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

Defined in Cardano.Ledger.Shelley.Era

type EraCrypto (ShelleyEra c) = c

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

Map an era to its predecessor.

For example:

type instance PreviousEra (AllegraEra c) = ShelleyEra c

Instances

Instances details
type PreviousEra (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

type PreviousEra (ByronEra c) 
Instance details

Defined in Cardano.Ledger.Core.Era

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

Defined in Cardano.Ledger.Shelley.Era

type family ProtVerHigh era :: Nat Source #

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

Instances

Instances details
type ProtVerHigh (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

type ProtVerHigh (ConwayEra c) = 10
type ProtVerHigh (ByronEra c) 
Instance details

Defined in Cardano.Ledger.Core.Era

type ProtVerHigh (ByronEra c) = 1
type ProtVerHigh (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.Era

type family ProtVerLow era :: Nat Source #

Lowest major protocol version for this era

Instances

Instances details
type ProtVerLow (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Era

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

Defined in Cardano.Ledger.Core.Era

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

Defined in Cardano.Ledger.Shelley.Era

type ProtVerLow (ShelleyEra c) = 2

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

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

Instances

Instances details
type DowngradePParams f (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.PParams

type DowngradePParams f (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

type DowngradePParams f (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

type DowngradePParams f (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type DowngradePParams f (ConwayEra c) = ()
type DowngradePParams f (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.PParams

type DowngradePParams f (MaryEra c) = ()
type DowngradePParams f (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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

Protocol parameters where the fields are represented with a HKD

Instances

Instances details
type PParamsHKD f (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.PParams

type PParamsHKD f (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

type PParamsHKD f (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

type PParamsHKD f (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type PParamsHKD f (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.PParams

type PParamsHKD f (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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

Instances

Instances details
type UpgradePParams f (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.PParams

type UpgradePParams f (AllegraEra c) = ()
type UpgradePParams f (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.PParams

type UpgradePParams f (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

type UpgradePParams f (BabbageEra c) = ()
type UpgradePParams f (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.PParams

type UpgradePParams f (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.PParams

type UpgradePParams f (MaryEra c) = ()
type UpgradePParams f (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.PParams

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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

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.

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

Instances

Instances details
type TxCert (AllegraEra c) 
Instance details

Defined in Cardano.Ledger.Allegra.TxCert

type TxCert (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxCert

type TxCert (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.TxCert

type TxCert (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.TxCert

type TxCert (MaryEra c) 
Instance details

Defined in Cardano.Ledger.Mary.TxCert

type TxCert (ShelleyEra c) 
Instance details

Defined in Cardano.Ledger.Shelley.TxCert

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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

Crypto c => EncCBOR (PoolCert c) 
Instance details

Defined in Cardano.Ledger.Core.TxCert

Methods

encCBOR :: PoolCert c -> Encoding Source #

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

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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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)))

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 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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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 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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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)))

class EraTxCert era => ShelleyEraTxCert era where Source #

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 #

plutusScriptLanguage :: AlonzoEraScript era => PlutusScript era -> Language Source #

Get value level plutus language of the plutus script

class (EraScript era, Eq (PlutusScript era), Ord (PlutusScript era), Show (PlutusScript era), NoThunks (PlutusScript era), NFData (PlutusScript era), SafeToHash (PlutusScript era), Eq (PlutusPurpose AsItem era), Show (PlutusPurpose AsItem era), EncCBOR (PlutusPurpose AsItem era), DecCBOR (PlutusPurpose AsItem era), NoThunks (PlutusPurpose AsItem era), NFData (PlutusPurpose AsItem era), Eq (PlutusPurpose AsIx era), Ord (PlutusPurpose AsIx era), Show (PlutusPurpose AsIx era), EncCBOR (PlutusPurpose AsIx era), DecCBOR (PlutusPurpose AsIx era), EncCBORGroup (PlutusPurpose AsIx era), DecCBORGroup (PlutusPurpose AsIx era), NoThunks (PlutusPurpose AsIx era), NFData (PlutusPurpose AsIx era), Eq (PlutusPurpose AsIxItem era), Show (PlutusPurpose AsIxItem era), NoThunks (PlutusPurpose AsIxItem era), NFData (PlutusPurpose AsIxItem era), AllegraEraScript era) => AlonzoEraScript era where Source #

Associated Types

data PlutusScript era Source #

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

Methods

eraMaxLanguage :: Language Source #

Highest supported Plutus language version for this era.

toPlutusScript :: Script era -> Maybe (PlutusScript era) Source #

Attempt to extract a PlutusScript from a wrapper type family Script. Whenevr Script is a native script Nothing will be returned

default toPlutusScript :: Script era ~ AlonzoScript era => Script era -> Maybe (PlutusScript era) Source #

fromPlutusScript :: PlutusScript era -> Script era Source #

Convert a PlutusScript to a wrapper type family Script

default fromPlutusScript :: Script era ~ AlonzoScript era => PlutusScript era -> Script era Source #

mkPlutusScript :: forall (l :: Language). PlutusLanguage l => Plutus l -> Maybe (PlutusScript era) Source #

Returns Nothing, whenver plutus language is not supported for this era.

withPlutusScript :: PlutusScript era -> (forall (l :: Language). PlutusLanguage l => Plutus l -> a) -> a Source #

Give a PlutusScript apply a function that can handle Plutus scripts of all known versions.

hoistPlutusPurpose :: (forall ix it. g ix it -> f ix it) -> PlutusPurpose g era -> PlutusPurpose f era Source #

mkSpendingPurpose :: f Word32 (TxIn (EraCrypto era)) -> PlutusPurpose f era Source #

toSpendingPurpose :: PlutusPurpose f era -> Maybe (f Word32 (TxIn (EraCrypto era))) Source #

mkMintingPurpose :: f Word32 (PolicyID (EraCrypto era)) -> PlutusPurpose f era Source #

toMintingPurpose :: PlutusPurpose f era -> Maybe (f Word32 (PolicyID (EraCrypto era))) Source #

mkCertifyingPurpose :: f Word32 (TxCert era) -> PlutusPurpose f era Source #

toCertifyingPurpose :: PlutusPurpose f era -> Maybe (f Word32 (TxCert era)) Source #

mkRewardingPurpose :: f Word32 (RewardAccount (EraCrypto era)) -> PlutusPurpose f era Source #

toRewardingPurpose :: PlutusPurpose f era -> Maybe (f Word32 (RewardAccount (EraCrypto era))) Source #

upgradePlutusPurposeAsIx :: PlutusPurpose AsIx (PreviousEra era) -> PlutusPurpose AsIx era Source #

Instances

Instances details
Crypto c => AlonzoEraScript (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Associated Types

newtype PlutusScript (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

eraMaxLanguage :: Language Source #

toPlutusScript :: Script (AlonzoEra c) -> Maybe (PlutusScript (AlonzoEra c)) Source #

fromPlutusScript :: PlutusScript (AlonzoEra c) -> Script (AlonzoEra c) Source #

mkPlutusScript :: forall (l :: Language). PlutusLanguage l => Plutus l -> Maybe (PlutusScript (AlonzoEra c)) Source #

withPlutusScript :: PlutusScript (AlonzoEra c) -> (forall (l :: Language). PlutusLanguage l => Plutus l -> a) -> a Source #

hoistPlutusPurpose :: (forall ix it. g ix it -> f ix it) -> PlutusPurpose g (AlonzoEra c) -> PlutusPurpose f (AlonzoEra c) Source #

mkSpendingPurpose :: f Word32 (TxIn (EraCrypto (AlonzoEra c))) -> PlutusPurpose f (AlonzoEra c) Source #

toSpendingPurpose :: PlutusPurpose f (AlonzoEra c) -> Maybe (f Word32 (TxIn (EraCrypto (AlonzoEra c)))) Source #

mkMintingPurpose :: f Word32 (PolicyID (EraCrypto (AlonzoEra c))) -> PlutusPurpose f (AlonzoEra c) Source #

toMintingPurpose :: PlutusPurpose f (AlonzoEra c) -> Maybe (f Word32 (PolicyID (EraCrypto (AlonzoEra c)))) Source #

mkCertifyingPurpose :: f Word32 (TxCert (AlonzoEra c)) -> PlutusPurpose f (AlonzoEra c) Source #

toCertifyingPurpose :: PlutusPurpose f (AlonzoEra c) -> Maybe (f Word32 (TxCert (AlonzoEra c))) Source #

mkRewardingPurpose :: f Word32 (RewardAccount (EraCrypto (AlonzoEra c))) -> PlutusPurpose f (AlonzoEra c) Source #

toRewardingPurpose :: PlutusPurpose f (AlonzoEra c) -> Maybe (f Word32 (RewardAccount (EraCrypto (AlonzoEra c)))) Source #

upgradePlutusPurposeAsIx :: PlutusPurpose AsIx (PreviousEra (AlonzoEra c)) -> PlutusPurpose AsIx (AlonzoEra c) Source #

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

Instances

Instances details
type PlutusPurpose f (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type PlutusPurpose f (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Scripts

type PlutusPurpose f (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

data family PlutusScript era Source #

Instances

Instances details
Generic (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Associated Types

type Rep (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Show (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

SafeToHash (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

NFData (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

rnf :: PlutusScript (AlonzoEra c) -> () Source #

Eq (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Ord (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

NoThunks (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

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

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

showTypeOf :: Proxy (PlutusScript (AlonzoEra c)) -> String #

type Rep (PlutusScript (AlonzoEra c)) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (PlutusScript (BabbageEra c)) 
Instance details

Defined in Cardano.Ledger.Babbage.Scripts

type Rep (PlutusScript (BabbageEra c)) = D1 ('MetaData "PlutusScript" "Cardano.Ledger.Babbage.Scripts" "cardano-ledger-babbage-1.10.0.0-f3c8326a40c2e2346763c76d743f6d6dcbb56b346aad9ca2646b7edc52ad0095" 'False) (C1 ('MetaCons "BabbagePlutusV1" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV1))) :+: C1 ('MetaCons "BabbagePlutusV2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV2))))
type Rep (PlutusScript (ConwayEra c)) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

type Rep (PlutusScript (ConwayEra c)) = D1 ('MetaData "PlutusScript" "Cardano.Ledger.Conway.Scripts" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) (C1 ('MetaCons "ConwayPlutusV1" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV1))) :+: (C1 ('MetaCons "ConwayPlutusV2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV2))) :+: C1 ('MetaCons "ConwayPlutusV3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Plutus 'PlutusV3)))))
newtype PlutusScript (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

data PlutusScript (BabbageEra c) 
Instance details

Defined in Cardano.Ledger.Babbage.Scripts

data PlutusScript (ConwayEra c) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

data AlonzoPlutusPurpose (f :: Type -> Type -> Type) era Source #

Instances

Instances details
(forall a b. (ToJSON a, ToJSON b) => ToJSON (f a b), ToJSON (TxCert era), Era era) => ToJSON (AlonzoPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

toJSON :: AlonzoPlutusPurpose f era -> Value

toEncoding :: AlonzoPlutusPurpose f era -> Encoding

toJSONList :: [AlonzoPlutusPurpose f era] -> Value

toEncodingList :: [AlonzoPlutusPurpose f era] -> Encoding

omitField :: AlonzoPlutusPurpose f era -> Bool

Generic (AlonzoPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Associated Types

type Rep (AlonzoPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AlonzoPlutusPurpose f era) = D1 ('MetaData "AlonzoPlutusPurpose" "Cardano.Ledger.Alonzo.Scripts" "cardano-ledger-alonzo-1.11.0.0-754b1457a782849d0e673d10dcc407dd93f78ad06c4c3d55c7d19a0672469a24" 'False) ((C1 ('MetaCons "AlonzoSpending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxIn (EraCrypto era))))) :+: C1 ('MetaCons "AlonzoMinting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (PolicyID (EraCrypto era)))))) :+: (C1 ('MetaCons "AlonzoCertifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxCert era)))) :+: C1 ('MetaCons "AlonzoRewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (RewardAccount (EraCrypto era)))))))
Show (TxCert era) => Show (AlonzoPlutusPurpose AsItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Show (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Show (TxCert era) => Show (AlonzoPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Era era, DecCBOR (TxCert era)) => DecCBOR (AlonzoPlutusPurpose AsItem era)

See note on the EncCBOR instace.

Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Era era => DecCBOR (AlonzoPlutusPurpose AsIx era)

Incorrect CBOR implementation. Missing length encoding. Must keep it for backwards compatibility

Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Era era, EncCBOR (TxCert era)) => EncCBOR (AlonzoPlutusPurpose AsItem era)

Note - serialization of AlonzoPlutusPurpose AsItem

Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Era era => EncCBOR (AlonzoPlutusPurpose AsIx era)

Incorrect CBOR implementation. Missing length encoding. Must keep it for backwards compatibility

Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Era era => DecCBORGroup (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Era era => EncCBORGroup (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(forall a b. (NFData a, NFData b) => NFData (f a b), NFData (TxCert era), Era era) => NFData (AlonzoPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

rnf :: AlonzoPlutusPurpose f era -> () Source #

Eq (TxCert era) => Eq (AlonzoPlutusPurpose AsItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Eq (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Eq (TxCert era) => Eq (AlonzoPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Ord (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

NoThunks (TxCert era) => NoThunks (AlonzoPlutusPurpose AsItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

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

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

showTypeOf :: Proxy (AlonzoPlutusPurpose AsItem era) -> String #

NoThunks (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

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

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

showTypeOf :: Proxy (AlonzoPlutusPurpose AsIx era) -> String #

NoThunks (TxCert era) => NoThunks (AlonzoPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

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

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

showTypeOf :: Proxy (AlonzoPlutusPurpose AsIxItem era) -> String #

type Rep (AlonzoPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AlonzoPlutusPurpose f era) = D1 ('MetaData "AlonzoPlutusPurpose" "Cardano.Ledger.Alonzo.Scripts" "cardano-ledger-alonzo-1.11.0.0-754b1457a782849d0e673d10dcc407dd93f78ad06c4c3d55c7d19a0672469a24" 'False) ((C1 ('MetaCons "AlonzoSpending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxIn (EraCrypto era))))) :+: C1 ('MetaCons "AlonzoMinting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (PolicyID (EraCrypto era)))))) :+: (C1 ('MetaCons "AlonzoCertifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxCert era)))) :+: C1 ('MetaCons "AlonzoRewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (RewardAccount (EraCrypto era)))))))

newtype AsIx ix it Source #

Constructors

AsIx 

Fields

Instances

Instances details
ToJSON ix => ToJSON (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

toJSON :: AsIx ix it -> Value

toEncoding :: AsIx ix it -> Encoding

toJSONList :: [AsIx ix it] -> Value

toEncodingList :: [AsIx ix it] -> Encoding

omitField :: AsIx ix it -> Bool

Generic ix => Generic (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Associated Types

type Rep (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIx ix it) = Rep ix

Methods

from :: AsIx ix it -> Rep (AsIx ix it) x Source #

to :: Rep (AsIx ix it) x -> AsIx ix it Source #

Show (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Show ix => Show (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

showsPrec :: Int -> AsIx ix it -> ShowS Source #

show :: AsIx ix it -> String Source #

showList :: [AsIx ix it] -> ShowS Source #

Show (ConwayPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Era era => DecCBOR (AlonzoPlutusPurpose AsIx era)

Incorrect CBOR implementation. Missing length encoding. Must keep it for backwards compatibility

Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Typeable it, DecCBOR ix) => DecCBOR (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

decCBOR :: Decoder s (AsIx ix it) Source #

dropCBOR :: Proxy (AsIx ix it) -> Decoder s () Source #

label :: Proxy (AsIx ix it) -> Text Source #

Era era => EncCBOR (AlonzoPlutusPurpose AsIx era)

Incorrect CBOR implementation. Missing length encoding. Must keep it for backwards compatibility

Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Typeable it, EncCBOR ix) => EncCBOR (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

encCBOR :: AsIx ix it -> Encoding Source #

encodedSizeExpr :: (forall t. EncCBOR t => Proxy t -> Size) -> Proxy (AsIx ix it) -> Size Source #

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

Era era => DecCBORGroup (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Era era => EncCBORGroup (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

NFData ix => NFData (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

rnf :: AsIx ix it -> () Source #

Eq (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Eq ix => Eq (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

(==) :: AsIx ix it -> AsIx ix it -> Bool Source #

(/=) :: AsIx ix it -> AsIx ix it -> Bool Source #

Eq (ConwayPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Ord (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Ord ix => Ord (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

compare :: AsIx ix it -> AsIx ix it -> Ordering Source #

(<) :: AsIx ix it -> AsIx ix it -> Bool Source #

(<=) :: AsIx ix it -> AsIx ix it -> Bool Source #

(>) :: AsIx ix it -> AsIx ix it -> Bool Source #

(>=) :: AsIx ix it -> AsIx ix it -> Bool Source #

max :: AsIx ix it -> AsIx ix it -> AsIx ix it Source #

min :: AsIx ix it -> AsIx ix it -> AsIx ix it Source #

Ord (ConwayPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

NoThunks (AlonzoPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

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

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

showTypeOf :: Proxy (AlonzoPlutusPurpose AsIx era) -> String #

NoThunks ix => NoThunks (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

noThunks :: Context -> AsIx ix it -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> AsIx ix it -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (AsIx ix it) -> String #

NoThunks (ConwayPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Methods

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

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

showTypeOf :: Proxy (ConwayPlutusPurpose AsIx era) -> String #

type Rep (AsIx ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIx ix it) = Rep ix

data AsIxItem ix it Source #

Constructors

AsIxItem !ix !it 

Instances

Instances details
(ToJSON ix, ToJSON it) => ToJSON (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

toJSON :: AsIxItem ix it -> Value

toEncoding :: AsIxItem ix it -> Encoding

toJSONList :: [AsIxItem ix it] -> Value

toEncodingList :: [AsIxItem ix it] -> Encoding

omitField :: AsIxItem ix it -> Bool

Generic (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Associated Types

type Rep (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIxItem ix it) = D1 ('MetaData "AsIxItem" "Cardano.Ledger.Alonzo.Scripts" "cardano-ledger-alonzo-1.11.0.0-754b1457a782849d0e673d10dcc407dd93f78ad06c4c3d55c7d19a0672469a24" 'False) (C1 ('MetaCons "AsIxItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "asIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ix) :*: S1 ('MetaSel ('Just "asItem") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 it)))

Methods

from :: AsIxItem ix it -> Rep (AsIxItem ix it) x Source #

to :: Rep (AsIxItem ix it) x -> AsIxItem ix it Source #

Show (TxCert era) => Show (AlonzoPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Show ix, Show it) => Show (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

showsPrec :: Int -> AsIxItem ix it -> ShowS Source #

show :: AsIxItem ix it -> String Source #

showList :: [AsIxItem ix it] -> ShowS Source #

(Show (TxCert era), EraPParams era) => Show (ConwayPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(NFData ix, NFData it) => NFData (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

rnf :: AsIxItem ix it -> () Source #

Eq (TxCert era) => Eq (AlonzoPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

(Eq ix, Eq it) => Eq (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

(==) :: AsIxItem ix it -> AsIxItem ix it -> Bool Source #

(/=) :: AsIxItem ix it -> AsIxItem ix it -> Bool Source #

(Eq (TxCert era), EraPParams era) => Eq (ConwayPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(Ord ix, Ord it) => Ord (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

compare :: AsIxItem ix it -> AsIxItem ix it -> Ordering Source #

(<) :: AsIxItem ix it -> AsIxItem ix it -> Bool Source #

(<=) :: AsIxItem ix it -> AsIxItem ix it -> Bool Source #

(>) :: AsIxItem ix it -> AsIxItem ix it -> Bool Source #

(>=) :: AsIxItem ix it -> AsIxItem ix it -> Bool Source #

max :: AsIxItem ix it -> AsIxItem ix it -> AsIxItem ix it Source #

min :: AsIxItem ix it -> AsIxItem ix it -> AsIxItem ix it Source #

NoThunks (TxCert era) => NoThunks (AlonzoPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

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

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

showTypeOf :: Proxy (AlonzoPlutusPurpose AsIxItem era) -> String #

(NoThunks ix, NoThunks it) => NoThunks (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

Methods

noThunks :: Context -> AsIxItem ix it -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> AsIxItem ix it -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (AsIxItem ix it) -> String #

(NoThunks (TxCert era), EraPParams era) => NoThunks (ConwayPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Methods

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

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

showTypeOf :: Proxy (ConwayPlutusPurpose AsIxItem era) -> String #

type Rep (AsIxItem ix it) 
Instance details

Defined in Cardano.Ledger.Alonzo.Scripts

type Rep (AsIxItem ix it) = D1 ('MetaData "AsIxItem" "Cardano.Ledger.Alonzo.Scripts" "cardano-ledger-alonzo-1.11.0.0-754b1457a782849d0e673d10dcc407dd93f78ad06c4c3d55c7d19a0672469a24" 'False) (C1 ('MetaCons "AsIxItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "asIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ix) :*: S1 ('MetaSel ('Just "asItem") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 it)))

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

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.11.0.0-754b1457a782849d0e673d10dcc407dd93f78ad06c4c3d55c7d19a0672469a24" '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.11.0.0-754b1457a782849d0e673d10dcc407dd93f78ad06c4c3d55c7d19a0672469a24" 'True) (C1 ('MetaCons "AlonzoGenesisWrapper" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlonzoGenesisWrapper") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (UpgradeAlonzoPParams Identity))))

class (MaryEraTxBody era, AlonzoEraTxOut era) => AlonzoEraTxBody era where Source #

Methods

collateralInputsTxBodyL :: Lens' (TxBody era) (Set (TxIn (EraCrypto era))) Source #

reqSignerHashesTxBodyL :: Lens' (TxBody era) (Set (KeyHash 'Witness (EraCrypto era))) Source #

scriptIntegrityHashTxBodyL :: Lens' (TxBody era) (StrictMaybe (ScriptIntegrityHash (EraCrypto era))) Source #

networkIdTxBodyL :: Lens' (TxBody era) (StrictMaybe Network) Source #

redeemerPointer :: TxBody era -> PlutusPurpose AsItem era -> StrictMaybe (PlutusPurpose AsIx era) Source #

This function is called rdptr in the spec. Given a TxBody and a plutus purpose with an item, we should be able to find the plutus purpose as in index

redeemerPointerInverse :: TxBody era -> PlutusPurpose AsIx era -> StrictMaybe (PlutusPurpose AsIxItem era) Source #

This is an inverse of redeemerPointer. Given purpose as an index return it as an item.

class (EraTxWits era, AlonzoEraScript era) => AlonzoEraTxWits era where Source #

Methods

datsTxWitsL :: Lens' (TxWits era) (TxDats era) Source #

rdmrsTxWitsL :: Lens' (TxWits era) (Redeemers era) Source #

Instances

Instances details
(EraScript (AlonzoEra c), Crypto c) => AlonzoEraTxWits (AlonzoEra c) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

data TxDats era where Source #

Note that TxDats are based on MemoBytes since we must preserve the original bytes for the ScriptIntegrity. Since the TxDats exist outside of the transaction body, this is how we ensure that they are not manipulated.

Bundled Patterns

pattern TxDats :: Era era => Map (DataHash (EraCrypto era)) (Data era) -> TxDats era 
pattern TxDats' :: Map (DataHash (EraCrypto era)) (Data era) -> TxDats era 

Instances

Instances details
Memoized TxDats 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Associated Types

type RawType TxDats 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Era era => Monoid (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Methods

mempty :: TxDats era Source #

mappend :: TxDats era -> TxDats era -> TxDats era Source #

mconcat :: [TxDats era] -> TxDats era Source #

Era era => Semigroup (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Methods

(<>) :: TxDats era -> TxDats era -> TxDats era Source #

sconcat :: NonEmpty (TxDats era) -> TxDats era Source #

stimes :: Integral b => b -> TxDats era -> TxDats era Source #

Generic (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Associated Types

type Rep (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

type Rep (TxDats era) = D1 ('MetaData "TxDats" "Cardano.Ledger.Alonzo.TxWits" "cardano-ledger-alonzo-1.11.0.0-754b1457a782849d0e673d10dcc407dd93f78ad06c4c3d55c7d19a0672469a24" 'True) (C1 ('MetaCons "TxDatsConstr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes TxDatsRaw era))))

Methods

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

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

HashAlgorithm (HASH (EraCrypto era)) => Show (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Methods

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

show :: TxDats era -> String Source #

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

Typeable era => ToCBOR (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Methods

toCBOR :: TxDats era -> Encoding Source #

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

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

Era era => DecCBOR (Annotator (TxDats era)) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Era era => EncCBOR (TxDats era)

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Methods

encCBOR :: TxDats era -> Encoding Source #

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

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

SafeToHash (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

NFData (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Methods

rnf :: TxDats era -> () Source #

Eq (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Methods

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

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

Typeable era => NoThunks (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

Methods

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

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

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

type RawType TxDats 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

type Rep (TxDats era) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxWits

type Rep (TxDats era) = D1 ('MetaData "TxDats" "Cardano.Ledger.Alonzo.TxWits" "cardano-ledger-alonzo-1.11.0.0-754b1457a782849d0e673d10dcc407dd93f78ad06c4c3d55c7d19a0672469a24" 'True) (C1 ('MetaCons "TxDatsConstr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes TxDatsRaw era))))

data Language Source #

Non-Native Plutus Script language. This is expected to be an open type. We will add new Constuctors to this type as additional Plutus language versions as are added. We use an enumerated type for two reasons.

  1. We can write total functions by case analysis over the constructors
  2. We use DataKinds to make some datatypes indexed by Language.

Note that the the serialization of Language depends on the ordering.

Instances

Instances details
FromJSON Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

parseJSON :: Value -> Parser Language

parseJSONList :: Value -> Parser [Language]

omittedField :: Maybe Language

FromJSONKey Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

fromJSONKey :: FromJSONKeyFunction Language

fromJSONKeyList :: FromJSONKeyFunction [Language]

ToJSON Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

toJSON :: Language -> Value

toEncoding :: Language -> Encoding

toJSONList :: [Language] -> Value

toEncodingList :: [Language] -> Encoding

omitField :: Language -> Bool

ToJSONKey Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

toJSONKey :: ToJSONKeyFunction Language

toJSONKeyList :: ToJSONKeyFunction [Language]

Bounded Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Enum Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Generic Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Associated Types

type Rep Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

type Rep Language = D1 ('MetaData "Language" "Cardano.Ledger.Plutus.Language" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'False) (C1 ('MetaCons "PlutusV1" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PlutusV2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PlutusV3" 'PrefixI 'False) (U1 :: Type -> Type)))
Ix Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Show Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

FromCBOR Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

ToCBOR Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

toCBOR :: Language -> Encoding Source #

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

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

DecCBOR Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

EncCBOR Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

encCBOR :: Language -> Encoding Source #

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

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

NFData Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

rnf :: Language -> () Source #

Eq Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Ord Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

NoThunks Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

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

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

showTypeOf :: Proxy Language -> String #

Random Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

randomR :: RandomGen g => (Language, Language) -> g -> (Language, g)

random :: RandomGen g => g -> (Language, g)

randomRs :: RandomGen g => (Language, Language) -> g -> [Language]

randoms :: RandomGen g => g -> [Language]

Uniform Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

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

UniformRange Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

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

type Rep Language 
Instance details

Defined in Cardano.Ledger.Plutus.Language

type Rep Language = D1 ('MetaData "Language" "Cardano.Ledger.Plutus.Language" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'False) (C1 ('MetaCons "PlutusV1" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PlutusV2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PlutusV3" 'PrefixI 'False) (U1 :: Type -> Type)))

data Plutus (l :: Language) Source #

Serialized representation of a Plutus script that distinguishes the language version at the type level. When encoded in CBOR language version is also encoded.

Instances

Instances details
Generic (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Associated Types

type Rep (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

type Rep (Plutus l) = D1 ('MetaData "Plutus" "Cardano.Ledger.Plutus.Language" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "Plutus" 'PrefixI 'True) (S1 ('MetaSel ('Just "plutusBinary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlutusBinary)))

Methods

from :: Plutus l -> Rep (Plutus l) x Source #

to :: Rep (Plutus l) x -> Plutus l Source #

Show (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

PlutusLanguage l => DecCBOR (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

PlutusLanguage l => EncCBOR (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

encCBOR :: Plutus l -> Encoding Source #

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

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

SafeToHash (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

NFData (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

rnf :: Plutus l -> () Source #

Eq (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

(==) :: Plutus l -> Plutus l -> Bool Source #

(/=) :: Plutus l -> Plutus l -> Bool Source #

Ord (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

compare :: Plutus l -> Plutus l -> Ordering Source #

(<) :: Plutus l -> Plutus l -> Bool Source #

(<=) :: Plutus l -> Plutus l -> Bool Source #

(>) :: Plutus l -> Plutus l -> Bool Source #

(>=) :: Plutus l -> Plutus l -> Bool Source #

max :: Plutus l -> Plutus l -> Plutus l Source #

min :: Plutus l -> Plutus l -> Plutus l Source #

NoThunks (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

Methods

noThunks :: Context -> Plutus l -> IO (Maybe ThunkInfo) #

wNoThunks :: Context -> Plutus l -> IO (Maybe ThunkInfo) #

showTypeOf :: Proxy (Plutus l) -> String #

type Rep (Plutus l) 
Instance details

Defined in Cardano.Ledger.Plutus.Language

type Rep (Plutus l) = D1 ('MetaData "Plutus" "Cardano.Ledger.Plutus.Language" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "Plutus" 'PrefixI 'True) (S1 ('MetaSel ('Just "plutusBinary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlutusBinary)))

newtype ExUnits Source #

This newtype wrapper of ExUnits' is used to hide an implementation detail inside the ExUnits pattern.

Constructors

WrapExUnits 

Bundled Patterns

pattern ExUnits :: Natural -> Natural -> ExUnits

Arbitrary execution unit in which we measure the cost of scripts in terms of space in memory and execution time.

This pattern hides the fact that ExUnits' is parametric in the underlying type. The ledger itself uses ExUnits Natural' exclusively.

We would have preferred to use a type alias for ExUnits Natural', but this is not possible: https://gitlab.haskell.org/ghc/ghc/-/issues/19507.

Instances

Instances details
FromJSON ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

parseJSON :: Value -> Parser ExUnits

parseJSONList :: Value -> Parser [ExUnits]

omittedField :: Maybe ExUnits

ToJSON ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

toJSON :: ExUnits -> Value

toEncoding :: ExUnits -> Encoding

toJSONList :: [ExUnits] -> Value

toEncodingList :: [ExUnits] -> Encoding

omitField :: ExUnits -> Bool

Monoid ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Semigroup ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Generic ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Associated Types

type Rep ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

type Rep ExUnits = D1 ('MetaData "ExUnits" "Cardano.Ledger.Plutus.ExUnits" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "WrapExUnits" 'PrefixI 'True) (S1 ('MetaSel ('Just "unWrapExUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ExUnits' Natural))))
Show ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

DecCBOR ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

EncCBOR ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

encCBOR :: ExUnits -> Encoding Source #

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

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

NFData ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

rnf :: ExUnits -> () Source #

Eq ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

NoThunks ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

Methods

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

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

showTypeOf :: Proxy ExUnits -> String #

type Rep ExUnits 
Instance details

Defined in Cardano.Ledger.Plutus.ExUnits

type Rep ExUnits = D1 ('MetaData "ExUnits" "Cardano.Ledger.Plutus.ExUnits" "cardano-ledger-core-1.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "WrapExUnits" 'PrefixI 'True) (S1 ('MetaSel ('Just "unWrapExUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ExUnits' Natural))))

unData :: Data era -> Data Source #

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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 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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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 #

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'False) (C1 ('MetaCons "Prices" 'PrefixI 'True) (S1 ('MetaSel ('Just "prMem") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonNegativeInterval) :*: S1 ('MetaSel ('Just "prSteps") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NonNegativeInterval)))

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 #

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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 Constitution era Source #

Instances

Instances details
Era era => FromJSON (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

parseJSON :: Value -> Parser (Constitution era)

parseJSONList :: Value -> Parser [Constitution era]

omittedField :: Maybe (Constitution era)

Era era => ToJSON (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: Constitution era -> Value

toEncoding :: Constitution era -> Encoding

toJSONList :: [Constitution era] -> Value

toEncodingList :: [Constitution era] -> Encoding

omitField :: Constitution era -> Bool

Generic (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (Constitution era) = D1 ('MetaData "Constitution" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) (C1 ('MetaCons "Constitution" 'PrefixI 'True) (S1 ('MetaSel ('Just "constitutionAnchor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Anchor (EraCrypto era))) :*: S1 ('MetaSel ('Just "constitutionScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (ScriptHash (EraCrypto era))))))

Methods

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

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

Show (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => FromCBOR (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => ToCBOR (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toCBOR :: Constitution era -> Encoding Source #

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

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

Era era => DecCBOR (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => EncCBOR (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

encCBOR :: Constitution era -> Encoding Source #

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

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

Era era => Default (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

def :: Constitution era #

Era era => NFData (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: Constitution era -> () Source #

Eq (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Ord (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => NoThunks (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

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

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

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

type Rep (Constitution era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (Constitution era) = D1 ('MetaData "Constitution" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) (C1 ('MetaCons "Constitution" 'PrefixI 'True) (S1 ('MetaSel ('Just "constitutionAnchor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Anchor (EraCrypto era))) :*: S1 ('MetaSel ('Just "constitutionScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (ScriptHash (EraCrypto era))))))

data GovAction era Source #

Note that the previous governance action id is only optional for the very first governance action of the same purpose.

Constructors

ParameterChange 

Fields

HardForkInitiation 

Fields

TreasuryWithdrawals 

Fields

NoConfidence 

Fields

UpdateCommittee 

Fields

NewConstitution 

Fields

InfoAction 

Instances

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

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: GovAction era -> Value

toEncoding :: GovAction era -> Encoding

toJSONList :: [GovAction era] -> Value

toEncodingList :: [GovAction era] -> Encoding

omitField :: GovAction era -> Bool

Generic (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (GovAction era) = D1 ('MetaData "GovAction" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) ((C1 ('MetaCons "ParameterChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'PParamUpdatePurpose era))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParamsUpdate era)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (ScriptHash (EraCrypto era)))))) :+: (C1 ('MetaCons "HardForkInitiation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'HardForkPurpose era))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProtVer)) :+: C1 ('MetaCons "TreasuryWithdrawals" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (RewardAccount (EraCrypto era)) Coin)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (ScriptHash (EraCrypto era))))))) :+: ((C1 ('MetaCons "NoConfidence" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'CommitteePurpose era)))) :+: C1 ('MetaCons "UpdateCommittee" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'CommitteePurpose era))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (Credential 'ColdCommitteeRole (EraCrypto era))))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'ColdCommitteeRole (EraCrypto era)) EpochNo)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)))) :+: (C1 ('MetaCons "NewConstitution" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'ConstitutionPurpose era))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Constitution era))) :+: C1 ('MetaCons "InfoAction" 'PrefixI 'False) (U1 :: Type -> Type))))

Methods

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

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

EraPParams era => Show (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EraPParams era => DecCBOR (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EraPParams era => EncCBOR (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

encCBOR :: GovAction era -> Encoding Source #

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

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

EraPParams era => NFData (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: GovAction era -> () Source #

EraPParams era => Eq (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

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

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

EraPParams era => Ord (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

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

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

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

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

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

max :: GovAction era -> GovAction era -> GovAction era Source #

min :: GovAction era -> GovAction era -> GovAction era Source #

EraPParams era => NoThunks (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

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

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

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

type Rep (GovAction era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (GovAction era) = D1 ('MetaData "GovAction" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) ((C1 ('MetaCons "ParameterChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'PParamUpdatePurpose era))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PParamsUpdate era)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (ScriptHash (EraCrypto era)))))) :+: (C1 ('MetaCons "HardForkInitiation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'HardForkPurpose era))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProtVer)) :+: C1 ('MetaCons "TreasuryWithdrawals" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (RewardAccount (EraCrypto era)) Coin)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (ScriptHash (EraCrypto era))))))) :+: ((C1 ('MetaCons "NoConfidence" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'CommitteePurpose era)))) :+: C1 ('MetaCons "UpdateCommittee" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'CommitteePurpose era))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (Credential 'ColdCommitteeRole (EraCrypto era))))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'ColdCommitteeRole (EraCrypto era)) EpochNo)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)))) :+: (C1 ('MetaCons "NewConstitution" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (GovPurposeId 'ConstitutionPurpose era))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Constitution era))) :+: C1 ('MetaCons "InfoAction" 'PrefixI 'False) (U1 :: Type -> Type))))

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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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)))

newtype GovActionIx Source #

Constructors

GovActionIx 

Instances

Instances details
ToJSON GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: GovActionIx -> Value

toEncoding :: GovActionIx -> Encoding

toJSONList :: [GovActionIx] -> Value

toEncodingList :: [GovActionIx] -> Encoding

omitField :: GovActionIx -> Bool

Generic GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep GovActionIx = D1 ('MetaData "GovActionIx" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'True) (C1 ('MetaCons "GovActionIx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGovActionIx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))
Show GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

DecCBOR GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

EncCBOR GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

NFData GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: GovActionIx -> () Source #

Eq GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Ord GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

NoThunks GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

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

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

showTypeOf :: Proxy GovActionIx -> String #

type Rep GovActionIx 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep GovActionIx = D1 ('MetaData "GovActionIx" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'True) (C1 ('MetaCons "GovActionIx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGovActionIx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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))))))

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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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))))))

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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'True) (C1 ('MetaCons "VotingProcedures" 'PrefixI 'True) (S1 ('MetaSel ('Just "unVotingProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (Voter (EraCrypto era)) (Map (GovActionId (EraCrypto era)) (VotingProcedure era))))))

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 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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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 ConwayPlutusPurpose (f :: Type -> Type -> Type) era Source #

Instances

Instances details
(forall a b. (ToJSON a, ToJSON b) => ToJSON (f a b), ToJSON (TxCert era), EraPParams era) => ToJSON (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Methods

toJSON :: ConwayPlutusPurpose f era -> Value

toEncoding :: ConwayPlutusPurpose f era -> Encoding

toJSONList :: [ConwayPlutusPurpose f era] -> Value

toEncodingList :: [ConwayPlutusPurpose f era] -> Encoding

omitField :: ConwayPlutusPurpose f era -> Bool

Generic (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Associated Types

type Rep (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

type Rep (ConwayPlutusPurpose f era) = D1 ('MetaData "ConwayPlutusPurpose" "Cardano.Ledger.Conway.Scripts" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) ((C1 ('MetaCons "ConwaySpending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxIn (EraCrypto era))))) :+: (C1 ('MetaCons "ConwayMinting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (PolicyID (EraCrypto era))))) :+: C1 ('MetaCons "ConwayCertifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxCert era)))))) :+: (C1 ('MetaCons "ConwayRewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (RewardAccount (EraCrypto era))))) :+: (C1 ('MetaCons "ConwayVoting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (Voter (EraCrypto era))))) :+: C1 ('MetaCons "ConwayProposing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (ProposalProcedure era)))))))
(Show (TxCert era), EraPParams era) => Show (ConwayPlutusPurpose AsItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Show (ConwayPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(Show (TxCert era), EraPParams era) => Show (ConwayPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(forall a b. (EncCBOR a, EncCBOR b) => EncCBOR (f a b), forall a b. (DecCBOR a, DecCBOR b) => DecCBOR (f a b), EraPParams era, Typeable f, EncCBOR (TxCert era), DecCBOR (TxCert era)) => DecCBOR (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(forall a b. (EncCBOR a, EncCBOR b) => EncCBOR (f a b), EraPParams era, Typeable f, EncCBOR (TxCert era)) => EncCBOR (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(forall a b. (DecCBOR a, DecCBOR b) => DecCBOR (f a b), EraPParams era, Typeable f, DecCBOR (TxCert era)) => DecCBORGroup (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(forall a b. (EncCBOR a, EncCBOR b) => EncCBOR (f a b), EraPParams era, Typeable f, EncCBOR (TxCert era)) => EncCBORGroup (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(forall a b. (NFData a, NFData b) => NFData (f a b), NFData (TxCert era), EraPParams era) => NFData (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Methods

rnf :: ConwayPlutusPurpose f era -> () Source #

(Eq (TxCert era), EraPParams era) => Eq (ConwayPlutusPurpose AsItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Eq (ConwayPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(Eq (TxCert era), EraPParams era) => Eq (ConwayPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Ord (ConwayPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

(NoThunks (TxCert era), EraPParams era) => NoThunks (ConwayPlutusPurpose AsItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Methods

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

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

showTypeOf :: Proxy (ConwayPlutusPurpose AsItem era) -> String #

NoThunks (ConwayPlutusPurpose AsIx era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Methods

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

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

showTypeOf :: Proxy (ConwayPlutusPurpose AsIx era) -> String #

(NoThunks (TxCert era), EraPParams era) => NoThunks (ConwayPlutusPurpose AsIxItem era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

Methods

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

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

showTypeOf :: Proxy (ConwayPlutusPurpose AsIxItem era) -> String #

type Rep (ConwayPlutusPurpose f era) 
Instance details

Defined in Cardano.Ledger.Conway.Scripts

type Rep (ConwayPlutusPurpose f era) = D1 ('MetaData "ConwayPlutusPurpose" "Cardano.Ledger.Conway.Scripts" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) ((C1 ('MetaCons "ConwaySpending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxIn (EraCrypto era))))) :+: (C1 ('MetaCons "ConwayMinting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (PolicyID (EraCrypto era))))) :+: C1 ('MetaCons "ConwayCertifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (TxCert era)))))) :+: (C1 ('MetaCons "ConwayRewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (RewardAccount (EraCrypto era))))) :+: (C1 ('MetaCons "ConwayVoting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (Voter (EraCrypto era))))) :+: C1 ('MetaCons "ConwayProposing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (f Word32 (ProposalProcedure era)))))))

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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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)))))))

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 #

Associated Types

type ADDRHASH 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

type family ADDRHASH c Source #

Instances

Instances details
type ADDRHASH 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

(CardanoHardForkConstraints StandardCrypto, IOLike m) => Protocol m (CardanoBlock StandardCrypto) 
Instance details

Defined in Cardano.Api.Protocol

(IOLike m, LedgerSupportsProtocol (ShelleyBlock (TPraos StandardCrypto) (ShelleyEra StandardCrypto))) => Protocol m (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) 
Instance details

Defined in Cardano.Api.Protocol

ConvertLedgerEvent (HardForkBlock (CardanoEras StandardCrypto)) 
Instance details

Defined in Cardano.Api.LedgerEvents.ConvertLedgerEvent

CardanoHardForkConstraints StandardCrypto => ProtocolClient (CardanoBlock StandardCrypto) 
Instance details

Defined in Cardano.Api.Protocol

Associated Types

data ProtocolClientInfoArgs (CardanoBlock StandardCrypto) 
Instance details

Defined in Cardano.Api.Protocol

ConvertLedgerEvent (ShelleyBlock protocol (AllegraEra StandardCrypto)) 
Instance details

Defined in Cardano.Api.LedgerEvents.ConvertLedgerEvent

ConvertLedgerEvent (ShelleyBlock protocol (AlonzoEra StandardCrypto)) 
Instance details

Defined in Cardano.Api.LedgerEvents.ConvertLedgerEvent

ConvertLedgerEvent (ShelleyBlock protocol (BabbageEra StandardCrypto)) 
Instance details

Defined in Cardano.Api.LedgerEvents.ConvertLedgerEvent

ConvertLedgerEvent (ShelleyBlock protocol (ConwayEra StandardCrypto)) 
Instance details

Defined in Cardano.Api.LedgerEvents.ConvertLedgerEvent

ConvertLedgerEvent (ShelleyBlock protocol (MaryEra StandardCrypto)) 
Instance details

Defined in Cardano.Api.LedgerEvents.ConvertLedgerEvent

ConvertLedgerEvent (ShelleyBlock protocol (ShelleyEra StandardCrypto)) 
Instance details

Defined in Cardano.Api.LedgerEvents.ConvertLedgerEvent

LedgerSupportsProtocol (ShelleyBlock (TPraos StandardCrypto) (ShelleyEra StandardCrypto)) => ProtocolClient (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) 
Instance details

Defined in Cardano.Api.Protocol

Associated Types

data ProtocolClientInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) 
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) 
Instance details

Defined in Cardano.Api.Protocol

data ProtocolInfoArgs (CardanoBlock StandardCrypto) 
Instance details

Defined in Cardano.Api.Protocol

data ProtocolClientInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) 
Instance details

Defined in Cardano.Api.Protocol

data ProtocolInfoArgs (ShelleyBlockHFC (TPraos StandardCrypto) StandardShelley) 
Instance details

Defined in Cardano.Api.Protocol

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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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))))

data NewEpochState era Source #

New Epoch state and environment

Constructors

NewEpochState 

Fields

  • nesEL :: !EpochNo

    Number of the epoch when this NewEpochState was modified last. With respect to block and transactions validation this will always be the current epoch number. However, when it comes to the TICK rule, it will be the epoch number of the previous epoch whenever we are crossing the epoch boundary.

  • nesBprev :: !(BlocksMade (EraCrypto era))

    Blocks made before current epoch

  • nesBcur :: !(BlocksMade (EraCrypto era))

    Blocks made in current epoch

  • nesEs :: !(EpochState era)

    Epoch state

  • nesRu :: !(StrictMaybe (PulsingRewUpdate (EraCrypto era)))

    Possible reward update

  • nesPd :: !(PoolDistr (EraCrypto era))

    Stake distribution within the stake pool

  • stashedAVVMAddresses :: !(StashedAVVMAddresses era)

    AVVM addresses to be removed at the end of the Shelley era. Note that the existence of this field is a hack, related to the transition of UTxO to disk. We remove AVVM addresses from the UTxO on the Shelley/Allegra boundary. However, by this point the UTxO will be moved to disk, and hence doing a scan of the UTxO for AVVM addresses will be expensive. Our solution to this is to do a scan of the UTxO on the Byron/Shelley boundary (since Byron UTxO are still on disk), stash the results here, and then remove them at the Shelley/Allegra boundary.

    This is very much an awkward implementation hack, and hence we hide it from as many places as possible.

Instances

Instances details
Generic (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (NewEpochState era) = D1 ('MetaData "NewEpochState" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" 'False) (C1 ('MetaCons "NewEpochState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nesEL") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo) :*: (S1 ('MetaSel ('Just "nesBprev") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (BlocksMade (EraCrypto era))) :*: S1 ('MetaSel ('Just "nesBcur") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (BlocksMade (EraCrypto era))))) :*: ((S1 ('MetaSel ('Just "nesEs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (EpochState era)) :*: S1 ('MetaSel ('Just "nesRu") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (PulsingRewUpdate (EraCrypto era))))) :*: (S1 ('MetaSel ('Just "nesPd") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PoolDistr (EraCrypto era))) :*: S1 ('MetaSel ('Just "stashedAVVMAddresses") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StashedAVVMAddresses era))))))

Methods

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

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

(EraTxOut era, Show (StashedAVVMAddresses era), Show (GovState era)) => Show (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraTxOut era, EraGov era, DecCBOR (StashedAVVMAddresses era)) => FromCBOR (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraTxOut era, EraGov era, EncCBOR (StashedAVVMAddresses era)) => ToCBOR (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toCBOR :: NewEpochState era -> Encoding Source #

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

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

(EraTxOut era, EraGov era, DecCBOR (StashedAVVMAddresses era)) => DecCBOR (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(EraTxOut era, EncCBOR (StashedAVVMAddresses era), EncCBOR (GovState era)) => EncCBOR (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

encCBOR :: NewEpochState era -> Encoding Source #

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

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

(EraTxOut era, NFData (StashedAVVMAddresses era), NFData (GovState era)) => NFData (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnf :: NewEpochState era -> () Source #

(EraTxOut era, Eq (StashedAVVMAddresses era), Eq (GovState era)) => Eq (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

(Era era, NoThunks (BlocksMade (EraCrypto era)), NoThunks (EpochState era), NoThunks (PulsingRewUpdate (EraCrypto era)), NoThunks (StashedAVVMAddresses era)) => NoThunks (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

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

type Rep (NewEpochState era) 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep (NewEpochState era) = D1 ('MetaData "NewEpochState" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" 'False) (C1 ('MetaCons "NewEpochState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nesEL") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 EpochNo) :*: (S1 ('MetaSel ('Just "nesBprev") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (BlocksMade (EraCrypto era))) :*: S1 ('MetaSel ('Just "nesBcur") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (BlocksMade (EraCrypto era))))) :*: ((S1 ('MetaSel ('Just "nesEs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (EpochState era)) :*: S1 ('MetaSel ('Just "nesRu") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe (PulsingRewUpdate (EraCrypto era))))) :*: (S1 ('MetaSel ('Just "nesPd") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (PoolDistr (EraCrypto era))) :*: S1 ('MetaSel ('Just "stashedAVVMAddresses") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StashedAVVMAddresses era))))))
type TranslationError (AllegraEra c) NewEpochState 
Instance details

Defined in Cardano.Ledger.Allegra.Translation

type TranslationError (AlonzoEra c) NewEpochState 
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError (BabbageEra c) NewEpochState 
Instance details

Defined in Cardano.Ledger.Babbage.Translation

type TranslationError (ConwayEra c) NewEpochState 
Instance details

Defined in Cardano.Ledger.Conway.Translation

type TranslationError (MaryEra c) NewEpochState 
Instance details

Defined in Cardano.Ledger.Mary.Translation

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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 #

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

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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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

serializeAsHexText :: ToCBOR a => a -> Text Source #

Encode a type as CBOR and encode it as base16

mkVersion :: (Integral i, MonadFail m) => i -> m Version Source #

Construct a Version and fail if the supplied value is not a supported version number.

toPlainDecoder :: Version -> Decoder s a -> Decoder s a Source #

Extract the underlying Decoder by specifying the concrete version to be used.

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.4.0.0-6ccf376d820d8fc3f4af3d96bddfe4df0181f1a72511d8efc8767f769c68c6ed" '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 #

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.4.0.0-6ccf376d820d8fc3f4af3d96bddfe4df0181f1a72511d8efc8767f769c68c6ed" '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 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.4.0.0-6ccf376d820d8fc3f4af3d96bddfe4df0181f1a72511d8efc8767f769c68c6ed" '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 (ABlockSignature ByteSpan) 
Instance details

Defined in Cardano.Chain.Block.Header

FromCBOR (ACertificate ByteSpan) 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

FromCBOR (AMempoolPayload ByteSpan) 
Instance details

Defined in Cardano.Chain.MempoolPayload

FromCBOR (ATxAux ByteSpan) 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

FromCBOR (AProposal ByteSpan) 
Instance details

Defined in Cardano.Chain.Update.Proposal

FromCBOR (AVote ByteSpan) 
Instance details

Defined in Cardano.Chain.Update.Vote

DecCBOR (ABlockSignature ByteSpan) 
Instance details

Defined in Cardano.Chain.Block.Header

DecCBOR (ACertificate ByteSpan) 
Instance details

Defined in Cardano.Chain.Delegation.Certificate

DecCBOR (AMempoolPayload ByteSpan) 
Instance details

Defined in Cardano.Chain.MempoolPayload

DecCBOR (ATxAux ByteSpan) 
Instance details

Defined in Cardano.Chain.UTxO.TxAux

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.4.0.0-6ccf376d820d8fc3f4af3d96bddfe4df0181f1a72511d8efc8767f769c68c6ed" '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)))

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)))

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

Hash a given public key

data Committee era Source #

Constructors

Committee 

Fields

Instances

Instances details
Era era => FromJSON (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

parseJSON :: Value -> Parser (Committee era)

parseJSONList :: Value -> Parser [Committee era]

omittedField :: Maybe (Committee era)

EraPParams era => ToJSON (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

toJSON :: Committee era -> Value

toEncoding :: Committee era -> Encoding

toJSONList :: [Committee era] -> Value

toEncodingList :: [Committee era] -> Encoding

omitField :: Committee era -> Bool

Generic (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Associated Types

type Rep (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (Committee era) = D1 ('MetaData "Committee" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) (C1 ('MetaCons "Committee" 'PrefixI 'True) (S1 ('MetaSel ('Just "committeeMembers") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'ColdCommitteeRole (EraCrypto era)) EpochNo)) :*: S1 ('MetaSel ('Just "committeeThreshold") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnitInterval)))

Methods

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

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

Show (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => DecCBOR (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Era era => EncCBOR (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

encCBOR :: Committee era -> Encoding Source #

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

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

Default (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

def :: Committee era #

Era era => NFData (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

rnf :: Committee era -> () Source #

Eq (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

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

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

Era era => NoThunks (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

Methods

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

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

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

type Rep (Committee era) 
Instance details

Defined in Cardano.Ledger.Conway.Governance.Procedures

type Rep (Committee era) = D1 ('MetaData "Committee" "Cardano.Ledger.Conway.Governance.Procedures" "cardano-ledger-conway-1.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" 'False) (C1 ('MetaCons "Committee" 'PrefixI 'True) (S1 ('MetaSel ('Just "committeeMembers") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map (Credential 'ColdCommitteeRole (EraCrypto era)) EpochNo)) :*: S1 ('MetaSel ('Just "committeeThreshold") '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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))))))

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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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 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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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)))))))

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)

Delegate staking credentials to a 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

Crypto c => EncCBOR (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

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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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 => EncCBOR (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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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 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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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.17.0.0-ed41115f30aea12826c7e98271388af39c652244463f16622d3682aa6c1354c0" '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))))))

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

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-1881c023e0886f672d28a4c45a256e973fe8d96632667e110b19ce5f49f52117" '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

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-1881c023e0886f672d28a4c45a256e973fe8d96632667e110b19ce5f49f52117" 'True) (C1 ('MetaCons "EpochInterval" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

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-1881c023e0886f672d28a4c45a256e973fe8d96632667e110b19ce5f49f52117" '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-1881c023e0886f672d28a4c45a256e973fe8d96632667e110b19ce5f49f52117" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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)))))

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 #

castSafeHash :: forall i j c. SafeHash c i -> SafeHash c j Source #

To change the index parameter of SafeHash (which is a phantom type) use castSafeHash

extractHash :: SafeHash c i -> Hash (HASH c) i Source #

Extract the hash out of a SafeHash

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.

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 #

textToDns :: MonadFail m => Int -> Text -> m DnsName Source #

Turn a Text into a DnsName, fail if the Text has more than n Bytes

textToUrl :: MonadFail m => Int -> Text -> m Url Source #

Turn a Text into a Url, fail if the Text has more than n Bytes

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "DnsName" 'PrefixI 'True) (S1 ('MetaSel ('Just "dnsToText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'False) (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 :: Type -> Type))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "NonNegativeInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BoundedRatio NonNegativeInterval Word64))))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "UnitInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BoundedRatio UnitInterval Word64))))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'True) (C1 ('MetaCons "Url" 'PrefixI 'True) (S1 ('MetaSel ('Just "urlToText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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))))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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)))

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 #

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

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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 #

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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) :*: S1 ('MetaSel ('Just "drepDelegs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (Credential 'Staking c))))))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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) :*: S1 ('MetaSel ('Just "drepDelegs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set (Credential 'Staking c))))))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" 'False) (C1 ('MetaCons "PoolMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "pmUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Url) :*: S1 ('MetaSel ('Just "pmHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)))

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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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)))))))

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 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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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.15.0.0-2e27acc191d04ed2274d46f93f1cbbd0e33c9b0ece6c9a0c5701a53b3db5b148" '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 ShelleyGenesisStaking c Source #

Genesis Shelley staking configuration.

This allows us to configure some initial stake pools and delegation to them, in order to test Praos in a static configuration, without requiring on-chain registration and delegation.

For simplicity, pools defined in the genesis staking do not pay deposits for their registration.

Constructors

ShelleyGenesisStaking 

Fields

  • sgsPools :: ListMap (KeyHash 'StakePool c) (PoolParams c)

    Pools to register

    The key in this map is the hash of the public key of the _pool_. This need not correspond to any payment or staking key, but must correspond to the cold key held by TPraosIsCoreNode.

  • sgsStake :: ListMap (KeyHash 'Staking c) (KeyHash 'StakePool c)

    Stake-holding key hash credentials and the pools to delegate that stake to. We require the raw staking key hash in order to:

    • Avoid pointer addresses, which would be tricky when there's no slot or transaction to point to.
    • Avoid script credentials.

Instances

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

Defined in Cardano.Ledger.Shelley.Genesis

Crypto c => ToJSON (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Monoid (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Semigroup (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Generic (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Associated Types

type Rep (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep (ShelleyGenesisStaking c) = D1 ('MetaData "ShelleyGenesisStaking" "Cardano.Ledger.Shelley.Genesis" "cardano-ledger-shelley-1.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" 'False) (C1 ('MetaCons "ShelleyGenesisStaking" 'PrefixI 'True) (S1 ('MetaSel ('Just "sgsPools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (KeyHash 'StakePool c) (PoolParams c))) :*: S1 ('MetaSel ('Just "sgsStake") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (KeyHash 'Staking c) (KeyHash 'StakePool c)))))
Show (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Crypto c => DecCBOR (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Crypto c => EncCBOR (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Eq (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

NoThunks (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

Methods

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

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

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

type Rep (ShelleyGenesisStaking c) 
Instance details

Defined in Cardano.Ledger.Shelley.Genesis

type Rep (ShelleyGenesisStaking c) = D1 ('MetaData "ShelleyGenesisStaking" "Cardano.Ledger.Shelley.Genesis" "cardano-ledger-shelley-1.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" 'False) (C1 ('MetaCons "ShelleyGenesisStaking" 'PrefixI 'True) (S1 ('MetaSel ('Just "sgsPools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (KeyHash 'StakePool c) (PoolParams c))) :*: S1 ('MetaSel ('Just "sgsStake") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListMap (KeyHash 'Staking c) (KeyHash 'StakePool c)))))

data GenesisDelegCert c Source #

Genesis key delegation certificate

Instances

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

Defined in Cardano.Ledger.Shelley.TxCert

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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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 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

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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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)))))

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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" '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 AccountState Source #

Constructors

AccountState 

Fields

Instances

Instances details
ToJSON AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

toJSON :: AccountState -> Value

toEncoding :: AccountState -> Encoding

toJSONList :: [AccountState] -> Value

toEncodingList :: [AccountState] -> Encoding

omitField :: AccountState -> Bool

Generic AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Associated Types

type Rep AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep AccountState = D1 ('MetaData "AccountState" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" 'False) (C1 ('MetaCons "AccountState" 'PrefixI 'True) (S1 ('MetaSel ('Just "asTreasury") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "asReserves") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))
Show AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

DecCBOR AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

EncCBOR AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Default AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

def :: AccountState #

NFData AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

rnf :: AccountState -> () Source #

Eq AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

NoThunks AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

Methods

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

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

showTypeOf :: Proxy AccountState -> String #

type Rep AccountState 
Instance details

Defined in Cardano.Ledger.Shelley.LedgerState.Types

type Rep AccountState = D1 ('MetaData "AccountState" "Cardano.Ledger.Shelley.LedgerState.Types" "cardano-ledger-shelley-1.14.1.0-6da62eb4db0139bb466588c0f3bf17f53ad859af8a090c113a1a960870dce943" 'False) (C1 ('MetaCons "AccountState" 'PrefixI 'True) (S1 ('MetaSel ('Just "asTreasury") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin) :*: S1 ('MetaSel ('Just "asReserves") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Coin)))