plutus-chain-index-core-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Cardano.Protocol.Socket.Type

Synopsis

Documentation

type Tip = Block Source #

Tip of the block chain type (used by node protocols).

newtype BlockId Source #

The node protocols require a block header type.

Constructors

BlockId 

Instances

Instances details
Eq BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

Ord BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

Show BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

Generic BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

Associated Types

type Rep BlockId :: Type -> Type Source #

ToJSON BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

FromJSON BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

NoThunks BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

Serialise BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

Pretty BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

Methods

pretty :: BlockId -> Doc ann Source #

prettyList :: [BlockId] -> Doc ann Source #

type Rep BlockId Source # 
Instance details

Defined in Cardano.Protocol.Socket.Type

type Rep BlockId = D1 ('MetaData "BlockId" "Cardano.Protocol.Socket.Type" "plutus-chain-index-core-0.1.0.0-EG2fOrGca5623jCDzCiAyI" 'True) (C1 ('MetaCons "BlockId" 'PrefixI 'True) (S1 ('MetaSel ('Just "getBlockId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

blockId :: Block -> BlockId Source #

A hash of the block's contents.

maximumMiniProtocolLimits :: MiniProtocolLimits Source #

Limits for the protocols we use.

cfgNetworkMagic :: NetworkMagic Source #

A temporary definition of the protocol version. This will be moved as an argument to the client connection function in a future PR (the network magic number matches the one in the test net created by scripts)

doNothingInitiatorProtocol :: MonadTimer m => RunMiniProtocol 'InitiatorMode ByteString m a Void Source #

A protocol client that will never leave the initial state.

epochSlots :: EpochSlots Source #

Boilerplate codecs used for protocol serialisation.

The number of epochSlots is specific to each blockchain instance. This value is what the cardano main and testnet uses. Only applies to the Byron era.

chainSyncCodec :: forall block. (Serialise block, Serialise (HeaderHash block)) => Codec (ChainSync block (Point block) Tip) DeserialiseFailure IO ByteString Source #

These codecs are currently used in the mock nodes and will probably soon get removed as the mock nodes are phased out.

Orphan instances

NoThunks TxId Source # 
Instance details

StandardHash Block Source # 
Instance details

StandardHash Tx Source # 
Instance details

ShowProxy Char Source # 
Instance details

ShowProxy OnChainTx Source # 
Instance details

ShowProxy Tx Source # 
Instance details

ShowProxy a => ShowProxy ([a] :: Type) Source # 
Instance details

Methods

showProxy :: Proxy [a] -> String Source #