cardano-ledger-dijkstra-0.3.0.0: Cardano ledger with nested transactions
Safe HaskellNone
LanguageHaskell2010

Cardano.Ledger.Dijkstra.BlockBody

Synopsis

Documentation

data DijkstraBlockBody era where Source #

Bundled Patterns

pattern DijkstraBlockBodyAlonzoEraTx era ⇒ StrictSeq (Tx 'TopTx era) → StrictMaybe PerasCertDijkstraBlockBody era 

Instances

Instances details
(AlonzoEraTx era, Coercible (DijkstraTx 'TopTx era) (Tx 'TopTx era), DecCBOR (Annotator (TxAuxData era)), DecCBOR (Annotator (TxBody 'TopTx era)), DecCBOR (Annotator (TxWits era))) ⇒ DecCBOR (Annotator (DijkstraBlockBody era)) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

EncCBOR (DijkstraBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Memoized (DijkstraBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Associated Types

type RawType (DijkstraBlockBody era) 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

(NFData (Tx 'TopTx era), NFData PerasCert) ⇒ NFData (DijkstraBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Methods

rnfDijkstraBlockBody era → () #

Generic (DijkstraBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Associated Types

type Rep (DijkstraBlockBody era) 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep (DijkstraBlockBody era) = D1 ('MetaData "DijkstraBlockBody" "Cardano.Ledger.Dijkstra.BlockBody.Internal" "cardano-ledger-dijkstra-0.3.0.0-inplace" 'True) (C1 ('MetaCons "MkDijkstraBlockBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (DijkstraBlockBodyRaw era)))))

Methods

fromDijkstraBlockBody era → Rep (DijkstraBlockBody era) x #

toRep (DijkstraBlockBody era) x → DijkstraBlockBody era #

Show (Tx 'TopTx era) ⇒ Show (DijkstraBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Eq (Tx 'TopTx era) ⇒ Eq (DijkstraBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type RawType (DijkstraBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep (DijkstraBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep (DijkstraBlockBody era) = D1 ('MetaData "DijkstraBlockBody" "Cardano.Ledger.Dijkstra.BlockBody.Internal" "cardano-ledger-dijkstra-0.3.0.0-inplace" 'True) (C1 ('MetaCons "MkDijkstraBlockBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (DijkstraBlockBodyRaw era)))))

class EraBlockBody era ⇒ DijkstraEraBlockBody era where Source #

Dijkstra-specific extensions to EraBlockBody

Methods

perasCertBlockBodyLLens' (BlockBody era) (StrictMaybe PerasCert) Source #

Lens to access the optional Peras certificate in the block body

newtype PerasCert Source #

Placeholder for Peras certificates

NOTE: The real type will be brought from 'cardano-base' once it's ready.

Constructors

PerasCert ByteArray 

Instances

Instances details
DecCBOR PerasCert Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

EncCBOR PerasCert Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

NFData PerasCert Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Methods

rnfPerasCert → () #

Generic PerasCert Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Associated Types

type Rep PerasCert 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep PerasCert = D1 ('MetaData "PerasCert" "Cardano.Ledger.Dijkstra.BlockBody.Internal" "cardano-ledger-dijkstra-0.3.0.0-inplace" 'True) (C1 ('MetaCons "PerasCert" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteArray)))

Methods

fromPerasCertRep PerasCert x #

toRep PerasCert x → PerasCert #

Show PerasCert Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Methods

showsPrecIntPerasCertShowS #

showPerasCertString #

showList ∷ [PerasCert] → ShowS #

Eq PerasCert Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Methods

(==)PerasCertPerasCertBool #

(/=)PerasCertPerasCertBool #

NoThunks PerasCert Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep PerasCert Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep PerasCert = D1 ('MetaData "PerasCert" "Cardano.Ledger.Dijkstra.BlockBody.Internal" "cardano-ledger-dijkstra-0.3.0.0-inplace" 'True) (C1 ('MetaCons "PerasCert" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteArray)))

data PerasKey Source #

Placeholder for Peras public keys

NOTE: The real type will be brought from 'cardano-base' once it's ready.

Constructors

PerasKey 

Instances

Instances details
Generic PerasKey Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Associated Types

type Rep PerasKey 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep PerasKey = D1 ('MetaData "PerasKey" "Cardano.Ledger.Dijkstra.BlockBody.Internal" "cardano-ledger-dijkstra-0.3.0.0-inplace" 'False) (C1 ('MetaCons "PerasKey" 'PrefixI 'False) (U1TypeType))

Methods

fromPerasKeyRep PerasKey x #

toRep PerasKey x → PerasKey #

Show PerasKey Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Methods

showsPrecIntPerasKeyShowS #

showPerasKeyString #

showList ∷ [PerasKey] → ShowS #

Eq PerasKey Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Methods

(==)PerasKeyPerasKeyBool #

(/=)PerasKeyPerasKeyBool #

NoThunks PerasKey Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep PerasKey Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep PerasKey = D1 ('MetaData "PerasKey" "Cardano.Ledger.Dijkstra.BlockBody.Internal" "cardano-ledger-dijkstra-0.3.0.0-inplace" 'False) (C1 ('MetaCons "PerasKey" 'PrefixI 'False) (U1TypeType))

validatePerasCertNoncePerasKeyPerasCertBool Source #

Mocked-up Peras certificate validation routine

NOTE: this function will be replaced with the real implementation from 'cardano-base' once it's ready.