Move the current profile constants to chain parameters #171
Labels
kind/enhancement
Enhance an already existing feature; no "New feature" to add
x/profiles
Module that allows to create and manage decentralized social profiles
Milestone
Context
Currently when checking the validity of the profiles when the user creates or edited one, there are the current checks that are performed:
2
and500
characters30
characters1000
charactersWhile all these values have currently worked out pretty good, having them hard coded creates two main problems:
Solution
In order to solve both above mentioned problems, I think we should move them from being hard-coded inside the
keys.go
file to be on-chain parameters. This would allow:In order to do this we can do the same way that other modules do it. A reference can for example be the
x/gov
module of the Cosmos SDK. The references files should be (might not be a complete list):keeper/params.go
types/params.go
Also the params registration should be done inside the
app.go
file as well (app.go
registration for thegov
params).The text was updated successfully, but these errors were encountered: