| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusCore.Evaluation.Machine.CostModelInterface
Synopsis
- type CostModelParams = Text ToJSON builtincosts, MonadError CostModelApplyError m) => CostModel evaluatorcosts builtincosts -> CostModelParams -> m (CostModel evaluatorcosts builtincosts) #
Update a CostModel for the CEK machine with a given set of parameters. Note that this is costly. See here. Callers are recommended to call this once and cache the results.
data CostModelApplyError #
A fatal error when trying to create a cost given some plain costmodel parameters.
data CostModelApplyWarn #
A non-fatal warning when trying to create a cost given some plain costmodel parameters.
Constructors
| CMTooManyParamsWarn | See Note [Cost model parameters from the ledger's point of view] |
Fields
| |
| CMTooFewParamsWarn | See Note [Cost model parameters from the ledger's point of view] |
Fields
| |