types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "lpfarm"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgCreatePrivatePlan = "create_private_plan"
	TypeMsgFarm              = "farm"
	TypeMsgUnfarm            = "unfarm"
	TypeMsgHarvest           = "harvest"
)

Message types for the module

View Source
const (
	DefaultMaxNumPrivatePlans = 50
	DefaultMaxBlockDuration   = 10 * time.Second

	MaxPlanDescriptionLen = 200 // Maximum length of a plan's description
)
View Source
const (
	ProposalTypeFarmingPlan string = "FarmingPlan"
)

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	LastBlockTimeKey           = []byte{0xd0}
	LastPlanIdKey              = []byte{0xd1}
	NumPrivatePlansKey         = []byte{0xd2}
	PlanKeyPrefix              = []byte{0xd3}
	FarmKeyPrefix              = []byte{0xd4}
	PositionKeyPrefix          = []byte{0xd5}
	HistoricalRewardsKeyPrefix = []byte{0xd6}
)
View Source
var (
	ErrInvalidLengthLpfarm        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLpfarm          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLpfarm = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyPrivatePlanCreationFee = []byte("PrivatePlanCreationFee")
	KeyFeeCollector           = []byte("FeeCollector")
	KeyMaxNumPrivatePlans     = []byte("MaxNumPrivatePlans")
	KeyMaxBlockDuration       = []byte("MaxBlockDuration")
)
View Source
var (
	DefaultPrivatePlanCreationFee = sdk.NewCoins(sdk.NewInt64Coin(sdk.DefaultBondDenom, 100_000000))
	DefaultFeeCollector           = sdk.AccAddress(address.Module(ModuleName, []byte("FeeCollector")))

	RewardsPoolAddress = address.Module(ModuleName, []byte("RewardsPool"))
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrPlanAlreadyTerminated = sdkerrors.Register(ModuleName, 2, "plan is already terminated")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func DeriveFarmingPoolAddress

func DeriveFarmingPoolAddress(planId uint64) sdk.AccAddress

func DeriveFarmingReserveAddress

func DeriveFarmingReserveAddress(denom string) sdk.AccAddress

func GetFarmKey

func GetFarmKey(denom string) []byte

func GetHistoricalRewardsByDenomKeyPrefix

func GetHistoricalRewardsByDenomKeyPrefix(denom string) []byte

GetHistoricalRewardsByDenomKeyPrefix returns a key prefix for iterating through all the historical rewards belong to a denom.

func GetHistoricalRewardsKey

func GetHistoricalRewardsKey(denom string, period uint64) []byte

func GetPlanKey

func GetPlanKey(id uint64) []byte

func GetPositionKey

func GetPositionKey(farmerAddr sdk.AccAddress, denom string) []byte

func GetPositionsByFarmerKeyPrefix

func GetPositionsByFarmerKeyPrefix(farmerAddr sdk.AccAddress) []byte

GetPositionsByFarmerKeyPrefix returns a key prefix for iterating through all the positions owned by a farmer.

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

func ParseFarmKey

func ParseFarmKey(key []byte) (denom string)

func ParseHistoricalRewardsKey

func ParseHistoricalRewardsKey(key []byte) (denom string, period uint64)

func ParsePositionKey

func ParsePositionKey(key []byte) (farmerAddr sdk.AccAddress, denom string)

func PoolRewardWeight

func PoolRewardWeight(pool amm.Pool) (weight sdk.Dec)

PoolRewardWeight returns given pool's reward weight.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the x/lpfarm interfaces types with the interface registry.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/lpfarm interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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 RewardsForBlock

func RewardsForBlock(rewardsPerDay sdk.Coins, blockDuration time.Duration) sdk.DecCoins

func ValidateRewardAllocations

func ValidateRewardAllocations(rewardAllocs []RewardAllocation) error

ValidateRewardAllocations validates a slice of RewardAllocation. It also checks whether there's any duplication of pair id among the reward allocations.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

AccountKeeper defines the expected keeper interface of the auth module. Some methods are used only in simulation tests.

type BankKeeper

type BankKeeper interface {
	HasSupply(ctx sdk.Context, denom string) bool
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error

	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	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
}

BankKeeper defines the expected keeper interface of the bank module. Some methods are used only in simulation tests.

type CreatePlanRequest

type CreatePlanRequest struct {
	Description        string             `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	FarmingPoolAddress string             `protobuf:"bytes,2,opt,name=farming_pool_address,json=farmingPoolAddress,proto3" json:"farming_pool_address,omitempty"`
	RewardAllocations  []RewardAllocation `protobuf:"bytes,3,rep,name=reward_allocations,json=rewardAllocations,proto3" json:"reward_allocations"`
	StartTime          time.Time          `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	EndTime            time.Time          `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
}

func NewCreatePlanRequest

func NewCreatePlanRequest(
	description string, farmingPoolAddr sdk.AccAddress,
	rewardAllocs []RewardAllocation, startTime, endTime time.Time) CreatePlanRequest

func (*CreatePlanRequest) Descriptor

func (*CreatePlanRequest) Descriptor() ([]byte, []int)

func (*CreatePlanRequest) Marshal

func (m *CreatePlanRequest) Marshal() (dAtA []byte, err error)

func (*CreatePlanRequest) MarshalTo

func (m *CreatePlanRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreatePlanRequest) MarshalToSizedBuffer

func (m *CreatePlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreatePlanRequest) ProtoMessage

func (*CreatePlanRequest) ProtoMessage()

func (*CreatePlanRequest) Reset

func (m *CreatePlanRequest) Reset()

func (*CreatePlanRequest) Size

func (m *CreatePlanRequest) Size() (n int)

func (*CreatePlanRequest) String

func (m *CreatePlanRequest) String() string

func (*CreatePlanRequest) Unmarshal

func (m *CreatePlanRequest) Unmarshal(dAtA []byte) error

func (CreatePlanRequest) Validate

func (req CreatePlanRequest) Validate() error

func (*CreatePlanRequest) XXX_DiscardUnknown

func (m *CreatePlanRequest) XXX_DiscardUnknown()

func (*CreatePlanRequest) XXX_Marshal

func (m *CreatePlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreatePlanRequest) XXX_Merge

func (m *CreatePlanRequest) XXX_Merge(src proto.Message)

func (*CreatePlanRequest) XXX_Size

func (m *CreatePlanRequest) XXX_Size() int

func (*CreatePlanRequest) XXX_Unmarshal

func (m *CreatePlanRequest) XXX_Unmarshal(b []byte) error

type EventCreatePrivatePlan

type EventCreatePrivatePlan struct {
	Creator            string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PlanId             uint64 `protobuf:"varint,2,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
	FarmingPoolAddress string `protobuf:"bytes,3,opt,name=farming_pool_address,json=farmingPoolAddress,proto3" json:"farming_pool_address,omitempty"`
}

func (*EventCreatePrivatePlan) Descriptor

func (*EventCreatePrivatePlan) Descriptor() ([]byte, []int)

func (*EventCreatePrivatePlan) Marshal

func (m *EventCreatePrivatePlan) Marshal() (dAtA []byte, err error)

func (*EventCreatePrivatePlan) MarshalTo

func (m *EventCreatePrivatePlan) MarshalTo(dAtA []byte) (int, error)

func (*EventCreatePrivatePlan) MarshalToSizedBuffer

func (m *EventCreatePrivatePlan) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventCreatePrivatePlan) ProtoMessage

func (*EventCreatePrivatePlan) ProtoMessage()

func (*EventCreatePrivatePlan) Reset

func (m *EventCreatePrivatePlan) Reset()

func (*EventCreatePrivatePlan) Size

func (m *EventCreatePrivatePlan) Size() (n int)

func (*EventCreatePrivatePlan) String

func (m *EventCreatePrivatePlan) String() string

func (*EventCreatePrivatePlan) Unmarshal

func (m *EventCreatePrivatePlan) Unmarshal(dAtA []byte) error

func (*EventCreatePrivatePlan) XXX_DiscardUnknown

func (m *EventCreatePrivatePlan) XXX_DiscardUnknown()

func (*EventCreatePrivatePlan) XXX_Marshal

func (m *EventCreatePrivatePlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventCreatePrivatePlan) XXX_Merge

func (m *EventCreatePrivatePlan) XXX_Merge(src proto.Message)

func (*EventCreatePrivatePlan) XXX_Size

func (m *EventCreatePrivatePlan) XXX_Size() int

func (*EventCreatePrivatePlan) XXX_Unmarshal

func (m *EventCreatePrivatePlan) XXX_Unmarshal(b []byte) error

type EventFarm

type EventFarm struct {
	Farmer           string                                   `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Coin             types.Coin                               `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin"`
	WithdrawnRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 153-byte string literal not displayed */
}

func (*EventFarm) Descriptor

func (*EventFarm) Descriptor() ([]byte, []int)

func (*EventFarm) Marshal

func (m *EventFarm) Marshal() (dAtA []byte, err error)

func (*EventFarm) MarshalTo

func (m *EventFarm) MarshalTo(dAtA []byte) (int, error)

func (*EventFarm) MarshalToSizedBuffer

func (m *EventFarm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventFarm) ProtoMessage

func (*EventFarm) ProtoMessage()

func (*EventFarm) Reset

func (m *EventFarm) Reset()

func (*EventFarm) Size

func (m *EventFarm) Size() (n int)

func (*EventFarm) String

func (m *EventFarm) String() string

func (*EventFarm) Unmarshal

func (m *EventFarm) Unmarshal(dAtA []byte) error

func (*EventFarm) XXX_DiscardUnknown

func (m *EventFarm) XXX_DiscardUnknown()

func (*EventFarm) XXX_Marshal

func (m *EventFarm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventFarm) XXX_Merge

func (m *EventFarm) XXX_Merge(src proto.Message)

func (*EventFarm) XXX_Size

