aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/backup-types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util/src/backup-types.ts')
-rw-r--r--packages/taler-util/src/backup-types.ts36
1 files changed, 18 insertions, 18 deletions
diff --git a/packages/taler-util/src/backup-types.ts b/packages/taler-util/src/backup-types.ts
index f7bf5ef30..2bfe6b886 100644
--- a/packages/taler-util/src/backup-types.ts
+++ b/packages/taler-util/src/backup-types.ts
@@ -63,7 +63,7 @@
* Imports.
*/
import { DenominationPubKey, UnblindedSignature } from "./taler-types.js";
-import { TalerProtocolDuration, TalerProtocolTimestamp } from "./time.js";
+import { TalerProtocolDuration, TalerProtocolTimestamp, TalerPreciseTimestamp } from "./time.js";
export const BACKUP_TAG = "gnu-taler-wallet-backup-content" as const;
/**
@@ -148,7 +148,7 @@ export interface WalletBackupContentV1 {
* This timestamp should only be advanced if the content
* of the backup changes.
*/
- timestamp: TalerProtocolTimestamp;
+ timestamp: TalerPreciseTimestamp;
/**
* Per-exchange data sorted by exchange master public key.
@@ -274,14 +274,14 @@ export type BackupWgInfo =
*
* Set to undefined if that hasn't happened yet.
*/
- timestamp_reserve_info_posted?: TalerProtocolTimestamp;
+ timestamp_reserve_info_posted?: TalerPreciseTimestamp;
/**
* Time when the reserve was confirmed by the bank.
*
* Set to undefined if not confirmed yet.
*/
- timestamp_bank_confirmed?: TalerProtocolTimestamp;
+ timestamp_bank_confirmed?: TalerPreciseTimestamp;
}
| {
type: BackupWgType.PeerPullCredit;
@@ -315,9 +315,9 @@ export interface BackupWithdrawalGroup {
exchange_base_url: string;
- timestamp_created: TalerProtocolTimestamp;
+ timestamp_created: TalerPreciseTimestamp;
- timestamp_finish?: TalerProtocolTimestamp;
+ timestamp_finish?: TalerPreciseTimestamp;
operation_status: BackupOperationStatus;
@@ -473,9 +473,9 @@ export interface BackupRecoupGroup {
/**
* Timestamp when the recoup was started.
*/
- timestamp_created: TalerProtocolTimestamp;
+ timestamp_created: TalerPreciseTimestamp;
- timestamp_finish?: TalerProtocolTimestamp;
+ timestamp_finish?: TalerPreciseTimestamp;
finish_clock?: TalerProtocolTimestamp;
// FIXME: Use some enum here!
finish_is_failure?: boolean;
@@ -633,14 +633,14 @@ export interface BackupTip {
* Has the user accepted the tip? Only after the tip has been accepted coins
* withdrawn from the tip may be used.
*/
- timestamp_accepted: TalerProtocolTimestamp | undefined;
+ timestamp_accepted: TalerPreciseTimestamp | undefined;
/**
* When was the tip first scanned by the wallet?
*/
- timestamp_created: TalerProtocolTimestamp;
+ timestamp_created: TalerPreciseTimestamp;
- timestamp_finished?: TalerProtocolTimestamp;
+ timestamp_finished?: TalerPreciseTimestamp;
finish_is_failure?: boolean;
/**
@@ -765,9 +765,9 @@ export interface BackupRefreshGroup {
*/
old_coins: BackupRefreshOldCoin[];
- timestamp_created: TalerProtocolTimestamp;
+ timestamp_created: TalerPreciseTimestamp;
- timestamp_finish?: TalerProtocolTimestamp;
+ timestamp_finish?: TalerPreciseTimestamp;
finish_is_failure?: boolean;
}
@@ -940,7 +940,7 @@ export interface BackupPurchase {
* Timestamp of the first time that sending a payment to the merchant
* for this purchase was successful.
*/
- timestamp_first_successful_pay: TalerProtocolTimestamp | undefined;
+ timestamp_first_successful_pay: TalerPreciseTimestamp | undefined;
/**
* Signature by the merchant confirming the payment.
@@ -952,13 +952,13 @@ export interface BackupPurchase {
*/
pos_confirmation: string | undefined;
- timestamp_proposed: TalerProtocolTimestamp;
+ timestamp_proposed: TalerPreciseTimestamp;
/**
* When was the purchase made?
* Refers to the time that the user accepted.
*/
- timestamp_accepted: TalerProtocolTimestamp | undefined;
+ timestamp_accepted: TalerPreciseTimestamp | undefined;
/**
* Pending refunds for the purchase. A refund is pending
@@ -1186,7 +1186,7 @@ export interface BackupExchange {
*
* Used to facilitate automatic merging.
*/
- update_clock: TalerProtocolTimestamp;
+ update_clock: TalerPreciseTimestamp;
}
/**
@@ -1258,7 +1258,7 @@ export interface BackupExchangeDetails {
/**
* Timestamp when the ToS has been accepted.
*/
- tos_accepted_timestamp: TalerProtocolTimestamp | undefined;
+ tos_accepted_timestamp: TalerPreciseTimestamp | undefined;
}
export enum BackupProposalStatus {