ethereum-oasis-op / baseline

The Baseline Protocol is an open source initiative that combines advances in cryptography, messaging, and distributed ledger technology to enable confidential and complex coordination between enterprises while keeping data in systems of record. This repo serves as the main repo for the Baseline Protocol, containing core packages, examples, and reference implementations.
https://docs.baseline-protocol.org
Other
576 stars 237 forks source link

Feat/bpi account storage prisma poc #732

Closed ognjenkurtic closed 1 year ago

ognjenkurtic commented 1 year ago

Description

From POC it turned into a full implementation of state tree leaf storage after the execution of a transaction. It relies on the previous implementation of merkle tree agent and storage agent to perform marshaling of the state tree to a text field in the DB - merkelized path pattern is not suitable for our current use case as it too complex and we can rely on state tree leaf index to store accompanying data for the leaf. Storage of this data is also implemented as part of the PR. Added a bunch of TODOs for upcoming milestone. Prisma is upgraded to version 5 as part of this PR as well.

Related Issue

702

Motivation and Context

Because having a BPI without state is like having a kafana without cigarette smoke.

How Has This Been Tested

Not tested yes. Will be tested as part of #729 with e2e tests and with unit tests as part of milestone 5 once prisma mocking is implemented.

Screenshots (if appropriate)

Types of changes

Checklist

Therecanbeonlyone1969 commented 1 year ago

@ognjenkurtic good to review?

ognjenkurtic commented 1 year ago

@ognjenkurtic good to review?

Yes now, i rebased main. @Therecanbeonlyone1969 @Kasshern @biscuitdey

ognjenkurtic commented 1 year ago

@Kasshern @biscuitdey addressed all the comments i think. Please rereview.