Factory

object Factory(source)

A Currency factory.

Functions

Link copied to clipboard

Creates a CirculatingCurrency for a standardized circulating currency.

Link copied to clipboard
infix fun crypto(code: String): CryptoCurrency

Creates a CryptoCurrency for a standardized cryptocurrency.

Link copied to clipboard
fun custom(code: String, minorUnits: Int): CustomCurrency
fun custom(    code: String,     minorUnits: Int,     config: CustomCurrency.CustomCurrencyConfig.() -> Unit): CustomCurrency

Creates a CustomCurrency.

Link copied to clipboard
infix fun of(code: String): StandardizedCurrency

Creates a StandardizedCurrency for a standardized circulating currency or cryptocurrency.