cardano-api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Network

Synopsis

Network types

newtype NetworkMagic #

Constructors

NetworkMagic 

Instances

Instances details
NFData NetworkMagic # 
Instance details

Defined in Ouroboros.Network.Magic

Methods

rnf :: NetworkMagic -> () Source #

Eq NetworkMagic # 
Instance details

Defined in Ouroboros.Network.Magic

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-1.1.0.0-l-api-1804fedea85e7a3360b5b8c61844084bb856c2cc0fb7bdb2bfb606d9691b892b" 'True) (C1 ('MetaCons "NetworkMagic" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))
Show 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-1.1.0.0-l-api-1804fedea85e7a3360b5b8c61844084bb856c2cc0fb7bdb2bfb606d9691b892b" 'True) (C1 ('MetaCons "NetworkMagic" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

network reexports

data LedgerPeerSnapshot (a :: LedgerPeersKind) where #

Instances

Instances details
FromJSON (LedgerPeerSnapshot 'AllLedgerPeers) # 
Instance details

Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type

FromJSON (LedgerPeerSnapshot 'BigLedgerPeers) # 
Instance details

Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type

ToJSON (LedgerPeerSnapshot a) # 
Instance details

Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type

Eq (LedgerPeerSnapshot a) # 
Instance details

Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type

Show (LedgerPeerSnapshot a) # 
Instance details

Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type

data Target point #

Constructors

VolatileTip 
SpecificPoint point 
ImmutableTip 

Instances

Instances details
Functor Target # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

Methods

fmap :: (a -> b) -> Target a -> Target b Source #

(<$) :: a -> Target b -> Target a Source #

Foldable Target # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

Methods

fold :: Monoid m => Target m -> m Source #

foldMap :: Monoid m => (a -> m) -> Target a -> m Source #

foldMap' :: Monoid m => (a -> m) -> Target a -> m Source #

foldr :: (a -> b -> b) -> b -> Target a -> b Source #

foldr' :: (a -> b -> b) -> b -> Target a -> b Source #

foldl :: (b -> a -> b) -> b -> Target a -> b Source #

foldl' :: (b -> a -> b) -> b -> Target a -> b Source #

foldr1 :: (a -> a -> a) -> Target a -> a Source #

foldl1 :: (a -> a -> a) -> Target a -> a Source #

toList :: Target a -> [a] Source #

null :: Target a -> Bool Source #

length :: Target a -> Int Source #

elem :: Eq a => a -> Target a -> Bool Source #

maximum :: Ord a => Target a -> a Source #

minimum :: Ord a => Target a -> a Source #

sum :: Num a => Target a -> a Source #

product :: Num a => Target a -> a Source #

Traversable Target # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

Methods

traverse :: Applicative f => (a -> f b) -> Target a -> f (Target b) Source #

sequenceA :: Applicative f => Target (f a) -> f (Target a) Source #

mapM :: Monad m => (a -> m b) -> Target a -> m (Target b) Source #

sequence :: Monad m => Target (m a) -> m (Target a) Source #

NFData point => NFData (Target point) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

Methods

rnf :: Target point -> () Source #

Eq point => Eq (Target point) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

Methods

(==) :: Target point -> Target point -> Bool Source #

(/=) :: Target point -> Target point -> Bool Source #

Ord point => Ord (Target point) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

Methods

compare :: Target point -> Target point -> Ordering Source #

(<) :: Target point -> Target point -> Bool Source #

(<=) :: Target point -> Target point -> Bool Source #

(>) :: Target point -> Target point -> Bool Source #

(>=) :: Target point -> Target point -> Bool Source #

max :: Target point -> Target point -> Target point Source #

min :: Target point -> Target point -> Target point Source #

Generic (Target point) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

Associated Types

type Rep (Target point) 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

type Rep (Target point) = D1 ('MetaData "Target" "Ouroboros.Network.Protocol.LocalStateQuery.Type" "ouroboros-network-1.1.0.0-l-protocols-eea6fd64d997294f0e6ca3ec561d56d3f5494af8f274c965364aa04e42de9e0b" 'False) (C1 ('MetaCons "VolatileTip" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SpecificPoint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 point)) :+: C1 ('MetaCons "ImmutableTip" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: Target point -> Rep (Target point) x Source #

to :: Rep (Target point) x -> Target point Source #

Show point => Show (Target point) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

Methods

showsPrec :: Int -> Target point -> ShowS Source #

show :: Target point -> String Source #

showList :: [Target point] -> ShowS Source #

type Rep (Target point) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalStateQuery.Type

type Rep (Target point) = D1 ('MetaData "Target" "Ouroboros.Network.Protocol.LocalStateQuery.Type" "ouroboros-network-1.1.0.0-l-protocols-eea6fd64d997294f0e6ca3ec561d56d3f5494af8f274c965364aa04e42de9e0b" 'False) (C1 ('MetaCons "VolatileTip" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SpecificPoint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 point)) :+: C1 ('MetaCons "ImmutableTip" 'PrefixI 'False) (U1 :: Type -> Type)))

newtype Serialised (a :: k) #

Constructors

Serialised 

Instances

Instances details
SerialiseNodeToClient ByronBlock (Serialised ByronBlock) # 
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToNode ByronBlock (Serialised ByronBlock) # 
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

StandardHash block => StandardHash (Serialised block :: Type) # 
Instance details

Defined in Ouroboros.Network.Block

ShowProxy a => ShowProxy (Serialised a :: Type) # 
Instance details

Defined in Ouroboros.Network.Block

Methods

showProxy :: Proxy (Serialised a) -> String #

DecodeDiskDepIx f blk => DecodeDisk blk (GenDepPair (Serialised :: Type -> Type) (f blk)) Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.Serialisation

Methods

decodeDisk :: CodecConfig blk -> forall s. Decoder s (GenDepPair (Serialised :: Type -> Type) (f blk)) Source #

EncodeDiskDepIx f blk => EncodeDisk blk (GenDepPair (Serialised :: Type -> Type) (f blk)) Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.Serialisation

Methods

encodeDisk :: CodecConfig blk -> GenDepPair (Serialised :: Type -> Type) (f blk) -> Encoding Source #

SerialiseHFC xs => SerialiseNodeToClient (HardForkBlock xs) (Serialised (HardForkBlock xs)) Source # 
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToClient

SerialiseHFC xs => SerialiseNodeToNode (HardForkBlock xs) (Serialised (HardForkBlock xs)) Source # 
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToNode

Eq (Serialised a) # 
Instance details

Defined in Ouroboros.Network.Block

Show (Serialised a) # 
Instance details

Defined in Ouroboros.Network.Block

Serialise (Serialised a) # 
Instance details

Defined in Ouroboros.Network.Block

SerialiseNodeToClient (ShelleyBlock proto era) (Serialised (ShelleyBlock proto era)) # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Node.Serialisation

Methods

encodeNodeToClient :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToClientVersion (ShelleyBlock proto era) -> Serialised (ShelleyBlock proto era) -> Encoding Source #

decodeNodeToClient :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToClientVersion (ShelleyBlock proto era) -> forall s. Decoder s (Serialised (ShelleyBlock proto era)) Source #

SerialiseNodeToNode (ShelleyBlock proto era) (Serialised (ShelleyBlock proto era)) # 
Instance details

Defined in Ouroboros.Consensus.Shelley.Node.Serialisation

Methods

encodeNodeToNode :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToNodeVersion (ShelleyBlock proto era) -> Serialised (ShelleyBlock proto era) -> Encoding Source #

decodeNodeToNode :: CodecConfig (ShelleyBlock proto era) -> BlockNodeToNodeVersion (ShelleyBlock proto era) -> forall s. Decoder s (Serialised (ShelleyBlock proto era)) Source #

type HeaderHash (Serialised block :: Type) # 
Instance details

Defined in Ouroboros.Network.Block

type HeaderHash (Serialised block :: Type) = HeaderHash block

data SubmitResult reason #

Constructors

SubmitSuccess 
SubmitFail reason 

Instances

Instances details
Functor SubmitResult # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type

Methods

fmap :: (a -> b) -> SubmitResult a -> SubmitResult b Source #

(<$) :: a -> SubmitResult b -> SubmitResult a Source #

NFData reason => NFData (SubmitResult reason) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type

Methods

rnf :: SubmitResult reason -> () Source #

Eq reason => Eq (SubmitResult reason) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type

Methods

(==) :: SubmitResult reason -> SubmitResult reason -> Bool Source #

(/=) :: SubmitResult reason -> SubmitResult reason -> Bool Source #

Generic (SubmitResult reason) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type

Associated Types

type Rep (SubmitResult reason) 
Instance details

Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type

type Rep (SubmitResult reason) = D1 ('MetaData "SubmitResult" "Ouroboros.Network.Protocol.LocalTxSubmission.Type" "ouroboros-network-1.1.0.0-l-protocols-eea6fd64d997294f0e6ca3ec561d56d3f5494af8f274c965364aa04e42de9e0b" 'False) (C1 ('MetaCons "SubmitSuccess" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SubmitFail" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 reason)))

Methods

from :: SubmitResult reason -> Rep (SubmitResult reason) x Source #

to :: Rep (SubmitResult reason) x -> SubmitResult reason Source #

Show a => Show (SubmitResult a) Source # 
Instance details

Defined in Cardano.Api.Internal.Orphans.Serialisation

type Rep (SubmitResult reason) # 
Instance details

Defined in Ouroboros.Network.Protocol.LocalTxSubmission.Type

type Rep (SubmitResult reason) = D1 ('MetaData "SubmitResult" "Ouroboros.Network.Protocol.LocalTxSubmission.Type" "ouroboros-network-1.1.0.0-l-protocols-eea6fd64d997294f0e6ca3ec561d56d3f5494af8f274c965364aa04e42de9e0b" 'False) (C1 ('MetaCons "SubmitSuccess" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SubmitFail" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 reason)))

Internal conversion functions