plutus-ledger-api-1.39.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusLedgerApi.Test.EvaluationEvent

Synopsis

Documentation

data ScriptEvaluationEvents Source #

This type contains a list of on-chain script evaluation events. All PlutusV1 evaluations (if any) share the same cost parameters. Same with PlutusV2.

Sharing the cost parameters lets us avoid creating a new EvaluationContext for each ScriptEvaluationEvent.

Constructors

ScriptEvaluationEvents 

Fields

data ScriptEvaluationEvent Source #

Information about an on-chain script evaluation event, specifically the information needed to evaluate the script, and the expected result.

Instances

Instances details
Generic ScriptEvaluationEvent Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Associated Types

type Rep ScriptEvaluationEventTypeType Source #

Show ScriptEvaluationEvent Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Pretty ScriptEvaluationEvent Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Serialise ScriptEvaluationEvent Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

type Rep ScriptEvaluationEvent Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

type Rep ScriptEvaluationEvent = D1 ('MetaData "ScriptEvaluationEvent" "PlutusLedgerApi.Test.EvaluationEvent" "plutus-ledger-api-1.39.0.0-inplace-plutus-ledger-api-testlib" 'False) (C1 ('MetaCons "PlutusEvent" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlutusLedgerLanguage) :*: (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptEvaluationData) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptEvaluationResult))))

data ScriptEvaluationData Source #

All the data needed to evaluate a script using the ledger API, except for the cost model parameters, as these are tracked separately.

Instances

Instances details
Generic ScriptEvaluationData Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Associated Types

type Rep ScriptEvaluationDataTypeType Source #

Show ScriptEvaluationData Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Pretty ScriptEvaluationData Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Serialise ScriptEvaluationData Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

type Rep ScriptEvaluationData Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

type Rep ScriptEvaluationData = D1 ('MetaData "ScriptEvaluationData" "PlutusLedgerApi.Test.EvaluationEvent" "plutus-ledger-api-1.39.0.0-inplace-plutus-ledger-api-testlib" 'False) (C1 ('MetaCons "ScriptEvaluationData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dataProtocolVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MajorProtocolVersion) :*: S1 ('MetaSel ('Just "dataBudget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExBudget)) :*: (S1 ('MetaSel ('Just "dataScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SerialisedScript) :*: S1 ('MetaSel ('Just "dataInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Data]))))

data ScriptEvaluationResult Source #

Instances

Instances details
Generic ScriptEvaluationResult Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Associated Types

type Rep ScriptEvaluationResultTypeType Source #

Show ScriptEvaluationResult Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Pretty ScriptEvaluationResult Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

Serialise ScriptEvaluationResult Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

type Rep ScriptEvaluationResult Source # 
Instance details

Defined in PlutusLedgerApi.Test.EvaluationEvent

type Rep ScriptEvaluationResult = D1 ('MetaData "ScriptEvaluationResult" "PlutusLedgerApi.Test.EvaluationEvent" "plutus-ledger-api-1.39.0.0-inplace-plutus-ledger-api-testlib" 'False) (C1 ('MetaCons "ScriptEvaluationSuccess" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "ScriptEvaluationFailure" 'PrefixI 'False) (U1TypeType))

checkEvaluationEvent Source #

Re-evaluate an on-chain script evaluation event.