diff options
author | Florian Dold <florian@dold.me> | 2023-01-12 15:11:32 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-12 15:11:32 +0100 |
commit | 24694eae736763ea6e026c8839b7ba119db10bb4 (patch) | |
tree | be432b50a6be729445a6f0515f3cb3333d7c0697 /packages/taler-wallet-core/src/pending-types.ts | |
parent | 81157c519b31964587548e08171a76c67eea9a2b (diff) | |
download | wallet-core-24694eae736763ea6e026c8839b7ba119db10bb4.tar.xz |
wallet-core: implement retries for peer push payments
Diffstat (limited to 'packages/taler-wallet-core/src/pending-types.ts')
-rw-r--r-- | packages/taler-wallet-core/src/pending-types.ts | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/pending-types.ts b/packages/taler-wallet-core/src/pending-types.ts index 862bbf4f9..65b72de04 100644 --- a/packages/taler-wallet-core/src/pending-types.ts +++ b/packages/taler-wallet-core/src/pending-types.ts @@ -24,11 +24,7 @@ /** * Imports. */ -import { - TalerErrorDetail, - AbsoluteTime, - TalerProtocolTimestamp, -} from "@gnu-taler/taler-util"; +import { TalerErrorDetail, AbsoluteTime } from "@gnu-taler/taler-util"; import { RetryInfo } from "./util/retries.js"; export enum PendingTaskType { @@ -41,6 +37,7 @@ export enum PendingTaskType { Withdraw = "withdraw", Deposit = "deposit", Backup = "backup", + PeerPushOutgoing = "peer-push-outgoing", } /** @@ -57,6 +54,7 @@ export type PendingTaskInfo = PendingTaskInfoCommon & | PendingRecoupTask | PendingDepositTask | PendingBackupTask + | PendingPeerPushOutgoingTask ); export interface PendingBackupTask { @@ -75,6 +73,14 @@ export interface PendingExchangeUpdateTask { } /** + * The wallet wants to send a peer push payment. + */ +export interface PendingPeerPushOutgoingTask { + type: PendingTaskType.PeerPushOutgoing; + pursePub: string; +} + +/** * The wallet should check whether coins from this exchange * need to be auto-refreshed. */ |