diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
5 files changed, 23 insertions, 23 deletions
diff --git a/packages/taler-wallet-core/src/operations/backup/import.ts b/packages/taler-wallet-core/src/operations/backup/import.ts index d3346a3a2..cda5a012b 100644 --- a/packages/taler-wallet-core/src/operations/backup/import.ts +++ b/packages/taler-wallet-core/src/operations/backup/import.ts @@ -62,11 +62,7 @@ import { InternalWalletState } from "../../internal-wallet-state.js"; import { assertUnreachable } from "../../util/assertUnreachable.js"; import { checkLogicInvariant } from "../../util/invariants.js"; import { GetReadOnlyAccess, GetReadWriteAccess } from "../../util/query.js"; -import { - makeCoinAvailable, - makeTombstoneId, - TombstoneTag, -} from "../common.js"; +import { makeCoinAvailable, makeTombstoneId, TombstoneTag } from "../common.js"; import { getExchangeDetails } from "../exchanges.js"; import { extractContractData } from "../pay-merchant.js"; import { provideBackupState } from "./state.js"; diff --git a/packages/taler-wallet-core/src/operations/common.ts b/packages/taler-wallet-core/src/operations/common.ts index ef5c54002..a64f78b03 100644 --- a/packages/taler-wallet-core/src/operations/common.ts +++ b/packages/taler-wallet-core/src/operations/common.ts @@ -464,7 +464,7 @@ export type ParsedTombstone = tag: TombstoneTag.DeleteWithdrawalGroup; withdrawalGroupId: string; } - | { tag: TombstoneTag.DeleteRefund; refundGroupId: string } + | { tag: TombstoneTag.DeleteRefund; refundGroupId: string }; export function constructTombstone(p: ParsedTombstone): TombstoneIdStr { switch (p.tag) { diff --git a/packages/taler-wallet-core/src/operations/deposits.ts b/packages/taler-wallet-core/src/operations/deposits.ts index 6387fc9b7..64180a3ea 100644 --- a/packages/taler-wallet-core/src/operations/deposits.ts +++ b/packages/taler-wallet-core/src/operations/deposits.ts @@ -495,8 +495,7 @@ async function waitForRefreshOnDepositGroup( if (refreshGroup.operationStatus === RefreshOperationStatus.Finished) { newOpState = DepositOperationStatus.Aborted; } else if ( - refreshGroup.operationStatus === - RefreshOperationStatus.Failed + refreshGroup.operationStatus === RefreshOperationStatus.Failed ) { newOpState = DepositOperationStatus.Aborted; } diff --git a/packages/taler-wallet-core/src/operations/pay-peer-pull-credit.ts b/packages/taler-wallet-core/src/operations/pay-peer-pull-credit.ts index fc2718ce5..447ffce8f 100644 --- a/packages/taler-wallet-core/src/operations/pay-peer-pull-credit.ts +++ b/packages/taler-wallet-core/src/operations/pay-peer-pull-credit.ts @@ -208,14 +208,13 @@ async function longpollKycStatus( const transitionInfo = await ws.db .mktx((x) => [x.peerPullPaymentInitiations]) .runReadWrite(async (tx) => { - const peerIni = await tx.peerPullPaymentInitiations.get( - pursePub, - ); + const peerIni = await tx.peerPullPaymentInitiations.get(pursePub); if (!peerIni) { return; } if ( - peerIni.status !== PeerPullPaymentInitiationStatus.PendingMergeKycRequired + peerIni.status !== + PeerPullPaymentInitiationStatus.PendingMergeKycRequired ) { return; } @@ -254,10 +253,7 @@ async function processPeerPullCreditAbortingDeletePurse( const sigResp = await ws.cryptoApi.signDeletePurse({ pursePriv, }); - const purseUrl = new URL( - `purses/${pursePub}`, - peerPullIni.exchangeBaseUrl, - ); + const purseUrl = new URL(`purses/${pursePub}`, peerPullIni.exchangeBaseUrl); const resp = await ws.http.fetch(purseUrl.href, { method: "DELETE", headers: { @@ -517,9 +513,7 @@ async function processPeerPullCreditKycRequired( const { transitionInfo, result } = await ws.db .mktx((x) => [x.peerPullPaymentInitiations]) .runReadWrite(async (tx) => { - const peerInc = await tx.peerPullPaymentInitiations.get( - pursePub, - ); + const peerInc = await tx.peerPullPaymentInitiations.get(pursePub); if (!peerInc) { return { transitionInfo: undefined, @@ -532,7 +526,8 @@ async function processPeerPullCreditKycRequired( requirementRow: kycPending.requirement_row, }; peerInc.kycUrl = kycStatus.kyc_url; - peerInc.status = PeerPullPaymentInitiationStatus.PendingMergeKycRequired; + peerInc.status = + PeerPullPaymentInitiationStatus.PendingMergeKycRequired; const newTxState = computePeerPullCreditTransactionState(peerInc); await tx.peerPullPaymentInitiations.put(peerInc); // We'll remove this eventually! New clients should rely on the diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts index 238a5dc66..ece71439c 100644 --- a/packages/taler-wallet-core/src/operations/testing.ts +++ b/packages/taler-wallet-core/src/operations/testing.ts @@ -45,14 +45,24 @@ import { PreparePayResultType, } from "@gnu-taler/taler-util"; import { InternalWalletState } from "../internal-wallet-state.js"; -import { confirmPay, preparePayForUri, startRefundQueryForUri } from "./pay-merchant.js"; +import { + confirmPay, + preparePayForUri, + startRefundQueryForUri, +} from "./pay-merchant.js"; import { getBalances } from "./balance.js"; import { checkLogicInvariant } from "../util/invariants.js"; import { acceptWithdrawalFromUri } from "./withdraw.js"; import { updateExchangeFromUrl } from "./exchanges.js"; import { initiatePeerPullPayment } from "./pay-peer-pull-credit.js"; -import { preparePeerPullDebit, confirmPeerPullDebit } from "./pay-peer-pull-debit.js"; -import { preparePeerPushCredit, confirmPeerPushCredit } from "./pay-peer-push-credit.js"; +import { + preparePeerPullDebit, + confirmPeerPullDebit, +} from "./pay-peer-pull-debit.js"; +import { + preparePeerPushCredit, + confirmPeerPushCredit, +} from "./pay-peer-push-credit.js"; import { initiatePeerPushDebit } from "./pay-peer-push-debit.js"; const logger = new Logger("operations/testing.ts"); |