diff options
author | Florian Dold <florian@dold.me> | 2023-09-12 13:48:52 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-12 13:49:24 +0200 |
commit | 4b0680eefa0dcb2e9b00342949393e4b166eecb2 (patch) | |
tree | 0681abaeacd7d1707d77677426f4f9f37831846a /packages/taler-wallet-core/src/db.ts | |
parent | ee8993f11cf81721cc30b4473e40124c2fee0dff (diff) | |
download | wallet-core-4b0680eefa0dcb2e9b00342949393e4b166eecb2.tar.xz |
wallet-core: move contract terms to object store
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 04c3ce723..9bf9a29cc 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -28,6 +28,7 @@ import { } from "@gnu-taler/idb-bridge"; import { AgeCommitmentProof, + AmountJson, AmountString, Amounts, AttentionInfo, @@ -1640,6 +1641,15 @@ export interface DepositTrackingInfo { export interface DepositGroupRecord { depositGroupId: string; + currency: string; + + /** + * Instructed amount. + */ + amount: AmountString; + + wireTransferDeadline: TalerProtocolTimestamp; + merchantPub: string; merchantPriv: string; @@ -1655,13 +1665,6 @@ export interface DepositGroupRecord { salt: string; }; - /** - * Verbatim contract terms. - * - * FIXME: Move this to the contract terms object store! - */ - contractTermsRaw: MerchantContractTerms; - contractTermsHash: string; payCoinSelection: PayCoinSelection; @@ -1981,7 +1984,9 @@ export interface PeerPullPaymentIncomingRecord { exchangeBaseUrl: string; - contractTerms: PeerContractTerms; + amount: AmountString; + + contractTermsHash: string; timestampCreated: TalerPreciseTimestamp; |