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

Cardano.Ledger.Dijkstra.BlockBody.Internal

Description

Provides BlockBody internals

Warning

This module is considered internal.

The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.

Synopsis

Documentation

newtype DijkstraBlockBody era 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

(AlonzoEraTx era, EncCBOR (Tx 'TopTx era)) ⇒ EncCBORGroup (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)))))

data DijkstraBlockBodyRaw era Source #

Constructors

DijkstraBlockBodyRaw 

Fields

Instances

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

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

(AlonzoEraTx era, EncCBOR (Tx 'TopTx era)) ⇒ EncCBOR (DijkstraBlockBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

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

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Methods

rnfDijkstraBlockBodyRaw era → () #

Generic (DijkstraBlockBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

Associated Types

type Rep (DijkstraBlockBodyRaw era) 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep (DijkstraBlockBodyRaw era) = D1 ('MetaData "DijkstraBlockBodyRaw" "Cardano.Ledger.Dijkstra.BlockBody.Internal" "cardano-ledger-dijkstra-0.3.0.0-inplace" 'False) (C1 ('MetaCons "DijkstraBlockBodyRaw" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbbrTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: S1 ('MetaSel ('Just "dbbrPerasCert") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe PerasCert))))
Show (Tx 'TopTx era) ⇒ Show (DijkstraBlockBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

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

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

(Typeable era, NoThunks (Tx 'TopTx era)) ⇒ NoThunks (DijkstraBlockBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type MemoHashIndex (DijkstraBlockBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep (DijkstraBlockBodyRaw era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.BlockBody.Internal

type Rep (DijkstraBlockBodyRaw era) = D1 ('MetaData "DijkstraBlockBodyRaw" "Cardano.Ledger.Dijkstra.BlockBody.Internal" "cardano-ledger-dijkstra-0.3.0.0-inplace" 'False) (C1 ('MetaCons "DijkstraBlockBodyRaw" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbbrTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: S1 ('MetaSel ('Just "dbbrPerasCert") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictMaybe PerasCert))))

alignedValidFlagsIntIntSetSeq IsValid Source #

Given the number of transactions, and the set of indices for which these transactions do not validate, create an aligned sequence of IsValid flags.

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.

Orphan instances