taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit d2752981469f9cfbd874c8df8ee5ad288e5b6130
parent 30dbbaea6e47d31d81d285db3a0cbd24ece3afd8
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sun,  8 Oct 2023 10:51:12 +0200

-spec name

Diffstat:
Mdesign-documents/051-fractional-digits.rst | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/design-documents/051-fractional-digits.rst b/design-documents/051-fractional-digits.rst @@ -78,6 +78,8 @@ provisioned by all three services. .. code-block:: swift public struct ScopedCurrencyInfo: Codable, Sendable { + // e.g. “Japanese Yen” or "Bitcoin (Mainnet)" + let name: String // e.g. “.” for $ and ¥; “,” for € let decimal_separator: String // how many digits the user may enter after the decimalSeparator @@ -116,6 +118,7 @@ section. The map could be given directly in JSON. For example: .. code-block:: ini [currency-euro] + ENABLED = TRUE name = "Euro" code = "EUR" decimal_separator = "," @@ -126,6 +129,7 @@ section. The map could be given directly in JSON. For example: alt_unit_names = {0:"€"} [currency-japanese-yen] + ENABLED = TRUE name = "Japanese Yen" code = "JPY" decimal_separator = "." @@ -136,7 +140,8 @@ section. The map could be given directly in JSON. For example: alt_unit_names = {0:"¥"} [currency-bitcoin-mainnet] - name = "Bitcoin-Mainnet" + ENABLED = TRUE + name = "Bitcoin (Mainnet)" code = "BITCOINBTC" decimal_separator = "." num_fractional_input_digits = 8 @@ -146,7 +151,8 @@ section. The map could be given directly in JSON. For example: alt_unit_names = {0:"BTC",-3:"mBTC"} [currency-ethereum] - name = "WAI-ETHER" + ENABLED = TRUE + name = "WAI-ETHER (Ethereum)" code = "EthereumWAI" decimal_separator = "." num_fractional_input_digits = 0