func (m *EventFarm) XXX_Size() int

func (*EventFarm) XXX_Unmarshal

func (m *EventFarm) XXX_Unmarshal(b []byte) error

type EventHarvest

type EventHarvest struct {
	Farmer           string                                   `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Denom            string                                   `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	WithdrawnRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 153-byte string literal not displayed */
}

func (*EventHarvest) Descriptor

func (*EventHarvest) Descriptor() ([]byte, []int)

func (*EventHarvest) Marshal

func (m *EventHarvest) Marshal() (dAtA []byte, err error)

func (*EventHarvest) MarshalTo

func (m *EventHarvest) MarshalTo(dAtA []byte) (int, error)

func (*EventHarvest) MarshalToSizedBuffer

func (m *EventHarvest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventHarvest) ProtoMessage

func (*EventHarvest) ProtoMessage()

func (*EventHarvest) Reset

func (m *EventHarvest) Reset()

func (*EventHarvest) Size

func (m *EventHarvest) Size() (n int)

func (*EventHarvest) String

func (m *EventHarvest) String() string

func (*EventHarvest) Unmarshal

func (m *EventHarvest) Unmarshal(dAtA []byte) error

func (*EventHarvest) XXX_DiscardUnknown

func (m *EventHarvest) XXX_DiscardUnknown()

func (*EventHarvest) XXX_Marshal

func (m *EventHarvest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventHarvest) XXX_Merge

func (m *EventHarvest) XXX_Merge(src proto.Message)

func (*EventHarvest) XXX_Size

func (m *EventHarvest) XXX_Size() int

func (*EventHarvest) XXX_Unmarshal

func (m *EventHarvest) XXX_Unmarshal(b []byte) error

type EventTerminatePlan

type EventTerminatePlan struct {
	PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
}

func (*EventTerminatePlan) Descriptor

func (*EventTerminatePlan) Descriptor() ([]byte, []int)

func (*EventTerminatePlan) Marshal

func (m *EventTerminatePlan) Marshal() (dAtA []byte, err error)

func (*EventTerminatePlan) MarshalTo

func (m *EventTerminatePlan) MarshalTo(dAtA []byte) (int, error)

func (*EventTerminatePlan) MarshalToSizedBuffer

func (m *EventTerminatePlan) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventTerminatePlan) ProtoMessage

func (*EventTerminatePlan) ProtoMessage()

func (*EventTerminatePlan) Reset

func (m *EventTerminatePlan) Reset()

func (*EventTerminatePlan) Size

func (m *EventTerminatePlan) Size() (n int)

func (*EventTerminatePlan) String

func (m *EventTerminatePlan) String() string

func (*EventTerminatePlan) Unmarshal

func (m *EventTerminatePlan) Unmarshal(dAtA []byte) error

func (*EventTerminatePlan) XXX_DiscardUnknown

func (m *EventTerminatePlan) XXX_DiscardUnknown()

func (*EventTerminatePlan) XXX_Marshal

func (m *EventTerminatePlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventTerminatePlan) XXX_Merge

func (m *EventTerminatePlan) XXX_Merge(src proto.Message)

func (*EventTerminatePlan) XXX_Size

func (m *EventTerminatePlan) XXX_Size() int

func (*EventTerminatePlan) XXX_Unmarshal

func (m *EventTerminatePlan) XXX_Unmarshal(b []byte) error

type EventUnfarm

type EventUnfarm struct {
	Farmer           string                                   `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Coin             types.Coin                               `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin"`
	WithdrawnRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 153-byte string literal not displayed */
}

func (*EventUnfarm) Descriptor

func (*EventUnfarm) Descriptor() ([]byte, []int)

func (*EventUnfarm) Marshal

func (m *EventUnfarm) Marshal() (dAtA []byte, err error)

func (*EventUnfarm) MarshalTo

func (m *EventUnfarm) MarshalTo(dAtA []byte) (int, error)

func (*EventUnfarm) MarshalToSizedBuffer

func (m *EventUnfarm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventUnfarm) ProtoMessage

func (*EventUnfarm) ProtoMessage()

func (*EventUnfarm) Reset

func (m *EventUnfarm) Reset()

func (*EventUnfarm) Size

func (m *EventUnfarm) Size() (n int)

func (*EventUnfarm) String

func (m *EventUnfarm) String() string

func (*EventUnfarm) Unmarshal

func (m *EventUnfarm) Unmarshal(dAtA []byte) error

func (*EventUnfarm) XXX_DiscardUnknown

func (m *EventUnfarm) XXX_DiscardUnknown()

func (*EventUnfarm) XXX_Marshal

func (m *EventUnfarm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventUnfarm) XXX_Merge

func (m *EventUnfarm) XXX_Merge(src proto.Message)

func (*EventUnfarm) XXX_Size

func (m *EventUnfarm) XXX_Size() int

func (*EventUnfarm) XXX_Unmarshal

func (m *EventUnfarm) XXX_Unmarshal(b []byte) error

type Farm

type Farm struct {
	TotalFarmingAmount github_com_cosmos_cosmos_sdk_types.Int      `` /* 157-byte string literal not displayed */
	CurrentRewards     github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 150-byte string literal not displayed */
	OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 162-byte string literal not displayed */
	Period             uint64                                      `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"`
	PreviousShare      *github_com_cosmos_cosmos_sdk_types.Dec     `` /* 150-byte string literal not displayed */
}

func (*Farm) Descriptor

func (*Farm) Descriptor() ([]byte, []int)

func (*Farm) Marshal

func (m *Farm) Marshal() (dAtA []byte, err error)

func (*Farm) MarshalTo

func (m *Farm) MarshalTo(dAtA []byte) (int, error)

func (*Farm) MarshalToSizedBuffer

func (m *Farm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Farm) ProtoMessage

func (*Farm) ProtoMessage()

func (*Farm) Reset

func (m *Farm) Reset()

func (*Farm) Size

func (m *Farm) Size() (n int)

func (*Farm) String

func (m *Farm) String() string

func (*Farm) Unmarshal

func (m *Farm) Unmarshal(dAtA []byte) error

func (*Farm) XXX_DiscardUnknown

func (m *Farm) XXX_DiscardUnknown()

func (*Farm) XXX_Marshal

func (m *Farm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Farm) XXX_Merge

func (m *Farm) XXX_Merge(src proto.Message)

func (*Farm) XXX_Size

func (m *Farm) XXX_Size() int

func (*Farm) XXX_Unmarshal

func (m *Farm) XXX_Unmarshal(b []byte) error

type FarmRecord

type FarmRecord struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Farm  Farm   `protobuf:"bytes,2,opt,name=farm,proto3" json:"farm"`
}

func (*FarmRecord) Descriptor

func (*FarmRecord) Descriptor() ([]byte, []int)

func (*FarmRecord) Marshal

func (m *FarmRecord) Marshal() (dAtA []byte, err error)

func (*FarmRecord) MarshalTo

func (m *FarmRecord) MarshalTo(dAtA []byte) (int, error)

func (*FarmRecord) MarshalToSizedBuffer

func (m *FarmRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FarmRecord) ProtoMessage

func (*FarmRecord) ProtoMessage()

func (*FarmRecord) Reset

func (m *FarmRecord) Reset()

func (*FarmRecord) Size

func (m *FarmRecord) Size() (n int)

func (*FarmRecord) String

func (m *FarmRecord) String() string

func (*FarmRecord) Unmarshal

func (m *FarmRecord) Unmarshal(dAtA []byte) error

func (*FarmRecord) XXX_DiscardUnknown

func (m *FarmRecord) XXX_DiscardUnknown()

func (*FarmRecord) XXX_Marshal

func (m *FarmRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FarmRecord) XXX_Merge

func (m *FarmRecord) XXX_Merge(src proto.Message)

func (*FarmRecord) XXX_Size

func (m *FarmRecord) XXX_Size() int

func (*FarmRecord) XXX_Unmarshal

func (m *FarmRecord) XXX_Unmarshal(b []byte) error

type FarmingPlanProposal

type FarmingPlanProposal 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"`
	CreatePlanRequests    []CreatePlanRequest    `protobuf:"bytes,3,rep,name=create_plan_requests,json=createPlanRequests,proto3" json:"create_plan_requests"`
	TerminatePlanRequests []TerminatePlanRequest `protobuf:"bytes,4,rep,name=terminate_plan_requests,json=terminatePlanRequests,proto3" json:"terminate_plan_requests"`
}

func NewFarmingPlanProposal

func NewFarmingPlanProposal(
	title, description string,
	createPlanReqs []CreatePlanRequest,
	terminatePlanReqs []TerminatePlanRequest) *FarmingPlanProposal

func (*FarmingPlanProposal) Descriptor

func (*FarmingPlanProposal) Descriptor() ([]byte, []int)

func (*FarmingPlanProposal) GetDescription

func (p *FarmingPlanProposal) GetDescription() string

func (*FarmingPlanProposal) GetTitle

func (p *FarmingPlanProposal) GetTitle() string

func (*FarmingPlanProposal) Marshal

func (m *FarmingPlanProposal) Marshal() (dAtA []byte, err error)

func (*FarmingPlanProposal) MarshalTo

func (m *FarmingPlanProposal) MarshalTo(dAtA []byte) (int, error)

func (*FarmingPlanProposal) MarshalToSizedBuffer

func (m *FarmingPlanProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FarmingPlanProposal) ProposalRoute

func (p *FarmingPlanProposal) ProposalRoute() string

func (*FarmingPlanProposal) ProposalType

func (p *FarmingPlanProposal) ProposalType() string

func (*FarmingPlanProposal) ProtoMessage

func (*FarmingPlanProposal) ProtoMessage()

func (*FarmingPlanProposal) Reset

func (m *FarmingPlanProposal) Reset()

func (*FarmingPlanProposal) Size

