All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.provenance.explorer.model.base.CoinModels.kt Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package io.provenance.explorer.model.base

import java.math.BigDecimal

data class CoinStr(val amount: String, val denom: String)

data class CoinStrWithPrice(
    val amount: String,
    val denom: String,
    val pricePerToken: CoinStr?,
    val totalBalancePrice: CoinStr?
)

data class CountStrTotal(
    val count: String,
    val total: String?,
    val denom: String
)

fun BigDecimal.stringfy() = this.stripTrailingZeros().toPlainString()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy