Documentation ¶
Index ¶
- Constants
- func GetBalancesCmd() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func GetTotalLockedCmd() *cobra.Command
- func NewMsgClawbackCmd() *cobra.Command
- func NewMsgConvertIntoVestingAccountCmd() *cobra.Command
- func NewMsgConvertVestingAccountCmd() *cobra.Command
- func NewMsgCreateClawbackVestingAccountCmd() *cobra.Command
- func NewMsgUpdateVestingFunderCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
- func ReadScheduleFile(path string) (int64, sdkvesting.Periods, error)
- type InputPeriod
- type VestingData
Constants ¶
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 ¶
GetBalancesCmd queries the unvested tokens for a given vesting account
func GetQueryCmd ¶
GetQueryCmd returns the parent command for all vesting CLI query commands.
func GetTotalLockedCmd ¶ added in v1.6.4
GetTotalLockedCmd queries summary of the locked, vested and unvested tokens for all accounts
func NewMsgClawbackCmd ¶
NewMsgClawbackCmd returns a CLI command handler for creating a MsgClawback transaction.
func NewMsgConvertIntoVestingAccountCmd ¶
NewMsgConvertIntoVestingAccountCmd returns a CLI command handler for creating a MsgConvertIntoVestingAccount transaction.
func NewMsgConvertVestingAccountCmd ¶
NewMsgConvertVestingAccountCmd returns a CLI command handler for creating a MsgConvertVestingAccount transaction.
func NewMsgCreateClawbackVestingAccountCmd ¶
NewMsgCreateClawbackVestingAccountCmd returns a CLI command handler for creating a MsgCreateClawbackVestingAccount transaction.
func NewMsgUpdateVestingFunderCmd ¶
NewMsgUpdateVestingFunderCmd returns a CLI command handler for updating the funder of a ClawbackVestingAccount.
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"` }