func (m *FarmingPlanProposal) Size() (n int)

func (FarmingPlanProposal) String

func (p FarmingPlanProposal) String() string

func (*FarmingPlanProposal) Unmarshal

func (m *FarmingPlanProposal) Unmarshal(dAtA []byte) error

func (*FarmingPlanProposal) ValidateBasic

func (p *FarmingPlanProposal) ValidateBasic() error

func (*FarmingPlanProposal) XXX_DiscardUnknown

func (m *FarmingPlanProposal) XXX_DiscardUnknown()

func (*FarmingPlanProposal) XXX_Marshal

func (m *FarmingPlanProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FarmingPlanProposal) XXX_Merge

func (m *FarmingPlanProposal) XXX_Merge(src proto.Message)

func (*FarmingPlanProposal) XXX_Size

func (m *FarmingPlanProposal) XXX_Size() int

func (*FarmingPlanProposal) XXX_Unmarshal

func (m *FarmingPlanProposal) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	Params            Params                    `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	LastBlockTime     *time.Time                `protobuf:"bytes,2,opt,name=last_block_time,json=lastBlockTime,proto3,stdtime" json:"last_block_time,omitempty"`
	LastPlanId        uint64                    `protobuf:"varint,3,opt,name=last_plan_id,json=lastPlanId,proto3" json:"last_plan_id,omitempty"`
	NumPrivatePlans   uint64                    `protobuf:"varint,4,opt,name=num_private_plans,json=numPrivatePlans,proto3" json:"num_private_plans,omitempty"`
	Plans             []Plan                    `protobuf:"bytes,5,rep,name=plans,proto3" json:"plans"`
	Farms             []FarmRecord              `protobuf:"bytes,6,rep,name=farms,proto3" json:"farms"`
	Positions         []Position                `protobuf:"bytes,7,rep,name=positions,proto3" json:"positions"`
	HistoricalRewards []HistoricalRewardsRecord `protobuf:"bytes,8,rep,name=historical_rewards,json=historicalRewards,proto3" json:"historical_rewards"`
}

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state for the module.

func NewGenesisState

func NewGenesisState(
	params Params, lastBlockTime *time.Time, lastPlanId, numPrivatePlans uint64,
	plans []Plan, farms []FarmRecord, positions []Position, hists []HistoricalRewardsRecord,
) *GenesisState

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) Validate

func (genState GenesisState) Validate() 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 HistoricalRewards

type HistoricalRewards struct {
	CumulativeUnitRewards github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 173-byte string literal not displayed */
	ReferenceCount        uint32                                      `protobuf:"varint,2,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty"`
}

func (*HistoricalRewards) Descriptor

func (*HistoricalRewards) Descriptor() ([]byte, []int)

func (*HistoricalRewards) Marshal

func (m *HistoricalRewards) Marshal() (dAtA []byte, err error)

func (*HistoricalRewards) MarshalTo

func (m *HistoricalRewards) MarshalTo(dAtA []byte) (int, error)

func (*HistoricalRewards) MarshalToSizedBuffer

func (m *HistoricalRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HistoricalRewards) ProtoMessage

func (*HistoricalRewards) ProtoMessage()

func (*HistoricalRewards) Reset

func (m *HistoricalRewards) Reset()

func (*HistoricalRewards) Size

func (m *HistoricalRewards) Size() (n int)

func (*HistoricalRewards) String

func (m *HistoricalRewards) String() string

func (*HistoricalRewards) Unmarshal

func (m *HistoricalRewards) Unmarshal(dAtA []byte) error

func (*HistoricalRewards) XXX_DiscardUnknown

func (m *HistoricalRewards) XXX_DiscardUnknown()

func (*HistoricalRewards) XXX_Marshal

func (m *HistoricalRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HistoricalRewards) XXX_Merge

func (m *HistoricalRewards) XXX_Merge(src proto.Message)

func (*HistoricalRewards) XXX_Size

func (m *HistoricalRewards) XXX_Size() int

func (*HistoricalRewards) XXX_Unmarshal

func (m *HistoricalRewards) XXX_Unmarshal(b []byte) error

type HistoricalRewardsRecord

type HistoricalRewardsRecord struct {
	Denom             string            `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Period            uint64            `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
	HistoricalRewards HistoricalRewards `protobuf:"bytes,3,opt,name=historical_rewards,json=historicalRewards,proto3" json:"historical_rewards"`
}

func (*HistoricalRewardsRecord) Descriptor

func (*HistoricalRewardsRecord) Descriptor() ([]byte, []int)

func (*HistoricalRewardsRecord) Marshal

func (m *HistoricalRewardsRecord) Marshal() (dAtA []byte, err error)

func (*HistoricalRewardsRecord) MarshalTo

func (m *HistoricalRewardsRecord) MarshalTo(dAtA []byte) (int, error)

func (*HistoricalRewardsRecord) MarshalToSizedBuffer

func (m *HistoricalRewardsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HistoricalRewardsRecord) ProtoMessage

func (*HistoricalRewardsRecord) ProtoMessage()

func (*HistoricalRewardsRecord) Reset

func (m *HistoricalRewardsRecord) Reset()

func (*HistoricalRewardsRecord) Size

func (m *HistoricalRewardsRecord) Size() (n int)

func (*HistoricalRewardsRecord) String

func (m *HistoricalRewardsRecord) String() string

func (*HistoricalRewardsRecord) Unmarshal

func (m *HistoricalRewardsRecord) Unmarshal(dAtA []byte) error

func (*HistoricalRewardsRecord) XXX_DiscardUnknown

func (m *HistoricalRewardsRecord) XXX_DiscardUnknown()

func (*HistoricalRewardsRecord) XXX_Marshal

func (m *HistoricalRewardsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HistoricalRewardsRecord) XXX_Merge

func (m *HistoricalRewardsRecord) XXX_Merge(src proto.Message)

func (*HistoricalRewardsRecord) XXX_Size

func (m *HistoricalRewardsRecord) XXX_Size() int

func (*HistoricalRewardsRecord) XXX_Unmarshal

func (m *HistoricalRewardsRecord) XXX_Unmarshal(b []byte) error

type HistoricalRewardsResponse

type HistoricalRewardsResponse struct {
	Period                uint64                                      `protobuf:"varint,1,opt,name=period,proto3" json:"period,omitempty"`
	CumulativeUnitRewards github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 173-byte string literal not displayed */
	ReferenceCount        uint32                                      `protobuf:"varint,3,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty"`
}

func (*HistoricalRewardsResponse) Descriptor

func (*HistoricalRewardsResponse) Descriptor() ([]byte, []int)

func (*HistoricalRewardsResponse) GetCumulativeUnitRewards

func (*HistoricalRewardsResponse) GetPeriod

func (m *HistoricalRewardsResponse) GetPeriod() uint64

func (*HistoricalRewardsResponse) GetReferenceCount

func (m *HistoricalRewardsResponse) GetReferenceCount() uint32

func (*HistoricalRewardsResponse) Marshal

func (m *HistoricalRewardsResponse) Marshal() (dAtA []byte, err error)

func (*HistoricalRewardsResponse) MarshalTo

func (m *HistoricalRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*HistoricalRewardsResponse) MarshalToSizedBuffer

func (m *HistoricalRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HistoricalRewardsResponse) ProtoMessage

func (*HistoricalRewardsResponse) ProtoMessage()

func (*HistoricalRewardsResponse) Reset

func (m *HistoricalRewardsResponse) Reset()

func (*HistoricalRewardsResponse) Size

func (m *HistoricalRewardsResponse) Size() (n int)

func (*HistoricalRewardsResponse) String

func (m *HistoricalRewardsResponse) String() string

func (*HistoricalRewardsResponse) Unmarshal

func (m *HistoricalRewardsResponse) Unmarshal(dAtA []byte) error

func (*HistoricalRewardsResponse) XXX_DiscardUnknown

func (m *HistoricalRewardsResponse) XXX_DiscardUnknown()

func (*HistoricalRewardsResponse) XXX_Marshal

func (m *HistoricalRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HistoricalRewardsResponse) XXX_Merge

func (m *HistoricalRewardsResponse) XXX_Merge(src proto.Message)

func (*HistoricalRewardsResponse) XXX_Size

func (m *HistoricalRewardsResponse) XXX_Size() int

func (*HistoricalRewardsResponse) XXX_Unmarshal

func (m *HistoricalRewardsResponse) XXX_Unmarshal(b []byte) error

type LiquidityKeeper

type LiquidityKeeper interface {
	GetPair(ctx sdk.Context, id uint64) (pair liquiditytypes.Pair, found bool)
	GetAllPairs(ctx sdk.Context) (pairs []liquiditytypes.Pair)
	IteratePoolsByPair(ctx sdk.Context, pairId uint64, cb func(pool liquiditytypes.Pool) (stop bool, err error)) error
}

LiquidityKeeper defines the expected keeper interface of the liquidity module.

type MsgClient

type MsgClient interface {
	CreatePrivatePlan(ctx context.Context, in *MsgCreatePrivatePlan, opts ...grpc.CallOption) (*MsgCreatePrivatePlanResponse, error)
	Farm(ctx context.Context, in *MsgFarm, opts ...grpc.CallOption) (*MsgFarmResponse, error)
	Unfarm(ctx context.Context, in *MsgUnfarm, opts ...grpc.CallOption) (*MsgUnfarmResponse, error)
	Harvest(ctx context.Context, in *MsgHarvest, opts ...grpc.CallOption) (*MsgHarvestResponse, 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 MsgCreatePrivatePlan

type MsgCreatePrivatePlan struct {
	Creator           string             `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Description       string             `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	RewardAllocations []RewardAllocation `protobuf:"bytes,3,rep,name=reward_allocations,json=rewardAllocations,proto3" json:"reward_allocations"`
	StartTime         time.Time          `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	EndTime           time.Time          `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
}

func NewMsgCreatePrivatePlan

func NewMsgCreatePrivatePlan(
	creatorAddr sdk.AccAddress, description string, rewardAllocations []RewardAllocation,
	startTime, endTime time.Time) *MsgCreatePrivatePlan

NewMsgCreatePrivatePlan creates a new MsgCreatePrivatePlan.

func (*MsgCreatePrivatePlan) Descriptor

func (*MsgCreatePrivatePlan) Descriptor() ([]byte, []int)

func (MsgCreatePrivatePlan) GetCreatorAddress

func (msg MsgCreatePrivatePlan) GetCreatorAddress() sdk.AccAddress

func (MsgCreatePrivatePlan) GetSignBytes

func (msg MsgCreatePrivatePlan) GetSignBytes() []byte

func (MsgCreatePrivatePlan) GetSigners

func (msg MsgCreatePrivatePlan) GetSigners() []sdk.AccAddress

func (*MsgCreatePrivatePlan) Marshal

func (m *MsgCreatePrivatePlan) Marshal() (dAtA []byte, err error)

func (*MsgCreatePrivatePlan) MarshalTo

func (m *MsgCreatePrivatePlan) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreatePrivatePlan) MarshalToSizedBuffer

func (m *MsgCreatePrivatePlan) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreatePrivatePlan) ProtoMessage

func (*MsgCreatePrivatePlan) ProtoMessage()

func (*MsgCreatePrivatePlan) Reset

func (m *MsgCreatePrivatePlan) Reset()

func (MsgCreatePrivatePlan) Route

func (msg MsgCreatePrivatePlan) Route() string

func (*MsgCreatePrivatePlan) Size

func (m *MsgCreatePrivatePlan) Size() (n int)

func (*MsgCreatePrivatePlan) String

func (m *MsgCreatePrivatePlan) String() string

func (MsgCreatePrivatePlan) Type

func (msg MsgCreatePrivatePlan) Type() string

func (*MsgCreatePrivatePlan) Unmarshal

func (m *MsgCreatePrivatePlan) Unmarshal(dAtA []byte) error

func (MsgCreatePrivatePlan) ValidateBasic

func (msg MsgCreatePrivatePlan) ValidateBasic() error

func (*MsgCreatePrivatePlan) XXX_DiscardUnknown

func (m *MsgCreatePrivatePlan) XXX_DiscardUnknown()

func (*MsgCreatePrivatePlan) XXX_Marshal

func (m *MsgCreatePrivatePlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreatePrivatePlan) XXX_Merge

func (m *MsgCreatePrivatePlan) XXX_Merge(src proto.Message)

func (*MsgCreatePrivatePlan) XXX_Size

func (m *MsgCreatePrivatePlan) XXX_Size() int

func (*MsgCreatePrivatePlan) XXX_Unmarshal

func (m *MsgCreatePrivatePlan) XXX_Unmarshal(b []byte) error

type MsgCreatePrivatePlanResponse

type MsgCreatePrivatePlanResponse struct {
	PlanId             uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
	FarmingPoolAddress string `protobuf:"bytes,2,opt,name=farming_pool_address,json=farmingPoolAddress,proto3" json:"farming_pool_address,omitempty"`
}

func (*MsgCreatePrivatePlanResponse) Descriptor

func (*MsgCreatePrivatePlanResponse) Descriptor() ([]byte, []int)

func (*MsgCreatePrivatePlanResponse) Marshal

func (m *MsgCreatePrivatePlanResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreatePrivatePlanResponse) MarshalTo

func (m *MsgCreatePrivatePlanResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreatePrivatePlanResponse) MarshalToSizedBuffer

func (m *MsgCreatePrivatePlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreatePrivatePlanResponse) ProtoMessage

func (*MsgCreatePrivatePlanResponse) ProtoMessage()

func (*MsgCreatePrivatePlanResponse) Reset

func (m *MsgCreatePrivatePlanResponse) Reset()

func (*MsgCreatePrivatePlanResponse) Size

func (m *MsgCreatePrivatePlanResponse) Size() (n int)

func (*MsgCreatePrivatePlanResponse) String

func (*MsgCreatePrivatePlanResponse) Unmarshal

func (m *MsgCreatePrivatePlanResponse) Unmarshal(dAtA []byte) error

func (*MsgCreatePrivatePlanResponse) XXX_DiscardUnknown

func (m *MsgCreatePrivatePlanResponse) XXX_DiscardUnknown()

func (*MsgCreatePrivatePlanResponse) XXX_Marshal

func (m *MsgCreatePrivatePlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreatePrivatePlanResponse) XXX_Merge

func (m *MsgCreatePrivatePlanResponse) XXX_Merge(src proto.Message)

func (*MsgCreatePrivatePlanResponse) XXX_Size

func (m *MsgCreatePrivatePlanResponse) XXX_Size() int

func (*MsgCreatePrivatePlanResponse) XXX_Unmarshal

func (m *MsgCreatePrivatePlanResponse) XXX_Unmarshal(b []byte) error

type MsgFarm

type MsgFarm struct {
	Farmer string     `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Coin   types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin"`
}

