mirror of
https://github.com/corda/corda.git
synced 2025-03-05 05:19:42 +00:00
Add EUR to the cash app and demobench tool. Authored by Frederic Dalibard.
This commit is contained in:
parent
9e5b469bde
commit
d76c23824e
tools
demobench/src/main/resources
explorer/src/main/kotlin/net/corda/explorer/model
@ -4,4 +4,5 @@ corda.interest_rates
|
|||||||
corda.issuer.USD
|
corda.issuer.USD
|
||||||
corda.issuer.GBP
|
corda.issuer.GBP
|
||||||
corda.issuer.CHF
|
corda.issuer.CHF
|
||||||
|
corda.issuer.EUR
|
||||||
corda.cash
|
corda.cash
|
||||||
|
@ -10,7 +10,7 @@ import net.corda.core.contracts.currency
|
|||||||
import net.corda.core.node.NodeInfo
|
import net.corda.core.node.NodeInfo
|
||||||
import tornadofx.*
|
import tornadofx.*
|
||||||
|
|
||||||
val ISSUER_SERVICE_TYPE = Regex("corda.issuer.(USD|GBP|CHF)")
|
val ISSUER_SERVICE_TYPE = Regex("corda.issuer.(USD|GBP|CHF|EUR)")
|
||||||
|
|
||||||
class IssuerModel {
|
class IssuerModel {
|
||||||
private val networkIdentities by observableList(NetworkIdentityModel::networkIdentities)
|
private val networkIdentities by observableList(NetworkIdentityModel::networkIdentities)
|
||||||
@ -37,4 +37,4 @@ class IssuerModel {
|
|||||||
currency(issuer.info.type.id.substringAfterLast("."))
|
currency(issuer.info.type.id.substringAfterLast("."))
|
||||||
} else
|
} else
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,7 @@ import net.corda.client.jfx.model.ExchangeRate
|
|||||||
import net.corda.client.jfx.model.ExchangeRateModel
|
import net.corda.client.jfx.model.ExchangeRateModel
|
||||||
import net.corda.client.jfx.model.observableValue
|
import net.corda.client.jfx.model.observableValue
|
||||||
import net.corda.client.jfx.utils.AmountBindings
|
import net.corda.client.jfx.utils.AmountBindings
|
||||||
import net.corda.core.contracts.Amount
|
import net.corda.core.contracts.*
|
||||||
import net.corda.core.contracts.CHF
|
|
||||||
import net.corda.core.contracts.GBP
|
|
||||||
import net.corda.core.contracts.USD
|
|
||||||
import org.fxmisc.easybind.EasyBind
|
import org.fxmisc.easybind.EasyBind
|
||||||
import tornadofx.*
|
import tornadofx.*
|
||||||
import java.util.*
|
import java.util.*
|
||||||
@ -16,7 +13,7 @@ import java.util.*
|
|||||||
class ReportingCurrencyModel {
|
class ReportingCurrencyModel {
|
||||||
private val exchangeRate: ObservableValue<ExchangeRate> by observableValue(ExchangeRateModel::exchangeRate)
|
private val exchangeRate: ObservableValue<ExchangeRate> by observableValue(ExchangeRateModel::exchangeRate)
|
||||||
val reportingCurrency by observableValue(SettingsModel::reportingCurrencyProperty)
|
val reportingCurrency by observableValue(SettingsModel::reportingCurrencyProperty)
|
||||||
val supportedCurrencies = setOf(USD, GBP, CHF).toList().observable()
|
val supportedCurrencies = setOf(USD, GBP, CHF, EUR).toList().observable()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This stream provides a stream of exchange() functions that updates when either the reporting currency or the
|
* This stream provides a stream of exchange() functions that updates when either the reporting currency or the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user