cardano-ledger-alonzo-1.17.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

State Annotated

data AlonzoStAnnTx (l ∷ TxLevel) era where Source #

Instances

Instances details
(EraTxLevel era, STxLevel 'TopTx era ~ STxTopLevel 'TopTx era) ⇒ HasEraTxLevel AlonzoStAnnTx era Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). AlonzoStAnnTx l era → STxLevel l era Source #

(AlonzoEraScript era, NFData (Tx 'TopTx era), NFData (ScriptsNeeded era), NFData (ScriptsProvided era), NFData (CollectError era)) ⇒ NFData (AlonzoStAnnTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

rnf ∷ AlonzoStAnnTx l era → () #

(AlonzoEraScript era, Show (Tx 'TopTx era), Show (ScriptsNeeded era), Show (ScriptsProvided era), Show (CollectError era)) ⇒ Show (AlonzoStAnnTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

showsPrec ∷ Int → AlonzoStAnnTx l era → ShowS #

show ∷ AlonzoStAnnTx l era → String #

showList ∷ [AlonzoStAnnTx l era] → ShowS #

(AlonzoEraScript era, Eq (Tx 'TopTx era), Eq (ScriptsNeeded era), Eq (ScriptsProvided era), Eq (CollectError era)) ⇒ Eq (AlonzoStAnnTx l era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

(==) ∷ AlonzoStAnnTx l era → AlonzoStAnnTx l era → Bool #

(/=) ∷ AlonzoStAnnTx l era → AlonzoStAnnTx l era → Bool #

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

rnf ∷ CostModel → () #

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.22.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

from ∷ CostModel → Rep CostModel x #

to ∷ Rep CostModel x → CostModel #

Show CostModel 
Instance details

Defined in Cardano.Ledger.Plutus.CostModels

Methods

showsPrec ∷ Int → CostModel → ShowS #

show ∷ CostModel → String #

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

(==) ∷ CostModel → CostModel → Bool #

(/=) ∷ CostModel → CostModel → Bool #

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.22.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
Era era ⇒ FromJSON (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

ToJSON (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

toJSON ∷ Data era → Value Source #

toEncoding ∷ Data era → Encoding Source #

toJSONList ∷ [Data era] → Value Source #

toEncodingList ∷ [Data era] → Encoding Source #

omitField ∷ Data era → Bool Source #

Typeable era ⇒ ToCBOR (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

toCBOR ∷ Data 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

decCBOR ∷ Decoder s (Annotator (Data era)) Source #

dropCBOR ∷ Proxy (Annotator (Data era)) → Decoder s () Source #

label ∷ Proxy (Annotator (Data era)) → Text Source #

Typeable era ⇒ DecCBOR (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

decCBOR ∷ Decoder s (Data era) Source #

dropCBOR ∷ Proxy (Data era) → Decoder s () Source #

label ∷ Proxy (Data era) → Text Source #

Typeable era ⇒ EncCBOR (Data era)

Encodes memoized bytes created upon construction.

Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

encCBOR ∷ Data 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

getMemoBytes ∷ Data era → MemoBytes (RawType (Data era))

wrapMemoBytes ∷ MemoBytes (RawType (Data era)) → Data era

NFData (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

rnf ∷ Data 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.22.0.0-inplace" 'True) (C1 ('MetaCons "MkData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (PlutusData era)))))

Methods

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

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

Show (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

showsPrec ∷ Int → Data era → ShowS #

show ∷ Data 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 #

Ord (Data era) 
Instance details

Defined in Cardano.Ledger.Plutus.Data

Methods

compare ∷ Data era → Data era → Ordering #

(<) ∷ Data era → Data era → Bool #

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

(>) ∷ Data era → Data era → Bool #

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

max ∷ Data era → Data era → Data era #

min ∷ Data era → Data era → Data era #

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.22.0.0-inplace" 'True) (C1 ('MetaCons "MkData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (PlutusData era)))))

data IsPhase2Valid Source #

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

Constructors

Phase2Invalid 
Phase2Valid 

Instances

Instances details
FromJSON IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

ToJSON IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

ToCBOR IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

DecCBOR IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

EncCBOR IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

NFData IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

rnf ∷ IsPhase2Valid → () #

Monoid IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Semigroup IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Generic IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Associated Types

type Rep IsPhase2Valid 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsPhase2Valid = D1 ('MetaData "IsPhase2Valid" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.17.0.0-inplace" 'False) (C1 ('MetaCons "Phase2Invalid" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "Phase2Valid" 'PrefixI 'False) (U1 ∷ Type → Type))
Show IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Eq IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Ord IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

NoThunks IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsPhase2Valid Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type Rep IsPhase2Valid = D1 ('MetaData "IsPhase2Valid" "Cardano.Ledger.Alonzo.Tx" "cardano-ledger-alonzo-1.17.0.0-inplace" 'False) (C1 ('MetaCons "Phase2Invalid" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "Phase2Valid" 'PrefixI 'False) (U1 ∷ Type → Type))

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.17.0.0-inplace" 'False) (C1 ('MetaCons "ScriptIntegrity" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Redeemers era)) :*: (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxDats era)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set LangDepView)))))

Methods

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

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

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

Defined in Cardano.Ledger.Alonzo.Tx

Methods

showsPrec ∷ Int → ScriptIntegrity era → ShowS #

show ∷ ScriptIntegrity 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.17.0.0-inplace" 'False) (C1 ('MetaCons "ScriptIntegrity" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Redeemers era)) :*: (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TxDats era)) :*: S1 ('MetaSel ('Nothing ∷ Maybe 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

decCBOR ∷ Decoder s (Annotator (AlonzoTx l era)) Source #

dropCBOR ∷ Proxy (Annotator (AlonzoTx l era)) → Decoder s () Source #

label ∷ Proxy (Annotator (AlonzoTx l era)) → Text Source #

(FromJSON (TxBody 'TopTx era), FromJSON (TxWits era), FromJSON (TxAuxData era)) ⇒ FromJSON (AlonzoTx 'TopTx era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

(ToJSON (TxBody 'TopTx era), ToJSON (TxWits era), ToJSON (TxAuxData era)) ⇒ ToJSON (AlonzoTx 'TopTx era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

(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

toCBOR ∷ AlonzoTx 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

encCBOR ∷ AlonzoTx l era → Encoding Source #

(ToJSON (TxBody 'TopTx era), ToJSON (TxWits era), ToJSON (TxAuxData era)) ⇒ ToKeyValuePairs (AlonzoTx 'TopTx era) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ AlonzoTx 'TopTx era → [kv] 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

rnf ∷ AlonzoTx 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

showsPrec ∷ Int → AlonzoTx l era → ShowS #

show ∷ AlonzoTx 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 AllegraEra → STxLevel l AllegraEra Source #

HasEraTxLevel Tx AlonzoEra Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

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

HasEraTxLevel Tx MaryEra 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

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

HasEraTxLevel Tx ShelleyEra 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

toSTxLevel ∷ ∀ (l ∷ TxLevel). Tx l ShelleyEra → STxLevel 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

toOKey ∷ Tx 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

FromJSON (Tx 'TopTx AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

FromJSON (Tx 'TopTx AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

FromJSON (Tx 'TopTx MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

FromJSON (Tx 'TopTx ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

ToJSON (Tx 'TopTx AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

ToJSON (Tx 'TopTx AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

ToJSON (Tx 'TopTx MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

ToJSON (Tx 'TopTx ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

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

Defined in Cardano.Ledger.Alonzo.Tx

Methods

toCBOR ∷ Tx l AlonzoEra → Encoding 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

toCBOR ∷ Tx l ShelleyEra → Encoding 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

toCBOR ∷ Tx t AllegraEra → Encoding 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

toCBOR ∷ Tx t MaryEra → Encoding 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

encCBOR ∷ Tx l AlonzoEra → Encoding 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

encCBOR ∷ Tx t MaryEra → Encoding Source #

EqRaw (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

eqRaw ∷ Tx l AlonzoEra → Tx l AlonzoEra → Bool Source #

EqRaw (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

eqRaw ∷ Tx l ShelleyEra → Tx l ShelleyEra → Bool Source #

EqRaw (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

eqRaw ∷ Tx t AllegraEra → Tx t AllegraEra → Bool Source #

EqRaw (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

eqRaw ∷ Tx t MaryEra → Tx t MaryEra → Bool Source #

NFData (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

rnf ∷ Tx l AlonzoEra → () #

NFData (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

rnf ∷ Tx l ShelleyEra → () #

NFData (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

rnf ∷ Tx t AllegraEra → () #

NFData (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

rnf ∷ Tx 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.17.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlonzoTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AlonzoTx l AlonzoEra))))

Methods

from ∷ Tx l AlonzoEra → Rep (Tx l AlonzoEra) x #

to ∷ Rep (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.20.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unShelleyTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx l ShelleyEra))))

Methods

from ∷ Tx l ShelleyEra → Rep (Tx l ShelleyEra) x #

to ∷ Rep (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.10.2.0-inplace" 'True) (C1 ('MetaCons "MkAllegraTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAllegraTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx t AllegraEra))))

Methods

from ∷ Tx t AllegraEra → Rep (Tx t AllegraEra) x #

to ∷ Rep (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.11.1.0-inplace" 'True) (C1 ('MetaCons "MkMaryTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMaryTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyTx t MaryEra))))

Methods

from ∷ Tx t MaryEra → Rep (Tx t MaryEra) x #

to ∷ Rep (Tx t MaryEra) x → Tx t MaryEra #

Show (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

showsPrec ∷ Int → Tx l AlonzoEra → ShowS #

show ∷ Tx l AlonzoEra → String #

showList ∷ [Tx l AlonzoEra] → ShowS #

Show (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

showsPrec ∷ Int → Tx l ShelleyEra → ShowS #

show ∷ Tx l ShelleyEra → String #

showList ∷ [Tx l ShelleyEra] → ShowS #

Show (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

showsPrec ∷ Int → Tx t AllegraEra → ShowS #

show ∷ Tx t AllegraEra → String #

showList ∷ [Tx t AllegraEra] → ShowS #

Show (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

showsPrec ∷ Int → Tx t MaryEra → ShowS #

show ∷ Tx t MaryEra → String #

showList ∷ [Tx t MaryEra] → ShowS #

Eq (Tx l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

Methods

(==) ∷ Tx l AlonzoEra → Tx l AlonzoEra → Bool #

(/=) ∷ Tx l AlonzoEra → Tx l AlonzoEra → Bool #

Eq (Tx l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.Tx

Methods

(==) ∷ Tx l ShelleyEra → Tx l ShelleyEra → Bool #

(/=) ∷ Tx l ShelleyEra → Tx l ShelleyEra → Bool #

Eq (Tx t AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.Tx

Methods

(==) ∷ Tx t AllegraEra → Tx t AllegraEra → Bool #

(/=) ∷ Tx t AllegraEra → Tx t AllegraEra → Bool #

Eq (Tx t MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.Tx

Methods

(==) ∷ Tx t MaryEra → Tx t MaryEra → Bool #

(/=) ∷ Tx t MaryEra → Tx t MaryEra → Bool #

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.17.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.20.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.10.2.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.11.1.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, AlonzoEraTxAuxData era) ⇒ AlonzoEraTx era where Source #

Minimal complete definition

isPhase2ValidTxL

Methods

isPhase2ValidTxL ∷ Lens' (Tx 'TopTx era) IsPhase2Valid Source #

isValidTxL ∷ Lens' (Tx 'TopTx era) IsPhase2Valid Source #

Deprecated: In favor of isPhase2ValidTxL

getTotalExUnits ∷ ∀ (l ∷ TxLevel). Tx l era → ExUnits Source #

Total declared execution units, including sub-transactions when supported. Earlier eras only have the transaction's own redeemers.

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)

isPhase2ValidAlonzoTxL ∷ ∀ (l ∷ TxLevel) era f. Functor f ⇒ (IsPhase2Valid → f IsPhase2Valid) → 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 AllegraEra → STxLevel l AllegraEra Source #

HasEraTxLevel TxBody AlonzoEra Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Methods

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

HasEraTxLevel TxBody MaryEra 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

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

HasEraTxLevel TxBody ShelleyEra 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

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

EraTxBody era ⇒ HasOKey TxId (TxBody l era) 
Instance details

Defined in Cardano.Ledger.Core

Methods

toOKey ∷ TxBody l era → TxId 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

FromJSON (TxBody 'TopTx AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

FromJSON (TxBody 'TopTx AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

FromJSON (TxBody 'TopTx MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

FromJSON (TxBody 'TopTx ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

ToJSON (TxBody 'TopTx AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

ToJSON (TxBody 'TopTx AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

ToJSON (TxBody 'TopTx MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

ToJSON (TxBody 'TopTx ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Typeable l ⇒ ToCBOR (TxBody l AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Methods

toCBOR ∷ TxBody l AllegraEra → Encoding 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

toCBOR ∷ TxBody l AlonzoEra → Encoding 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

toCBOR ∷ TxBody l MaryEra → Encoding 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

toCBOR ∷ TxBody l ShelleyEra → Encoding 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

ToKeyValuePairs (TxBody 'TopTx AllegraEra) 
Instance details

Defined in Cardano.Ledger.Allegra.TxBody

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ TxBody 'TopTx AllegraEra → [kv] Source #

ToKeyValuePairs (TxBody 'TopTx AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ TxBody 'TopTx AlonzoEra → [kv] Source #

ToKeyValuePairs (TxBody 'TopTx MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ TxBody 'TopTx MaryEra → [kv] Source #

ToKeyValuePairs (TxBody 'TopTx ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

toKeyValuePairs ∷ KeyValue e kv ⇒ TxBody 'TopTx ShelleyEra → [kv] Source #

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

eqRaw ∷ TxBody l MaryEra → TxBody l MaryEra → Bool 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

rnf ∷ TxBody l AllegraEra → () #

NFData (TxBody l AlonzoEra) Source # 
Instance details

Defined in Cardano.Ledger.Alonzo.TxBody

Methods

rnf ∷ TxBody l AlonzoEra → () #

NFData (TxBody l MaryEra) 
Instance details

Defined in Cardano.Ledger.Mary.TxBody

Methods

rnf ∷ TxBody l MaryEra → () #

NFData (TxBody l ShelleyEra) 
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Methods

rnf ∷ TxBody 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.10.2.0-inplace" 'True) (C1 ('MetaCons "MkAllegraTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe 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.17.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (AlonzoTxBodyRaw l AlonzoEra)))))

Methods

from ∷ TxBody l AlonzoEra → Rep (TxBody l AlonzoEra) x #

to ∷ Rep (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.11.1.0-inplace" 'True) (C1 ('MetaCons "MkMaryTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (MaryTxBodyRaw l)))))

Methods

from ∷ TxBody l MaryEra → Rep (TxBody l MaryEra) x #

to ∷ Rep (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.20.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe 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

showsPrec ∷ Int → TxBody l MaryEra → ShowS #

show ∷ TxBody l MaryEra → String #

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 MaryEra → TxBody l MaryEra → Bool #

(/=) ∷ TxBody l MaryEra → TxBody l MaryEra → Bool #

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.10.2.0-inplace" 'True) (C1 ('MetaCons "MkAllegraTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe 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.17.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe 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.11.1.0-inplace" 'True) (C1 ('MetaCons "MkMaryTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe 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.20.0.0-inplace" 'True) (C1 ('MetaCons "MkShelleyTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MemoBytes (ShelleyTxBodyRaw l ShelleyEra)))))

totExUnits ∷ ∀ era (l ∷ TxLevel). AlonzoEraTx era ⇒ Tx l era → ExUnits Source #

Deprecated: In favor of getTotalExUnits

alonzoMinFeeTx ∷ ∀ era (l ∷ TxLevel). AlonzoEraTx 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). (EraTx era, AlonzoEraPParams era, AlonzoEraTxWits era) ⇒ PParams era → Tx l era → Set Language → StrictMaybe (ScriptIntegrity era) Source #

Deprecated

type IsValid = IsPhase2Valid Source #

Deprecated: In favor of IsPhase2Valid

pattern IsValid ∷ Bool → IsPhase2Valid Source #

Deprecated: In favor of IsPhase2Valid

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

Deprecated: In favor of isPhase2ValidAlonzoTxL

atIsValid ∷ AlonzoTx 'TopTx era → IsPhase2Valid Source #

Deprecated: In favor of atIsPhase2Valid

Orphan instances

EraTx AlonzoEra Source # 
Instance details

Associated Types

newtype Tx l AlonzoEra 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type StAnnTx l AlonzoEra 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

type StAnnTxCache AlonzoEra 
Instance details

Defined in Cardano.Ledger.Alonzo.Tx

HasEraTxLevel Tx AlonzoEra Source # 
Instance details

Methods

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

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

FromJSON (Tx 'TopTx AlonzoEra) Source # 
Instance details

ToJSON (Tx 'TopTx AlonzoEra) Source # 
Instance details

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

Methods

toCBOR ∷ Tx l AlonzoEra → Encoding 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

encCBOR ∷ Tx l AlonzoEra → Encoding Source #

EqRaw (Tx l AlonzoEra) Source # 
Instance details

Methods

eqRaw ∷ Tx l AlonzoEra → Tx l AlonzoEra → Bool Source #

NFData (Tx l AlonzoEra) Source # 
Instance details

Methods

rnf ∷ Tx 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.17.0.0-inplace" 'True) (C1 ('MetaCons "MkAlonzoTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAlonzoTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AlonzoTx l AlonzoEra))))

Methods

from ∷ Tx l AlonzoEra → Rep (Tx l AlonzoEra) x #

to ∷ Rep (Tx l AlonzoEra) x → Tx l AlonzoEra #

Show (Tx l AlonzoEra) Source # 
Instance details

Methods

showsPrec ∷ Int → Tx l AlonzoEra → ShowS #

show ∷ Tx l AlonzoEra → String #

showList ∷ [Tx l AlonzoEra] → ShowS #

Eq (Tx l AlonzoEra) Source # 
Instance details

Methods

(==) ∷ Tx l AlonzoEra → Tx l AlonzoEra → Bool #

(/=) ∷ Tx l AlonzoEra → Tx l AlonzoEra → Bool #

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