func NewMsgFarm

func NewMsgFarm(farmerAddr sdk.AccAddress, coin sdk.Coin) *MsgFarm

NewMsgFarm creates a new MsgFarm.

func (*MsgFarm) Descriptor

func (*MsgFarm) Descriptor() ([]byte, []int)

func (MsgFarm) GetFarmerAddress

func (msg MsgFarm) GetFarmerAddress() sdk.AccAddress

func (MsgFarm) GetSignBytes

func (msg MsgFarm) GetSignBytes() []byte

func (MsgFarm) GetSigners

func (msg MsgFarm) GetSigners() []sdk.AccAddress

func (*MsgFarm) Marshal

func (m *MsgFarm) Marshal() (dAtA []byte, err error)

func (*MsgFarm) MarshalTo

func (m *MsgFarm) MarshalTo(dAtA []byte) (int, error)

func (*MsgFarm) MarshalToSizedBuffer

func (m *MsgFarm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFarm) ProtoMessage

func (*MsgFarm) ProtoMessage()

func (*MsgFarm) Reset

func (m *MsgFarm) Reset()

func (MsgFarm) Route

func (msg MsgFarm) Route() string

func (*MsgFarm) Size

func (m *MsgFarm) Size() (n int)

func (*MsgFarm) String

func (m *MsgFarm) String() string

func (MsgFarm) Type

func (msg MsgFarm) Type() string

func (*MsgFarm) Unmarshal

func (m *MsgFarm) Unmarshal(dAtA []byte) error

func (MsgFarm) ValidateBasic

func (msg MsgFarm) ValidateBasic() error

func (*MsgFarm) XXX_DiscardUnknown

func (m *MsgFarm) XXX_DiscardUnknown()

func (*MsgFarm) XXX_Marshal

func (m *MsgFarm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFarm) XXX_Merge

func (m *MsgFarm) XXX_Merge(src proto.Message)

func (*MsgFarm) XXX_Size

func (m *MsgFarm) XXX_Size() int

func (*MsgFarm) XXX_Unmarshal

func (m *MsgFarm) XXX_Unmarshal(b []byte) error

type MsgFarmResponse

type MsgFarmResponse struct {
	WithdrawnRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 153-byte string literal not displayed */
}

func (*MsgFarmResponse) Descriptor

func (*MsgFarmResponse) Descriptor() ([]byte, []int)

func (*MsgFarmResponse) Marshal

func (m *MsgFarmResponse) Marshal() (dAtA []byte, err error)

func (*MsgFarmResponse) MarshalTo

func (m *MsgFarmResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgFarmResponse) MarshalToSizedBuffer

func (m *MsgFarmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFarmResponse) ProtoMessage

func (*MsgFarmResponse) ProtoMessage()

func (*MsgFarmResponse) Reset

func (m *MsgFarmResponse) Reset()

func (*MsgFarmResponse) Size

func (m *MsgFarmResponse) Size() (n int)

func (*MsgFarmResponse) String

func (m *MsgFarmResponse) String() string

func (*MsgFarmResponse) Unmarshal

func (m *MsgFarmResponse) Unmarshal(dAtA []byte) error

func (*MsgFarmResponse) XXX_DiscardUnknown

func (m *MsgFarmResponse) XXX_DiscardUnknown()

func (*MsgFarmResponse) XXX_Marshal

func (m *MsgFarmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFarmResponse) XXX_Merge

func (m *MsgFarmResponse) XXX_Merge(src proto.Message)

func (*MsgFarmResponse) XXX_Size

func (m *MsgFarmResponse) XXX_Size() int

func (*MsgFarmResponse) XXX_Unmarshal

func (m *MsgFarmResponse) XXX_Unmarshal(b []byte) error

type MsgHarvest

