summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-16 17:35:06 +0200
committerFlorian Dold <florian@dold.me>2022-09-16 17:35:06 +0200
commit183c83661454cfb75ee6d2969b7529619d9a6226 (patch)
tree3494f517161f0093bfffd51b6f259fdd689c38e2 /packages/taler-util/src/walletTypes.ts
parent16e7814445d57c2494ddaf3aaf11d60abb2b036b (diff)
downloadwallet-core-183c83661454cfb75ee6d2969b7529619d9a6226.tar.gz
wallet-core-183c83661454cfb75ee6d2969b7529619d9a6226.tar.bz2
wallet-core-183c83661454cfb75ee6d2969b7529619d9a6226.zip
-wallet-core: merge DenominationInfo and DenomInfo
Diffstat (limited to 'packages/taler-util/src/walletTypes.ts')
-rw-r--r--packages/taler-util/src/walletTypes.ts17
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.
*/