diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-26 13:24:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-26 13:24:51 +0200 |
commit | efb8c8037b0d9e4d0407e62156b0021f790ad974 (patch) | |
tree | 906c64f536d6b60b41031cdb605bad1b8cf43726 /src/include/taler_exchangedb_plugin.h | |
parent | a92d3aae7bd7f6fe894fb901c351a0ce320c87a3 (diff) |
-implement purses get db sketch
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index cf265c106..27b0d1b0f 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -4547,6 +4547,31 @@ struct TALER_EXCHANGEDB_Plugin /** + * Function called to obtain information about a purse. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param purse_pub public key of the new purse + * @param[out] purse_expiration set to time when the purse will expire + * @param[out] amount set to target amount (with fees) to be put into the purse + * @param[out] deposited set to actual amount put into the purse so far + * @param[out] h_contract_terms set to hash of the contract for the purse + * @param[out] merge_timestamp set to time when the purse was merged, or NEVER if not + * @param[out] deposit_timestamp set to time when the deposited amount reached the target amount, or NEVER if not + * @return transaction status code + */ + enum GNUNET_DB_QueryStatus + (*select_purse)( + void *cls, + const struct TALER_PurseContractPublicKeyP *purse_pub, + struct GNUNET_TIME_Timestamp *purse_expiration, + struct TALER_Amount *amount, + struct TALER_Amount *deposited, + struct TALER_PrivateContractHashP *h_contract_terms, + struct GNUNET_TIME_Timestamp *merge_timestamp, + struct GNUNET_TIME_Timestamp *deposit_timestamp); + + + /** * Function called to reutrn meta data about a purse by the * purse public key. * |