Skip to content
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

feat(network): param-change #3142

Merged
merged 12 commits into from
Nov 21, 2022
Merged

feat(network): param-change #3142

merged 12 commits into from
Nov 21, 2022

Conversation

aljo242
Copy link
Contributor

@aljo242 aljo242 commented Nov 21, 2022

Closes #2899

Only includes the command logic to send the requests to the chain. There is potential in the future to add some kind of logic to "check" that these param changes are valid.

The flow could be something like:

  • download genesis
  • run test application of this param change
  • call validate-genesis

@aljo242
Copy link
Contributor Author

aljo242 commented Nov 21, 2022

@lubtd

@aljo242 aljo242 changed the base branch from main to chore/update-spn November 21, 2022 16:21
ignite/cmd/network_request_param_change.go Outdated Show resolved Hide resolved
changelog.md Outdated Show resolved Hide resolved
Alex Johnson and others added 2 commits November 21, 2022 17:12
Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
@aljo242 aljo242 requested a review from lumtis November 21, 2022 22:12
@aljo242 aljo242 merged commit 1295dec into chore/update-spn Nov 21, 2022
@aljo242 aljo242 deleted the feat/spn-param-change branch November 21, 2022 22:31
aljo242 added a commit that referenced this pull request Dec 8, 2022
* update spn

* import

* fix

* update mocks

* rename test

* feat(`network`): `param-change` (#3142)

* utd

* add command

* typo

* add test

* changelog

* format

* Update ignite/cmd/network_request_param_change.go

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

* Update changelog.md

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

* refactor: rename command `param-change` into `change-param` (#3169)

* change name

* rename file

* chore: upgrade `spn` (#3177)

* gomod

* gosum

* endpoints (#3196)

* format

* request list

* feat: add `ParamChange` to `ignite n request list/show` (#3233)

* chore: go formatting (#3232)

Co-authored-by: aljo242 <aljo242@users.noreply.github.com>

* request list

* format

* ascii

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aljo242 <aljo242@users.noreply.github.com>

* format

* feat(`network`): param-change apply to genesis (#3208)

* stub out

* prepare logic

* fix test

* Update ignite/services/network/networkchain/prepare.go

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

* refactor WithKeyValueByte

* add detail to error message

* const format string

* format

* add integration test and fix

* add check to command

* format

* finish check code

* improve error msg

* wip

* fix

* format

* remove incorrect test

* Update ignite/pkg/cosmosutil/genesis/genesis.go

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* rename according to review

* optimize appylParamChanges

* basic ModuleParamField test

* format

* revert errors

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* add test

* add test

* flesh out genesis information tests

* format

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aljo242 <aljo242@users.noreply.github.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
* update spn

* import

* fix

* update mocks

* rename test

* feat(`network`): `param-change` (ignite#3142)

* utd

* add command

* typo

* add test

* changelog

* format

* Update ignite/cmd/network_request_param_change.go

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

* Update changelog.md

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

* refactor: rename command `param-change` into `change-param` (ignite#3169)

* change name

* rename file

* chore: upgrade `spn` (ignite#3177)

* gomod

* gosum

* endpoints (ignite#3196)

* format

* request list

* feat: add `ParamChange` to `ignite n request list/show` (ignite#3233)

* chore: go formatting (ignite#3232)

Co-authored-by: aljo242 <aljo242@users.noreply.github.com>

* request list

* format

* ascii

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aljo242 <aljo242@users.noreply.github.com>

* format

* feat(`network`): param-change apply to genesis (ignite#3208)

* stub out

* prepare logic

* fix test

* Update ignite/services/network/networkchain/prepare.go

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>

* refactor WithKeyValueByte

* add detail to error message

* const format string

* format

* add integration test and fix

* add check to command

* format

* finish check code

* improve error msg

* wip

* fix

* format

* remove incorrect test

* Update ignite/pkg/cosmosutil/genesis/genesis.go

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* rename according to review

* optimize appylParamChanges

* basic ModuleParamField test

* format

* revert errors

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* add test

* add test

* flesh out genesis information tests

* format

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aljo242 <aljo242@users.noreply.github.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Network: Support Param Change requests
3 participants