diff options
author | Florian Dold <florian@dold.me> | 2024-02-19 20:07:37 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-19 20:07:45 +0100 |
commit | 194eeea6aaf4ab401825aa07073b3e0a4f9d3c1b (patch) | |
tree | 2ac2ff60c526153a8b53bac84989fa65278a6079 /packages/taler-wallet-core/src/wallet.ts | |
parent | e1a7bf4825162b4b95669ae6b4552589f4a64217 (diff) | |
download | wallet-core-194eeea6aaf4ab401825aa07073b3e0a4f9d3c1b.tar.xz |
restructure
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 80 |
1 files changed, 39 insertions, 41 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 8b24fdc11..63b7ca4f2 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -51,6 +51,8 @@ import { TalerErrorCode, TalerUriAction, TestingWaitTransactionRequest, + TimerAPI, + TimerGroup, TransactionState, TransactionType, ValidateIbanResponse, @@ -132,32 +134,6 @@ import { validateIban, } from "@gnu-taler/taler-util"; import type { HttpRequestLibrary } from "@gnu-taler/taler-util/http"; -import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js"; -import { - CryptoDispatcher, - CryptoWorkerFactory, -} from "./crypto/workers/crypto-dispatcher.js"; -import { - CoinSourceType, - ConfigRecordKey, - DenominationRecord, - WalletDbReadOnlyTransaction, - WalletDbReadWriteTransaction, - WalletStoresV1, - clearDatabase, - exportDb, - importDb, - openStoredBackupsDatabase, - openTalerDatabase, -} from "./db.js"; -import { DevExperimentHttpLib, applyDevExperiment } from "./dev-experiments.js"; -import { - CancelFn, - InternalWalletState, - MerchantInfo, - NotificationListener, - RecoupOperations, -} from "./internal-wallet-state.js"; import { getUserAttentions, getUserAttentionsUnreadCount, @@ -176,12 +152,31 @@ import { setWalletDeviceId, } from "./backup/index.js"; import { getBalanceDetail, getBalances } from "./balance.js"; +import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js"; +import { + CryptoDispatcher, + CryptoWorkerFactory, +} from "./crypto/workers/crypto-dispatcher.js"; +import { + CoinSourceType, + ConfigRecordKey, + DenominationRecord, + WalletDbReadOnlyTransaction, + WalletDbReadWriteTransaction, + WalletStoresV1, + clearDatabase, + exportDb, + importDb, + openStoredBackupsDatabase, + openTalerDatabase, +} from "./db.js"; import { computeDepositTransactionStatus, createDepositGroup, generateDepositGroupTxId, prepareDepositGroup, } from "./deposits.js"; +import { DevExperimentHttpLib, applyDevExperiment } from "./dev-experiments.js"; import { acceptExchangeTermsOfService, addPresetExchangeEntry, @@ -194,6 +189,13 @@ import { lookupExchangeByUri, } from "./exchanges.js"; import { + CancelFn, + InternalWalletState, + MerchantInfo, + NotificationListener, + RecoupOperations, +} from "./internal-wallet-state.js"; +import { computePayMerchantTransactionState, computeRefundTransactionState, confirmPay, @@ -224,12 +226,11 @@ import { computePeerPushDebitTransactionState, initiatePeerPushDebit, } from "./pay-peer-push-debit.js"; +import { DbAccess } from "./query.js"; import { createRecoupGroup } from "./recoup.js"; -import { - computeRefreshTransactionState, - forceRefresh, -} from "./refresh.js"; +import { computeRefreshTransactionState, forceRefresh } from "./refresh.js"; import { computeRewardTransactionStatus } from "./reward.js"; +import { TaskScheduler } from "./shepherd.js"; import { runIntegrationTest, runIntegrationTest2, @@ -252,14 +253,6 @@ import { retryTransaction, suspendTransaction, } from "./transactions.js"; -import { - acceptWithdrawalFromUri, - computeWithdrawalTransactionStatus, - createManualWithdrawal, - getExchangeWithdrawalInfo, - getWithdrawalDetailsForUri, -} from "./withdraw.js"; -import { TaskScheduler } from "./shepherd.js"; import { assertUnreachable } from "./util/assertUnreachable.js"; import { convertDepositAmount, @@ -269,8 +262,6 @@ import { getMaxPeerPushAmount, } from "./util/instructedAmountConversion.js"; import { checkDbInvariant } from "./util/invariants.js"; -import { DbAccess } from "./query.js"; -import { TimerAPI, TimerGroup } from "./util/timer.js"; import { WALLET_BANK_CONVERSION_API_PROTOCOL_VERSION, WALLET_BANK_INTEGRATION_PROTOCOL_VERSION, @@ -286,6 +277,13 @@ import { WalletCoreApiClient, WalletCoreResponseType, } from "./wallet-api-types.js"; +import { + acceptWithdrawalFromUri, + computeWithdrawalTransactionStatus, + createManualWithdrawal, + getExchangeWithdrawalInfo, + getWithdrawalDetailsForUri, +} from "./withdraw.js"; const logger = new Logger("wallet.ts"); @@ -608,7 +606,7 @@ async function handlePrepareWithdrawExchange( /** * Response returned from the pending operations API. - * + * * @deprecated this is a placeholder for the response type of a deprecated wallet-core request. */ export interface PendingOperationsResponse { |