Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MachineParams.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Creates default machine parameters for a given Plutus version and protocol version.
Creates default machine parameters for a given Plutus version and protocol version.
Value parameters
- language
-
The plutus version
- protocolVersion
-
The protocol version
Attributes
- Returns
-
The machine parameters
Creates MachineParams from scalus.cardano.ledger.CostModels and scalus.cardano.ledger.Language.
Creates MachineParams from scalus.cardano.ledger.CostModels and scalus.cardano.ledger.Language.
This function configures the Plutus virtual machine with the appropriate cost models and semantic variants based on the protocol version and Plutus language version. This is crucial for accurate script execution cost calculation and validation.
Value parameters
- costModels
-
Cost models for different Plutus versions
- language
-
Plutus language version (V1, V2, or V3)
- protocolVersion
-
Major protocol version for semantic variant selection
Attributes
- Returns
-
Configured MachineParams for script execution
Creates MachineParams from a scalus.cardano.ledger.ProtocolParams and a scalus.cardano.ledger.Language
Creates MachineParams from a scalus.cardano.ledger.ProtocolParams and a scalus.cardano.ledger.Language