summaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-clause-schnorr.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-clause-schnorr.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-clause-schnorr.ts19
1 files changed, 10 insertions, 9 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-clause-schnorr.ts b/packages/taler-harness/src/integrationtests/test-clause-schnorr.ts
index a5ad382a7..c104edc85 100644
--- a/packages/taler-harness/src/integrationtests/test-clause-schnorr.ts
+++ b/packages/taler-harness/src/integrationtests/test-clause-schnorr.ts
@@ -17,13 +17,14 @@
/**
* Imports.
*/
+import { TalerMerchantApi } from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { CoinConfig, defaultCoinConfig } from "../harness/denomStructures.js";
import { GlobalTestState } from "../harness/harness.js";
import {
- createSimpleTestkudosEnvironmentV2,
+ createSimpleTestkudosEnvironmentV3,
makeTestPaymentV2,
- withdrawViaBankV2,
+ withdrawViaBankV3,
} from "../harness/helpers.js";
/**
@@ -54,20 +55,20 @@ export async function runClauseSchnorrTest(t: GlobalTestState) {
name: "rsa_dummy",
});
- const { walletClient, bank, exchange, merchant } =
- await createSimpleTestkudosEnvironmentV2(t, coinConfig);
+ const { walletClient, bankClient, exchange, merchant } =
+ await createSimpleTestkudosEnvironmentV3(t, coinConfig);
// Withdraw digital cash into the wallet.
- const wres = await withdrawViaBankV2(t, {
+ const wres = await withdrawViaBankV3(t, {
walletClient,
- bank,
+ bankClient,
exchange,
amount: "TESTKUDOS:20",
});
await wres.withdrawalFinishedCond;
- const order = {
+ const order: TalerMerchantApi.Order = {
summary: "Buy me!",
amount: "TESTKUDOS:5",
fulfillment_url: "taler://fulfillment-success/thx",
@@ -78,7 +79,7 @@ export async function runClauseSchnorrTest(t: GlobalTestState) {
// Test JSON normalization of contract terms: Does the wallet
// agree with the merchant?
- const order2 = {
+ const order2: TalerMerchantApi.Order = {
summary: "Testing “unicode” characters",
amount: "TESTKUDOS:5",
fulfillment_url: "taler://fulfillment-success/thx",
@@ -89,7 +90,7 @@ export async function runClauseSchnorrTest(t: GlobalTestState) {
// Test JSON normalization of contract terms: Does the wallet
// agree with the merchant?
- const order3 = {
+ const order3: TalerMerchantApi.Order = {
summary: "Testing\nNewlines\rAnd\tStuff\nHere\b",
amount: "TESTKUDOS:5",
fulfillment_url: "taler://fulfillment-success/thx",