From 83be3173d4933d00a7826bb05c6a661515b0e6f9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 14 Jun 2022 23:04:43 +0200 Subject: -preparatory steps to expand auditor to know about purse and history fees --- src/include/taler_auditordb_plugin.h | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) (limited to 'src/include/taler_auditordb_plugin.h') diff --git a/src/include/taler_auditordb_plugin.h b/src/include/taler_auditordb_plugin.h index 152530626..b0677739b 100644 --- a/src/include/taler_auditordb_plugin.h +++ b/src/include/taler_auditordb_plugin.h @@ -163,6 +163,12 @@ struct TALER_AUDITORDB_ProgressPointReserve */ uint64_t last_purse_merges_serial_id; + /** + * Serial ID of the last purse_deposits + * entry the auditor processed. + */ + uint64_t last_purse_deposits_serial_id; + /** * serial ID of the last account_merges * entry the auditor processed. @@ -979,14 +985,17 @@ struct TALER_AUDITORDB_Plugin * @param master_pub master public key of the exchange * @param reserve_balance amount stored in the reserve * @param withdraw_fee_balance amount the exchange gained in withdraw fees - * due to withdrawals from this reserve + * @param purse_fee_balance amount the exchange gained in purse fees + * @param history_fee_balance amount the exchange gained in history fees * @return transaction status code */ enum GNUNET_DB_QueryStatus (*insert_reserve_summary)(void *cls, const struct TALER_MasterPublicKeyP *master_pub, const struct TALER_Amount *reserve_balance, - const struct TALER_Amount *withdraw_fee_balance); + const struct TALER_Amount *withdraw_fee_balance, + const struct TALER_Amount *purse_fee_balance, + const struct TALER_Amount *history_fee_balance); /** @@ -997,14 +1006,17 @@ struct TALER_AUDITORDB_Plugin * @param master_pub master public key of the exchange * @param reserve_balance amount stored in the reserve * @param withdraw_fee_balance amount the exchange gained in withdraw fees - * due to withdrawals from this reserve + * @param purse_fee_balance amount the exchange gained in purse fees + * @param history_fee_balance amount the exchange gained in history fees * @return transaction status code */ enum GNUNET_DB_QueryStatus (*update_reserve_summary)(void *cls, const struct TALER_MasterPublicKeyP *master_pub, const struct TALER_Amount *reserve_balance, - const struct TALER_Amount *withdraw_fee_balance); + const struct TALER_Amount *withdraw_fee_balance, + const struct TALER_Amount *purse_fee_balance, + const struct TALER_Amount *history_fee_balance); /** @@ -1012,16 +1024,19 @@ struct TALER_AUDITORDB_Plugin * * @param cls the @e cls of this struct with the plugin-specific state * @param master_pub master public key of the exchange - * @param[out] reserve_balance amount stored in the reserve + * @param[out] reserve_balance amount stored in reserves * @param[out] withdraw_fee_balance amount the exchange gained in withdraw fees - * due to withdrawals from this reserve + * @param[out] purse_fee_balance amount the exchange gained in purse fees + * @param[out] history_fee_balance amount the exchange gained in history fees * @return transaction status code */ enum GNUNET_DB_QueryStatus (*get_reserve_summary)(void *cls, const struct TALER_MasterPublicKeyP *master_pub, struct TALER_Amount *reserve_balance, - struct TALER_Amount *withdraw_fee_balance); + struct TALER_Amount *withdraw_fee_balance, + struct TALER_Amount *purse_fee_balance, + struct TALER_Amount *history_fee_balance); /** -- cgit v1.2.3