aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts27
1 files changed, 26 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 266197eb5..bc0bb4f65 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -1669,13 +1669,27 @@ export interface PeerPushPaymentIncomingRecord {
contractPriv: string;
- timestampAccepted: TalerProtocolTimestamp;
+ timestamp: TalerProtocolTimestamp;
contractTerms: PeerContractTerms;
// FIXME: add status etc.
}
+export interface PeerPullPaymentIncomingRecord {
+ peerPullPaymentIncomingId: string;
+
+ pursePub: string;
+
+ exchangeBaseUrl: string;
+
+ contractTerms: PeerContractTerms;
+
+ timestamp: TalerProtocolTimestamp;
+
+ contractPriv: string;
+}
+
export const WalletStoresV1 = {
coins: describeStore(
describeContents<CoinRecord>("coins", {
@@ -1853,6 +1867,17 @@ export const WalletStoresV1 = {
]),
},
),
+ peerPullPaymentIncoming: describeStore(
+ describeContents<PeerPullPaymentIncomingRecord>("peerPullPaymentIncoming", {
+ keyPath: "peerPullPaymentIncomingId",
+ }),
+ {
+ byExchangeAndPurse: describeIndex("byExchangeAndPurse", [
+ "exchangeBaseUrl",
+ "pursePub",
+ ]),
+ },
+ ),
peerPullPaymentInitiation: describeStore(
describeContents<PeerPullPaymentInitiationRecord>(
"peerPushPaymentInitiation",