cardano-api-1.28.0
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.NetworkId

Description

The NetworkId type and related functions

Synopsis

Network types

data NetworkId Source #

Constructors

Mainnet 
Testnet !NetworkMagic 

Instances

Instances details
Eq NetworkId Source # 
Instance details

Defined in Cardano.Api.NetworkId

Methods

(==)NetworkIdNetworkIdBool #

(/=)NetworkIdNetworkIdBool #

Show NetworkId Source # 
Instance details

Defined in Cardano.Api.NetworkId

Methods

showsPrecIntNetworkIdShowS #

showNetworkIdString #

showList ∷ [NetworkId] → ShowS #

newtype NetworkMagic #

Constructors

NetworkMagic 

Instances

Instances details
Eq NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Show NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Generic NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Associated Types

type Rep NetworkMagicTypeType #

NoThunks NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Methods

noThunks ∷ Context → NetworkMagicIO (Maybe ThunkInfo)

wNoThunks ∷ Context → NetworkMagicIO (Maybe ThunkInfo)

showTypeOfProxy NetworkMagicString

type Rep NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

type Rep NetworkMagic = D1 ('MetaData "NetworkMagic" "Ouroboros.Network.Magic" "ouroboros-network-0.1.0.0-20b45aecaf9a45f13fe0abaa32b82d691a683880f142ec92ced986d25e95f850" 'True) (C1 ('MetaCons "NetworkMagic" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

Internal conversion functions

toByronProtocolMagicIdNetworkId → ProtocolMagicId Source #

toByronNetworkMagicNetworkId → NetworkMagic Source #

toByronRequiresNetworkMagicNetworkId → RequiresNetworkMagic Source #