Documentation ¶
Index ¶
- Constants
- func GetCmdQueryCurrentEpochDays() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdQueryPlan() *cobra.Command
- func GetCmdQueryPlans() *cobra.Command
- func GetCmdQueryRewards() *cobra.Command
- func GetCmdQueryStakings() *cobra.Command
- func GetCmdQueryTotalStakings() *cobra.Command
- func GetCmdSubmitPublicPlanProposal() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func GetTxCmd() *cobra.Command
- func NewAdvanceEpochCmd() *cobra.Command
- func NewCreateFixedAmountPlanCmd() *cobra.Command
- func NewCreateRatioPlanCmd() *cobra.Command
- func NewHarvestCmd() *cobra.Command
- func NewStakeCmd() *cobra.Command
- func NewUnstakeCmd() *cobra.Command
- func ParsePublicPlanProposal(cdc codec.JSONCodec, proposalFile string) (types.PublicPlanProposal, error)
- type PrivateFixedPlanRequest
- type PrivateRatioPlanRequest
Constants ¶
const ( FlagPlanType = "plan-type" FlagFarmingPoolAddr = "farming-pool-addr" FlagTerminationAddr = "termination-addr" FlagStakingCoinDenom = "staking-coin-denom" FlagAll = "all" )
Variables ¶
This section is empty.
Functions ¶
func GetCmdQueryCurrentEpochDays ¶
GetCmdQueryCurrentEpochDays implements the query current epoch days command.
func GetCmdQueryParams ¶
GetCmdQueryParams implements the query params command.
func GetCmdQueryPlan ¶
GetCmdQueryPlan implements the query the particular plan command.
func GetCmdQueryPlans ¶
GetCmdQueryPlans implements the query all plans command.
func GetCmdQueryRewards ¶
GetCmdQueryRewards implements the query all rewards for a farmer command.
func GetCmdQueryStakings ¶
GetCmdQueryStakings implements the query all stakings command.
func GetCmdQueryTotalStakings ¶
GetCmdQueryTotalStakings implements the query total staking amounts for a staking coin denom command.
func GetCmdSubmitPublicPlanProposal ¶
GetCmdSubmitPublicPlanProposal implements the create/update/delete public farming plan command handler.
func GetQueryCmd ¶
GetQueryCmd returns a root CLI command handler for all x/farming query commands.
func NewAdvanceEpochCmd ¶
NewAdvanceEpochCmd implements the advance epoch by 1 command handler.
func NewCreateFixedAmountPlanCmd ¶
NewCreateFixedAmountPlanCmd implements the create a fixed amount plan command handler.
func NewCreateRatioPlanCmd ¶
NewCreateRatioPlanCmd implements the create a ratio plan command handler.
func NewHarvestCmd ¶
NewHarvestCmd implements the harvest rewards command handler.
func NewStakeCmd ¶
NewStakeCmd implements the stake coin(s) command handler.
func NewUnstakeCmd ¶
NewUnstakeCmd implements the unstake coin(s) command handler.
func ParsePublicPlanProposal ¶
func ParsePublicPlanProposal(cdc codec.JSONCodec, proposalFile string) (types.PublicPlanProposal, error)
ParsePublicPlanProposal reads and parses a PublicPlanProposal from a file.
Types ¶
type PrivateFixedPlanRequest ¶
type PrivateFixedPlanRequest struct { Name string `json:"name"` StakingCoinWeights sdk.DecCoins `json:"staking_coin_weights"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` EpochAmount sdk.Coins `json:"epoch_amount"` }
PrivateFixedPlanRequest defines CLI request for a private fixed plan.
func ParsePrivateFixedPlan ¶
func ParsePrivateFixedPlan(file string) (PrivateFixedPlanRequest, error)
ParsePrivateFixedPlan reads and parses a PrivateFixedPlanRequest from a file.
func (PrivateFixedPlanRequest) String ¶
func (req PrivateFixedPlanRequest) String() string
String returns a human readable string representation of the request.
type PrivateRatioPlanRequest ¶
type PrivateRatioPlanRequest struct { Name string `json:"name"` StakingCoinWeights sdk.DecCoins `json:"staking_coin_weights"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` EpochRatio sdk.Dec `json:"epoch_ratio"` }
PrivateRatioPlanRequest defines CLI request for a private ratio plan.
func ParsePrivateRatioPlan ¶
func ParsePrivateRatioPlan(file string) (PrivateRatioPlanRequest, error)
ParsePrivateRatioPlan reads and parses a PrivateRatioPlanRequest from a file.
func (PrivateRatioPlanRequest) String ¶
func (req PrivateRatioPlanRequest) String() string
String returns a human readable string representation of the request.