TokenAmount

data class TokenAmount(val chainId: String, val asset: AssetRef, val amount: BigInteger)

Amount denominated in the base units of an on-chain asset.

Base units only — never floating point. wei for EVM, microALGO for Algorand, lovelace for Cardano, satoshi for Bitcoin. Display-unit conversion is a presentation concern handled at the UI/DSL layer.

Constructors

Link copied to clipboard
constructor(chainId: String, asset: AssetRef, amount: BigInteger)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
operator fun compareTo(other: TokenAmount): Int
Link copied to clipboard
operator fun minus(other: TokenAmount): TokenAmount
Link copied to clipboard
operator fun plus(other: TokenAmount): TokenAmount
Link copied to clipboard
fun times(scalar: Int): TokenAmount