cardano-api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Experimental

Contents

Description

This module provides an experimental library interface that is intended to replace the existing api. It is subject to dramatic changes so use with caution.

Synopsis

Tx related

newtype UnsignedTx era #

Constructors

UnsignedTx (Tx (LedgerEra era)) 

Instances

Instances details
IsEra era => Show (UnsignedTx era) 
Instance details

Defined in Cardano.Api.Experimental.Tx

data BabbageEra #

Instances

Instances details
IsAllegraBasedEra BabbageEra 
Instance details

Defined in Cardano.Api.Eon.AllegraEraOnwards

IsAlonzoBasedEra BabbageEra 
Instance details

Defined in Cardano.Api.Eon.AlonzoEraOnwards

IsBabbageBasedEra BabbageEra 
Instance details

Defined in Cardano.Api.Eon.BabbageEraOnwards

IsMaryBasedEra BabbageEra 
Instance details

Defined in Cardano.Api.Eon.MaryEraOnwards

IsShelleyBasedEra BabbageEra 
Instance details

Defined in Cardano.Api.Eon.ShelleyBasedEra

IsCardanoEra BabbageEra 
Instance details

Defined in Cardano.Api.Eras.Core

IsEra BabbageEra 
Instance details

Defined in Cardano.Api.Experimental.Eras

HasTypeProxy BabbageEra 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType BabbageEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasScriptLanguageInEra PlutusScriptV1 BabbageEra 
Instance details

Defined in Cardano.Api.Script

HasScriptLanguageInEra PlutusScriptV2 BabbageEra 
Instance details

Defined in Cardano.Api.Script

ToAlonzoScript PlutusScriptV1 BabbageEra 
Instance details

Defined in Cardano.Api.Script

ToAlonzoScript PlutusScriptV2 BabbageEra 
Instance details

Defined in Cardano.Api.Script

data AsType BabbageEra 
Instance details

Defined in Cardano.Api.Eras.Core

data ConwayEra #

Instances

Instances details
IsAllegraBasedEra ConwayEra 
Instance details

Defined in Cardano.Api.Eon.AllegraEraOnwards

IsAlonzoBasedEra ConwayEra 
Instance details

Defined in Cardano.Api.Eon.AlonzoEraOnwards

IsBabbageBasedEra ConwayEra 
Instance details

Defined in Cardano.Api.Eon.BabbageEraOnwards

IsConwayBasedEra ConwayEra 
Instance details

Defined in Cardano.Api.Eon.ConwayEraOnwards

IsMaryBasedEra ConwayEra 
Instance details

Defined in Cardano.Api.Eon.MaryEraOnwards

IsShelleyBasedEra ConwayEra 
Instance details

Defined in Cardano.Api.Eon.ShelleyBasedEra

IsCardanoEra ConwayEra 
Instance details

Defined in Cardano.Api.Eras.Core

IsEra ConwayEra 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

useEra :: Era ConwayEra #

HasTypeProxy ConwayEra 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType ConwayEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasScriptLanguageInEra PlutusScriptV1 ConwayEra 
Instance details

Defined in Cardano.Api.Script

HasScriptLanguageInEra PlutusScriptV2 ConwayEra 
Instance details

Defined in Cardano.Api.Script

HasScriptLanguageInEra PlutusScriptV3 ConwayEra 
Instance details

Defined in Cardano.Api.Script

ToAlonzoScript PlutusScriptV1 ConwayEra 
Instance details

Defined in Cardano.Api.Script

ToAlonzoScript PlutusScriptV2 ConwayEra 
Instance details

Defined in Cardano.Api.Script

ToAlonzoScript PlutusScriptV3 ConwayEra 
Instance details

Defined in Cardano.Api.Script

data AsType ConwayEra 
Instance details

Defined in Cardano.Api.Eras.Core

data Era era where #

Instances

Instances details
Eon Era 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

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

TestEquality Era 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

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

Convert BabbageEraOnwards Era 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

convert :: BabbageEraOnwards era -> Era era #

Convert Era BabbageEraOnwards 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

convert :: Era era -> BabbageEraOnwards era #

Convert Era ShelleyBasedEra 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

convert :: Era era -> ShelleyBasedEra era #

Convert Era CardanoEra 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

convert :: Era era -> CardanoEra era #

ToJSON (Era era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

toJSON :: Era era -> Value

toEncoding :: Era era -> Encoding

toJSONList :: [Era era] -> Value

toEncodingList :: [Era era] -> Encoding

omitField :: Era era -> Bool

Show (Era era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

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

show :: Era era -> String Source #

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

Eq (Era era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

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

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

Pretty (Era era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

pretty :: Era era -> Doc ann #

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

FromJSON (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

parseJSON :: Value -> Parser (Some Era)

parseJSONList :: Value -> Parser [Some Era]

omittedField :: Maybe (Some Era)

ToJSON (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

toJSON :: Some Era -> Value

toEncoding :: Some Era -> Encoding

toJSONList :: [Some Era] -> Value

toEncodingList :: [Some Era] -> Encoding

omitField :: Some Era -> Bool

Bounded (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Enum (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Show (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Eq (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

(==) :: Some Era -> Some Era -> Bool Source #

(/=) :: Some Era -> Some Era -> Bool Source #

Ord (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Pretty (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

pretty :: Some Era -> Doc ann #

prettyList :: [Some Era] -> Doc ann #

class IsEra era where #

Methods

useEra :: Era era #

Instances

Instances details
IsEra BabbageEra 
Instance details

Defined in Cardano.Api.Experimental.Eras

IsEra ConwayEra 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

useEra :: Era ConwayEra #

data Some (f :: k -> Type) where #

Constructors

Some :: forall {k} (f :: k -> Type) (a :: k). (Typeable a, Typeable (f a)) => f a -> Some f 

Instances

Instances details
FromJSON (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

parseJSON :: Value -> Parser (Some Era)

parseJSONList :: Value -> Parser [Some Era]

omittedField :: Maybe (Some Era)

ToJSON (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

toJSON :: Some Era -> Value

toEncoding :: Some Era -> Encoding

toJSONList :: [Some Era] -> Value

toEncodingList :: [Some Era] -> Encoding

omitField :: Some Era -> Bool

Bounded (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Enum (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Show (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Eq (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

(==) :: Some Era -> Some Era -> Bool Source #

(/=) :: Some Era -> Some Era -> Bool Source #

Ord (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Pretty (Some Era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

pretty :: Some Era -> Doc ann #

prettyList :: [Some Era] -> Doc ann #

type family LedgerEra era = (r :: Type) | r -> era where ... #

newtype DeprecatedEra era #

Constructors

DeprecatedEra (ShelleyBasedEra era) 

Instances

Instances details
Show (DeprecatedEra era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Pretty (DeprecatedEra era) 
Instance details

Defined in Cardano.Api.Experimental.Eras

Methods

pretty :: DeprecatedEra era -> Doc ann #

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

sbeToEra :: MonadError (DeprecatedEra era) m => ShelleyBasedEra era -> m (Era era) #