data class Commodity
Class representing a commodity, as an equivalent to the Currency class. This exists purely to enable the CommodityContract contract, and is likely to change in future.
commodityCode
- a unique code for the commodity. No specific registry for these is currently defined, although
this is likely to change in future.displayName
- human readable name for the commodity.defaultFractionDigits
- the number of digits normally after the decimal point when referring to quantities of
this commodity.<init> |
Commodity(commodityCode: String, displayName: String, defaultFractionDigits: Int = 0) Class representing a commodity, as an equivalent to the Currency class. This exists purely to enable the CommodityContract contract, and is likely to change in future. |
commodityCode |
val commodityCode: String |
defaultFractionDigits |
val defaultFractionDigits: Int |
displayName |
val displayName: String |
getInstance |
fun getInstance(commodityCode: String): Commodity? |
issued by |
infix fun Commodity.issued by(deposit: PartyAndReference): Issued<Commodity> |
issuedBy |
infix fun Commodity.issuedBy(deposit: PartyAndReference): Issued<Commodity> |