summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-12 16:18:32 +0200
committerFlorian Dold <florian@dold.me>2021-05-12 16:18:32 +0200
commitf4ec5b1a32193744e439c04faca0b3d31f49c2bc (patch)
tree4f1573d1a7db68c68d9732654c80130e81a2e709 /packages/taler-wallet-core/src/wallet.ts
parent4da4380480ec7026a1ef8f10589d60669a462497 (diff)
downloadwallet-core-f4ec5b1a32193744e439c04faca0b3d31f49c2bc.tar.gz
wallet-core-f4ec5b1a32193744e439c04faca0b3d31f49c2bc.tar.bz2
wallet-core-f4ec5b1a32193744e439c04faca0b3d31f49c2bc.zip
implement currencies subcommand
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index bf277659e..f69d26e84 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -22,7 +22,11 @@
/**
* Imports.
*/
-import { BackupRecovery, codecForAny, TalerErrorCode } from "@gnu-taler/taler-util";
+import {
+ BackupRecovery,
+ codecForAny,
+ TalerErrorCode,
+} from "@gnu-taler/taler-util";
import { CryptoWorkerFactory } from "./crypto/workers/cryptoApi";
import {
addBackupProvider,
@@ -181,8 +185,8 @@ const builtinCurrencies: CurrencyRecord[] = [
auditors: [
{
auditorPub: "BW9DC48PHQY4NH011SHHX36DZZ3Q22Y6X7FZ1VD1CMZ2PTFZ6PN0",
- baseUrl: "https://auditor.demo.taler.net/",
- expirationStamp: new Date(2027, 1).getTime(),
+ auditorBaseUrl: "https://auditor.demo.taler.net/",
+ uids: ["5P25XF8TVQP9AW6VYGY2KV47WT5Y3ZXFSJAA570GJPX5SVJXKBVG"],
},
],
exchanges: [],
@@ -672,6 +676,7 @@ export class Wallet {
return await this.db.iter(Stores.exchanges).toArray();
}
+
async getExchanges(): Promise<ExchangesListRespose> {
const exchanges: (ExchangeListItem | undefined)[] = await this.db
.iter(Stores.exchanges)