io.provenance.explorer.model.base.CoinModels.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of explorer-api-model Show documentation
Show all versions of explorer-api-model Show documentation
API models used by the Provenance Explorer API
The 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()