From 915a019d39f3b70763d45dc1dca2527f77ab07f8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 4 Dec 2023 21:10:50 +0100 Subject: local changes --- sandcastle-ng/scripts/demo/setup-sandcastle.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/sandcastle-ng/scripts/demo/setup-sandcastle.sh b/sandcastle-ng/scripts/demo/setup-sandcastle.sh index d3794d0..29e3525 100755 --- a/sandcastle-ng/scripts/demo/setup-sandcastle.sh +++ b/sandcastle-ng/scripts/demo/setup-sandcastle.sh @@ -26,6 +26,10 @@ EXCHANGE_PLAIN_PAYTO=payto://iban/$EXCHANGE_IBAN EXCHANGE_FULL_PAYTO="payto://iban/$EXCHANGE_IBAN?receiver-name=Sandcastle+Echange+Inc" EXCHANGE_BANK_PASSWORD=sandbox +CONVERSION_IBAN=DE660767482763 +CONVERSION_PLAIN_PAYTO=payto://iban/$CONVERSION_IBAN +CONVERSION_FULL_PAYTO="payto://iban/$CONVERSION_IBAN?receiver-name=Converter" + # Randomly generated IBANs for the merchants MERCHANT_IBAN_DEFAULT=DE5135717 MERCHANT_IBAN_POS=DE4218710 @@ -186,6 +190,9 @@ REGISTRATION_BONUS_ENABLED = yes SPA_CAPTCHA_URL = https://$BANK_DOMAIN/webui/#/operation/{woid} SUGGESTED_WITHDRAWAL_EXCHANGE = https://$EXCHANGE_DOMAIN/ +ALLOW_CONVERSION = yes +FIAT_CURRENCY = EXTCURR + [currency-$CURRENCY] ENABLED = YES name = "$CURRENCY (Taler Demonstrator)" @@ -196,6 +203,17 @@ fractional_normal_digits = 2 fractional_trailing_zero_digits = 2 is_currency_name_leading = NO alt_unit_names = {"0":"$CURRENCY"} + +[currency-EXTCURR] +ENABLED = YES +name = "EXTCURR (Taler Demonstrator)" +code = "EXTCURR" +decimal_separator = "." +fractional_input_digits = 2 +fractional_normal_digits = 2 +fractional_trailing_zero_digits = 2 +is_currency_name_leading = NO +alt_unit_names = {"0":"EXTCURR"} EOF cat </etc/libeufin-bank/demobank-ui-settings.js @@ -390,6 +408,13 @@ sudo -i -u taler-exchange-offline \ global-fee now "${CURRENCY}":0 "${CURRENCY}":0 "${CURRENCY}":0 1h 6a 0 \ upload +sudo -i -u taler-exchange-offline \ + taler-exchange-offline \ + enable-account "${CONVERSION_FULL_PAYTO}" conversion-url "https://$BANK_DOMAIN/conversion-info/" \ + wire-fee now iban "${CURRENCY}":0 "${CURRENCY}":0 \ + global-fee now "${CURRENCY}":0 "${CURRENCY}":0 "${CURRENCY}":0 1h 6a 0 \ + upload + # Set up merchant backend MERCHANT_DB=talermerchant -- cgit v1.2.3