Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ModuleName is the name of the module
ModuleName = "paramfilter"
)
Variables ¶
View Source
var ErrBlockedParameter = sdkerrors.Register(ModuleName, baseErrorCode, "parameter can not be modified")
ErrBlockedParameter is the error wrapped when a proposal to change a blocked parameter is submitted.
Functions ¶
This section is empty.
Types ¶
type ParamBlockList ¶
type ParamBlockList struct {
// contains filtered or unexported fields
}
ParamBlockList keeps track of parameters that cannot be changed by governance proposals
func NewParamBlockList ¶
func NewParamBlockList(blockedParams ...[2]string) ParamBlockList
NewParamBlockList creates a new ParamBlockList that can be used to block gov proposals that attempt to change locked parameters.
func (ParamBlockList) GovHandler ¶
func (pbl ParamBlockList) GovHandler(pk paramskeeper.Keeper) govtypes.Handler
GovHandler creates a new governance Handler for a ParamChangeProposal using the underlying ParamBlockList.
Click to show internal directories.
Click to hide internal directories.