Documentation ¶
Index ¶
- Constants
- func GetBalancesCmd() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewMsgClawbackCmd() *cobra.Command
- func NewMsgCreateClawbackVestingAccountCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
- func ReadScheduleFile(path string) (int64, sdkvesting.Periods, error)
- type InputPeriod
- type VestingData
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 ¶
GetBalancesCmd queries the unvested tokens for a given vesting account
func GetQueryCmd ¶
GetQueryCmd returns the parent command for all vesting CLI query commands.
func NewMsgClawbackCmd ¶
NewMsgClawbackCmd returns a CLI command handler for creating a MsgClawback transaction.
func NewMsgCreateClawbackVestingAccountCmd ¶
NewMsgCreateClawbackVestingAccountCmd returns a CLI command handler for creating a MsgCreateClawbackVestingAccount transaction.
func NewTxCmd ¶
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 VestingData ¶
type VestingData struct { StartTime int64 `json:"start_time"` Periods []InputPeriod `json:"periods"` }
Click to show internal directories.
Click to hide internal directories.