BuiltinCostModel

scalus.uplc.eval.BuiltinCostModel
See theBuiltinCostModel 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

def fromInputStream(input: InputStream): BuiltinCostModel

Read a BuiltinCostModel from an input stream of JSON

Read a BuiltinCostModel from an input stream of JSON

Value parameters

input

the input stream

Attributes

Returns

a BuiltinCostModel

def fromJsonString(json: String): BuiltinCostModel

Read a BuiltinCostModel from a string of JSON

Read a BuiltinCostModel from a string of JSON

Value parameters

json

the JSON string

Attributes

Returns

a BuiltinCostModel

Concrete fields

Plutus reference cost model for builtin semantics variant D (PlutusV1/V2 in the van Rossem / PV11 era), vendored from builtinCostModelD.json.

Plutus reference cost model for builtin semantics variant D (PlutusV1/V2 in the van Rossem / PV11 era), vendored from builtinCostModelD.json.

Used as a fallback by MachineParams.fromCostModels when a pre-van-Rossem cost model (which lacks the PV11 builtin parameters) is used for a PV11 evaluation, so that the new builtins are not costed with the 300_000_000 placeholder.

Attributes

Plutus reference cost model for builtin semantics variant E (PlutusV3/V4 in the van Rossem / PV11 era), vendored from builtinCostModelE.json. See vanRossemReferenceD.

Plutus reference cost model for builtin semantics variant E (PlutusV3/V4 in the van Rossem / PV11 era), vendored from builtinCostModelE.json. See vanRossemReferenceD.

Attributes

Givens