-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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!: remove some legacy amino stuff needed for #11275 #15299
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.
If we can remove StdTx
altogether, that would make me happy
Can I get another review of this? |
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, but e2e tests are failing because they use some stuff deleted here
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.
Love to see code deletion
… aaronc/11275-amino-cleanup
Are we okay removing these e2e tests? They are for services we do support (amino <-> proto conversion), but using code we want to delete. Hopefully the need for these conversions endpoints has a limited lifespan... |
This is being addressed in #15397 which we should merge 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.
Left one question, we should create a follow up issue to cleanup any docs related to this
@@ -19,7 +19,6 @@ const ( | |||
flagMultisig = "multisig" | |||
flagOverwrite = "overwrite" | |||
flagSigOnly = "signature-only" | |||
flagAmino = "amino" |
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.
Does this effect ledger signing via cli?
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 don't think so. I think it's for generating a StdTx which is no longer needed, but it would be great if someone else can confirm
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.
See lines 422-439 deleted below - that generates a StdTx
. I'm not sure where one would submit that except to a legacy chain. If so, they should have a legacy binary to do that. So I think safe to remove
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.
@alexanderbez does that seem right to you?
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.
Imo we should add a small cli breaking change in changelog for that.
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.
Added changelog entries
Description
Ref: #11275
While doing #15284, I removed a bunch of legacy amino
StdTx
stuff that (I'm pretty sure) is no longer needed and that will be hard to support with the approach in #11275. I pulled those changes into this PR so that reviews are easier. It would be good if reviewers can confirm that nothing essential is removed in this PR. This PR should not remove any amino JSON signing functionality that is currently in use, but ratherStdTx
stuff that as far as I know hasn't been used in years.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