From 2823b1cdf4b6e9a6c4dbdb752c7c7259775e18f5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 5 Apr 2023 17:38:34 +0200 Subject: wallet-core: towards DD37 for deposits --- packages/taler-wallet-cli/src/index.ts | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) (limited to 'packages/taler-wallet-cli/src/index.ts') 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); -- cgit v1.2.3