aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-01 13:52:08 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-01 13:52:46 +0530
commitaa481e42675fb7c4dcbbeec0ba1c61e1953b9596 (patch)
treeb1283f27713b9ff8619773a96b775a263e4aea18 /src/wallet.ts
parentb37c98346d407c749a5cd971f798428c42b248c3 (diff)
downloadwallet-core-aa481e42675fb7c4dcbbeec0ba1c61e1953b9596.tar.xz
use wallet's http lib for test balance withdrawal, remove redundant integration tests
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index 758336c58..4d22bd591 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -113,6 +113,7 @@ import {
TransactionsResponse,
} from "./types/transactions";
import { getTransactions } from "./operations/transactions";
+import { withdrawTestBalance } from "./operations/testing";
const builtinCurrencies: CurrencyRecord[] = [
{
@@ -868,4 +869,13 @@ export class Wallet {
): Promise<TransactionsResponse> {
return getTransactions(this.ws, request);
}
+
+
+ async withdrawTestBalance(
+ amount = "TESTKUDOS:10",
+ bankBaseUrl = "https://bank.test.taler.net/",
+ exchangeBaseUrl = "https://exchange.test.taler.net/",
+ ): Promise<void> {
+ await withdrawTestBalance(this.ws, amount, bankBaseUrl, exchangeBaseUrl);
+ }
}