cardano-ledger-alonzo-0.1.0.0: Cardano ledger introducing Plutus Core
Safe Haskell None
Language Haskell2010

Cardano.Ledger.Alonzo.Rules.Utxos

Synopsis

Documentation

data UTXOS era Source #

Instances

Instances details
( Era era, ConcreteAlonzo era, ExtendedUTxO era, Embed ( EraRule "PPUP" era) ( UTXOS era), Environment ( EraRule "PPUP" era) ~ PPUPEnv era, State ( EraRule "PPUP" era) ~ PPUPState era, Signal ( EraRule "PPUP" era) ~ Maybe ( Update era), ValidateScript era, ToCBOR ( PredicateFailure ( EraRule "PPUP" era))) => STS ( UTXOS era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

( Era era, STS ( PPUP era), PredicateFailure ( EraRule "PPUP" era) ~ PpupPredicateFailure era, Event ( EraRule "PPUP" era) ~ Event ( PPUP era)) => Embed ( PPUP era) ( UTXOS era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

( Era era, STS ( UTXOS era), PredicateFailure ( EraRule "UTXOS" era) ~ UtxosPredicateFailure era, Event ( EraRule "UTXOS" era) ~ Event ( UTXOS era)) => Embed ( UTXOS era) ( AlonzoUTXO era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxo

type State ( UTXOS era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

type Event ( UTXOS era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

type PredicateFailure ( UTXOS era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

type BaseM ( UTXOS era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

type Environment ( UTXOS era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

type Signal ( UTXOS era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

data UtxosPredicateFailure era Source #

Constructors

ValidationTagMismatch IsValid TagMismatchDescription

The isValid tag on the transaction is incorrect. The tag given here is that provided on the transaction (whereas evaluation of the scripts gives the opposite.). The Text tries to explain why it failed.

CollectErrors [ CollectError ( Crypto 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 ( PredicateFailure ( EraRule "PPUP" era))

Instances

Instances details
( Eq ( UTxOState era), Eq ( PredicateFailure ( EraRule "PPUP" era))) => Eq ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

( Show ( UTxOState era), Show ( PredicateFailure ( EraRule "PPUP" era))) => Show ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

Generic ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

( Era era, ToCBOR ( PredicateFailure ( EraRule "PPUP" era)), Show ( TxOut era)) => ToCBOR ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

( Era era, FromCBOR ( PredicateFailure ( EraRule "PPUP" era))) => FromCBOR ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

( NoThunks ( UTxOState era), NoThunks ( PredicateFailure ( EraRule "PPUP" era))) => NoThunks ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

PredicateFailure ( EraRule "PPUP" era) ~ PpupPredicateFailure era => Inject ( PpupPredicateFailure era) ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

Inject ( UtxosPredicateFailure era) ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

PredicateFailure ( EraRule "UTXOS" era) ~ UtxosPredicateFailure era => Inject ( UtxosPredicateFailure era) ( UtxoPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxo

type Rep ( UtxosPredicateFailure era) Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

lbl2Phase :: Label Source #

Indicates that this check depends only upon the signal to the transition, not the state or environment.

data TagMismatchDescription Source #

Instances

Instances details
Eq TagMismatchDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

Show TagMismatchDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

Generic TagMismatchDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

ToCBOR TagMismatchDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

FromCBOR TagMismatchDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

NoThunks TagMismatchDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

type Rep TagMismatchDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

type Rep TagMismatchDescription = D1 (' MetaData "TagMismatchDescription" "Cardano.Ledger.Alonzo.Rules.Utxos" "cardano-ledger-alonzo-0.1.0.0-xW3meaGVQP43dxJ76zbGD" ' 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 ))))

when2Phase :: 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 #

Instances

Instances details
Eq FailureDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

Show FailureDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

Generic FailureDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

ToCBOR FailureDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

FromCBOR FailureDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

NoThunks FailureDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos

type Rep FailureDescription Source #
Instance details

Defined in Cardano.Ledger.Alonzo.Rules.Utxos