Documentation ¶
Index ¶
- Variables
- func GenerateOrBroadcastTxCLI(cliCtx clientCtx.CLIContext, flagSet *pflag.FlagSet, msgs ...sdk.Msg) error
- func GetClientContextFromCmd(cmd *cobra.Command) clientCtx.CLIContext
- func GetClientQueryContext(cmd *cobra.Command) (clientCtx.CLIContext, error)
- func GetClientTxContext(cmd *cobra.Command) (clientCtx.CLIContext, error)
- func GetServerContextFromCmd(cmd *cobra.Command) server.Context
- func GzipIt(input []byte) ([]byte, error)
- func IsGzip(input []byte) bool
- func IsWasm(input []byte) bool
- func WriteGeneratedTxResponse(clientCtx clientCtx.CLIContext, w http.ResponseWriter, br rest.BaseReq, ...)
- type ExtraProposalJSON
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClientContextKey = sdk.ContextKey("client.context") ServerContextKey = sdk.ContextKey("server.context") )
Functions ¶
func GetClientContextFromCmd ¶
func GetClientContextFromCmd(cmd *cobra.Command) clientCtx.CLIContext
func GetClientQueryContext ¶
func GetClientQueryContext(cmd *cobra.Command) (clientCtx.CLIContext, error)
func GetClientTxContext ¶
func GetClientTxContext(cmd *cobra.Command) (clientCtx.CLIContext, error)
func WriteGeneratedTxResponse ¶
func WriteGeneratedTxResponse( clientCtx clientCtx.CLIContext, w http.ResponseWriter, br rest.BaseReq, msgs ...sdk.Msg, )
Types ¶
type ExtraProposalJSON ¶ added in v1.7.0
type ExtraProposalJSON struct { Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` Action string `json:"action" yaml:"action"` Extra string `json:"extra" yaml:"extra"` }
ExtraProposalJSON defines a ExtraProposal with a deposit used to parse manage treasures proposals from a JSON file.
func ParseExtraProposalJSON ¶ added in v1.7.0
func ParseExtraProposalJSON(cdc *codec.Codec, proposalFilePath string) ( proposal ExtraProposalJSON, err error)
ParseExtraProposalJSON parses json from proposal file to ExtraProposalJSON struct
Click to show internal directories.
Click to hide internal directories.