Documentation ¶
Index ¶
- Constants
- Variables
- func GetCmdAdjustPool() *cobra.Command
- func GetCmdCreateFarmPool() *cobra.Command
- func GetCmdDestroyFarmPool() *cobra.Command
- func GetCmdHarvest() *cobra.Command
- func GetCmdQueryFarmPool() *cobra.Command
- func GetCmdQueryFarmPools() *cobra.Command
- func GetCmdQueryFarmer() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdStake() *cobra.Command
- func GetCmdUnstake() *cobra.Command
- func GetCreatePoolWithCommunityPool() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
Constants ¶
const ( FlagDescription = "description" FlagStartHeight = "start-height" FlagRewardPerBlock = "reward-per-block" FlagLPTokenDenom = "lp-token-denom" FlagTotalReward = "total-reward" FlagEditable = "editable" FlagFarmPool = "pool-id" FlagAdditionalReward = "additional-reward" FlagProposalDescription = "proposal-description" FlagProposalTitle = "proposal-title" FlagProposaldeposit = "proposal-deposit" FlagFundApplied = "proposal-fund-applied" FlagFundSelfBond = "proposal-fund-self-bond" )
Variables ¶
var ( FsCreateFarmPool = flag.NewFlagSet("", flag.ContinueOnError) FsCreatePoolWithCommunityPool = flag.NewFlagSet("", flag.ContinueOnError) FsAdjustFarmPool = flag.NewFlagSet("", flag.ContinueOnError) FsQueryFarmPool = flag.NewFlagSet("", flag.ContinueOnError) )
common flag sets to add to various functions
Functions ¶
func GetCmdAdjustPool ¶
GetCmdAdjustPool implements the append some reward for farm pool command.
func GetCmdCreateFarmPool ¶
GetCmdCreateFarmPool implements the create a new farm pool command.
func GetCmdDestroyFarmPool ¶
GetCmdDestroyFarmPool implements the destroy a farm pool command.
func GetCmdHarvest ¶
GetCmdHarvest implements the withdrawing some reward from the farm pool.
func GetCmdQueryFarmPool ¶
GetCmdQueryFarmPools implements the query a farm pool.
func GetCmdQueryFarmPools ¶
GetCmdQueryFarmPools implements the query the farm pool by page.
func GetCmdQueryFarmer ¶
GetCmdQueryFarmer implements the query the farmer reward.
func GetCmdQueryParams ¶
GetCmdQueryParams implements the query params command.
func GetCmdStake ¶
GetCmdStake implements the staking lp token to farm pool command.
func GetCmdUnstake ¶
GetCmdUnstake implements the unstaking some lp token from farm pool command.
func GetCreatePoolWithCommunityPool ¶
GetCreatePoolWithCommunityPool implements the create a new farm pool with communityPool command.
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for the farm module.
Types ¶
This section is empty.