[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: taler-wallet-cli: subcommand to print sample
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: taler-wallet-cli: subcommand to print sample transactions |
Date: |
Thu, 13 Apr 2023 20:12:55 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit e345e8bd2314ebfc55c2ee7a23fb7849ce79bf84
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Apr 13 19:36:04 2023 +0200
taler-wallet-cli: subcommand to print sample transactions
---
packages/taler-util/src/index.ts | 1 +
packages/taler-wallet-cli/src/index.ts | 11 ++++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/packages/taler-util/src/index.ts b/packages/taler-util/src/index.ts
index 1c882a82b..cfd0f7c47 100644
--- a/packages/taler-util/src/index.ts
+++ b/packages/taler-util/src/index.ts
@@ -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";
diff --git a/packages/taler-wallet-cli/src/index.ts
b/packages/taler-wallet-cli/src/index.ts
index fc67d55cd..fadf84d5c 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -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
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.