-
Notifications
You must be signed in to change notification settings - Fork 103
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
fix(x/ecocredit): register ecocredit v1alpha1 messages #1360
Conversation
83bf5a4
to
35b206b
Compare
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.
LGTM
proto.RegisterType((*Params)(nil), "regen.ecocredit.v1alpha1.Params") | ||
proto.RegisterType((*CreditType)(nil), "regen.ecocredit.v1alpha1.CreditType") | ||
proto.RegisterType((*CreditTypeSeq)(nil), "regen.ecocredit.v1alpha1.CreditTypeSeq") | ||
//proto.RegisterType((*ClassInfo)(nil), "regen.ecocredit.v1alpha1.ClassInfo") |
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 these lines commented?
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.
We register the types here: #1360 (comment)
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.
LGTM
proto.RegisterType((*ClassInfo)(nil), "regen.ecocredit.v1alpha1.ClassInfo") | ||
proto.RegisterType((*BatchInfo)(nil), "regen.ecocredit.v1alpha1.BatchInfo") | ||
proto.RegisterType((*Params)(nil), "regen.ecocredit.v1alpha1.Params") | ||
proto.RegisterType((*CreditType)(nil), "regen.ecocredit.v1alpha1.CreditType") | ||
proto.RegisterType((*CreditTypeSeq)(nil), "regen.ecocredit.v1alpha1.CreditTypeSeq") |
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.
Answering the above question, the types are registered here.
191d5c0
to
5ed8dbe
Compare
* fix(x/ecocredit): register ecocredit v1alpha1 messages * remove ecocredit v2 replace directive (cherry picked from commit 05c29d1) # Conflicts: # CHANGELOG.md # x/ecocredit/module/module.go
Lint passed here but failed on master 🤔 https://github.com/regen-network/regen-ledger/runs/7905079611?check_suite_focus=true |
… (#1364) * fix(x/ecocredit): register ecocredit v1alpha1 messages (#1360) * fix(x/ecocredit): register ecocredit v1alpha1 messages * remove ecocredit v2 replace directive (cherry picked from commit 05c29d1) # Conflicts: # CHANGELOG.md # x/ecocredit/module/module.go * release branch revisions Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
Description
Closes: #1356
This pull request registers ecocredit v1alpha1 messages to allow for historical events to be queried.
The proto break check is failing although this is not a proto breaking change, only the file option was updated. Implementing the messages any further does not seem necessary given we do not register the messages to the msg server. This should qualify for a point release, no API or state machine breaking changes, but let me know if there are any concerns.
Manual Test: https://hackmd.io/USRbzfq1QwSn2oJcXwQ3Xg
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change