cardano-api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Era

Description

Cardano eras, sometimes we have to distinguish them.

Synopsis

Eras

data ByronEra Source #

A type used as a tag to distinguish the Byron era.

Instances

Instances details
IsCardanoEra ByronEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

HasTypeProxy ByronEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Associated Types

data AsType ByronEra 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data AsType ByronEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data ShelleyEra Source #

A type used as a tag to distinguish the Shelley era.

data AlonzoEra Source #

A type used as a tag to distinguish the Alonzo era.

data BabbageEra Source #

A type used as a tag to distinguish the Babbage era.

Instances

Instances details
IsCardanoEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

IsAllegraBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

IsAlonzoBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

IsBabbageBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

IsMaryBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

IsShelleyBasedEra BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

HasTypeProxy BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Associated Types

data AsType BabbageEra 
Instance details

Defined in Cardano.Api.Era.Internal.Core

HasScriptLanguageInEra PlutusScriptV1 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

HasScriptLanguageInEra PlutusScriptV2 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

ToAlonzoScript PlutusScriptV1 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

ToAlonzoScript PlutusScriptV2 BabbageEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data ConwayEra Source #

A type used as a tag to distinguish the Conway era.

Instances

Instances details
IsCardanoEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

IsAllegraBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

IsAlonzoBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

IsBabbageBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

IsConwayBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

IsMaryBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

IsShelleyBasedEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

IsEra ConwayEra Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

HasTypeProxy ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Associated Types

data AsType ConwayEra 
Instance details

Defined in Cardano.Api.Era.Internal.Core

HasScriptLanguageInEra PlutusScriptV1 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

HasScriptLanguageInEra PlutusScriptV2 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

HasScriptLanguageInEra PlutusScriptV3 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

ToAlonzoScript PlutusScriptV1 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

ToAlonzoScript PlutusScriptV2 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

ToAlonzoScript PlutusScriptV3 ConwayEra Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Eons

eraProtVerLow :: ShelleyBasedEra era -> Version Source #

Lookup the lower major protocol version for the shelley based era. In other words this is the major protocol version that the era has started in.

data ShelleyBasedEra era where Source #

While the Byron and Shelley eras are quite different, there are several eras that are based on Shelley with only minor differences. It is useful to be able to treat the Shelley-based eras in a mostly-uniform way.

Values of this type witness the fact that the era is Shelley-based. This can be used to constrain the era to being a Shelley-based on. It allows non-uniform handling making case distinctions on the constructor.

Instances

Instances details
Eon ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Methods

inEonForEra :: a -> (ShelleyBasedEra era -> a) -> CardanoEra era -> a Source #

ToCardanoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

TestEquality ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Convert AllegraEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Convert AlonzoEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert ConwayEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert MaryEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Convert ShelleyBasedEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Convert ShelleyEraOnly ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyEraOnly

Convert ShelleyToAllegraEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAllegraEra

Convert ShelleyToAlonzoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAlonzoEra

Convert ShelleyToBabbageEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToMaryEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToMaryEra

Convert Era ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> ShelleyBasedEra era Source #

