cli

package
v0.0.0-...-eccf466 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 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 locked, unvested and vested 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

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 clawing back unvested funds.

func NewMsgConvertIntoVestingAccountCmd

func NewMsgConvertIntoVestingAccountCmd() *cobra.Command

NewMsgConvertIntoVestingAccountCmd returns a CLI command handler for converting // a non-vesting account into a clawback vesting account.

func NewMsgConvertVestingAccountCmd

func NewMsgConvertVestingAccountCmd() *cobra.Command

NewMsgConvertVestingAccountCmd returns a CLI command handler for converting a clawback vesting account into a non-vesting account.

func NewMsgCreateClawbackVestingAccountCmd

func NewMsgCreateClawbackVestingAccountCmd() *cobra.Command

NewMsgCreateClawbackVestingAccountCmd returns a CLI command handler for creating a clawback vesting account.

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