Value

scalus.cardano.ledger.Value
See theValue companion class
object Value

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Value.type

Members list

Type members

Classlikes

object given_CommutativeGroup_Value extends CommutativeGroup[Value]

Attributes

Supertypes
trait CommutativeGroup[Value]
trait CommutativeMonoid[Value]
trait CommutativeSemigroup[Value]
trait Group[Value]
trait Monoid[Value]
trait Semigroup[Value]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
object given_Decoder_Value extends Decoder[Value]

CBOR decoder for Value

CBOR decoder for Value

Attributes

Supertypes
trait Decoder[Value]
class Object
trait Matchable
class Any
Self type
object given_Encoder_Value extends Encoder[Value]

CBOR encoder for Value

CBOR encoder for Value

Attributes

Supertypes
trait Encoder[Value]
class Object
trait Matchable
class Any
Self type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def ada(amount: Long): Value

Create a pure ADA value

Create a pure ADA value

Attributes

def apply(coin: Coin, multiAsset: MultiAsset): Value

Create a Value from coin and multi-asset

Create a Value from coin and multi-asset

Attributes

def asset(policyId: PolicyId, assetName: AssetName, amount: Long): Value

Create a Value with a single asset (no ADA)

Create a Value with a single asset (no ADA)

Attributes

def asset(policyId: PolicyId, assetName: AssetName, amount: Long, lovelace: Coin): Value

Create a Value with a single asset and ADA

Create a Value with a single asset and ADA

Attributes

def assets(assets: Map[PolicyId, Map[AssetName, Long]]): Value

Create a Value from a map of assets (no ADA)

Create a Value from a map of assets (no ADA)

Attributes

def assets(assets: Map[PolicyId, Map[AssetName, Long]], lovelace: Coin): Value

Create a Value from a map of assets with ADA

Create a Value from a map of assets with ADA

Attributes

def combine(values: IterableOnce[Value]): Value

Combine multiple values into one

Combine multiple values into one

Attributes

def combine(values: Value*): Value

Combine multiple values into one (varargs)

Combine multiple values into one (varargs)

Attributes

def fromPolicy(policyId: PolicyId, assets: Map[AssetName, Long]): Value

Create a Value from assets under a single policy

Create a Value from assets under a single policy

Attributes

def fromPolicy(policyId: PolicyId, assets: Map[AssetName, Long], lovelace: Coin): Value

Create a Value from assets under a single policy with ADA

Create a Value from assets under a single policy with ADA

Attributes

def lovelace(amount: Long): Value

Create a pure lovelace value

Create a pure lovelace value

Attributes

Concrete fields

val zero: Value

Zero value (0 ADA, no assets)

Zero value (0 ADA, no assets)

Attributes

Givens

Givens

CBOR decoder for Value

CBOR decoder for Value

Attributes

CBOR encoder for Value

CBOR encoder for Value

Attributes