-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Enhancement] Reintroduce the MapStore
interface and SimpleMap
and make the Badger
a submodules
#33
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #33 +/- ##
==========================================
- Coverage 83.28% 83.24% -0.05%
==========================================
Files 8 9 +1
Lines 1406 1456 +50
==========================================
+ Hits 1171 1212 +41
- Misses 178 184 +6
- Partials 57 60 +3 ☔ View full report in Codecov by Sentry. |
1af3995
to
24f0def
Compare
@muXxer Let me know if this is what you were looking for from your PR |
5d03b62
to
2e04107
Compare
26bfd24
to
ebd5586
Compare
ae6db39
to
2d215eb
Compare
MapStore
interface and SimpleMap
and make Badger
a submoduleMapStore
interface and SimpleMap
and Badger
a submodules
MapStore
interface and SimpleMap
and Badger
a submodulesMapStore
interface and SimpleMap
and make the Badger
a submodules
@Olshansk what do you think of the new structure re: simplemap making it a submodule and separating the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple small nits and outstanding comments from the previous review, but should be g2g after
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left two more comments, but approving so we can get this in.
@h5law Make sure to resolve conflicts with main and fix the indents. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #33 +/- ##
==========================================
- Coverage 83.28% 83.24% -0.05%
==========================================
Files 8 9 +1
Lines 1406 1456 +50
==========================================
+ Hits 1171 1212 +41
- Misses 178 184 +6
- Partials 57 60 +3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some doc improvements. Please review before merging.
Summary
Human Summary
This PR reintroduces the
MapStore
interface andSimpleMap
implementation of a basic in-memory key-value store and makes the badgerBadgerStore
interface and tests a submodule, in the case where people do not want this dependency.It also updates the Makefile targets and workflows to account for this change in project structure.
AI Summary
Summary generated by Reviewpad on 03 Jan 24 22:49 UTC
This pull request includes several changes across multiple files:
Modifications to the
bulk_test.go
file:simplemap
.smn
andsmv
usingsimplemap.NewSimpleMap()
function instead ofNewKVStore
.bulkOperations
function.Addition of a new file
interfaces.go
in thekvstore
package:MapStore
interface for key-value store functionalities.Addition of a new test file
smt_example_test.go
demonstrating the usage of Sparse Merkle Trie (SMT).Changes to the
fuzz_test.go
file:github.com/pokt-network/smt/kvstore/simplemap
.smn.Stop()
statement.Modifications to the README.md file:
Changes to the
smt.md
file:Database
section.MapStore
andKVStore
interfaces.SimpleMap
andBadger
submodules.Example
section.Addition of the
mapstore.md
file:MapStore
interface and its implementations (SimpleMap
andBadgerV4
).Renaming and restructuring of packages and test names in various files.
Renaming and updating the
kvstore.md
file tobadger-store.md
.Changes to
smt_proofs_test.go
:kvstore
andsimplemap
packages.Changes to
proofs.go
:init()
function.SparseMerkleProof
struct.Addition of the
godoc.go
file to thekvstore
directory.Changes to the Makefile:
Addition of a new test case in the
smst_example_test.go
file demonstrating the usage of thesimplemap
package.Addition of a new file
simplemap.go
implementing thesimplemap
package.Changes to the
smst_utils_test.go
file:Changes to the
godoc.go
file in thesmt
package:Changes to the
smst_proofs_test.go
file:Changes to the
godoc.go
file:Modifications to the
godoc.go
file:Please review these changes in detail and provide any necessary feedback.
Issue
Fixes N/A
Type of change
Please mark the relevant option(s):
Testing
make test_all
make benchmark_{all | suite name}
Required Checklist
godoc
format comments see: tip.golang.org/doc/comment)If Applicable Checklist