CostModels

scalus.cardano.ledger.CostModels
See theCostModels companion class
object CostModels

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
CostModels.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 fields

lazy val cardanoCliReadWriter: ReadWriter[CostModels]

ReadWriter for Cardano CLI JSON format that uses string keys like "PlutusV1", "PlutusV2", "PlutusV3"

ReadWriter for Cardano CLI JSON format that uses string keys like "PlutusV1", "PlutusV2", "PlutusV3"

lazy on purpose: as a plain val it runs in this object's constructor, so any use of CostModels at all would build the codec and reach upickle's derivation machinery, which keeps upickle in the Scala.js bundle. See docs/internal/JS_BUNDLE_SIZE.md.

Attributes

Givens

Givens

given derived$Codec: Codec[CostModels]

FromData instance for CostModels. Decodes from a map with language IDs as keys and cost lists as values.

FromData instance for CostModels. Decodes from a map with language IDs as keys and cost lists as values.

Attributes

ToData instance for CostModels. Encodes as a map with language IDs as keys and cost lists as values.

ToData instance for CostModels. Encodes as a map with language IDs as keys and cost lists as values.

Attributes