diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/refresh.ts | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 17ac54cfb..a8bcb28d1 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -84,6 +84,7 @@ import { RefreshSessionRecord, timestampPreciseToDb, timestampProtocolFromDb, + WalletDbReadWriteTransaction, } from "../index.js"; import { EXCHANGE_COINS_LOCK, @@ -92,7 +93,11 @@ import { import { assertUnreachable } from "../util/assertUnreachable.js"; import { selectWithdrawalDenominations } from "../util/coinSelection.js"; import { checkDbInvariant } from "../util/invariants.js"; -import { GetReadOnlyAccess, GetReadWriteAccess } from "../util/query.js"; +import { + DbReadWriteTransaction, + GetReadOnlyAccess, + GetReadWriteAccess, +} from "../util/query.js"; import { constructTaskIdentifier, makeCoinAvailable, @@ -1097,12 +1102,9 @@ async function applyRefresh( */ export async function createRefreshGroup( ws: InternalWalletState, - tx: GetReadWriteAccess<{ - denominations: typeof WalletStoresV1.denominations; - coins: typeof WalletStoresV1.coins; - refreshGroups: typeof WalletStoresV1.refreshGroups; - coinAvailability: typeof WalletStoresV1.coinAvailability; - }>, + tx: WalletDbReadWriteTransaction< + "denominations" | "coins" | "refreshGroups" | "coinAvailability" + >, currency: string, oldCoinPubs: CoinRefreshRequest[], reason: RefreshReason, |