aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-09-21 15:43:12 -0300
committerSebastian <sebasjm@gmail.com>2022-09-21 15:45:41 -0300
commit2caef6dcf22ec292897ea5fd3dda27a9b48826c5 (patch)
tree30f6587e5ea9b52da17faa9ce5508d5b5867c54a
parent26cf19ab6c896a299a12605a7b1723540763f52c (diff)
moving deposit group fee into taler util
-rw-r--r--packages/taler-util/src/walletTypes.ts5
-rw-r--r--packages/taler-wallet-core/src/operations/deposits.ts7
2 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts
index 8c6ec7431..ec14630d2 100644
--- a/packages/taler-util/src/walletTypes.ts
+++ b/packages/taler-util/src/walletTypes.ts
@@ -1343,6 +1343,11 @@ export interface GetFeeForDepositRequest {
amount: AmountString;
}
+export interface DepositGroupFees {
+ coin: AmountJson;
+ wire: AmountJson;
+ refresh: AmountJson;
+}
export interface CreateDepositGroupRequest {
depositPaytoUri: string;
amount: AmountString;
diff --git a/packages/taler-wallet-core/src/operations/deposits.ts b/packages/taler-wallet-core/src/operations/deposits.ts
index 54fd323de..625bc0828 100644
--- a/packages/taler-wallet-core/src/operations/deposits.ts
+++ b/packages/taler-wallet-core/src/operations/deposits.ts
@@ -27,6 +27,7 @@ import {
ContractTerms,
CreateDepositGroupRequest,
CreateDepositGroupResponse,
+ DepositGroupFees,
durationFromSpec,
encodeCrock,
GetFeeForDepositRequest,
@@ -568,12 +569,6 @@ export async function getEffectiveDepositAmount(
return Amounts.sub(Amounts.sum(amt).amount, Amounts.sum(fees).amount).amount;
}
-export interface DepositGroupFees {
- coin: AmountJson;
- wire: AmountJson;
- refresh: AmountJson;
-}
-
/**
* Get the fee amount that will be charged when trying to deposit the
* specified amount using the selected coins and the wire method.