type MsgHarvest struct {
	Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Denom  string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgHarvest

func NewMsgHarvest(farmerAddr sdk.AccAddress, denom string) *MsgHarvest

NewMsgHarvest creates a new MsgHarvest.

func (*MsgHarvest) Descriptor

func (*MsgHarvest) Descriptor() ([]byte, []int)

func (MsgHarvest) GetFarmerAddress

func (msg MsgHarvest) GetFarmerAddress() sdk.AccAddress

func (MsgHarvest) GetSignBytes

func (msg MsgHarvest) GetSignBytes() []byte

func (MsgHarvest) GetSigners

func (msg MsgHarvest) GetSigners() []sdk.AccAddress

func (*MsgHarvest) Marshal

func (m *MsgHarvest) Marshal() (dAtA []byte, err error)

func (*MsgHarvest) MarshalTo

func (m *MsgHarvest) MarshalTo(dAtA []byte) (int, error)

func (*MsgHarvest) MarshalToSizedBuffer

func (m *MsgHarvest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgHarvest) ProtoMessage

func (*MsgHarvest) ProtoMessage()

func (*MsgHarvest) Reset

func (m *MsgHarvest) Reset()

func (MsgHarvest) Route

func (msg MsgHarvest) Route() string

func (*MsgHarvest) Size

func (m *MsgHarvest) Size() (n int)

func (*MsgHarvest) String

func (m *MsgHarvest) String() string

func (MsgHarvest) Type

func (msg MsgHarvest) Type() string

func (*MsgHarvest) Unmarshal

func (m *MsgHarvest) Unmarshal(dAtA []byte) error

func (MsgHarvest) ValidateBasic

func (msg MsgHarvest) ValidateBasic() error

func (*MsgHarvest) XXX_DiscardUnknown

func (m *MsgHarvest) XXX_DiscardUnknown()

func (*MsgHarvest) XXX_Marshal

func (m *MsgHarvest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgHarvest) XXX_Merge

func (m *MsgHarvest) XXX_Merge(src proto.Message)

func (*MsgHarvest) XXX_Size

func (m *MsgHarvest) XXX_Size() int

func (*MsgHarvest) XXX_Unmarshal

func (m *MsgHarvest) XXX_Unmarshal(b []byte) error

type MsgHarvestResponse

type MsgHarvestResponse struct {
	WithdrawnRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 153-byte string literal not displayed */
}

func (*MsgHarvestResponse) Descriptor

func (*MsgHarvestResponse) Descriptor() ([]byte, []int)

func (*MsgHarvestResponse) Marshal

func (m *MsgHarvestResponse) Marshal() (dAtA []byte, err error)

func (*MsgHarvestResponse) MarshalTo

func (m *MsgHarvestResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgHarvestResponse) MarshalToSizedBuffer

func (m *MsgHarvestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgHarvestResponse) ProtoMessage

func (*MsgHarvestResponse) ProtoMessage()

func (*MsgHarvestResponse) Reset

func (m *MsgHarvestResponse) Reset()

func (*MsgHarvestResponse) Size

func (m *MsgHarvestResponse) Size() (n int)

func (*MsgHarvestResponse) String

func (m *MsgHarvestResponse) String() string

func (*MsgHarvestResponse) Unmarshal

func (m *MsgHarvestResponse) Unmarshal(dAtA []byte) error

func (*MsgHarvestResponse) XXX_DiscardUnknown

func (m *MsgHarvestResponse) XXX_DiscardUnknown()

func (*MsgHarvestResponse) XXX_Marshal

func (m *MsgHarvestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgHarvestResponse) XXX_Merge

func (m *MsgHarvestResponse) XXX_Merge(src proto.Message)

func (*MsgHarvestResponse) XXX_Size

func (m *MsgHarvestResponse) XXX_Size() int

func (*MsgHarvestResponse) XXX_Unmarshal

func (m *MsgHarvestResponse) XXX_Unmarshal(b []byte) error

type MsgServer

MsgServer is the server API for Msg service.

type MsgUnfarm

type MsgUnfarm struct {
	Farmer string     `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Coin   types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin"`
}

func NewMsgUnfarm

func NewMsgUnfarm(farmerAddr sdk.AccAddress, coin sdk.Coin) *MsgUnfarm

NewMsgUnfarm creates a new MsgUnfarm.

func (*MsgUnfarm) Descriptor

func (*MsgUnfarm) Descriptor() ([]byte, []int)

func (MsgUnfarm) GetFarmerAddress

func (msg MsgUnfarm) GetFarmerAddress() sdk.AccAddress

func (MsgUnfarm) GetSignBytes

func (msg MsgUnfarm) GetSignBytes() []byte

func (MsgUnfarm) GetSigners

func (msg MsgUnfarm) GetSigners() []sdk.AccAddress

func (*MsgUnfarm) Marshal

func (m *MsgUnfarm) Marshal() (dAtA []byte, err error)

func (*MsgUnfarm) MarshalTo

func (m *MsgUnfarm) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnfarm) MarshalToSizedBuffer

func (m *MsgUnfarm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnfarm) ProtoMessage

func (*MsgUnfarm) ProtoMessage()

func (*MsgUnfarm) Reset

func (m *MsgUnfarm) Reset()

func (MsgUnfarm) Route

func (msg MsgUnfarm) Route() string

func (*MsgUnfarm) Size

func (m *MsgUnfarm) Size() (n int)

func (*MsgUnfarm) String

func (m *MsgUnfarm) String() string

func (MsgUnfarm) Type

func (msg MsgUnfarm) Type() string

func (*MsgUnfarm) Unmarshal

func (m *MsgUnfarm) Unmarshal(dAtA []byte) error

func (MsgUnfarm) ValidateBasic

func (msg MsgUnfarm) ValidateBasic() error

func (*MsgUnfarm) XXX_DiscardUnknown

func (m *MsgUnfarm) XXX_DiscardUnknown()

func (*MsgUnfarm) XXX_Marshal

func (m *MsgUnfarm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUnfarm) XXX_Merge

func (m *MsgUnfarm) XXX_Merge(src proto.Message)

func (*MsgUnfarm) XXX_Size

func (m *MsgUnfarm) XXX_Size() int

func (*MsgUnfarm) XXX_Unmarshal

func (m *MsgUnfarm) XXX_Unmarshal(b []byte) error

type MsgUnfarmResponse

type MsgUnfarmResponse struct {
	WithdrawnRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 153-byte string literal not displayed */
}

func (*MsgUnfarmResponse) Descriptor

func (*MsgUnfarmResponse) Descriptor() ([]byte, []int)

func (*MsgUnfarmResponse) Marshal

func (m *MsgUnfarmResponse) Marshal() (dAtA []byte, err error)

func (*MsgUnfarmResponse) MarshalTo

func (m *MsgUnfarmResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnfarmResponse) MarshalToSizedBuffer

func (m *MsgUnfarmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnfarmResponse) ProtoMessage

func (*MsgUnfarmResponse) ProtoMessage()

func (*MsgUnfarmResponse) Reset

func (m *MsgUnfarmResponse) Reset()

func (*MsgUnfarmResponse) Size

func (m *MsgUnfarmResponse) Size() (n int)

func (*MsgUnfarmResponse) String

func (m *MsgUnfarmResponse) String() string

func (*MsgUnfarmResponse) Unmarshal

func (m *MsgUnfarmResponse) Unmarshal(dAtA []byte) error

func (*MsgUnfarmResponse) XXX_DiscardUnknown

func (m *MsgUnfarmResponse) XXX_DiscardUnknown()

func (*MsgUnfarmResponse) XXX_Marshal

func (m *MsgUnfarmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUnfarmResponse) XXX_Merge

func (m *MsgUnfarmResponse) XXX_Merge(src proto.Message)

func (*MsgUnfarmResponse) XXX_Size

func (m *MsgUnfarmResponse) XXX_Size() int

func (*MsgUnfarmResponse) XXX_Unmarshal

func (m *MsgUnfarmResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	PrivatePlanCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 175-byte string literal not displayed */
	FeeCollector           string                                   `protobuf:"bytes,2,opt,name=fee_collector,json=feeCollector,proto3" json:"fee_collector,omitempty"`
	MaxNumPrivatePlans     uint32                                   `protobuf:"varint,3,opt,name=max_num_private_plans,json=maxNumPrivatePlans,proto3" json:"max_num_private_plans,omitempty"`
	MaxBlockDuration       time.Duration                            `protobuf:"bytes,4,opt,name=max_block_duration,json=maxBlockDuration,proto3,stdduration" json:"max_block_duration"`
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default params for the module.

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs

ParamSetPairs implements ParamSet.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (params Params) Validate() error

Validate validates Params.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type Plan

type Plan struct {
	Id                 uint64             `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Description        string             `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	FarmingPoolAddress string             `protobuf:"bytes,3,opt,name=farming_pool_address,json=farmingPoolAddress,proto3" json:"farming_pool_address,omitempty"`
	TerminationAddress string             `protobuf:"bytes,4,opt,name=termination_address,json=terminationAddress,proto3" json:"termination_address,omitempty"`
	RewardAllocations  []RewardAllocation `protobuf:"bytes,5,rep,name=reward_allocations,json=rewardAllocations,proto3" json:"reward_allocations"`
	StartTime          time.Time          `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	EndTime            time.Time          `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
	IsPrivate          bool               `protobuf:"varint,8,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"`
	IsTerminated       bool               `protobuf:"varint,9,opt,name=is_terminated,json=isTerminated,proto3" json:"is_terminated,omitempty"`
}

func NewPlan

func NewPlan(
	id uint64, description string, farmingPoolAddr, termAddr sdk.AccAddress,
	rewardAllocs []RewardAllocation, startTime, endTime time.Time,
	isPrivate bool) Plan

NewPlan creates a new Plan.

func (*Plan) Descriptor

func (*Plan) Descriptor() ([]byte, []int)

func (Plan) GetFarmingPoolAddress

func (plan Plan) GetFarmingPoolAddress() sdk.AccAddress

func (Plan) GetTerminationAddress

func (plan Plan) GetTerminationAddress() sdk.AccAddress

func (Plan) IsActiveAt

func (plan Plan) IsActiveAt(t time.Time) bool

IsActiveAt returns whether the plan is active(being able to distribute rewards) at given time t.

func (*Plan) Marshal

func (m *Plan) Marshal() (dAtA []byte, err error)

func (*Plan) MarshalTo

func (m *Plan) MarshalTo(dAtA []byte) (int, error)

func (*Plan) MarshalToSizedBuffer

func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Plan) ProtoMessage

func (*Plan) ProtoMessage()

func (*Plan) Reset

func (m *Plan) Reset()

func (*Plan) Size

func (m *Plan) Size() (n int)

func (*Plan) String

func (m *Plan) String() string

func (*Plan) Unmarshal

func (m *Plan) Unmarshal(dAtA []byte) error

func (Plan) Validate

func (plan Plan) Validate() error

