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

types: add kv type #6897

Merged
merged 10 commits into from
Jul 30, 2020
Merged

types: add kv type #6897

merged 10 commits into from
Jul 30, 2020

Conversation

tac0turtle
Copy link
Member

Description

This pr creates a kv type directly in the sdk. Before this was in tendermint, but it was removed in 0.34.

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@tac0turtle tac0turtle requested a review from colin-axner July 30, 2020 12:55
simapp/utils_test.go Outdated Show resolved Hide resolved
@tac0turtle tac0turtle added the A:automerge Automatically merge PR once all prerequisites pass. label Jul 30, 2020
@codecov
Copy link

codecov bot commented Jul 30, 2020

Codecov Report

Merging #6897 into master will increase coverage by 0.64%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6897      +/-   ##
==========================================
+ Coverage   60.75%   61.40%   +0.64%     
==========================================
  Files         381      517     +136     
  Lines       24870    32050    +7180     
==========================================
+ Hits        15110    19679    +4569     
- Misses       8604    10802    +2198     
- Partials     1156     1569     +413     

@@ -29,7 +29,7 @@ func TestRejectUnknownFieldsRepeated(t *testing.T) {
F: &testdata.TestVersion2{
A: &testdata.TestVersion2{
B: &testdata.TestVersion2{
H: []*testdata.TestVersion2{
H: []*testdata.TestVersion1{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@odeke-em can you check this? when I ran make proto-gen it forced me to make these changes

@mergify mergify bot merged commit 617b822 into master Jul 30, 2020
@mergify mergify bot deleted the marko/addkv branch July 30, 2020 14:53
@@ -0,0 +1,10 @@
syntax = "proto3";
package cosmos.kv;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this needs a new package to itself, but I guess it's okay...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can change, let me know what you prefer

larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
* add kv type

* add changelog entry

* fix build

* replace sdkkv with kv

* revert change

* fix some tests

* proto-gen

* fix tests

Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:Types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants