bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.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 Bcc.Api.NetworkId

Show NetworkId Source # 
Instance details

Defined in Bcc.Api.NetworkId

newtype NetworkMagic #

Constructors

NetworkMagic 

Instances

Instances details
Eq NetworkMagic 
Instance details

Defined in Shardagnostic.Network.Magic

Show NetworkMagic 
Instance details

Defined in Shardagnostic.Network.Magic

Generic NetworkMagic 
Instance details

Defined in Shardagnostic.Network.Magic

Associated Types

type Rep NetworkMagicTypeType Source #

NoThunks NetworkMagic 
Instance details

Defined in Shardagnostic.Network.Magic

Methods

noThunks ∷ Context → NetworkMagicIO (Maybe ThunkInfo)

wNoThunks ∷ Context → NetworkMagicIO (Maybe ThunkInfo)

showTypeOfProxy NetworkMagicString

type Rep NetworkMagic 
Instance details

Defined in Shardagnostic.Network.Magic

type Rep NetworkMagic = D1 ('MetaData "NetworkMagic" "Shardagnostic.Network.Magic" "shardagnostic-network-0.1.0.0-5c350aed8ecd813d3e0e78a45ca35fdda83036491303e35a58d283b38c865e88" 'True) (C1 ('MetaCons "NetworkMagic" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

Internal conversion functions

toColeProtocolMagicIdNetworkId → ProtocolMagicId Source #

toColeNetworkMagicNetworkId → NetworkMagic Source #

toColeRequiresNetworkMagicNetworkId → RequiresNetworkMagic Source #