func (*Plan) XXX_DiscardUnknown

func (m *Plan) XXX_DiscardUnknown()

func (*Plan) XXX_Marshal

func (m *Plan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Plan) XXX_Merge

func (m *Plan) XXX_Merge(src proto.Message)

func (*Plan) XXX_Size

func (m *Plan) XXX_Size() int

func (*Plan) XXX_Unmarshal

func (m *Plan) XXX_Unmarshal(b []byte) error

type Position

type Position struct {
	Farmer              string                                 `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Denom               string                                 `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	FarmingAmount       github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
	PreviousPeriod      uint64                                 `protobuf:"varint,4,opt,name=previous_period,json=previousPeriod,proto3" json:"previous_period,omitempty"`
	StartingBlockHeight int64                                  `protobuf:"varint,5,opt,name=starting_block_height,json=startingBlockHeight,proto3" json:"starting_block_height,omitempty"`
}

func (*Position) Descriptor

func (*Position) Descriptor() ([]byte, []int)

func (*Position) Marshal

func (m *Position) Marshal() (dAtA []byte, err error)

func (*Position) MarshalTo

func (m *Position) MarshalTo(dAtA []byte) (int, error)

func (*Position) MarshalToSizedBuffer

func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) Size

func (m *Position) Size() (n int)

func (*Position) String

func (m *Position) String() string

func (*Position) Unmarshal

func (m *Position) Unmarshal(dAtA []byte) error

func (*Position) XXX_DiscardUnknown

func (m *Position) XXX_DiscardUnknown()

func (*Position) XXX_Marshal

func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Position) XXX_Merge

func (m *Position) XXX_Merge(src proto.Message)

func (*Position) XXX_Size

func (m *Position) XXX_Size() int

func (*Position) XXX_Unmarshal

func (m *Position) XXX_Unmarshal(b []byte) error

type QueryClient

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 QueryFarmRequest

type QueryFarmRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryFarmRequest) Descriptor

func (*QueryFarmRequest) Descriptor() ([]byte, []int)

func (*QueryFarmRequest) GetDenom

func (m *QueryFarmRequest) GetDenom() string

func (*QueryFarmRequest) Marshal

func (m *QueryFarmRequest) Marshal() (dAtA []byte, err error)

func (*QueryFarmRequest) MarshalTo

func (m *QueryFarmRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryFarmRequest) MarshalToSizedBuffer

func (m *QueryFarmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFarmRequest) ProtoMessage

func (*QueryFarmRequest) ProtoMessage()

func (*QueryFarmRequest) Reset

func (m *QueryFarmRequest) Reset()

func (*QueryFarmRequest) Size

func (m *QueryFarmRequest) Size() (n int)

func (*QueryFarmRequest) String

func (m *QueryFarmRequest) String() string

func (*QueryFarmRequest) Unmarshal

func (m *QueryFarmRequest) Unmarshal(dAtA []byte) error

func (*QueryFarmRequest) XXX_DiscardUnknown

func (m *QueryFarmRequest) XXX_DiscardUnknown()

func (*QueryFarmRequest) XXX_Marshal

func (m *QueryFarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFarmRequest) XXX_Merge

func (m *QueryFarmRequest) XXX_Merge(src proto.Message)

func (*QueryFarmRequest) XXX_Size

func (m *QueryFarmRequest) XXX_Size() int

func (*QueryFarmRequest) XXX_Unmarshal

func (m *QueryFarmRequest) XXX_Unmarshal(b []byte) error

type QueryFarmResponse

type QueryFarmResponse struct {
	Farm Farm `protobuf:"bytes,1,opt,name=farm,proto3" json:"farm"`
}

func (*QueryFarmResponse) Descriptor

func (*QueryFarmResponse) Descriptor() ([]byte, []int)

func (*QueryFarmResponse) GetFarm

func (m *QueryFarmResponse) GetFarm() Farm

func (*QueryFarmResponse) Marshal

func (m *QueryFarmResponse) Marshal() (dAtA []byte, err error)

func (*QueryFarmResponse) MarshalTo

func (m *QueryFarmResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFarmResponse) MarshalToSizedBuffer

func (m *QueryFarmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFarmResponse) ProtoMessage

func (*QueryFarmResponse) ProtoMessage()

func (*QueryFarmResponse) Reset

func (m *QueryFarmResponse) Reset()

func (*QueryFarmResponse) Size

func (m *QueryFarmResponse) Size() (n int)

func (*QueryFarmResponse) String

func (m *QueryFarmResponse) String() string

func (*QueryFarmResponse) Unmarshal

func (m *QueryFarmResponse) Unmarshal(dAtA []byte) error

func (*QueryFarmResponse) XXX_DiscardUnknown

func (m *QueryFarmResponse) XXX_DiscardUnknown()

func (*QueryFarmResponse) XXX_Marshal

func (m *QueryFarmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFarmResponse) XXX_Merge

func (m *QueryFarmResponse) XXX_Merge(src proto.Message)

func (*QueryFarmResponse) XXX_Size

func (m *QueryFarmResponse) XXX_Size() int

func (*QueryFarmResponse) XXX_Unmarshal

func (m *QueryFarmResponse) XXX_Unmarshal(b []byte) error

type QueryHistoricalRewardsRequest

type QueryHistoricalRewardsRequest struct {
	Denom      string             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryHistoricalRewardsRequest) Descriptor

func (*QueryHistoricalRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryHistoricalRewardsRequest) GetDenom

func (m *QueryHistoricalRewardsRequest) GetDenom() string

func (*QueryHistoricalRewardsRequest) GetPagination

func (m *QueryHistoricalRewardsRequest) GetPagination() *query.PageRequest

func (*QueryHistoricalRewardsRequest) Marshal

func (m *QueryHistoricalRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryHistoricalRewardsRequest) MarshalTo

func (m *QueryHistoricalRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryHistoricalRewardsRequest) MarshalToSizedBuffer

func (m *QueryHistoricalRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryHistoricalRewardsRequest) ProtoMessage

func (*QueryHistoricalRewardsRequest) ProtoMessage()

func (*QueryHistoricalRewardsRequest) Reset

func (m *QueryHistoricalRewardsRequest) Reset()

func (*QueryHistoricalRewardsRequest) Size

func (m *QueryHistoricalRewardsRequest) Size() (n int)

func (*QueryHistoricalRewardsRequest) String

func (*QueryHistoricalRewardsRequest) Unmarshal

func (m *QueryHistoricalRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryHistoricalRewardsRequest) XXX_DiscardUnknown

func (m *QueryHistoricalRewardsRequest) XXX_DiscardUnknown()

func (*QueryHistoricalRewardsRequest) XXX_Marshal

func (m *QueryHistoricalRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryHistoricalRewardsRequest) XXX_Merge

func (m *QueryHistoricalRewardsRequest) XXX_Merge(src proto.Message)

func (*QueryHistoricalRewardsRequest) XXX_Size

func (m *QueryHistoricalRewardsRequest) XXX_Size() int

func (*QueryHistoricalRewardsRequest) XXX_Unmarshal

func (m *QueryHistoricalRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryHistoricalRewardsResponse

type QueryHistoricalRewardsResponse struct {
	HistoricalRewards []HistoricalRewardsResponse `protobuf:"bytes,1,rep,name=historical_rewards,json=historicalRewards,proto3" json:"historical_rewards"`
	Pagination        *query.PageResponse         `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryHistoricalRewardsResponse) Descriptor

func (*QueryHistoricalRewardsResponse) Descriptor() ([]byte, []int)

func (*QueryHistoricalRewardsResponse) GetHistoricalRewards

func (m *QueryHistoricalRewardsResponse) GetHistoricalRewards() []HistoricalRewardsResponse

func (*QueryHistoricalRewardsResponse) GetPagination

func (*QueryHistoricalRewardsResponse) Marshal

func (m *QueryHistoricalRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryHistoricalRewardsResponse) MarshalTo

func (m *QueryHistoricalRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryHistoricalRewardsResponse) MarshalToSizedBuffer

func (m *QueryHistoricalRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryHistoricalRewardsResponse) ProtoMessage

func (*QueryHistoricalRewardsResponse) ProtoMessage()

func (*QueryHistoricalRewardsResponse) Reset

func (m *QueryHistoricalRewardsResponse) Reset()

func (*QueryHistoricalRewardsResponse) Size

func (m *QueryHistoricalRewardsResponse) Size() (n int)

func (*QueryHistoricalRewardsResponse) String

func (*QueryHistoricalRewardsResponse) Unmarshal

func (m *QueryHistoricalRewardsResponse) Unmarshal(dAtA []byte) error

func (*QueryHistoricalRewardsResponse) XXX_DiscardUnknown

func (m *QueryHistoricalRewardsResponse) XXX_DiscardUnknown()

func (*QueryHistoricalRewardsResponse) XXX_Marshal

func (m *QueryHistoricalRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryHistoricalRewardsResponse) XXX_Merge

func (m *QueryHistoricalRewardsResponse) XXX_Merge(src proto.Message)

func (*QueryHistoricalRewardsResponse) XXX_Size

func (m *QueryHistoricalRewardsResponse) XXX_Size() int

func (*QueryHistoricalRewardsResponse) XXX_Unmarshal

func (m *QueryHistoricalRewardsResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

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"`
}

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"`
}

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) MarshalTo

func (m *QueryPlanRequest) MarshalTo(dAtA []byte) (int, 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 Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan"`
}

func (*QueryPlanResponse) Descriptor

func (*QueryPlanResponse) Descriptor() ([]byte, []int)

func (*QueryPlanResponse) GetPlan

func (m *QueryPlanResponse) GetPlan() Plan

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 QueryPlansRequest

