Documentation ¶
Index ¶
- Variables
- func AddGovPropFlagsToCmd(cmd *cobra.Command)
- func CmdQueryParams() *cobra.Command
- func GetQueryCmd(queryRoute string) *cobra.Command
- func NewLendingMarketProposalCmd(ac addresscodec.Codec) *cobra.Command
- func NewTreasuryProposalCmd(ac addresscodec.Codec) *cobra.Command
- func NewTxCmd(ac addresscodec.Codec) *cobra.Command
- func ParseLendingMarketMetadata(cdc codec.JSONCodec, metadataFile string) (types.LendingMarketMetadata, error)
- func ParseTreasuryMetadata(cdc codec.JSONCodec, metadataFile string) (types.TreasuryProposalMetadata, error)
- func ReadGovPropFlags(clientCtx client.Context, flagSet *pflag.FlagSet) (*govv1.MsgSubmitProposal, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddGovPropFlagsToCmd ¶
AddGovPropFlagsToCmd adds flags for defining MsgSubmitProposal fields.
See also ReadGovPropFlags. ref. github.com/cosmos/cosmos-sdk/x/gov/client/cli/util.go::AddGovPropFlagsToCmd
func CmdQueryParams ¶
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func NewLendingMarketProposalCmd ¶
func NewLendingMarketProposalCmd(ac addresscodec.Codec) *cobra.Command
NewRegisterCoinProposalCmd implements the command to submit a community-pool-spend proposal
func NewTreasuryProposalCmd ¶
func NewTreasuryProposalCmd(ac addresscodec.Codec) *cobra.Command
Register TreasuryProposal submit cmd
func NewTxCmd ¶
func NewTxCmd(ac addresscodec.Codec) *cobra.Command
NewTxCmd returns a root CLI command handler for certain modules/govshuttle transaction commands.
func ParseLendingMarketMetadata ¶
func ParseLendingMarketMetadata(cdc codec.JSONCodec, metadataFile string) (types.LendingMarketMetadata, error)
ParseRegisterCoinProposal reads and parses a ParseRegisterCoinProposal from a file.
func ParseTreasuryMetadata ¶
func ReadGovPropFlags ¶
func ReadGovPropFlags(clientCtx client.Context, flagSet *pflag.FlagSet) (*govv1.MsgSubmitProposal, error)
ReadGovPropFlags parses a MsgSubmitProposal from the provided context and flags. Setting the messages is up to the caller.
See also AddGovPropFlagsToCmd. ref. github.com/cosmos/cosmos-sdk/x/gov/client/cli/util.go::ReadGovPropFlags
Types ¶
This section is empty.