Offchain Governance Metadata
Cmdv opened this issue · comments
Vincent Orr commented
Currently we are storing the whole of the json
into the Database inside of OffChainVoteDataJson
/ offchainvote
table
which happens around here:
cardano-db-sync/cardano-db-sync/src/Cardano/DbSync/OffChain.hs
Lines 115 to 118 in c5d6b8a
current functionality was introduced in this PR
TLDR currently we:
- fetch offchain metadata
- put it into DB inside
OffChainVoteDataJson
What we'd ideally like is:
- fech offchain metadata
- parse metadata
- put parsed metadata into a new table with same structure as the parsed type
- link newly created row id in
OffChainVoteDataJson
which is currently of the typeText
We can get the expected structure from cardano-foundation/CIPs#632 once it is merged and finalised.
Kostas Dermentzis commented
An initial implementation of this is done at sancho-4-1-0