cli

package
v8.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: LGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())

	FlagAuthority = "authority"
)

Functions

func AddGovPropFlagsToCmd

func AddGovPropFlagsToCmd(cmd *cobra.Command)

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 CmdQueryParams() *cobra.Command

func GetQueryCmd

func GetQueryCmd(queryRoute string) *cobra.Command

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 ParseTreasuryMetadata(cdc codec.JSONCodec, metadataFile string) (types.TreasuryProposalMetadata, error)

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.

Jump to

Keyboard shortcuts

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