aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/peer-to-peer.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-16 16:24:47 +0200
committerFlorian Dold <florian@dold.me>2022-09-16 16:34:00 +0200
commit374d3498d8233688fe009db025b4ae0add46bb19 (patch)
tree2bd08bffa4b4819008d154bbbaac0a7b63a14f53 /packages/taler-wallet-core/src/operations/peer-to-peer.ts
parentb91caf977fad8da11e523ca3a39064dd86e04c64 (diff)
-cleanup
Diffstat (limited to 'packages/taler-wallet-core/src/operations/peer-to-peer.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/peer-to-peer.ts26
1 files changed, 14 insertions, 12 deletions
diff --git a/packages/taler-wallet-core/src/operations/peer-to-peer.ts b/packages/taler-wallet-core/src/operations/peer-to-peer.ts
index ffbc1fc97..48d422e0b 100644
--- a/packages/taler-wallet-core/src/operations/peer-to-peer.ts
+++ b/packages/taler-wallet-core/src/operations/peer-to-peer.ts
@@ -24,7 +24,8 @@ import {
AcceptPeerPushPaymentRequest,
AcceptPeerPushPaymentResponse,
AgeCommitmentProof,
- AmountJson, Amounts,
+ AmountJson,
+ Amounts,
AmountString,
buildCodecForObject,
CheckPeerPullPaymentRequest,
@@ -34,7 +35,8 @@ import {
Codec,
codecForAmountString,
codecForAny,
- codecForExchangeGetContractResponse, constructPayPullUri,
+ codecForExchangeGetContractResponse,
+ constructPayPullUri,
constructPayPushUri,
ContractTermsUtil,
decodeCrock,
@@ -58,14 +60,14 @@ import {
TalerProtocolTimestamp,
TransactionType,
UnblindedSignature,
- WalletAccountMergeFlags
+ WalletAccountMergeFlags,
} from "@gnu-taler/taler-util";
import {
CoinStatus,
MergeReserveInfo,
ReserveRecordStatus,
WalletStoresV1,
- WithdrawalRecordType
+ WithdrawalRecordType,
} from "../db.js";
import { InternalWalletState } from "../internal-wallet-state.js";
import { readSuccessResponseJsonOrThrow } from "../util/http.js";
@@ -339,7 +341,7 @@ export async function initiatePeerToPeerPush(
exchangeBaseUrl: coinSelRes.exchangeBaseUrl,
contractPriv: econtractResp.contractPriv,
}),
- transactionId: makeEventId(TransactionType.PeerPushDebit, pursePair.pub)
+ transactionId: makeEventId(TransactionType.PeerPushDebit, pursePair.pub),
};
}
@@ -552,9 +554,9 @@ export async function acceptPeerPushPayment(
return {
transactionId: makeEventId(
TransactionType.PeerPushCredit,
- wg.withdrawalGroupId
- )
- }
+ wg.withdrawalGroupId,
+ ),
+ };
}
/**
@@ -645,8 +647,8 @@ export async function acceptPeerPullPayment(
transactionId: makeEventId(
TransactionType.PeerPullDebit,
req.peerPullPaymentIncomingId,
- )
- }
+ ),
+ };
}
export async function checkPeerPullPayment(
@@ -840,7 +842,7 @@ export async function initiatePeerRequestForPay(
}),
transactionId: makeEventId(
TransactionType.PeerPullCredit,
- wg.withdrawalGroupId
- )
+ wg.withdrawalGroupId,
+ ),
};
}