[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-typescript-core] branch master updated: wallet-core: return txSta
From: |
Admin |
Subject: |
[taler-typescript-core] branch master updated: wallet-core: return txState when creating deposit group, deprecate depositGroupId |
Date: |
Tue, 03 Jun 2025 14:26:45 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository taler-typescript-core.
The following commit(s) were added to refs/heads/master by this push:
new 2566fb800 wallet-core: return txState when creating deposit group,
deprecate depositGroupId
2566fb800 is described below
commit 2566fb8008d1bac70d210187ba61f2081f8c93a0
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jun 3 14:26:41 2025 +0200
wallet-core: return txState when creating deposit group, deprecate
depositGroupId
---
packages/taler-util/src/types-taler-wallet.ts | 22 ++++++++++++++++++++--
packages/taler-wallet-core/src/deposits.ts | 1 +
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/packages/taler-util/src/types-taler-wallet.ts
b/packages/taler-util/src/types-taler-wallet.ts
index d779643fc..184b23627 100644
--- a/packages/taler-util/src/types-taler-wallet.ts
+++ b/packages/taler-util/src/types-taler-wallet.ts
@@ -56,7 +56,7 @@ import {
TemplateParams,
WithdrawalOperationStatusFlag,
canonicalizeBaseUrl,
- codecForEddsaPrivateKey
+ codecForEddsaPrivateKey,
} from "./index.js";
import { PaytoString, codecForPaytoString } from "./payto.js";
import { QrCodeSpec } from "./qr.js";
@@ -98,6 +98,7 @@ import { BackupRecovery } from "./types-taler-sync.js";
import {
TransactionMajorState,
TransactionMinorState,
+ TransactionState,
TransactionStateWildcard,
} from "./types-taler-wallet-transactions.js";
@@ -2815,9 +2816,26 @@ export const codecForCreateDepositGroupRequest =
.property("testingFixedPriv", codecOptional(codecForString()))
.build("CreateDepositGroupRequest");
+/**
+ * Response to a createDepositGroup request.
+ */
export interface CreateDepositGroupResponse {
- depositGroupId: string;
+ /**
+ * Transaction ID of the newly created deposit transaction.
+ */
transactionId: TransactionIdStr;
+
+ /**
+ * Current state of the new deposit transaction.
+ * Returned as a performance optimization, so that the UI
+ * doesn't have to do a separate getTransactionById.
+ */
+ txState: TransactionState;
+
+ /**
+ * @deprecated 2025-06-03, use transactionId instead.
+ */
+ depositGroupId: string;
}
export interface TxIdResponse {
diff --git a/packages/taler-wallet-core/src/deposits.ts
b/packages/taler-wallet-core/src/deposits.ts
index 904a9d500..e55251187 100644
--- a/packages/taler-wallet-core/src/deposits.ts
+++ b/packages/taler-wallet-core/src/deposits.ts
@@ -2347,6 +2347,7 @@ export async function createDepositGroup(
return {
depositGroupId,
transactionId,
+ txState: newTxState,
};
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-typescript-core] branch master updated: wallet-core: return txState when creating deposit group, deprecate depositGroupId,
Admin <=