cardano-ledger-alonzo-1.18.0.0: Cardano ledger introducing Plutus Core
Safe HaskellNone
LanguageHaskell2010

Cardano.Ledger.Alonzo.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

data AlonzoBlockBody era Source #

Constructors

AlonzoBlockBodyInternal 

Fields

Bundled Patterns

pattern AlonzoBlockBody ∷ (AlonzoEraTx era, SafeToHash (TxWits era)) ⇒ StrictSeq (Tx 'TopTx era) → AlonzoBlockBody era 

Instances

Instances details
(AlonzoEraTx era, DecCBOR (Annotator (TxAuxData era)), DecCBOR (Annotator (TxBody 'TopTx era)), DecCBOR (Annotator (TxWits era))) ⇒ DecCBOR (Annotator (AlonzoBlockBody era)) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Era era ⇒ EncCBORGroup (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

NFData (Tx 'TopTx era) ⇒ NFData (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

rnf ∷ AlonzoBlockBody era → () #

Generic (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Associated Types

type Rep (AlonzoBlockBody era) 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) = D1 ('MetaData "AlonzoBlockBody" "Cardano.Ledger.Alonzo.BlockBody.Internal" "cardano-ledger-alonzo-1.18.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "abbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: (S1 ('MetaSel ('Just "abbHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash HASH EraIndependentBlockBody)) :*: S1 ('MetaSel ('Just "abbTxsBodyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) :*: (S1 ('MetaSel ('Just "abbTxsWitsBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "abbTxsAuxDataBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "abbTxsIsValidBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

Methods

from ∷ AlonzoBlockBody era → Rep (AlonzoBlockBody era) x #

to ∷ Rep (AlonzoBlockBody era) x → AlonzoBlockBody era #

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

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

showsPrec ∷ Int → AlonzoBlockBody era → ShowS #

show ∷ AlonzoBlockBody era → String #

showList ∷ [AlonzoBlockBody era] → ShowS #

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

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

(==) ∷ AlonzoBlockBody era → AlonzoBlockBody era → Bool #

(/=) ∷ AlonzoBlockBody era → AlonzoBlockBody era → Bool #

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

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBody era) = D1 ('MetaData "AlonzoBlockBody" "Cardano.Ledger.Alonzo.BlockBody.Internal" "cardano-ledger-alonzo-1.18.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyInternal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "abbTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictSeq (Tx 'TopTx era))) :*: (S1 ('MetaSel ('Just "abbHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash HASH EraIndependentBlockBody)) :*: S1 ('MetaSel ('Just "abbTxsBodyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) :*: (S1 ('MetaSel ('Just "abbTxsWitsBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "abbTxsAuxDataBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "abbTxsIsValidBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))))

data AlonzoBlockBodyLimits era Source #

Instances

Instances details
NFData (AlonzoBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Methods

rnf ∷ AlonzoBlockBodyLimits era → () #

Monoid (AlonzoBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Semigroup (AlonzoBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Generic (AlonzoBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Associated Types

type Rep (AlonzoBlockBodyLimits era) 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBodyLimits era) = D1 ('MetaData "AlonzoBlockBodyLimits" "Cardano.Ledger.Alonzo.BlockBody.Internal" "cardano-ledger-alonzo-1.18.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyLimits" 'PrefixI 'True) (S1 ('MetaSel ('Just "abblTxsSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "abblExUnits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ExUnits)))
Show (AlonzoBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

Eq (AlonzoBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBodyLimits era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.BlockBody.Internal

type Rep (AlonzoBlockBodyLimits era) = D1 ('MetaData "AlonzoBlockBodyLimits" "Cardano.Ledger.Alonzo.BlockBody.Internal" "cardano-ledger-alonzo-1.18.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoBlockBodyLimits" 'PrefixI 'True) (S1 ('MetaSel ('Just "abblTxsSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "abblExUnits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ExUnits)))

hashAlonzoSegWits Source #

Arguments

∷ ByteString

Bytes for transaction bodies

→ ByteString

Bytes for transaction witnesses

→ ByteString

Bytes for transaction auxiliary datas

→ ByteString

Bytes for transaction phase-2 validity flags

→ Hash HASH EraIndependentBlockBody 

alignedValidFlags ∷ Int → [Int] → Seq IsPhase2Valid Source #

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

This function operates much as the inverse of nonValidatingIndices.

Orphan instances