Granola-Team / mina-indexer

The Mina Indexer is a re-imagined version of the software collectively called the "Mina archive node."
Apache License 2.0
16 stars 10 forks source link

Decouple our domain objects from `mina-rs` serialization types for mainnet #265

Open trevorbernard opened 8 months ago

trevorbernard commented 8 months ago

This coupling isn't ideal if we want to support berkeley and the hard fork. I propose we create our own domain objects and add a conversion from mina-rs serialiation types to our own domain objects. This enables us to create conversions for the berkeley precomputed blocks and other sources of blocks like ExternalTransitions.

This also enables us to replace mina-rs serialization with our own hermetic serialization implementation.

robinbb commented 4 months ago

@trevorbernard @jhult Is this now done, at least to a degree necessary to close this issue?

jhult commented 4 months ago

There is still cleanup to combine any duplicate structs. I will work on this.