-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Gateway] Add min_stake
gateway module param
#809
base: main
Are you sure you want to change the base?
Conversation
65e0659
to
59b9b2d
Compare
5e9c013
to
6e345d5
Compare
59b9b2d
to
ae16cf3
Compare
6783b88
to
7e66b1d
Compare
## Summary Ports the `MsgUpdateParams` and `MsgUpdateParam` E2E tests to integration tests, improving execution speed and maintainability. ## Depends on - #827 - #820 - #821 - #815 ## Dependents - #809 ## Issue - #799 ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [ ] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [x] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [x] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [x] I create and reference any new tickets, if applicable - [x] I have left TODOs throughout the codebase, if applicable --------- Co-authored-by: Daniel Olshansky <[email protected]> Co-authored-by: red-0ne <[email protected]>
ae16cf3
to
f7a6e5b
Compare
e4cc6df
to
7b9c71a
Compare
7b9c71a
to
1e46e35
Compare
1e46e35
to
85019ff
Compare
d00b420
to
0373fa2
Compare
d6b5e0a
to
1ac6c48
Compare
min_stake_gateway
gateway module parammin_stake
gateway module param
min_stake
gateway module parammin_stake
gateway module param
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 a few change requests but looks good overall.
|
||
// Perform a global validation on all params, which includes the updated param. | ||
// This is needed to ensure that the updated param is valid in the context of all other params. | ||
if err := params.Validate(); err != nil { |
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 err := params.Validate(); err != nil { | |
if err := params.ValidateBasic(); err != nil { |
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 chose not to rename it this time. My rationale is that it requires changing it in lots of other places which is not conducive to making the "adding parameters" step-by-step instructions any more concise. 😅
Do you have a strong opinion on this and/or a rationale that you could share?
expectedErr: gatewaytypes.ErrGatewayParamInvalid.Wrapf("invalid type for %s: int64; expected *cosmostypes.Coin", gatewaytypes.ParamMinStake), | ||
}, | ||
{ | ||
desc: "MinStake less than zero", |
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.
Shouldn't we validate that it's greater than zero?
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.
Yes; however, the test descriptions are describing the test case. In this case, the min stake is less than zero. I was aiming for consistency with other tests but we can change it (and document it).
Do you have a principled way to think about how we should be phrasing test cases / scenarios?
Co-authored-by: Redouane Lakrache <[email protected]>
…e-param' into issues/612/param/min-stake-gateway * pokt/issues/612/chore/gateway-msg-update-param: chore: review feedback improvements [Docs] Update README(s) (#842)
## Summary ``` ignite scaffold message update-param --module gateway --signer authority name as_type --response params ``` Adds the `MsgUpdateParam` message so that the gateway module may update individual parameters. The gateway module's `min_stake` param will be added in #809. ## Issue - #612 ## Type of change Select one or more from the following: - [x] New feature, functionality or library - [x] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [ ] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [ ] I have tested my changes using the available tooling - [ ] I have commented my code - [ ] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable --------- Co-authored-by: Redouane Lakrache <[email protected]>
…ake-gateway * pokt/main: [Gateway] chore: add `MsgUpdateParam` to gateway module (#808)
Summary
Adds the
min_stake_gateway
param to the gateway.Depends on
MsgUpdateParam
to gateway module #808IntegrationAppSuite
#827Issue
Type of change
Select one or more from the following:
consensus-breaking
label if so. See [Infra] Automatically add theconsensus-breaking
label #791 for detailsTesting
make docusaurus_start
; only needed if you make doc changesmake go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR.Sanity Checklist