cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagStartTime = "start-time"
	FlagPerpetual = "perpetual"
	FlagAmount    = "amount"
)

Flags for incentives module tx commands.

Variables

This section is empty.

Functions

func CreateGaugeCmdBuilder

func CreateGaugeCmdBuilder(
	clientCtx client.Context,
	args []string,
	flags *pflag.FlagSet,
) (sdk.Msg, error)

func FlagSetCreateGauge

func FlagSetCreateGauge() *flag.FlagSet

FlagSetCreateGauge returns flags for creating gauges.

func FlagSetUnSetupStake

func FlagSetUnSetupStake() *flag.FlagSet

func GetCmdGaugeQualifyingValue added in v0.3.4

func GetCmdGaugeQualifyingValue() (*dcli.QueryDescriptor, *types.GetGaugeQualifyingValueRequest)

func GetCmdGauges

func GetCmdGauges() (*dcli.QueryDescriptor, *types.GetGaugesRequest)

GetCmdGauges returns all gauges for a given status and denom.

func GetCmdGetAccountHistory added in v0.3.4

func GetCmdGetAccountHistory() (*dcli.QueryDescriptor, *types.GetAccountHistoryRequest)

GetCmdGetFutureRewardsEstimate returns a rewards estimate for a given set of stakes.

func GetCmdGetFutureRewardEstimate

func GetCmdGetFutureRewardEstimate() (*dcli.QueryDescriptor, *types.GetFutureRewardEstimateRequest)

GetCmdGetFutureRewardsEstimate returns a rewards estimate for a given set of stakes.

func GetCmdGetGaugeByID

func GetCmdGetGaugeByID() (*dcli.QueryDescriptor, *types.GetGaugeByIDRequest)

GetCmdGetGaugeByID returns a gauge by ID.

func GetCmdGetModuleStatus

func GetCmdGetModuleStatus() (*dcli.QueryDescriptor, *types.GetModuleStatusRequest)

GetCmdGetModuleStatus returns status of incentive module.

func GetCmdGetStakeByID

func GetCmdGetStakeByID() (*dcli.QueryDescriptor, *types.GetStakeByIDRequest)

GetCmdGetStakeByID returns a lock by ID.

func GetCmdStakes

func GetCmdStakes() (*dcli.QueryDescriptor, *types.GetStakesRequest)

GetCmdStakes returns all gauges for a given status and owner.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the query commands for this module.

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns the transaction commands for this module.

func NewAddToGaugeCmd

func NewAddToGaugeCmd() (*dcli.TxCliDesc, *types.MsgAddToGauge)

func NewCreateGaugeCmd

func NewCreateGaugeCmd() (*dcli.TxCliDesc, *types.MsgCreateGauge)

func NewStakeCmd

func NewStakeCmd() (*dcli.TxCliDesc, *types.MsgStake)

func NewUnstakeCmd

func NewUnstakeCmd() (*dcli.TxCliDesc, *types.MsgUnstake)

func UnstakeCmdBuilder

func UnstakeCmdBuilder(clientCtx client.Context, args []string, _ *pflag.FlagSet) (sdk.Msg, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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