TxEvaluator

scalus.bloxbean.TxEvaluator
See theTxEvaluator companion object
class TxEvaluator(val slotConfig: SlotConfig, val initialBudget: ExUnits, val protocolMajorVersion: Int, val costMdls: CostMdls, val mode: EvaluatorMode = ..., val debugDumpFilesForTesting: Boolean = ...)

Evaluate script costs for a transaction using two phase eval.

Attributes

Note

This is experimental API and subject to change

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def evaluateTx(transaction: Transaction, inputUtxos: Map[TransactionInput, TransactionOutput]): Seq[Redeemer]

Phase 2 validation and execution of the transaction

Phase 2 validation and execution of the transaction

Attributes

def evaluateTx(transaction: Transaction, inputUtxos: Map[TransactionInput, TransactionOutput], datums: Seq[ByteString], txhash: String): Seq[Redeemer]

Phase 2 validation and execution of the transaction

Phase 2 validation and execution of the transaction

Value parameters

datums

- Exact CBOR datums from Transaction Witness Set. This is to compute correct datum hash

Attributes

Returns

(Redeemers, ScriptContext)

def evaluateTxWithContexts(transaction: Transaction, inputUtxos: Map[TransactionInput, TransactionOutput], datums: Seq[ByteString], txhash: String): Seq[(Redeemer, ScriptContext)]

Concrete fields

val costMdls: CostMdls
val mode: EvaluatorMode