diff options
author | Florian Dold <florian@dold.me> | 2023-08-29 20:35:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-08-29 20:35:49 +0200 |
commit | 1ad2f4cbe9d231f7f2324b37ae0e0cc97fbb1216 (patch) | |
tree | 56805ba034ef49b5ce0eded277420020d13f6e4e /packages/taler-wallet-core/src/db.ts | |
parent | a386de8a9c1aa3fff76b4cb37fb3287213981387 (diff) | |
download | wallet-core-1ad2f4cbe9d231f7f2324b37ae0e0cc97fbb1216.tar.gz wallet-core-1ad2f4cbe9d231f7f2324b37ae0e0cc97fbb1216.tar.bz2 wallet-core-1ad2f4cbe9d231f7f2324b37ae0e0cc97fbb1216.zip |
wallet-core: do p2p coin selection based on coin availability records
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index c5f8b6448..c550ab675 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -61,6 +61,8 @@ import { } from "@gnu-taler/taler-util"; import { DbAccess, + DbReadOnlyTransaction, + DbReadWriteTransaction, describeContents, describeIndex, describeStore, @@ -68,6 +70,7 @@ import { IndexDescriptor, openDatabase, StoreDescriptor, + StoreNames, StoreWithIndexes, } from "./util/query.js"; import { RetryInfo, TaskIdentifiers } from "./operations/common.js"; @@ -2706,6 +2709,15 @@ export const WalletStoresV1 = { ), }; +export type WalletDbReadOnlyTransaction< + Stores extends StoreNames<typeof WalletStoresV1> & string, +> = DbReadOnlyTransaction<typeof WalletStoresV1, Stores>; + +export type WalletReadWriteTransaction< + Stores extends StoreNames<typeof WalletStoresV1> & string, +> = DbReadWriteTransaction<typeof WalletStoresV1, Stores>; + + /** * An applied migration. */ |