diff options
author | Florian Dold <florian@dold.me> | 2024-03-07 23:38:15 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-07 23:38:15 +0100 |
commit | a63dd3900ab4b5cff6c2d571bae3a85847aa803f (patch) | |
tree | d0b5853c672d79180e335cb238585778d9c43769 /packages/taler-wallet-core/src | |
parent | db97953bdb424c9847b39a27502f67315a266220 (diff) | |
download | wallet-core-a63dd3900ab4b5cff6c2d571bae3a85847aa803f.tar.xz |
remove deprecated function, remove outdated FIXMEs
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/backup/index.ts | 4 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/deposits.ts | 5 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/exchanges.ts | 3 |
3 files changed, 5 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/backup/index.ts b/packages/taler-wallet-core/src/backup/index.ts index 04c53526d..c32ed8b8c 100644 --- a/packages/taler-wallet-core/src/backup/index.ts +++ b/packages/taler-wallet-core/src/backup/index.ts @@ -29,6 +29,7 @@ import { AttentionType, BackupRecovery, Codec, + Duration, EddsaKeyPair, HttpStatusCode, Logger, @@ -55,7 +56,6 @@ import { codecForSyncTermsOfServiceResponse, codecOptional, decodeCrock, - durationFromSpec, eddsaGetPublic, encodeCrock, getRandomBytes, @@ -173,7 +173,7 @@ function getNextBackupTimestamp(): TalerPreciseTimestamp { return AbsoluteTime.toPreciseTimestamp( AbsoluteTime.addDuration( AbsoluteTime.now(), - durationFromSpec({ minutes: 5 }), + Duration.fromSpec({ minutes: 5 }), ), ); } diff --git a/packages/taler-wallet-core/src/deposits.ts b/packages/taler-wallet-core/src/deposits.ts index 2ee452de7..93f70c2ce 100644 --- a/packages/taler-wallet-core/src/deposits.ts +++ b/packages/taler-wallet-core/src/deposits.ts @@ -62,7 +62,6 @@ import { codecForBatchDepositSuccess, codecForTackTransactionAccepted, codecForTackTransactionWired, - durationFromSpec, encodeCrock, getRandomBytes, hashTruncate32, @@ -1200,7 +1199,7 @@ export async function prepareDepositGroup( order_id: "", h_wire: "", pay_deadline: AbsoluteTime.toProtocolTimestamp( - AbsoluteTime.addDuration(now, durationFromSpec({ hours: 1 })), + AbsoluteTime.addDuration(now, Duration.fromSpec({ hours: 1 })), ), merchant: { name: "(wallet)", @@ -1320,7 +1319,7 @@ export async function createDepositGroup( order_id: "", h_wire: wireHash, pay_deadline: AbsoluteTime.toProtocolTimestamp( - AbsoluteTime.addDuration(now, durationFromSpec({ hours: 1 })), + AbsoluteTime.addDuration(now, Duration.fromSpec({ hours: 1 })), ), merchant: { name: "(wallet)", diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts index c44178de8..1fb3a8795 100644 --- a/packages/taler-wallet-core/src/exchanges.ts +++ b/packages/taler-wallet-core/src/exchanges.ts @@ -75,7 +75,6 @@ import { canonicalizeBaseUrl, checkDbInvariant, codecForExchangeKeysJson, - durationFromSpec, durationMul, encodeCrock, hashDenomPub, @@ -1546,7 +1545,7 @@ export async function updateExchangeFromUrlHandler( let minCheckThreshold = AbsoluteTime.addDuration( AbsoluteTime.now(), - durationFromSpec({ days: 1 }), + Duration.fromSpec({ days: 1 }), ); if (refreshCheckNecessary) { |