cli

package
v1.5.0-develop Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: LGPL-3.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 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