cli

package
v0.0.0-...-2994116 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 14 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 NewMsgCreateClawbackVestingAccountCmd

func NewMsgCreateClawbackVestingAccountCmd() *cobra.Command

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

func NewMsgCreateVestingAccountCmd

func NewMsgCreateVestingAccountCmd() *cobra.Command

NewMsgCreateVestingAccountCmd returns a CLI command handler for creating a MsgCreateVestingAccount transaction.

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.Period, 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