aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-04-06 12:47:34 +0200
committerFlorian Dold <florian@dold.me>2023-04-06 12:47:34 +0200
commit43ae414a55b84b1125c5e4377c6d485ca6c748e2 (patch)
tree3e2f9ffc272406aa25327f19b9006d020f070658 /packages/taler-util
parent3cf6d15eae299576eada8b501e5848ef29dad03c (diff)
-re-add missing fields, fix types
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/notifications.ts14
-rw-r--r--packages/taler-util/src/wallet-types.ts1
2 files changed, 14 insertions, 1 deletions
diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts
index 0d85c85e9..ff1017cd1 100644
--- a/packages/taler-util/src/notifications.ts
+++ b/packages/taler-util/src/notifications.ts
@@ -22,6 +22,7 @@
/**
* Imports.
*/
+import { TransactionState, TransactionSubstate } from "./transactions-types.js";
import { TalerErrorDetail } from "./wallet-types.js";
export enum NotificationType {
@@ -67,6 +68,16 @@ export enum NotificationType {
WithdrawalGroupReserveReady = "withdrawal-group-reserve-ready",
PeerPullCreditReady = "peer-pull-credit-ready",
DepositOperationError = "deposit-operation-error",
+ TransactionStateTransition = "transaction-state-transition",
+}
+
+export interface TransactionStateTransitionNotification {
+ type: NotificationType.TransactionStateTransition;
+ transactionId: string;
+ oldTxState: TransactionState;
+ oldTxSubstate: TransactionSubstate;
+ newTxState: TransactionState;
+ newTxSubstate: TransactionSubstate;
}
export interface ProposalAcceptedNotification {
@@ -327,4 +338,5 @@ export type WalletNotification =
| KycRequestedNotification
| WithdrawalGroupBankConfirmed
| WithdrawalGroupReserveReadyNotification
- | PeerPullCreditReadyNotification;
+ | PeerPullCreditReadyNotification
+ | TransactionStateTransitionNotification;
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index dea6bd361..c75ca7fdd 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -1722,6 +1722,7 @@ export const codecForPrepareDepositRequest = (): Codec<PrepareDepositRequest> =>
export interface PrepareDepositResponse {
totalDepositCost: AmountString;
effectiveDepositAmount: AmountString;
+ fees: DepositGroupFees;
}
export const codecForCreateDepositGroupRequest =