You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If for example I have some param that should be "hardcoded" but also subject to change (for example some constant, some predefined address etc), what is the best way to achieve this in terms of best practices?
Maybe storing it in code, and any change in code would need to go through upgrade anyways, or there is something better, utilizing some singleton like keeper or something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
If for example I have some param that should be "hardcoded" but also subject to change (for example some constant, some predefined address etc), what is the best way to achieve this in terms of best practices?
Maybe storing it in code, and any change in code would need to go through upgrade anyways, or there is something better, utilizing some singleton like keeper or something?
Or using params module combined with governance proposals to update parameters? https://docs.cosmos.network/v0.44/modules/params/
Is there some example of this?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions