Documentation ¶
Index ¶
- func GetCmdAddTokenProposal(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryIBCTokens(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryToken(cdc *codec.Codec) *cobra.Command
- func GetCmdTokenParamsChangeProposal(cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(storeKey string, cdc *codec.Codec) *cobra.Command
- type AddTokenProposalJSON
- type ParamChangeJSON
- type ParamChangesJSON
- type TokenParamsChangeProposalJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCmdAddTokenProposal ¶
GetCmdAddTokenProposal implements the command to submit a AddToken proposal
func GetCmdQueryIBCTokens ¶ added in v0.9.3
func GetCmdTokenParamsChangeProposal ¶
GetCmdTokenParamsChangeProposal implements the command to submit a TokenParamsChange proposal
Types ¶
type AddTokenProposalJSON ¶
type AddTokenProposalJSON struct { Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` TokenInfo *sdk.IBCToken `json:"token_info" yaml:"token_info"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` VoteTime uint32 `json:"votetime" yaml:"votetime"` }
func ParseAddTokenProposalJSON ¶
func ParseAddTokenProposalJSON(cdc *codec.Codec, proposalFile string) (AddTokenProposalJSON, error)
ParseAddTokenProposalJSON reads and parses a addTokenProposalJSON from a file.
type ParamChangeJSON ¶
type ParamChangeJSON struct { 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
func (ParamChangesJSON) ToParamChanges ¶
func (pcsj ParamChangesJSON) ToParamChanges() []types.ParamChange
ToParamChanges converts a slice of paramChangesJSON objects to a slice of ParamChange.
type TokenParamsChangeProposalJSON ¶
type TokenParamsChangeProposalJSON struct { Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Symbol string `json:"symbol" yaml:"symbol"` Changes ParamChangesJSON `json:"changes" yaml:"changes"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` VoteTime uint32 `json:"votetime" yaml:"votetime"` }
func ParseTokenParamsChangeProposalJSON ¶
func ParseTokenParamsChangeProposalJSON(cdc *codec.Codec, proposalFile string) (TokenParamsChangeProposalJSON, error)
ParseTokenParamsChangeProposalJSON reads and parses a tokenParamsChangeProposalJSON from a file.
Click to show internal directories.
Click to hide internal directories.