From f4ec5b1a32193744e439c04faca0b3d31f49c2bc Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 12 May 2021 16:18:32 +0200 Subject: implement currencies subcommand --- packages/taler-wallet-core/src/wallet.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-core/src/wallet.ts') 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 { const exchanges: (ExchangeListItem | undefined)[] = await this.db .iter(Stores.exchanges) -- cgit v1.2.3