corda / net.corda.finance

Package net.corda.finance

Some simple testing utilities like pre-defined top-level values for common currencies. Mostly useful for writing unit tests in Kotlin.

WARNING: NOT API STABLE.

Extensions for External Classes

java.util.Currency

kotlin.Double

kotlin.Int

kotlin.Long

Properties

CHF

val CHF: Currency

EUR

val EUR: Currency

GBP

val GBP: Currency

JPY

val JPY: Currency

RUB

val RUB: Currency

USD

val USD: Currency

Functions

AMOUNT

fun <T : Any> AMOUNT(amount: Int, token: T): Amount<T>
fun <T : Any> AMOUNT(amount: Long, token: T): Amount<T>
fun <T : Any> AMOUNT(amount: Double, token: T): Amount<T>

DOLLARS

fun DOLLARS(amount: Int): Amount<Currency>
fun DOLLARS(amount: Long): Amount<Currency>
fun DOLLARS(amount: Double): Amount<Currency>

POUNDS

fun POUNDS(amount: Int): Amount<Currency>
fun POUNDS(amount: Long): Amount<Currency>
fun POUNDS(amount: Double): Amount<Currency>

SWISS_FRANCS

fun SWISS_FRANCS(amount: Int): Amount<Currency>
fun SWISS_FRANCS(amount: Long): Amount<Currency>
fun SWISS_FRANCS(amount: Double): Amount<Currency>

issued by

infix fun Amount<Currency>.issued by(deposit: PartyAndReference): Amount<Issued<Currency>>

issuedBy

infix fun Amount<Currency>.issuedBy(deposit: PartyAndReference): Amount<Issued<Currency>>