aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pay-peer-common.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-06-13 16:46:16 -0300
committerSebastian <sebasjm@gmail.com>2023-06-13 16:46:16 -0300
commit8b74bda065e1f2e01b322662dce3a002aa0fb20b (patch)
tree8865b61d2ed35430a1171dd041890f36e659f2a0 /packages/taler-wallet-core/src/operations/pay-peer-common.ts
parent671342818fb79123f231cfcbaf8251f1672effd1 (diff)
downloadwallet-core-8b74bda065e1f2e01b322662dce3a002aa0fb20b.tar.xz
get operation plan impl, no test
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay-peer-common.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pay-peer-common.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-peer-common.ts b/packages/taler-wallet-core/src/operations/pay-peer-common.ts
index 717b25f49..72e48cb03 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer-common.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer-common.ts
@@ -52,7 +52,11 @@ import { InternalWalletState } from "../internal-wallet-state.js";
import { checkDbInvariant } from "../util/invariants.js";
import { getPeerPaymentBalanceDetailsInTx } from "./balance.js";
import { getTotalRefreshCost } from "./refresh.js";
-import { OperationAttemptLongpollResult, OperationAttemptResult, OperationAttemptResultType } from "../util/retries.js";
+import {
+ OperationAttemptLongpollResult,
+ OperationAttemptResult,
+ OperationAttemptResultType,
+} from "../util/retries.js";
const logger = new Logger("operations/peer-to-peer.ts");
@@ -113,6 +117,12 @@ export type SelectPeerCoinsResult =
insufficientBalanceDetails: PayPeerInsufficientBalanceDetails;
};
+/**
+ * Get information about the coin selected for signatures
+ * @param ws
+ * @param csel
+ * @returns
+ */
export async function queryCoinInfosForSelection(
ws: InternalWalletState,
csel: PeerPushPaymentCoinSelection,