ExUnits

scalus.cardano.ledger.ExUnits
See theExUnits companion object
case class ExUnits(memory: Long, steps: Long)

Represents execution units for Plutus scripts in Cardano

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def +(other: ExUnits): ExUnits
def fee(prices: ExUnitPrices): Coin

Calculate fee for the execution units given the prices

Calculate fee for the execution units given the prices

Attributes

def showJson: String

Formats execution units as JSON string

Formats execution units as JSON string

Attributes

Deprecated methods

def cpu: ExCPU

Returns CPU steps (same as steps)

Returns CPU steps (same as steps)

Attributes

Deprecated
[Since version 0.13.0] Use .steps directly

Use .steps directly

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product