Versions in this module Expand all Collapse all v1 v1.0.0 May 14, 2020 Changes in this version + const ModuleName + const ProposalTypeChange + const RouterKey + var ErrEmptyChanges = sdkerrors.Register(ModuleName, 4, "submitted parameter changes are empty") + var ErrEmptyKey = sdkerrors.Register(ModuleName, 6, "parameter key is empty") + var ErrEmptySubspace = sdkerrors.Register(ModuleName, 5, "parameter subspace is empty") + var ErrEmptyValue = sdkerrors.Register(ModuleName, 7, "parameter value is empty") + var ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrSettingParameter = sdkerrors.Register(ModuleName, 3, "failed to set parameter") + var ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + var ErrUnknownSubspace = sdkerrors.Register(ModuleName, 2, "unknown subspace") + func RegisterCodec(cdc *codec.Codec) + func ValidateChanges(changes []ParamChange) error + type Codec struct + var ModuleCdc *Codec + func NewCodec(amino *codec.Codec) *Codec + type ParamChange struct + Key string + Subspace string + Value string + func NewParamChange(subspace, key, value string) ParamChange + func (*ParamChange) Descriptor() ([]byte, []int) + func (*ParamChange) ProtoMessage() + func (m *ParamChange) GetKey() string + func (m *ParamChange) GetSubspace() string + func (m *ParamChange) GetValue() string + func (m *ParamChange) Marshal() (dAtA []byte, err error) + func (m *ParamChange) MarshalTo(dAtA []byte) (int, error) + func (m *ParamChange) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ParamChange) Reset() + func (m *ParamChange) Size() (n int) + func (m *ParamChange) Unmarshal(dAtA []byte) error + func (m *ParamChange) XXX_DiscardUnknown() + func (m *ParamChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ParamChange) XXX_Merge(src proto.Message) + func (m *ParamChange) XXX_Size() int + func (m *ParamChange) XXX_Unmarshal(b []byte) error + func (pc ParamChange) String() string + func (this *ParamChange) Equal(that interface{}) bool + type ParameterChangeProposal struct + Changes []ParamChange + Description string + Title string + func NewParameterChangeProposal(title, description string, changes []ParamChange) *ParameterChangeProposal + func (*ParameterChangeProposal) Descriptor() ([]byte, []int) + func (*ParameterChangeProposal) ProtoMessage() + func (m *ParameterChangeProposal) Marshal() (dAtA []byte, err error) + func (m *ParameterChangeProposal) MarshalTo(dAtA []byte) (int, error) + func (m *ParameterChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ParameterChangeProposal) Reset() + func (m *ParameterChangeProposal) Size() (n int) + func (m *ParameterChangeProposal) Unmarshal(dAtA []byte) error + func (m *ParameterChangeProposal) XXX_DiscardUnknown() + func (m *ParameterChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ParameterChangeProposal) XXX_Merge(src proto.Message) + func (m *ParameterChangeProposal) XXX_Size() int + func (m *ParameterChangeProposal) XXX_Unmarshal(b []byte) error + func (pcp *ParameterChangeProposal) GetDescription() string + func (pcp *ParameterChangeProposal) GetTitle() string + func (pcp *ParameterChangeProposal) ProposalRoute() string + func (pcp *ParameterChangeProposal) ProposalType() string + func (pcp *ParameterChangeProposal) ValidateBasic() error + func (pcp ParameterChangeProposal) String() string + func (this *ParameterChangeProposal) Equal(that interface{}) bool v1.0.0-playground Jul 8, 2020