Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GenerateRewardPoolAcc(name string) sdk.AccAddress
- func GenerateStakingReserveAcc(name string) sdk.AccAddress
- func GetPlanByFarmerAddrIndexKey(farmerAcc sdk.AccAddress, planID uint64) []byte
- func GetPlanKey(planID uint64) []byte
- func GetPlansByFarmerAddrIndexKey(farmerAcc sdk.AccAddress) []byte
- func GetRewardIndexKey(planID uint64, farmerAcc sdk.AccAddress) []byte
- func GetRewardPrefix(planID uint64) []byte
- func GetStakingIndexKey(planID uint64, farmerAcc sdk.AccAddress) []byte
- func GetStakingPrefix(planID uint64) []byte
- func NewPublicPlanProposal(title, description string, plans []PlanI) (gov.Content, error)
- func PackPlans(plans []PlanI) ([]*types.Any, error)
- func ParamKeyTable() paramstypes.KeyTable
- func PlanName(id uint64, typ PlanType, farmingPoolAddr string) string
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data GenesisState) error
- type AccountKeeper
- type BankKeeper
- type BasePlan
- func (*BasePlan) Descriptor() ([]byte, []int)
- func (plan BasePlan) GetEndTime() time.Time
- func (plan BasePlan) GetEpochDays() uint32
- func (plan BasePlan) GetFarmingPoolAddress() sdk.AccAddress
- func (plan BasePlan) GetId() uint64
- func (plan BasePlan) GetRewardPoolAddress() sdk.AccAddress
- func (plan BasePlan) GetStakingCoinWeights() sdk.DecCoins
- func (plan BasePlan) GetStakingReserveAddress() sdk.AccAddress
- func (plan BasePlan) GetStartTime() time.Time
- func (plan BasePlan) GetTerminationAddress() sdk.AccAddress
- func (plan BasePlan) GetType() PlanType
- func (m *BasePlan) Marshal() (dAtA []byte, err error)
- func (m *BasePlan) MarshalTo(dAtA []byte) (int, error)
- func (m *BasePlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (plan BasePlan) MarshalYAML() (interface{}, error)
- func (plan BasePlan) Name() string
- func (*BasePlan) ProtoMessage()
- func (m *BasePlan) Reset()
- func (plan *BasePlan) SetEndTime(t time.Time) error
- func (plan *BasePlan) SetEpochDays(days uint32) error
- func (plan *BasePlan) SetFarmingPoolAddress(addr sdk.AccAddress) error
- func (plan *BasePlan) SetId(id uint64) error
- func (plan *BasePlan) SetRewardPoolAddress(addr sdk.AccAddress) error
- func (plan *BasePlan) SetStakingCoinWeights(coinWeights sdk.DecCoins) error
- func (plan *BasePlan) SetStakingReserveAddress(addr sdk.AccAddress) error
- func (plan *BasePlan) SetStartTime(t time.Time) error
- func (plan *BasePlan) SetTerminationAddress(addr sdk.AccAddress) error
- func (plan *BasePlan) SetType(typ PlanType) error
- func (m *BasePlan) Size() (n int)
- func (plan BasePlan) String() string
- func (m *BasePlan) Unmarshal(dAtA []byte) error
- func (plan BasePlan) Validate() error
- func (m *BasePlan) XXX_DiscardUnknown()
- func (m *BasePlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BasePlan) XXX_Merge(src proto.Message)
- func (m *BasePlan) XXX_Size() int
- func (m *BasePlan) XXX_Unmarshal(b []byte) error
- type DistributionKeeper
- type FixedAmountPlan
- func (*FixedAmountPlan) Descriptor() ([]byte, []int)
- func (m *FixedAmountPlan) Marshal() (dAtA []byte, err error)
- func (m *FixedAmountPlan) MarshalTo(dAtA []byte) (int, error)
- func (m *FixedAmountPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FixedAmountPlan) ProtoMessage()
- func (m *FixedAmountPlan) Reset()
- func (m *FixedAmountPlan) Size() (n int)
- func (m *FixedAmountPlan) Unmarshal(dAtA []byte) error
- func (m *FixedAmountPlan) XXX_DiscardUnknown()
- func (m *FixedAmountPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FixedAmountPlan) XXX_Merge(src proto.Message)
- func (m *FixedAmountPlan) XXX_Size() int
- func (m *FixedAmountPlan) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClaim
- func (*MsgClaim) Descriptor() ([]byte, []int)
- func (msg MsgClaim) GetClaimer() sdk.AccAddress
- func (m *MsgClaim) GetFarmer() string
- func (m *MsgClaim) GetPlanId() uint64
- func (msg MsgClaim) GetSignBytes() []byte
- func (msg MsgClaim) GetSigners() []sdk.AccAddress
- func (m *MsgClaim) Marshal() (dAtA []byte, err error)
- func (m *MsgClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaim) ProtoMessage()
- func (m *MsgClaim) Reset()
- func (msg MsgClaim) Route() string
- func (m *MsgClaim) Size() (n int)
- func (m *MsgClaim) String() string
- func (msg MsgClaim) Type() string
- func (m *MsgClaim) Unmarshal(dAtA []byte) error
- func (msg MsgClaim) ValidateBasic() error
- func (m *MsgClaim) XXX_DiscardUnknown()
- func (m *MsgClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaim) XXX_Merge(src proto.Message)
- func (m *MsgClaim) XXX_Size() int
- func (m *MsgClaim) XXX_Unmarshal(b []byte) error
- type MsgClaimResponse
- func (*MsgClaimResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimResponse) ProtoMessage()
- func (m *MsgClaimResponse) Reset()
- func (m *MsgClaimResponse) Size() (n int)
- func (m *MsgClaimResponse) String() string
- func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimResponse) XXX_DiscardUnknown()
- func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimResponse) XXX_Size() int
- func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateFixedAmountPlan
- func (*MsgCreateFixedAmountPlan) Descriptor() ([]byte, []int)
- func (m *MsgCreateFixedAmountPlan) GetEndTime() time.Time
- func (m *MsgCreateFixedAmountPlan) GetEpochAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCreateFixedAmountPlan) GetEpochDays() uint32
- func (m *MsgCreateFixedAmountPlan) GetFarmingPoolAddress() string
- func (msg MsgCreateFixedAmountPlan) GetPlanCreator() sdk.AccAddress
- func (msg MsgCreateFixedAmountPlan) GetSignBytes() []byte
- func (msg MsgCreateFixedAmountPlan) GetSigners() []sdk.AccAddress
- func (m *MsgCreateFixedAmountPlan) GetStakingCoinWeights() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *MsgCreateFixedAmountPlan) GetStartTime() time.Time
- func (m *MsgCreateFixedAmountPlan) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateFixedAmountPlan) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateFixedAmountPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateFixedAmountPlan) ProtoMessage()
- func (m *MsgCreateFixedAmountPlan) Reset()
- func (msg MsgCreateFixedAmountPlan) Route() string
- func (m *MsgCreateFixedAmountPlan) Size() (n int)
- func (m *MsgCreateFixedAmountPlan) String() string
- func (msg MsgCreateFixedAmountPlan) Type() string
- func (m *MsgCreateFixedAmountPlan) Unmarshal(dAtA []byte) error
- func (msg MsgCreateFixedAmountPlan) ValidateBasic() error
- func (m *MsgCreateFixedAmountPlan) XXX_DiscardUnknown()
- func (m *MsgCreateFixedAmountPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateFixedAmountPlan) XXX_Merge(src proto.Message)
- func (m *MsgCreateFixedAmountPlan) XXX_Size() int
- func (m *MsgCreateFixedAmountPlan) XXX_Unmarshal(b []byte) error
- type MsgCreateFixedAmountPlanResponse
- func (*MsgCreateFixedAmountPlanResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateFixedAmountPlanResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateFixedAmountPlanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateFixedAmountPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateFixedAmountPlanResponse) ProtoMessage()
- func (m *MsgCreateFixedAmountPlanResponse) Reset()
- func (m *MsgCreateFixedAmountPlanResponse) Size() (n int)
- func (m *MsgCreateFixedAmountPlanResponse) String() string
- func (m *MsgCreateFixedAmountPlanResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateFixedAmountPlanResponse) XXX_DiscardUnknown()
- func (m *MsgCreateFixedAmountPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateFixedAmountPlanResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateFixedAmountPlanResponse) XXX_Size() int
- func (m *MsgCreateFixedAmountPlanResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateRatioPlan
- func (*MsgCreateRatioPlan) Descriptor() ([]byte, []int)
- func (m *MsgCreateRatioPlan) GetEndTime() time.Time
- func (m *MsgCreateRatioPlan) GetEpochDays() uint32
- func (m *MsgCreateRatioPlan) GetFarmingPoolAddress() string
- func (msg MsgCreateRatioPlan) GetPlanCreator() sdk.AccAddress
- func (msg MsgCreateRatioPlan) GetSignBytes() []byte
- func (msg MsgCreateRatioPlan) GetSigners() []sdk.AccAddress
- func (m *MsgCreateRatioPlan) GetStakingCoinWeights() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *MsgCreateRatioPlan) GetStartTime() time.Time
- func (m *MsgCreateRatioPlan) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateRatioPlan) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateRatioPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateRatioPlan) ProtoMessage()
- func (m *MsgCreateRatioPlan) Reset()
- func (msg MsgCreateRatioPlan) Route() string
- func (m *MsgCreateRatioPlan) Size() (n int)
- func (m *MsgCreateRatioPlan) String() string
- func (msg MsgCreateRatioPlan) Type() string
- func (m *MsgCreateRatioPlan) Unmarshal(dAtA []byte) error
- func (msg MsgCreateRatioPlan) ValidateBasic() error
- func (m *MsgCreateRatioPlan) XXX_DiscardUnknown()
- func (m *MsgCreateRatioPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateRatioPlan) XXX_Merge(src proto.Message)
- func (m *MsgCreateRatioPlan) XXX_Size() int
- func (m *MsgCreateRatioPlan) XXX_Unmarshal(b []byte) error
- type MsgCreateRatioPlanResponse
- func (*MsgCreateRatioPlanResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateRatioPlanResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateRatioPlanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateRatioPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateRatioPlanResponse) ProtoMessage()
- func (m *MsgCreateRatioPlanResponse) Reset()
- func (m *MsgCreateRatioPlanResponse) Size() (n int)
- func (m *MsgCreateRatioPlanResponse) String() string
- func (m *MsgCreateRatioPlanResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateRatioPlanResponse) XXX_DiscardUnknown()
- func (m *MsgCreateRatioPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateRatioPlanResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateRatioPlanResponse) XXX_Size() int
- func (m *MsgCreateRatioPlanResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgStake
- func (*MsgStake) Descriptor() ([]byte, []int)
- func (m *MsgStake) GetFarmer() string
- func (m *MsgStake) GetPlanId() uint64
- func (msg MsgStake) GetSignBytes() []byte
- func (msg MsgStake) GetSigners() []sdk.AccAddress
- func (msg MsgStake) GetStaker() sdk.AccAddress
- func (m *MsgStake) GetStakingCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgStake) Marshal() (dAtA []byte, err error)
- func (m *MsgStake) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStake) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStake) ProtoMessage()
- func (m *MsgStake) Reset()
- func (msg MsgStake) Route() string
- func (m *MsgStake) Size() (n int)
- func (m *MsgStake) String() string
- func (msg MsgStake) Type() string
- func (m *MsgStake) Unmarshal(dAtA []byte) error
- func (msg MsgStake) ValidateBasic() error
- func (m *MsgStake) XXX_DiscardUnknown()
- func (m *MsgStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStake) XXX_Merge(src proto.Message)
- func (m *MsgStake) XXX_Size() int
- func (m *MsgStake) XXX_Unmarshal(b []byte) error
- type MsgStakeResponse
- func (*MsgStakeResponse) Descriptor() ([]byte, []int)
- func (m *MsgStakeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStakeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStakeResponse) ProtoMessage()
- func (m *MsgStakeResponse) Reset()
- func (m *MsgStakeResponse) Size() (n int)
- func (m *MsgStakeResponse) String() string
- func (m *MsgStakeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStakeResponse) XXX_DiscardUnknown()
- func (m *MsgStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStakeResponse) XXX_Merge(src proto.Message)
- func (m *MsgStakeResponse) XXX_Size() int
- func (m *MsgStakeResponse) XXX_Unmarshal(b []byte) error
- type MsgUnstake
- func (*MsgUnstake) Descriptor() ([]byte, []int)
- func (m *MsgUnstake) GetFarmer() string
- func (m *MsgUnstake) GetPlanId() uint64
- func (msg MsgUnstake) GetSignBytes() []byte
- func (msg MsgUnstake) GetSigners() []sdk.AccAddress
- func (msg MsgUnstake) GetUnstaker() sdk.AccAddress
- func (m *MsgUnstake) GetUnstakingCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgUnstake) Marshal() (dAtA []byte, err error)
- func (m *MsgUnstake) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnstake) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnstake) ProtoMessage()
- func (m *MsgUnstake) Reset()
- func (msg MsgUnstake) Route() string
- func (m *MsgUnstake) Size() (n int)
- func (m *MsgUnstake) String() string
- func (msg MsgUnstake) Type() string
- func (m *MsgUnstake) Unmarshal(dAtA []byte) error
- func (msg MsgUnstake) ValidateBasic() error
- func (m *MsgUnstake) XXX_DiscardUnknown()
- func (m *MsgUnstake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnstake) XXX_Merge(src proto.Message)
- func (m *MsgUnstake) XXX_Size() int
- func (m *MsgUnstake) XXX_Unmarshal(b []byte) error
- type MsgUnstakeResponse
- func (*MsgUnstakeResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnstakeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnstakeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnstakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnstakeResponse) ProtoMessage()
- func (m *MsgUnstakeResponse) Reset()
- func (m *MsgUnstakeResponse) Size() (n int)
- func (m *MsgUnstakeResponse) String() string
- func (m *MsgUnstakeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnstakeResponse) XXX_DiscardUnknown()
- func (m *MsgUnstakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnstakeResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnstakeResponse) XXX_Size() int
- func (m *MsgUnstakeResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetPrivatePlanCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PlanI
- type PlanRecord
- func (*PlanRecord) Descriptor() ([]byte, []int)
- func (m *PlanRecord) Marshal() (dAtA []byte, err error)
- func (m *PlanRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *PlanRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PlanRecord) ProtoMessage()
- func (m *PlanRecord) Reset()
- func (m *PlanRecord) Size() (n int)
- func (m *PlanRecord) String() string
- func (m *PlanRecord) Unmarshal(dAtA []byte) error
- func (r PlanRecord) Validate() error
- func (m *PlanRecord) XXX_DiscardUnknown()
- func (m *PlanRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlanRecord) XXX_Merge(src proto.Message)
- func (m *PlanRecord) XXX_Size() int
- func (m *PlanRecord) XXX_Unmarshal(b []byte) error
- type PlanType
- type PublicPlanProposal
- func (*PublicPlanProposal) Descriptor() ([]byte, []int)
- func (p *PublicPlanProposal) GetDescription() string
- func (p *PublicPlanProposal) GetTitle() string
- func (m *PublicPlanProposal) Marshal() (dAtA []byte, err error)
- func (m *PublicPlanProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *PublicPlanProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *PublicPlanProposal) ProposalRoute() string
- func (p *PublicPlanProposal) ProposalType() string
- func (*PublicPlanProposal) ProtoMessage()
- func (m *PublicPlanProposal) Reset()
- func (m *PublicPlanProposal) Size() (n int)
- func (p PublicPlanProposal) String() string
- func (m *PublicPlanProposal) Unmarshal(dAtA []byte) error
- func (p *PublicPlanProposal) ValidateBasic() error
- func (m *PublicPlanProposal) XXX_DiscardUnknown()
- func (m *PublicPlanProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicPlanProposal) XXX_Merge(src proto.Message)
- func (m *PublicPlanProposal) XXX_Size() int
- func (m *PublicPlanProposal) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryFarmerRewardRequest
- func (*QueryFarmerRewardRequest) Descriptor() ([]byte, []int)
- func (m *QueryFarmerRewardRequest) GetFarmer() string
- func (m *QueryFarmerRewardRequest) GetPlanId() uint64
- func (m *QueryFarmerRewardRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerRewardRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerRewardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerRewardRequest) ProtoMessage()
- func (m *QueryFarmerRewardRequest) Reset()
- func (m *QueryFarmerRewardRequest) Size() (n int)
- func (m *QueryFarmerRewardRequest) String() string
- func (m *QueryFarmerRewardRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerRewardRequest) XXX_DiscardUnknown()
- func (m *QueryFarmerRewardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerRewardRequest) XXX_Merge(src proto.Message)
- func (m *QueryFarmerRewardRequest) XXX_Size() int
- func (m *QueryFarmerRewardRequest) XXX_Unmarshal(b []byte) error
- type QueryFarmerRewardResponse
- func (*QueryFarmerRewardResponse) Descriptor() ([]byte, []int)
- func (m *QueryFarmerRewardResponse) GetReward() *Reward
- func (m *QueryFarmerRewardResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerRewardResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerRewardResponse) ProtoMessage()
- func (m *QueryFarmerRewardResponse) Reset()
- func (m *QueryFarmerRewardResponse) Size() (n int)
- func (m *QueryFarmerRewardResponse) String() string
- func (m *QueryFarmerRewardResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerRewardResponse) XXX_DiscardUnknown()
- func (m *QueryFarmerRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerRewardResponse) XXX_Merge(src proto.Message)
- func (m *QueryFarmerRewardResponse) XXX_Size() int
- func (m *QueryFarmerRewardResponse) XXX_Unmarshal(b []byte) error
- type QueryFarmerRewardsRequest
- func (*QueryFarmerRewardsRequest) Descriptor() ([]byte, []int)
- func (m *QueryFarmerRewardsRequest) GetFarmer() string
- func (m *QueryFarmerRewardsRequest) GetPagination() *query.PageRequest
- func (m *QueryFarmerRewardsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerRewardsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerRewardsRequest) ProtoMessage()
- func (m *QueryFarmerRewardsRequest) Reset()
- func (m *QueryFarmerRewardsRequest) Size() (n int)
- func (m *QueryFarmerRewardsRequest) String() string
- func (m *QueryFarmerRewardsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerRewardsRequest) XXX_DiscardUnknown()
- func (m *QueryFarmerRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerRewardsRequest) XXX_Merge(src proto.Message)
- func (m *QueryFarmerRewardsRequest) XXX_Size() int
- func (m *QueryFarmerRewardsRequest) XXX_Unmarshal(b []byte) error
- type QueryFarmerRewardsResponse
- func (*QueryFarmerRewardsResponse) Descriptor() ([]byte, []int)
- func (m *QueryFarmerRewardsResponse) GetPagination() *query.PageResponse
- func (m *QueryFarmerRewardsResponse) GetRewards() []*Reward
- func (m *QueryFarmerRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerRewardsResponse) ProtoMessage()
- func (m *QueryFarmerRewardsResponse) Reset()
- func (m *QueryFarmerRewardsResponse) Size() (n int)
- func (m *QueryFarmerRewardsResponse) String() string
- func (m *QueryFarmerRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerRewardsResponse) XXX_DiscardUnknown()
- func (m *QueryFarmerRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerRewardsResponse) XXX_Merge(src proto.Message)
- func (m *QueryFarmerRewardsResponse) XXX_Size() int
- func (m *QueryFarmerRewardsResponse) XXX_Unmarshal(b []byte) error
- type QueryFarmerStakingRequest
- func (*QueryFarmerStakingRequest) Descriptor() ([]byte, []int)
- func (m *QueryFarmerStakingRequest) GetFarmer() string
- func (m *QueryFarmerStakingRequest) GetPlanId() uint64
- func (m *QueryFarmerStakingRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerStakingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerStakingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerStakingRequest) ProtoMessage()
- func (m *QueryFarmerStakingRequest) Reset()
- func (m *QueryFarmerStakingRequest) Size() (n int)
- func (m *QueryFarmerStakingRequest) String() string
- func (m *QueryFarmerStakingRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerStakingRequest) XXX_DiscardUnknown()
- func (m *QueryFarmerStakingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerStakingRequest) XXX_Merge(src proto.Message)
- func (m *QueryFarmerStakingRequest) XXX_Size() int
- func (m *QueryFarmerStakingRequest) XXX_Unmarshal(b []byte) error
- type QueryFarmerStakingResponse
- func (*QueryFarmerStakingResponse) Descriptor() ([]byte, []int)
- func (m *QueryFarmerStakingResponse) GetStaking() *Staking
- func (m *QueryFarmerStakingResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerStakingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerStakingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerStakingResponse) ProtoMessage()
- func (m *QueryFarmerStakingResponse) Reset()
- func (m *QueryFarmerStakingResponse) Size() (n int)
- func (m *QueryFarmerStakingResponse) String() string
- func (m *QueryFarmerStakingResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerStakingResponse) XXX_DiscardUnknown()
- func (m *QueryFarmerStakingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerStakingResponse) XXX_Merge(src proto.Message)
- func (m *QueryFarmerStakingResponse) XXX_Size() int
- func (m *QueryFarmerStakingResponse) XXX_Unmarshal(b []byte) error
- type QueryFarmerStakingsRequest
- func (*QueryFarmerStakingsRequest) Descriptor() ([]byte, []int)
- func (m *QueryFarmerStakingsRequest) GetFarmer() string
- func (m *QueryFarmerStakingsRequest) GetPagination() *query.PageRequest
- func (m *QueryFarmerStakingsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerStakingsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerStakingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerStakingsRequest) ProtoMessage()
- func (m *QueryFarmerStakingsRequest) Reset()
- func (m *QueryFarmerStakingsRequest) Size() (n int)
- func (m *QueryFarmerStakingsRequest) String() string
- func (m *QueryFarmerStakingsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerStakingsRequest) XXX_DiscardUnknown()
- func (m *QueryFarmerStakingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerStakingsRequest) XXX_Merge(src proto.Message)
- func (m *QueryFarmerStakingsRequest) XXX_Size() int
- func (m *QueryFarmerStakingsRequest) XXX_Unmarshal(b []byte) error
- type QueryFarmerStakingsResponse
- func (*QueryFarmerStakingsResponse) Descriptor() ([]byte, []int)
- func (m *QueryFarmerStakingsResponse) GetPagination() *query.PageResponse
- func (m *QueryFarmerStakingsResponse) GetStakings() []*Staking
- func (m *QueryFarmerStakingsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerStakingsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerStakingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerStakingsResponse) ProtoMessage()
- func (m *QueryFarmerStakingsResponse) Reset()
- func (m *QueryFarmerStakingsResponse) Size() (n int)
- func (m *QueryFarmerStakingsResponse) String() string
- func (m *QueryFarmerStakingsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerStakingsResponse) XXX_DiscardUnknown()
- func (m *QueryFarmerStakingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerStakingsResponse) XXX_Merge(src proto.Message)
- func (m *QueryFarmerStakingsResponse) XXX_Size() int
- func (m *QueryFarmerStakingsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPlanRequest
- func (*QueryPlanRequest) Descriptor() ([]byte, []int)
- func (m *QueryPlanRequest) GetPlanId() uint64
- func (m *QueryPlanRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPlanRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlanRequest) ProtoMessage()
- func (m *QueryPlanRequest) Reset()
- func (m *QueryPlanRequest) Size() (n int)
- func (m *QueryPlanRequest) String() string
- func (m *QueryPlanRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPlanRequest) XXX_DiscardUnknown()
- func (m *QueryPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlanRequest) XXX_Merge(src proto.Message)
- func (m *QueryPlanRequest) XXX_Size() int
- func (m *QueryPlanRequest) XXX_Unmarshal(b []byte) error
- type QueryPlanResponse
- func (*QueryPlanResponse) Descriptor() ([]byte, []int)
- func (m *QueryPlanResponse) GetPlan() *types.Any
- func (m *QueryPlanResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPlanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlanResponse) ProtoMessage()
- func (m *QueryPlanResponse) Reset()
- func (m *QueryPlanResponse) Size() (n int)
- func (m *QueryPlanResponse) String() string
- func (m *QueryPlanResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPlanResponse) XXX_DiscardUnknown()
- func (m *QueryPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlanResponse) XXX_Merge(src proto.Message)
- func (m *QueryPlanResponse) XXX_Size() int
- func (m *QueryPlanResponse) XXX_Unmarshal(b []byte) error
- type QueryPlanRewardsRequest
- func (*QueryPlanRewardsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPlanRewardsRequest) GetPagination() *query.PageRequest
- func (m *QueryPlanRewardsRequest) GetPlanId() uint64
- func (m *QueryPlanRewardsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPlanRewardsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlanRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlanRewardsRequest) ProtoMessage()
- func (m *QueryPlanRewardsRequest) Reset()
- func (m *QueryPlanRewardsRequest) Size() (n int)
- func (m *QueryPlanRewardsRequest) String() string
- func (m *QueryPlanRewardsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPlanRewardsRequest) XXX_DiscardUnknown()
- func (m *QueryPlanRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlanRewardsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPlanRewardsRequest) XXX_Size() int
- func (m *QueryPlanRewardsRequest) XXX_Unmarshal(b []byte) error
- type QueryPlanRewardsResponse
- func (*QueryPlanRewardsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPlanRewardsResponse) GetPagination() *query.PageResponse
- func (m *QueryPlanRewardsResponse) GetRewards() []*Reward
- func (m *QueryPlanRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPlanRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlanRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlanRewardsResponse) ProtoMessage()
- func (m *QueryPlanRewardsResponse) Reset()
- func (m *QueryPlanRewardsResponse) Size() (n int)
- func (m *QueryPlanRewardsResponse) String() string
- func (m *QueryPlanRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPlanRewardsResponse) XXX_DiscardUnknown()
- func (m *QueryPlanRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlanRewardsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPlanRewardsResponse) XXX_Size() int
- func (m *QueryPlanRewardsResponse) XXX_Unmarshal(b []byte) error
- type QueryPlanStakingsRequest
- func (*QueryPlanStakingsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPlanStakingsRequest) GetPagination() *query.PageRequest
- func (m *QueryPlanStakingsRequest) GetPlanId() uint64
- func (m *QueryPlanStakingsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPlanStakingsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlanStakingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlanStakingsRequest) ProtoMessage()
- func (m *QueryPlanStakingsRequest) Reset()
- func (m *QueryPlanStakingsRequest) Size() (n int)
- func (m *QueryPlanStakingsRequest) String() string
- func (m *QueryPlanStakingsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPlanStakingsRequest) XXX_DiscardUnknown()
- func (m *QueryPlanStakingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlanStakingsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPlanStakingsRequest) XXX_Size() int
- func (m *QueryPlanStakingsRequest) XXX_Unmarshal(b []byte) error
- type QueryPlanStakingsResponse
- func (*QueryPlanStakingsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPlanStakingsResponse) GetPagination() *query.PageResponse
- func (m *QueryPlanStakingsResponse) GetStakings() []*Staking
- func (m *QueryPlanStakingsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPlanStakingsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlanStakingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlanStakingsResponse) ProtoMessage()
- func (m *QueryPlanStakingsResponse) Reset()
- func (m *QueryPlanStakingsResponse) Size() (n int)
- func (m *QueryPlanStakingsResponse) String() string
- func (m *QueryPlanStakingsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPlanStakingsResponse) XXX_DiscardUnknown()
- func (m *QueryPlanStakingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlanStakingsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPlanStakingsResponse) XXX_Size() int
- func (m *QueryPlanStakingsResponse) XXX_Unmarshal(b []byte) error
- type QueryPlansRequest
- func (*QueryPlansRequest) Descriptor() ([]byte, []int)
- func (m *QueryPlansRequest) GetFarmingPoolAddress() string
- func (m *QueryPlansRequest) GetPagination() *query.PageRequest
- func (m *QueryPlansRequest) GetRewardPoolAddress() string
- func (m *QueryPlansRequest) GetStakingCoinDenom() string
- func (m *QueryPlansRequest) GetStakingReserveAddress() string
- func (m *QueryPlansRequest) GetTerminationAddress() string
- func (m *QueryPlansRequest) GetType() string
- func (m *QueryPlansRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPlansRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlansRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlansRequest) ProtoMessage()
- func (m *QueryPlansRequest) Reset()
- func (m *QueryPlansRequest) Size() (n int)
- func (m *QueryPlansRequest) String() string
- func (m *QueryPlansRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPlansRequest) XXX_DiscardUnknown()
- func (m *QueryPlansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlansRequest) XXX_Merge(src proto.Message)
- func (m *QueryPlansRequest) XXX_Size() int
- func (m *QueryPlansRequest) XXX_Unmarshal(b []byte) error
- type QueryPlansResponse
- func (*QueryPlansResponse) Descriptor() ([]byte, []int)
- func (m *QueryPlansResponse) GetPagination() *query.PageResponse
- func (m *QueryPlansResponse) GetPlans() []*types.Any
- func (m *QueryPlansResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPlansResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlansResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlansResponse) ProtoMessage()
- func (m *QueryPlansResponse) Reset()
- func (m *QueryPlansResponse) Size() (n int)
- func (m *QueryPlansResponse) String() string
- func (m *QueryPlansResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPlansResponse) XXX_DiscardUnknown()
- func (m *QueryPlansResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlansResponse) XXX_Merge(src proto.Message)
- func (m *QueryPlansResponse) XXX_Size() int
- func (m *QueryPlansResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RatioPlan
- func (*RatioPlan) Descriptor() ([]byte, []int)
- func (m *RatioPlan) Marshal() (dAtA []byte, err error)
- func (m *RatioPlan) MarshalTo(dAtA []byte) (int, error)
- func (m *RatioPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RatioPlan) ProtoMessage()
- func (m *RatioPlan) Reset()
- func (m *RatioPlan) Size() (n int)
- func (m *RatioPlan) Unmarshal(dAtA []byte) error
- func (m *RatioPlan) XXX_DiscardUnknown()
- func (m *RatioPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RatioPlan) XXX_Merge(src proto.Message)
- func (m *RatioPlan) XXX_Size() int
- func (m *RatioPlan) XXX_Unmarshal(b []byte) error
- type Reward
- func (*Reward) Descriptor() ([]byte, []int)
- func (reward Reward) GetFarmerAddress() sdk.AccAddress
- func (m *Reward) Marshal() (dAtA []byte, err error)
- func (m *Reward) MarshalTo(dAtA []byte) (int, error)
- func (m *Reward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (r Reward) MarshalYAML() (interface{}, error)
- func (*Reward) ProtoMessage()
- func (m *Reward) Reset()
- func (m *Reward) Size() (n int)
- func (r Reward) String() string
- func (m *Reward) Unmarshal(dAtA []byte) error
- func (r Reward) Validate() error
- func (m *Reward) XXX_DiscardUnknown()
- func (m *Reward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reward) XXX_Merge(src proto.Message)
- func (m *Reward) XXX_Size() int
- func (m *Reward) XXX_Unmarshal(b []byte) error
- type Staking
- func (*Staking) Descriptor() ([]byte, []int)
- func (staking Staking) GetFarmerAddress() sdk.AccAddress
- func (m *Staking) Marshal() (dAtA []byte, err error)
- func (m *Staking) MarshalTo(dAtA []byte) (int, error)
- func (m *Staking) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (s Staking) MarshalYAML() (interface{}, error)
- func (*Staking) ProtoMessage()
- func (m *Staking) Reset()
- func (m *Staking) Size() (n int)
- func (s Staking) String() string
- func (m *Staking) Unmarshal(dAtA []byte) error
- func (s Staking) Validate() error
- func (m *Staking) XXX_DiscardUnknown()
- func (m *Staking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Staking) XXX_Merge(src proto.Message)
- func (m *Staking) XXX_Size() int
- func (m *Staking) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error)
- func (*UnimplementedMsgServer) CreateFixedAmountPlan(ctx context.Context, req *MsgCreateFixedAmountPlan) (*MsgCreateFixedAmountPlanResponse, error)
- func (*UnimplementedMsgServer) CreateRatioPlan(ctx context.Context, req *MsgCreateRatioPlan) (*MsgCreateRatioPlanResponse, error)
- func (*UnimplementedMsgServer) Stake(ctx context.Context, req *MsgStake) (*MsgStakeResponse, error)
- func (*UnimplementedMsgServer) Unstake(ctx context.Context, req *MsgUnstake) (*MsgUnstakeResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) FarmerReward(ctx context.Context, req *QueryFarmerRewardRequest) (*QueryFarmerRewardResponse, error)
- func (*UnimplementedQueryServer) FarmerRewards(ctx context.Context, req *QueryFarmerRewardsRequest) (*QueryFarmerRewardsResponse, error)
- func (*UnimplementedQueryServer) FarmerStaking(ctx context.Context, req *QueryFarmerStakingRequest) (*QueryFarmerStakingResponse, error)
- func (*UnimplementedQueryServer) FarmerStakings(ctx context.Context, req *QueryFarmerStakingsRequest) (*QueryFarmerStakingsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Plan(ctx context.Context, req *QueryPlanRequest) (*QueryPlanResponse, error)
- func (*UnimplementedQueryServer) PlanRewards(ctx context.Context, req *QueryPlanRewardsRequest) (*QueryPlanRewardsResponse, error)
- func (*UnimplementedQueryServer) PlanStakings(ctx context.Context, req *QueryPlanStakingsRequest) (*QueryPlanStakingsResponse, error)
- func (*UnimplementedQueryServer) Plans(ctx context.Context, req *QueryPlansRequest) (*QueryPlansResponse, error)
Constants ¶
const ( EventTypeCreateFixedAmountPlan = "create_fixed_amount_plan" EventTypeCreateRatioPlan = "create_ratio_plan" EventTypeStake = "stake" EventTypeUnstake = "unstake" EventTypeClaim = "claim" AttributeKeyPlanId = "plan_id" //nolint:golint AttributeKeyFarmingPoolAddress = "farming_pool_address" AttributeKeyStakingReserveAddress = "staking_reserve_address" AttributeKeyRewardPoolAddress = "reward_pool_address" AttributeKeyTerminationAddress = "termination_address" AttributeKeyStakingCoinWeights = "staking_coin_weights" AttributeKeyStakingCoins = "staking_coins" AttributeKeyUnstakingCoins = "unstaking_coins" AttributeKeyRewardCoins = "reward_coins" AttributeKeyStartTime = "start_time" AttributeKeyEndTime = "end_time" AttributeKeyEpochDays = "epoch_days" AttributeKeyEpochAmount = "epoch_amount" AttributeKeyEpochRatio = "epoch_ratio" )
Event types for the farming module.
const ( // ModuleName is the name of the farming module ModuleName = "farming" // RouterKey is the message router key for the farming module RouterKey = ModuleName // StoreKey is the default store key for the farming module StoreKey = ModuleName // QuerierRoute is the querier route for the farming module QuerierRoute = ModuleName // RewardPoolAccKeyPrefix is prefix for generating deterministic reward pool module account of the each plan RewardPoolAccKeyPrefix = "RewardPoolAcc" // StakingReserveAccKeyPrefix is prefix for generating deterministic staking reserve module account of the each plan StakingReserveAccKeyPrefix = "StakingReserveAcc" )
const ( TypeMsgCreateFixedAmountPlan = "create_fixed_amount_plan" TypeMsgCreateRatioPlan = "create_ratio_plan" TypeMsgStake = "stake" TypeMsgUnstake = "unstake" TypeMsgClaim = "claim" )
Message types for the farming module
const (
ProposalTypePublicPlan string = "PublicPlan"
)
Variables ¶
var ( ErrPlanNotExists = sdkerrors.Register(ModuleName, 2, "plan not exists") ErrPlanTypeNotExists = sdkerrors.Register(ModuleName, 3, "plan type not exists") ErrInvalidPlanType = sdkerrors.Register(ModuleName, 4, "invalid plan type") ErrInvalidPlanEndTime = sdkerrors.Register(ModuleName, 5, "invalid plan end time") ErrInvalidPlanEpochDays = sdkerrors.Register(ModuleName, 6, "invalid plan epoch days") ErrInvalidPlanEpochRatio = sdkerrors.Register(ModuleName, 7, "invalid plan epoch ratio") ErrEmptyEpochAmount = sdkerrors.Register(ModuleName, 8, "epoch amount must not be empty") ErrEmptyStakingCoinWeights = sdkerrors.Register(ModuleName, 9, "staking coin weights must not be empty") ErrStakingNotExists = sdkerrors.Register(ModuleName, 10, "staking not exists") ErrRewardNotExists = sdkerrors.Register(ModuleName, 11, "reward not exists") ErrInsufficientStakingAmount = sdkerrors.Register(ModuleName, 12, "insufficient staking amount") )
farming module sentinel errors
var ( ErrInvalidLengthFarming = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFarming = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFarming = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // param key for global farming plan IDs GlobalFarmingPlanIDKey = []byte("globalFarmingPlanId") PlanKeyPrefix = []byte{0x11} PlanByFarmerAddrIndexKeyPrefix = []byte{0x12} LastEpochTimeKeyPrefix = []byte{0x13} StakingKeyPrefix = []byte{0x21} RewardKeyPrefix = []byte{0x31} )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
DefaultPrivatePlanCreationFee = sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100_000_000)))
)
var (
KeyPrivatePlanCreationFee = []byte("PrivatePlanCreationFee")
)
Parameter store keys
var ( // ModuleCdc references the global x/farming module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding as Amino // is still used for that purpose. // // The actual codec used for serialization should be provided to x/farming and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
var PlanType_name = map[int32]string{
0: "PLAN_TYPE_UNSPECIFIED",
1: "PLAN_TYPE_PUBLIC",
2: "PLAN_TYPE_PRIVATE",
}
var PlanType_value = map[string]int32{
"PLAN_TYPE_UNSPECIFIED": 0,
"PLAN_TYPE_PUBLIC": 1,
"PLAN_TYPE_PRIVATE": 2,
}
Functions ¶
func GenerateRewardPoolAcc ¶
func GenerateRewardPoolAcc(name string) sdk.AccAddress
GenerateRewardPoolAcc returns deterministically generated reward pool account for the given plan name
func GenerateStakingReserveAcc ¶
func GenerateStakingReserveAcc(name string) sdk.AccAddress
GenerateRewardPoolAcc returns deterministically generated staking reserve account for the given plan name
func GetPlanByFarmerAddrIndexKey ¶
func GetPlanByFarmerAddrIndexKey(farmerAcc sdk.AccAddress, planID uint64) []byte
GetPlanByFarmerAddrIndexKey returns kv indexing key of the plan indexed by reserve account
func GetPlanKey ¶
GetPlanKey returns kv indexing key of the plan
func GetPlansByFarmerAddrIndexKey ¶
func GetPlansByFarmerAddrIndexKey(farmerAcc sdk.AccAddress) []byte
GetPlansByFarmerAddrIndexKey returns kv indexing key of the plan indexed by reserve account
func GetRewardIndexKey ¶
func GetRewardIndexKey(planID uint64, farmerAcc sdk.AccAddress) []byte
GetRewardIndexKey returns key for farmer's reward of corresponding the plan id
func GetRewardPrefix ¶
GetRewardPrefix returns prefix of reward records in the plan
func GetStakingIndexKey ¶
func GetStakingIndexKey(planID uint64, farmerAcc sdk.AccAddress) []byte
GetStakingIndexKey returns key for farmer's staking of corresponding the plan id
func GetStakingPrefix ¶
GetStakingPrefix returns prefix of staking records in the plan
func NewPublicPlanProposal ¶
func ParamKeyTable ¶
func ParamKeyTable() paramstypes.KeyTable
ParamKeyTable returns the parameter key table.
func PlanName ¶
PlanName returns unique name of the plan consists of given Id, Type and FarmingPoolAddress.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the x/farming interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/farming interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates GenesisState.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI GetModuleAddress(name string) sdk.AccAddress }
AccountKeeper defines the expected account keeper
type BankKeeper ¶
type BankKeeper interface { InputOutputCoins(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetSupply(ctx sdk.Context, denom string) sdk.Coin SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error }
BankKeeper defines the expected bank send keeper
type BasePlan ¶
type BasePlan struct { // id specifies index of the farming plan Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // type specifies the plan type; type 0 is public and 1 is private // public plan must be created through governance proposal and private plan is created by account Type PlanType `protobuf:"varint,2,opt,name=type,proto3,enum=cosmos.farming.v1beta1.PlanType" json:"type,omitempty"` // farming_pool_address defines the bech32-encoded address of the farming pool FarmingPoolAddress string `` /* 145-byte string literal not displayed */ // reward_pool_address defines the bech32-encoded address that distributes reward amount of coins to farmers RewardPoolAddress string `` /* 141-byte string literal not displayed */ // termination_address defines the bech32-encoded address that terminates plan // when the plan ends after the end time, the balance of farming pool address is transferred to the termination // address TerminationAddress string `` /* 142-byte string literal not displayed */ // staking_reserve_address defines the bech32-encoded address that stores staking reserves StakingReserveAddress string `` /* 157-byte string literal not displayed */ // staking_coin_weights specifies coin weights for the plan StakingCoinWeights github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 192-byte string literal not displayed */ // start_time specifies the start time of the plan StartTime time.Time `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` // end_time specifies the end time of the plan EndTime time.Time `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"` // epoch_days specifies a period of time that triggers the distribution plan; it is measured in days EpochDays uint32 `protobuf:"varint,10,opt,name=epoch_days,json=epochDays,proto3" json:"epoch_days,omitempty" yaml:"epoch_days"` }
BasePlan defines a base plan type. It contains all the necessary fields for basic farming plan functionality. Any custom farming plan type should extend this type for additional functionality (e.g. fixed amount plan, ratio plan).
func NewBasePlan ¶
func NewBasePlan(id uint64, typ PlanType, farmingPoolAddr, terminationAddr string, coinWeights sdk.DecCoins, startTime, endTime time.Time, epochDays uint32) *BasePlan
NewBasePlan creates a new BasePlan object
func (*BasePlan) Descriptor ¶
func (BasePlan) GetEndTime ¶
func (BasePlan) GetEpochDays ¶
func (BasePlan) GetFarmingPoolAddress ¶
func (plan BasePlan) GetFarmingPoolAddress() sdk.AccAddress
func (BasePlan) GetRewardPoolAddress ¶
func (plan BasePlan) GetRewardPoolAddress() sdk.AccAddress
func (BasePlan) GetStakingCoinWeights ¶
func (BasePlan) GetStakingReserveAddress ¶
func (plan BasePlan) GetStakingReserveAddress() sdk.AccAddress
func (BasePlan) GetStartTime ¶
func (BasePlan) GetTerminationAddress ¶
func (plan BasePlan) GetTerminationAddress() sdk.AccAddress
func (*BasePlan) MarshalToSizedBuffer ¶
func (BasePlan) MarshalYAML ¶
MarshalYAML returns the YAML representation of an Plan.
func (*BasePlan) ProtoMessage ¶
func (*BasePlan) ProtoMessage()
func (*BasePlan) SetEpochDays ¶
func (*BasePlan) SetFarmingPoolAddress ¶
func (plan *BasePlan) SetFarmingPoolAddress(addr sdk.AccAddress) error
func (*BasePlan) SetRewardPoolAddress ¶
func (plan *BasePlan) SetRewardPoolAddress(addr sdk.AccAddress) error
func (*BasePlan) SetStakingCoinWeights ¶
func (*BasePlan) SetStakingReserveAddress ¶
func (plan *BasePlan) SetStakingReserveAddress(addr sdk.AccAddress) error
func (*BasePlan) SetTerminationAddress ¶
func (plan *BasePlan) SetTerminationAddress(addr sdk.AccAddress) error
func (*BasePlan) XXX_DiscardUnknown ¶
func (m *BasePlan) XXX_DiscardUnknown()
func (*BasePlan) XXX_Marshal ¶
func (*BasePlan) XXX_Unmarshal ¶
type DistributionKeeper ¶
type DistributionKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
DistributionKeeper defines the expected distribution keeper
type FixedAmountPlan ¶
type FixedAmountPlan struct { *BasePlan `protobuf:"bytes,1,opt,name=base_plan,json=basePlan,proto3,embedded=base_plan" json:"base_plan,omitempty" yaml:"base_plan"` // epoch_amount specifies the distributing amount for each epoch EpochAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ }
FixedAmountPlan defines a fixed amount plan that fixed amount of coins are distributed for every epoch.
func NewFixedAmountPlan ¶
func NewFixedAmountPlan(basePlan *BasePlan, epochAmount sdk.Coins) *FixedAmountPlan
func (*FixedAmountPlan) Descriptor ¶
func (*FixedAmountPlan) Descriptor() ([]byte, []int)
func (*FixedAmountPlan) Marshal ¶
func (m *FixedAmountPlan) Marshal() (dAtA []byte, err error)
func (*FixedAmountPlan) MarshalToSizedBuffer ¶
func (m *FixedAmountPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FixedAmountPlan) ProtoMessage ¶
func (*FixedAmountPlan) ProtoMessage()
func (*FixedAmountPlan) Reset ¶
func (m *FixedAmountPlan) Reset()
func (*FixedAmountPlan) Size ¶
func (m *FixedAmountPlan) Size() (n int)
func (*FixedAmountPlan) Unmarshal ¶
func (m *FixedAmountPlan) Unmarshal(dAtA []byte) error
func (*FixedAmountPlan) XXX_DiscardUnknown ¶
func (m *FixedAmountPlan) XXX_DiscardUnknown()
func (*FixedAmountPlan) XXX_Marshal ¶
func (m *FixedAmountPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FixedAmountPlan) XXX_Merge ¶
func (m *FixedAmountPlan) XXX_Merge(src proto.Message)
func (*FixedAmountPlan) XXX_Size ¶
func (m *FixedAmountPlan) XXX_Size() int
func (*FixedAmountPlan) XXX_Unmarshal ¶
func (m *FixedAmountPlan) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the parameters for the farming module Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // plan_records defines the plan records used for genesis state PlanRecords []PlanRecord `protobuf:"bytes,2,rep,name=plan_records,json=planRecords,proto3" json:"plan_records" yaml:"plan_records"` // stakings defines the staking records used for genesis state Stakings []Staking `protobuf:"bytes,3,rep,name=stakings,proto3" json:"stakings"` // rewards defines the reward records used for genesis state Rewards []Reward `protobuf:"bytes,4,rep,name=rewards,proto3" json:"rewards"` }
GenesisState defines the farming module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns the default genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, planRecords []PlanRecord, stakings []Staking, rewards []Reward) *GenesisState
NewGenesisState returns new GenesisState.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClaim ¶
type MsgClaim struct { // plan_id specifies the farming plan id PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty" yaml:"plan_id"` // farmer defines the bech32-encoded address of the farmer Farmer string `protobuf:"bytes,2,opt,name=farmer,proto3" json:"farmer,omitempty"` }
MsgClaim defines a SDK message for claiming rewards from the farming plan.
func NewMsgClaim ¶
func NewMsgClaim( planID uint64, farmer sdk.AccAddress, ) *MsgClaim
NewMsgClaim creates a new MsgClaim.
func (*MsgClaim) Descriptor ¶
func (MsgClaim) GetClaimer ¶
func (msg MsgClaim) GetClaimer() sdk.AccAddress
func (MsgClaim) GetSignBytes ¶
func (MsgClaim) GetSigners ¶
func (msg MsgClaim) GetSigners() []sdk.AccAddress
func (*MsgClaim) MarshalToSizedBuffer ¶
func (*MsgClaim) ProtoMessage ¶
func (*MsgClaim) ProtoMessage()
func (MsgClaim) ValidateBasic ¶
func (*MsgClaim) XXX_DiscardUnknown ¶
func (m *MsgClaim) XXX_DiscardUnknown()
func (*MsgClaim) XXX_Marshal ¶
func (*MsgClaim) XXX_Unmarshal ¶
type MsgClaimResponse ¶
type MsgClaimResponse struct { }
MsgClaimResponse defines the Msg/MsgClaimResponse response type.
func (*MsgClaimResponse) Descriptor ¶
func (*MsgClaimResponse) Descriptor() ([]byte, []int)
func (*MsgClaimResponse) Marshal ¶
func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimResponse) ProtoMessage ¶
func (*MsgClaimResponse) ProtoMessage()
func (*MsgClaimResponse) Reset ¶
func (m *MsgClaimResponse) Reset()
func (*MsgClaimResponse) Size ¶
func (m *MsgClaimResponse) Size() (n int)
func (*MsgClaimResponse) String ¶
func (m *MsgClaimResponse) String() string
func (*MsgClaimResponse) Unmarshal ¶
func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimResponse) XXX_DiscardUnknown()
func (*MsgClaimResponse) XXX_Marshal ¶
func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimResponse) XXX_Merge ¶
func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
func (*MsgClaimResponse) XXX_Size ¶
func (m *MsgClaimResponse) XXX_Size() int
func (*MsgClaimResponse) XXX_Unmarshal ¶
func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreateFixedAmountPlan defines a method for creating a new fixed amount farming plan CreateFixedAmountPlan(ctx context.Context, in *MsgCreateFixedAmountPlan, opts ...grpc.CallOption) (*MsgCreateFixedAmountPlanResponse, error) // CreateRatioPlan defines a method for creating a new ratio farming plan CreateRatioPlan(ctx context.Context, in *MsgCreateRatioPlan, opts ...grpc.CallOption) (*MsgCreateRatioPlanResponse, error) // Stake defines a method for staking coins into the farming plan Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) // Unstake defines a method for unstaking coins from the farming plan Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) // Claim defines a method for claiming farming rewards Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateFixedAmountPlan ¶
type MsgCreateFixedAmountPlan struct { // farming_pool_address defines the bech32-encoded address of the farming pool FarmingPoolAddress string `` /* 145-byte string literal not displayed */ // staking_coin_weights specifies coins weight for the plan StakingCoinWeights github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 192-byte string literal not displayed */ // start_time specifies the start time of the plan StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` // end_time specifies the end time of the plan EndTime time.Time `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"` // epoch_days specifies a period of time that triggers the distribution plan; it is measured in days EpochDays uint32 `protobuf:"varint,5,opt,name=epoch_days,json=epochDays,proto3" json:"epoch_days,omitempty" yaml:"epoch_days"` // epoch_amount specifies the distributing amount for each epoch EpochAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ }
MsgCreateFixedAmountPlan defines a SDK message for creating a new fixed amount farming plan.
func NewMsgCreateFixedAmountPlan ¶
func NewMsgCreateFixedAmountPlan( farmingPoolAddr sdk.AccAddress, stakingCoinWeights sdk.DecCoins, startTime time.Time, endTime time.Time, epochDays uint32, epochAmount sdk.Coins, ) *MsgCreateFixedAmountPlan
NewMsgCreateFixedAmountPlan creates a new MsgCreateFixedAmountPlan.
func (*MsgCreateFixedAmountPlan) Descriptor ¶
func (*MsgCreateFixedAmountPlan) Descriptor() ([]byte, []int)
func (*MsgCreateFixedAmountPlan) GetEndTime ¶
func (m *MsgCreateFixedAmountPlan) GetEndTime() time.Time
func (*MsgCreateFixedAmountPlan) GetEpochAmount ¶
func (m *MsgCreateFixedAmountPlan) GetEpochAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgCreateFixedAmountPlan) GetEpochDays ¶
func (m *MsgCreateFixedAmountPlan) GetEpochDays() uint32
func (*MsgCreateFixedAmountPlan) GetFarmingPoolAddress ¶
func (m *MsgCreateFixedAmountPlan) GetFarmingPoolAddress() string
func (MsgCreateFixedAmountPlan) GetPlanCreator ¶
func (msg MsgCreateFixedAmountPlan) GetPlanCreator() sdk.AccAddress
func (MsgCreateFixedAmountPlan) GetSignBytes ¶
func (msg MsgCreateFixedAmountPlan) GetSignBytes() []byte
func (MsgCreateFixedAmountPlan) GetSigners ¶
func (msg MsgCreateFixedAmountPlan) GetSigners() []sdk.AccAddress
func (*MsgCreateFixedAmountPlan) GetStakingCoinWeights ¶
func (m *MsgCreateFixedAmountPlan) GetStakingCoinWeights() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*MsgCreateFixedAmountPlan) GetStartTime ¶
func (m *MsgCreateFixedAmountPlan) GetStartTime() time.Time
func (*MsgCreateFixedAmountPlan) Marshal ¶
func (m *MsgCreateFixedAmountPlan) Marshal() (dAtA []byte, err error)
func (*MsgCreateFixedAmountPlan) MarshalTo ¶
func (m *MsgCreateFixedAmountPlan) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateFixedAmountPlan) MarshalToSizedBuffer ¶
func (m *MsgCreateFixedAmountPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateFixedAmountPlan) ProtoMessage ¶
func (*MsgCreateFixedAmountPlan) ProtoMessage()
func (*MsgCreateFixedAmountPlan) Reset ¶
func (m *MsgCreateFixedAmountPlan) Reset()
func (MsgCreateFixedAmountPlan) Route ¶
func (msg MsgCreateFixedAmountPlan) Route() string
func (*MsgCreateFixedAmountPlan) Size ¶
func (m *MsgCreateFixedAmountPlan) Size() (n int)
func (*MsgCreateFixedAmountPlan) String ¶
func (m *MsgCreateFixedAmountPlan) String() string
func (MsgCreateFixedAmountPlan) Type ¶
func (msg MsgCreateFixedAmountPlan) Type() string
func (*MsgCreateFixedAmountPlan) Unmarshal ¶
func (m *MsgCreateFixedAmountPlan) Unmarshal(dAtA []byte) error
func (MsgCreateFixedAmountPlan) ValidateBasic ¶
func (msg MsgCreateFixedAmountPlan) ValidateBasic() error
func (*MsgCreateFixedAmountPlan) XXX_DiscardUnknown ¶
func (m *MsgCreateFixedAmountPlan) XXX_DiscardUnknown()
func (*MsgCreateFixedAmountPlan) XXX_Marshal ¶
func (m *MsgCreateFixedAmountPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateFixedAmountPlan) XXX_Merge ¶
func (m *MsgCreateFixedAmountPlan) XXX_Merge(src proto.Message)
func (*MsgCreateFixedAmountPlan) XXX_Size ¶
func (m *MsgCreateFixedAmountPlan) XXX_Size() int
func (*MsgCreateFixedAmountPlan) XXX_Unmarshal ¶
func (m *MsgCreateFixedAmountPlan) XXX_Unmarshal(b []byte) error
type MsgCreateFixedAmountPlanResponse ¶
type MsgCreateFixedAmountPlanResponse struct { }
MsgCreateFixedAmountPlanResponse defines the Msg/CreateFixedAmountPlanResponse response type.
func (*MsgCreateFixedAmountPlanResponse) Descriptor ¶
func (*MsgCreateFixedAmountPlanResponse) Descriptor() ([]byte, []int)
func (*MsgCreateFixedAmountPlanResponse) Marshal ¶
func (m *MsgCreateFixedAmountPlanResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateFixedAmountPlanResponse) MarshalTo ¶
func (m *MsgCreateFixedAmountPlanResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateFixedAmountPlanResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateFixedAmountPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateFixedAmountPlanResponse) ProtoMessage ¶
func (*MsgCreateFixedAmountPlanResponse) ProtoMessage()
func (*MsgCreateFixedAmountPlanResponse) Reset ¶
func (m *MsgCreateFixedAmountPlanResponse) Reset()
func (*MsgCreateFixedAmountPlanResponse) Size ¶
func (m *MsgCreateFixedAmountPlanResponse) Size() (n int)
func (*MsgCreateFixedAmountPlanResponse) String ¶
func (m *MsgCreateFixedAmountPlanResponse) String() string
func (*MsgCreateFixedAmountPlanResponse) Unmarshal ¶
func (m *MsgCreateFixedAmountPlanResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateFixedAmountPlanResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateFixedAmountPlanResponse) XXX_DiscardUnknown()
func (*MsgCreateFixedAmountPlanResponse) XXX_Marshal ¶
func (m *MsgCreateFixedAmountPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateFixedAmountPlanResponse) XXX_Merge ¶
func (m *MsgCreateFixedAmountPlanResponse) XXX_Merge(src proto.Message)
func (*MsgCreateFixedAmountPlanResponse) XXX_Size ¶
func (m *MsgCreateFixedAmountPlanResponse) XXX_Size() int
func (*MsgCreateFixedAmountPlanResponse) XXX_Unmarshal ¶
func (m *MsgCreateFixedAmountPlanResponse) XXX_Unmarshal(b []byte) error
type MsgCreateRatioPlan ¶
type MsgCreateRatioPlan struct { // farming_pool_address defines the bech32-encoded address of the farming pool FarmingPoolAddress string `` /* 145-byte string literal not displayed */ // staking_coin_weights specifies coins weight for the plan StakingCoinWeights github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 192-byte string literal not displayed */ // start_time specifies the start time of the plan StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` // end_time specifies the end time of the plan EndTime time.Time `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"` // epoch_days specifies a period of time that triggers the distribution plan; it is measured in days EpochDays uint32 `protobuf:"varint,5,opt,name=epoch_days,json=epochDays,proto3" json:"epoch_days,omitempty" yaml:"epoch_days"` // epoch_ratio specifies the distributing amount by ratio EpochRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */ }
MsgCreateRatioPlan defines a SDK message for creating a new ratio farming plan.
func NewMsgCreateRatioPlan ¶
func NewMsgCreateRatioPlan( farmingPoolAddr sdk.AccAddress, stakingCoinWeights sdk.DecCoins, startTime time.Time, endTime time.Time, epochDays uint32, epochRatio sdk.Dec, ) *MsgCreateRatioPlan
NewMsgCreateRatioPlan creates a new MsgCreateRatioPlan.
func (*MsgCreateRatioPlan) Descriptor ¶
func (*MsgCreateRatioPlan) Descriptor() ([]byte, []int)
func (*MsgCreateRatioPlan) GetEndTime ¶
func (m *MsgCreateRatioPlan) GetEndTime() time.Time
func (*MsgCreateRatioPlan) GetEpochDays ¶
func (m *MsgCreateRatioPlan) GetEpochDays() uint32
func (*MsgCreateRatioPlan) GetFarmingPoolAddress ¶
func (m *MsgCreateRatioPlan) GetFarmingPoolAddress() string
func (MsgCreateRatioPlan) GetPlanCreator ¶
func (msg MsgCreateRatioPlan) GetPlanCreator() sdk.AccAddress
func (MsgCreateRatioPlan) GetSignBytes ¶
func (msg MsgCreateRatioPlan) GetSignBytes() []byte
func (MsgCreateRatioPlan) GetSigners ¶
func (msg MsgCreateRatioPlan) GetSigners() []sdk.AccAddress
func (*MsgCreateRatioPlan) GetStakingCoinWeights ¶
func (m *MsgCreateRatioPlan) GetStakingCoinWeights() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*MsgCreateRatioPlan) GetStartTime ¶
func (m *MsgCreateRatioPlan) GetStartTime() time.Time
func (*MsgCreateRatioPlan) Marshal ¶
func (m *MsgCreateRatioPlan) Marshal() (dAtA []byte, err error)
func (*MsgCreateRatioPlan) MarshalTo ¶
func (m *MsgCreateRatioPlan) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateRatioPlan) MarshalToSizedBuffer ¶
func (m *MsgCreateRatioPlan) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateRatioPlan) ProtoMessage ¶
func (*MsgCreateRatioPlan) ProtoMessage()
func (*MsgCreateRatioPlan) Reset ¶
func (m *MsgCreateRatioPlan) Reset()
func (MsgCreateRatioPlan) Route ¶
func (msg MsgCreateRatioPlan) Route() string
func (*MsgCreateRatioPlan) Size ¶
func (m *MsgCreateRatioPlan) Size() (n int)
func (*MsgCreateRatioPlan) String ¶
func (m *MsgCreateRatioPlan) String() string
func (MsgCreateRatioPlan) Type ¶
func (msg MsgCreateRatioPlan) Type() string
func (*MsgCreateRatioPlan) Unmarshal ¶
func (m *MsgCreateRatioPlan) Unmarshal(dAtA []byte) error
func (MsgCreateRatioPlan) ValidateBasic ¶
func (msg MsgCreateRatioPlan) ValidateBasic() error
func (*MsgCreateRatioPlan) XXX_DiscardUnknown ¶
func (m *MsgCreateRatioPlan) XXX_DiscardUnknown()
func (*MsgCreateRatioPlan) XXX_Marshal ¶
func (m *MsgCreateRatioPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateRatioPlan) XXX_Merge ¶
func (m *MsgCreateRatioPlan) XXX_Merge(src proto.Message)
func (*MsgCreateRatioPlan) XXX_Size ¶
func (m *MsgCreateRatioPlan) XXX_Size() int
func (*MsgCreateRatioPlan) XXX_Unmarshal ¶
func (m *MsgCreateRatioPlan) XXX_Unmarshal(b []byte) error
type MsgCreateRatioPlanResponse ¶
type MsgCreateRatioPlanResponse struct { }
MsgCreateRatioPlanResponse defines the Msg/MsgCreateRatioPlanResponse response type.
func (*MsgCreateRatioPlanResponse) Descriptor ¶
func (*MsgCreateRatioPlanResponse) Descriptor() ([]byte, []int)
func (*MsgCreateRatioPlanResponse) Marshal ¶
func (m *MsgCreateRatioPlanResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateRatioPlanResponse) MarshalTo ¶
func (m *MsgCreateRatioPlanResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateRatioPlanResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateRatioPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateRatioPlanResponse) ProtoMessage ¶
func (*MsgCreateRatioPlanResponse) ProtoMessage()
func (*MsgCreateRatioPlanResponse) Reset ¶
func (m *MsgCreateRatioPlanResponse) Reset()
func (*MsgCreateRatioPlanResponse) Size ¶
func (m *MsgCreateRatioPlanResponse) Size() (n int)
func (*MsgCreateRatioPlanResponse) String ¶
func (m *MsgCreateRatioPlanResponse) String() string
func (*MsgCreateRatioPlanResponse) Unmarshal ¶
func (m *MsgCreateRatioPlanResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateRatioPlanResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateRatioPlanResponse) XXX_DiscardUnknown()
func (*MsgCreateRatioPlanResponse) XXX_Marshal ¶
func (m *MsgCreateRatioPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateRatioPlanResponse) XXX_Merge ¶
func (m *MsgCreateRatioPlanResponse) XXX_Merge(src proto.Message)
func (*MsgCreateRatioPlanResponse) XXX_Size ¶
func (m *MsgCreateRatioPlanResponse) XXX_Size() int
func (*MsgCreateRatioPlanResponse) XXX_Unmarshal ¶
func (m *MsgCreateRatioPlanResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateFixedAmountPlan defines a method for creating a new fixed amount farming plan CreateFixedAmountPlan(context.Context, *MsgCreateFixedAmountPlan) (*MsgCreateFixedAmountPlanResponse, error) // CreateRatioPlan defines a method for creating a new ratio farming plan CreateRatioPlan(context.Context, *MsgCreateRatioPlan) (*MsgCreateRatioPlanResponse, error) // Stake defines a method for staking coins into the farming plan Stake(context.Context, *MsgStake) (*MsgStakeResponse, error) // Unstake defines a method for unstaking coins from the farming plan Unstake(context.Context, *MsgUnstake) (*MsgUnstakeResponse, error) // Claim defines a method for claiming farming rewards Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error) }
MsgServer is the server API for Msg service.
type MsgStake ¶
type MsgStake struct { // plan_id specifies the farming plan id PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty" yaml:"plan_id"` // farmer defines the bech32-encoded address of the farmer Farmer string `protobuf:"bytes,2,opt,name=farmer,proto3" json:"farmer,omitempty"` // staking_coins specifies coins to stake StakingCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 162-byte string literal not displayed */ }
MsgStake defines a SDK message for staking coins into the farming plan.
func NewMsgStake ¶
NewMsgStake creates a new MsgStake.
func (*MsgStake) Descriptor ¶
func (MsgStake) GetSignBytes ¶
func (MsgStake) GetSigners ¶
func (msg MsgStake) GetSigners() []sdk.AccAddress
func (MsgStake) GetStaker ¶
func (msg MsgStake) GetStaker() sdk.AccAddress
func (*MsgStake) GetStakingCoins ¶
func (m *MsgStake) GetStakingCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgStake) MarshalToSizedBuffer ¶
func (*MsgStake) ProtoMessage ¶
func (*MsgStake) ProtoMessage()
func (MsgStake) ValidateBasic ¶
func (*MsgStake) XXX_DiscardUnknown ¶
func (m *MsgStake) XXX_DiscardUnknown()
func (*MsgStake) XXX_Marshal ¶
func (*MsgStake) XXX_Unmarshal ¶
type MsgStakeResponse ¶
type MsgStakeResponse struct { }
MsgStakeResponse defines the Msg/MsgStakeResponse response type.
func (*MsgStakeResponse) Descriptor ¶
func (*MsgStakeResponse) Descriptor() ([]byte, []int)
func (*MsgStakeResponse) Marshal ¶
func (m *MsgStakeResponse) Marshal() (dAtA []byte, err error)
func (*MsgStakeResponse) MarshalToSizedBuffer ¶
func (m *MsgStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStakeResponse) ProtoMessage ¶
func (*MsgStakeResponse) ProtoMessage()
func (*MsgStakeResponse) Reset ¶
func (m *MsgStakeResponse) Reset()
func (*MsgStakeResponse) Size ¶
func (m *MsgStakeResponse) Size() (n int)
func (*MsgStakeResponse) String ¶
func (m *MsgStakeResponse) String() string
func (*MsgStakeResponse) Unmarshal ¶
func (m *MsgStakeResponse) Unmarshal(dAtA []byte) error
func (*MsgStakeResponse) XXX_DiscardUnknown ¶
func (m *MsgStakeResponse) XXX_DiscardUnknown()
func (*MsgStakeResponse) XXX_Marshal ¶
func (m *MsgStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStakeResponse) XXX_Merge ¶
func (m *MsgStakeResponse) XXX_Merge(src proto.Message)
func (*MsgStakeResponse) XXX_Size ¶
func (m *MsgStakeResponse) XXX_Size() int
func (*MsgStakeResponse) XXX_Unmarshal ¶
func (m *MsgStakeResponse) XXX_Unmarshal(b []byte) error
type MsgUnstake ¶
type MsgUnstake struct { // plan_id specifies the farming plan id PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty" yaml:"plan_id"` // farmer defines the bech32-encoded address of the farmer Farmer string `protobuf:"bytes,2,opt,name=farmer,proto3" json:"farmer,omitempty"` // unstaking_coins specifies coins to stake UnstakingCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 170-byte string literal not displayed */ }
MsgUnstake defines a SDK message for performing unstaking of coins from the farming plan.
func NewMsgUnstake ¶
func NewMsgUnstake( planID uint64, farmer sdk.AccAddress, unstakingCoins sdk.Coins, ) *MsgUnstake
NewMsgUnstake creates a new MsgUnstake.
func (*MsgUnstake) Descriptor ¶
func (*MsgUnstake) Descriptor() ([]byte, []int)
func (*MsgUnstake) GetFarmer ¶
func (m *MsgUnstake) GetFarmer() string
func (*MsgUnstake) GetPlanId ¶
func (m *MsgUnstake) GetPlanId() uint64
func (MsgUnstake) GetSignBytes ¶
func (msg MsgUnstake) GetSignBytes() []byte
func (MsgUnstake) GetSigners ¶
func (msg MsgUnstake) GetSigners() []sdk.AccAddress
func (MsgUnstake) GetUnstaker ¶
func (msg MsgUnstake) GetUnstaker() sdk.AccAddress
func (*MsgUnstake) GetUnstakingCoins ¶
func (m *MsgUnstake) GetUnstakingCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgUnstake) Marshal ¶
func (m *MsgUnstake) Marshal() (dAtA []byte, err error)
func (*MsgUnstake) MarshalToSizedBuffer ¶
func (m *MsgUnstake) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnstake) ProtoMessage ¶
func (*MsgUnstake) ProtoMessage()
func (*MsgUnstake) Reset ¶
func (m *MsgUnstake) Reset()
func (MsgUnstake) Route ¶
func (msg MsgUnstake) Route() string
func (*MsgUnstake) Size ¶
func (m *MsgUnstake) Size() (n int)
func (*MsgUnstake) String ¶
func (m *MsgUnstake) String() string
func (MsgUnstake) Type ¶
func (msg MsgUnstake) Type() string
func (*MsgUnstake) Unmarshal ¶
func (m *MsgUnstake) Unmarshal(dAtA []byte) error
func (MsgUnstake) ValidateBasic ¶
func (msg MsgUnstake) ValidateBasic() error
func (*MsgUnstake) XXX_DiscardUnknown ¶
func (m *MsgUnstake) XXX_DiscardUnknown()
func (*MsgUnstake) XXX_Marshal ¶
func (m *MsgUnstake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnstake) XXX_Merge ¶
func (m *MsgUnstake) XXX_Merge(src proto.Message)
func (*MsgUnstake) XXX_Size ¶
func (m *MsgUnstake) XXX_Size() int
func (*MsgUnstake) XXX_Unmarshal ¶
func (m *MsgUnstake) XXX_Unmarshal(b []byte) error
type MsgUnstakeResponse ¶
type MsgUnstakeResponse struct { }
MsgUnstakeResponse defines the Msg/MsgUnstakeResponse response type.
func (*MsgUnstakeResponse) Descriptor ¶
func (*MsgUnstakeResponse) Descriptor() ([]byte, []int)
func (*MsgUnstakeResponse) Marshal ¶
func (m *MsgUnstakeResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnstakeResponse) MarshalTo ¶
func (m *MsgUnstakeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnstakeResponse) MarshalToSizedBuffer ¶
func (m *MsgUnstakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnstakeResponse) ProtoMessage ¶
func (*MsgUnstakeResponse) ProtoMessage()
func (*MsgUnstakeResponse) Reset ¶
func (m *MsgUnstakeResponse) Reset()
func (*MsgUnstakeResponse) Size ¶
func (m *MsgUnstakeResponse) Size() (n int)
func (*MsgUnstakeResponse) String ¶
func (m *MsgUnstakeResponse) String() string
func (*MsgUnstakeResponse) Unmarshal ¶
func (m *MsgUnstakeResponse) Unmarshal(dAtA []byte) error
func (*MsgUnstakeResponse) XXX_DiscardUnknown ¶
func (m *MsgUnstakeResponse) XXX_DiscardUnknown()
func (*MsgUnstakeResponse) XXX_Marshal ¶
func (m *MsgUnstakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnstakeResponse) XXX_Merge ¶
func (m *MsgUnstakeResponse) XXX_Merge(src proto.Message)
func (*MsgUnstakeResponse) XXX_Size ¶
func (m *MsgUnstakeResponse) XXX_Size() int
func (*MsgUnstakeResponse) XXX_Unmarshal ¶
func (m *MsgUnstakeResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // private_plan_creation_fee specifies the fee for plan creation // this fee prevents from spamming and it is collected in the community pool PrivatePlanCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 208-byte string literal not displayed */ }
Params defines the set of params for the farming module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns the default farming module parameters.
func (*Params) Descriptor ¶
func (*Params) GetPrivatePlanCreationFee ¶
func (m *Params) GetPrivatePlanCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs
ParamSetPairs implements paramstypes.ParamSet.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PlanI ¶
type PlanI interface { proto.Message GetId() uint64 SetId(uint64) error GetType() PlanType SetType(PlanType) error GetFarmingPoolAddress() sdk.AccAddress SetFarmingPoolAddress(sdk.AccAddress) error GetRewardPoolAddress() sdk.AccAddress SetRewardPoolAddress(sdk.AccAddress) error GetTerminationAddress() sdk.AccAddress SetTerminationAddress(sdk.AccAddress) error GetStakingReserveAddress() sdk.AccAddress SetStakingReserveAddress(sdk.AccAddress) error GetStakingCoinWeights() sdk.DecCoins SetStakingCoinWeights(sdk.DecCoins) error GetStartTime() time.Time SetStartTime(time.Time) error GetEndTime() time.Time SetEndTime(time.Time) error GetEpochDays() uint32 SetEpochDays(uint32) error String() string }
func UnpackPlan ¶
UnpackPlan converts Any slice to PlanI.
type PlanRecord ¶
type PlanRecord struct { // plan specifies the plan interface; it can be FixedAmountPlan or RatioPlan Plan types.Any `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan"` // last_epoch_time specifies the last distributed epoch time of the plan LastEpochTime time.Time `protobuf:"bytes,2,opt,name=last_epoch_time,json=lastEpochTime,proto3,stdtime" json:"last_epoch_time" yaml:"last_epoch_time"` // farming_pool_coins specifies balance of the farming pool for the plan // this param is needed for import/export validation FarmingPoolCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 181-byte string literal not displayed */ // reward_pool_coins specifies balance of the reward pool to be distributed in the plan // this param is needed for import/export validation RewardPoolCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 177-byte string literal not displayed */ // staking_reserve_coins specifies balance of the staking reserve pool staked in the plan // this param is needed for import/export validation StakingReserveCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 193-byte string literal not displayed */ }
PlanRecord is used for import/export via genesis json.
func (*PlanRecord) Descriptor ¶
func (*PlanRecord) Descriptor() ([]byte, []int)
func (*PlanRecord) Marshal ¶
func (m *PlanRecord) Marshal() (dAtA []byte, err error)
func (*PlanRecord) MarshalToSizedBuffer ¶
func (m *PlanRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PlanRecord) ProtoMessage ¶
func (*PlanRecord) ProtoMessage()
func (*PlanRecord) Reset ¶
func (m *PlanRecord) Reset()
func (*PlanRecord) Size ¶
func (m *PlanRecord) Size() (n int)
func (*PlanRecord) String ¶
func (m *PlanRecord) String() string
func (*PlanRecord) Unmarshal ¶
func (m *PlanRecord) Unmarshal(dAtA []byte) error
func (*PlanRecord) XXX_DiscardUnknown ¶
func (m *PlanRecord) XXX_DiscardUnknown()
func (*PlanRecord) XXX_Marshal ¶
func (m *PlanRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlanRecord) XXX_Merge ¶
func (m *PlanRecord) XXX_Merge(src proto.Message)
func (*PlanRecord) XXX_Size ¶
func (m *PlanRecord) XXX_Size() int
func (*PlanRecord) XXX_Unmarshal ¶
func (m *PlanRecord) XXX_Unmarshal(b []byte) error
type PlanType ¶
type PlanType int32
PlanType enumerates the valid types of a plan.
func (PlanType) EnumDescriptor ¶
type PublicPlanProposal ¶
type PublicPlanProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // plans specifies the plan interface(s); it can be FixedAmountPlan or RatioPlan Plans []*types.Any `protobuf:"bytes,3,rep,name=plans,proto3" json:"plans,omitempty"` }
PublicPlanProposal details a proposal for creating a public plan.
func (*PublicPlanProposal) Descriptor ¶
func (*PublicPlanProposal) Descriptor() ([]byte, []int)
func (*PublicPlanProposal) GetDescription ¶
func (p *PublicPlanProposal) GetDescription() string
func (*PublicPlanProposal) GetTitle ¶
func (p *PublicPlanProposal) GetTitle() string
func (*PublicPlanProposal) Marshal ¶
func (m *PublicPlanProposal) Marshal() (dAtA []byte, err error)
func (*PublicPlanProposal) MarshalTo ¶
func (m *PublicPlanProposal) MarshalTo(dAtA []byte) (int, error)
func (*PublicPlanProposal) MarshalToSizedBuffer ¶
func (m *PublicPlanProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PublicPlanProposal) ProposalRoute ¶
func (p *PublicPlanProposal) ProposalRoute() string
func (*PublicPlanProposal) ProposalType ¶
func (p *PublicPlanProposal) ProposalType() string
func (*PublicPlanProposal) ProtoMessage ¶
func (*PublicPlanProposal) ProtoMessage()
func (*PublicPlanProposal) Reset ¶
func (m *PublicPlanProposal) Reset()
func (*PublicPlanProposal) Size ¶
func (m *PublicPlanProposal) Size() (n int)
func (PublicPlanProposal) String ¶
func (p PublicPlanProposal) String() string
func (*PublicPlanProposal) Unmarshal ¶
func (m *PublicPlanProposal) Unmarshal(dAtA []byte) error
func (*PublicPlanProposal) ValidateBasic ¶
func (p *PublicPlanProposal) ValidateBasic() error
func (*PublicPlanProposal) XXX_DiscardUnknown ¶
func (m *PublicPlanProposal) XXX_DiscardUnknown()
func (*PublicPlanProposal) XXX_Marshal ¶
func (m *PublicPlanProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublicPlanProposal) XXX_Merge ¶
func (m *PublicPlanProposal) XXX_Merge(src proto.Message)
func (*PublicPlanProposal) XXX_Size ¶
func (m *PublicPlanProposal) XXX_Size() int
func (*PublicPlanProposal) XXX_Unmarshal ¶
func (m *PublicPlanProposal) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params returns parameters of the farming module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Plans returns all plans. Plans(ctx context.Context, in *QueryPlansRequest, opts ...grpc.CallOption) (*QueryPlansResponse, error) // Plan returns a specific plan. Plan(ctx context.Context, in *QueryPlanRequest, opts ...grpc.CallOption) (*QueryPlanResponse, error) // PlanStakings returns all stakings of the plan. PlanStakings(ctx context.Context, in *QueryPlanStakingsRequest, opts ...grpc.CallOption) (*QueryPlanStakingsResponse, error) // FarmerStakings returns all stakings owned by the farmer. FarmerStakings(ctx context.Context, in *QueryFarmerStakingsRequest, opts ...grpc.CallOption) (*QueryFarmerStakingsResponse, error) // FarmerStaking returns a specific staking of the plan which is owned by the farmer. FarmerStaking(ctx context.Context, in *QueryFarmerStakingRequest, opts ...grpc.CallOption) (*QueryFarmerStakingResponse, error) // PlanRewards returns all rewards of the plan. PlanRewards(ctx context.Context, in *QueryPlanRewardsRequest, opts ...grpc.CallOption) (*QueryPlanRewardsResponse, error) // FarmerRewards returns all rewards owned by the farmer. FarmerRewards(ctx context.Context, in *QueryFarmerRewardsRequest, opts ...grpc.CallOption) (*QueryFarmerRewardsResponse, error) // FarmerReward returns a specific reward of the plan which is owned by the farmer. FarmerReward(ctx context.Context, in *QueryFarmerRewardRequest, opts ...grpc.CallOption) (*QueryFarmerRewardResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryFarmerRewardRequest ¶
type QueryFarmerRewardRequest struct { Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"` PlanId uint64 `protobuf:"varint,2,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"` }
QueryFarmerRewardRequest is the request type for the Query/FarmerReward RPC method.
func (*QueryFarmerRewardRequest) Descriptor ¶
func (*QueryFarmerRewardRequest) Descriptor() ([]byte, []int)
func (*QueryFarmerRewardRequest) GetFarmer ¶
func (m *QueryFarmerRewardRequest) GetFarmer() string
func (*QueryFarmerRewardRequest) GetPlanId ¶
func (m *QueryFarmerRewardRequest) GetPlanId() uint64
func (*QueryFarmerRewardRequest) Marshal ¶
func (m *QueryFarmerRewardRequest) Marshal() (dAtA []byte, err error)
func (*QueryFarmerRewardRequest) MarshalTo ¶
func (m *QueryFarmerRewardRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFarmerRewardRequest) MarshalToSizedBuffer ¶
func (m *QueryFarmerRewardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFarmerRewardRequest) ProtoMessage ¶
func (*QueryFarmerRewardRequest) ProtoMessage()
func (*QueryFarmerRewardRequest) Reset ¶
func (m *QueryFarmerRewardRequest) Reset()
func (*QueryFarmerRewardRequest) Size ¶
func (m *QueryFarmerRewardRequest) Size() (n int)
func (*QueryFarmerRewardRequest) String ¶
func (m *QueryFarmerRewardRequest) String() string
func (*QueryFarmerRewardRequest) Unmarshal ¶
func (m *QueryFarmerRewardRequest) Unmarshal(dAtA []byte) error
func (*QueryFarmerRewardRequest) XXX_DiscardUnknown ¶
func (m *QueryFarmerRewardRequest) XXX_DiscardUnknown()
func (*QueryFarmerRewardRequest) XXX_Marshal ¶
func (m *QueryFarmerRewardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFarmerRewardRequest) XXX_Merge ¶
func (m *QueryFarmerRewardRequest) XXX_Merge(src proto.Message)
func (*QueryFarmerRewardRequest) XXX_Size ¶
func (m *QueryFarmerRewardRequest) XXX_Size() int
func (*QueryFarmerRewardRequest) XXX_Unmarshal ¶
func (m *QueryFarmerRewardRequest) XXX_Unmarshal(b []byte) error
type QueryFarmerRewardResponse ¶
type QueryFarmerRewardResponse struct {
Reward *Reward `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward,omitempty"`
}
QueryFarmerRewardResponse is the response type for the Query/FarmerReward RPC method.
func (*QueryFarmerRewardResponse) Descriptor ¶
func (*QueryFarmerRewardResponse) Descriptor() ([]byte, []int)
func (*QueryFarmerRewardResponse) GetReward ¶
func (m *QueryFarmerRewardResponse) GetReward() *Reward
func (*QueryFarmerRewardResponse) Marshal ¶
func (m *QueryFarmerRewardResponse) Marshal() (dAtA []byte, err error)
func (*QueryFarmerRewardResponse) MarshalTo ¶
func (m *QueryFarmerRewardResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFarmerRewardResponse) MarshalToSizedBuffer ¶
func (m *QueryFarmerRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFarmerRewardResponse) ProtoMessage ¶
func (*QueryFarmerRewardResponse) ProtoMessage()
func (*QueryFarmerRewardResponse) Reset ¶
func (m *QueryFarmerRewardResponse) Reset()
func (*QueryFarmerRewardResponse) Size ¶
func (m *QueryFarmerRewardResponse) Size() (n int)
func (*QueryFarmerRewardResponse) String ¶
func (m *QueryFarmerRewardResponse) String() string
func (*QueryFarmerRewardResponse) Unmarshal ¶
func (m *QueryFarmerRewardResponse) Unmarshal(dAtA []byte) error
func (*QueryFarmerRewardResponse) XXX_DiscardUnknown ¶
func (m *QueryFarmerRewardResponse) XXX_DiscardUnknown()
func (*QueryFarmerRewardResponse) XXX_Marshal ¶
func (m *QueryFarmerRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFarmerRewardResponse) XXX_Merge ¶
func (m *QueryFarmerRewardResponse) XXX_Merge(src proto.Message)
func (*QueryFarmerRewardResponse) XXX_Size ¶
func (m *QueryFarmerRewardResponse) XXX_Size() int
func (*QueryFarmerRewardResponse) XXX_Unmarshal ¶
func (m *QueryFarmerRewardResponse) XXX_Unmarshal(b []byte) error
type QueryFarmerRewardsRequest ¶
type QueryFarmerRewardsRequest struct { Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryFarmerRewardsRequest is the request type for the Query/FarmerRewards RPC method.
func (*QueryFarmerRewardsRequest) Descriptor ¶
func (*QueryFarmerRewardsRequest) Descriptor() ([]byte, []int)
func (*QueryFarmerRewardsRequest) GetFarmer ¶
func (m *QueryFarmerRewardsRequest) GetFarmer() string
func (*QueryFarmerRewardsRequest) GetPagination ¶
func (m *QueryFarmerRewardsRequest) GetPagination() *query.PageRequest
func (*QueryFarmerRewardsRequest) Marshal ¶
func (m *QueryFarmerRewardsRequest) Marshal() (dAtA []byte, err error)
func (*QueryFarmerRewardsRequest) MarshalTo ¶
func (m *QueryFarmerRewardsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFarmerRewardsRequest) MarshalToSizedBuffer ¶
func (m *QueryFarmerRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFarmerRewardsRequest) ProtoMessage ¶
func (*QueryFarmerRewardsRequest) ProtoMessage()
func (*QueryFarmerRewardsRequest) Reset ¶
func (m *QueryFarmerRewardsRequest) Reset()
func (*QueryFarmerRewardsRequest) Size ¶
func (m *QueryFarmerRewardsRequest) Size() (n int)
func (*QueryFarmerRewardsRequest) String ¶
func (m *QueryFarmerRewardsRequest) String() string
func (*QueryFarmerRewardsRequest) Unmarshal ¶
func (m *QueryFarmerRewardsRequest) Unmarshal(dAtA []byte) error
func (*QueryFarmerRewardsRequest) XXX_DiscardUnknown ¶
func (m *QueryFarmerRewardsRequest) XXX_DiscardUnknown()
func (*QueryFarmerRewardsRequest) XXX_Marshal ¶
func (m *QueryFarmerRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFarmerRewardsRequest) XXX_Merge ¶
func (m *QueryFarmerRewardsRequest) XXX_Merge(src proto.Message)
func (*QueryFarmerRewardsRequest) XXX_Size ¶
func (m *QueryFarmerRewardsRequest) XXX_Size() int
func (*QueryFarmerRewardsRequest) XXX_Unmarshal ¶
func (m *QueryFarmerRewardsRequest) XXX_Unmarshal(b []byte) error
type QueryFarmerRewardsResponse ¶
type QueryFarmerRewardsResponse struct { Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryFarmerRewardsResponse is the response type for the Query/FarmerRewards RPC method.
func (*QueryFarmerRewardsResponse) Descriptor ¶
func (*QueryFarmerRewardsResponse) Descriptor() ([]byte, []int)
func (*QueryFarmerRewardsResponse) GetPagination ¶
func (m *QueryFarmerRewardsResponse) GetPagination() *query.PageResponse
func (*QueryFarmerRewardsResponse) GetRewards ¶
func (m *QueryFarmerRewardsResponse) GetRewards() []*Reward
func (*QueryFarmerRewardsResponse) Marshal ¶
func (m *QueryFarmerRewardsResponse) Marshal() (dAtA []byte, err error)
func (*QueryFarmerRewardsResponse) MarshalTo ¶
func (m *QueryFarmerRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFarmerRewardsResponse) MarshalToSizedBuffer ¶
func (m *QueryFarmerRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFarmerRewardsResponse) ProtoMessage ¶
func (*QueryFarmerRewardsResponse) ProtoMessage()
func (*QueryFarmerRewardsResponse) Reset ¶
func (m *QueryFarmerRewardsResponse) Reset()
func (*QueryFarmerRewardsResponse) Size ¶
func (m *QueryFarmerRewardsResponse) Size() (n int)
func (*QueryFarmerRewardsResponse) String ¶
func (m *QueryFarmerRewardsResponse) String() string
func (*QueryFarmerRewardsResponse) Unmarshal ¶
func (m *QueryFarmerRewardsResponse) Unmarshal(dAtA []byte) error
func (*QueryFarmerRewardsResponse) XXX_DiscardUnknown ¶
func (m *QueryFarmerRewardsResponse) XXX_DiscardUnknown()
func (*QueryFarmerRewardsResponse) XXX_Marshal ¶
func (m *QueryFarmerRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFarmerRewardsResponse) XXX_Merge ¶
func (m *QueryFarmerRewardsResponse) XXX_Merge(src proto.Message)
func (*QueryFarmerRewardsResponse) XXX_Size ¶
func (m *QueryFarmerRewardsResponse) XXX_Size() int
func (*QueryFarmerRewardsResponse) XXX_Unmarshal ¶
func (m *QueryFarmerRewardsResponse) XXX_Unmarshal(b []byte) error
type QueryFarmerStakingRequest ¶
type QueryFarmerStakingRequest struct { Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"` PlanId uint64 `protobuf:"varint,2,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"` }
QueryFarmerStakingRequest is the request type for the Query/FarmerStaking RPC method.
func (*QueryFarmerStakingRequest) Descriptor ¶
func (*QueryFarmerStakingRequest) Descriptor() ([]byte, []int)
func (*QueryFarmerStakingRequest) GetFarmer ¶
func (m *QueryFarmerStakingRequest) GetFarmer() string
func (*QueryFarmerStakingRequest) GetPlanId ¶
func (m *QueryFarmerStakingRequest) GetPlanId() uint64
func (*QueryFarmerStakingRequest) Marshal ¶
func (m *QueryFarmerStakingRequest) Marshal() (dAtA []byte, err error)
func (*QueryFarmerStakingRequest) MarshalTo ¶
func (m *QueryFarmerStakingRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFarmerStakingRequest) MarshalToSizedBuffer ¶
func (m *QueryFarmerStakingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFarmerStakingRequest) ProtoMessage ¶
func (*QueryFarmerStakingRequest) ProtoMessage()
func (*QueryFarmerStakingRequest) Reset ¶
func (m *QueryFarmerStakingRequest) Reset()
func (*QueryFarmerStakingRequest) Size ¶
func (m *QueryFarmerStakingRequest) Size() (n int)
func (*QueryFarmerStakingRequest) String ¶
func (m *QueryFarmerStakingRequest) String() string
func (*QueryFarmerStakingRequest) Unmarshal ¶
func (m *QueryFarmerStakingRequest) Unmarshal(dAtA []byte) error
func (*QueryFarmerStakingRequest) XXX_DiscardUnknown ¶
func (m *QueryFarmerStakingRequest) XXX_DiscardUnknown()
func (*QueryFarmerStakingRequest) XXX_Marshal ¶
func (m *QueryFarmerStakingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFarmerStakingRequest) XXX_Merge ¶
func (m *QueryFarmerStakingRequest) XXX_Merge(src proto.Message)
func (*QueryFarmerStakingRequest) XXX_Size ¶
func (m *QueryFarmerStakingRequest) XXX_Size() int
func (*QueryFarmerStakingRequest) XXX_Unmarshal ¶
func (m *QueryFarmerStakingRequest) XXX_Unmarshal(b []byte) error
type QueryFarmerStakingResponse ¶
type QueryFarmerStakingResponse struct {
Staking *Staking `protobuf:"bytes,1,opt,name=staking,proto3" json:"staking,omitempty"`
}
QueryFarmerStakingResponse is the response type for the Query/FarmerStaking RPC method.
func (*QueryFarmerStakingResponse) Descriptor ¶
func (*QueryFarmerStakingResponse) Descriptor() ([]byte, []int)
func (*QueryFarmerStakingResponse) GetStaking ¶
func (m *QueryFarmerStakingResponse) GetStaking() *Staking
func (*QueryFarmerStakingResponse) Marshal ¶
func (m *QueryFarmerStakingResponse) Marshal() (dAtA []byte, err error)
func (*QueryFarmerStakingResponse) MarshalTo ¶
func (m *QueryFarmerStakingResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFarmerStakingResponse) MarshalToSizedBuffer ¶
func (m *QueryFarmerStakingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFarmerStakingResponse) ProtoMessage ¶
func (*QueryFarmerStakingResponse) ProtoMessage()
func (*QueryFarmerStakingResponse) Reset ¶
func (m *QueryFarmerStakingResponse) Reset()
func (*QueryFarmerStakingResponse) Size ¶
func (m *QueryFarmerStakingResponse) Size() (n int)
func (*QueryFarmerStakingResponse) String ¶
func (m *QueryFarmerStakingResponse) String() string
func (*QueryFarmerStakingResponse) Unmarshal ¶
func (m *QueryFarmerStakingResponse) Unmarshal(dAtA []byte) error
func (*QueryFarmerStakingResponse) XXX_DiscardUnknown ¶
func (m *QueryFarmerStakingResponse) XXX_DiscardUnknown()
func (*QueryFarmerStakingResponse) XXX_Marshal ¶
func (m *QueryFarmerStakingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFarmerStakingResponse) XXX_Merge ¶
func (m *QueryFarmerStakingResponse) XXX_Merge(src proto.Message)
func (*QueryFarmerStakingResponse) XXX_Size ¶
func (m *QueryFarmerStakingResponse) XXX_Size() int
func (*QueryFarmerStakingResponse) XXX_Unmarshal ¶
func (m *QueryFarmerStakingResponse) XXX_Unmarshal(b []byte) error
type QueryFarmerStakingsRequest ¶
type QueryFarmerStakingsRequest struct { Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryFarmerStakingsRequest is the request type for the Query/FarmerStakings RPC method.
func (*QueryFarmerStakingsRequest) Descriptor ¶
func (*QueryFarmerStakingsRequest) Descriptor() ([]byte, []int)
func (*QueryFarmerStakingsRequest) GetFarmer ¶
func (m *QueryFarmerStakingsRequest) GetFarmer() string
func (*QueryFarmerStakingsRequest) GetPagination ¶
func (m *QueryFarmerStakingsRequest) GetPagination() *query.PageRequest
func (*QueryFarmerStakingsRequest) Marshal ¶
func (m *QueryFarmerStakingsRequest) Marshal() (dAtA []byte, err error)
func (*QueryFarmerStakingsRequest) MarshalTo ¶
func (m *QueryFarmerStakingsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFarmerStakingsRequest) MarshalToSizedBuffer ¶
func (m *QueryFarmerStakingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFarmerStakingsRequest) ProtoMessage ¶
func (*QueryFarmerStakingsRequest) ProtoMessage()
func (*QueryFarmerStakingsRequest) Reset ¶
func (m *QueryFarmerStakingsRequest) Reset()
func (*QueryFarmerStakingsRequest) Size ¶
func (m *QueryFarmerStakingsRequest) Size() (n int)
func (*QueryFarmerStakingsRequest) String ¶
func (m *QueryFarmerStakingsRequest) String() string
func (*QueryFarmerStakingsRequest) Unmarshal ¶
func (m *QueryFarmerStakingsRequest) Unmarshal(dAtA []byte) error
func (*QueryFarmerStakingsRequest) XXX_DiscardUnknown ¶
func (m *QueryFarmerStakingsRequest) XXX_DiscardUnknown()
func (*QueryFarmerStakingsRequest) XXX_Marshal ¶
func (m *QueryFarmerStakingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFarmerStakingsRequest) XXX_Merge ¶
func (m *QueryFarmerStakingsRequest) XXX_Merge(src proto.Message)
func (*QueryFarmerStakingsRequest) XXX_Size ¶
func (m *QueryFarmerStakingsRequest) XXX_Size() int
func (*QueryFarmerStakingsRequest) XXX_Unmarshal ¶
func (m *QueryFarmerStakingsRequest) XXX_Unmarshal(b []byte) error
type QueryFarmerStakingsResponse ¶
type QueryFarmerStakingsResponse struct { Stakings []*Staking `protobuf:"bytes,1,rep,name=stakings,proto3" json:"stakings,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryFarmerStakingsResponse is the response type for the Query/FarmerStakings RPC method.
func (*QueryFarmerStakingsResponse) Descriptor ¶
func (*QueryFarmerStakingsResponse) Descriptor() ([]byte, []int)
func (*QueryFarmerStakingsResponse) GetPagination ¶
func (m *QueryFarmerStakingsResponse) GetPagination() *query.PageResponse
func (*QueryFarmerStakingsResponse) GetStakings ¶
func (m *QueryFarmerStakingsResponse) GetStakings() []*Staking
func (*QueryFarmerStakingsResponse) Marshal ¶
func (m *QueryFarmerStakingsResponse) Marshal() (dAtA []byte, err error)
func (*QueryFarmerStakingsResponse) MarshalTo ¶
func (m *QueryFarmerStakingsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFarmerStakingsResponse) MarshalToSizedBuffer ¶
func (m *QueryFarmerStakingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFarmerStakingsResponse) ProtoMessage ¶
func (*QueryFarmerStakingsResponse) ProtoMessage()
func (*QueryFarmerStakingsResponse) Reset ¶
func (m *QueryFarmerStakingsResponse) Reset()
func (*QueryFarmerStakingsResponse) Size ¶
func (m *QueryFarmerStakingsResponse) Size() (n int)
func (*QueryFarmerStakingsResponse) String ¶
func (m *QueryFarmerStakingsResponse) String() string
func (*QueryFarmerStakingsResponse) Unmarshal ¶
func (m *QueryFarmerStakingsResponse) Unmarshal(dAtA []byte) error
func (*QueryFarmerStakingsResponse) XXX_DiscardUnknown ¶
func (m *QueryFarmerStakingsResponse) XXX_DiscardUnknown()
func (*QueryFarmerStakingsResponse) XXX_Marshal ¶
func (m *QueryFarmerStakingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFarmerStakingsResponse) XXX_Merge ¶
func (m *QueryFarmerStakingsResponse) XXX_Merge(src proto.Message)
func (*QueryFarmerStakingsResponse) XXX_Size ¶
func (m *QueryFarmerStakingsResponse) XXX_Size() int
func (*QueryFarmerStakingsResponse) XXX_Unmarshal ¶
func (m *QueryFarmerStakingsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPlanRequest ¶
type QueryPlanRequest struct {
PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
}
QueryPlanRequest is the request type for the Query/Plan RPC method.
func (*QueryPlanRequest) Descriptor ¶
func (*QueryPlanRequest) Descriptor() ([]byte, []int)
func (*QueryPlanRequest) GetPlanId ¶
func (m *QueryPlanRequest) GetPlanId() uint64
func (*QueryPlanRequest) Marshal ¶
func (m *QueryPlanRequest) Marshal() (dAtA []byte, err error)
func (*QueryPlanRequest) MarshalToSizedBuffer ¶
func (m *QueryPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlanRequest) ProtoMessage ¶
func (*QueryPlanRequest) ProtoMessage()
func (*QueryPlanRequest) Reset ¶
func (m *QueryPlanRequest) Reset()
func (*QueryPlanRequest) Size ¶
func (m *QueryPlanRequest) Size() (n int)
func (*QueryPlanRequest) String ¶
func (m *QueryPlanRequest) String() string
func (*QueryPlanRequest) Unmarshal ¶
func (m *QueryPlanRequest) Unmarshal(dAtA []byte) error
func (*QueryPlanRequest) XXX_DiscardUnknown ¶
func (m *QueryPlanRequest) XXX_DiscardUnknown()
func (*QueryPlanRequest) XXX_Marshal ¶
func (m *QueryPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlanRequest) XXX_Merge ¶
func (m *QueryPlanRequest) XXX_Merge(src proto.Message)
func (*QueryPlanRequest) XXX_Size ¶
func (m *QueryPlanRequest) XXX_Size() int
func (*QueryPlanRequest) XXX_Unmarshal ¶
func (m *QueryPlanRequest) XXX_Unmarshal(b []byte) error
type QueryPlanResponse ¶
type QueryPlanResponse struct {
Plan *types.Any `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`
}
QueryPlanResponse is the response type for the Query/Plan RPC method.
func (*QueryPlanResponse) Descriptor ¶
func (*QueryPlanResponse) Descriptor() ([]byte, []int)
func (*QueryPlanResponse) GetPlan ¶
func (m *QueryPlanResponse) GetPlan() *types.Any
func (*QueryPlanResponse) Marshal ¶
func (m *QueryPlanResponse) Marshal() (dAtA []byte, err error)
func (*QueryPlanResponse) MarshalTo ¶
func (m *QueryPlanResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlanResponse) MarshalToSizedBuffer ¶
func (m *QueryPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlanResponse) ProtoMessage ¶
func (*QueryPlanResponse) ProtoMessage()
func (*QueryPlanResponse) Reset ¶
func (m *QueryPlanResponse) Reset()
func (*QueryPlanResponse) Size ¶
func (m *QueryPlanResponse) Size() (n int)
func (*QueryPlanResponse) String ¶
func (m *QueryPlanResponse) String() string
func (*QueryPlanResponse) Unmarshal ¶
func (m *QueryPlanResponse) Unmarshal(dAtA []byte) error
func (*QueryPlanResponse) XXX_DiscardUnknown ¶
func (m *QueryPlanResponse) XXX_DiscardUnknown()
func (*QueryPlanResponse) XXX_Marshal ¶
func (m *QueryPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlanResponse) XXX_Merge ¶
func (m *QueryPlanResponse) XXX_Merge(src proto.Message)
func (*QueryPlanResponse) XXX_Size ¶
func (m *QueryPlanResponse) XXX_Size() int
func (*QueryPlanResponse) XXX_Unmarshal ¶
func (m *QueryPlanResponse) XXX_Unmarshal(b []byte) error
type QueryPlanRewardsRequest ¶
type QueryPlanRewardsRequest struct { PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPlanRewardsRequest is the request type for the Query/PlanRewards RPC method.
func (*QueryPlanRewardsRequest) Descriptor ¶
func (*QueryPlanRewardsRequest) Descriptor() ([]byte, []int)
func (*QueryPlanRewardsRequest) GetPagination ¶
func (m *QueryPlanRewardsRequest) GetPagination() *query.PageRequest
func (*QueryPlanRewardsRequest) GetPlanId ¶
func (m *QueryPlanRewardsRequest) GetPlanId() uint64
func (*QueryPlanRewardsRequest) Marshal ¶
func (m *QueryPlanRewardsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPlanRewardsRequest) MarshalTo ¶
func (m *QueryPlanRewardsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlanRewardsRequest) MarshalToSizedBuffer ¶
func (m *QueryPlanRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlanRewardsRequest) ProtoMessage ¶
func (*QueryPlanRewardsRequest) ProtoMessage()
func (*QueryPlanRewardsRequest) Reset ¶
func (m *QueryPlanRewardsRequest) Reset()
func (*QueryPlanRewardsRequest) Size ¶
func (m *QueryPlanRewardsRequest) Size() (n int)
func (*QueryPlanRewardsRequest) String ¶
func (m *QueryPlanRewardsRequest) String() string
func (*QueryPlanRewardsRequest) Unmarshal ¶
func (m *QueryPlanRewardsRequest) Unmarshal(dAtA []byte) error
func (*QueryPlanRewardsRequest) XXX_DiscardUnknown ¶
func (m *QueryPlanRewardsRequest) XXX_DiscardUnknown()
func (*QueryPlanRewardsRequest) XXX_Marshal ¶
func (m *QueryPlanRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlanRewardsRequest) XXX_Merge ¶
func (m *QueryPlanRewardsRequest) XXX_Merge(src proto.Message)
func (*QueryPlanRewardsRequest) XXX_Size ¶
func (m *QueryPlanRewardsRequest) XXX_Size() int
func (*QueryPlanRewardsRequest) XXX_Unmarshal ¶
func (m *QueryPlanRewardsRequest) XXX_Unmarshal(b []byte) error
type QueryPlanRewardsResponse ¶
type QueryPlanRewardsResponse struct { Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPlanRewardsResponse is the response type for the Query/PlanRewards RPC method.
func (*QueryPlanRewardsResponse) Descriptor ¶
func (*QueryPlanRewardsResponse) Descriptor() ([]byte, []int)
func (*QueryPlanRewardsResponse) GetPagination ¶
func (m *QueryPlanRewardsResponse) GetPagination() *query.PageResponse
func (*QueryPlanRewardsResponse) GetRewards ¶
func (m *QueryPlanRewardsResponse) GetRewards() []*Reward
func (*QueryPlanRewardsResponse) Marshal ¶
func (m *QueryPlanRewardsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPlanRewardsResponse) MarshalTo ¶
func (m *QueryPlanRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlanRewardsResponse) MarshalToSizedBuffer ¶
func (m *QueryPlanRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlanRewardsResponse) ProtoMessage ¶
func (*QueryPlanRewardsResponse) ProtoMessage()
func (*QueryPlanRewardsResponse) Reset ¶
func (m *QueryPlanRewardsResponse) Reset()
func (*QueryPlanRewardsResponse) Size ¶
func (m *QueryPlanRewardsResponse) Size() (n int)
func (*QueryPlanRewardsResponse) String ¶
func (m *QueryPlanRewardsResponse) String() string
func (*QueryPlanRewardsResponse) Unmarshal ¶
func (m *QueryPlanRewardsResponse) Unmarshal(dAtA []byte) error
func (*QueryPlanRewardsResponse) XXX_DiscardUnknown ¶
func (m *QueryPlanRewardsResponse) XXX_DiscardUnknown()
func (*QueryPlanRewardsResponse) XXX_Marshal ¶
func (m *QueryPlanRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlanRewardsResponse) XXX_Merge ¶
func (m *QueryPlanRewardsResponse) XXX_Merge(src proto.Message)
func (*QueryPlanRewardsResponse) XXX_Size ¶
func (m *QueryPlanRewardsResponse) XXX_Size() int
func (*QueryPlanRewardsResponse) XXX_Unmarshal ¶
func (m *QueryPlanRewardsResponse) XXX_Unmarshal(b []byte) error
type QueryPlanStakingsRequest ¶
type QueryPlanStakingsRequest struct { PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPlanStakingsRequest is the request type for the Query/PlanStakings RPC method.
func (*QueryPlanStakingsRequest) Descriptor ¶
func (*QueryPlanStakingsRequest) Descriptor() ([]byte, []int)
func (*QueryPlanStakingsRequest) GetPagination ¶
func (m *QueryPlanStakingsRequest) GetPagination() *query.PageRequest
func (*QueryPlanStakingsRequest) GetPlanId ¶
func (m *QueryPlanStakingsRequest) GetPlanId() uint64
func (*QueryPlanStakingsRequest) Marshal ¶
func (m *QueryPlanStakingsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPlanStakingsRequest) MarshalTo ¶
func (m *QueryPlanStakingsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlanStakingsRequest) MarshalToSizedBuffer ¶
func (m *QueryPlanStakingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlanStakingsRequest) ProtoMessage ¶
func (*QueryPlanStakingsRequest) ProtoMessage()
func (*QueryPlanStakingsRequest) Reset ¶
func (m *QueryPlanStakingsRequest) Reset()
func (*QueryPlanStakingsRequest) Size ¶
func (m *QueryPlanStakingsRequest) Size() (n int)
func (*QueryPlanStakingsRequest) String ¶
func (m *QueryPlanStakingsRequest) String() string
func (*QueryPlanStakingsRequest) Unmarshal ¶
func (m *QueryPlanStakingsRequest) Unmarshal(dAtA []byte) error
func (*QueryPlanStakingsRequest) XXX_DiscardUnknown ¶
func (m *QueryPlanStakingsRequest) XXX_DiscardUnknown()
func (*QueryPlanStakingsRequest) XXX_Marshal ¶
func (m *QueryPlanStakingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlanStakingsRequest) XXX_Merge ¶
func (m *QueryPlanStakingsRequest) XXX_Merge(src proto.Message)
func (*QueryPlanStakingsRequest) XXX_Size ¶
func (m *QueryPlanStakingsRequest) XXX_Size() int
func (*QueryPlanStakingsRequest) XXX_Unmarshal ¶
func (m *QueryPlanStakingsRequest) XXX_Unmarshal(b []byte) error
type QueryPlanStakingsResponse ¶
type QueryPlanStakingsResponse struct { Stakings []*Staking `protobuf:"bytes,1,rep,name=stakings,proto3" json:"stakings,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPlanStakingsResponse is the response type for the Query/PlanStakings RPC method.
func (*QueryPlanStakingsResponse) Descriptor ¶
func (*QueryPlanStakingsResponse) Descriptor() ([]byte, []int)
func (*QueryPlanStakingsResponse) GetPagination ¶
func (m *QueryPlanStakingsResponse) GetPagination() *query.PageResponse
func (*QueryPlanStakingsResponse) GetStakings ¶
func (m *QueryPlanStakingsResponse) GetStakings() []*Staking
func (*QueryPlanStakingsResponse) Marshal ¶
func (m *QueryPlanStakingsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPlanStakingsResponse) MarshalTo ¶
func (m *QueryPlanStakingsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlanStakingsResponse) MarshalToSizedBuffer ¶
func (m *QueryPlanStakingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlanStakingsResponse) ProtoMessage ¶
func (*QueryPlanStakingsResponse) ProtoMessage()
func (*QueryPlanStakingsResponse) Reset ¶
func (m *QueryPlanStakingsResponse) Reset()
func (*QueryPlanStakingsResponse) Size ¶
func (m *QueryPlanStakingsResponse) Size() (n int)
func (*QueryPlanStakingsResponse) String ¶
func (m *QueryPlanStakingsResponse) String() string
func (*QueryPlanStakingsResponse) Unmarshal ¶
func (m *QueryPlanStakingsResponse) Unmarshal(dAtA []byte) error
func (*QueryPlanStakingsResponse) XXX_DiscardUnknown ¶
func (m *QueryPlanStakingsResponse) XXX_DiscardUnknown()
func (*QueryPlanStakingsResponse) XXX_Marshal ¶
func (m *QueryPlanStakingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlanStakingsResponse) XXX_Merge ¶
func (m *QueryPlanStakingsResponse) XXX_Merge(src proto.Message)
func (*QueryPlanStakingsResponse) XXX_Size ¶
func (m *QueryPlanStakingsResponse) XXX_Size() int
func (*QueryPlanStakingsResponse) XXX_Unmarshal ¶
func (m *QueryPlanStakingsResponse) XXX_Unmarshal(b []byte) error
type QueryPlansRequest ¶
type QueryPlansRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` FarmingPoolAddress string `protobuf:"bytes,2,opt,name=farming_pool_address,json=farmingPoolAddress,proto3" json:"farming_pool_address,omitempty"` RewardPoolAddress string `protobuf:"bytes,3,opt,name=reward_pool_address,json=rewardPoolAddress,proto3" json:"reward_pool_address,omitempty"` TerminationAddress string `protobuf:"bytes,4,opt,name=termination_address,json=terminationAddress,proto3" json:"termination_address,omitempty"` StakingReserveAddress string `` /* 126-byte string literal not displayed */ StakingCoinDenom string `protobuf:"bytes,6,opt,name=staking_coin_denom,json=stakingCoinDenom,proto3" json:"staking_coin_denom,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,7,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPlansRequest is the request type for the Query/Plans RPC method.
func (*QueryPlansRequest) Descriptor ¶
func (*QueryPlansRequest) Descriptor() ([]byte, []int)
func (*QueryPlansRequest) GetFarmingPoolAddress ¶
func (m *QueryPlansRequest) GetFarmingPoolAddress() string
func (*QueryPlansRequest) GetPagination ¶
func (m *QueryPlansRequest) GetPagination() *query.PageRequest
func (*QueryPlansRequest) GetRewardPoolAddress ¶
func (m *QueryPlansRequest) GetRewardPoolAddress() string
func (*QueryPlansRequest) GetStakingCoinDenom ¶
func (m *QueryPlansRequest) GetStakingCoinDenom() string
func (*QueryPlansRequest) GetStakingReserveAddress ¶
func (m *QueryPlansRequest) GetStakingReserveAddress() string
func (*QueryPlansRequest) GetTerminationAddress ¶
func (m *QueryPlansRequest) GetTerminationAddress() string
func (*QueryPlansRequest) GetType ¶
func (m *QueryPlansRequest) GetType() string
func (*QueryPlansRequest) Marshal ¶
func (m *QueryPlansRequest) Marshal() (dAtA []byte, err error)
func (*QueryPlansRequest) MarshalTo ¶
func (m *QueryPlansRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlansRequest) MarshalToSizedBuffer ¶
func (m *QueryPlansRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlansRequest) ProtoMessage ¶
func (*QueryPlansRequest) ProtoMessage()
func (*QueryPlansRequest) Reset ¶
func (m *QueryPlansRequest) Reset()
func (*QueryPlansRequest) Size ¶
func (m *QueryPlansRequest) Size() (n int)
func (*QueryPlansRequest) String ¶
func (m *QueryPlansRequest) String() string
func (*QueryPlansRequest) Unmarshal ¶
func (m *QueryPlansRequest) Unmarshal(dAtA []byte) error
func (*QueryPlansRequest) XXX_DiscardUnknown ¶
func (m *QueryPlansRequest) XXX_DiscardUnknown()
func (*QueryPlansRequest) XXX_Marshal ¶
func (m *QueryPlansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlansRequest) XXX_Merge ¶
func (m *QueryPlansRequest) XXX_Merge(src proto.Message)
func (*QueryPlansRequest) XXX_Size ¶
func (m *QueryPlansRequest) XXX_Size() int
func (*QueryPlansRequest) XXX_Unmarshal ¶
func (m *QueryPlansRequest) XXX_Unmarshal(b []byte) error
type QueryPlansResponse ¶
type QueryPlansResponse struct { Plans []*types.Any `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPlansResponse is the response type for the Query/Plans RPC method.
func (*QueryPlansResponse) Descriptor ¶
func (*QueryPlansResponse) Descriptor() ([]byte, []int)
func (*QueryPlansResponse) GetPagination ¶
func (m *QueryPlansResponse) GetPagination() *query.PageResponse
func (*QueryPlansResponse) GetPlans ¶
func (m *QueryPlansResponse) GetPlans() []*types.Any
func (*QueryPlansResponse) Marshal ¶
func (m *QueryPlansResponse) Marshal() (dAtA []byte, err error)
func (*QueryPlansResponse) MarshalTo ¶
func (m *QueryPlansResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlansResponse) MarshalToSizedBuffer ¶
func (m *QueryPlansResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlansResponse) ProtoMessage ¶
func (*QueryPlansResponse) ProtoMessage()
func (*QueryPlansResponse) Reset ¶
func (m *QueryPlansResponse) Reset()
func (*QueryPlansResponse) Size ¶
func (m *QueryPlansResponse) Size() (n int)
func (*QueryPlansResponse) String ¶
func (m *QueryPlansResponse) String() string
func (*QueryPlansResponse) Unmarshal ¶
func (m *QueryPlansResponse) Unmarshal(dAtA []byte) error
func (*QueryPlansResponse) XXX_DiscardUnknown ¶
func (m *QueryPlansResponse) XXX_DiscardUnknown()
func (*QueryPlansResponse) XXX_Marshal ¶
func (m *QueryPlansResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlansResponse) XXX_Merge ¶
func (m *QueryPlansResponse) XXX_Merge(src proto.Message)
func (*QueryPlansResponse) XXX_Size ¶
func (m *QueryPlansResponse) XXX_Size() int
func (*QueryPlansResponse) XXX_Unmarshal ¶
func (m *QueryPlansResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params returns parameters of the farming module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Plans returns all plans. Plans(context.Context, *QueryPlansRequest) (*QueryPlansResponse, error) // Plan returns a specific plan. Plan(context.Context, *QueryPlanRequest) (*QueryPlanResponse, error) // PlanStakings returns all stakings of the plan. PlanStakings(context.Context, *QueryPlanStakingsRequest) (*QueryPlanStakingsResponse, error) // FarmerStakings returns all stakings owned by the farmer. FarmerStakings(context.Context, *QueryFarmerStakingsRequest) (*QueryFarmerStakingsResponse, error) // FarmerStaking returns a specific staking of the plan which is owned by the farmer. FarmerStaking(context.Context, *QueryFarmerStakingRequest) (*QueryFarmerStakingResponse, error) // PlanRewards returns all rewards of the plan. PlanRewards(context.Context, *QueryPlanRewardsRequest) (*QueryPlanRewardsResponse, error) // FarmerRewards returns all rewards owned by the farmer. FarmerRewards(context.Context, *QueryFarmerRewardsRequest) (*QueryFarmerRewardsResponse, error) // FarmerReward returns a specific reward of the plan which is owned by the farmer. FarmerReward(context.Context, *QueryFarmerRewardRequest) (*QueryFarmerRewardResponse, error) }
QueryServer is the server API for Query service.
type RatioPlan ¶
type RatioPlan struct { *BasePlan `protobuf:"bytes,1,opt,name=base_plan,json=basePlan,proto3,embedded=base_plan" json:"base_plan,omitempty" yaml:"base_plan"` // epoch_ratio specifies the distributing amount by ratio EpochRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */ }
RatioPlan defines a ratio plan that ratio of total coins in farming pool address is distributed for every epoch.
func (*RatioPlan) Descriptor ¶
func (*RatioPlan) MarshalToSizedBuffer ¶
func (*RatioPlan) ProtoMessage ¶
func (*RatioPlan) ProtoMessage()
func (*RatioPlan) XXX_DiscardUnknown ¶
func (m *RatioPlan) XXX_DiscardUnknown()
func (*RatioPlan) XXX_Marshal ¶
func (*RatioPlan) XXX_Unmarshal ¶
type Reward ¶
type Reward struct { // plan_id specifies index of the target farming plan PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty" yaml:"plan_id"` // farmer defines the bech32-encoded address of the staker for the plan Farmer string `protobuf:"bytes,2,opt,name=farmer,proto3" json:"farmer,omitempty"` // reward_coins specifies rewards amount at this point in time when farmers receive them from the farming plan RewardCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ }
Reward defines a record of farming rewards.
func (*Reward) Descriptor ¶
func (Reward) GetFarmerAddress ¶
func (reward Reward) GetFarmerAddress() sdk.AccAddress
func (*Reward) MarshalToSizedBuffer ¶
func (Reward) MarshalYAML ¶
func (*Reward) ProtoMessage ¶
func (*Reward) ProtoMessage()
func (*Reward) XXX_DiscardUnknown ¶
func (m *Reward) XXX_DiscardUnknown()
func (*Reward) XXX_Marshal ¶
func (*Reward) XXX_Unmarshal ¶
type Staking ¶
type Staking struct { // plan_id specifies index of the target farming plan PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty" yaml:"plan_id"` // farmer defines the bech32-encoded address of the staker for the plan Farmer string `protobuf:"bytes,2,opt,name=farmer,proto3" json:"farmer,omitempty"` // staked_coins specifies the staking amount for the plan of farmer StakedCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ // queued_coins specifies the coins on standby before current epoch passes and gets staked. QueuedCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ }
Staking defines a farmer's staking information.
func (*Staking) Descriptor ¶
func (Staking) GetFarmerAddress ¶
func (staking Staking) GetFarmerAddress() sdk.AccAddress
func (*Staking) MarshalToSizedBuffer ¶
func (Staking) MarshalYAML ¶
func (*Staking) ProtoMessage ¶
func (*Staking) ProtoMessage()
func (*Staking) XXX_DiscardUnknown ¶
func (m *Staking) XXX_DiscardUnknown()
func (*Staking) XXX_Marshal ¶
func (*Staking) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Claim ¶
func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error)
func (*UnimplementedMsgServer) CreateFixedAmountPlan ¶
func (*UnimplementedMsgServer) CreateFixedAmountPlan(ctx context.Context, req *MsgCreateFixedAmountPlan) (*MsgCreateFixedAmountPlanResponse, error)
func (*UnimplementedMsgServer) CreateRatioPlan ¶
func (*UnimplementedMsgServer) CreateRatioPlan(ctx context.Context, req *MsgCreateRatioPlan) (*MsgCreateRatioPlanResponse, error)
func (*UnimplementedMsgServer) Stake ¶
func (*UnimplementedMsgServer) Stake(ctx context.Context, req *MsgStake) (*MsgStakeResponse, error)
func (*UnimplementedMsgServer) Unstake ¶
func (*UnimplementedMsgServer) Unstake(ctx context.Context, req *MsgUnstake) (*MsgUnstakeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) FarmerReward ¶
func (*UnimplementedQueryServer) FarmerReward(ctx context.Context, req *QueryFarmerRewardRequest) (*QueryFarmerRewardResponse, error)
func (*UnimplementedQueryServer) FarmerRewards ¶
func (*UnimplementedQueryServer) FarmerRewards(ctx context.Context, req *QueryFarmerRewardsRequest) (*QueryFarmerRewardsResponse, error)
func (*UnimplementedQueryServer) FarmerStaking ¶
func (*UnimplementedQueryServer) FarmerStaking(ctx context.Context, req *QueryFarmerStakingRequest) (*QueryFarmerStakingResponse, error)
func (*UnimplementedQueryServer) FarmerStakings ¶
func (*UnimplementedQueryServer) FarmerStakings(ctx context.Context, req *QueryFarmerStakingsRequest) (*QueryFarmerStakingsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Plan ¶
func (*UnimplementedQueryServer) Plan(ctx context.Context, req *QueryPlanRequest) (*QueryPlanResponse, error)
func (*UnimplementedQueryServer) PlanRewards ¶
func (*UnimplementedQueryServer) PlanRewards(ctx context.Context, req *QueryPlanRewardsRequest) (*QueryPlanRewardsResponse, error)
func (*UnimplementedQueryServer) PlanStakings ¶
func (*UnimplementedQueryServer) PlanStakings(ctx context.Context, req *QueryPlanStakingsRequest) (*QueryPlanStakingsResponse, error)
func (*UnimplementedQueryServer) Plans ¶
func (*UnimplementedQueryServer) Plans(ctx context.Context, req *QueryPlansRequest) (*QueryPlansResponse, error)