diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-10-08 10:51:12 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-10-08 10:51:12 +0200 |
commit | d2752981469f9cfbd874c8df8ee5ad288e5b6130 (patch) | |
tree | 43997d511c1955bdab4bf9a9e4dc09ba1bd6adee /design-documents | |
parent | 30dbbaea6e47d31d81d285db3a0cbd24ece3afd8 (diff) | |
download | docs-d2752981469f9cfbd874c8df8ee5ad288e5b6130.tar.gz docs-d2752981469f9cfbd874c8df8ee5ad288e5b6130.tar.bz2 docs-d2752981469f9cfbd874c8df8ee5ad288e5b6130.zip |
-spec name
Diffstat (limited to 'design-documents')
-rw-r--r-- | design-documents/051-fractional-digits.rst | 10 |
1 files 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 |