aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts70
1 files changed, 33 insertions, 37 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 978ce4c39..0694aef8a 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -22,20 +22,26 @@
/**
* Imports.
*/
+import { IDBFactory } from "@gnu-taler/idb-bridge";
import {
AbsoluteTime,
+ AmountString,
Amounts,
CoinDumpJson,
CoinRefreshRequest,
CoinStatus,
CoreApiResponse,
+ CreateStoredBackupResponse,
+ DeleteStoredBackupRequest,
DenomOperationMap,
DenominationInfo,
Duration,
ExchangeDetailedResponse,
ExchangeListItem,
ExchangesListResponse,
+ ExchangesShortListResponse,
FeeDescription,
+ GetCurrencySpecificationResponse,
GetExchangeTosResult,
InitResponse,
KnownBankAccounts,
@@ -44,9 +50,13 @@ import {
ManualWithdrawalDetails,
MerchantUsingTemplateDetails,
NotificationType,
+ RecoverStoredBackupRequest,
RefreshReason,
+ StoredBackupList,
TalerError,
TalerErrorCode,
+ TaskThrottler,
+ TestingWaitTransactionRequest,
TransactionState,
TransactionType,
URL,
@@ -69,6 +79,7 @@ import {
codecForConfirmPeerPushPaymentRequest,
codecForConvertAmountRequest,
codecForCreateDepositGroupRequest,
+ codecForDeleteStoredBackupRequest,
codecForDeleteTransactionRequest,
codecForFailTransactionRequest,
codecForForceRefreshRequest,
@@ -76,6 +87,7 @@ import {
codecForGetAmountRequest,
codecForGetBalanceDetailRequest,
codecForGetContractTermsDetails,
+ codecForGetCurrencyInfoRequest,
codecForGetExchangeTosRequest,
codecForGetWithdrawalDetailsForAmountRequest,
codecForGetWithdrawalDetailsForUri,
@@ -84,6 +96,7 @@ import {
codecForInitiatePeerPushDebitRequest,
codecForIntegrationTestArgs,
codecForIntegrationTestV2Args,
+ codecForListExchangesForScopedCurrencyRequest,
codecForListKnownBankAccounts,
codecForMerchantPostOrderResponse,
codecForPrepareDepositRequest,
@@ -93,19 +106,22 @@ import {
codecForPreparePeerPushCreditRequest,
codecForPrepareRefundRequest,
codecForPrepareRewardRequest,
+ codecForRecoverStoredBackupRequest,
codecForResumeTransaction,
codecForRetryTransactionRequest,
codecForSetCoinSuspendedRequest,
codecForSetWalletDeviceIdRequest,
+ codecForSharePaymentRequest,
codecForStartRefundQueryRequest,
codecForSuspendTransaction,
codecForTestPayArgs,
+ codecForTestingSetTimetravelRequest,
codecForTransactionByIdRequest,
codecForTransactionsRequest,
+ codecForUpdateExchangeEntryRequest,
codecForUserAttentionByIdRequest,
codecForUserAttentionsRequest,
codecForValidateIbanRequest,
- codecForWithdrawFakebankRequest,
codecForWithdrawTestBalance,
constructPayUri,
durationFromSpec,
@@ -115,26 +131,8 @@ import {
parsePayTemplateUri,
parsePaytoUri,
sampleWalletCoreTransactions,
- validateIban,
- codecForSharePaymentRequest,
- GetCurrencySpecificationResponse,
- codecForGetCurrencyInfoRequest,
- CreateStoredBackupResponse,
- StoredBackupList,
- codecForDeleteStoredBackupRequest,
- DeleteStoredBackupRequest,
- RecoverStoredBackupRequest,
- codecForRecoverStoredBackupRequest,
- codecForTestingSetTimetravelRequest,
setDangerousTimetravel,
- TestingWaitTransactionRequest,
- codecForUpdateExchangeEntryRequest,
- codecForListExchangesForScopedCurrencyRequest,
- ListExchangesForScopedCurrencyRequest,
- ExchangesShortListResponse,
- AmountString,
- RequestThrottler,
- TaskThrottler,
+ validateIban,
} from "@gnu-taler/taler-util";
import type { HttpRequestLibrary } from "@gnu-taler/taler-util/http";
import { readSuccessResponseJsonOrThrow } from "@gnu-taler/taler-util/http";
@@ -147,7 +145,6 @@ import {
CoinSourceType,
ConfigRecordKey,
DenominationRecord,
- ExchangeDetailsRecord,
WalletStoresV1,
clearDatabase,
exportDb,
@@ -254,22 +251,22 @@ import {
processRefreshGroup,
} from "./operations/refresh.js";
import {
+ acceptTip,
+ computeRewardTransactionStatus,
+ prepareTip,
+ processTip,
+} from "./operations/reward.js";
+import {
runIntegrationTest,
runIntegrationTest2,
testPay,
waitTransactionState,
- waitUntilTransactionsFinal,
waitUntilRefreshesDone,
- withdrawTestBalance,
waitUntilTasksProcessed,
+ waitUntilTransactionsFinal,
+ withdrawTestBalance,
} from "./operations/testing.js";
import {
- acceptTip,
- computeRewardTransactionStatus,
- prepareTip,
- processTip,
-} from "./operations/reward.js";
-import {
abortTransaction,
deleteTransaction,
failTransaction,
@@ -295,6 +292,13 @@ import {
selectBestForOverlappingDenominations,
selectMinimumFee,
} from "./util/denominations.js";
+import {
+ convertDepositAmount,
+ convertPeerPushAmount,
+ convertWithdrawalAmount,
+ getMaxDepositAmount,
+ getMaxPeerPushAmount,
+} from "./util/instructedAmountConversion.js";
import { checkDbInvariant } from "./util/invariants.js";
import {
AsyncCondition,
@@ -320,14 +324,6 @@ import {
WalletCoreApiClient,
WalletCoreResponseType,
} from "./wallet-api-types.js";
-import {
- convertDepositAmount,
- getMaxDepositAmount,
- convertPeerPushAmount,
- getMaxPeerPushAmount,
- convertWithdrawalAmount,
-} from "./util/instructedAmountConversion.js";
-import { IDBFactory } from "@gnu-taler/idb-bridge";
const logger = new Logger("wallet.ts");