diff options
author | Florian Dold <florian@dold.me> | 2022-09-16 17:35:06 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-16 17:35:06 +0200 |
commit | 183c83661454cfb75ee6d2969b7529619d9a6226 (patch) | |
tree | 3494f517161f0093bfffd51b6f259fdd689c38e2 /packages/taler-util | |
parent | 16e7814445d57c2494ddaf3aaf11d60abb2b036b (diff) | |
download | wallet-core-183c83661454cfb75ee6d2969b7529619d9a6226.tar.xz |
-wallet-core: merge DenominationInfo and DenomInfo
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/walletTypes.ts | 17 |
1 files changed, 2 insertions, 15 deletions
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<WireInfo> => .property("accounts", codecForList(codecForExchangeAccount())) .build("codecForWireInfo"); -const codecForDenominationInfo = (): Codec<DenominationInfo> => - buildCodecForObject<DenominationInfo>() - .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. */ |