-
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
refactor(types)!: remove IntProto
and DecProto
#16918
Conversation
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! prob need to run make lint-fix
to make the linter happy.
A PR is needed to v050 branch as well as a follow-up to deprecate them (so it doesn't get deleted in v051 without a warning).
@@ -1,9 +0,0 @@ | |||
package types | |||
|
|||
func (ip IntProto) String() string { |
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.
Can you make a PR targeting v0.50 branch that adds the deprecated flag to theses and a proto annotation?
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.
So, we don't want to merge it directly to v0.50?
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.
I suppose we could too. Have you used sourcegraph / gh search to verify no one depends on it?
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.
After a quick search I think the best path is to deprecate in v0.50 and removing in main.
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.
so, is anyone using it?
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.
- https://github.com/terra-money/classic-core/blob/main/x/treasury/keeper/keeper.go#L127
- https://github.com/cosmos/ibc-go/blob/main/modules/apps/transfer/keeper/keeper.go#L198-L199
Yeah but it is easy to replace. Hence the deprecating first.
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.
OK, will handle that once this is merged.
Tests are flaky, for example:
|
need one more review |
IntProto
and DecProto
Description
Closes: #15949
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