diff options
| author | Christian Grothoff <grothoff@gnunet.org> | 2022-10-05 16:13:12 +0200 | 
|---|---|---|
| committer | Christian Grothoff <grothoff@gnunet.org> | 2022-10-05 16:13:12 +0200 | 
| commit | 67d6bbd7365cd347dfac53d7529ca851439de8c3 (patch) | |
| tree | 5f55b0a9968da2adc7d8455ef80e29c59b6052fe | |
| parent | 787b5b4544a027747faaab7c751a128bb9a1142a (diff) | |
-work on header towards taler-auditor-sync for new tables
| m--------- | contrib/gana | 0 | ||||
| -rw-r--r-- | src/exchangedb/common-0001.sql | 2 | ||||
| -rw-r--r-- | src/include/taler_exchangedb_plugin.h | 58 | 
3 files changed, 59 insertions, 1 deletions
| diff --git a/contrib/gana b/contrib/gana -Subproject 57d96e8e123df90c804a821874fc6cb88671ab7 +Subproject 9dee7d6e8f967fdc58ae224e19ec03989ac35c5 diff --git a/src/exchangedb/common-0001.sql b/src/exchangedb/common-0001.sql index 564bf3b3..21f53110 100644 --- a/src/exchangedb/common-0001.sql +++ b/src/exchangedb/common-0001.sql @@ -2190,7 +2190,7 @@ $$;  COMMENT ON FUNCTION detach_default_partitions    IS 'We need to drop default and create new one before deleting the default partitions -      otherwise constraints get lost too. Might be needed in shardig too'; +      otherwise constraints get lost too. Might be needed in sharding too';  CREATE OR REPLACE FUNCTION drop_default_partitions() diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 7644e45a..971b0372 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -195,9 +195,14 @@ enum TALER_EXCHANGEDB_ReplicatedTable    TALER_EXCHANGEDB_RT_DENOMINATIONS,    TALER_EXCHANGEDB_RT_DENOMINATION_REVOCATIONS,    TALER_EXCHANGEDB_RT_WIRE_TARGETS, +  TALER_EXCHANGEDB_RT_LEGITIMIZATION_PROCESSES, +  TALER_EXCHANGEDB_RT_LEGITIMIZATION_REQUIREMENTS,    TALER_EXCHANGEDB_RT_RESERVES,    TALER_EXCHANGEDB_RT_RESERVES_IN,    TALER_EXCHANGEDB_RT_RESERVES_CLOSE, +  TALER_EXCHANGEDB_RT_RESERVES_OPEN_REQUESTS, +  TALER_EXCHANGEDB_RT_RESERVES_OPEN_DEPOSITS, +  TALER_EXCHANGEDB_RT_RESERVES_CLOSE_REQUESTS,    TALER_EXCHANGEDB_RT_RESERVES_OUT,    TALER_EXCHANGEDB_RT_AUDITORS,    TALER_EXCHANGEDB_RT_AUDITOR_DENOM_SIGS, @@ -283,6 +288,21 @@ struct TALER_EXCHANGEDB_TableData      struct      { +      struct TALER_PaytoHashP h_payto; +      struct GNUNET_TIME_Timestamp expiration_time; +      char *provider_section; +      char *provider_user_id; +      char *provider_legitimization_id; +    } legitimization_processes; + +    struct +    { +      struct TALER_PaytoHashP h_payto; +      char *required_checks; +    } legitimization_requirements; + +    struct +    {        struct TALER_ReservePublicKeyP reserve_pub;        struct GNUNET_TIME_Timestamp expiration_date;        struct GNUNET_TIME_Timestamp gc_date; @@ -303,6 +323,44 @@ struct TALER_EXCHANGEDB_TableData        struct TALER_ReservePublicKeyP reserve_pub;        struct GNUNET_TIME_Timestamp execution_date;        struct TALER_WireTransferIdentifierRawP wtid; +      struct TALER_PaytoHashP wire_target_h_payto; +      struct TALER_Amount amount; +      struct TALER_Amount closing_fee; +    } reserves_close; + +    struct +    { +      struct TALER_ReservePublicKeyP reserve_pub; +      struct GNUNET_TIME_Timestamp request_timestamp; +      struct GNUNET_TIME_Timestamp expiration_date; +      struct TALER_ReserveSignatureP reserve_sig; +      struct TALER_Amount reserve_payment; +      uint32_t requested_purse_limit; +    } reserves_open_requests; + +    struct +    { +      struct TALER_ReservePublicKeyP reserve_pub; +      struct GNUNET_TIME_Timestamp request_timestamp; +      struct TALER_CoinSpendPublicKeyP coin_pub; +      struct TALER_CoinSpendSignatureP coin_sig; +      struct TALER_ReserveSignatureP reserve_sig; +      struct TALER_Amount contribution; +    } reserves_open_deposits; + +    struct +    { +      struct TALER_ReservePublicKeyP reserve_pub; +      struct GNUNET_TIME_Timestamp execution_date; +      struct TALER_ReserveSignatureP reserve_sig; +      struct TALER_PaytoHashP wire_target_h_payto; +    } reserves_close_requests; + +    struct +    { +      struct TALER_ReservePublicKeyP reserve_pub; +      struct GNUNET_TIME_Timestamp execution_date; +      struct TALER_WireTransferIdentifierRawP wtid;        struct TALER_PaytoHashP sender_account_h_payto;        struct TALER_Amount amount;        struct TALER_Amount closing_fee; | 
