aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli/src/index.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-04-05 17:38:34 +0200
committerFlorian Dold <florian@dold.me>2023-04-05 17:38:41 +0200
commit2823b1cdf4b6e9a6c4dbdb752c7c7259775e18f5 (patch)
tree9d6fe1e025f89cea0e044f8bba53f67e7d04a77f /packages/taler-wallet-cli/src/index.ts
parent8eee38d55936c194637ecead302dde69ec0b9897 (diff)
downloadwallet-core-2823b1cdf4b6e9a6c4dbdb752c7c7259775e18f5.tar.xz
wallet-core: towards DD37 for deposits
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r--packages/taler-wallet-cli/src/index.ts29
1 files changed, 11 insertions, 18 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index 93cd5457a..3bdb5d350 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -37,7 +37,6 @@ import {
setDangerousTimetravel,
setGlobalLogLevelFromString,
summarizeTalerErrorDetail,
- TalerProtocolTimestamp,
TalerUriType,
WalletNotification,
} from "@gnu-taler/taler-util";
@@ -928,22 +927,6 @@ depositCli
});
});
-// FIXME: should probably be removed
-depositCli
- .subcommand("trackDepositArgs", "track")
- .requiredArgument("depositGroupId", clk.STRING)
- .action(async (args) => {
- await withWallet(args, async (wallet) => {
- const resp = await wallet.client.call(
- WalletApiOperation.TrackDepositGroup,
- {
- depositGroupId: args.trackDepositArgs.depositGroupId,
- },
- );
- console.log(JSON.stringify(resp, undefined, 2));
- });
- });
-
const peerCli = walletCli.subcommand("peerArgs", "p2p", {
help: "Subcommands for peer-to-peer payments.",
});
@@ -1244,7 +1227,6 @@ advancedCli
await wallet.client.call(WalletApiOperation.RunIntegrationTest, {
amountToSpend: "TESTKUDOS:1",
amountToWithdraw: "TESTKUDOS:3",
- bankBaseUrl: "http://localhost:8082/",
bankAccessApiBaseUrl: "http://localhost:8082/taler-bank-access/",
exchangeBaseUrl: "http://localhost:8081/",
merchantBaseUrl: "http://localhost:8083/",
@@ -1502,6 +1484,17 @@ testCli
});
});
+testCli.subcommand("withdrawKudos", "withdraw-kudos").action(async (args) => {
+ await withWallet(args, async (wallet) => {
+ await wallet.client.call(WalletApiOperation.WithdrawTestBalance, {
+ amount: "KUDOS:50",
+ bankAccessApiBaseUrl:
+ "https://bank.demo.taler.net/demobanks/default/access-api/",
+ exchangeBaseUrl: "https://exchange.demo.taler.net/",
+ });
+ });
+});
+
class PerfTimer {
tStarted: bigint | undefined;
tSum = BigInt(0);