hashgraph / hedera-mirror-node

Hedera Mirror Node archives data from consensus nodes and serves it via an API
Apache License 2.0
128 stars 108 forks source link

Implement `ContractStorageReadableKVState` #9450

Open bilyana-gospodinova opened 6 days ago

bilyana-gospodinova commented 6 days ago

Description: As part of the implementation for the reusable services we need to implement ContractStorageReadableKVState. It reads contract storage related data and converts slotValue to SlotValue PBJ type. This PR copies some changes from https://github.com/hashgraph/hedera-mirror-node/pull/9414 which is not merged yet.

Fixes https://github.com/hashgraph/hedera-mirror-node/issues/9254

Checklist

codecov[bot] commented 6 days ago

Codecov Report

Attention: Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.57%. Comparing base (50a5a7e) to head (cccccf8). Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
.../java/com/hedera/services/utils/EntityIdUtils.java 66.66% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #9450 +/- ## ========================================= Coverage 92.57% 92.57% - Complexity 7047 7056 +9 ========================================= Files 914 916 +2 Lines 29831 29890 +59 Branches 3773 3773 ========================================= + Hits 27616 27672 +56 - Misses 1445 1446 +1 - Partials 770 772 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 4 hours ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud