| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.Alonzo.Rules
Synopsis
- data BBODY era
- data AlonzoBbodyPredFailure era
- newtype AlonzoBbodyEvent era = ShelleyInAlonzoEvent (ShelleyBbodyEvent era)
- alonzoBbodyTransition ∷ (STS (EraRule "BBODY" era), Signal (EraRule "BBODY" era) ~ BbodySignal era, InjectRuleFailure "BBODY" AlonzoBbodyPredFailure era, InjectRuleFailure "BBODY" ShelleyBbodyPredFailure era, BaseM (EraRule "BBODY" era) ~ ShelleyBase, State (EraRule "BBODY" era) ~ ShelleyBbodyState era, Environment (EraRule "BBODY" era) ~ BbodyEnv era, Embed (EraRule "LEDGERS" era) (EraRule "BBODY" era), Environment (EraRule "LEDGERS" era) ~ ShelleyLedgersEnv era, State (EraRule "LEDGERS" era) ~ LedgerState era, Signal (EraRule "LEDGERS" era) ~ Seq (Tx 'TopTx era), EraBlockBody era, AlonzoEraTx era) ⇒ TransitionRule (EraRule "BBODY" era)
- validateExUnits ∷ (AlonzoEraTx era, InjectRuleFailure "BBODY" AlonzoBbodyPredFailure era) ⇒ StrictSeq (Tx 'TopTx era) → ExUnits → Rule (EraRule "BBODY" era) 'Transition ()
- data LEDGER era
- ledgerTransition ∷ (STS (someLEDGER era), BaseM (someLEDGER era) ~ ShelleyBase, Signal (someLEDGER era) ~ StAnnTx 'TopTx era, State (someLEDGER era) ~ LedgerState era, Environment (someLEDGER era) ~ LedgerEnv era, Embed (EraRule "UTXOW" era) (someLEDGER era), Embed (EraRule "DELEGS" era) (someLEDGER era), Environment (EraRule "DELEGS" era) ~ DelegsEnv era, State (EraRule "DELEGS" era) ~ CertState era, Signal (EraRule "DELEGS" era) ~ Seq (TxCert era), Environment (EraRule "UTXOW" era) ~ UtxoEnv era, State (EraRule "UTXOW" era) ~ UTxOState era, Signal (EraRule "UTXOW" era) ~ StAnnTx 'TopTx era, AlonzoEraTx era, EraCertState era, EraRule "LEDGER" era ~ someLEDGER era, InjectRuleFailure "LEDGER" ShelleyLedgerPredFailure era) ⇒ TransitionRule (someLEDGER era)
- data UTXO era
- data AlonzoUtxoEvent era
- = UtxosEvent (Event (EraRule "UTXOS" era))
- | TotalDeposits (SafeHash EraIndependentTxBody) Coin
- | TxUTxODiff (UTxO era) (UTxO era)
- data AlonzoUtxoPredFailure era
- = BadInputsUTxO (NonEmptySet TxIn)
- | OutsideValidityIntervalUTxO ValidityInterval SlotNo
- | MaxTxSizeUTxO (Mismatch 'RelLTEQ Word32)
- | InputSetEmptyUTxO
- | FeeTooSmallUTxO (Mismatch 'RelGTEQ Coin)
- | ValueNotConservedUTxO (Mismatch 'RelEQ (Value era))
- | WrongNetwork Network (NonEmptySet Addr)
- | WrongNetworkWithdrawal Network (NonEmptySet AccountAddress)
- | OutputTooSmallUTxO (NonEmpty (TxOut era))
- | UtxosFailure (PredicateFailure (EraRule "UTXOS" era))
- | OutputBootAddrAttrsTooBig (NonEmpty (TxOut era))
- | OutputTooBigUTxO (NonEmpty (Int, Int, TxOut era))
- | InsufficientCollateral DeltaCoin Coin
- | ScriptsNotPaidUTxO (NonEmptyMap TxIn (TxOut era))
- | ExUnitsTooBigUTxO (Mismatch 'RelLTEQ ExUnits)
- | CollateralContainsNonADA (Value era)
- | WrongNetworkInTxBody (Mismatch 'RelEQ Network)
- | OutsideForecast SlotNo
- | TooManyCollateralInputs (Mismatch 'RelLTEQ Word16)
- | NoCollateralInputs
- validateOutputTooBigUTxO ∷ (EraTxOut era, AlonzoEraPParams era, Foldable f) ⇒ PParams era → f (TxOut era) → Test (AlonzoUtxoPredFailure era)
- allegraToAlonzoUtxoPredFailure ∷ ∀ (t ∷ Type → Type) era. (EraRuleFailure "PPUP" era ~ t era, InjectRuleFailure "UTXOS" t era) ⇒ AllegraUtxoPredFailure era → AlonzoUtxoPredFailure era
- validateCollateralContainsNonADA ∷ (Foldable f, EraTxOut era) ⇒ f (TxOut era) → Test (AlonzoUtxoPredFailure era)
- validateExUnitsTooBigUTxO ∷ ∀ era (l ∷ TxLevel). (AlonzoEraTxWits era, EraTx era, AlonzoEraPParams era) ⇒ PParams era → Tx l era → Test (AlonzoUtxoPredFailure era)
- validateInsufficientCollateral ∷ (EraTxBody era, AlonzoEraPParams era) ⇒ PParams era → TxBody 'TopTx era → DeltaCoin → Test (AlonzoUtxoPredFailure era)
- validateOutsideForecast ∷ ∀ era a (l ∷ TxLevel). (MaryEraTxBody era, AlonzoEraTxWits era, EraTx era) ⇒ EpochInfo (Either a) → SlotNo → SystemStart → Tx l era → Test (AlonzoUtxoPredFailure era)
- validateScriptsNotPaidUTxO ∷ EraTxOut era ⇒ Map TxIn (TxOut era) → Test (AlonzoUtxoPredFailure era)
- validateTooManyCollateralInputs ∷ AlonzoEraTxBody era ⇒ PParams era → TxBody 'TopTx era → Test (AlonzoUtxoPredFailure era)
- validateWrongNetworkInTxBody ∷ ∀ era (l ∷ TxLevel). AlonzoEraTxBody era ⇒ Network → TxBody l era → Test (AlonzoUtxoPredFailure era)
- vKeyLocked ∷ EraTxOut era ⇒ TxOut era → Bool
- data AlonzoUtxosPredFailure era
- = ValidationTagMismatch IsValid TagMismatchDescription
- | CollectErrors (NonEmpty (CollectError era))
- | UpdateFailure (EraRuleFailure "PPUP" era)
- data UtxosEnv era = UtxosEnv {}
- data UTXOS era
- lbl2Phase ∷ Label
- data TagMismatchDescription
- validBegin ∷ String
- validEnd ∷ String
- invalidBegin ∷ String
- invalidEnd ∷ String
- data AlonzoUtxosEvent era
- when2Phase ∷ ∀ sts (ctx ∷ RuleType). Rule sts ctx () → Rule sts ctx ()
- data FailureDescription = PlutusFailure Text ByteString
- scriptFailureToFailureDescription ∷ ScriptFailure → FailureDescription
- data UTXOW era
- data AlonzoUtxowPredFailure era
- = ShelleyInAlonzoUtxowPredFailure (ShelleyUtxowPredFailure era)
- | MissingRedeemers (NonEmpty (PlutusPurpose AsItem era, ScriptHash))
- | MissingRequiredDatums (NonEmptySet DataHash) (Set DataHash)
- | NotAllowedSupplementalDatums (NonEmptySet DataHash) (Set DataHash)
- | PPViewHashesDontMatch (Mismatch 'RelEQ (StrictMaybe ScriptIntegrityHash))
- | UnspendableUTxONoDatumHash (NonEmptySet TxIn)
- | ExtraRedeemers (NonEmpty (PlutusPurpose AsIx era))
- | ScriptIntegrityHashMismatch (Mismatch 'RelEQ (StrictMaybe ScriptIntegrityHash)) (StrictMaybe ByteString)
- newtype AlonzoUtxowEvent era = WrappedShelleyEraEvent (ShelleyUtxowEvent era)
- hasExactSetOfRedeemers ∷ ∀ era (l ∷ TxLevel). AlonzoEraTx era ⇒ Tx l era → ScriptsProvided era → AlonzoScriptsNeeded era → Test (AlonzoUtxowPredFailure era)
- missingRequiredDatums ∷ ∀ era (l ∷ TxLevel). (AlonzoEraTx era, AlonzoEraUTxO era) ⇒ ScriptsProvided era → UTxO era → Tx l era → Test (AlonzoUtxowPredFailure era)
- checkScriptIntegrityHash ∷ ∀ era (l ∷ TxLevel). AlonzoEraTx era ⇒ Tx l era → PParams era → StrictMaybe (ScriptIntegrity era) → Test (AlonzoUtxowPredFailure era)
Documentation
Instances
data AlonzoBbodyPredFailure era Source #
Constructors
| ShelleyInAlonzoBbodyPredFailure (ShelleyBbodyPredFailure era) | |
| TooManyExUnits (Mismatch 'RelLTEQ ExUnits) |
Instances
| InjectRuleFailure "BBODY" AlonzoBbodyPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods injectFailure ∷ AlonzoBbodyPredFailure AlonzoEra → EraRuleFailure "BBODY" AlonzoEra Source # | |||||
| (Era era, DecCBOR (PredicateFailure (EraRule "LEDGERS" era))) ⇒ DecCBOR (AlonzoBbodyPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody | |||||
| (Era era, EncCBOR (PredicateFailure (EraRule "LEDGERS" era))) ⇒ EncCBOR (AlonzoBbodyPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods encCBOR ∷ AlonzoBbodyPredFailure era → Encoding Source # | |||||
| NFData (PredicateFailure (EraRule "LEDGERS" era)) ⇒ NFData (AlonzoBbodyPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods rnf ∷ AlonzoBbodyPredFailure era → () # | |||||
| Generic (AlonzoBbodyPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Associated Types
Methods from ∷ AlonzoBbodyPredFailure era → Rep (AlonzoBbodyPredFailure era) x # to ∷ Rep (AlonzoBbodyPredFailure era) x → AlonzoBbodyPredFailure era # | |||||
| (Era era, Show (PredicateFailure (EraRule "LEDGERS" era))) ⇒ Show (AlonzoBbodyPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods showsPrec ∷ Int → AlonzoBbodyPredFailure era → ShowS # show ∷ AlonzoBbodyPredFailure era → String # showList ∷ [AlonzoBbodyPredFailure era] → ShowS # | |||||
| (Era era, Eq (PredicateFailure (EraRule "LEDGERS" era))) ⇒ Eq (AlonzoBbodyPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods (==) ∷ AlonzoBbodyPredFailure era → AlonzoBbodyPredFailure era → Bool # (/=) ∷ AlonzoBbodyPredFailure era → AlonzoBbodyPredFailure era → Bool # | |||||
| type Rep (AlonzoBbodyPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody type Rep (AlonzoBbodyPredFailure era) = D1 ('MetaData "AlonzoBbodyPredFailure" "Cardano.Ledger.Alonzo.Rules.Bbody" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) (C1 ('MetaCons "ShelleyInAlonzoBbodyPredFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyBbodyPredFailure era))) :+: C1 ('MetaCons "TooManyExUnits" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelLTEQ ExUnits)))) | |||||
newtype AlonzoBbodyEvent era Source #
Constructors
| ShelleyInAlonzoEvent (ShelleyBbodyEvent era) |
Instances
| Generic (AlonzoBbodyEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Associated Types
Methods from ∷ AlonzoBbodyEvent era → Rep (AlonzoBbodyEvent era) x # to ∷ Rep (AlonzoBbodyEvent era) x → AlonzoBbodyEvent era # | |||||
| Eq (Event (EraRule "LEDGERS" era)) ⇒ Eq (AlonzoBbodyEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods (==) ∷ AlonzoBbodyEvent era → AlonzoBbodyEvent era → Bool # (/=) ∷ AlonzoBbodyEvent era → AlonzoBbodyEvent era → Bool # | |||||
| type Rep (AlonzoBbodyEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody type Rep (AlonzoBbodyEvent era) = D1 ('MetaData "AlonzoBbodyEvent" "Cardano.Ledger.Alonzo.Rules.Bbody" "cardano-ledger-alonzo-1.16.0.0-inplace" 'True) (C1 ('MetaCons "ShelleyInAlonzoEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyBbodyEvent era)))) | |||||
alonzoBbodyTransition ∷ (STS (EraRule "BBODY" era), Signal (EraRule "BBODY" era) ~ BbodySignal era, InjectRuleFailure "BBODY" AlonzoBbodyPredFailure era, InjectRuleFailure "BBODY" ShelleyBbodyPredFailure era, BaseM (EraRule "BBODY" era) ~ ShelleyBase, State (EraRule "BBODY" era) ~ ShelleyBbodyState era, Environment (EraRule "BBODY" era) ~ BbodyEnv era, Embed (EraRule "LEDGERS" era) (EraRule "BBODY" era), Environment (EraRule "LEDGERS" era) ~ ShelleyLedgersEnv era, State (EraRule "LEDGERS" era) ~ LedgerState era, Signal (EraRule "LEDGERS" era) ~ Seq (Tx 'TopTx era), EraBlockBody era, AlonzoEraTx era) ⇒ TransitionRule (EraRule "BBODY" era) Source #
Arguments
| ∷ (AlonzoEraTx era, InjectRuleFailure "BBODY" AlonzoBbodyPredFailure era) | |
| ⇒ StrictSeq (Tx 'TopTx era) | |
| → ExUnits | Max block exunits protocol parameter. |
| → Rule (EraRule "BBODY" era) 'Transition () |
Validate that total execution units (all transactions) do not exceed block limit. ∑(tx ∈ txs)(totExunits tx) ≤ maxBlockExUnits pp
Instances
| (AlonzoEraTx era, EraGov era, Embed (EraRule "DELEGS" era) (LEDGER era), Embed (EraRule "UTXOW" era) (LEDGER era), Environment (EraRule "UTXOW" era) ~ UtxoEnv era, State (EraRule "UTXOW" era) ~ UTxOState era, Signal (EraRule "UTXOW" era) ~ StAnnTx 'TopTx era, Environment (EraRule "DELEGS" era) ~ DelegsEnv era, State (EraRule "DELEGS" era) ~ CertState era, Signal (EraRule "DELEGS" era) ~ Seq (TxCert era), AtMostEra "Babbage" era, EraRule "LEDGER" era ~ LEDGER era, EraRuleFailure "LEDGER" era ~ ShelleyLedgerPredFailure era, InjectRuleFailure "LEDGER" ShelleyLedgerPredFailure era, EraCertState era) ⇒ STS (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger Associated Types
Methods initialRules ∷ [InitialRule (LEDGER era)] Source # transitionRules ∷ [TransitionRule (LEDGER era)] Source # assertions ∷ [Assertion (LEDGER era)] Source # renderAssertionViolation ∷ AssertionViolation (LEDGER era) → String Source # | |||||||||||||||||||||||||
| (Era era, STS (LEDGER era), PredicateFailure (EraRule "LEDGER" era) ~ ShelleyLedgerPredFailure era, Event (EraRule "LEDGER" era) ~ ShelleyLedgerEvent era) ⇒ Embed (LEDGER era) (LEDGERS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger Methods wrapFailed ∷ PredicateFailure (LEDGER era) → PredicateFailure (LEDGERS era) Source # wrapEvent ∷ Event (LEDGER era) → Event (LEDGERS era) Source # | |||||||||||||||||||||||||
| (Era era, STS (UTXOW era), PredicateFailure (EraRule "UTXOW" era) ~ AlonzoUtxowPredFailure era, Event (EraRule "UTXOW" era) ~ AlonzoUtxowEvent era) ⇒ Embed (UTXOW era) (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger Methods wrapFailed ∷ PredicateFailure (UTXOW era) → PredicateFailure (LEDGER era) Source # | |||||||||||||||||||||||||
| (Era era, STS (DELEGS era), PredicateFailure (EraRule "DELEGS" era) ~ ShelleyDelegsPredFailure era, Event (EraRule "DELEGS" era) ~ ShelleyDelegsEvent era) ⇒ Embed (DELEGS era) (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger Methods wrapFailed ∷ PredicateFailure (DELEGS era) → PredicateFailure (LEDGER era) Source # wrapEvent ∷ Event (DELEGS era) → Event (LEDGER era) Source # | |||||||||||||||||||||||||
| type BaseM (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger | |||||||||||||||||||||||||
| type Environment (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger | |||||||||||||||||||||||||
| type Event (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger | |||||||||||||||||||||||||
| type PredicateFailure (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger | |||||||||||||||||||||||||
| type Signal (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger | |||||||||||||||||||||||||
| type State (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger | |||||||||||||||||||||||||
ledgerTransition ∷ (STS (someLEDGER era), BaseM (someLEDGER era) ~ ShelleyBase, Signal (someLEDGER era) ~ StAnnTx 'TopTx era, State (someLEDGER era) ~ LedgerState era, Environment (someLEDGER era) ~ LedgerEnv era, Embed (EraRule "UTXOW" era) (someLEDGER era), Embed (EraRule "DELEGS" era) (someLEDGER era), Environment (EraRule "DELEGS" era) ~ DelegsEnv era, State (EraRule "DELEGS" era) ~ CertState era, Signal (EraRule "DELEGS" era) ~ Seq (TxCert era), Environment (EraRule "UTXOW" era) ~ UtxoEnv era, State (EraRule "UTXOW" era) ~ UTxOState era, Signal (EraRule "UTXOW" era) ~ StAnnTx 'TopTx era, AlonzoEraTx era, EraCertState era, EraRule "LEDGER" era ~ someLEDGER era, InjectRuleFailure "LEDGER" ShelleyLedgerPredFailure era) ⇒ TransitionRule (someLEDGER era) Source #
An abstract Alonzo Era, Ledger transition. Fix someLedger at a concrete type to
make it concrete.
Instances
| (EraUTxO era, AlonzoEraTx era, Embed (EraRule "UTXOS" era) (UTXO era), Environment (EraRule "UTXOS" era) ~ UtxosEnv era, State (EraRule "UTXOS" era) ~ ShelleyGovState era, Signal (EraRule "UTXOS" era) ~ StAnnTx 'TopTx era, EraRule "UTXO" era ~ UTXO era, InjectRuleFailure "UTXO" ShelleyUtxoPredFailure era, InjectRuleFailure "UTXO" AlonzoUtxoPredFailure era, InjectRuleFailure "UTXO" AllegraUtxoPredFailure era, AtMostEra "Babbage" era, EraCertState era, EraStake era, SafeToHash (TxWits era), GovState era ~ ShelleyGovState era) ⇒ STS (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Associated Types
Methods initialRules ∷ [InitialRule (UTXO era)] Source # transitionRules ∷ [TransitionRule (UTXO era)] Source # assertions ∷ [Assertion (UTXO era)] Source # renderAssertionViolation ∷ AssertionViolation (UTXO era) → String Source # | |||||||||||||||||||||||||
| (Era era, STS (UTXO era), PredicateFailure (EraRule "UTXO" era) ~ AlonzoUtxoPredFailure era, Event (EraRule "UTXO" era) ~ AlonzoUtxoEvent era, BaseM (UTXOW era) ~ ShelleyBase, PredicateFailure (UTXOW era) ~ AlonzoUtxowPredFailure era, Event (UTXOW era) ~ AlonzoUtxowEvent era) ⇒ Embed (UTXO era) (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods wrapFailed ∷ PredicateFailure (UTXO era) → PredicateFailure (UTXOW era) Source # | |||||||||||||||||||||||||
| (Era era, STS (UTXOS era), PredicateFailure (EraRule "UTXOS" era) ~ AlonzoUtxosPredFailure era, Event (EraRule "UTXOS" era) ~ Event (UTXOS era)) ⇒ Embed (UTXOS era) (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods wrapFailed ∷ PredicateFailure (UTXOS era) → PredicateFailure (UTXO era) Source # | |||||||||||||||||||||||||
| type BaseM (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo | |||||||||||||||||||||||||
| type Environment (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo | |||||||||||||||||||||||||
| type Event (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo | |||||||||||||||||||||||||
| type PredicateFailure (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo | |||||||||||||||||||||||||
| type Signal (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo | |||||||||||||||||||||||||
| type State (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo | |||||||||||||||||||||||||
data AlonzoUtxoEvent era Source #
Constructors
| UtxosEvent (Event (EraRule "UTXOS" era)) | |
| TotalDeposits (SafeHash EraIndependentTxBody) Coin | |
| TxUTxODiff | The UTxOs consumed and created by a signal tx |
Instances
| (Era era, NFData (TxOut era), NFData (Event (EraRule "UTXOS" era))) ⇒ NFData (AlonzoUtxoEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods rnf ∷ AlonzoUtxoEvent era → () # | |||||
| Generic (AlonzoUtxoEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Associated Types
Methods from ∷ AlonzoUtxoEvent era → Rep (AlonzoUtxoEvent era) x # to ∷ Rep (AlonzoUtxoEvent era) x → AlonzoUtxoEvent era # | |||||
| (Show (TxOut era), Show (Event (EraRule "UTXOS" era))) ⇒ Show (AlonzoUtxoEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods showsPrec ∷ Int → AlonzoUtxoEvent era → ShowS # show ∷ AlonzoUtxoEvent era → String # showList ∷ [AlonzoUtxoEvent era] → ShowS # | |||||
| (Era era, Eq (TxOut era), Eq (Event (EraRule "UTXOS" era))) ⇒ Eq (AlonzoUtxoEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods (==) ∷ AlonzoUtxoEvent era → AlonzoUtxoEvent era → Bool # (/=) ∷ AlonzoUtxoEvent era → AlonzoUtxoEvent era → Bool # | |||||
| type Rep (AlonzoUtxoEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo type Rep (AlonzoUtxoEvent era) = D1 ('MetaData "AlonzoUtxoEvent" "Cardano.Ledger.Alonzo.Rules.Utxo" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) (C1 ('MetaCons "UtxosEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Event (EraRule "UTXOS" era)))) :+: (C1 ('MetaCons "TotalDeposits" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SafeHash EraIndependentTxBody)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin)) :+: C1 ('MetaCons "TxUTxODiff" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (UTxO era)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (UTxO era))))) | |||||
data AlonzoUtxoPredFailure era Source #
Constructors
| BadInputsUTxO (NonEmptySet TxIn) | The bad transaction inputs |
| OutsideValidityIntervalUTxO | |
Fields
| |
| MaxTxSizeUTxO (Mismatch 'RelLTEQ Word32) | |
| InputSetEmptyUTxO | |
| FeeTooSmallUTxO (Mismatch 'RelGTEQ Coin) | |
| ValueNotConservedUTxO (Mismatch 'RelEQ (Value era)) | |
| WrongNetwork | the set of addresses with incorrect network IDs |
Fields
| |
| WrongNetworkWithdrawal | |
Fields
| |
| OutputTooSmallUTxO (NonEmpty (TxOut era)) | list of supplied transaction outputs that are too small |
| UtxosFailure (PredicateFailure (EraRule "UTXOS" era)) | Subtransition Failures |
| OutputBootAddrAttrsTooBig (NonEmpty (TxOut era)) | list of supplied bad transaction outputs |
| OutputTooBigUTxO (NonEmpty (Int, Int, TxOut era)) | list of supplied bad transaction output triples (actualSize,PParameterMaxValue,TxOut) |
| InsufficientCollateral | |
| ScriptsNotPaidUTxO (NonEmptyMap TxIn (TxOut era)) | The UTxO entries which have the wrong kind of script |
| ExUnitsTooBigUTxO (Mismatch 'RelLTEQ ExUnits) | |
| CollateralContainsNonADA (Value era) | The inputs marked for use as fees contain non-ADA tokens |
| WrongNetworkInTxBody (Mismatch 'RelEQ Network) | Wrong Network ID in body |
| OutsideForecast SlotNo | slot number outside consensus forecast range |
| TooManyCollateralInputs (Mismatch 'RelLTEQ Word16) | There are too many collateral inputs |
| NoCollateralInputs | |
Instances
| InjectRuleFailure "BBODY" AlonzoUtxoPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods injectFailure ∷ AlonzoUtxoPredFailure AlonzoEra → EraRuleFailure "BBODY" AlonzoEra Source # | |||||
| InjectRuleFailure "LEDGER" AlonzoUtxoPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger Methods injectFailure ∷ AlonzoUtxoPredFailure AlonzoEra → EraRuleFailure "LEDGER" AlonzoEra Source # | |||||
| InjectRuleFailure "LEDGERS" AlonzoUtxoPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledgers Methods injectFailure ∷ AlonzoUtxoPredFailure AlonzoEra → EraRuleFailure "LEDGERS" AlonzoEra Source # | |||||
| InjectRuleFailure "UTXO" AlonzoUtxoPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods injectFailure ∷ AlonzoUtxoPredFailure AlonzoEra → EraRuleFailure "UTXO" AlonzoEra Source # | |||||
| InjectRuleFailure "UTXOW" AlonzoUtxoPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods injectFailure ∷ AlonzoUtxoPredFailure AlonzoEra → EraRuleFailure "UTXOW" AlonzoEra Source # | |||||
| (Era era, DecCBOR (TxOut era), DecCBOR (Value era), EncCBOR (Value era), DecCBOR (PredicateFailure (EraRule "UTXOS" era))) ⇒ DecCBOR (AlonzoUtxoPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo | |||||
| (Era era, EncCBOR (TxOut era), EncCBOR (Value era), EncCBOR (PredicateFailure (EraRule "UTXOS" era))) ⇒ EncCBOR (AlonzoUtxoPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods encCBOR ∷ AlonzoUtxoPredFailure era → Encoding Source # | |||||
| (Era era, NFData (Value era), NFData (UTxO era), NFData (PredicateFailure (EraRule "UTXOS" era)), NFData (TxOut era)) ⇒ NFData (AlonzoUtxoPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods rnf ∷ AlonzoUtxoPredFailure era → () # | |||||
| Generic (AlonzoUtxoPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Associated Types
Methods from ∷ AlonzoUtxoPredFailure era → Rep (AlonzoUtxoPredFailure era) x # to ∷ Rep (AlonzoUtxoPredFailure era) x → AlonzoUtxoPredFailure era # | |||||
| (Era era, Show (Value era), Show (TxOut era), Show (TxBody 'TopTx era), Show (PredicateFailure (EraRule "UTXOS" era))) ⇒ Show (AlonzoUtxoPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods showsPrec ∷ Int → AlonzoUtxoPredFailure era → ShowS # show ∷ AlonzoUtxoPredFailure era → String # showList ∷ [AlonzoUtxoPredFailure era] → ShowS # | |||||
| (Era era, Eq (Value era), Eq (TxOut era), Eq (PredicateFailure (EraRule "UTXOS" era))) ⇒ Eq (AlonzoUtxoPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods (==) ∷ AlonzoUtxoPredFailure era → AlonzoUtxoPredFailure era → Bool # (/=) ∷ AlonzoUtxoPredFailure era → AlonzoUtxoPredFailure era → Bool # | |||||
| type Rep (AlonzoUtxoPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo type Rep (AlonzoUtxoPredFailure era) = D1 ('MetaData "AlonzoUtxoPredFailure" "Cardano.Ledger.Alonzo.Rules.Utxo" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) ((((C1 ('MetaCons "BadInputsUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptySet TxIn))) :+: C1 ('MetaCons "OutsideValidityIntervalUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ValidityInterval) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo))) :+: (C1 ('MetaCons "MaxTxSizeUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelLTEQ Word32))) :+: (C1 ('MetaCons "InputSetEmptyUTxO" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "FeeTooSmallUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelGTEQ Coin)))))) :+: ((C1 ('MetaCons "ValueNotConservedUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelEQ (Value era)))) :+: C1 ('MetaCons "WrongNetwork" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Network) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptySet Addr)))) :+: (C1 ('MetaCons "WrongNetworkWithdrawal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Network) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptySet AccountAddress))) :+: (C1 ('MetaCons "OutputTooSmallUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (TxOut era)))) :+: C1 ('MetaCons "UtxosFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PredicateFailure (EraRule "UTXOS" era)))))))) :+: (((C1 ('MetaCons "OutputBootAddrAttrsTooBig" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (TxOut era)))) :+: C1 ('MetaCons "OutputTooBigUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (Int, Int, TxOut era))))) :+: (C1 ('MetaCons "InsufficientCollateral" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DeltaCoin) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Coin)) :+: (C1 ('MetaCons "ScriptsNotPaidUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptyMap TxIn (TxOut era)))) :+: C1 ('MetaCons "ExUnitsTooBigUTxO" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelLTEQ ExUnits)))))) :+: ((C1 ('MetaCons "CollateralContainsNonADA" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Value era))) :+: C1 ('MetaCons "WrongNetworkInTxBody" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelEQ Network)))) :+: (C1 ('MetaCons "OutsideForecast" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo)) :+: (C1 ('MetaCons "TooManyCollateralInputs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelLTEQ Word16))) :+: C1 ('MetaCons "NoCollateralInputs" 'PrefixI 'False) (U1 ∷ Type → Type)))))) | |||||
validateOutputTooBigUTxO ∷ (EraTxOut era, AlonzoEraPParams era, Foldable f) ⇒ PParams era → f (TxOut era) → Test (AlonzoUtxoPredFailure era) Source #
allegraToAlonzoUtxoPredFailure ∷ ∀ (t ∷ Type → Type) era. (EraRuleFailure "PPUP" era ~ t era, InjectRuleFailure "UTXOS" t era) ⇒ AllegraUtxoPredFailure era → AlonzoUtxoPredFailure era Source #
validateCollateralContainsNonADA ∷ (Foldable f, EraTxOut era) ⇒ f (TxOut era) → Test (AlonzoUtxoPredFailure era) Source #
validateExUnitsTooBigUTxO ∷ ∀ era (l ∷ TxLevel). (AlonzoEraTxWits era, EraTx era, AlonzoEraPParams era) ⇒ PParams era → Tx l era → Test (AlonzoUtxoPredFailure era) Source #
Ensure that execution units to not exceed the maximum allowed maxTxExUnits parameter.
totExunits tx ≤ maxTxExUnits pp
validateInsufficientCollateral ∷ (EraTxBody era, AlonzoEraPParams era) ⇒ PParams era → TxBody 'TopTx era → DeltaCoin → Test (AlonzoUtxoPredFailure era) Source #
validateOutsideForecast Source #
Arguments
| ∷ ∀ era a (l ∷ TxLevel). (MaryEraTxBody era, AlonzoEraTxWits era, EraTx era) | |
| ⇒ EpochInfo (Either a) | |
| → SlotNo | Current slot number |
| → SystemStart | |
| → Tx l era | |
| → Test (AlonzoUtxoPredFailure era) |
If tx has non-native scripts, end of validity interval must translate to time
(_,i_f) := txvldt tx
◇ ∉ { txrdmrs tx, i_f } ⇒ epochInfoSlotToUTCTime epochInfo systemTime i_f ≠ ◇validateScriptsNotPaidUTxO ∷ EraTxOut era ⇒ Map TxIn (TxOut era) → Test (AlonzoUtxoPredFailure era) Source #
validateTooManyCollateralInputs ∷ AlonzoEraTxBody era ⇒ PParams era → TxBody 'TopTx era → Test (AlonzoUtxoPredFailure era) Source #
Ensure that number of collaterals does not exceed the allowed maxCollInputs parameter.
‖collateral tx‖ ≤ maxCollInputs pp
validateWrongNetworkInTxBody ∷ ∀ era (l ∷ TxLevel). AlonzoEraTxBody era ⇒ Network → TxBody l era → Test (AlonzoUtxoPredFailure era) Source #
Ensure if NetworkId is present in the txbody it matches the global NetworkId
(txnetworkid txb = NetworkId) ∨ (txnetworkid txb = ◇)
data AlonzoUtxosPredFailure era Source #
Constructors
| ValidationTagMismatch IsValid TagMismatchDescription | The |
| CollectErrors (NonEmpty (CollectError era)) | We could not find all the necessary inputs for a Plutus Script. Previous PredicateFailure tests should make this impossible, but the consequences of not detecting this means scripts get dropped, so things might validate that shouldn't. So we double check in the function collectTwoPhaseScriptInputs, it should find data for every Script. |
| UpdateFailure (EraRuleFailure "PPUP" era) |
Instances
| InjectRuleFailure "BBODY" AlonzoUtxosPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods injectFailure ∷ AlonzoUtxosPredFailure AlonzoEra → EraRuleFailure "BBODY" AlonzoEra Source # | |||||
| InjectRuleFailure "LEDGER" AlonzoUtxosPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger Methods injectFailure ∷ AlonzoUtxosPredFailure AlonzoEra → EraRuleFailure "LEDGER" AlonzoEra Source # | |||||
| InjectRuleFailure "LEDGERS" AlonzoUtxosPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledgers Methods injectFailure ∷ AlonzoUtxosPredFailure AlonzoEra → EraRuleFailure "LEDGERS" AlonzoEra Source # | |||||
| InjectRuleFailure "UTXO" AlonzoUtxosPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods injectFailure ∷ AlonzoUtxosPredFailure AlonzoEra → EraRuleFailure "UTXO" AlonzoEra Source # | |||||
| InjectRuleFailure "UTXOS" AlonzoUtxosPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods injectFailure ∷ AlonzoUtxosPredFailure AlonzoEra → EraRuleFailure "UTXOS" AlonzoEra Source # | |||||
| InjectRuleFailure "UTXOW" AlonzoUtxosPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods injectFailure ∷ AlonzoUtxosPredFailure AlonzoEra → EraRuleFailure "UTXOW" AlonzoEra Source # | |||||
| (EraTxCert era, AlonzoEraScript era, DecCBOR (ContextError era), DecCBOR (EraRuleFailure "PPUP" era)) ⇒ DecCBOR (AlonzoUtxosPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||
| (EraTxCert era, AlonzoEraScript era, EncCBOR (ContextError era), EncCBOR (EraRuleFailure "PPUP" era)) ⇒ EncCBOR (AlonzoUtxosPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods encCBOR ∷ AlonzoUtxosPredFailure era → Encoding Source # | |||||
| (AlonzoEraScript era, NFData (TxCert era), NFData (ContextError era), NFData (UTxOState era), NFData (EraRuleFailure "PPUP" era)) ⇒ NFData (AlonzoUtxosPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods rnf ∷ AlonzoUtxosPredFailure era → () # | |||||
| Generic (AlonzoUtxosPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Associated Types
Methods from ∷ AlonzoUtxosPredFailure era → Rep (AlonzoUtxosPredFailure era) x # to ∷ Rep (AlonzoUtxosPredFailure era) x → AlonzoUtxosPredFailure era # | |||||
| (AlonzoEraScript era, Show (TxCert era), Show (ContextError era), Show (UTxOState era), Show (EraRuleFailure "PPUP" era)) ⇒ Show (AlonzoUtxosPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods showsPrec ∷ Int → AlonzoUtxosPredFailure era → ShowS # show ∷ AlonzoUtxosPredFailure era → String # showList ∷ [AlonzoUtxosPredFailure era] → ShowS # | |||||
| (AlonzoEraScript era, Eq (TxCert era), Eq (ContextError era), Eq (UTxOState era), Eq (EraRuleFailure "PPUP" era)) ⇒ Eq (AlonzoUtxosPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods (==) ∷ AlonzoUtxosPredFailure era → AlonzoUtxosPredFailure era → Bool # (/=) ∷ AlonzoUtxosPredFailure era → AlonzoUtxosPredFailure era → Bool # | |||||
| type Rep (AlonzoUtxosPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos type Rep (AlonzoUtxosPredFailure era) = D1 ('MetaData "AlonzoUtxosPredFailure" "Cardano.Ledger.Alonzo.Rules.Utxos" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) (C1 ('MetaCons "ValidationTagMismatch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IsValid) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TagMismatchDescription)) :+: (C1 ('MetaCons "CollectErrors" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (CollectError era)))) :+: C1 ('MetaCons "UpdateFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (EraRuleFailure "PPUP" era))))) | |||||
Constructors
| UtxosEnv | |
Instances
| Generic (UtxosEnv era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Associated Types
| |||||
| type Rep (UtxosEnv era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos type Rep (UtxosEnv era) = D1 ('MetaData "UtxosEnv" "Cardano.Ledger.Alonzo.Rules.Utxos" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) (C1 ('MetaCons "UtxosEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ueSlot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "uePParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PParams era))) :*: (S1 ('MetaSel ('Just "ueCertState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (CertState era)) :*: S1 ('MetaSel ('Just "ueUtxo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (UTxO era))))) | |||||
Instances
| (AlonzoEraTx era, AlonzoEraPParams era, ShelleyEraTxBody era, AlonzoEraUTxO era, ScriptsNeeded era ~ AlonzoScriptsNeeded era, AlonzoEraScript era, TxCert era ~ ShelleyTxCert era, EraGov era, GovState era ~ ShelleyGovState era, State (EraRule "PPUP" era) ~ ShelleyGovState era, Embed (EraRule "PPUP" era) (UTXOS era), Environment (EraRule "PPUP" era) ~ PpupEnv era, Signal (EraRule "PPUP" era) ~ StrictMaybe (Update era), EncCBOR (PredicateFailure (EraRule "PPUP" era)), Eq (EraRuleFailure "PPUP" era), Show (EraRuleFailure "PPUP" era), EraPlutusContext era, EraCertState era, EraStake era) ⇒ STS (UTXOS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Associated Types
Methods initialRules ∷ [InitialRule (UTXOS era)] Source # transitionRules ∷ [TransitionRule (UTXOS era)] Source # assertions ∷ [Assertion (UTXOS era)] Source # renderAssertionViolation ∷ AssertionViolation (UTXOS era) → String Source # | |||||||||||||||||||||||||
| (Era era, STS (UTXOS era), PredicateFailure (EraRule "UTXOS" era) ~ AlonzoUtxosPredFailure era, Event (EraRule "UTXOS" era) ~ Event (UTXOS era)) ⇒ Embed (UTXOS era) (UTXO era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxo Methods wrapFailed ∷ PredicateFailure (UTXOS era) → PredicateFailure (UTXO era) Source # | |||||||||||||||||||||||||
| (Era era, STS (PPUP era), EraRuleFailure "PPUP" era ~ ShelleyPpupPredFailure era, Event (EraRule "PPUP" era) ~ Event (PPUP era), EraRuleEvent "PPUP" era ~ PpupEvent era) ⇒ Embed (PPUP era) (UTXOS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods wrapFailed ∷ PredicateFailure (PPUP era) → PredicateFailure (UTXOS era) Source # | |||||||||||||||||||||||||
| type BaseM (UTXOS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||||||||||||||||||||||
| type Environment (UTXOS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||||||||||||||||||||||
| type Event (UTXOS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||||||||||||||||||||||
| type PredicateFailure (UTXOS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||||||||||||||||||||||
| type Signal (UTXOS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||||||||||||||||||||||
| type State (UTXOS era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||||||||||||||||||||||
Indicates that this check depends only upon the signal to the transition, not the state or environment.
data TagMismatchDescription Source #
Constructors
| PassedUnexpectedly | |
| FailedUnexpectedly (NonEmpty FailureDescription) |
Instances
| ToJSON TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||
| DecCBOR TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||
| EncCBOR TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods | |||||
| NFData TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods rnf ∷ TagMismatchDescription → () # | |||||
| Generic TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Associated Types
Methods from ∷ TagMismatchDescription → Rep TagMismatchDescription x # to ∷ Rep TagMismatchDescription x → TagMismatchDescription # | |||||
| Show TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods showsPrec ∷ Int → TagMismatchDescription → ShowS # show ∷ TagMismatchDescription → String # showList ∷ [TagMismatchDescription] → ShowS # | |||||
| Eq TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods (==) ∷ TagMismatchDescription → TagMismatchDescription → Bool # (/=) ∷ TagMismatchDescription → TagMismatchDescription → Bool # | |||||
| NoThunks TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||
| type Rep TagMismatchDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos type Rep TagMismatchDescription = D1 ('MetaData "TagMismatchDescription" "Cardano.Ledger.Alonzo.Rules.Utxos" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) (C1 ('MetaCons "PassedUnexpectedly" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "FailedUnexpectedly" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty FailureDescription)))) | |||||
data AlonzoUtxosEvent era Source #
Constructors
| AlonzoPpupToUtxosEvent (EraRuleEvent "PPUP" era) | |
| SuccessfulPlutusScriptsEvent (NonEmpty PlutusWithContext) | |
| FailedPlutusScriptsEvent (NonEmpty PlutusWithContext) |
Instances
| NFData (EraRuleEvent "PPUP" era) ⇒ NFData (AlonzoUtxosEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods rnf ∷ AlonzoUtxosEvent era → () # | |||||
| Generic (AlonzoUtxosEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Associated Types
Methods from ∷ AlonzoUtxosEvent era → Rep (AlonzoUtxosEvent era) x # to ∷ Rep (AlonzoUtxosEvent era) x → AlonzoUtxosEvent era # | |||||
| Eq (EraRuleEvent "PPUP" era) ⇒ Eq (AlonzoUtxosEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods (==) ∷ AlonzoUtxosEvent era → AlonzoUtxosEvent era → Bool # (/=) ∷ AlonzoUtxosEvent era → AlonzoUtxosEvent era → Bool # | |||||
| type Rep (AlonzoUtxosEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos type Rep (AlonzoUtxosEvent era) = D1 ('MetaData "AlonzoUtxosEvent" "Cardano.Ledger.Alonzo.Rules.Utxos" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) (C1 ('MetaCons "AlonzoPpupToUtxosEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (EraRuleEvent "PPUP" era))) :+: (C1 ('MetaCons "SuccessfulPlutusScriptsEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty PlutusWithContext))) :+: C1 ('MetaCons "FailedPlutusScriptsEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty PlutusWithContext))))) | |||||
when2Phase ∷ ∀ sts (ctx ∷ RuleType). Rule sts ctx () → Rule sts ctx () Source #
Construct a 2-phase predicate check.
Note that 2-phase predicate checks are by definition static.
data FailureDescription Source #
Constructors
| PlutusFailure Text ByteString |
Instances
| ToJSON FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods toJSON ∷ FailureDescription → Value Source # toEncoding ∷ FailureDescription → Encoding Source # toJSONList ∷ [FailureDescription] → Value Source # | |||||
| DecCBOR FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||
| EncCBOR FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods | |||||
| NFData FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods rnf ∷ FailureDescription → () # | |||||
| Generic FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Associated Types
Methods | |||||
| Show FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods showsPrec ∷ Int → FailureDescription → ShowS # show ∷ FailureDescription → String # showList ∷ [FailureDescription] → ShowS # | |||||
| Eq FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos Methods | |||||
| NoThunks FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos | |||||
| type Rep FailureDescription Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxos type Rep FailureDescription = D1 ('MetaData "FailureDescription" "Cardano.Ledger.Alonzo.Rules.Utxos" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) (C1 ('MetaCons "PlutusFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |||||
Instances
| (AlonzoEraTx era, EraTxAuxData era, AlonzoEraUTxO era, ShelleyEraTxBody era, ScriptsNeeded era ~ AlonzoScriptsNeeded era, EraRule "UTXOW" era ~ UTXOW era, InjectRuleFailure "UTXOW" ShelleyUtxowPredFailure era, InjectRuleFailure "UTXOW" AlonzoUtxowPredFailure era, Embed (EraRule "UTXO" era) (UTXOW era), Environment (EraRule "UTXO" era) ~ UtxoEnv era, State (EraRule "UTXO" era) ~ UTxOState era, Signal (EraRule "UTXO" era) ~ StAnnTx 'TopTx era, EraCertState era) ⇒ STS (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Associated Types
Methods initialRules ∷ [InitialRule (UTXOW era)] Source # transitionRules ∷ [TransitionRule (UTXOW era)] Source # assertions ∷ [Assertion (UTXOW era)] Source # renderAssertionViolation ∷ AssertionViolation (UTXOW era) → String Source # | |||||||||||||||||||||||||
| (Era era, STS (UTXO era), PredicateFailure (EraRule "UTXO" era) ~ AlonzoUtxoPredFailure era, Event (EraRule "UTXO" era) ~ AlonzoUtxoEvent era, BaseM (UTXOW era) ~ ShelleyBase, PredicateFailure (UTXOW era) ~ AlonzoUtxowPredFailure era, Event (UTXOW era) ~ AlonzoUtxowEvent era) ⇒ Embed (UTXO era) (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods wrapFailed ∷ PredicateFailure (UTXO era) → PredicateFailure (UTXOW era) Source # | |||||||||||||||||||||||||
| (Era era, STS (UTXOW era), PredicateFailure (EraRule "UTXOW" era) ~ AlonzoUtxowPredFailure era, Event (EraRule "UTXOW" era) ~ AlonzoUtxowEvent era) ⇒ Embed (UTXOW era) (LEDGER era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger Methods wrapFailed ∷ PredicateFailure (UTXOW era) → PredicateFailure (LEDGER era) Source # | |||||||||||||||||||||||||
| type BaseM (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow | |||||||||||||||||||||||||
| type Environment (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow | |||||||||||||||||||||||||
| type Event (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow | |||||||||||||||||||||||||
| type PredicateFailure (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow | |||||||||||||||||||||||||
| type Signal (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow | |||||||||||||||||||||||||
| type State (UTXOW era) Source # | |||||||||||||||||||||||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow | |||||||||||||||||||||||||
data AlonzoUtxowPredFailure era Source #
The Predicate failure type in the Alonzo Era. It embeds the Predicate failure type of the Shelley Era, as they share some failure modes.
Constructors
| ShelleyInAlonzoUtxowPredFailure (ShelleyUtxowPredFailure era) | |
| MissingRedeemers (NonEmpty (PlutusPurpose AsItem era, ScriptHash)) | List of scripts for which no redeemers were supplied |
| MissingRequiredDatums | |
Fields
| |
| NotAllowedSupplementalDatums | |
Fields
| |
| PPViewHashesDontMatch (Mismatch 'RelEQ (StrictMaybe ScriptIntegrityHash)) | |
| UnspendableUTxONoDatumHash (NonEmptySet TxIn) | Set of transaction inputs that are TwoPhase scripts, and should have a DataHash but don't |
| ExtraRedeemers (NonEmpty (PlutusPurpose AsIx era)) | List of redeemers not needed |
| ScriptIntegrityHashMismatch (Mismatch 'RelEQ (StrictMaybe ScriptIntegrityHash)) (StrictMaybe ByteString) | The computed script integrity hash does not match the provided script integrity hash |
Instances
| InjectRuleFailure "BBODY" AlonzoUtxowPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Bbody Methods injectFailure ∷ AlonzoUtxowPredFailure AlonzoEra → EraRuleFailure "BBODY" AlonzoEra Source # | |||||
| InjectRuleFailure "LEDGER" AlonzoUtxowPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledger Methods injectFailure ∷ AlonzoUtxowPredFailure AlonzoEra → EraRuleFailure "LEDGER" AlonzoEra Source # | |||||
| InjectRuleFailure "LEDGERS" AlonzoUtxowPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Ledgers Methods injectFailure ∷ AlonzoUtxowPredFailure AlonzoEra → EraRuleFailure "LEDGERS" AlonzoEra Source # | |||||
| InjectRuleFailure "UTXOW" AlonzoUtxowPredFailure AlonzoEra Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods injectFailure ∷ AlonzoUtxowPredFailure AlonzoEra → EraRuleFailure "UTXOW" AlonzoEra Source # | |||||
| (AlonzoEraScript era, DecCBOR (TxCert era), DecCBOR (PredicateFailure (EraRule "UTXO" era)), Typeable (TxAuxData era)) ⇒ DecCBOR (AlonzoUtxowPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow | |||||
| (AlonzoEraScript era, EncCBOR (PredicateFailure (EraRule "UTXO" era))) ⇒ EncCBOR (AlonzoUtxowPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods encCBOR ∷ AlonzoUtxowPredFailure era → Encoding Source # | |||||
| (AlonzoEraScript era, NFData (TxCert era), NFData (PredicateFailure (EraRule "UTXO" era))) ⇒ NFData (AlonzoUtxowPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods rnf ∷ AlonzoUtxowPredFailure era → () # | |||||
| Generic (AlonzoUtxowPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Associated Types
Methods from ∷ AlonzoUtxowPredFailure era → Rep (AlonzoUtxowPredFailure era) x # to ∷ Rep (AlonzoUtxowPredFailure era) x → AlonzoUtxowPredFailure era # | |||||
| (AlonzoEraScript era, Show (TxCert era), Show (PredicateFailure (EraRule "UTXO" era))) ⇒ Show (AlonzoUtxowPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods showsPrec ∷ Int → AlonzoUtxowPredFailure era → ShowS # show ∷ AlonzoUtxowPredFailure era → String # showList ∷ [AlonzoUtxowPredFailure era] → ShowS # | |||||
| (AlonzoEraScript era, Eq (TxCert era), Eq (PredicateFailure (EraRule "UTXO" era))) ⇒ Eq (AlonzoUtxowPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods (==) ∷ AlonzoUtxowPredFailure era → AlonzoUtxowPredFailure era → Bool # (/=) ∷ AlonzoUtxowPredFailure era → AlonzoUtxowPredFailure era → Bool # | |||||
| type Rep (AlonzoUtxowPredFailure era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow type Rep (AlonzoUtxowPredFailure era) = D1 ('MetaData "AlonzoUtxowPredFailure" "Cardano.Ledger.Alonzo.Rules.Utxow" "cardano-ledger-alonzo-1.16.0.0-inplace" 'False) (((C1 ('MetaCons "ShelleyInAlonzoUtxowPredFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyUtxowPredFailure era))) :+: C1 ('MetaCons "MissingRedeemers" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (PlutusPurpose AsItem era, ScriptHash))))) :+: (C1 ('MetaCons "MissingRequiredDatums" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptySet DataHash)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set DataHash))) :+: C1 ('MetaCons "NotAllowedSupplementalDatums" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptySet DataHash)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set DataHash))))) :+: ((C1 ('MetaCons "PPViewHashesDontMatch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelEQ (StrictMaybe ScriptIntegrityHash)))) :+: C1 ('MetaCons "UnspendableUTxONoDatumHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmptySet TxIn)))) :+: (C1 ('MetaCons "ExtraRedeemers" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (PlutusPurpose AsIx era)))) :+: C1 ('MetaCons "ScriptIntegrityHashMismatch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mismatch 'RelEQ (StrictMaybe ScriptIntegrityHash))) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StrictMaybe ByteString)))))) | |||||
newtype AlonzoUtxowEvent era Source #
Constructors
| WrappedShelleyEraEvent (ShelleyUtxowEvent era) |
Instances
| NFData (Event (EraRule "UTXO" era)) ⇒ NFData (AlonzoUtxowEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods rnf ∷ AlonzoUtxowEvent era → () # | |||||
| Generic (AlonzoUtxowEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Associated Types
Methods from ∷ AlonzoUtxowEvent era → Rep (AlonzoUtxowEvent era) x # to ∷ Rep (AlonzoUtxowEvent era) x → AlonzoUtxowEvent era # | |||||
| Eq (Event (EraRule "UTXO" era)) ⇒ Eq (AlonzoUtxowEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow Methods (==) ∷ AlonzoUtxowEvent era → AlonzoUtxowEvent era → Bool # (/=) ∷ AlonzoUtxowEvent era → AlonzoUtxowEvent era → Bool # | |||||
| type Rep (AlonzoUtxowEvent era) Source # | |||||
Defined in Cardano.Ledger.Alonzo.Rules.Utxow type Rep (AlonzoUtxowEvent era) = D1 ('MetaData "AlonzoUtxowEvent" "Cardano.Ledger.Alonzo.Rules.Utxow" "cardano-ledger-alonzo-1.16.0.0-inplace" 'True) (C1 ('MetaCons "WrappedShelleyEraEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ShelleyUtxowEvent era)))) | |||||
hasExactSetOfRedeemers ∷ ∀ era (l ∷ TxLevel). AlonzoEraTx era ⇒ Tx l era → ScriptsProvided era → AlonzoScriptsNeeded era → Test (AlonzoUtxowPredFailure era) Source #
missingRequiredDatums ∷ ∀ era (l ∷ TxLevel). (AlonzoEraTx era, AlonzoEraUTxO era) ⇒ ScriptsProvided era → UTxO era → Tx l era → Test (AlonzoUtxowPredFailure era) Source #
checkScriptIntegrityHash ∷ ∀ era (l ∷ TxLevel). AlonzoEraTx era ⇒ Tx l era → PParams era → StrictMaybe (ScriptIntegrity era) → Test (AlonzoUtxowPredFailure era) Source #