cardano-api:internal
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
Show NetworkId Source # 
Instance details

Defined in Cardano.Api.NetworkId

Eq NetworkId Source # 
Instance details

Defined in Cardano.Api.NetworkId

newtype NetworkMagic Source #

NetworkMagic is used to differentiate between different networks during the initial handshake.

Constructors

NetworkMagic 

Instances

Instances details
Generic NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Associated Types

type Rep NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

type Rep NetworkMagic = D1 ('MetaData "NetworkMagic" "Ouroboros.Network.Magic" "ouroboros-network-api-0.10.0.0-cb32018ffcd98ec8fbe69633d0872adc69c773a0eb1390c5d0762a8b4b3e0a5b" 'True) (C1 ('MetaCons "NetworkMagic" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))
Show NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Eq NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

NoThunks NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

Methods

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

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

showTypeOf :: Proxy NetworkMagic -> String #

type Rep NetworkMagic 
Instance details

Defined in Ouroboros.Network.Magic

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

Internal conversion functions