diff options
author | Florian Dold <florian@dold.me> | 2024-03-06 21:15:30 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-07 00:03:59 +0100 |
commit | 7ba1d1f3351e58a331e99337afea0fbedb6eb828 (patch) | |
tree | 60b7a485cd317c1fe55276acdc0e055cd9353bfb /packages/taler-wallet-core/src/db.ts | |
parent | 618caa117111b9fed6a792b6816fc724483eb349 (diff) | |
download | wallet-core-7ba1d1f3351e58a331e99337afea0fbedb6eb828.tar.xz |
refactor coin selection, report maxEffectiveSpendAmount
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index dabc6393d..14621c2d5 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -48,7 +48,6 @@ import { ExchangeGlobalFees, HashCodeString, Logger, - PayCoinSelection, RefreshReason, TalerErrorDetail, TalerPreciseTimestamp, @@ -1207,8 +1206,13 @@ export interface ProposalDownloadInfo { contractTermsMerchantSig: string; } +export interface DbCoinSelection { + coinPubs: string[]; + coinContributions: AmountString[]; +} + export interface PurchasePayInfo { - payCoinSelection: PayCoinSelection; + payCoinSelection: DbCoinSelection; totalPayCost: AmountString; payCoinSelectionUid: string; } @@ -1769,7 +1773,7 @@ export interface DepositGroupRecord { contractTermsHash: string; - payCoinSelection: PayCoinSelection; + payCoinSelection: DbCoinSelection; payCoinSelectionUid: string; @@ -1847,7 +1851,7 @@ export enum PeerPushDebitStatus { Expired = 0x0502_0000, } -export interface PeerPushPaymentCoinSelection { +export interface DbPeerPushPaymentCoinSelection { contributions: AmountString[]; coinPubs: CoinPublicKeyString[]; } @@ -1868,7 +1872,7 @@ export interface PeerPushDebitRecord { totalCost: AmountString; - coinSel: PeerPushPaymentCoinSelection; + coinSel: DbPeerPushPaymentCoinSelection; contractTermsHash: HashCodeString; |