diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-12 20:53:15 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-12 20:53:15 +0100 |
commit | 74433c3e05734aa1194049fcbcaa92c70ce61c74 (patch) | |
tree | d30e79c9ac3fd5720de628f6a9764354ec69c648 /src/headless | |
parent | cc137c87394ec34d2f54d69fe896dfdf3feec5ea (diff) |
refactor: re-structure type definitions
Diffstat (limited to 'src/headless')
-rw-r--r-- | src/headless/helpers.ts | 6 | ||||
-rw-r--r-- | src/headless/merchant.ts | 2 | ||||
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/headless/helpers.ts b/src/headless/helpers.ts index 791bd6ab5..2c0824a7d 100644 --- a/src/headless/helpers.ts +++ b/src/headless/helpers.ts @@ -23,7 +23,7 @@ */ import { Wallet } from "../wallet"; import { MemoryBackend, BridgeIDBFactory, shimIndexedDB } from "idb-bridge"; -import { openTalerDb } from "../db"; +import { openDatabase } from "../db"; import Axios, { AxiosPromise, AxiosResponse } from "axios"; import { HttpRequestLibrary, @@ -36,9 +36,9 @@ import { Bank } from "./bank"; import fs = require("fs"); import { Logger } from "../util/logging"; import { NodeThreadCryptoWorkerFactory } from "../crypto/workers/nodeThreadWorker"; -import { NotificationType, WalletNotification } from "../walletTypes"; import { SynchronousCryptoWorkerFactory } from "../crypto/workers/synchronousWorker"; import { RequestThrottler } from "../util/RequestThrottler"; +import { WalletNotification, NotificationType } from "../types/notifications"; const logger = new Logger("helpers.ts"); @@ -191,7 +191,7 @@ export async function getDefaultNodeWallet( shimIndexedDB(myBridgeIdbFactory); - const myDb = await openTalerDb( + const myDb = await openDatabase( myIdbFactory, myVersionChange, myUnsupportedUpgrade, diff --git a/src/headless/merchant.ts b/src/headless/merchant.ts index 5ce50cb53..6a2d0ad2e 100644 --- a/src/headless/merchant.ts +++ b/src/headless/merchant.ts @@ -23,7 +23,7 @@ * Imports. */ import axios from "axios"; -import { CheckPaymentResponse } from "../talerTypes"; +import { CheckPaymentResponse } from "../types/talerTypes"; /** * Connection to the *internal* merchant backend. diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index d2ace124d..2e2ded52c 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -26,7 +26,7 @@ import { BridgeIDBFactory, MemoryBackend } from "idb-bridge"; import { Logger } from "../util/logging"; import * as Amounts from "../util/amounts"; import { decodeCrock } from "../crypto/talerCrypto"; -import { OperationFailedAndReportedError } from "../wallet-impl/errors"; +import { OperationFailedAndReportedError } from "../operations/errors"; import { Bank } from "./bank"; import { classifyTalerUri, TalerUriType } from "../util/taleruri"; |