spn icon indicating copy to clipboard operation
spn copied to clipboard

Implementing `ChangeParam` request

Open lumtis opened this issue 3 years ago • 0 comments

Need https://github.com/tendermint/spn/issues/928 to be implemented first

Add in the available requests the ChangeParam request that allows requesting the modification of a module param

Proposed structure:

type ChangeParam stuct {
  Module string
  Param string
  Value []byte // json structure
}

Example:

{
  Module: "staking"
  Param: "max_validators"
  Value: "42"
}

Request to change the max number of validator param of staking module to 42.

This request can only modify parameters value. It can be argued that we eventually want a request to modify any genesis state value. ChangeParam is a simpler implementation as the path to the value is predictable [module]/params/[name], and those represent the value aimed to be changed from community decision

lumtis avatar Aug 22 '22 11:08 lumtis