From a398959670d56f5ecd3ef58abc85f14c55c8a427 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 21 Sep 2022 21:13:31 +0200 Subject: wallet-core: use more numeric fields --- packages/taler-wallet-core/src/operations/backup/import.ts | 6 ++++++ packages/taler-wallet-core/src/operations/pending.ts | 2 -- packages/taler-wallet-core/src/operations/refresh.ts | 1 + packages/taler-wallet-core/src/operations/tip.ts | 1 + packages/taler-wallet-core/src/operations/withdraw.ts | 3 +++ 5 files changed, 11 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core/src/operations') diff --git a/packages/taler-wallet-core/src/operations/backup/import.ts b/packages/taler-wallet-core/src/operations/backup/import.ts index 3a92273df..9997dd09d 100644 --- a/packages/taler-wallet-core/src/operations/backup/import.ts +++ b/packages/taler-wallet-core/src/operations/backup/import.ts @@ -285,6 +285,10 @@ export async function importCoin( coinSource, // FIXME! maxAge: AgeRestriction.AGE_UNRESTRICTED, + // FIXME! + ageCommitmentProof: undefined, + // FIXME! + allocation: undefined, }; if (coinRecord.status === CoinStatus.Fresh) { await makeCoinAvailable(ws, tx, coinRecord); @@ -655,6 +659,8 @@ export async function importBackup( repurchaseProposalId: backupProposal.repurchase_proposal_id, download, proposalStatus, + // FIXME! + downloadSessionId: undefined, }); } } diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts index 18e8ec83b..0dcd09e25 100644 --- a/packages/taler-wallet-core/src/operations/pending.ts +++ b/packages/taler-wallet-core/src/operations/pending.ts @@ -28,8 +28,6 @@ import { BackupProviderStateTag, RefreshCoinStatus, OperationStatus, - WithdrawalGroupRecord, - WithdrawalGroupStatus, OperationStatusRange, } from "../db.js"; import { diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 55070618f..9fe2e6a8f 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -682,6 +682,7 @@ async function refreshReveal( coinEvHash: pc.coinEvHash, maxAge: pc.maxAge, ageCommitmentProof: pc.ageCommitmentProof, + allocation: undefined, }; coins.push(coin); diff --git a/packages/taler-wallet-core/src/operations/tip.ts b/packages/taler-wallet-core/src/operations/tip.ts index a0fd8d328..bd5ff51e7 100644 --- a/packages/taler-wallet-core/src/operations/tip.ts +++ b/packages/taler-wallet-core/src/operations/tip.ts @@ -320,6 +320,7 @@ export async function processTip( coinEvHash: planchet.coinEvHash, maxAge: AgeRestriction.AGE_UNRESTRICTED, ageCommitmentProof: planchet.ageCommitmentProof, + allocation: undefined, }); } diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index ce910363f..cedb62361 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -834,6 +834,7 @@ async function processPlanchetVerifyAndStoreCoin( }, maxAge: planchet.maxAge, ageCommitmentProof: planchet.ageCommitmentProof, + allocation: undefined, }; const planchetCoinPub = planchet.coinPub; @@ -1832,6 +1833,8 @@ export async function acceptWithdrawalFromUri( exchangePaytoUri, talerWithdrawUri: req.talerWithdrawUri, confirmUrl: withdrawInfo.confirmTransferUrl, + timestampBankConfirmed: undefined, + timestampReserveInfoPosted: undefined, }, }, restrictAge: req.restrictAge, -- cgit v1.2.3