Versions in this module Expand all Collapse all v0 v0.1.3 Nov 25, 2021 Changes in this version + const ProposalTypeChange + const RouterKey + var ErrEmptyChanges = sdkerrors.Register(ModuleName, 3, "submitted parameter changes are empty") + var ErrEmptyKey = sdkerrors.Register(ModuleName, 5, "parameter key is empty") + var ErrEmptySubspace = sdkerrors.Register(ModuleName, 4, "parameter subspace is empty") + var ErrEmptyValue = sdkerrors.Register(ModuleName, 6, "parameter value is empty") + var ErrSettingParameter = sdkerrors.Register(ModuleName, 2, "failed to set parameter") + var ErrUnknownSubspace = sdkerrors.Register(ModuleName, 1, "unknown subspace") + var ModuleCdc *codec.Codec + func RegisterCodec(cdc *codec.Codec) + func ValidateChanges(changes []ParamChange) error + type ParamChange struct + Key string + Subspace string + Value string + func NewParamChange(subspace, key, value string) ParamChange + func (pc ParamChange) String() string + type ParameterChangeProposal struct + Changes []ParamChange + Description string + Title string + func NewParameterChangeProposal(title, description string, changes []ParamChange) ParameterChangeProposal + func (pcp ParameterChangeProposal) GetDescription() string + func (pcp ParameterChangeProposal) GetTitle() string + func (pcp ParameterChangeProposal) ProposalRoute() string + func (pcp ParameterChangeProposal) ProposalType() string + func (pcp ParameterChangeProposal) String() string + func (pcp ParameterChangeProposal) ValidateBasic() error v0.1.1 Nov 25, 2021 Changes in this version + const ModuleName + const QuerierRoute + const QueryParams + const StoreKey + const TStoreKey + type KeyTable struct + func NewKeyTable(pairs ...ParamSetPair) KeyTable + func (t KeyTable) RegisterParamSet(ps ParamSet) KeyTable + func (t KeyTable) RegisterType(psp ParamSetPair) KeyTable + type ParamSet interface + ParamSetPairs func() ParamSetPairs + type ParamSetPair struct + Key []byte + ValidatorFn ValueValidatorFn + Value interface{} + func NewParamSetPair(key []byte, value interface{}, vfn ValueValidatorFn) ParamSetPair + type ParamSetPairs []ParamSetPair + type QuerySubspaceParams struct + Key string + Subspace string + func NewQuerySubspaceParams(ss, key string) QuerySubspaceParams + type ReadOnlySubspace struct + func (ros ReadOnlySubspace) Get(ctx sdk.Context, key []byte, ptr interface{}) + func (ros ReadOnlySubspace) GetRaw(ctx sdk.Context, key []byte) []byte + func (ros ReadOnlySubspace) Has(ctx sdk.Context, key []byte) bool + func (ros ReadOnlySubspace) Modified(ctx sdk.Context, key []byte) bool + func (ros ReadOnlySubspace) Name() string + type Subspace struct + func NewSubspace(cdc codec.Marshaler, key sdk.StoreKey, tkey sdk.StoreKey, name string) Subspace + func (s Subspace) Get(ctx sdk.Context, key []byte, ptr interface{}) + func (s Subspace) GetIfExists(ctx sdk.Context, key []byte, ptr interface{}) + func (s Subspace) GetParamSet(ctx sdk.Context, ps ParamSet) + func (s Subspace) GetRaw(ctx sdk.Context, key []byte) []byte + func (s Subspace) Has(ctx sdk.Context, key []byte) bool + func (s Subspace) HasKeyTable() bool + func (s Subspace) Modified(ctx sdk.Context, key []byte) bool + func (s Subspace) Name() string + func (s Subspace) Set(ctx sdk.Context, key []byte, value interface{}) + func (s Subspace) SetParamSet(ctx sdk.Context, ps ParamSet) + func (s Subspace) Update(ctx sdk.Context, key, value []byte) error + func (s Subspace) Validate(ctx sdk.Context, key []byte, value interface{}) error + func (s Subspace) WithKeyTable(table KeyTable) Subspace + type SubspaceParamsResponse struct + Key string + Subspace string + Value string + func NewSubspaceParamsResponse(ss, key, value string) SubspaceParamsResponse + type ValueValidatorFn func(value interface{}) error