diff options
Diffstat (limited to 'packages/taler-wallet-cli/src')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 29 |
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); |