taler-wallet-cli: subcommand to print sample transactions

This commit is contained in:
Florian Dold 2023-04-13 19:36:04 +02:00
parent 30c01185fc
commit e345e8bd23
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 9 additions and 3 deletions

View File

@ -38,3 +38,4 @@ export * from "./base64.js";
export * from "./merchant-api-types.js";
export * from "./errors.js";
export * from "./iban.js";
export * from "./transaction-test-data.js";

View File

@ -27,18 +27,25 @@ import {
CoreApiResponse,
Duration,
encodeCrock,
ExtendedStatus,
getErrorDetailFromException,
getRandomBytes,
j2s,
Logger,
parsePaytoUri,
PaymentStatus,
PreparePayResultType,
RecoveryMergeStrategy,
RefreshReason,
sampleWalletCoreTransactions,
setDangerousTimetravel,
setGlobalLogLevelFromString,
summarizeTalerErrorDetail,
TalerUriType,
Transaction,
TransactionState,
TransactionSubstate,
TransactionType,
WalletNotification,
} from "@gnu-taler/taler-util";
import { clk } from "@gnu-taler/taler-util/clk";
@ -1134,9 +1141,7 @@ advancedCli
help: "Print sample wallet-core transactions",
})
.action(async (args) => {
let transactions: Transaction[] = [
];
console.log(JSON.stringify(sampleWalletCoreTransactions, undefined, 2));
});
advancedCli