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
Calculate fee for the execution units given explicit prices.
Calculate fee for the execution units given explicit prices.
Value parameters
-
prices
-
The execution unit prices (price per memory unit and price per CPU step)
Attributes
-
Returns
-
The calculated fee in Coin (lovelace)
Calculate fee for the execution units using protocol parameters from implicit CardanoInfo.
Calculate fee for the execution units using protocol parameters from implicit CardanoInfo.
Value parameters
-
info
-
The CardanoInfo containing protocol parameters with execution unit prices
Attributes
-
Returns
-
The calculated fee in Coin (lovelace)
Formats execution units as JSON string
Formats execution units as JSON string
Attributes
Attributes
-
Inherited from:
-
Product
Attributes
-
Inherited from:
-
Product