[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: ini examples
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: ini examples |
Date: |
Thu, 05 Oct 2023 21:02:09 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new 710b19dd ini examples
710b19dd is described below
commit 710b19dd32f9196bea3d78b165e2de21b7bf0cbe
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Thu Oct 5 21:02:05 2023 +0200
ini examples
---
design-documents/051-fractional-digits.rst | 49 ++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/design-documents/051-fractional-digits.rst
b/design-documents/051-fractional-digits.rst
index fb803567..64d606ea 100644
--- a/design-documents/051-fractional-digits.rst
+++ b/design-documents/051-fractional-digits.rst
@@ -106,6 +106,55 @@ to the alternative unit name, alas the
"num_fractional_input_digits" would
always apply to the unit currency and may need to be adjusted if amounts
are input using an alternative unit name.
+Configuration syntax
+--------------------
+
+Each currency should be specified in its own subsystem-independent
+currency, with the section name prefixed with "currency-". In that
+section. The map could be given directly in JSON. For example:
+
+ .. code-block:: ini
+
+ [currency-euro]
+ name = "Euro"
+ code = "EUR"
+ decimal_separator = ","
+ num_fractional_input_digits = 2
+ num_fractional_normal_digits = 2
+ num_fractional_trailing_zero_digits = 2
+ is_currency_name_leading = NO
+ alt_unit_names = {0:"€"}
+
+ [currency-japanese-yen]
+ name = "Japanese Yen"
+ code = "JPY"
+ decimal_separator = "."
+ num_fractional_input_digits = 2
+ num_fractional_normal_digits = 0
+ num_fractional_trailing_zero_digits = 2
+ is_currency_name_leading = YES
+ alt_unit_names = {0:"¥"}
+
+ [currency-bitcoin-mainnet]
+ name = "Bitcoin-Mainnet"
+ code = "BITCOINBTC"
+ decimal_separator = "."
+ num_fractional_input_digits = 8
+ num_fractional_normal_digits = 3
+ num_fractional_trailing_zero_digits = 0
+ is_currency_name_leading = NO
+ alt_unit_names = {0:"BTC",-3:"mBTC"}
+
+ [currency-ethereum]
+ name = "WAI-ETHER"
+ code = "EthereumWAI"
+ decimal_separator = "."
+ num_fractional_input_digits = 0
+ num_fractional_normal_digits = 0
+ num_fractional_trailing_zero_digits = 0
+ is_currency_name_leading = NO
+ alt_unit_names =
{0:"WAI",3:"KWAI",6:"MWAI",9:"GWAI",12:"Szabo",15:"Finney",18:"Ether",21:"KEther",24:"MEther"}
+
Implementation considerations
-----------------------------
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: ini examples,
gnunet <=