cli

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 GetCmdQueryCurrentEpochDays

func GetCmdQueryCurrentEpochDays() *cobra.Command

func GetCmdQueryParams

func GetCmdQueryParams() *cobra.Command

func GetCmdQueryPlan

func GetCmdQueryPlan() *cobra.Command

func GetCmdQueryPlans

func GetCmdQueryPlans() *cobra.Command

func GetCmdQueryRewards

func GetCmdQueryRewards() *cobra.Command

func GetCmdQueryStakings

func GetCmdQueryStakings() *cobra.Command

func GetCmdQueryTotalStakings

func GetCmdQueryTotalStakings() *cobra.Command

func GetCmdSubmitPublicPlanProposal

func GetCmdSubmitPublicPlanProposal() *cobra.Command

GetCmdSubmitPublicPlanProposal implements a command handler for submitting a public farming plan transaction to create, update, and delete plan.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns a root CLI command handler for all x/farming query commands.

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns a root CLI command handler for all x/farming transaction commands.

func NewAdvanceEpochCmd

func NewAdvanceEpochCmd() *cobra.Command

func NewCreateFixedAmountPlanCmd

func NewCreateFixedAmountPlanCmd() *cobra.Command

func NewCreateRatioPlanCmd

func NewCreateRatioPlanCmd() *cobra.Command

func NewHarvestCmd

func NewHarvestCmd() *cobra.Command

func NewStakeCmd

func NewStakeCmd() *cobra.Command

func NewUnstakeCmd

func NewUnstakeCmd() *cobra.Command

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL