cli

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagDelayed   = "delayed"
	FlagDest      = "dest"
	FlagLockup    = "lockup"
	FlagMerge     = "merge"
	FlagVesting   = "vesting"
	FlagClawback  = "clawback"
	FlagFunder    = "funder"
	FlagValidator = "validator"
)

Transaction command flags

Variables

This section is empty.

Functions

func GetBalancesCmd

func GetBalancesCmd() *cobra.Command

GetBalancesCmd queries the unvested tokens for a given vesting account

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the parent command for all vesting CLI query commands.

func GetTotalLockedCmd added in v1.6.4

func GetTotalLockedCmd() *cobra.Command

GetTotalLockedCmd queries summary of the locked, vested and unvested tokens for all accounts

func NewMsgClawbackCmd

func NewMsgClawbackCmd() *cobra.Command

NewMsgClawbackCmd returns a CLI command handler for creating a MsgClawback transaction.

func NewMsgConvertIntoVestingAccountCmd

func NewMsgConvertIntoVestingAccountCmd() *cobra.Command

NewMsgConvertIntoVestingAccountCmd returns a CLI command handler for creating a MsgConvertIntoVestingAccount transaction.

func NewMsgConvertVestingAccountCmd

func NewMsgConvertVestingAccountCmd() *cobra.Command

NewMsgConvertVestingAccountCmd returns a CLI command handler for creating a MsgConvertVestingAccount transaction.

func NewMsgCreateClawbackVestingAccountCmd

func NewMsgCreateClawbackVestingAccountCmd() *cobra.Command

NewMsgCreateClawbackVestingAccountCmd returns a CLI command handler for creating a MsgCreateClawbackVestingAccount transaction.

func NewMsgUpdateVestingFunderCmd

func NewMsgUpdateVestingFunderCmd() *cobra.Command

NewMsgUpdateVestingFunderCmd returns a CLI command handler for updating the funder of a ClawbackVestingAccount.

func NewTxCmd

func NewTxCmd() *cobra.Command

NewTxCmd returns a root CLI command handler for certain modules/vesting transaction commands.

func ReadScheduleFile

func ReadScheduleFile(path string) (int64, sdkvesting.Periods, error)

ReadScheduleFile reads the file at path and unmarshals it to get the schedule. Returns start time, periods, and error.

Types

type InputPeriod

type InputPeriod struct {
	Coins  string `json:"coins"`
	Length int64  `json:"length_seconds"`
}

type VestingData

type VestingData struct {
	StartTime int64         `json:"start_time"`
	Periods   []InputPeriod `json:"periods"`
}

Jump to

Keyboard shortcuts

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