Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.ByronDual.Node.Serialisation
Contents
Orphan instances
HasNetworkProtocolVersion DualByronBlock Source # | |
Associated Types type BlockNodeToNodeVersion DualByronBlock type BlockNodeToClientVersion DualByronBlock | |
SupportedNetworkProtocolVersion DualByronBlock Source # | |
Methods supportedNodeToNodeVersions :: Proxy DualByronBlock -> Map NodeToNodeVersion (BlockNodeToNodeVersion DualByronBlock) supportedNodeToClientVersions :: Proxy DualByronBlock -> Map NodeToClientVersion (BlockNodeToClientVersion DualByronBlock) latestReleasedNodeVersion :: Proxy DualByronBlock -> (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) | |
SerialiseDiskConstraints DualByronBlock Source # | |
SerialiseNodeToClientConstraints DualByronBlock Source # | |
SerialiseNodeToNodeConstraints DualByronBlock Source # | |
Methods estimateBlockSize :: Header DualByronBlock -> SizeInBytes | |
SerialiseNodeToClient DualByronBlock SlotNo Source # | |
Methods encodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> SlotNo -> Encoding decodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> forall s. Decoder s SlotNo | |
SerialiseNodeToClient DualByronBlock DualByronBlock Source # | CBOR-in-CBOR for the annotation. This also makes it compatible with the
wrapped ( |
Methods encodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> DualByronBlock -> Encoding decodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> forall s. Decoder s DualByronBlock | |
EncodeDisk DualByronBlock DualByronBlock Source # | |
Methods encodeDisk :: CodecConfig DualByronBlock -> DualByronBlock -> Encoding | |
SerialiseNodeToNode DualByronBlock DualByronBlock Source # | CBOR-in-CBOR for the annotation. This also makes it compatible with the
wrapped ( |
Methods encodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> DualByronBlock -> Encoding decodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> forall s. Decoder s DualByronBlock | |
SerialiseResult DualByronBlock (BlockQuery DualByronBlock) Source # | |
Methods encodeResult :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> BlockQuery DualByronBlock result -> result -> Encoding decodeResult :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> BlockQuery DualByronBlock result -> forall s. Decoder s result | |
SerialiseNodeToClient DualByronBlock (GenTx DualByronBlock) Source # | |
Methods encodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> GenTx DualByronBlock -> Encoding decodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> forall s. Decoder s (GenTx DualByronBlock) | |
SerialiseNodeToClient DualByronBlock (GenTxId DualByronBlock) Source # | |
Methods encodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> GenTxId DualByronBlock -> Encoding decodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> forall s. Decoder s (GenTxId DualByronBlock) | |
DecodeDisk DualByronBlock (LedgerState DualByronBlock) Source # | |
Methods decodeDisk :: CodecConfig DualByronBlock -> forall s. Decoder s (LedgerState DualByronBlock) | |
DecodeDisk DualByronBlock (PBftState PBftByronCrypto) Source # |
|
Methods decodeDisk :: CodecConfig DualByronBlock -> forall s. Decoder s (PBftState PBftByronCrypto) | |
DecodeDisk DualByronBlock (AnnTip DualByronBlock) Source # | |
Methods decodeDisk :: CodecConfig DualByronBlock -> forall s. Decoder s (AnnTip DualByronBlock) | |
EncodeDisk DualByronBlock (LedgerState DualByronBlock) Source # | |
Methods encodeDisk :: CodecConfig DualByronBlock -> LedgerState DualByronBlock -> Encoding | |
EncodeDisk DualByronBlock (PBftState PBftByronCrypto) Source # |
|
Methods encodeDisk :: CodecConfig DualByronBlock -> PBftState PBftByronCrypto -> Encoding | |
EncodeDisk DualByronBlock (AnnTip DualByronBlock) Source # | |
Methods encodeDisk :: CodecConfig DualByronBlock -> AnnTip DualByronBlock -> Encoding | |
SerialiseNodeToNode DualByronBlock (Header DualByronBlock) Source # | Forward to the Byron instance. |
Methods encodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> Header DualByronBlock -> Encoding decodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> forall s. Decoder s (Header DualByronBlock) | |
SerialiseNodeToNode DualByronBlock (GenTx DualByronBlock) Source # | |
Methods encodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> GenTx DualByronBlock -> Encoding decodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> forall s. Decoder s (GenTx DualByronBlock) | |
SerialiseNodeToNode DualByronBlock (GenTxId DualByronBlock) Source # | |
Methods encodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> GenTxId DualByronBlock -> Encoding decodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> forall s. Decoder s (GenTxId DualByronBlock) | |
SerialiseNodeToNode DualByronBlock (SerialisedHeader DualByronBlock) Source # | Forward to the Byron instance. |
Methods encodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> SerialisedHeader DualByronBlock -> Encoding decodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> forall s. Decoder s (SerialisedHeader DualByronBlock) | |
SerialiseNodeToClient DualByronBlock (SomeSecond BlockQuery DualByronBlock) Source # | |
Methods encodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> SomeSecond BlockQuery DualByronBlock -> Encoding decodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> forall s. Decoder s (SomeSecond BlockQuery DualByronBlock) | |
SerialiseNodeToClient DualByronBlock (DualGenTxErr ByronBlock ByronSpecBlock) Source # |
|
Methods encodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> DualGenTxErr ByronBlock ByronSpecBlock -> Encoding decodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> forall s. Decoder s (DualGenTxErr ByronBlock ByronSpecBlock) | |
SerialiseNodeToClient DualByronBlock (Serialised DualByronBlock) Source # | CBOR-in-CBOR for the annotation. This also makes it compatible with the
wrapped ( |
Methods encodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> Serialised DualByronBlock -> Encoding decodeNodeToClient :: CodecConfig DualByronBlock -> BlockNodeToClientVersion DualByronBlock -> forall s. Decoder s (Serialised DualByronBlock) | |
DecodeDisk DualByronBlock (ByteString -> DualByronBlock) Source # | |
Methods decodeDisk :: CodecConfig DualByronBlock -> forall s. Decoder s (ByteString -> DualByronBlock) | |
SerialiseNodeToNode DualByronBlock (Serialised DualByronBlock) Source # | CBOR-in-CBOR for the annotation. This also makes it compatible with the
wrapped ( |
Methods encodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> Serialised DualByronBlock -> Encoding decodeNodeToNode :: CodecConfig DualByronBlock -> BlockNodeToNodeVersion DualByronBlock -> forall s. Decoder s (Serialised DualByronBlock) | |
DecodeDiskDep (NestedCtxt Header) DualByronBlock Source # | |
Methods decodeDiskDep :: CodecConfig DualByronBlock -> NestedCtxt Header DualByronBlock a -> forall s. Decoder s (ByteString -> a) |