harness: specify use_stefan in merchant backend
This commit is contained in:
parent
9be4034cc0
commit
d0d19c2e88
@ -1958,14 +1958,8 @@ export class MerchantService implements MerchantServiceInterface {
|
|||||||
name: instanceConfig.name,
|
name: instanceConfig.name,
|
||||||
address: instanceConfig.address ?? {},
|
address: instanceConfig.address ?? {},
|
||||||
jurisdiction: instanceConfig.jurisdiction ?? {},
|
jurisdiction: instanceConfig.jurisdiction ?? {},
|
||||||
default_max_wire_fee:
|
// FIXME: In some tests, we might want to make this configurable
|
||||||
instanceConfig.defaultMaxWireFee ??
|
use_stefan: true,
|
||||||
`${this.merchantConfig.currency}:1.0`,
|
|
||||||
default_wire_fee_amortization:
|
|
||||||
instanceConfig.defaultWireFeeAmortization ?? 3,
|
|
||||||
default_max_deposit_fee:
|
|
||||||
instanceConfig.defaultMaxDepositFee ??
|
|
||||||
`${this.merchantConfig.currency}:1.0`,
|
|
||||||
default_wire_transfer_delay:
|
default_wire_transfer_delay:
|
||||||
instanceConfig.defaultWireTransferDelay ??
|
instanceConfig.defaultWireTransferDelay ??
|
||||||
Duration.toTalerProtocolDuration(
|
Duration.toTalerProtocolDuration(
|
||||||
@ -2007,9 +2001,6 @@ export interface PartialMerchantInstanceConfig {
|
|||||||
paytoUris: string[];
|
paytoUris: string[];
|
||||||
address?: unknown;
|
address?: unknown;
|
||||||
jurisdiction?: unknown;
|
jurisdiction?: unknown;
|
||||||
defaultMaxWireFee?: string;
|
|
||||||
defaultMaxDepositFee?: string;
|
|
||||||
defaultWireFeeAmortization?: number;
|
|
||||||
defaultWireTransferDelay?: TalerProtocolDuration;
|
defaultWireTransferDelay?: TalerProtocolDuration;
|
||||||
defaultPayDelay?: TalerProtocolDuration;
|
defaultPayDelay?: TalerProtocolDuration;
|
||||||
}
|
}
|
||||||
@ -2052,9 +2043,7 @@ export interface MerchantInstanceConfig {
|
|||||||
name: string;
|
name: string;
|
||||||
address: unknown;
|
address: unknown;
|
||||||
jurisdiction: unknown;
|
jurisdiction: unknown;
|
||||||
default_max_wire_fee: string;
|
use_stefan: boolean;
|
||||||
default_max_deposit_fee: string;
|
|
||||||
default_wire_fee_amortization: number;
|
|
||||||
default_wire_transfer_delay: TalerProtocolDuration;
|
default_wire_transfer_delay: TalerProtocolDuration;
|
||||||
default_pay_delay: TalerProtocolDuration;
|
default_pay_delay: TalerProtocolDuration;
|
||||||
}
|
}
|
||||||
|
@ -67,12 +67,10 @@ export async function runMerchantInstancesUrlsTest(t: GlobalTestState) {
|
|||||||
await clientForDefault.createInstance({
|
await clientForDefault.createInstance({
|
||||||
id: "default",
|
id: "default",
|
||||||
address: {},
|
address: {},
|
||||||
default_max_deposit_fee: "TESTKUDOS:1",
|
use_stefan: true,
|
||||||
default_max_wire_fee: "TESTKUDOS:1",
|
|
||||||
default_pay_delay: Duration.toTalerProtocolDuration(
|
default_pay_delay: Duration.toTalerProtocolDuration(
|
||||||
Duration.fromSpec({ seconds: 60 }),
|
Duration.fromSpec({ seconds: 60 }),
|
||||||
),
|
),
|
||||||
default_wire_fee_amortization: 1,
|
|
||||||
default_wire_transfer_delay: Duration.toTalerProtocolDuration(
|
default_wire_transfer_delay: Duration.toTalerProtocolDuration(
|
||||||
Duration.fromSpec({ seconds: 60 }),
|
Duration.fromSpec({ seconds: 60 }),
|
||||||
),
|
),
|
||||||
@ -92,12 +90,10 @@ export async function runMerchantInstancesUrlsTest(t: GlobalTestState) {
|
|||||||
await clientForDefault.createInstance({
|
await clientForDefault.createInstance({
|
||||||
id: "myinst",
|
id: "myinst",
|
||||||
address: {},
|
address: {},
|
||||||
default_max_deposit_fee: "TESTKUDOS:1",
|
|
||||||
default_max_wire_fee: "TESTKUDOS:1",
|
|
||||||
default_pay_delay: Duration.toTalerProtocolDuration(
|
default_pay_delay: Duration.toTalerProtocolDuration(
|
||||||
Duration.fromSpec({ seconds: 60 }),
|
Duration.fromSpec({ seconds: 60 }),
|
||||||
),
|
),
|
||||||
default_wire_fee_amortization: 1,
|
use_stefan: true,
|
||||||
default_wire_transfer_delay: Duration.toTalerProtocolDuration(
|
default_wire_transfer_delay: Duration.toTalerProtocolDuration(
|
||||||
Duration.fromSpec({ seconds: 60 }),
|
Duration.fromSpec({ seconds: 60 }),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user