module PlutusLedgerApi.V1 (
Common.SerialisedScript,
Common.ScriptForEvaluation,
Common.serialisedScript,
Common.deserialisedScript,
Common.serialiseCompiledCode,
Common.serialiseUPLC,
deserialiseScript,
Common.uncheckedDeserialiseUPLC,
evaluateScriptRestricting,
evaluateScriptCounting,
Common.MajorProtocolVersion (..),
Common.VerboseMode (..),
Common.LogOutput,
Common.ExBudget (..),
Common.ExCPU (..),
Common.ExMemory (..),
Common.SatInt (unSatInt),
Common.fromSatInt,
EvaluationContext.EvaluationContext,
EvaluationContext.mkEvaluationContext,
ParamName.ParamName (..),
EvaluationContext.CostModelApplyError (..),
EvaluationContext.CostModelParams,
EvaluationContext.assertWellFormedCostModelParams,
Contexts.ScriptContext (..),
Contexts.ScriptPurpose (..),
Common.BuiltinByteString,
Common.toBuiltin,
Common.fromBuiltin,
Common.toOpaque,
Common.fromOpaque,
Bytes.LedgerBytes (..),
Bytes.fromBytes,
DCert.DCert (..),
Credential.StakingCredential (..),
Credential.Credential (..),
Value.Value (..),
Value.CurrencySymbol (..),
Value.TokenName (..),
Value.singleton,
Value.unionWith,
Value.adaSymbol,
Value.adaToken,
Value.Lovelace (..),
Time.POSIXTime (..),
Time.POSIXTimeRange,
Address.Address (..),
Crypto.PubKeyHash (..),
Contexts.TxId (..),
Contexts.TxInfo (..),
Contexts.TxOut (..),
Contexts.TxOutRef (..),
Contexts.TxInInfo (..),
Interval.Interval (..),
Interval.Extended (..),
Interval.Closure,
Interval.UpperBound (..),
Interval.LowerBound (..),
Interval.always,
Interval.from,
Interval.to,
Interval.lowerBound,
Interval.upperBound,
Interval.strictLowerBound,
Interval.strictUpperBound,
ScriptHash (..),
Redeemer (..),
RedeemerHash (..),
Datum (..),
DatumHash (..),
Common.Data (..),
Common.BuiltinData (..),
Common.ToData (..),
Common.FromData (..),
Common.UnsafeFromData (..),
Common.toData,
Common.fromData,
Common.unsafeFromData,
Common.dataToBuiltinData,
Common.builtinDataToData,
Common.MonadError,
Common.EvaluationError (..),
Common.ScriptDecodeError (..),
) where
import PlutusLedgerApi.Common qualified as Common
import PlutusLedgerApi.V1.Address qualified as Address
import PlutusLedgerApi.V1.Bytes qualified as Bytes
import PlutusLedgerApi.V1.Contexts qualified as Contexts
import PlutusLedgerApi.V1.Credential qualified as Credential
import PlutusLedgerApi.V1.Crypto qualified as Crypto
import PlutusLedgerApi.V1.DCert qualified as DCert
import PlutusLedgerApi.V1.EvaluationContext qualified as EvaluationContext
import PlutusLedgerApi.V1.Interval qualified as Interval
import PlutusLedgerApi.V1.ParamName qualified as ParamName
import PlutusLedgerApi.V1.Scripts as Scripts
import PlutusLedgerApi.V1.Time qualified as Time
import PlutusLedgerApi.V1.Value qualified as Value
thisLedgerLanguage :: Common.PlutusLedgerLanguage
thisLedgerLanguage :: PlutusLedgerLanguage
thisLedgerLanguage = PlutusLedgerLanguage
Common.PlutusV1
deserialiseScript ::
forall m.
(Common.MonadError Common.ScriptDecodeError m) =>
Common.MajorProtocolVersion ->
Common.SerialisedScript ->
m Common.ScriptForEvaluation
deserialiseScript :: forall (m :: * -> *).
MonadError ScriptDecodeError m =>
MajorProtocolVersion -> SerialisedScript -> m ScriptForEvaluation
deserialiseScript = PlutusLedgerLanguage
-> MajorProtocolVersion
-> SerialisedScript
-> m ScriptForEvaluation
forall (m :: * -> *).
MonadError ScriptDecodeError m =>
PlutusLedgerLanguage
-> MajorProtocolVersion
-> SerialisedScript
-> m ScriptForEvaluation
Common.deserialiseScript PlutusLedgerLanguage
thisLedgerLanguage
evaluateScriptCounting ::
Common.MajorProtocolVersion ->
Common.VerboseMode ->
EvaluationContext.EvaluationContext ->
Common.ScriptForEvaluation ->
[Common.Data] ->
(Common.LogOutput, Either Common.EvaluationError Common.ExBudget)
evaluateScriptCounting :: MajorProtocolVersion
-> VerboseMode
-> EvaluationContext
-> ScriptForEvaluation
-> [Data]
-> (LogOutput, Either EvaluationError ExBudget)
evaluateScriptCounting = PlutusLedgerLanguage
-> MajorProtocolVersion
-> VerboseMode
-> EvaluationContext
-> ScriptForEvaluation
-> [Data]
-> (LogOutput, Either EvaluationError ExBudget)
Common.evaluateScriptCounting PlutusLedgerLanguage
thisLedgerLanguage
evaluateScriptRestricting ::
Common.MajorProtocolVersion ->
Common.VerboseMode ->
EvaluationContext.EvaluationContext ->
Common.ExBudget ->
Common.ScriptForEvaluation ->
[Common.Data] ->
(Common.LogOutput, Either Common.EvaluationError Common.ExBudget)
evaluateScriptRestricting :: MajorProtocolVersion
-> VerboseMode
-> EvaluationContext
-> ExBudget
-> ScriptForEvaluation
-> [Data]
-> (LogOutput, Either EvaluationError ExBudget)
evaluateScriptRestricting = PlutusLedgerLanguage
-> MajorProtocolVersion
-> VerboseMode
-> EvaluationContext
-> ExBudget
-> ScriptForEvaluation
-> [Data]
-> (LogOutput, Either EvaluationError ExBudget)
Common.evaluateScriptRestricting PlutusLedgerLanguage
thisLedgerLanguage