Documentation ¶
Index ¶
- func GetCmdBurnToken(cdc *codec.Codec) *cobra.Command
- func GetCmdDisableTokenProposal(cdc *codec.Codec) *cobra.Command
- func GetCmdInflateToken(cdc *codec.Codec) *cobra.Command
- func GetCmdNewToken(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryParams(cdc *codec.Codec) *cobra.Command
- func GetCmdQuerySymbols(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryToken(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryTokens(cdc *codec.Codec) *cobra.Command
- func GetCmdTokenParamsChangeProposal(cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(storeKey string, cdc *codec.Codec) *cobra.Command
- func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command
- type AddTokenProposalJSON
- type DisableTokenProposalJSON
- type ParamChangeJSON
- type ParamChangesJSON
- type TokenParamsChangeProposalJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCmdBurnToken ¶
create a token in pocchain
func GetCmdDisableTokenProposal ¶
GetCmdDisableTokenProposal implements the command to submit a DisableToken proposal
func GetCmdNewToken ¶
create a token in pocchain
func GetCmdQueryParams ¶
GetCmdQueryParams implements a command to return the current token parameters.
func GetCmdQuerySymbols ¶
GetCmdQuerySymbols return symbols regiserted in
func GetCmdQueryTokens ¶
GetCmdQueryTokens ...
func GetCmdTokenParamsChangeProposal ¶
GetCmdTokenParamsChangeProposal implements the command to submit a TokenParamsChange proposal
func GetQueryCmd ¶
GetQueryCmd ...
Types ¶
type AddTokenProposalJSON ¶
type DisableTokenProposalJSON ¶
type DisableTokenProposalJSON struct { Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Symbol string `json:"symbol" yaml:"symbol"` Deposit sdk.Coins `json:"deposit" yaml:"deposit` }
func ParseDisableTokenProposalJSON ¶
func ParseDisableTokenProposalJSON(cdc *codec.Codec, proposalFile string) (DisableTokenProposalJSON, error)
ParseDisableTokenProposalJSON reads and parses a disableTokenProposalJSON 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"` }
func ParseTokenParamsChangeProposalJSON ¶
func ParseTokenParamsChangeProposalJSON(cdc *codec.Codec, proposalFile string) (TokenParamsChangeProposalJSON, error)
ParseTokenParamsChangeProposalJSON reads and parses a tokenParamsChangeProposalJSON from a file.