diff options
author | Florian Dold <florian@dold.me> | 2022-08-24 11:11:02 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-08-24 11:11:02 +0200 |
commit | d32d2895cedad656d7130522722f40642c439de6 (patch) | |
tree | c3a718ce206715242c01f6b68a9a52a1aef84458 /packages/taler-wallet-core/src/db.ts | |
parent | bc434ebb83a5985a3aa33b94310eb23d694214da (diff) | |
download | wallet-core-d32d2895cedad656d7130522722f40642c439de6.tar.xz |
-get p2p pull integration test to run through
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 27 |
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", |