aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/exchanges.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-08-18 16:01:47 -0300
committerSebastian <sebasjm@gmail.com>2022-08-18 16:02:16 -0300
commitd1980c39fc2cf5054cfa9d3a03d685d75c2662d9 (patch)
tree3a605a565f975168bab6e67d1c1740bdd4310c79 /packages/taler-wallet-core/src/operations/exchanges.ts
parent23bb82f00cc83541527402bdd2d4309c530df674 (diff)
downloadwallet-core-d1980c39fc2cf5054cfa9d3a03d685d75c2662d9.tar.gz
wallet-core-d1980c39fc2cf5054cfa9d3a03d685d75c2662d9.tar.bz2
wallet-core-d1980c39fc2cf5054cfa9d3a03d685d75c2662d9.zip
moved wireInfo and denomInfo into taler-util so it can be used from the ui
Diffstat (limited to 'packages/taler-wallet-core/src/operations/exchanges.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/exchanges.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts
index 007dad685..6f8da5aee 100644
--- a/packages/taler-wallet-core/src/operations/exchanges.ts
+++ b/packages/taler-wallet-core/src/operations/exchanges.ts
@@ -44,6 +44,9 @@ import {
TalerProtocolDuration,
TalerProtocolTimestamp,
URL,
+ WireFee,
+ WireFeeMap,
+ WireInfo,
} from "@gnu-taler/taler-util";
import {
DenominationRecord,
@@ -51,8 +54,6 @@ import {
ExchangeDetailsRecord,
ExchangeRecord,
WalletStoresV1,
- WireFee,
- WireInfo,
} from "../db.js";
import { TalerError } from "../errors.js";
import { InternalWalletState, TrustInfo } from "../internal-wallet-state.js";
@@ -276,7 +277,7 @@ async function validateWireInfo(
throw Error("exchange acct signature invalid");
}
}
- const feesForType: { [wireMethod: string]: WireFee[] } = {};
+ const feesForType: WireFeeMap = {};
for (const wireMethod of Object.keys(wireInfo.fees)) {
const feeList: WireFee[] = [];
for (const x of wireInfo.fees[wireMethod]) {