ouroboros-network-api
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.NodeToClient.Version

Synopsis

Documentation

data NodeToClientVersion Source #

Enumeration of node to client protocol versions.

Constructors

NodeToClientV_9

enabled CardanoNodeToClientVersion7, i.e., Alonzo

NodeToClientV_10

added GetChainBlockNo and GetChainPoint queries

NodeToClientV_11

added GetRewardInfoPools Block query

NodeToClientV_12

added LocalTxMonitor mini-protocol

NodeToClientV_13

enabled CardanoNodeToClientVersion9, i.e., Babbage

NodeToClientV_14

added GetPoolDistr, GetPoolState, GetSnapshots

NodeToClientV_15

added query to NodeToClientVersionData

NodeToClientV_16

added ImmutableTip to LocalStateQuery, enabled CardanoNodeToClientVersion11, i.e., Conway and GetStakeDelegDeposits.

NodeToClientV_17

added GetProposals and GetRatifyState queries

NodeToClientV_18

added GetFuturePParams query

Instances

Instances details
NFData NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Methods

rnf :: NodeToClientVersion -> () #

Bounded NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Enum NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Generic NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Associated Types

type Rep NodeToClientVersion 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

type Rep NodeToClientVersion = D1 ('MetaData "NodeToClientVersion" "Ouroboros.Network.NodeToClient.Version" "ouroboros-network-api-0.9.0.1-inplace" 'False) (((C1 ('MetaCons "NodeToClientV_9" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_10" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NodeToClientV_11" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeToClientV_12" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_13" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "NodeToClientV_14" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_15" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NodeToClientV_16" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeToClientV_17" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_18" 'PrefixI 'False) (U1 :: Type -> Type)))))
Show NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Eq NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Ord NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

type Rep NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

type Rep NodeToClientVersion = D1 ('MetaData "NodeToClientVersion" "Ouroboros.Network.NodeToClient.Version" "ouroboros-network-api-0.9.0.1-inplace" 'False) (((C1 ('MetaCons "NodeToClientV_9" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_10" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NodeToClientV_11" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeToClientV_12" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_13" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "NodeToClientV_14" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_15" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NodeToClientV_16" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeToClientV_17" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_18" 'PrefixI 'False) (U1 :: Type -> Type)))))

nodeToClientVersionCodec :: CodecCBORTerm (Text, Maybe Int) NodeToClientVersion Source #

We set 16ths bit to distinguish NodeToNodeVersion and NodeToClientVersion. This way connecting wrong protocol suite will fail during Handshake negotiation

This is done in backward compatible way, so NodeToClientV_1 encoding is not changed.