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 ¶
View Source
const ( FlagPlanType = "plan-type" FlagFarmingPoolAddr = "farming-pool-addr" FlagTerminationAddr = "termination-addr" FlagStakingCoinDenom = "staking-coin-denom" FlagAll = "all" )
Variables ¶
This section is empty.
Functions ¶
func GetCmdQueryParams ¶
func GetCmdQueryPlan ¶
func GetCmdQueryPlans ¶
func GetCmdQueryRewards ¶
func GetCmdQueryStakings ¶
func GetCmdSubmitPublicPlanProposal ¶
GetCmdSubmitPublicPlanProposal implements a command handler for submitting a public farming plan transaction to create, update, and delete plan.
func GetQueryCmd ¶
GetQueryCmd returns a root CLI command handler for all x/farming query commands.
func NewAdvanceEpochCmd ¶
func NewCreateRatioPlanCmd ¶
func NewHarvestCmd ¶
func NewStakeCmd ¶
func NewUnstakeCmd ¶
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
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
Click to show internal directories.
Click to hide internal directories.