Creates a new coin. Depending on the type of amount, it will be converted to an integer coin or decimal coin.
denomination
coin's amount
Divides the current value with an amount.
Checks whether the Coin is a Decimal coin.
Checks whether the Coin is an Integer coin.
Modulo the current value with an amount.
Multiplies the current value with an amount.
Turns the Coin into a Decimal coin.
Turns the Coin into an Integer coin with ceiling the amount.
Turns the Coin into an Integer coin.
Outputs <amount><denom>
.
Eg: Coin('uluna', 1500) -> 1500uluna
Captures
sdk.Coin
andsdk.DecCoin
from Cosmos SDK. A composite value that combines a denomination with an amount value. Coins are immutable once created, and operations that return Coin will return a new Coin. See Coins for a collection of Coin objects.