From 07cdfb2e4ec761021477271776b81f33af0e731d Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 17 Mar 2021 17:56:37 +0100 Subject: towards wallet-core / util split --- packages/taler-wallet-core/src/operations/refresh.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/refresh.ts') diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 621e9a108..d82ff946e 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -15,7 +15,6 @@ */ import { encodeCrock, getRandomBytes } from "../crypto/talerCrypto"; -import { RefreshNewDenomInfo } from "../types/cryptoTypes"; import { CoinRecord, CoinSourceType, @@ -24,19 +23,17 @@ import { RefreshGroupRecord, RefreshPlanchet, Stores, -} from "../types/dbTypes"; -import { NotificationType } from "../types/notifications"; +} from "../db.js"; import { codecForExchangeMeltResponse, codecForExchangeRevealResponse, -} from "../types/talerTypes"; -import { CoinPublicKey, + NotificationType, RefreshGroupId, RefreshReason, TalerErrorDetails, -} from "../types/walletTypes"; -import { AmountJson, Amounts } from "../util/amounts"; +} from "@gnu-taler/taler-util"; +import { AmountJson, Amounts } from "@gnu-taler/taler-util"; import { amountToPretty } from "../util/helpers"; import { readSuccessResponseJsonOrThrow } from "../util/http"; import { checkDbInvariant } from "../util/invariants"; @@ -53,12 +50,13 @@ import { timestampAddDuration, timestampDifference, timestampMin, -} from "../util/time"; +} from "@gnu-taler/taler-util"; import { URL } from "../util/url"; import { guardOperationException } from "./errors"; import { updateExchangeFromUrl } from "./exchanges"; import { EXCHANGE_COINS_LOCK, InternalWalletState } from "./state"; import { isWithdrawableDenom, selectWithdrawalDenominations } from "./withdraw"; +import { RefreshNewDenomInfo } from "../crypto/cryptoTypes.js"; const logger = new Logger("refresh.ts"); -- cgit v1.2.3