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

PlutusCore.Value

Synopsis

Documentation

data Value Source #

The underlying type of the UPLC built-in type Value.

Instances

Instances details
Generic Value Source # 
Instance details

Defined in PlutusCore.Value

Associated Types

type Rep ValueTypeType Source #

Methods

fromValueRep Value x Source #

toRep Value x → Value Source #

Show Value Source # 
Instance details

Defined in PlutusCore.Value

NFData Value Source # 
Instance details

Defined in PlutusCore.Value

Methods

rnfValue → () Source #

Flat Value Source # 
Instance details

Defined in PlutusCore.Flat

Eq Value Source # 
Instance details

Defined in PlutusCore.Value

Methods

(==)ValueValueBool Source #

(/=)ValueValueBool Source #

Hashable Value Source # 
Instance details

Defined in PlutusCore.Value

Methods

hashWithSaltIntValueInt Source #

hashValueInt Source #

ExMemoryUsage Value Source # 
Instance details

Defined in PlutusCore.Evaluation.Machine.ExMemoryUsage

Pretty Value Source # 
Instance details

Defined in PlutusCore.Value

Methods

prettyValueDoc ann Source #

prettyList ∷ [Value] → Doc ann Source #

Serialise Value Source # 
Instance details

Defined in PlutusCore.Value

PrettyBy ConstConfig Value Source # 
Instance details

Defined in PlutusCore.Pretty.PrettyConst

Methods

prettyByConstConfigValueDoc ann Source #

prettyListByConstConfig → [Value] → Doc ann Source #

KnownBuiltinTypeIn DefaultUni term ValueMakeKnownIn DefaultUni term Value Source # 
Instance details

Defined in PlutusCore.Default.Universe

Methods

makeKnownValueBuiltinResult term Source #

KnownBuiltinTypeIn DefaultUni term ValueReadKnownIn DefaultUni term Value Source # 
Instance details

Defined in PlutusCore.Default.Universe

Methods

readKnown ∷ term → ReadKnownM Value Source #

Contains DefaultUni Value Source # 
Instance details

Defined in PlutusCore.Default.Universe

KnownBuiltinTypeAst tyname DefaultUni ValueKnownTypeAst tyname DefaultUni Value Source # 
Instance details

Defined in PlutusCore.Default.Universe

Methods

typeAstType tyname DefaultUni () Source #

type Rep Value Source # 
Instance details

Defined in PlutusCore.Value

type IsBuiltin DefaultUni Value Source # 
Instance details

Defined in PlutusCore.Default.Universe

type ToBinds DefaultUni acc Value Source # 
Instance details

Defined in PlutusCore.Default.Universe

type ToHoles DefaultUni hole Value Source # 
Instance details

Defined in PlutusCore.Default.Universe

unpackValueNestedMap Source #

Unpack a Value into a map from (currency symbol, token name) to amount.

The map is guaranteed to not contain empty inner map or zero amount.

packNestedMapValue Source #

Pack a map from (currency symbol, token name) to amount into a Value.

The map will be filtered so that it does not contain empty inner map or zero amount.

totalSizeValueInt Source #

Total size, i.e., the number of distinct `(currency symbol, token name)` pairs contained in the Value.

maxInnerSizeValueInt Source #

Size of the largest inner map.