-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Add CreateValidator and EditValidator in REST #5182
Add CreateValidator and EditValidator in REST #5182
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.
Thanks @preminem this looks great. I have one question only. Also, could you add an entry on the CHANGELOG.md
under ### Features
with a * (rest)
tag 🙏 ?
x/staking/client/rest/tx.go
Outdated
ValidatorAddress sdk.ValAddress `json:"address" yaml:"address"` | ||
Description types.Description `json:"description" yaml:"description"` | ||
CommissionRate *sdk.Dec `json:"commission_rate" yaml:"commission_rate"` | ||
MinSelfDelegation *sdk.Int `json:"min_self_delegation" yaml:"min_self_delegation"` |
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 noticed this struct has a pointer while MinSelfDelegation
from CreateValidatorRequest
doesn't. Why the difference ?
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.
This is an oversight and has been fixed.I also added change log as you said.
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.
Amazing, thank you @preminem!
We're completely revamping our swagger documentation. Would you mind rebasing and targetting this PR against bez/2179-auto-swagger
instead of master
? Add the annotations to createValidatorHandlerFn
.
Codecov Report
@@ Coverage Diff @@
## bez/2179-auto-swagger #5182 +/- ##
=========================================================
+ Coverage 53.35% 53.36% +0.01%
=========================================================
Files 290 290
Lines 17696 17696
=========================================================
+ Hits 9441 9443 +2
+ Misses 7518 7516 -2
Partials 737 737 |
294f84e
to
e6dd5ca
Compare
Done. But the corresponding swagger documentation still needs some work. |
Co-Authored-By: Alexander Bezobchuk <[email protected]>
Co-Authored-By: Alexander Bezobchuk <[email protected]>
Co-Authored-By: Alexander Bezobchuk <[email protected]>
Co-Authored-By: Alexander Bezobchuk <[email protected]>
Co-Authored-By: Bot from GolangCI <[email protected]>
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.
ACK 🎉
Closes #5113
For Admin Use: