Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(katana-provider): implement a DB provider #1299

Merged
merged 10 commits into from
Dec 20, 2023
Merged

feat(katana-provider): implement a DB provider #1299

merged 10 commits into from
Dec 20, 2023

Conversation

kariy
Copy link
Member

@kariy kariy commented Dec 17, 2023

This PR adds another storage provider implementation based on MDBX.

Checklist

  • implements all provider traits
  • historical states access
  • add tests for this provider impl
  • fetch state update tests

@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2023

Codecov Report

Attention: 149 lines in your changes are missing coverage. Please review.

Comparison is base (1840d72) 60.31% compared to head (99057cc) 63.67%.
Report is 1 commits behind head on main.

❗ Current head 99057cc differs from pull request most recent head 8eef3d3. Consider uploading reports for the commit 8eef3d3 to get more accurate results

Files Patch % Lines
...es/katana/storage/provider/src/providers/db/mod.rs 87.35% 74 Missing ⚠️
.../katana/storage/provider/src/providers/db/state.rs 65.62% 66 Missing ⚠️
crates/katana/storage/db/src/codecs/postcard.rs 25.00% 3 Missing ⚠️
.../katana/storage/provider/src/traits/transaction.rs 0.00% 3 Missing ⚠️
crates/katana/storage/db/src/models/contract.rs 91.30% 2 Missing ⚠️
crates/katana/storage/db/src/models/storage.rs 98.14% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1299      +/-   ##
==========================================
+ Coverage   60.31%   63.67%   +3.36%     
==========================================
  Files         225      229       +4     
  Lines       18953    19703     +750     
==========================================
+ Hits        11431    12546    +1115     
+ Misses       7522     7157     -365     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kariy kariy marked this pull request as ready for review December 20, 2023 12:23
@kariy kariy merged commit 490dab0 into main Dec 20, 2023
9 checks passed
@kariy kariy deleted the db-provider branch December 20, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants