cli

package
v0.0.0-...-2c3f891 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmdBurnToken

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

create a token in pocchain

func GetCmdDisableTokenProposal

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

GetCmdDisableTokenProposal implements the command to submit a DisableToken proposal

func GetCmdInflateToken

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

func GetCmdNewToken

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

create a token in pocchain

func GetCmdQueryParams

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

GetCmdQueryParams implements a command to return the current token parameters.

func GetCmdQuerySymbols

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

GetCmdQuerySymbols return symbols regiserted in

func GetCmdQueryToken

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

GetCmdQueryToken ...

func GetCmdQueryTokens

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

GetCmdQueryTokens ...

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

GetQueryCmd ...

func GetTxCmd

func GetTxCmd(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.TokenInfo `json:"token_info" yaml:"token_info"`
	Deposit     sdk.Coins     `json:"deposit" yaml:"deposit"`
}

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.

Jump to

Keyboard shortcuts

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