type QueryPlansRequest struct {
	FarmingPoolAddress string             `protobuf:"bytes,1,opt,name=farming_pool_address,json=farmingPoolAddress,proto3" json:"farming_pool_address,omitempty"`
	TerminationAddress string             `protobuf:"bytes,2,opt,name=termination_address,json=terminationAddress,proto3" json:"termination_address,omitempty"`
	IsPrivate          string             `protobuf:"bytes,3,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"`
	IsTerminated       string             `protobuf:"bytes,4,opt,name=is_terminated,json=isTerminated,proto3" json:"is_terminated,omitempty"`
	Pagination         *query.PageRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryPlansRequest) Descriptor

func (*QueryPlansRequest) Descriptor() ([]byte, []int)

func (*QueryPlansRequest) GetFarmingPoolAddress

func (m *QueryPlansRequest) GetFarmingPoolAddress() string

func (*QueryPlansRequest) GetIsPrivate

func (m *QueryPlansRequest) GetIsPrivate() string

func (*QueryPlansRequest) GetIsTerminated

func (m *QueryPlansRequest) GetIsTerminated() string

func (*QueryPlansRequest) GetPagination

func (m *QueryPlansRequest) GetPagination() *query.PageRequest

func (*QueryPlansRequest) GetTerminationAddress

func (m *QueryPlansRequest) GetTerminationAddress() 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      []Plan              `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryPlansResponse) Descriptor

func (*QueryPlansResponse) Descriptor() ([]byte, []int)

func (*QueryPlansResponse) GetPagination

func (m *QueryPlansResponse) GetPagination() *query.PageResponse

func (*QueryPlansResponse) GetPlans

func (m *QueryPlansResponse) GetPlans() []Plan

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 QueryPositionRequest

type QueryPositionRequest struct {
	Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Denom  string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryPositionRequest) Descriptor

func (*QueryPositionRequest) Descriptor() ([]byte, []int)

func (*QueryPositionRequest) GetDenom

func (m *QueryPositionRequest) GetDenom() string

func (*QueryPositionRequest) GetFarmer

func (m *QueryPositionRequest) GetFarmer() string

func (*QueryPositionRequest) Marshal

func (m *QueryPositionRequest) Marshal() (dAtA []byte, err error)

func (*QueryPositionRequest) MarshalTo

func (m *QueryPositionRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPositionRequest) MarshalToSizedBuffer

func (m *QueryPositionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPositionRequest) ProtoMessage

func (*QueryPositionRequest) ProtoMessage()

func (*QueryPositionRequest) Reset

func (m *QueryPositionRequest) Reset()

func (*QueryPositionRequest) Size

func (m *QueryPositionRequest) Size() (n int)

func (*QueryPositionRequest) String

func (m *QueryPositionRequest) String() string

func (*QueryPositionRequest) Unmarshal

func (m *QueryPositionRequest) Unmarshal(dAtA []byte) error

func (*QueryPositionRequest) XXX_DiscardUnknown

func (m *QueryPositionRequest) XXX_DiscardUnknown()

func (*QueryPositionRequest) XXX_Marshal

func (m *QueryPositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPositionRequest) XXX_Merge

func (m *QueryPositionRequest) XXX_Merge(src proto.Message)

func (*QueryPositionRequest) XXX_Size

func (m *QueryPositionRequest) XXX_Size() int

func (*QueryPositionRequest) XXX_Unmarshal

func (m *QueryPositionRequest) XXX_Unmarshal(b []byte) error

type QueryPositionResponse

type QueryPositionResponse struct {
	Position Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position"`
}

func (*QueryPositionResponse) Descriptor

func (*QueryPositionResponse) Descriptor() ([]byte, []int)

func (*QueryPositionResponse) GetPosition

func (m *QueryPositionResponse) GetPosition() Position

func (*QueryPositionResponse) Marshal

func (m *QueryPositionResponse) Marshal() (dAtA []byte, err error)

func (*QueryPositionResponse) MarshalTo

func (m *QueryPositionResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPositionResponse) MarshalToSizedBuffer

func (m *QueryPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPositionResponse) ProtoMessage

func (*QueryPositionResponse) ProtoMessage()

func (*QueryPositionResponse) Reset

func (m *QueryPositionResponse) Reset()

func (*QueryPositionResponse) Size

func (m *QueryPositionResponse) Size() (n int)

func (*QueryPositionResponse) String

func (m *QueryPositionResponse) String() string

func (*QueryPositionResponse) Unmarshal

func (m *QueryPositionResponse) Unmarshal(dAtA []byte) error

func (*QueryPositionResponse) XXX_DiscardUnknown

func (m *QueryPositionResponse) XXX_DiscardUnknown()

func (*QueryPositionResponse) XXX_Marshal

func (m *QueryPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPositionResponse) XXX_Merge

func (m *QueryPositionResponse) XXX_Merge(src proto.Message)

func (*QueryPositionResponse) XXX_Size

func (m *QueryPositionResponse) XXX_Size() int

func (*QueryPositionResponse) XXX_Unmarshal

func (m *QueryPositionResponse) XXX_Unmarshal(b []byte) error

type QueryPositionsRequest

type QueryPositionsRequest 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"`
}

func (*QueryPositionsRequest) Descriptor

func (*QueryPositionsRequest) Descriptor() ([]byte, []int)

func (*QueryPositionsRequest) GetFarmer

func (m *QueryPositionsRequest) GetFarmer() string

func (*QueryPositionsRequest) GetPagination

func (m *QueryPositionsRequest) GetPagination() *query.PageRequest

func (*QueryPositionsRequest) Marshal

func (m *QueryPositionsRequest) Marshal() (dAtA []byte, err error)

func (*QueryPositionsRequest) MarshalTo

func (m *QueryPositionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPositionsRequest) MarshalToSizedBuffer

func (m *QueryPositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPositionsRequest) ProtoMessage

func (*QueryPositionsRequest) ProtoMessage()

func (*QueryPositionsRequest) Reset

func (m *QueryPositionsRequest) Reset()

func (*QueryPositionsRequest) Size

func (m *QueryPositionsRequest) Size() (n int)

func (*QueryPositionsRequest) String

func (m *QueryPositionsRequest) String() string

func (*QueryPositionsRequest) Unmarshal

func (m *QueryPositionsRequest) Unmarshal(dAtA []byte) error

func (*QueryPositionsRequest) XXX_DiscardUnknown

func (m *QueryPositionsRequest) XXX_DiscardUnknown()

func (*QueryPositionsRequest) XXX_Marshal

func (m *QueryPositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPositionsRequest) XXX_Merge

func (m *QueryPositionsRequest) XXX_Merge(src proto.Message)

func (*QueryPositionsRequest) XXX_Size

func (m *QueryPositionsRequest) XXX_Size() int

func (*QueryPositionsRequest) XXX_Unmarshal

func (m *QueryPositionsRequest) XXX_Unmarshal(b []byte) error

type QueryPositionsResponse

type QueryPositionsResponse struct {
	Positions  []Position          `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryPositionsResponse) Descriptor

func (*QueryPositionsResponse) Descriptor() ([]byte, []int)

func (*QueryPositionsResponse) GetPagination

func (m *QueryPositionsResponse) GetPagination() *query.PageResponse

func (*QueryPositionsResponse) GetPositions

func (m *QueryPositionsResponse) GetPositions() []Position

func (*QueryPositionsResponse) Marshal

func (m *QueryPositionsResponse) Marshal() (dAtA []byte, err error)

func (*QueryPositionsResponse) MarshalTo

func (m *QueryPositionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPositionsResponse) MarshalToSizedBuffer

func (m *QueryPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPositionsResponse) ProtoMessage

func (*QueryPositionsResponse) ProtoMessage()

func (*QueryPositionsResponse) Reset

func (m *QueryPositionsResponse) Reset()

func (*QueryPositionsResponse) Size

func (m *QueryPositionsResponse) Size() (n int)

func (*QueryPositionsResponse) String

func (m *QueryPositionsResponse) String() string

func (*QueryPositionsResponse) Unmarshal

func (m *QueryPositionsResponse) Unmarshal(dAtA []byte) error

func (*QueryPositionsResponse) XXX_DiscardUnknown

func (m *QueryPositionsResponse) XXX_DiscardUnknown()

func (*QueryPositionsResponse) XXX_Marshal

func (m *QueryPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPositionsResponse) XXX_Merge

func (m *QueryPositionsResponse) XXX_Merge(src proto.Message)

func (*QueryPositionsResponse) XXX_Size

func (m *QueryPositionsResponse) XXX_Size() int

func (*QueryPositionsResponse) XXX_Unmarshal

func (m *QueryPositionsResponse) XXX_Unmarshal(b []byte) error

type QueryRewardsRequest

type QueryRewardsRequest struct {
	Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	Denom  string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryRewardsRequest) Descriptor

func (*QueryRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryRewardsRequest) GetDenom

func (m *QueryRewardsRequest) GetDenom() string

func (*QueryRewardsRequest) GetFarmer

func (m *QueryRewardsRequest) GetFarmer() string

func (*QueryRewardsRequest) Marshal

func (m *QueryRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryRewardsRequest) MarshalTo

func (m *QueryRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryRewardsRequest) MarshalToSizedBuffer

func (m *QueryRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRewardsRequest) ProtoMessage

func (*QueryRewardsRequest) ProtoMessage()

func (*QueryRewardsRequest) Reset

func (m *QueryRewardsRequest) Reset()

func (*QueryRewardsRequest) Size

func (m *QueryRewardsRequest) Size() (n int)

func (*QueryRewardsRequest) String

func (m *QueryRewardsRequest) String() string

func (*QueryRewardsRequest) Unmarshal

func (m *QueryRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryRewardsRequest) XXX_DiscardUnknown

func (m *QueryRewardsRequest) XXX_DiscardUnknown()

func (*QueryRewardsRequest) XXX_Marshal

func (m *QueryRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRewardsRequest) XXX_Merge

func (m *QueryRewardsRequest) XXX_Merge(src proto.Message)

func (*QueryRewardsRequest) XXX_Size

func (m *QueryRewardsRequest) XXX_Size() int

func (*QueryRewardsRequest) XXX_Unmarshal

func (m *QueryRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryRewardsResponse

type QueryRewardsResponse struct {
	Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"`
}

