Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Tip = Block
- newtype BlockId = BlockId { }
- blockId :: Block -> BlockId
- maximumMiniProtocolLimits :: MiniProtocolLimits
- nodeToClientVersion :: NodeToClientVersion
- cfgNetworkMagic :: NetworkMagic
- cfgNetworkId :: NetworkId
- nodeToClientVersionData :: NodeToClientVersionData
- doNothingInitiatorProtocol :: MonadTimer m => RunMiniProtocol ' InitiatorMode ByteString m a Void
- doNothingResponderProtocol :: MonadTimer m => RunMiniProtocol ' ResponderMode ByteString m Void a
- type Offset = Integer
- epochSlots :: EpochSlots
- codecVersion :: BlockNodeToClientVersion ( CardanoBlock StandardCrypto )
- codecConfig :: CodecConfig ( CardanoBlock StandardCrypto )
- nodeToClientCodecs :: forall m. MonadST m => ClientCodecs ( CardanoBlock StandardCrypto ) m
- chainSyncCodec :: forall block. ( Serialise block, Serialise ( HeaderHash block)) => Codec ( ChainSync block ( Point block) Tip ) DeserialiseFailure IO ByteString
- txSubmissionCodec :: Codec ( LocalTxSubmission ( Tx BabbageEra ) String ) DeserialiseFailure IO ByteString
Documentation
The node protocols require a block header type.
Instances
Eq BlockId Source # | |
Ord BlockId Source # | |
Defined in Cardano.Protocol.Socket.Type |
|
Show BlockId Source # | |
Generic BlockId Source # | |
NoThunks BlockId Source # | |
Pretty BlockId Source # | |
Serialise BlockId Source # | |
type Rep BlockId Source # | |
Defined in Cardano.Protocol.Socket.Type
type
Rep
BlockId
=
D1
('
MetaData
"BlockId" "Cardano.Protocol.Socket.Type" "plutus-chain-index-core-1.2.0.0-vEgAIGWZqMIuVHBPih2W5" '
True
) (
C1
('
MetaCons
"BlockId" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"getBlockId") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
ByteString
)))
|
maximumMiniProtocolLimits :: MiniProtocolLimits Source #
Limits for the protocols we use.
nodeToClientVersion :: NodeToClientVersion Source #
Protocol versions
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.
doNothingResponderProtocol :: MonadTimer m => RunMiniProtocol ' ResponderMode ByteString m Void a Source #
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.
nodeToClientCodecs :: forall m. MonadST m => ClientCodecs ( CardanoBlock StandardCrypto ) m Source #
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.
txSubmissionCodec :: Codec ( LocalTxSubmission ( Tx BabbageEra ) String ) DeserialiseFailure IO ByteString Source #