aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/exchanges.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-03-28 23:21:49 +0200
committerFlorian Dold <florian@dold.me>2022-03-28 23:21:49 +0200
commit80e43db2cac84e588c2ef3889e8d90b76bd53714 (patch)
tree04297a4ad1838f9c1add039d64ee1b1996cfd6b2 /packages/taler-wallet-core/src/operations/exchanges.ts
parentc194bd539a9e01d083b953ef1e0022da90574339 (diff)
downloadwallet-core-80e43db2cac84e588c2ef3889e8d90b76bd53714.tar.xz
wallet: timeout handling refactoring WIP
Diffstat (limited to 'packages/taler-wallet-core/src/operations/exchanges.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/exchanges.ts26
1 files changed, 11 insertions, 15 deletions
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts
index 51b5c7806..09449c875 100644
--- a/packages/taler-wallet-core/src/operations/exchanges.ts
+++ b/packages/taler-wallet-core/src/operations/exchanges.ts
@@ -18,35 +18,31 @@
* Imports.
*/
import {
+ AbsoluteTime,
Amounts,
- ExchangeAuditor,
canonicalizeBaseUrl,
codecForExchangeKeysJson,
codecForExchangeWireJson,
- ExchangeDenomination,
+ DenominationPubKey,
Duration,
durationFromSpec,
+ encodeCrock,
+ ExchangeAuditor,
+ ExchangeDenomination,
ExchangeSignKeyJson,
ExchangeWireJson,
+ hashDenomPub,
+ LibtoolVersion,
Logger,
NotificationType,
parsePaytoUri,
Recoup,
TalerErrorCode,
- URL,
TalerErrorDetail,
- AbsoluteTime,
- hashDenomPub,
- LibtoolVersion,
- codecForAny,
- DenominationPubKey,
- DenomKeyType,
- ExchangeKeysJson,
- TalerProtocolTimestamp,
TalerProtocolDuration,
+ TalerProtocolTimestamp,
+ URL,
} from "@gnu-taler/taler-util";
-import { decodeCrock, encodeCrock, hash } from "@gnu-taler/taler-util";
-import { CryptoDispatcher } from "../crypto/workers/cryptoDispatcher.js";
import {
DenominationRecord,
DenominationVerificationStatus,
@@ -56,6 +52,8 @@ import {
WireFee,
WireInfo,
} from "../db.js";
+import { TalerError } from "../errors.js";
+import { InternalWalletState, TrustInfo } from "../internal-wallet-state.js";
import {
getExpiry,
HttpRequestLibrary,
@@ -64,8 +62,6 @@ import {
} from "../util/http.js";
import { DbAccess, GetReadOnlyAccess } from "../util/query.js";
import { initRetryInfo, updateRetryInfoTimeout } from "../util/retries.js";
-import { TalerError } from "../errors.js";
-import { InternalWalletState, TrustInfo } from "../internal-wallet-state.js";
import {
WALLET_CACHE_BREAKER_CLIENT_VERSION,
WALLET_EXCHANGE_PROTOCOL_VERSION,