summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/pay-peer-common.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/pay-peer-common.ts')
-rw-r--r--packages/taler-wallet-core/src/pay-peer-common.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/pay-peer-common.ts b/packages/taler-wallet-core/src/pay-peer-common.ts
index ff035d5e5..599010c1d 100644
--- a/packages/taler-wallet-core/src/pay-peer-common.ts
+++ b/packages/taler-wallet-core/src/pay-peer-common.ts
@@ -22,6 +22,7 @@ import {
AmountString,
Amounts,
Codec,
+ SelectedCoin,
TalerProtocolTimestamp,
buildCodecForObject,
checkDbInvariant,
@@ -29,9 +30,8 @@ import {
codecForTimestamp,
codecOptional,
} from "@gnu-taler/taler-util";
-import type { SelectedPeerCoin } from "./coinSelection.js";
import { SpendCoinDetails } from "./crypto/cryptoImplementation.js";
-import { PeerPushPaymentCoinSelection, ReserveRecord } from "./db.js";
+import { DbPeerPushPaymentCoinSelection, ReserveRecord } from "./db.js";
import { getTotalRefreshCost } from "./refresh.js";
import { WalletExecutionContext, getDenomInfo } from "./wallet.js";
import { getCandidateWithdrawalDenomsTx } from "./withdraw.js";
@@ -41,7 +41,7 @@ import { getCandidateWithdrawalDenomsTx } from "./withdraw.js";
*/
export async function queryCoinInfosForSelection(
wex: WalletExecutionContext,
- csel: PeerPushPaymentCoinSelection,
+ csel: DbPeerPushPaymentCoinSelection,
): Promise<SpendCoinDetails[]> {
let infos: SpendCoinDetails[] = [];
await wex.db.runReadOnlyTx(["coins", "denominations"], async (tx) => {
@@ -74,7 +74,7 @@ export async function queryCoinInfosForSelection(
export async function getTotalPeerPaymentCost(
wex: WalletExecutionContext,
- pcs: SelectedPeerCoin[],
+ pcs: SelectedCoin[],
): Promise<AmountJson> {
const currency = Amounts.currencyOf(pcs[0].contribution);
return wex.db.runReadOnlyTx(["coins", "denominations"], async (tx) => {