From d2752981469f9cfbd874c8df8ee5ad288e5b6130 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Oct 2023 10:51:12 +0200 Subject: -spec name --- design-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 index 7dbbb90a..7126c6c2 100644 --- 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 -- cgit v1.2.3