-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Migrate x/staking to Protobuf #5600
Changes from 22 commits
dec703b
31311cb
0d2938b
60dc367
f0f6f50
c268a9e
95edc79
46be4b4
7503396
97ac0b5
8e84801
c35939a
febaae8
5b83d9b
0a904f1
2450409
97148e2
da9d51f
11a0d8b
db45cfc
c5a7baa
3e1b445
d31577c
3dcfea6
05ceef7
c84d960
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,7 +180,7 @@ func NewSimApp( | |
app.cdc, keys[supply.StoreKey], app.AccountKeeper, app.BankKeeper, maccPerms, | ||
) | ||
stakingKeeper := staking.NewKeeper( | ||
app.cdc, keys[staking.StoreKey], app.BankKeeper, app.SupplyKeeper, app.subspaces[staking.ModuleName], | ||
staking.ModuleCdc, keys[staking.StoreKey], app.BankKeeper, app.SupplyKeeper, app.subspaces[staking.ModuleName], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is the ModuleCdc being used here? I thought we were trying to deprecate those anyway, and wouldn't the app codec necessarily include everything ModuleCdc has? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, eventually in the app constructor we will pass a singular codec that fulfills all the module interfaces. However, we can't really do this until we wrap up all the modules. I suppose I can start that groundwork here (singular codec) 👍 . There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've created There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, makes sense from what I've seen so far. |
||
) | ||
app.MintKeeper = mint.NewKeeper( | ||
app.cdc, keys[mint.StoreKey], app.subspaces[mint.ModuleName], &stakingKeeper, | ||
|
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.
Why is golang/protobuf required? This likely means there's a directive needed to make a golang/protobuf type point to a gogo/protobuf type.
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.
Because of our dependency on
e.g.
In addition, gogo proto itself depends on
google/protobuf
. Does gogo proto itself provide these? If so, what advantage is there with one over the other?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.
You need this in protocgen.sh:
See https://github.com/gogo/protobuf#more-speed-and-more-generated-code