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 locked, unvested and vested tokens for a given vesting account.
func GetQueryCmd ¶
GetQueryCmd returns the parent command for all vesting CLI query commands.
func GetTotalLockedCmd ¶
GetTotalLockedCmd queries summary of the locked, vested and unvested tokens for all accounts
func NewMsgClawbackCmd ¶
NewMsgClawbackCmd returns a CLI command handler for clawing back unvested funds.
func NewMsgConvertIntoVestingAccountCmd ¶
NewMsgConvertIntoVestingAccountCmd returns a CLI command handler for converting // a non-vesting account into a clawback vesting account.
func NewMsgConvertVestingAccountCmd ¶
NewMsgConvertVestingAccountCmd returns a CLI command handler for converting a clawback vesting account into a non-vesting account.
func NewMsgCreateClawbackVestingAccountCmd ¶
NewMsgCreateClawbackVestingAccountCmd returns a CLI command handler for creating a clawback vesting account.
func NewMsgUpdateVestingFunderCmd ¶
NewMsgUpdateVestingFunderCmd returns a CLI command handler for updating the funder of a ClawbackVestingAccount.
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"` }