cli

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmdAddTokenProposal

func GetCmdAddTokenProposal(cdc *codec.Codec) *cobra.Command

GetCmdAddTokenProposal implements the command to submit a AddToken proposal

func GetCmdQueryIBCTokens added in v0.9.3

func GetCmdQueryIBCTokens(cdc *codec.Codec) *cobra.Command

func GetCmdQueryToken

func GetCmdQueryToken(cdc *codec.Codec) *cobra.Command

func GetCmdTokenParamsChangeProposal

func GetCmdTokenParamsChangeProposal(cdc *codec.Codec) *cobra.Command

GetCmdTokenParamsChangeProposal implements the command to submit a TokenParamsChange proposal

func GetQueryCmd

func GetQueryCmd(storeKey string, cdc *codec.Codec) *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL