Documentation ¶
Index ¶
- Constants
- func FlagSetLockTokens() *flag.FlagSet
- func FlagSetMinDuration() *flag.FlagSet
- func FlagSetUnlockTokens() *flag.FlagSet
- func GetCmdAccountLockedCoins() *cobra.Command
- func GetCmdAccountLockedDuration() *cobra.Command
- func GetCmdAccountLockedLongerDuration() *cobra.Command
- func GetCmdAccountLockedLongerDurationDenom() *cobra.Command
- func GetCmdAccountLockedLongerDurationNotUnlockingOnly() *cobra.Command
- func GetCmdAccountLockedPastTime() (*percocli.QueryDescriptor, *types.AccountLockedPastTimeRequest)
- func GetCmdAccountLockedPastTimeDenom() *cobra.Command
- func GetCmdAccountLockedPastTimeNotUnlockingOnly() (*percocli.QueryDescriptor, *types.AccountLockedPastTimeNotUnlockingOnlyRequest)
- func GetCmdAccountUnlockableCoins() *cobra.Command
- func GetCmdAccountUnlockedBeforeTime() *cobra.Command
- func GetCmdAccountUnlockingCoins() (*percocli.QueryDescriptor, *types.AccountUnlockingCoinsRequest)
- func GetCmdLockRewardReceiver() *cobra.Command
- func GetCmdLockedByID() *cobra.Command
- func GetCmdModuleBalance() (*percocli.QueryDescriptor, *types.ModuleBalanceRequest)
- func GetCmdModuleLockedAmount() (*percocli.QueryDescriptor, *types.ModuleLockedAmountRequest)
- func GetCmdNextLockID() *cobra.Command
- func GetCmdOutputLocksJson() *cobra.Command
- func GetCmdSyntheticLockupByLockupID() *cobra.Command
- func GetCmdSyntheticLockupsByLockupID() *cobra.Command
- func GetCmdTotalLockedByDenom() (*percocli.QueryDescriptor, *types.LockedDenomRequest)
- func GetQueryCmd() *cobra.Command
- func GetTxCmd() *cobra.Command
- func NewBeginUnlockByIDCmd() (*percocli.TxCliDesc, *types.MsgBeginUnlocking)
- func NewBeginUnlockingAllCmd() (*percocli.TxCliDesc, *types.MsgBeginUnlockingAll)
- func NewForceUnlockByIdCmd() (*percocli.TxCliDesc, *types.MsgForceUnlock)
- func NewLockTokensCmd() (*percocli.TxCliDesc, *types.MsgLockTokens)
- func NewSetRewardReceiverAddress() (*percocli.TxCliDesc, *types.MsgSetRewardReceiverAddress)
Constants ¶
const ( FlagDuration = "duration" FlagMinDuration = "min-duration" FlagAmount = "amount" )
flags for lockup module tx commands.
Variables ¶
This section is empty.
Functions ¶
func FlagSetLockTokens ¶
FlagSetLockTokens returns flags for LockTokens msg builder.
func FlagSetMinDuration ¶
func FlagSetUnlockTokens ¶
func GetCmdAccountLockedCoins ¶
GetCmdAccountLockedCoins returns locked coins that that are still in a locked state from the specified account.
func GetCmdAccountLockedDuration ¶
GetCmdAccountLockedLongerDuration returns account locked records with longer duration.
func GetCmdAccountLockedLongerDuration ¶
GetCmdAccountLockedLongerDuration returns account locked records with longer duration.
func GetCmdAccountLockedLongerDurationDenom ¶
GetCmdAccountLockedLongerDurationDenom returns account's locks for a specific denom with longer duration than the given duration.
func GetCmdAccountLockedLongerDurationNotUnlockingOnly ¶
GetCmdAccountLockedLongerDurationNotUnlockingOnly returns account locked records with longer duration from unlocking only queue.
func GetCmdAccountLockedPastTime ¶
func GetCmdAccountLockedPastTime() (*percocli.QueryDescriptor, *types.AccountLockedPastTimeRequest)
GetCmdAccountLockedPastTime returns locks of an account with unlock time beyond timestamp.
func GetCmdAccountLockedPastTimeDenom ¶
GetCmdAccountLockedPastTimeDenom returns locks of an account whose unlock time is beyond given timestamp, and locks with the specified denom.
func GetCmdAccountLockedPastTimeNotUnlockingOnly ¶
func GetCmdAccountLockedPastTimeNotUnlockingOnly() (*percocli.QueryDescriptor, *types.AccountLockedPastTimeNotUnlockingOnlyRequest)
GetCmdAccountLockedPastTimeNotUnlockingOnly returns locks of an account with unlock time beyond provided timestamp amongst the locks that are in the unlocking queue.
func GetCmdAccountUnlockableCoins ¶
GetCmdAccountUnlockableCoins returns unlockable coins which has finsihed unlocking. TODO: DELETE THIS + Actual query in subsequent PR
func GetCmdAccountUnlockedBeforeTime ¶
GetCmdAccountUnlockedBeforeTime returns locks with unlock time before the provided timestamp.
func GetCmdAccountUnlockingCoins ¶
func GetCmdAccountUnlockingCoins() (*percocli.QueryDescriptor, *types.AccountUnlockingCoinsRequest)
GetCmdAccountUnlockingCoins returns unlocking coins of a specific account.
func GetCmdLockRewardReceiver ¶
GetCmdLockRewardReceiver returns reward receiver for the given lock id
func GetCmdModuleBalance ¶
func GetCmdModuleBalance() (*percocli.QueryDescriptor, *types.ModuleBalanceRequest)
GetCmdModuleBalance returns full balance of the lockup module. Lockup module is where coins of locks are held. This includes locked balance and unlocked balance of the module.
func GetCmdModuleLockedAmount ¶
func GetCmdModuleLockedAmount() (*percocli.QueryDescriptor, *types.ModuleLockedAmountRequest)
GetCmdModuleLockedAmount returns locked balance of the module, which are all the tokens not unlocking + tokens that are not finished unlocking.
func GetCmdNextLockID ¶
GetCmdNextLockID returns next lock id to be created.
func GetCmdOutputLocksJson ¶
GetCmdOutputLocksJson outputs all locks into a file called lock_export.json.
func GetCmdSyntheticLockupByLockupID ¶
GetCmdSyntheticLockupByLockupID returns synthetic lockup by lockup id.
func GetCmdSyntheticLockupsByLockupID ¶
GetCmdSyntheticLockupsByLockupID returns synthetic lockups by lockup id. nolint: staticcheck
func GetCmdTotalLockedByDenom ¶
func GetCmdTotalLockedByDenom() (*percocli.QueryDescriptor, *types.LockedDenomRequest)
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module.
func NewBeginUnlockByIDCmd ¶
func NewBeginUnlockByIDCmd() (*percocli.TxCliDesc, *types.MsgBeginUnlocking)
NewBeginUnlockByIDCmd unlocks individual period lock by ID.
func NewBeginUnlockingAllCmd ¶
func NewBeginUnlockingAllCmd() (*percocli.TxCliDesc, *types.MsgBeginUnlockingAll)
TODO: We should change the Use string to be unlock-all
func NewForceUnlockByIdCmd ¶
func NewForceUnlockByIdCmd() (*percocli.TxCliDesc, *types.MsgForceUnlock)
NewForceUnlockByIdCmd force unlocks individual period lock by ID if proper permissions exist.
func NewLockTokensCmd ¶
func NewLockTokensCmd() (*percocli.TxCliDesc, *types.MsgLockTokens)
func NewSetRewardReceiverAddress ¶
func NewSetRewardReceiverAddress() (*percocli.TxCliDesc, *types.MsgSetRewardReceiverAddress)
NewSetRewardReceiverAddress sets the reward receiver address.
Types ¶
This section is empty.