plutus-core-1.70.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusCore.Evaluation.Machine.ExMemory

Synopsis

Documentation

newtype ExMemory Source #

Counts size in machine words.

Constructors

ExMemory CostingInteger 

Instances

Instances details
FromJSON ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

ToJSON ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Monoid ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Semigroup ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Bounded ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Generic ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Associated Types

type Rep ExMemory ∷ Type → Type Source #

Num ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Read ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Show ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

ToField ExMemory 
Instance details

Defined in UntypedPlutusCore.Evaluation.Machine.Cek.EmitterMode

Methods

toField ∷ ExMemory → Field

NFData ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

rnf ∷ ExMemory → () Source #

Eq ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Ord ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

NoThunks ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Pretty ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

pretty ∷ ExMemory → Doc ann Source #

prettyList ∷ [ExMemory] → Doc ann Source #

Serialise ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

PrettyBy config ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

prettyBy ∷ config → ExMemory → Doc ann Source #

prettyListBy ∷ config → [ExMemory] → Doc ann Source #

Lift ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

lift ∷ Quote m ⇒ ExMemory → m Exp Source #

liftTyped ∷ ∀ (m ∷ Type → Type). Quote m ⇒ ExMemory → Code m ExMemory Source #

type Rep ExMemory Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

type Rep ExMemory = D1 ('MetaData "ExMemory" "PlutusCore.Evaluation.Machine.ExMemory" "plutus-core-1.70.0.0-inplace" 'True) (C1 ('MetaCons "ExMemory" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CostingInteger)))

newtype ExCPU Source #

Counts CPU units in picoseconds: maximum value for SatInt is 2^63 ps, or appproximately 106 days.

Constructors

ExCPU CostingInteger 

Instances

Instances details
FromJSON ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

ToJSON ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Monoid ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Semigroup ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

(<>) ∷ ExCPU → ExCPU → ExCPU Source #

sconcat ∷ NonEmpty ExCPU → ExCPU Source #

stimes ∷ Integral b ⇒ b → ExCPU → ExCPU Source #

Bounded ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Generic ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Associated Types

type Rep ExCPU ∷ Type → Type Source #

Methods

from ∷ ExCPU → Rep ExCPU x Source #

to ∷ Rep ExCPU x → ExCPU Source #

Num ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Read ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Show ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

ToField ExCPU 
Instance details

Defined in UntypedPlutusCore.Evaluation.Machine.Cek.EmitterMode

Methods

toField ∷ ExCPU → Field

NFData ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

rnf ∷ ExCPU → () Source #

Eq ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

(==) ∷ ExCPU → ExCPU → Bool Source #

(/=) ∷ ExCPU → ExCPU → Bool Source #

Ord ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

compare ∷ ExCPU → ExCPU → Ordering Source #

(<) ∷ ExCPU → ExCPU → Bool Source #

(<=) ∷ ExCPU → ExCPU → Bool Source #

(>) ∷ ExCPU → ExCPU → Bool Source #

(>=) ∷ ExCPU → ExCPU → Bool Source #

max ∷ ExCPU → ExCPU → ExCPU Source #

min ∷ ExCPU → ExCPU → ExCPU Source #

NoThunks ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Pretty ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

pretty ∷ ExCPU → Doc ann Source #

prettyList ∷ [ExCPU] → Doc ann Source #

Serialise ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

PrettyBy config ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

prettyBy ∷ config → ExCPU → Doc ann Source #

prettyListBy ∷ config → [ExCPU] → Doc ann Source #

Lift ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

Methods

lift ∷ Quote m ⇒ ExCPU → m Exp Source #

liftTyped ∷ ∀ (m ∷ Type → Type). Quote m ⇒ ExCPU → Code m ExCPU Source #

type Rep ExCPU Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemory

type Rep ExCPU = D1 ('MetaData "ExCPU" "PlutusCore.Evaluation.Machine.ExMemory" "plutus-core-1.70.0.0-inplace" 'True) (C1 ('MetaCons "ExCPU" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CostingInteger)))

dividedBy ∷ SatInt → Natural → SatInt Source #

Divide a SatInt by a natural number. If the natural number is zero, return maxBound; if we're at the maximum or minimum value then leave the input unaltered. This should never throw.