-
Notifications
You must be signed in to change notification settings - Fork 46
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
Improve x/profiles
params structure
#538
Comments
Even though I think these changes are necessaries, while implementing this I felt that these names are too generic and may be a bit confusing in the long run, especially when others will put their hands on the code. type Params struct {
NicknameLimits NicknameLimits
DTagPolicies DTagPolicies
BioLimits BioLimits
}
type NicknameLimits struct {
MinLength sdk.Int
MaxLength sdk.Int
}
type DTagPolicies struct {
ValidityRegEx string
MinLength sdk.Int
MaxLength sdk.Int
}
type BioLimits struct {
MaxLength sdk.Int
} let me know what you think @RiccardoM |
@bragaz I agree these names are more detailed. Can we just use type Params struct {
Nickname NicknameParams
DTag DTagParams
Bio BioParams
} |
Context
Currently the
x/profiles
parameters are represented by the following structures:In my opinion there are a bunch of things that can be improved about these structures:
Params
,Nickname
, etc)Implementation proposal
To improve the structure of the parameters I think we can re-defined them as follows:
The text was updated successfully, but these errors were encountered: