Add a way to get UD history
One of the indexer important feature (and most bugged in Cesium v1 datapods) is the UD history. It would be nice to implement something server-side to make issues like clients/cesium-grp/cesium2s#10 easier to handle.
- it would be quite resource intensive to add one UD entry for each 10 000 members every day (at every UD)
- with the membership history (MembershipCreation, MembershipRemoval) and UD history (UniversalDividend) we have all the data we need to compute the individual UD history
We could take inspiration from what Manutopik did on transaction timeseries: https://git.duniter.org/nodes/duniter-indexer/-/blob/12cfed8e22ef95531ab3150bb52c9b51926051b3/hasura/migrations/default/1671158661370_create_table_public_transaction_timeserie/up.sql and build a virtual postgres table with SQL function. This way, the UD history could be computed on the fly from the membership history and ud history.
To know which UDs have been claimed and which did not yet (to adjust displayed amount), we could rely on rpc "firstEligibleUd" (we have to fix nodes/rust/duniter-v2s#180 (closed) before), or add it to the indexer as well.