diff options
author | Sebastian <sebasjm@gmail.com> | 2022-08-26 01:08:51 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-08-26 01:09:47 -0300 |
commit | eef2d4702019b9de64efc01fff097b437e65ce39 (patch) | |
tree | 586171c1391361ca18ffda8cdddd6d62d120b6eb /packages/taler-wallet-core | |
parent | 30e8fd83c256826fc995edae499bf8bb6b60b7f2 (diff) | |
download | wallet-core-eef2d4702019b9de64efc01fff097b437e65ce39.tar.xz |
exchange selection: timeline done
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/internal-wallet-state.ts | 55 |
1 files changed, 3 insertions, 52 deletions
diff --git a/packages/taler-wallet-core/src/internal-wallet-state.ts b/packages/taler-wallet-core/src/internal-wallet-state.ts index e82bc139b..575e7553c 100644 --- a/packages/taler-wallet-core/src/internal-wallet-state.ts +++ b/packages/taler-wallet-core/src/internal-wallet-state.ts @@ -36,6 +36,7 @@ import { DenominationPubKey, TalerProtocolTimestamp, CancellationToken, + DenominationInfo, } from "@gnu-taler/taler-util"; import { CryptoDispatcher } from "./crypto/workers/cryptoDispatcher.js"; import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js"; @@ -124,64 +125,14 @@ export interface RecoupOperations { ): Promise<void>; } -export interface DenomInfo { - /** - * Value of one coin of the denomination. - */ - value: AmountJson; - +export type DenomInfo = DenominationInfo & { /** * The denomination public key. */ denomPub: DenominationPubKey; - - /** - * Hash of the denomination public key. - * Stored in the database for faster lookups. - */ - denomPubHash: string; - - /** - * Fee for withdrawing. - */ - feeWithdraw: AmountJson; - - /** - * Fee for depositing. - */ - feeDeposit: AmountJson; - - /** - * Fee for refreshing. - */ - feeRefresh: AmountJson; - - /** - * Fee for refunding. - */ - feeRefund: AmountJson; - - /** - * Validity start date of the denomination. - */ - stampStart: TalerProtocolTimestamp; - - /** - * Date after which the currency can't be withdrawn anymore. - */ - stampExpireWithdraw: TalerProtocolTimestamp; - - /** - * Date after the denomination officially doesn't exist anymore. - */ - stampExpireLegal: TalerProtocolTimestamp; - - /** - * Data after which coins of this denomination can't be deposited anymore. - */ - stampExpireDeposit: TalerProtocolTimestamp; } + export type NotificationListener = (n: WalletNotification) => void; /** |