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

Cardano.Ledger.Dijkstra.TxInfo

Synopsis

Documentation

data DijkstraContextError era Source #

Constructors

ConwayContextError (ConwayContextError era) 
SubTxContextError TxId (ContextError era)

Failure translating sub-transactions for Guarding purpose at the top level

PointerPresentInOutput (NonEmptySet TxOutSource)

From Dijkstra onwards, attempt to use a script when there are stake ref pointers present in any outputs will result in this failure

UnsupportedScriptInSubTx Language TxId

Attempt to use PlutusV1-V3 in a sub-transaction will result in this failure

DirectDepositsNotSupported DirectDeposits

Attempt to use PlutusV1-V3 with non-empty direct deposits will result in this failure

AccountBalanceIntervalsNotSupported (AccountBalanceIntervals era)

Attempt to use PlutusV1-V3 with non-empty account balance intervals will result in this failure

GuardScriptHashesNotSupported (NonEmpty ScriptHash)

Attempt to use PlutusV1-V3 with script hashes in guards will result in this failure

RequiredTopLevelGuardsNotSupported (NonEmptyMap (Credential 'Guard) (StrictMaybe (Data era)))

Attempt to use PlutusV1-V3 with non-empty required top-level guards will result in this failure

ScriptHashNotFoundForPurpose (PlutusPurpose AsIx era)

Attempt to use PlutusV4 script with an invalid redeemer pointer will result in this failure

Instances

Instances details
(ToJSON (TxOut era), ToJSON (TxCert era), ToJSON (ContextError era), ToJSON (PlutusPurpose AsIx era), ToJSON (PlutusPurpose AsItem era), EraPParams era) ⇒ ToJSON (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

(EraPParams era, DecCBOR (TxOut era), DecCBOR (TxCert era), DecCBOR (ContextError era), DecCBOR (PlutusPurpose AsIx era), DecCBOR (PlutusPurpose AsItem era)) ⇒ DecCBOR (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

(EraPParams era, EncCBOR (TxCert era), EncCBOR (ContextError era), EncCBOR (PlutusPurpose AsIx era), EncCBOR (PlutusPurpose AsItem era)) ⇒ EncCBOR (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

(AlonzoEraScript era, EraTxCert era, EraTxOut era, NFData (ContextError era)) ⇒ NFData (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

Methods

rnfDijkstraContextError era → () #

Generic (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

Associated Types

type Rep (DijkstraContextError era) 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

type Rep (DijkstraContextError era) = D1 ('MetaData "DijkstraContextError" "Cardano.Ledger.Dijkstra.TxInfo" "cardano-ledger-dijkstra-0.4.0.0-inplace" 'False) (((C1 ('MetaCons "ConwayContextError" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ConwayContextError era))) :+: C1 ('MetaCons "SubTxContextError" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ContextError era)))) :+: (C1 ('MetaCons "PointerPresentInOutput" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptySet TxOutSource))) :+: C1 ('MetaCons "UnsupportedScriptInSubTx" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId)))) :+: ((C1 ('MetaCons "DirectDepositsNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DirectDeposits)) :+: C1 ('MetaCons "AccountBalanceIntervalsNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AccountBalanceIntervals era)))) :+: (C1 ('MetaCons "GuardScriptHashesNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty ScriptHash))) :+: (C1 ('MetaCons "RequiredTopLevelGuardsNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptyMap (Credential 'Guard) (StrictMaybe (Data era))))) :+: C1 ('MetaCons "ScriptHashNotFoundForPurpose" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PlutusPurpose AsIx era)))))))
(AlonzoEraScript era, EraTxCert era, EraTxOut era, Show (ContextError era)) ⇒ Show (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

(AlonzoEraScript era, EraTxCert era, EraTxOut era, Eq (ContextError era)) ⇒ Eq (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

(AlonzoEraScript era, EraTxCert era, EraTxOut era, Ord (ContextError era)) ⇒ Ord (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

Inject (BabbageContextError era) (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

Inject (ConwayContextError era) (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

Inject (AlonzoContextError era) (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

type Rep (DijkstraContextError era) Source # 
Instance details

Defined in Cardano.Ledger.Dijkstra.TxInfo

type Rep (DijkstraContextError era) = D1 ('MetaData "DijkstraContextError" "Cardano.Ledger.Dijkstra.TxInfo" "cardano-ledger-dijkstra-0.4.0.0-inplace" 'False) (((C1 ('MetaCons "ConwayContextError" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ConwayContextError era))) :+: C1 ('MetaCons "SubTxContextError" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ContextError era)))) :+: (C1 ('MetaCons "PointerPresentInOutput" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptySet TxOutSource))) :+: C1 ('MetaCons "UnsupportedScriptInSubTx" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Language) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId)))) :+: ((C1 ('MetaCons "DirectDepositsNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DirectDeposits)) :+: C1 ('MetaCons "AccountBalanceIntervalsNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AccountBalanceIntervals era)))) :+: (C1 ('MetaCons "GuardScriptHashesNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty ScriptHash))) :+: (C1 ('MetaCons "RequiredTopLevelGuardsNotSupported" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptyMap (Credential 'Guard) (StrictMaybe (Data era))))) :+: C1 ('MetaCons "ScriptHashNotFoundForPurpose" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PlutusPurpose AsIx era)))))))

transValidityIntervalInject (AlonzoContextError era) (ContextError era) ⇒ Proxy era → EpochInfo (Either Text) → SystemStartValidityIntervalEither (ContextError era) POSIXTimeRange Source #

Translate a validity interval to PV4.POSIXTimeRange

Orphan instances

EraPlutusContext DijkstraEra Source # 
Instance details

EraPlutusTxInfo 'PlutusV1 DijkstraEra Source # 
Instance details

EraPlutusTxInfo 'PlutusV2 DijkstraEra Source # 
Instance details

EraPlutusTxInfo 'PlutusV3 DijkstraEra Source # 
Instance details

EraPlutusTxInfo 'PlutusV4 DijkstraEra Source # 
Instance details

ConwayEraPlutusTxInfo 'PlutusV3 DijkstraEra Source # 
Instance details

ConwayEraPlutusTxInfo 'PlutusV4 DijkstraEra Source # 
Instance details