func (*QueryRewardsResponse) Descriptor

func (*QueryRewardsResponse) Descriptor() ([]byte, []int)

func (*QueryRewardsResponse) GetRewards

func (*QueryRewardsResponse) Marshal

func (m *QueryRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryRewardsResponse) MarshalTo

func (m *QueryRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryRewardsResponse) MarshalToSizedBuffer

func (m *QueryRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRewardsResponse) ProtoMessage

func (*QueryRewardsResponse) ProtoMessage()

func (*QueryRewardsResponse) Reset

func (m *QueryRewardsResponse) Reset()

func (*QueryRewardsResponse) Size

func (m *QueryRewardsResponse) Size() (n int)

func (*QueryRewardsResponse) String

func (m *QueryRewardsResponse) String() string

func (*QueryRewardsResponse) Unmarshal

func (m *QueryRewardsResponse) Unmarshal(dAtA []byte) error

func (*QueryRewardsResponse) XXX_DiscardUnknown

func (m *QueryRewardsResponse) XXX_DiscardUnknown()

func (*QueryRewardsResponse) XXX_Marshal

func (m *QueryRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRewardsResponse) XXX_Merge

func (m *QueryRewardsResponse) XXX_Merge(src proto.Message)

func (*QueryRewardsResponse) XXX_Size

func (m *QueryRewardsResponse) XXX_Size() int

func (*QueryRewardsResponse) XXX_Unmarshal

func (m *QueryRewardsResponse) XXX_Unmarshal(b []byte) error

type QueryTotalRewardsRequest

type QueryTotalRewardsRequest struct {
	Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
}

func (*QueryTotalRewardsRequest) Descriptor

func (*QueryTotalRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryTotalRewardsRequest) GetFarmer

func (m *QueryTotalRewardsRequest) GetFarmer() string

func (*QueryTotalRewardsRequest) Marshal

func (m *QueryTotalRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryTotalRewardsRequest) MarshalTo

func (m *QueryTotalRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTotalRewardsRequest) MarshalToSizedBuffer

func (m *QueryTotalRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTotalRewardsRequest) ProtoMessage

func (*QueryTotalRewardsRequest) ProtoMessage()

func (*QueryTotalRewardsRequest) Reset

func (m *QueryTotalRewardsRequest) Reset()

func (*QueryTotalRewardsRequest) Size

func (m *QueryTotalRewardsRequest) Size() (n int)

func (*QueryTotalRewardsRequest) String

func (m *QueryTotalRewardsRequest) String() string

func (*QueryTotalRewardsRequest) Unmarshal

func (m *QueryTotalRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryTotalRewardsRequest) XXX_DiscardUnknown

func (m *QueryTotalRewardsRequest) XXX_DiscardUnknown()

func (*QueryTotalRewardsRequest) XXX_Marshal

func (m *QueryTotalRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTotalRewardsRequest) XXX_Merge

func (m *QueryTotalRewardsRequest) XXX_Merge(src proto.Message)

func (*QueryTotalRewardsRequest) XXX_Size

func (m *QueryTotalRewardsRequest) XXX_Size() int

func (*QueryTotalRewardsRequest) XXX_Unmarshal

func (m *QueryTotalRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryTotalRewardsResponse

type QueryTotalRewardsResponse struct {
	Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"`
}

func (*QueryTotalRewardsResponse) Descriptor

func (*QueryTotalRewardsResponse) Descriptor() ([]byte, []int)

func (*QueryTotalRewardsResponse) GetRewards

func (*QueryTotalRewardsResponse) Marshal

func (m *QueryTotalRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryTotalRewardsResponse) MarshalTo

func (m *QueryTotalRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTotalRewardsResponse) MarshalToSizedBuffer

func (m *QueryTotalRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTotalRewardsResponse) ProtoMessage

func (*QueryTotalRewardsResponse) ProtoMessage()

func (*QueryTotalRewardsResponse) Reset

func (m *QueryTotalRewardsResponse) Reset()

func (*QueryTotalRewardsResponse) Size

func (m *QueryTotalRewardsResponse) Size() (n int)

func (*QueryTotalRewardsResponse) String

func (m *QueryTotalRewardsResponse) String() string

func (*QueryTotalRewardsResponse) Unmarshal

func (m *QueryTotalRewardsResponse) Unmarshal(dAtA []byte) error

func (*QueryTotalRewardsResponse) XXX_DiscardUnknown

func (m *QueryTotalRewardsResponse) XXX_DiscardUnknown()

func (*QueryTotalRewardsResponse) XXX_Marshal

func (m *QueryTotalRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTotalRewardsResponse) XXX_Merge

func (m *QueryTotalRewardsResponse) XXX_Merge(src proto.Message)

func (*QueryTotalRewardsResponse) XXX_Size

func (m *QueryTotalRewardsResponse) XXX_Size() int

func (*QueryTotalRewardsResponse) XXX_Unmarshal

func (m *QueryTotalRewardsResponse) XXX_Unmarshal(b []byte) error

type RewardAllocation

type RewardAllocation struct {
	Denom         string                                   `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	PairId        uint64                                   `protobuf:"varint,2,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"`
	RewardsPerDay github_com_cosmos_cosmos_sdk_types.Coins `` /* 146-byte string literal not displayed */
}

func NewDenomRewardAllocation

func NewDenomRewardAllocation(denom string, rewardsPerDay sdk.Coins) RewardAllocation

NewDenomRewardAllocation creates a new RewardAllocation for a target denom.

func NewPairRewardAllocation

func NewPairRewardAllocation(pairId uint64, rewardsPerDay sdk.Coins) RewardAllocation

NewPairRewardAllocation creates a new RewardAllocation for a pair.

func (*RewardAllocation) Descriptor

func (*RewardAllocation) Descriptor() ([]byte, []int)

func (*RewardAllocation) Marshal

func (m *RewardAllocation) Marshal() (dAtA []byte, err error)

func (*RewardAllocation) MarshalTo

func (m *RewardAllocation) MarshalTo(dAtA []byte) (int, error)

func (*RewardAllocation) MarshalToSizedBuffer

func (m *RewardAllocation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RewardAllocation) ProtoMessage

func (*RewardAllocation) ProtoMessage()

func (*RewardAllocation) Reset

func (m *RewardAllocation) Reset()

func (*RewardAllocation) Size

func (m *RewardAllocation) Size() (n int)

func (*RewardAllocation) String

func (m *RewardAllocation) String() string

func (*RewardAllocation) Unmarshal

func (m *RewardAllocation) Unmarshal(dAtA []byte) error

func (*RewardAllocation) XXX_DiscardUnknown

func (m *RewardAllocation) XXX_DiscardUnknown()

func (*RewardAllocation) XXX_Marshal

func (m *RewardAllocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RewardAllocation) XXX_Merge

func (m *RewardAllocation) XXX_Merge(src proto.Message)

func (*RewardAllocation) XXX_Size

func (m *RewardAllocation) XXX_Size() int

func (*RewardAllocation) XXX_Unmarshal

func (m *RewardAllocation) XXX_Unmarshal(b []byte) error

type TerminatePlanRequest

type TerminatePlanRequest struct {
	PlanId uint64 `protobuf:"varint,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
}

func NewTerminatePlanRequest

func NewTerminatePlanRequest(planId uint64) TerminatePlanRequest

func (*TerminatePlanRequest) Descriptor

func (*TerminatePlanRequest) Descriptor() ([]byte, []int)

func (*TerminatePlanRequest) Marshal

func (m *TerminatePlanRequest) Marshal() (dAtA []byte, err error)

func (*TerminatePlanRequest) MarshalTo

func (m *TerminatePlanRequest) MarshalTo(dAtA []byte) (int, error)

func (*TerminatePlanRequest) MarshalToSizedBuffer

func (m *TerminatePlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TerminatePlanRequest) ProtoMessage

func (*TerminatePlanRequest) ProtoMessage()

func (*TerminatePlanRequest) Reset

func (m *TerminatePlanRequest) Reset()

func (*TerminatePlanRequest) Size

func (m *TerminatePlanRequest) Size() (n int)

func (*TerminatePlanRequest) String

func (m *TerminatePlanRequest) String() string

func (*TerminatePlanRequest) Unmarshal

func (m *TerminatePlanRequest) Unmarshal(dAtA []byte) error

func (TerminatePlanRequest) Validate

func (req TerminatePlanRequest) Validate() error

func (*TerminatePlanRequest) XXX_DiscardUnknown

func (m *TerminatePlanRequest) XXX_DiscardUnknown()

func (*TerminatePlanRequest) XXX_Marshal

func (m *TerminatePlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TerminatePlanRequest) XXX_Merge

func (m *TerminatePlanRequest) XXX_Merge(src proto.Message)

func (*TerminatePlanRequest) XXX_Size

func (m *TerminatePlanRequest) XXX_Size() int

func (*TerminatePlanRequest) XXX_Unmarshal

func (m *TerminatePlanRequest) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreatePrivatePlan

func (*UnimplementedMsgServer) Farm

func (*UnimplementedMsgServer) Harvest

func (*UnimplementedMsgServer) Unfarm

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Farm

func (*UnimplementedQueryServer) HistoricalRewards

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Plan

func (*UnimplementedQueryServer) Plans

func (*UnimplementedQueryServer) Position

func (*UnimplementedQueryServer) Positions

func (*UnimplementedQueryServer) Rewards

func (*UnimplementedQueryServer) TotalRewards

Jump to

Keyboard shortcuts

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