hydra-cardano-api-0.20.0: A Haskell API for Cardano, tailored to the Hydra project.
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Cardano.Api.Network

Documentation

data Network #

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 :: Type -> Type Source #

Show Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

decCBOR :: Decoder s Network

dropCBOR :: Proxy Network -> Decoder s ()

label :: Proxy Network -> Text

EncCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBOR :: Network -> Encoding

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

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

Default Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

def :: Network

NFData Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnf :: Network -> () Source #

Eq Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Ord Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

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

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

showTypeOf :: Proxy Network -> String

type Rep Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

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