ToJSON (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Methods

toJSON :: ShelleyBasedEra era -> Value #

toEncoding :: ShelleyBasedEra era -> Encoding #

toJSONList :: [ShelleyBasedEra era] -> Value #

toEncodingList :: [ShelleyBasedEra era] -> Encoding #

omitField :: ShelleyBasedEra era -> Bool #

Show (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

NFData (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Methods

rnf :: ShelleyBasedEra era -> () Source #

Eq (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Ord (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Pretty (ShelleyBasedEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Methods

pretty :: ShelleyBasedEra era -> Doc ann #

prettyList :: [ShelleyBasedEra era] -> Doc ann #

type family ShelleyLedgerEra era = (ledgerera :: Type) | ledgerera -> era where ... Source #

A type family that connects our era type tags to equivalent type tags used in the Shelley ledger library.

This type mapping connect types from this API with types in the Shelley ledger library which allows writing conversion functions in a more generic way.

data AnyShelleyBasedEra where Source #

Constructors

AnyShelleyBasedEra :: forall era. Typeable era => ShelleyBasedEra era -> AnyShelleyBasedEra 

Instances

Instances details
FromJSON AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

ToJSON AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Bounded AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Enum AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Show AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Eq AnyShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

data InAnyShelleyBasedEra (thing :: Type -> Type) where Source #

This pairs up some era-dependent type with a ShelleyBasedEra value that tells us what era it is, but hides the era type. This is useful when the era is not statically known, for example when deserialising from a file.

Constructors

InAnyShelleyBasedEra :: forall era (thing :: Type -> Type). Typeable era => ShelleyBasedEra era -> thing era -> InAnyShelleyBasedEra thing 

inEonForShelleyBasedEra :: Eon eon => a -> (eon era -> a) -> ShelleyBasedEra era -> a Source #

Determine the value to use for a feature in a given ShelleyBasedEra.

inEonForShelleyBasedEraMaybe :: Eon eon => (eon era -> a) -> ShelleyBasedEra era -> Maybe a Source #

forShelleyBasedEraInEon :: Eon eon => ShelleyBasedEra era -> a -> (eon era -> a) -> a Source #

forShelleyBasedEraInEonMaybe :: Eon eon => ShelleyBasedEra era -> (eon era -> a) -> Maybe a Source #

data AllegraEraOnwards era where Source #

Instances

Instances details
Eon AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Methods

inEonForEra :: a -> (AllegraEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Convert AllegraEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Convert AllegraEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Convert ConwayEraOnwards AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Show (AllegraEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Eq (AllegraEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

data BabbageEraOnwards era where Source #

Instances

Instances details
Eon BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Methods

inEonForEra :: a -> (BabbageEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert ConwayEraOnwards BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert Era BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> BabbageEraOnwards era Source #

Show (BabbageEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Eq (BabbageEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

data MaryEraOnwards era where Source #

Instances

Instances details
Eon MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Methods

inEonForEra :: a -> (MaryEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Convert BabbageEraOnwards MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert MaryEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Convert MaryEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Convert Era MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> MaryEraOnwards era Source #

Show (MaryEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Eq (MaryEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

data ShelleyToAllegraEra era where Source #

data ShelleyToAlonzoEra era where Source #

data ShelleyToBabbageEra era where Source #

Instances

Instances details
Eon ShelleyToBabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Methods

inEonForEra :: a -> (ShelleyToBabbageEra era -> a) -> CardanoEra era -> a Source #

ToCardanoEra ShelleyToBabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToBabbageEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToBabbageEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Show (ShelleyToBabbageEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Eq (ShelleyToBabbageEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Ord (ShelleyToBabbageEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

data ShelleyToMaryEra era where Source #

data ConwayEraOnwards era where Source #

Instances

Instances details
Eon ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Methods

inEonForEra :: a -> (ConwayEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards Era Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: ConwayEraOnwards era -> Era era Source #

Convert Era ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> ConwayEraOnwards era Source #

Show (ConwayEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Eq (ConwayEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Ord (ConwayEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

type ConwayEraOnwardsConstraints era = (HashAlgorithm HASH, Signable (VRF StandardCrypto) Seed, PraosProtocolSupportsNode (ConsensusProtocol era), ShelleyBlock (ConsensusProtocol era) (ShelleyLedgerEra era) ~ ConsensusBlockForEra era, ShelleyCompatible (ConsensusProtocol era) (ShelleyLedgerEra era), ADDRHASH ~ Blake2b_224, AlonzoEraTxOut (ShelleyLedgerEra era), AlonzoEraTxWits (ShelleyLedgerEra era), BabbageEraTxBody (ShelleyLedgerEra era), ConwayEraGov (ShelleyLedgerEra era), ConwayEraPParams (ShelleyLedgerEra era), ConwayEraTxBody (ShelleyLedgerEra era), ConwayEraTxCert (ShelleyLedgerEra era), Era (ShelleyLedgerEra era), EraGov (ShelleyLedgerEra era), EraPParams (ShelleyLedgerEra era), EraTx (ShelleyLedgerEra era), EraTxBody (ShelleyLedgerEra era), EraTxOut (ShelleyLedgerEra era), EraUTxO (ShelleyLedgerEra era), GovState (ShelleyLedgerEra era) ~ ConwayGovState (ShelleyLedgerEra era), HashAnnotated (TxBody (ShelleyLedgerEra era)) EraIndependentTxBody, MaryEraTxBody (ShelleyLedgerEra era), Script (ShelleyLedgerEra era) ~ AlonzoScript (ShelleyLedgerEra era), ScriptsNeeded (ShelleyLedgerEra era) ~ AlonzoScriptsNeeded (ShelleyLedgerEra era), ShelleyEraTxCert (ShelleyLedgerEra era), TxCert (ShelleyLedgerEra era) ~ ConwayTxCert (ShelleyLedgerEra era), Value (ShelleyLedgerEra era) ~ MaryValue, FromCBOR (ChainDepState (ConsensusProtocol era)), FromCBOR (DebugLedgerState era), IsCardanoEra era, IsShelleyBasedEra era, ToJSON (ChainDepState (ConsensusProtocol era)), ToJSON (DebugLedgerState era), Typeable era, (era == ByronEra) ~ 'False) Source #

data AlonzoEraOnwards era where Source #

Instances

Instances details
Eon AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Methods

inEonForEra :: a -> (AlonzoEraOnwards era -> a) -> CardanoEra era -> a Source #

ToCardanoEra AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Convert AlonzoEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Convert AlonzoEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert Era AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> AlonzoEraOnwards era Source #

Show (AlonzoEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Eq (AlonzoEraOnwards era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

CardanoEra

data CardanoEra era where Source #

This GADT provides a value-level representation of all the Cardano eras. This enables pattern matching on the era to allow them to be treated in a non-uniform way.

This can be used in combination with the IsCardanoEra class to get access to this value.

In combination this can often enable code that handles all eras, and does so uniformly where possible, and non-uniformly where necessary.

Instances

Instances details
Eon CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

inEonForEra :: a -> (CardanoEra era -> a) -> CardanoEra era -> a Source #

ToCardanoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

TestEquality CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

testEquality :: CardanoEra a -> CardanoEra b -> Maybe (a :~: b) Source #

Convert AllegraEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Convert AlonzoEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert ByronToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ByronToAlonzoEra

Convert ConwayEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert MaryEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Convert ShelleyBasedEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Convert ShelleyEraOnly CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyEraOnly

Convert ShelleyToAllegraEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAllegraEra

Convert ShelleyToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAlonzoEra

Convert ShelleyToBabbageEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToMaryEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToMaryEra

Convert Era CardanoEra Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> CardanoEra era Source #

ToJSON (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

toJSON :: CardanoEra era -> Value #

toEncoding :: CardanoEra era -> Encoding #

toJSONList :: [CardanoEra era] -> Value #

toEncodingList :: [CardanoEra era] -> Encoding #

omitField :: CardanoEra era -> Bool #

Show (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Eq (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

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

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

Ord (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Pretty (CardanoEra era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

pretty :: CardanoEra era -> Doc ann #

prettyList :: [CardanoEra era] -> Doc ann #

class HasTypeProxy era => IsCardanoEra era where Source #

The class of Cardano eras. This allows uniform handling of all Cardano eras, but also non-uniform by making case distinctions on the CardanoEra constructors.

data AnyCardanoEra where Source #

Constructors

AnyCardanoEra :: forall era. Typeable era => CardanoEra era -> AnyCardanoEra 

Instances

Instances details
FromJSON AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

parseJSON :: Value -> Parser AnyCardanoEra #

parseJSONList :: Value -> Parser [AnyCardanoEra] #

omittedField :: Maybe AnyCardanoEra #

ToJSON AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

toJSON :: AnyCardanoEra -> Value #

toEncoding :: AnyCardanoEra -> Encoding #

toJSONList :: [AnyCardanoEra] -> Value #

toEncodingList :: [AnyCardanoEra] -> Encoding #

omitField :: AnyCardanoEra -> Bool #

Bounded AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Enum AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Show AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Eq AnyCardanoEra Source #

Assumes that 'CardanoEra era' are singletons

Instance details

Defined in Cardano.Api.Era.Internal.Core

Pretty AnyCardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

pretty :: AnyCardanoEra -> Doc ann #

prettyList :: [AnyCardanoEra] -> Doc ann #

anyCardanoEra :: CardanoEra era -> AnyCardanoEra Source #

Like the AnyCardanoEra constructor but does not demand a IsCardanoEra class constraint.

data InAnyCardanoEra (thing :: Type -> Type) where Source #

This pairs up some era-dependent type with a CardanoEra value that tells us what era it is, but hides the era type. This is useful when the era is not statically known, for example when deserialising from a file.

Constructors

InAnyCardanoEra :: forall era (thing :: Type -> Type). Typeable era => CardanoEra era -> thing era -> InAnyCardanoEra thing 

inAnyCardanoEra :: CardanoEra era -> thing era -> InAnyCardanoEra thing Source #

cardanoEraConstraints :: CardanoEra era -> (CardanoEraConstraints era => a) -> a Source #

type family CardanoLedgerEra era = (ledgerera :: Type) | ledgerera -> era where ... Source #

A type family that connects our era type tags to equivalent type tags used in the ledger library.

This type mapping connect types from this API with types in the ledger library which allows writing conversion functions in a more generic way.

class ToCardanoEra (eon :: Type -> Type) where Source #

Methods

toCardanoEra :: eon era -> CardanoEra era Source #

Instances

Instances details
ToCardanoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

ToCardanoEra AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

ToCardanoEra AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

ToCardanoEra BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

ToCardanoEra ByronToAlonzoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ByronToAlonzoEra

ToCardanoEra ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

ToCardanoEra MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

ToCardanoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

ToCardanoEra ShelleyEraOnly Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyEraOnly

ToCardanoEra ShelleyToAllegraEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAllegraEra

ToCardanoEra ShelleyToAlonzoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAlonzoEra

ToCardanoEra ShelleyToBabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

ToCardanoEra ShelleyToMaryEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToMaryEra

ToCardanoEra Era Source #

A temporary compatibility instance for easier conversion between the experimental and old APIs.

Instance details

Defined in Cardano.Api.Experimental.Era

Methods

toCardanoEra :: Era era -> CardanoEra era Source #

IsEon

class Eon (eon :: Type -> Type) where Source #

An Eon is a span of multiple eras. Eons are used to scope functionality to particular eras such that it isn't possible construct code that uses functionality that is outside of given eras.

Methods

inEonForEra Source #

Arguments

:: a

Value to use if the eon does not include the era

-> (eon era -> a)

Function to get the value to use if the eon includes the era

-> CardanoEra era

Era to check

-> a

The value to use

Determine the value to use in an eon (a span of multiple eras). Note that the negative case is the first argument, and the positive case is the second as per the either function convention.

Instances

Instances details
Eon CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

inEonForEra :: a -> (CardanoEra era -> a) -> CardanoEra era -> a Source #

Eon AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Methods

inEonForEra :: a -> (AllegraEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Methods

inEonForEra :: a -> (AlonzoEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Methods

inEonForEra :: a -> (BabbageEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon ByronToAlonzoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ByronToAlonzoEra

Methods

inEonForEra :: a -> (ByronToAlonzoEra era -> a) -> CardanoEra era -> a Source #

Eon ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Methods

inEonForEra :: a -> (ConwayEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Methods

inEonForEra :: a -> (MaryEraOnwards era -> a) -> CardanoEra era -> a Source #

Eon ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Methods

inEonForEra :: a -> (ShelleyBasedEra era -> a) -> CardanoEra era -> a Source #

Eon ShelleyEraOnly Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyEraOnly

Methods

inEonForEra :: a -> (ShelleyEraOnly era -> a) -> CardanoEra era -> a Source #

Eon ShelleyToAllegraEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAllegraEra

Methods

inEonForEra :: a -> (ShelleyToAllegraEra era -> a) -> CardanoEra era -> a Source #

Eon ShelleyToAlonzoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAlonzoEra

Methods

inEonForEra :: a -> (ShelleyToAlonzoEra era -> a) -> CardanoEra era -> a Source #

Eon ShelleyToBabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Methods

inEonForEra :: a -> (ShelleyToBabbageEra era -> a) -> CardanoEra era -> a Source #

Eon ShelleyToMaryEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToMaryEra

Methods

inEonForEra :: a -> (ShelleyToMaryEra era -> a) -> CardanoEra era -> a Source #

Eon Era Source #

A temporary compatibility instance for easier conversion between the experimental and old APIs.

Instance details

Defined in Cardano.Api.Experimental.Era

Methods

inEonForEra :: a -> (Era era -> a) -> CardanoEra era -> a Source #

data EraInEon (eon :: Type -> Type) where Source #

Constructors

EraInEon :: forall era (eon :: Type -> Type). (Typeable era, Typeable (eon era), Eon eon) => eon era -> EraInEon eon 

Instances

Instances details
Show (EraInEon eon) Source #

Assumes that eons are singletons

Instance details

Defined in Cardano.Api.Era.Internal.Core

TestEquality eon => Eq (EraInEon eon) Source #

Assumes that eons are singletons

Instance details

Defined in Cardano.Api.Era.Internal.Core

Methods

(==) :: EraInEon eon -> EraInEon eon -> Bool Source #

(/=) :: EraInEon eon -> EraInEon eon -> Bool Source #

inEonForEraMaybe Source #

Arguments

:: Eon eon 
=> (eon era -> a)

Function to get the value to use if the eon includes the era

-> CardanoEra era

Era to check

-> Maybe a

The value to use

forEraInEon Source #

Arguments

:: Eon eon 
=> CardanoEra era

Era to check

-> a

Value to use if the eon does not include the era

-> (eon era -> a)

Function to get the value to use if the eon includes the era

-> a

The value to use

forEraInEonMaybe Source #

Arguments

:: Eon eon 
=> CardanoEra era

Era to check

-> (eon era -> a)

Function to get the value to use if the eon includes the era

-> Maybe a

The value to use

forEraMaybeEon Source #

Arguments

:: Eon eon 
=> CardanoEra era

Era to check

-> Maybe (eon era)

The eon if supported in the era

maybeEon Source #

Arguments

:: (Eon eon, IsCardanoEra era) 
=> Maybe (eon era)

The eon if supported in the era

monoidForEraInEon :: (Eon eon, Monoid a) => CardanoEra era -> (eon era -> a) -> a Source #

monoidForEraInEonA :: (Eon eon, Applicative f, Monoid a) => CardanoEra era -> (eon era -> f a) -> f a Source #

class Convert (f :: a -> Type) (g :: a -> Type) where Source #

The Convert class is aimed at exposing a single interface that lets us convert between eons. However this is generalizable to any injective relationship between types.

Methods

convert :: forall (era :: a). f era -> g era Source #

Instances

Instances details
Convert AllegraEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Convert AllegraEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AllegraEraOnwards

Convert AlonzoEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Convert AlonzoEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.AlonzoEraOnwards

Convert BabbageEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert BabbageEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.BabbageEraOnwards

Convert ByronToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ByronToAlonzoEra

Convert ConwayEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards AllegraEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ConwayEraOnwards

Convert ConwayEraOnwards Era Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: ConwayEraOnwards era -> Era era Source #

Convert MaryEraOnwards CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Convert MaryEraOnwards ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.MaryEraOnwards

Convert ShelleyBasedEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyBasedEra

Convert ShelleyEraOnly CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyEraOnly

Convert ShelleyEraOnly ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyEraOnly

Convert ShelleyToAllegraEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAllegraEra

Convert ShelleyToAllegraEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAllegraEra

Convert ShelleyToAlonzoEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAlonzoEra

Convert ShelleyToAlonzoEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToAlonzoEra

Convert ShelleyToBabbageEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToBabbageEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToBabbageEra

Convert ShelleyToMaryEra CardanoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToMaryEra

Convert ShelleyToMaryEra ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.ShelleyToMaryEra

Convert Era CardanoEra Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> CardanoEra era Source #

Convert Era AlonzoEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> AlonzoEraOnwards era Source #

Convert Era BabbageEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> BabbageEraOnwards era Source #

Convert Era ConwayEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> ConwayEraOnwards era Source #

Convert Era MaryEraOnwards Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> MaryEraOnwards era Source #

Convert Era ShelleyBasedEra Source # 
Instance details

Defined in Cardano.Api.Experimental.Era

Methods

convert :: Era era -> ShelleyBasedEra era Source #

Convert (a2 :: a1 -> Type) (a2 :: a1 -> Type) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Eon.Convert

Methods

convert :: forall (era :: a1). a2 era -> a2 era Source #

class Inject t s where Source #

Methods

inject :: t -> s Source #

Instances

Instances details
Inject Coin DeltaCoin 
Instance details

Defined in Cardano.Ledger.Coin

Inject Coin MaryValue 
Instance details

Defined in Cardano.Ledger.Mary.Value

Inject a a 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

inject :: a -> a Source #

Inject (BabbageContextError era) (ConwayContextError era) 
Instance details

Defined in Cardano.Ledger.Conway.TxInfo

Inject (AlonzoContextError era) (BabbageContextError era) 
Instance details

Defined in Cardano.Ledger.Babbage.TxInfo

Inject (AlonzoContextError era) (ConwayContextError era) 
Instance details

Defined in Cardano.Ledger.Conway.TxInfo

Era-dependend features

data Featured (eon :: Type -> Type) era a where Source #

A value only if the eon includes era

Constructors

Featured 

Fields

  • :: forall (eon :: Type -> Type) era a. eon era

    The witness that the eon includes era

  • -> a

    The value to use

  • -> Featured eon era a
     

Instances

Instances details
Functor (Featured eon era) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Feature

Methods

fmap :: (a -> b) -> Featured eon era a -> Featured eon era b Source #

(<$) :: a -> Featured eon era b -> Featured eon era a Source #

(Show a, Show (eon era)) => Show (Featured eon era a) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Feature

Methods

showsPrec :: Int -> Featured eon era a -> ShowS Source #

show :: Featured eon era a -> String Source #

showList :: [Featured eon era a] -> ShowS Source #

(Eq a, Eq (eon era)) => Eq (Featured eon era a) Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Feature

Methods

(==) :: Featured eon era a -> Featured eon era a -> Bool Source #

(/=) :: Featured eon era a -> Featured eon era a -> Bool Source #

mkFeatured Source #

Arguments

:: forall (eon :: Type -> Type) era a. (IsCardanoEra era, Eon eon) 
=> a

a value featured in eon

-> Maybe (Featured eon era a)

Just if era is in eon

Create a Featured with automatic witness conjuring

unFeatured :: forall (eon :: Type -> Type) era a. Featured eon era a -> a Source #

asFeaturedInEra :: forall (eon :: Type -> Type) a era. Eon eon => a -> CardanoEra era -> Maybe (Featured eon era a) Source #

Attempt to construct a FeatureValue from a value and era. If the eon is not supported in the era, then NoFeatureValue is returned.

asFeaturedInShelleyBasedEra :: forall (eon :: Type -> Type) a era. Eon eon => a -> ShelleyBasedEra era -> Maybe (Featured eon era a) Source #

Attempt to construct a FeatureValue from a value and a shelley-based-era.

Data family instances

data family AsType t Source #

A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.

Values of this type are passed to deserialisation functions for example.

Instances

Instances details
data AsType AddressAny Source # 
Instance details

Defined in Cardano.Api.Address

data AsType ByronAddr Source # 
Instance details

Defined in Cardano.Api.Address

data AsType ShelleyAddr Source # 
Instance details

Defined in Cardano.Api.Address

data AsType StakeAddress Source # 
Instance details

Defined in Cardano.Api.Address

data AsType BlockHeader Source # 
Instance details

Defined in Cardano.Api.Block

data AsType ByronKey Source # 
Instance details

Defined in Cardano.Api.Byron.Internal.Key

data AsType ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Byron.Internal.Key

data AsType ByronUpdateProposal Source # 
Instance details

Defined in Cardano.Api.Byron.Internal.Proposal

data AsType ByronVote Source # 
Instance details

Defined in Cardano.Api.Byron.Internal.Proposal

data AsType DRepMetadata Source # 
Instance details

Defined in Cardano.Api.Certificate.Internal.DRepMetadata

data AsType OperationalCertificate Source # 
Instance details

Defined in Cardano.Api.Certificate.Internal.OperationalCertificate

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Cardano.Api.Certificate.Internal.OperationalCertificate

data AsType StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.Certificate.Internal.StakePoolMetadata

data AsType AllegraEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data AsType AlonzoEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data AsType BabbageEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data AsType ByronEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data AsType ConwayEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data AsType MaryEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data AsType ShelleyEra Source # 
Instance details

Defined in Cardano.Api.Era.Internal.Core

data AsType GovernancePoll Source # 
Instance details

Defined in Cardano.Api.Governance.Internal.Poll

data AsType GovernancePollAnswer Source # 
Instance details

Defined in Cardano.Api.Governance.Internal.Poll

data AsType CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType DRepKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType GenesisKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType PaymentKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType StakeKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType StakePoolExtendedKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal

data AsType KesKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal.Praos

data AsType VrfKey Source # 
Instance details

Defined in Cardano.Api.Key.Internal.Praos

data AsType PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType PlutusScriptV3 Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType ScriptHash Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType ScriptInAnyLang Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType SimpleScript' Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType HashableScriptData Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.ScriptData

data AsType ScriptData Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.ScriptData

data AsType PraosNonce Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

data AsType UpdateProposal Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

data AsType EraHistory Source # 
Instance details

Defined in Cardano.Api.Query.Internal.Type.QueryInMode

data AsType TextEnvelope Source # 
Instance details

Defined in Cardano.Api.Serialise.TextEnvelope.Internal

data AsType TxId Source # 
Instance details

Defined in Cardano.Api.Tx.Internal.TxIn

data AsType TxMetadata Source # 
Instance details

Defined in Cardano.Api.Tx.Internal.TxMetadata

data AsType AssetName Source # 
Instance details

Defined in Cardano.Api.Value.Internal

data AsType PolicyId Source # 
Instance details

Defined in Cardano.Api.Value.Internal

data AsType GovActionId Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

data AsType Term Source # 
Instance details

Defined in Cardano.Api.Serialise.Cbor.Canonical

data AsType (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Address

data AsType (Address addrtype) = AsAddress (AsType addrtype)
data AsType (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Address

data AsType (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Certificate.Internal

data AsType (Proposal era) Source # 
Instance details

Defined in Cardano.Api.Governance.Internal.Action.ProposalProcedure

data AsType (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Internal.Action.VotingProcedure

data AsType (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Internal.Action.VotingProcedure

data AsType (Hash a) Source # 
Instance details

Defined in Cardano.Api.Hash

data AsType (Hash a) = AsHash (AsType a)
data AsType (SigningKey a) Source # 
Instance details

Defined in Cardano.Api.Key.Internal.Class

data AsType (VerificationKey a) Source # 
Instance details

Defined in Cardano.Api.Key.Internal.Class

data AsType (PlutusScript lang) Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType (Script lang) Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType (Script lang) = AsScript (AsType lang)
data AsType (ScriptInEra era) Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

data AsType (KeyWitness era) Source # 
Instance details

Defined in Cardano.Api.Tx.Internal.Sign

data AsType (Tx era) Source # 
Instance details

Defined in Cardano.Api.Tx.Internal.Sign

data AsType (Tx era) = AsTx (AsType era)
data AsType (TxBody era) Source # 
Instance details

Defined in Cardano.Api.Tx.Internal.Sign

data AsType (TxBody era) = AsTxBody (AsType era)
data AsType (Credential 'ColdCommitteeRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

data AsType (Credential 'DRepRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

data AsType (Credential 'HotCommitteeRole) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

data AsType (PlutusScriptInEra era lang) Source # 
Instance details

Defined in Cardano.Api.Plutus.Internal.Script

Era case handling

Case on CardanoEra

caseByronOrShelleyBasedEra :: a -> (ShelleyBasedEraConstraints era => ShelleyBasedEra era -> a) -> CardanoEra era -> a Source #

caseByronOrShelleyBasedEra f g era returns f in Byron and applies g to Shelley-based eras.

Case on ShelleyBasedEra

caseByronToAlonzoOrBabbageEraOnwards :: (ByronToAlonzoEraConstraints era => ByronToAlonzoEra era -> a) -> (BabbageEraOnwardsConstraints era => BabbageEraOnwards era -> a) -> CardanoEra era -> a Source #

caseByronToAlonzoOrBabbageEraOnwards f g era applies f to byron, shelley, allegra, mary, and alonzo; and g to babbage and later eras.

caseShelleyToAllegraOrMaryEraOnwards :: (ShelleyToAllegraEraConstraints era => ShelleyToAllegraEra era -> a) -> (MaryEraOnwardsConstraints era => MaryEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyToAllegraOrMaryEraOnwards f g era applies f to shelley and allegra; and applies g to mary and later eras.

caseShelleyToMaryOrAlonzoEraOnwards :: (ShelleyToMaryEraConstraints era => ShelleyToMaryEra era -> a) -> (AlonzoEraOnwardsConstraints era => AlonzoEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyToMaryOrAlonzoEraOnwards f g era applies f to shelley, allegra, and mary; and applies g to alonzo and later eras.

caseShelleyToAlonzoOrBabbageEraOnwards :: (ShelleyToAlonzoEraConstraints era => ShelleyToAlonzoEra era -> a) -> (BabbageEraOnwardsConstraints era => BabbageEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyToAlonzoOrBabbageEraOnwards f g era applies f to shelley, allegra, mary, and alonzo; and applies g to babbage and later eras.

caseShelleyToBabbageOrConwayEraOnwards :: (ShelleyToBabbageEraConstraints era => ShelleyToBabbageEra era -> a) -> (ConwayEraOnwardsConstraints era => ConwayEraOnwards era -> a) -> ShelleyBasedEra era -> a Source #

caseShelleyToBabbageOrConwayEraOnwards f g era applies f to eras before conway; and applies g to conway and later eras.