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 --- .../taler-wallet-core/src/operations/exchanges.ts | 68 +++++++++++----------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/exchanges.ts') diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index 1125645f1..08c554160 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -14,54 +14,54 @@ GNU Taler; see the file COPYING. If not, see */ -import { InternalWalletState } from "./state"; +/** + * Imports. + */ import { - Denomination, + Amounts, codecForExchangeKeysJson, codecForExchangeWireJson, -} from "../types/talerTypes"; -import { TalerErrorDetails } from "../types/walletTypes"; + compare, + Denomination, + Duration, + durationFromSpec, + getTimestampNow, + isTimestampExpired, + NotificationType, + parsePaytoUri, + TalerErrorCode, + TalerErrorDetails, +} from "@gnu-taler/taler-util"; import { - ExchangeRecord, - ExchangeUpdateStatus, - Stores, DenominationRecord, DenominationStatus, + Stores, + ExchangeRecord, + ExchangeUpdateStatus, WireFee, ExchangeUpdateReason, - MetaStores, -} from "../types/dbTypes"; -import { canonicalizeBaseUrl, j2s } from "../util/helpers"; -import * as Amounts from "../util/amounts"; -import { parsePaytoUri } from "../util/payto"; +} from "../db.js"; import { + Logger, + URL, + readSuccessResponseJsonOrThrow, + getExpiryTimestamp, + readSuccessResponseTextOrThrow, +} from "../index.js"; +import { j2s, canonicalizeBaseUrl } from "../util/helpers.js"; +import { checkDbInvariant } from "../util/invariants.js"; +import { updateRetryInfoTimeout, initRetryInfo } from "../util/retries.js"; +import { + makeErrorDetails, OperationFailedAndReportedError, guardOperationException, - makeErrorDetails, -} from "./errors"; +} from "./errors.js"; +import { createRecoupGroup, processRecoupGroup } from "./recoup.js"; +import { InternalWalletState } from "./state.js"; import { WALLET_CACHE_BREAKER_CLIENT_VERSION, WALLET_EXCHANGE_PROTOCOL_VERSION, -} from "./versions"; -import { - getTimestampNow, - Duration, - isTimestampExpired, - durationFromSpec, -} from "../util/time"; -import { compare } from "../util/libtoolVersion"; -import { createRecoupGroup, processRecoupGroup } from "./recoup"; -import { TalerErrorCode } from "../TalerErrorCode"; -import { - readSuccessResponseJsonOrThrow, - readSuccessResponseTextOrThrow, - getExpiryTimestamp, -} from "../util/http"; -import { Logger } from "../util/logging"; -import { URL } from "../util/url"; -import { checkDbInvariant } from "../util/invariants"; -import { NotificationType } from "../types/notifications"; -import { updateRetryInfoTimeout, initRetryInfo } from "../util/retries"; +} from "./versions.js"; const logger = new Logger("exchanges.ts"); -- cgit v1.2.3