[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: debugging withdrawals
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: debugging withdrawals |
Date: |
Mon, 11 Dec 2023 14:11:36 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 2991888 debugging withdrawals
2991888 is described below
commit 29918880f335aff089a91b52716e24cea1199c9d
Author: MS <ms@taler.net>
AuthorDate: Mon Dec 11 14:10:56 2023 +0100
debugging withdrawals
accepting the reserve public key (also) as CLI parameter
---
netzbon/withdraw.sh | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/netzbon/withdraw.sh b/netzbon/withdraw.sh
index 7daf2a0..850d343 100755
--- a/netzbon/withdraw.sh
+++ b/netzbon/withdraw.sh
@@ -1,16 +1,31 @@
#!/bin/bash
+if test "$1" = "--help" || test "$1" = "-h"; then
+ echo "./withdraw [RESERVE_PUB]"
+ echo
+ echo "Injects one incoming CHF payment into nexus database"
+ echo "in order to trigger a Taler withdrawal. The reserve"
+ echo "pub can be passed either as the first parameter, or"
+ echo "it'll be generated by the CLI wallet. In both cases,"
+ echo "the exchange to withdraw from is \$PROTO://exchange.\$DOMAIN"
+
+ exit 0
+fi
+
+RESERVE_PUB="$1" # maybe passed
set -eu
. config/user.conf # DOMAIN_NAME & CURRENCY
. config/internal.conf # PROTO
NEXUS_CONFIG_FILE=/etc/libeufin/libeufin-nexus.conf
-RESERVE_PUB=$(taler-wallet-cli \
- api 'acceptManualWithdrawal' \
- '{"exchangeBaseUrl":"'${PROTO}'://exchange.'$DOMAIN_NAME'",
- "amount":"'$CURRENCY':5"
- }' | jq -r .result.reservePub)
+if test -z "$RESERVE_PUB"; then
+ RESERVE_PUB=$(taler-wallet-cli \
+ api 'acceptManualWithdrawal' \
+ '{"exchangeBaseUrl":"'${PROTO}'://exchange.'$DOMAIN_NAME'",
+ "amount":"'$CURRENCY':5"
+ }' | jq -r .result.reservePub)
+fi
DEBTOR_IBAN="CH8389144317421994586"
CAMT_054=$(sed \
-e "s/RESERVE_PUB/$RESERVE_PUB/" \
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-deployment] branch master updated: debugging withdrawals,
gnunet <=