summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet-api-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-07-01 01:43:29 +0200
committerFlorian Dold <florian@dold.me>2023-07-01 01:43:29 +0200
commit5695ae0a9f469ddbcd86e675f8f74b30032be457 (patch)
treedaf5f7de0d9c3549ac9acf6dde4189a2ddbe3ec9 /packages/taler-wallet-core/src/wallet-api-types.ts
parentf93ab03a1b946af441e35b9c057f129d25311273 (diff)
downloadwallet-core-5695ae0a9f469ddbcd86e675f8f74b30032be457.tar.gz
wallet-core-5695ae0a9f469ddbcd86e675f8f74b30032be457.tar.bz2
wallet-core-5695ae0a9f469ddbcd86e675f8f74b30032be457.zip
wallet-core: use testingWaitTransactionsFinal to wait for transactions
Diffstat (limited to 'packages/taler-wallet-core/src/wallet-api-types.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts
index 6bcee0299..cea548db6 100644
--- a/packages/taler-wallet-core/src/wallet-api-types.ts
+++ b/packages/taler-wallet-core/src/wallet-api-types.ts
@@ -206,6 +206,7 @@ export enum WalletApiOperation {
Recycle = "recycle",
ApplyDevExperiment = "applyDevExperiment",
ValidateIban = "validateIban",
+ TestingWaitTransactionsFinal = "testingWaitTransactionsFinal",
}
// group: Initialization
@@ -950,6 +951,15 @@ export type DumpCoinsOp = {
};
/**
+ * Wait until all transactions are in a final state.
+ */
+export type TestingWaitTransactionsFinal = {
+ op: WalletApiOperation.TestingWaitTransactionsFinal;
+ request: EmptyObject;
+ response: EmptyObject;
+};
+
+/**
* Set a coin as (un-)suspended.
* Suspended coins won't be used for payments.
*/
@@ -1051,6 +1061,7 @@ export type WalletOperations = {
[WalletApiOperation.Recycle]: RecycleOp;
[WalletApiOperation.ApplyDevExperiment]: ApplyDevExperimentOp;
[WalletApiOperation.ValidateIban]: ValidateIbanOp;
+ [WalletApiOperation.TestingWaitTransactionsFinal]: TestingWaitTransactionsFinal;
};
export type WalletCoreRequestType<