diff options
| author | Christian Grothoff <christian@grothoff.org> | 2022-10-13 22:43:22 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2022-10-13 22:43:22 +0200 | 
| commit | 1ee69f6f1d93349a3e576a86c1d93d23ccec28ce (patch) | |
| tree | d63be58b6677e7c5ed562177d44700eccde29018 /src/include | |
| parent | 97b4bd3b34bbdfc825d8f8e58c987ddf56b2e9e2 (diff) | |
-towards returning reserve open deposits in coin history
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/taler_exchangedb_plugin.h | 38 | 
1 files changed, 37 insertions, 1 deletions
| diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index d361d539..0df32241 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1789,6 +1789,31 @@ struct TALER_EXCHANGEDB_PurseDepositListEntry  /** + * Information about a /reserves/$RID/open operation in a coin transaction history. + */ +struct TALER_EXCHANGEDB_ReserveOpenListEntry +{ + +  /** +   * Signature of the reserve. +   */ +  struct TALER_ReserveSignatureP reserve_sig; + +  /** +   * Contribution of the coin to the open fee, including +   * deposit fee. +   */ +  struct TALER_Amount coin_contribution; + +  /** +   * Signature by the coin affirming the open deposit. +   */ +  struct TALER_CoinSpendSignatureP coin_sig; + +}; + + +/**   * Information about a /purses/$PID/deposit operation.   */  struct TALER_EXCHANGEDB_PurseDeposit @@ -1947,7 +1972,12 @@ enum TALER_EXCHANGEDB_TransactionType    /**     * Purse deposit operation.     */ -  TALER_EXCHANGEDB_TT_PURSE_DEPOSIT = 6 +  TALER_EXCHANGEDB_TT_PURSE_DEPOSIT = 6, + +  /** +   * Reserve open deposit operation. +   */ +  TALER_EXCHANGEDB_TT_RESERVE_OPEN = 7  }; @@ -2023,6 +2053,12 @@ struct TALER_EXCHANGEDB_TransactionList       */      struct TALER_EXCHANGEDB_PurseDepositListEntry *purse_deposit; +    /** +     * Coin was used to pay to open a reserve. +     * (#TALER_EXCHANGEDB_TT_RESERVE_OPEN) +     */ +    struct TALER_EXCHANGEDB_ReserveOpenListEntry *reserve_open; +    } details;  }; | 
