Coin

scalus.cardano.ledger.Coin
See theCoin companion object
final case class Coin(value: Long)

Represents an amount of Cardano's native currency (ADA)

In Cardano, coins are represented as unsigned integers

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def +(other: Coin): Coin

Add another coin amount

Add another coin amount

Attributes

def -(other: Coin): Coin

Subtract another coin amount, returns 0 if the result would be negative

Subtract another coin amount, returns 0 if the result would be negative

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product