cli

package
v22.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagDuration  = "duration"
	FlagStartTime = "start-time"
	FlagEpochs    = "epochs"
	FlagPerpetual = "perpetual"
	FlagTimestamp = "timestamp"
	FlagOwner     = "owner"
	FlagLockIds   = "lock-ids"
	FlagEndEpoch  = "end-epoch"
)

Flags for incentives module tx commands.

Variables

This section is empty.

Functions

func FlagSetCreateGauge

func FlagSetCreateGauge() *flag.FlagSet

FlagSetCreateGauge returns flags for creating gauges.

func GetCmdActiveGauges

func GetCmdActiveGauges() (*osmocli.QueryDescriptor, *types.ActiveGaugesRequest)

GetCmdActiveGauges returns active gauges.

func GetCmdActiveGaugesPerDenom

func GetCmdActiveGaugesPerDenom() (*osmocli.QueryDescriptor, *types.ActiveGaugesPerDenomRequest)

GetCmdActiveGaugesPerDenom returns active gauges for a specified denom.

func GetCmdCurrentWeightByGroupGaugeID

func GetCmdCurrentWeightByGroupGaugeID() (*osmocli.QueryDescriptor, *types.QueryCurrentWeightByGroupGaugeIDRequest)

GetCmdCurrentWeightByGroupGaugeID returns current weight for each gauge respectively since the last epoch from a group gauge ID.

func GetCmdGaugeByID

func GetCmdGaugeByID() (*osmocli.QueryDescriptor, *types.GaugeByIDRequest)

GetCmdGaugeByID returns a gauge by ID.

func GetCmdGauges

func GetCmdGauges() (*osmocli.QueryDescriptor, *types.GaugesRequest)

GetCmdGauges returns all available gauges.

func GetCmdRewardsEst

func GetCmdRewardsEst() *cobra.Command

GetCmdRewardsEst returns rewards estimation.

func GetCmdToDistributeCoins

func GetCmdToDistributeCoins() (*osmocli.QueryDescriptor, *types.ModuleToDistributeCoinsRequest)

GetCmdToDistributeCoins returns coins that are going to be distributed.

func GetCmdUpcomingGauges

func GetCmdUpcomingGauges() (*osmocli.QueryDescriptor, *types.UpcomingGaugesRequest)

GetCmdUpcomingGauges returns scheduled gauges.

func GetCmdUpcomingGaugesPerDenom

func GetCmdUpcomingGaugesPerDenom() (*osmocli.QueryDescriptor, *types.UpcomingGaugesPerDenomRequest)

GetCmdUpcomingGaugesPerDenom returns scheduled gauges for specified denom..

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

func NewCmdHandleCreateGroupsProposal

func NewCmdHandleCreateGroupsProposal() *cobra.Command

NewCmdHandleCreateGroupsProposal implements a command handler for the group creation proposal transaction.

func NewCreateGaugeCmd

func NewCreateGaugeCmd() *cobra.Command

NewCreateGaugeCmd broadcasts a CreateGauge message.

func NewCreateGroupCmd

func NewCreateGroupCmd() *cobra.Command

func ParseCreateGroupRecords

func ParseCreateGroupRecords(arg string) ([]types.CreateGroup, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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