exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 5200133f5e8def77885fc599db60d3636e8e6744
parent 55a58502523087aae9452011c24f2fc0c8651b37
Author: Florian Dold <florian@dold.me>
Date:   Mon, 15 Jul 2024 17:29:59 +0200

fakebank: return currency_spec in corebank API as per spec

Diffstat:
Msrc/bank-lib/fakebank_bank.c | 22+++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/src/bank-lib/fakebank_bank.c b/src/bank-lib/fakebank_bank.c @@ -72,11 +72,31 @@ TALER_FAKEBANK_bank_main_ ( connection, MHD_HTTP_OK, GNUNET_JSON_pack_string ("version", - "4:0:4"), /* not sure, API versions are not properly marked up! */ + "4:1:4"), /* not sure, API versions are not properly marked up! */ GNUNET_JSON_pack_string ("currency", h->currency), GNUNET_JSON_pack_string ("implementation", "urn:net:taler:specs:bank:fakebank"), + GNUNET_JSON_pack_object_steal ( + "currency_specification", + GNUNET_JSON_PACK ( + GNUNET_JSON_pack_string ("name", + h->currency), + GNUNET_JSON_pack_string ("currency", + h->currency), + GNUNET_JSON_pack_uint64 ("num_fractional_input_digits", + 2), + GNUNET_JSON_pack_uint64 ("num_fractional_normal_digits", + 2), + GNUNET_JSON_pack_uint64 ("num_fractional_trailing_zero_digits", + 2), + GNUNET_JSON_pack_object_steal ( + "alt_unit_names", + GNUNET_JSON_PACK ( + GNUNET_JSON_pack_string ("0", + h->currency))), + GNUNET_JSON_pack_string ("name", + h->currency))), GNUNET_JSON_pack_string ("name", "taler-corebank")); }