BuilderContext

scalus.cardano.txbuilder.BuilderContext
See theBuilderContext companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Create a BuilderContext with a constant max budget evaluator.

Create a BuilderContext with a constant max budget evaluator.

This evaluator uses the maximum transaction execution units defined in the protocol parameters as a constant budget for each script evaluations.

Value parameters

env

The environment containing protocol parameters and configuration

wallet

The wallet to use for transaction building

Attributes

Returns

BuilderContext with a constant max budget evaluator

def withEvaluator(env: Environment, wallet: Wallet, initialBudget: ExUnits = ...): BuilderContext

Create a BuilderContext with an evaluator built from environment parameters.

Create a BuilderContext with an evaluator built from environment parameters.

This is a convenience method that automatically creates an evaluator from the environment's protocol parameters and slot configuration.

Value parameters

env

The environment containing protocol parameters and configuration

initialBudget

The initial execution budget (defaults to ExBudget.enormous)

wallet

The wallet to use for transaction building

Attributes

Returns

BuilderContext with a configured evaluator

Create a BuilderContext with a dummy evaluator.

Create a BuilderContext with a dummy evaluator.

Useful for tests that don't require actual Plutus script evaluation, such as transaction building tests.

Value parameters

env

The environment containing protocol parameters and configuration

wallet

The wallet to use for transaction building

Attributes

Returns

BuilderContext with a no-op evaluator