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

Upgrade to 0.30 SDK #327

Merged
merged 5 commits into from
Feb 7, 2019
Merged

Upgrade to 0.30 SDK #327

merged 5 commits into from
Feb 7, 2019

Conversation

jhernandezb
Copy link
Contributor

@jhernandezb jhernandezb commented Feb 5, 2019

This PR includes

Updates to dependencies

  • cosmos-sdk=v0.30
  • tendermint=v0.29
  • go-amino=0.14.1

Breaking/notable changes in cosmos

  • x/state renamed to x/staking see PR
  • sdk.CodespaceType is now string (usually the name of the module is used) see PR
  • StdSignature no longer serializes AccountNumber and SequenceNumber see PR
  • auth.Account: AccountNumber and SequenceNumber are now uint64
  • Rename MountStoresIAVL to MountStores see PR
  • Minimum fee should be configured in gaid.toml but now they introduced SetMinGasPrices which is not included in v0.30 so left a TODO comment to update in future versions if needed/required see PR
  • server.DefaultAppInit is removed see PR
  • Tendermint private validator file has changed format and file name but the app will handle this and update the file creating two new files priv_validator_key.json and priv_validator.json.bak both added to gitignore
  • CLI got some changes too
  • Moniker prop should be configured in config.toml or will panic at runtime since will fail new validations

@codecov
Copy link

codecov bot commented Feb 5, 2019

Codecov Report

Merging #327 into master will decrease coverage by 1.2%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #327      +/-   ##
==========================================
- Coverage   67.44%   66.23%   -1.21%     
==========================================
  Files          56       61       +5     
  Lines        2559     2654      +95     
==========================================
+ Hits         1726     1758      +32     
- Misses        686      749      +63     
  Partials      147      147
Impacted Files Coverage Δ
x/backing/errors.go 81.81% <ø> (ø) ⬆️
x/game/keeper.go 84.55% <ø> (ø) ⬆️
x/vote/errors.go 23.07% <ø> (ø) ⬆️
x/vote/keeper.go 76.34% <ø> (ø) ⬆️
x/backing/keeper.go 84.83% <ø> (ø) ⬆️
x/category/keeper.go 77.27% <ø> (ø) ⬆️
x/challenge/errors.go 25% <ø> (ø) ⬆️
x/challenge/keeper.go 77.52% <ø> (ø) ⬆️
x/game/errors.go 0% <ø> (ø) ⬆️
x/story/errors.go 64.7% <ø> (ø) ⬆️
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6e798f...975244f. Read the comment docs.

Copy link
Contributor

@shanev shanev left a comment

Choose a reason for hiding this comment

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

utACK. Going to test locally before merging.

Nice job @jhernandezb!

@@ -33,7 +34,7 @@ func TestInvalidStoryIdBackMsg(t *testing.T) {
msg := NewBackStoryMsg(invalidStoryID, validStake, validArgument, validCreator, validPeriod)
err := msg.ValidateBasic()

assert.Equal(t, sdk.CodeType(702), err.Code(), err.Error())
assert.Equal(t, story.CodeInvalidStoryID, err.Code(), err.Error())
Copy link
Contributor

Choose a reason for hiding this comment

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

Much cleaner than the old way. Thank you.

keyBacking: sdk.NewKVStoreKey("backings"),
keyBackingList: sdk.NewKVStoreKey("backingList"),
keyChallenge: sdk.NewKVStoreKey("challenges"),
keyStory: sdk.NewKVStoreKey(story.StoreKey),
Copy link
Contributor

Choose a reason for hiding this comment

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

Excellent. Stringly types be gone.

"github.com/stretchr/testify/assert"
)

func Test_NewUserEmptyPublicKey(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you.

@shanev shanev assigned shanev and jhernandezb and unassigned shanev Feb 7, 2019
@shanev shanev merged commit 72a8760 into master Feb 7, 2019
@jhernandezb jhernandezb deleted the feature/cosmos-v0.30.0-upgrade branch March 4, 2019 17:15
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