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/db.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/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 7f114df78..5d1075c83 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -57,6 +57,7 @@ import { AttentionInfo, AbsoluteTime, Logger, + CoinPublicKeyString, } from "@gnu-taler/taler-util"; import { DbAccess, @@ -1692,6 +1693,11 @@ export enum PeerPushPaymentInitiationStatus { PurseCreated = 50 /* DORMANT_START */, } +export interface PeerPushPaymentCoinSelection { + contributions: AmountString[]; + coinPubs: CoinPublicKeyString[]; +} + /** * Record for a push P2P payment that this wallet initiated. */ @@ -1701,8 +1707,13 @@ export interface PeerPushPaymentInitiationRecord { */ exchangeBaseUrl: string; + /** + * Instructed amount. + */ amount: AmountString; + coinSel: PeerPushPaymentCoinSelection; + contractTermsHash: HashCodeString; /** @@ -1727,6 +1738,9 @@ export interface PeerPushPaymentInitiationRecord { mergePriv: string; contractPriv: string; + contractPub: string; + + contractTerms: PeerContractTerms; purseExpiration: TalerProtocolTimestamp; |