cli

package
v0.0.0-...-8b7ac03 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: LGPL-3.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"
)

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 NewMsgClawbackCmd

func NewMsgClawbackCmd() *cobra.Command

NewMsgClawbackCmd returns a CLI command handler for creating a MsgClawback 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