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

Cardano.Ledger.Alonzo.Tx

Description

This module exports implementations of many of the functions outlined in the Alonzo specification. The link to source of the specification https://github.com/intersectmbo/cardano-ledger/tree/master/eras/alonzo/formal-spec The most recent version of the document can be found here: https://github.com/intersectmbo/cardano-ledger/releases/latest/download/alonzo-ledger.pdf The functions can be found in Figures in that document, and sections of this code refer to those figures.

Synopsis

Documentation

data CostModel Source #

A language dependent cost model for the Plutus evaluator. Note that the EvaluationContext is entirely dependent on the cost model parameters (ie the Map Text Integer) and that this type uses the smart constructor mkCostModel to hide the evaluation context.

Instances

Instances details
ToJSON CostModel 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

NFData CostModel 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Methods

rnfCostModel → () #

Generic CostModel 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Associated Types

type Rep CostModel 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

type Rep CostModel = D1 ('MetaData "CostModel" "Cardano.Ledger.Plutus.CostModels" "cardano-ledger-core-1.19.0.0-inplace" 'False) (C1 ('MetaCons "CostModel" 'PrefixI 'True) (S1 ('MetaSel ('Just "cmLanguage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Language) :*: (S1 ('MetaSel ('Just "cmValues") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Int64]) :*: S1 ('MetaSel ('Just "cmEvalCtx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EvaluationContext))))

Methods

fromCostModelRep CostModel x #

toRep CostModel x → CostModel #

Show CostModel 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Methods

showsPrecIntCostModelShowS #

showCostModelString #

showList ∷ [CostModel] → ShowS #

Eq CostModel

Note that this Eq instance ignores the evaluation context, which is entirely dependent on the cost model parameters and is guarded by the smart constructor mkCostModel.

Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Methods

(==)CostModelCostModelBool #

(/=)CostModelCostModelBool #

Ord CostModel

Note that this Ord instance ignores the evaluation context, which is entirely dependent on the cost model parameters and is guarded by the smart constructor mkCostModel.

Instance details

Defined in Cardano.Ledger.Plutus.CostModels

NoThunks CostModel 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

type Rep CostModel 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

type Rep CostModel = D1 ('MetaData "CostModel" "Cardano.Ledger.Plutus.CostModels" "cardano-ledger-core-1.19.0.0-inplace" 'False) (C1 ('MetaCons "CostModel" 'PrefixI 'True) (S1 ('MetaSel ('Just "cmLanguage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Language) :*: (S1 ('MetaSel ('Just "cmValues") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Int64]) :*: S1 ('MetaSel ('Just "cmEvalCtx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EvaluationContext))))

data Data era Source #

Instances

Instances details
Typeable era ⇒ ToCBOR (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

toCBORData era → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Data era) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Data era] → Size Source #

Era era ⇒ DecCBOR (Annotator (Data era)) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

decCBORDecoder s (Annotator (Data era)) Source #

dropCBORProxy (Annotator (Data era)) → Decoder s () Source #

labelProxy (Annotator (Data era)) → Text Source #

Typeable era ⇒ DecCBOR (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

decCBORDecoder s (Data era) Source #

dropCBORProxy (Data era) → Decoder s () Source #

labelProxy (Data era) → Text Source #

Typeable era ⇒ EncCBOR (Data era)

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

encCBORData era → Encoding Source #

SafeToHash (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Memoized (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Associated Types

type RawType (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type RawType (Data era) = PlutusData era

Methods

getMemoBytesData era → MemoBytes (RawType (Data era))

wrapMemoBytesMemoBytes (RawType (Data era)) → Data era

NFData (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

rnfData era → () #

Generic (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Associated Types

type Rep (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type Rep (Data era) = D1 ('MetaData "Data" "Cardano.Ledger.Plutus.Data" "cardano-ledger-core-1.19.0.0-inplace" 'True) (C1 ('MetaCons "MkData" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (PlutusData era)))))

Methods

fromData era → Rep (Data era) x #

toRep (Data era) x → Data era #

Show (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

showsPrecIntData era → ShowS #

showData era → String #

showList ∷ [Data era] → ShowS #

Eq (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

(==)Data era → Data era → Bool #

(/=)Data era → Data era → Bool #

Typeable era ⇒ NoThunks (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

HashAnnotated (Data era) EraIndependentData 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type RawType (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type RawType (Data era) = PlutusData era
type Rep (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

type Rep (Data era) = D1 ('MetaData "Data" "Cardano.Ledger.Plutus.Data" "cardano-ledger-core-1.19.0.0-inplace" 'True) (C1 ('MetaCons "MkData" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (PlutusData era)))))

newtype IsValid Source #

Tag indicating whether non-native scripts in this transaction are expected to validate. This is added by the block creator when constructing the block.

Constructors

IsValid Bool 

Instances

Instances details
ToJSON IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

ToCBOR IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

toCBORIsValidEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy IsValidSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [IsValid] → Size Source #

DecCBOR IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

EncCBOR IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

NFData IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

rnfIsValid → () #

Generic IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Associated Types

type Rep IsValid 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsValid = D1 ('MetaData "IsValid" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.15.0.0-inplace" 'True) (C1 ('MetaCons "IsValid" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

Methods

fromIsValidRep IsValid x #

toRep IsValid x → IsValid #

Show IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

showsPrecIntIsValidShowS #

showIsValidString #

showList ∷ [IsValid] → ShowS #

Eq IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

(==)IsValidIsValidBool #

(/=)IsValidIsValidBool #

NoThunks IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsValid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsValid = D1 ('MetaData "IsValid" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.15.0.0-inplace" 'True) (C1 ('MetaCons "IsValid" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

data ScriptIntegrity era Source #

A ScriptIntegrityHash is the hash of three things. The first two come from the witnesses and the last comes from the Protocol Parameters.

Constructors

ScriptIntegrity !(Redeemers era) !(TxDats era) !(Set LangDepView) 

Instances

Instances details
Era era ⇒ SafeToHash (ScriptIntegrity era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Generic (ScriptIntegrity era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Associated Types

type Rep (ScriptIntegrity era) 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep (ScriptIntegrity era) = D1 ('MetaData "ScriptIntegrity" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.15.0.0-inplace" 'False) (C1 ('MetaCons "ScriptIntegrity" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Redeemers era)) :*: (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxDats era)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set LangDepView)))))

Methods

fromScriptIntegrity era → Rep (ScriptIntegrity era) x #

toRep (ScriptIntegrity era) x → ScriptIntegrity era #

AlonzoEraScript era ⇒ Show (ScriptIntegrity era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

showsPrecIntScriptIntegrity era → ShowS #

showScriptIntegrity era → String #

showList ∷ [ScriptIntegrity era] → ShowS #

AlonzoEraScript era ⇒ Eq (ScriptIntegrity era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

(==)ScriptIntegrity era → ScriptIntegrity era → Bool #

(/=)ScriptIntegrity era → ScriptIntegrity era → Bool #

AlonzoEraScript era ⇒ NoThunks (ScriptIntegrity era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Era era ⇒ HashAnnotated (ScriptIntegrity era) EraIndependentScriptIntegrity Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep (ScriptIntegrity era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep (ScriptIntegrity era) = D1 ('MetaData "ScriptIntegrity" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.15.0.0-inplace" 'False) (C1 ('MetaCons "ScriptIntegrity" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Redeemers era)) :*: (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxDats era)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set LangDepView)))))

data AlonzoTx (l ∷ TxLevel) era where Source #

Constructors

AlonzoTx 

Fields

Instances

Instances details
(Typeable l, Era era, Typeable (TxBody l era), Typeable (TxWits era), Typeable (TxAuxData era), DecCBOR (Annotator (TxBody l era)), DecCBOR (Annotator (TxWits era)), DecCBOR (Annotator (TxAuxData era))) ⇒ DecCBOR (Annotator (AlonzoTx l era)) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

decCBORDecoder s (Annotator (AlonzoTx l era)) Source #

dropCBORProxy (Annotator (AlonzoTx l era)) → Decoder s () Source #

labelProxy (Annotator (AlonzoTx l era)) → Text Source #

(Era era, EncCBOR (TxBody l era), EncCBOR (TxAuxData era), EncCBOR (TxWits era), Typeable l) ⇒ ToCBOR (AlonzoTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

toCBORAlonzoTx l era → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (AlonzoTx l era) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [AlonzoTx l era] → Size Source #

(Era era, EncCBOR (TxBody l era), EncCBOR (TxAuxData era), EncCBOR (TxWits era)) ⇒ EncCBOR (AlonzoTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

encCBORAlonzoTx l era → Encoding Source #

(Era era, NFData (TxWits era), NFData (TxAuxData era), NFData (TxBody l era)) ⇒ NFData (AlonzoTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

rnfAlonzoTx l era → () #

(Era era, Show (TxBody l era), Show (TxAuxData era), Show (Script era), Show (TxWits era)) ⇒ Show (AlonzoTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

showsPrecIntAlonzoTx l era → ShowS #

showAlonzoTx l era → String #

showList ∷ [AlonzoTx l era] → ShowS #

(Era era, Eq (TxBody l era), Eq (TxWits era), Eq (TxAuxData era)) ⇒ Eq (AlonzoTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

(==)AlonzoTx l era → AlonzoTx l era → Bool #

(/=)AlonzoTx l era → AlonzoTx l era → Bool #

(Typeable era, Typeable l) ⇒ NoThunks (AlonzoTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

data family Tx (l ∷ TxLevel) era Source #

Instances

Instances details
HasEraTxLevel Tx AllegraEra 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). Tx l AllegraEraSTxLevel l AllegraEra Source #

HasEraTxLevel Tx AlonzoEra Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). Tx l AlonzoEraSTxLevel l AlonzoEra Source #

HasEraTxLevel Tx MaryEra 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). Tx l MaryEraSTxLevel l MaryEra Source #

HasEraTxLevel Tx ShelleyEra 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). Tx l ShelleyEraSTxLevel l ShelleyEra Source #

TranslateEra AllegraEra (Tx 'TopTx) 
Instance details

Defined in Cardano.Ledger.Allegra.Translation

TranslateEra AlonzoEra (Tx 'TopTx) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

TranslateEra MaryEra (Tx 'TopTx) 
Instance details

Defined in Cardano.Ledger.Mary.Translation

Associated Types

type TranslationError MaryEra (Tx 'TopTx) 
Instance details

Defined in Cardano.Ledger.Mary.Translation

EraTx era ⇒ HasOKey TxId (Tx l era) 
Instance details

Defined in Cardano.Ledger.Core

Methods

toOKeyTx l era → TxId Source #

Typeable l ⇒ DecCBOR (Annotator (Tx l AlonzoEra)) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Typeable l ⇒ DecCBOR (Annotator (Tx l ShelleyEra)) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Typeable t ⇒ DecCBOR (Annotator (Tx t AllegraEra)) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Typeable t ⇒ DecCBOR (Annotator (Tx t MaryEra)) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Typeable l ⇒ ToCBOR (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

toCBORTx l AlonzoEraEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Tx l AlonzoEra) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Tx l AlonzoEra] → Size Source #

Typeable l ⇒ ToCBOR (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

toCBORTx l ShelleyEraEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Tx l ShelleyEra) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Tx l ShelleyEra] → Size Source #

Typeable t ⇒ ToCBOR (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

toCBORTx t AllegraEraEncoding Source #

encodedSizeExpr ∷ (∀ t0. ToCBOR t0 ⇒ Proxy t0 → Size) → Proxy (Tx t AllegraEra) → Size Source #

encodedListSizeExpr ∷ (∀ t0. ToCBOR t0 ⇒ Proxy t0 → Size) → Proxy [Tx t AllegraEra] → Size Source #

Typeable t ⇒ ToCBOR (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

toCBORTx t MaryEraEncoding Source #

encodedSizeExpr ∷ (∀ t0. ToCBOR t0 ⇒ Proxy t0 → Size) → Proxy (Tx t MaryEra) → Size Source #

encodedListSizeExpr ∷ (∀ t0. ToCBOR t0 ⇒ Proxy t0 → Size) → Proxy [Tx t MaryEra] → Size Source #

EncCBOR (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

encCBORTx l AlonzoEraEncoding Source #

EncCBOR (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

EncCBOR (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

EncCBOR (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

encCBORTx t MaryEraEncoding Source #

EqRaw (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

eqRawTx l AlonzoEraTx l AlonzoEraBool Source #

EqRaw (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

eqRawTx l ShelleyEraTx l ShelleyEraBool Source #

EqRaw (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

eqRawTx t AllegraEraTx t AllegraEraBool Source #

EqRaw (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

eqRawTx t MaryEraTx t MaryEraBool Source #

NFData (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

rnfTx l AlonzoEra → () #

NFData (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

rnfTx l ShelleyEra → () #

NFData (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

rnfTx t AllegraEra → () #

NFData (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

rnfTx t MaryEra → () #

Generic (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Associated Types

type Rep (Tx l AlonzoEra) 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep (Tx l AlonzoEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.15.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlonzoTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AlonzoTx l AlonzoEra))))

Methods

fromTx l AlonzoEraRep (Tx l AlonzoEra) x #

toRep (Tx l AlonzoEra) x → Tx l AlonzoEra #

Generic (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Associated Types

type Rep (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

type Rep (Tx l ShelleyEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Shelley.Tx" "cardano-ledger-shelley-1.18.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unShelleyTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx l ShelleyEra))))

Methods

fromTx l ShelleyEraRep (Tx l ShelleyEra) x #

toRep (Tx l ShelleyEra) x → Tx l ShelleyEra #

Generic (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Associated Types

type Rep (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

type Rep (Tx t AllegraEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Allegra.Tx" "cardano-ledger-allegra-1.9.0.0-inplace" 'True) (C1 ('MetaCons "MkAllegraTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAllegraTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx t AllegraEra))))

Methods

fromTx t AllegraEraRep (Tx t AllegraEra) x #

toRep (Tx t AllegraEra) x → Tx t AllegraEra #

Generic (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Associated Types

type Rep (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

type Rep (Tx t MaryEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Mary.Tx" "cardano-ledger-mary-1.10.0.0-inplace" 'True) (C1 ('MetaCons "MkMaryTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMaryTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx t MaryEra))))

Methods

fromTx t MaryEraRep (Tx t MaryEra) x #

toRep (Tx t MaryEra) x → Tx t MaryEra #

Show (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

showsPrecIntTx l AlonzoEraShowS #

showTx l AlonzoEraString #

showList ∷ [Tx l AlonzoEra] → ShowS #

Show (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

showsPrecIntTx l ShelleyEraShowS #

showTx l ShelleyEraString #

showList ∷ [Tx l ShelleyEra] → ShowS #

Show (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

showsPrecIntTx t AllegraEraShowS #

showTx t AllegraEraString #

showList ∷ [Tx t AllegraEra] → ShowS #

Show (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

showsPrecIntTx t MaryEraShowS #

showTx t MaryEraString #

showList ∷ [Tx t MaryEra] → ShowS #

Eq (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

(==)Tx l AlonzoEraTx l AlonzoEraBool #

(/=)Tx l AlonzoEraTx l AlonzoEraBool #

Eq (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

(==)Tx l ShelleyEraTx l ShelleyEraBool #

(/=)Tx l ShelleyEraTx l ShelleyEraBool #

Eq (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

(==)Tx t AllegraEraTx t AllegraEraBool #

(/=)Tx t AllegraEraTx t AllegraEraBool #

Eq (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

(==)Tx t MaryEraTx t MaryEraBool #

(/=)Tx t MaryEraTx t MaryEraBool #

Typeable l ⇒ NoThunks (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Typeable l ⇒ NoThunks (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Typeable t ⇒ NoThunks (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Typeable t ⇒ NoThunks (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

newtype Tx l AlonzoEra Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

newtype Tx l ShelleyEra 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

newtype Tx t AllegraEra 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

newtype Tx t MaryEra 
Instance details

Defined in Cardano.Ledger.Mary.Tx

type TranslationError AllegraEra (Tx 'TopTx) 
Instance details

Defined in Cardano.Ledger.Allegra.Translation

type TranslationError AlonzoEra (Tx 'TopTx) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Translation

type TranslationError MaryEra (Tx 'TopTx) 
Instance details

Defined in Cardano.Ledger.Mary.Translation

type Rep (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep (Tx l AlonzoEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.15.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlonzoTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AlonzoTx l AlonzoEra))))
type Rep (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

type Rep (Tx l ShelleyEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Shelley.Tx" "cardano-ledger-shelley-1.18.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unShelleyTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx l ShelleyEra))))
type Rep (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

type Rep (Tx t AllegraEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Allegra.Tx" "cardano-ledger-allegra-1.9.0.0-inplace" 'True) (C1 ('MetaCons "MkAllegraTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAllegraTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx t AllegraEra))))
type Rep (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

type Rep (Tx t MaryEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Mary.Tx" "cardano-ledger-mary-1.10.0.0-inplace" 'True) (C1 ('MetaCons "MkMaryTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMaryTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx t MaryEra))))

class (EraTx era, AlonzoEraTxBody era, AlonzoEraTxWits era, AlonzoEraScript era) ⇒ AlonzoEraTx era where Source #

Methods

isValidTxLLens' (Tx 'TopTx era) IsValid Source #

Instances

Instances details
AlonzoEraTx AlonzoEra Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

mkBasicAlonzoTx ∷ ∀ era (l ∷ TxLevel). (EraTx era, STxLevel l era ~ STxTopLevel l era) ⇒ TxBody l era → AlonzoTx l era Source #

bodyAlonzoTxL ∷ ∀ (l ∷ TxLevel) era f. Functor f ⇒ (TxBody l era → f (TxBody l era)) → AlonzoTx l era → f (AlonzoTx l era) Source #

TxBody setter and getter for AlonzoTx.

witsAlonzoTxL ∷ ∀ (l ∷ TxLevel) era f. Functor f ⇒ (TxWits era → f (TxWits era)) → AlonzoTx l era → f (AlonzoTx l era) Source #

TxWits setter and getter for AlonzoTx.

auxDataAlonzoTxL ∷ ∀ (l ∷ TxLevel) era f. Functor f ⇒ (StrictMaybe (TxAuxData era) → f (StrictMaybe (TxAuxData era))) → AlonzoTx l era → f (AlonzoTx l era) Source #

TxAuxData setter and getter for AlonzoTx.

sizeAlonzoTxF ∷ ∀ era (l ∷ TxLevel). (HasCallStack, EraTx era) ⇒ SimpleGetter (AlonzoTx l era) Word32 Source #

txsize computes the length of the serialised bytes (for estimations)

isValidAlonzoTxL ∷ ∀ (l ∷ TxLevel) era f. Functor f ⇒ (IsValid → f IsValid) → AlonzoTx l era → f (AlonzoTx l era) Source #

data family TxBody (l ∷ TxLevel) era Source #

The body of a transaction.

Instances

Instances details
HasEraTxLevel TxBody AllegraEra 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). TxBody l AllegraEraSTxLevel l AllegraEra Source #

HasEraTxLevel TxBody AlonzoEra Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). TxBody l AlonzoEraSTxLevel l AlonzoEra Source #

HasEraTxLevel TxBody MaryEra 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). TxBody l MaryEraSTxLevel l MaryEra Source #

HasEraTxLevel TxBody ShelleyEra 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). TxBody l ShelleyEraSTxLevel l ShelleyEra Source #

Typeable l ⇒ DecCBOR (Annotator (TxBody l AllegraEra)) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Typeable l ⇒ DecCBOR (Annotator (TxBody l AlonzoEra)) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Typeable l ⇒ DecCBOR (Annotator (TxBody l MaryEra)) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Typeable l ⇒ DecCBOR (Annotator (TxBody l ShelleyEra)) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Typeable l ⇒ ToCBOR (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Methods

toCBORTxBody l AllegraEraEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (TxBody l AllegraEra) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxBody l AllegraEra] → Size Source #

Typeable l ⇒ ToCBOR (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Methods

toCBORTxBody l AlonzoEraEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (TxBody l AlonzoEra) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxBody l AlonzoEra] → Size Source #

Typeable l ⇒ ToCBOR (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

toCBORTxBody l MaryEraEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (TxBody l MaryEra) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxBody l MaryEra] → Size Source #

Typeable l ⇒ ToCBOR (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

toCBORTxBody l ShelleyEraEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (TxBody l ShelleyEra) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [TxBody l ShelleyEra] → Size Source #

EncCBOR (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

EncCBOR (TxBody l AlonzoEra) Source #

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

EncCBOR (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

EncCBOR (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

SafeToHash (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

SafeToHash (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

SafeToHash (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

SafeToHash (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

EqRaw (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

EqRaw (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

EqRaw (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

eqRawTxBody l MaryEraTxBody l MaryEraBool Source #

EqRaw (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Memoized (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Associated Types

type RawType (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Memoized (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Associated Types

type RawType (TxBody l AlonzoEra) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Memoized (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Associated Types

type RawType (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Memoized (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

type RawType (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

NFData (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Methods

rnfTxBody l AllegraEra → () #

NFData (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Methods

rnfTxBody l AlonzoEra → () #

NFData (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

rnfTxBody l MaryEra → () #

NFData (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnfTxBody l ShelleyEra → () #

Generic (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Associated Types

type Rep (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

type Rep (TxBody l AllegraEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Allegra.TxBody" "cardano-ledger-allegra-1.9.0.0-inplace" 'True) (C1 ('MetaCons "MkAllegraTxBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (AllegraTxBodyRaw () l AllegraEra)))))
Generic (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Associated Types

type Rep (TxBody l AlonzoEra) 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

type Rep (TxBody l AlonzoEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Alonzo.TxBody" "cardano-ledger-alonzo-1.15.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTxBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (AlonzoTxBodyRaw l AlonzoEra)))))

Methods

fromTxBody l AlonzoEraRep (TxBody l AlonzoEra) x #

toRep (TxBody l AlonzoEra) x → TxBody l AlonzoEra #

Generic (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Associated Types

type Rep (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

type Rep (TxBody l MaryEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Mary.TxBody" "cardano-ledger-mary-1.10.0.0-inplace" 'True) (C1 ('MetaCons "MkMaryTxBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (MaryTxBodyRaw l)))))

Methods

fromTxBody l MaryEraRep (TxBody l MaryEra) x #

toRep (TxBody l MaryEra) x → TxBody l MaryEra #

Generic (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Associated Types

type Rep (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep (TxBody l ShelleyEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Shelley.TxBody" "cardano-ledger-shelley-1.18.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTxBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (ShelleyTxBodyRaw l ShelleyEra)))))
Show (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Show (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Show (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

showsPrecIntTxBody l MaryEraShowS #

showTxBody l MaryEraString #

showList ∷ [TxBody l MaryEra] → ShowS #

Show (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Eq (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Eq (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Eq (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

(==)TxBody l MaryEraTxBody l MaryEraBool #

(/=)TxBody l MaryEraTxBody l MaryEraBool #

Eq (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Typeable l ⇒ NoThunks (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Typeable l ⇒ NoThunks (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Typeable l ⇒ NoThunks (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Typeable l ⇒ NoThunks (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

HashAnnotated (TxBody l AllegraEra) EraIndependentTxBody 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

HashAnnotated (TxBody l AlonzoEra) EraIndependentTxBody Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

HashAnnotated (TxBody l MaryEra) EraIndependentTxBody 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

HashAnnotated (TxBody l ShelleyEra) EraIndependentTxBody 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

newtype TxBody l AllegraEra 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

newtype TxBody l AlonzoEra Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

newtype TxBody l MaryEra 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

newtype TxBody l ShelleyEra 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type RawType (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

type RawType (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

type RawType (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

type RawType (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

type Rep (TxBody l AllegraEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Allegra.TxBody" "cardano-ledger-allegra-1.9.0.0-inplace" 'True) (C1 ('MetaCons "MkAllegraTxBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (AllegraTxBodyRaw () l AllegraEra)))))
type Rep (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

type Rep (TxBody l AlonzoEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Alonzo.TxBody" "cardano-ledger-alonzo-1.15.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTxBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (AlonzoTxBodyRaw l AlonzoEra)))))
type Rep (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

type Rep (TxBody l MaryEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Mary.TxBody" "cardano-ledger-mary-1.10.0.0-inplace" 'True) (C1 ('MetaCons "MkMaryTxBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (MaryTxBodyRaw l)))))
type Rep (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep (TxBody l ShelleyEra) = D1 ('MetaData "TxBody" "Cardano.Ledger.Shelley.TxBody" "cardano-ledger-shelley-1.18.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTxBody" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (ShelleyTxBodyRaw l ShelleyEra)))))

totExUnits ∷ ∀ era (l ∷ TxLevel). (EraTx era, AlonzoEraTxWits era) ⇒ Tx l era → ExUnits Source #

alonzoMinFeeTx ∷ ∀ era (l ∷ TxLevel). (EraTx era, AlonzoEraTxWits era, AlonzoEraPParams era) ⇒ PParams era → Tx l era → Coin Source #

txouts ∷ ∀ era (l ∷ TxLevel). EraTxBody era ⇒ TxBody l era → UTxO era Source #

Compute the transaction outputs of a transaction.

toCBORForSizeComputation ∷ ∀ (l ∷ TxLevel) era. (EncCBOR (TxBody l era), EncCBOR (TxWits era), EncCBOR (TxAuxData era)) ⇒ AlonzoTx l era → Encoding Source #

This ensures that the size of transactions from Mary is unchanged. The individual components all store their bytes; the only work we do in this function is concatenating

toCBORForMempoolSubmission ∷ ∀ (l ∷ TxLevel) era. (EncCBOR (TxBody l era), EncCBOR (TxWits era), EncCBOR (TxAuxData era)) ⇒ AlonzoTx l era → Encoding Source #

Encode to CBOR for the purposes of transmission from node to node, or from wallet to node.

Note that this serialisation is neither the serialisation used on-chain (where Txs are deconstructed using segwit), nor the serialisation used for computing the transaction size (which omits the IsValid field for compatibility with Mary - see toCBORForSizeComputation).

alonzoTxEqRaw ∷ ∀ era (l ∷ TxLevel). (AlonzoEraTx era, STxLevel l era ~ STxTopLevel l era) ⇒ Tx l era → Tx l era → Bool Source #

mkScriptIntegrity ∷ ∀ era (l ∷ TxLevel). (AlonzoEraPParams era, AlonzoEraTxWits era, EraUTxO era) ⇒ PParams era → Tx l era → ScriptsProvided era → Set ScriptHashStrictMaybe (ScriptIntegrity era) Source #

Orphan instances

EraTx AlonzoEra Source # 
Instance details

Associated Types

newtype Tx l AlonzoEra 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

HasEraTxLevel Tx AlonzoEra Source # 
Instance details

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). Tx l AlonzoEraSTxLevel l AlonzoEra Source #

Typeable l ⇒ DecCBOR (Annotator (Tx l AlonzoEra)) Source # 
Instance details

Typeable l ⇒ ToCBOR (Tx l AlonzoEra) Source # 
Instance details

Methods

toCBORTx l AlonzoEraEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (Tx l AlonzoEra) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Tx l AlonzoEra] → Size Source #

EncCBOR (Tx l AlonzoEra) Source # 
Instance details

Methods

encCBORTx l AlonzoEraEncoding Source #

EqRaw (Tx l AlonzoEra) Source # 
Instance details

Methods

eqRawTx l AlonzoEraTx l AlonzoEraBool Source #

NFData (Tx l AlonzoEra) Source # 
Instance details

Methods

rnfTx l AlonzoEra → () #

Generic (Tx l AlonzoEra) Source # 
Instance details

Associated Types

type Rep (Tx l AlonzoEra) 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep (Tx l AlonzoEra) = D1 ('MetaData "Tx" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.15.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlonzoTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AlonzoTx l AlonzoEra))))

Methods

fromTx l AlonzoEraRep (Tx l AlonzoEra) x #

toRep (Tx l AlonzoEra) x → Tx l AlonzoEra #

Show (Tx l AlonzoEra) Source # 
Instance details

Methods

showsPrecIntTx l AlonzoEraShowS #

showTx l AlonzoEraString #

showList ∷ [Tx l AlonzoEra] → ShowS #

Eq (Tx l AlonzoEra) Source # 
Instance details

Methods

(==)Tx l AlonzoEraTx l AlonzoEraBool #

(/=)Tx l AlonzoEraTx l AlonzoEraBool #

Typeable l ⇒ NoThunks (Tx l AlonzoEra) Source # 
Instance details