From 183c83661454cfb75ee6d2969b7529619d9a6226 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 16 Sep 2022 17:35:06 +0200 Subject: -wallet-core: merge DenominationInfo and DenomInfo --- packages/taler-util/src/walletTypes.ts | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'packages/taler-util') diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts index 6dcaac78d..8c6ec7431 100644 --- a/packages/taler-util/src/walletTypes.ts +++ b/packages/taler-util/src/walletTypes.ts @@ -682,21 +682,6 @@ const codecForWireInfo = (): Codec => .property("accounts", codecForList(codecForExchangeAccount())) .build("codecForWireInfo"); -const codecForDenominationInfo = (): Codec => - buildCodecForObject() - .property("denomPubHash", codecForString()) - .property("value", codecForAmountJson()) - .property("feeWithdraw", codecForAmountJson()) - .property("feeDeposit", codecForAmountJson()) - .property("feeRefresh", codecForAmountJson()) - .property("feeRefund", codecForAmountJson()) - .property("stampStart", codecForTimestamp) - .property("stampExpireWithdraw", codecForTimestamp) - .property("stampExpireLegal", codecForTimestamp) - .property("stampExpireDeposit", codecForTimestamp) - .property("exchangeBaseUrl", codecForString()) - .build("codecForDenominationInfo"); - export interface DenominationInfo { /** * Value of one coin of the denomination. @@ -709,6 +694,8 @@ export interface DenominationInfo { */ denomPubHash: string; + denomPub: DenominationPubKey; + /** * Fee for withdrawing. */ -- cgit v1.2.3