Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParamChangeJSON ¶
type ParamChangeJSON struct { Subspace string `json:"subspace" yaml:"subspace"` Key string `json:"key" yaml:"key"` Value json.RawMessage `json:"value" yaml:"value"` }
ParamChangeJSON defines a parameter change used in JSON input. This allows values to be specified in raw JSON instead of being string encoded.
func (ParamChangeJSON) ToParamChange ¶
func (pcj ParamChangeJSON) ToParamChange() types.ParamChange
ToParamChange converts a ParamChangeJSON object to ParamChange.
type ParamChangesJSON ¶
type ParamChangesJSON []ParamChangeJSON
ParamChangesJSON defines a slice of ParamChangeJSON objects which can be converted to a slice of ParamChange objects.
func ParseParamChange ¶
func ParseParamChange(cdc *codec.LegacyAmino, proposalFile string) (ParamChangesJSON, error)
ParseParamChange reads and parses a ParamChangesJSON from file.
func (ParamChangesJSON) ToParamChanges ¶
func (pcj ParamChangesJSON) ToParamChanges() []types.ParamChange
ToParamChanges converts a slice of ParamChangeJSON objects to a slice of ParamChange.
Click to show internal directories.
Click to hide internal directories.