farm

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_FarmPools_FullMethodName = "/irismod.farm.Query/FarmPools"
	Query_FarmPool_FullMethodName  = "/irismod.farm.Query/FarmPool"
	Query_Farmer_FullMethodName    = "/irismod.farm.Query/Farmer"
	Query_Params_FullMethodName    = "/irismod.farm.Query/Params"
)
View Source
const (
	Msg_CreatePool_FullMethodName                  = "/irismod.farm.Msg/CreatePool"
	Msg_CreatePoolWithCommunityPool_FullMethodName = "/irismod.farm.Msg/CreatePoolWithCommunityPool"
	Msg_DestroyPool_FullMethodName                 = "/irismod.farm.Msg/DestroyPool"
	Msg_AdjustPool_FullMethodName                  = "/irismod.farm.Msg/AdjustPool"
	Msg_Stake_FullMethodName                       = "/irismod.farm.Msg/Stake"
	Msg_Unstake_FullMethodName                     = "/irismod.farm.Msg/Unstake"
	Msg_Harvest_FullMethodName                     = "/irismod.farm.Msg/Harvest"
	Msg_UpdateParams_FullMethodName                = "/irismod.farm.Msg/UpdateParams"
)

Variables

View Source
var File_irismod_farm_farm_proto protoreflect.FileDescriptor
View Source
var File_irismod_farm_genesis_proto protoreflect.FileDescriptor
View Source
var File_irismod_farm_query_proto protoreflect.FileDescriptor
View Source
var File_irismod_farm_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "irismod.farm.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePool",
			Handler:    _Msg_CreatePool_Handler,
		},
		{
			MethodName: "CreatePoolWithCommunityPool",
			Handler:    _Msg_CreatePoolWithCommunityPool_Handler,
		},
		{
			MethodName: "DestroyPool",
			Handler:    _Msg_DestroyPool_Handler,
		},
		{
			MethodName: "AdjustPool",
			Handler:    _Msg_AdjustPool_Handler,
		},
		{
			MethodName: "Stake",
			Handler:    _Msg_Stake_Handler,
		},
		{
			MethodName: "Unstake",
			Handler:    _Msg_Unstake_Handler,
		},
		{
			MethodName: "Harvest",
			Handler:    _Msg_Harvest_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "irismod/farm/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "irismod.farm.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FarmPools",
			Handler:    _Query_FarmPools_Handler,
		},
		{
			MethodName: "FarmPool",
			Handler:    _Query_FarmPool_Handler,
		},
		{
			MethodName: "Farmer",
			Handler:    _Query_Farmer_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "irismod/farm/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type CommunityPoolCreateFarmProposal

type CommunityPoolCreateFarmProposal 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"`
	PoolDescription string          `protobuf:"bytes,3,opt,name=pool_description,json=poolDescription,proto3" json:"pool_description,omitempty"`
	LptDenom        string          `protobuf:"bytes,4,opt,name=lpt_denom,json=lptDenom,proto3" json:"lpt_denom,omitempty"`
	RewardPerBlock  []*v1beta1.Coin `protobuf:"bytes,5,rep,name=reward_per_block,json=rewardPerBlock,proto3" json:"reward_per_block,omitempty"`
	FundApplied     []*v1beta1.Coin `protobuf:"bytes,6,rep,name=fund_applied,json=fundApplied,proto3" json:"fund_applied,omitempty"`
	FundSelfBond    []*v1beta1.Coin `protobuf:"bytes,7,rep,name=fund_self_bond,json=fundSelfBond,proto3" json:"fund_self_bond,omitempty"`
	// contains filtered or unexported fields
}

CommunityPoolCreateFarmProposal is a gov Content type for creating a farm pool with community pool

func (*CommunityPoolCreateFarmProposal) Descriptor deprecated

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

Deprecated: Use CommunityPoolCreateFarmProposal.ProtoReflect.Descriptor instead.

func (*CommunityPoolCreateFarmProposal) GetDescription

func (x *CommunityPoolCreateFarmProposal) GetDescription() string

func (*CommunityPoolCreateFarmProposal) GetFundApplied

func (x *CommunityPoolCreateFarmProposal) GetFundApplied() []*v1beta1.Coin

func (*CommunityPoolCreateFarmProposal) GetFundSelfBond

func (x *CommunityPoolCreateFarmProposal) GetFundSelfBond() []*v1beta1.Coin

func (*CommunityPoolCreateFarmProposal) GetLptDenom

func (x *CommunityPoolCreateFarmProposal) GetLptDenom() string

func (*CommunityPoolCreateFarmProposal) GetPoolDescription

func (x *CommunityPoolCreateFarmProposal) GetPoolDescription() string

func (*CommunityPoolCreateFarmProposal) GetRewardPerBlock

func (x *CommunityPoolCreateFarmProposal) GetRewardPerBlock() []*v1beta1.Coin

func (*CommunityPoolCreateFarmProposal) GetTitle

func (*CommunityPoolCreateFarmProposal) ProtoMessage

func (*CommunityPoolCreateFarmProposal) ProtoMessage()

func (*CommunityPoolCreateFarmProposal) ProtoReflect

func (*CommunityPoolCreateFarmProposal) Reset

func (*CommunityPoolCreateFarmProposal) String

type EscrowInfo

type EscrowInfo struct {
	Proposer     string          `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"`
	FundApplied  []*v1beta1.Coin `protobuf:"bytes,2,rep,name=fund_applied,json=fundApplied,proto3" json:"fund_applied,omitempty"`
	FundSelfBond []*v1beta1.Coin `protobuf:"bytes,3,rep,name=fund_self_bond,json=fundSelfBond,proto3" json:"fund_self_bond,omitempty"`
	ProposalId   uint64          `protobuf:"varint,4,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

EscrowInfo create delegate information for farm pool proposals

func (*EscrowInfo) Descriptor deprecated

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

Deprecated: Use EscrowInfo.ProtoReflect.Descriptor instead.

func (*EscrowInfo) GetFundApplied

func (x *EscrowInfo) GetFundApplied() []*v1beta1.Coin

func (*EscrowInfo) GetFundSelfBond

func (x *EscrowInfo) GetFundSelfBond() []*v1beta1.Coin

func (*EscrowInfo) GetProposalId

func (x *EscrowInfo) GetProposalId() uint64

func (*EscrowInfo) GetProposer

func (x *EscrowInfo) GetProposer() string

func (*EscrowInfo) ProtoMessage

func (*EscrowInfo) ProtoMessage()

func (*EscrowInfo) ProtoReflect

func (x *EscrowInfo) ProtoReflect() protoreflect.Message

func (*EscrowInfo) Reset

func (x *EscrowInfo) Reset()

func (*EscrowInfo) String

func (x *EscrowInfo) String() string

type FarmInfo

type FarmInfo struct {
	PoolId     string          `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Address    string          `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Locked     string          `protobuf:"bytes,3,opt,name=locked,proto3" json:"locked,omitempty"`
	RewardDebt []*v1beta1.Coin `protobuf:"bytes,4,rep,name=reward_debt,json=rewardDebt,proto3" json:"reward_debt,omitempty"`
	// contains filtered or unexported fields
}

FarmInfo records the current information of the farm pool

func (*FarmInfo) Descriptor deprecated

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

Deprecated: Use FarmInfo.ProtoReflect.Descriptor instead.

func (*FarmInfo) GetAddress

func (x *FarmInfo) GetAddress() string

func (*FarmInfo) GetLocked

func (x *FarmInfo) GetLocked() string

func (*FarmInfo) GetPoolId

func (x *FarmInfo) GetPoolId() string

func (*FarmInfo) GetRewardDebt

func (x *FarmInfo) GetRewardDebt() []*v1beta1.Coin

func (*FarmInfo) ProtoMessage

func (*FarmInfo) ProtoMessage()

func (*FarmInfo) ProtoReflect

func (x *FarmInfo) ProtoReflect() protoreflect.Message

func (*FarmInfo) Reset

func (x *FarmInfo) Reset()

func (*FarmInfo) String

func (x *FarmInfo) String() string

type FarmPool

type FarmPool struct {
	Id                     string        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Creator                string        `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Description            string        `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	StartHeight            int64         `protobuf:"varint,4,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	EndHeight              int64         `protobuf:"varint,5,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"`
	LastHeightDistrRewards int64         `` /* 132-byte string literal not displayed */
	Editable               bool          `protobuf:"varint,7,opt,name=editable,proto3" json:"editable,omitempty"`
	TotalLptLocked         *v1beta1.Coin `protobuf:"bytes,8,opt,name=total_lpt_locked,json=totalLptLocked,proto3" json:"total_lpt_locked,omitempty"`
	Rules                  []*RewardRule `protobuf:"bytes,9,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

FarmPool defines the properties of farm pool

func (*FarmPool) Descriptor deprecated

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

Deprecated: Use FarmPool.ProtoReflect.Descriptor instead.

func (*FarmPool) GetCreator

func (x *FarmPool) GetCreator() string

func (*FarmPool) GetDescription

func (x *FarmPool) GetDescription() string

func (*FarmPool) GetEditable

func (x *FarmPool) GetEditable() bool

func (*FarmPool) GetEndHeight

func (x *FarmPool) GetEndHeight() int64

func (*FarmPool) GetId

func (x *FarmPool) GetId() string

func (*FarmPool) GetLastHeightDistrRewards

func (x *FarmPool) GetLastHeightDistrRewards() int64

func (*FarmPool) GetRules

func (x *FarmPool) GetRules() []*RewardRule

func (*FarmPool) GetStartHeight

func (x *FarmPool) GetStartHeight() int64

func (*FarmPool) GetTotalLptLocked

func (x *FarmPool) GetTotalLptLocked() *v1beta1.Coin

func (*FarmPool) ProtoMessage

func (*FarmPool) ProtoMessage()

func (*FarmPool) ProtoReflect

func (x *FarmPool) ProtoReflect() protoreflect.Message

func (*FarmPool) Reset

func (x *FarmPool) Reset()

func (*FarmPool) String

func (x *FarmPool) String() string

type FarmPoolEntry

type FarmPoolEntry struct {
	Id              string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Creator         string           `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Description     string           `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	StartHeight     int64            `protobuf:"varint,4,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	EndHeight       int64            `protobuf:"varint,5,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"`
	Editable        bool             `protobuf:"varint,6,opt,name=editable,proto3" json:"editable,omitempty"`
	Expired         bool             `protobuf:"varint,7,opt,name=expired,proto3" json:"expired,omitempty"`
	TotalLptLocked  *v1beta11.Coin   `protobuf:"bytes,8,opt,name=total_lpt_locked,json=totalLptLocked,proto3" json:"total_lpt_locked,omitempty"`
	TotalReward     []*v1beta11.Coin `protobuf:"bytes,9,rep,name=total_reward,json=totalReward,proto3" json:"total_reward,omitempty"`
	RemainingReward []*v1beta11.Coin `protobuf:"bytes,10,rep,name=remaining_reward,json=remainingReward,proto3" json:"remaining_reward,omitempty"`
	RewardPerBlock  []*v1beta11.Coin `protobuf:"bytes,11,rep,name=reward_per_block,json=rewardPerBlock,proto3" json:"reward_per_block,omitempty"`
	// contains filtered or unexported fields
}

FarmPoolEntry defines the properties of farm pool

func (*FarmPoolEntry) Descriptor deprecated

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

Deprecated: Use FarmPoolEntry.ProtoReflect.Descriptor instead.

func (*FarmPoolEntry) GetCreator

func (x *FarmPoolEntry) GetCreator() string

func (*FarmPoolEntry) GetDescription

func (x *FarmPoolEntry) GetDescription() string

func (*FarmPoolEntry) GetEditable

func (x *FarmPoolEntry) GetEditable() bool

func (*FarmPoolEntry) GetEndHeight

func (x *FarmPoolEntry) GetEndHeight() int64

func (*FarmPoolEntry) GetExpired

func (x *FarmPoolEntry) GetExpired() bool

func (*FarmPoolEntry) GetId

func (x *FarmPoolEntry) GetId() string

func (*FarmPoolEntry) GetRemainingReward

func (x *FarmPoolEntry) GetRemainingReward() []*v1beta11.Coin

func (*FarmPoolEntry) GetRewardPerBlock

func (x *FarmPoolEntry) GetRewardPerBlock() []*v1beta11.Coin

func (*FarmPoolEntry) GetStartHeight

func (x *FarmPoolEntry) GetStartHeight() int64

func (*FarmPoolEntry) GetTotalLptLocked

func (x *FarmPoolEntry) GetTotalLptLocked() *v1beta11.Coin

func (*FarmPoolEntry) GetTotalReward

func (x *FarmPoolEntry) GetTotalReward() []*v1beta11.Coin

func (*FarmPoolEntry) ProtoMessage

func (*FarmPoolEntry) ProtoMessage()

func (*FarmPoolEntry) ProtoReflect

func (x *FarmPoolEntry) ProtoReflect() protoreflect.Message

func (*FarmPoolEntry) Reset

func (x *FarmPoolEntry) Reset()

func (*FarmPoolEntry) String

func (x *FarmPoolEntry) String() string

type GenesisState

type GenesisState struct {
	Params    *Params       `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Pools     []*FarmPool   `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools,omitempty"`
	FarmInfos []*FarmInfo   `protobuf:"bytes,3,rep,name=farm_infos,json=farmInfos,proto3" json:"farm_infos,omitempty"`
	Sequence  uint64        `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Escrow    []*EscrowInfo `protobuf:"bytes,5,rep,name=escrow,proto3" json:"escrow,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the genesis information exported by the farm module

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetEscrow

func (x *GenesisState) GetEscrow() []*EscrowInfo

func (*GenesisState) GetFarmInfos

func (x *GenesisState) GetFarmInfos() []*FarmInfo

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetPools

func (x *GenesisState) GetPools() []*FarmPool

func (*GenesisState) GetSequence

func (x *GenesisState) GetSequence() uint64

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type LockedInfo

type LockedInfo struct {
	PoolId        string           `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Locked        *v1beta11.Coin   `protobuf:"bytes,2,opt,name=locked,proto3" json:"locked,omitempty"`
	PendingReward []*v1beta11.Coin `protobuf:"bytes,3,rep,name=pending_reward,json=pendingReward,proto3" json:"pending_reward,omitempty"`
	// contains filtered or unexported fields
}

LockedInfo defines the information of the farmer's current pledge

func (*LockedInfo) Descriptor deprecated

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

Deprecated: Use LockedInfo.ProtoReflect.Descriptor instead.

func (*LockedInfo) GetLocked

func (x *LockedInfo) GetLocked() *v1beta11.Coin

func (*LockedInfo) GetPendingReward

func (x *LockedInfo) GetPendingReward() []*v1beta11.Coin

func (*LockedInfo) GetPoolId

func (x *LockedInfo) GetPoolId() string

func (*LockedInfo) ProtoMessage

func (*LockedInfo) ProtoMessage()

func (*LockedInfo) ProtoReflect

func (x *LockedInfo) ProtoReflect() protoreflect.Message

func (*LockedInfo) Reset

func (x *LockedInfo) Reset()

func (*LockedInfo) String

func (x *LockedInfo) String() string

type MsgAdjustPool

type MsgAdjustPool struct {
	PoolId           string          `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	AdditionalReward []*v1beta1.Coin `protobuf:"bytes,2,rep,name=additional_reward,json=additionalReward,proto3" json:"additional_reward,omitempty"`
	RewardPerBlock   []*v1beta1.Coin `protobuf:"bytes,3,rep,name=reward_per_block,json=rewardPerBlock,proto3" json:"reward_per_block,omitempty"`
	Creator          string          `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

MsgAdjustPool defines a msg for adjusting the farm pool params

func (*MsgAdjustPool) Descriptor deprecated

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

Deprecated: Use MsgAdjustPool.ProtoReflect.Descriptor instead.

func (*MsgAdjustPool) GetAdditionalReward

func (x *MsgAdjustPool) GetAdditionalReward() []*v1beta1.Coin

func (*MsgAdjustPool) GetCreator

func (x *MsgAdjustPool) GetCreator() string

func (*MsgAdjustPool) GetPoolId

func (x *MsgAdjustPool) GetPoolId() string

func (*MsgAdjustPool) GetRewardPerBlock

func (x *MsgAdjustPool) GetRewardPerBlock() []*v1beta1.Coin

func (*MsgAdjustPool) ProtoMessage

func (*MsgAdjustPool) ProtoMessage()

func (*MsgAdjustPool) ProtoReflect

func (x *MsgAdjustPool) ProtoReflect() protoreflect.Message

func (*MsgAdjustPool) Reset

func (x *MsgAdjustPool) Reset()

func (*MsgAdjustPool) String

func (x *MsgAdjustPool) String() string

type MsgAdjustPoolResponse

type MsgAdjustPoolResponse struct {
	// contains filtered or unexported fields
}

MsgAdjustPoolResponse defines the Msg/AdjustPool response type

func (*MsgAdjustPoolResponse) Descriptor deprecated

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

Deprecated: Use MsgAdjustPoolResponse.ProtoReflect.Descriptor instead.

func (*MsgAdjustPoolResponse) ProtoMessage

func (*MsgAdjustPoolResponse) ProtoMessage()

func (*MsgAdjustPoolResponse) ProtoReflect

func (x *MsgAdjustPoolResponse) ProtoReflect() protoreflect.Message

func (*MsgAdjustPoolResponse) Reset

func (x *MsgAdjustPoolResponse) Reset()

func (*MsgAdjustPoolResponse) String

func (x *MsgAdjustPoolResponse) String() string

type MsgClient

type MsgClient interface {
	// CreatePool defines a method for creating a new farm pool
	CreatePool(ctx context.Context, in *MsgCreatePool, opts ...grpc.CallOption) (*MsgCreatePoolResponse, error)
	// CreatePoolWithCommunityPool defines a method for creating a new farm pool
	CreatePoolWithCommunityPool(ctx context.Context, in *MsgCreatePoolWithCommunityPool, opts ...grpc.CallOption) (*MsgCreatePoolWithCommunityPoolResponse, error)
	// DestroyPool defines a method for destroying a existed farm pool
	DestroyPool(ctx context.Context, in *MsgDestroyPool, opts ...grpc.CallOption) (*MsgDestroyPoolResponse, error)
	// AdjustPool defines a method for adjusting the farm pool params
	AdjustPool(ctx context.Context, in *MsgAdjustPool, opts ...grpc.CallOption) (*MsgAdjustPoolResponse, error)
	// Stake defines a method for staking some lp token to a farm pool
	Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error)
	// Unstake defines a method for unstaking some lp token from a farm pool and
	// withdraw some reward
	Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error)
	// Harvest defines a method withdraw some reward from a farm pool
	Harvest(ctx context.Context, in *MsgHarvest, opts ...grpc.CallOption) (*MsgHarvestResponse, error)
	// UpdateParams defines a governance operation for updating the x/coinswap
	// module parameters. The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCreatePool

type MsgCreatePool struct {
	Description    string          `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	LptDenom       string          `protobuf:"bytes,2,opt,name=lpt_denom,json=lptDenom,proto3" json:"lpt_denom,omitempty"`
	StartHeight    int64           `protobuf:"varint,3,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	RewardPerBlock []*v1beta1.Coin `protobuf:"bytes,4,rep,name=reward_per_block,json=rewardPerBlock,proto3" json:"reward_per_block,omitempty"`
	TotalReward    []*v1beta1.Coin `protobuf:"bytes,5,rep,name=total_reward,json=totalReward,proto3" json:"total_reward,omitempty"`
	Editable       bool            `protobuf:"varint,6,opt,name=editable,proto3" json:"editable,omitempty"`
	Creator        string          `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

MsgCreatePool defines a msg for creating a new farm pool

func (*MsgCreatePool) Descriptor deprecated

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

Deprecated: Use MsgCreatePool.ProtoReflect.Descriptor instead.

func (*MsgCreatePool) GetCreator

func (x *MsgCreatePool) GetCreator() string

func (*MsgCreatePool) GetDescription

func (x *MsgCreatePool) GetDescription() string

func (*MsgCreatePool) GetEditable

func (x *MsgCreatePool) GetEditable() bool

func (*MsgCreatePool) GetLptDenom

func (x *MsgCreatePool) GetLptDenom() string

func (*MsgCreatePool) GetRewardPerBlock

func (x *MsgCreatePool) GetRewardPerBlock() []*v1beta1.Coin

func (*MsgCreatePool) GetStartHeight

func (x *MsgCreatePool) GetStartHeight() int64

func (*MsgCreatePool) GetTotalReward

func (x *MsgCreatePool) GetTotalReward() []*v1beta1.Coin

func (*MsgCreatePool) ProtoMessage

func (*MsgCreatePool) ProtoMessage()

func (*MsgCreatePool) ProtoReflect

func (x *MsgCreatePool) ProtoReflect() protoreflect.Message

func (*MsgCreatePool) Reset

func (x *MsgCreatePool) Reset()

func (*MsgCreatePool) String

func (x *MsgCreatePool) String() string

type MsgCreatePoolResponse

type MsgCreatePoolResponse struct {
	// contains filtered or unexported fields
}

MsgCreatePoolResponse defines the Msg/CreatePool response type

func (*MsgCreatePoolResponse) Descriptor deprecated

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

Deprecated: Use MsgCreatePoolResponse.ProtoReflect.Descriptor instead.

func (*MsgCreatePoolResponse) ProtoMessage

func (*MsgCreatePoolResponse) ProtoMessage()

func (*MsgCreatePoolResponse) ProtoReflect

func (x *MsgCreatePoolResponse) ProtoReflect() protoreflect.Message

func (*MsgCreatePoolResponse) Reset

func (x *MsgCreatePoolResponse) Reset()

func (*MsgCreatePoolResponse) String

func (x *MsgCreatePoolResponse) String() string

type MsgCreatePoolWithCommunityPool

type MsgCreatePoolWithCommunityPool struct {
	Content        *CommunityPoolCreateFarmProposal `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	InitialDeposit []*v1beta1.Coin                  `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3" json:"initial_deposit,omitempty"`
	Proposer       string                           `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// contains filtered or unexported fields
}

MsgCreatePoolWithCommunityPool defines a msg for creating a new farm pool by proposal

func (*MsgCreatePoolWithCommunityPool) Descriptor deprecated

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

Deprecated: Use MsgCreatePoolWithCommunityPool.ProtoReflect.Descriptor instead.

func (*MsgCreatePoolWithCommunityPool) GetContent

func (*MsgCreatePoolWithCommunityPool) GetInitialDeposit

func (x *MsgCreatePoolWithCommunityPool) GetInitialDeposit() []*v1beta1.Coin

func (*MsgCreatePoolWithCommunityPool) GetProposer

func (x *MsgCreatePoolWithCommunityPool) GetProposer() string

func (*MsgCreatePoolWithCommunityPool) ProtoMessage

func (*MsgCreatePoolWithCommunityPool) ProtoMessage()

func (*MsgCreatePoolWithCommunityPool) ProtoReflect

func (*MsgCreatePoolWithCommunityPool) Reset

func (x *MsgCreatePoolWithCommunityPool) Reset()

func (*MsgCreatePoolWithCommunityPool) String

type MsgCreatePoolWithCommunityPoolResponse

type MsgCreatePoolWithCommunityPoolResponse struct {
	// contains filtered or unexported fields
}

MsgCreatePoolWithCommunityPoolResponse defines the Msg/CreatePoolWithCommunityPool response type

func (*MsgCreatePoolWithCommunityPoolResponse) Descriptor deprecated

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

Deprecated: Use MsgCreatePoolWithCommunityPoolResponse.ProtoReflect.Descriptor instead.

func (*MsgCreatePoolWithCommunityPoolResponse) ProtoMessage

func (*MsgCreatePoolWithCommunityPoolResponse) ProtoReflect

func (*MsgCreatePoolWithCommunityPoolResponse) Reset

func (*MsgCreatePoolWithCommunityPoolResponse) String

type MsgDestroyPool

type MsgDestroyPool struct {
	PoolId  string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

MsgDestroyPool defines a msg for destroying a existed farm pool

func (*MsgDestroyPool) Descriptor deprecated

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

Deprecated: Use MsgDestroyPool.ProtoReflect.Descriptor instead.

func (*MsgDestroyPool) GetCreator

func (x *MsgDestroyPool) GetCreator() string

func (*MsgDestroyPool) GetPoolId

func (x *MsgDestroyPool) GetPoolId() string

func (*MsgDestroyPool) ProtoMessage

func (*MsgDestroyPool) ProtoMessage()

func (*MsgDestroyPool) ProtoReflect

func (x *MsgDestroyPool) ProtoReflect() protoreflect.Message

func (*MsgDestroyPool) Reset

func (x *MsgDestroyPool) Reset()

func (*MsgDestroyPool) String

func (x *MsgDestroyPool) String() string

type MsgDestroyPoolResponse

type MsgDestroyPoolResponse struct {
	// contains filtered or unexported fields
}

MsgDestroyPoolResponse defines the Msg/DestroyPool response type

func (*MsgDestroyPoolResponse) Descriptor deprecated

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

Deprecated: Use MsgDestroyPoolResponse.ProtoReflect.Descriptor instead.

func (*MsgDestroyPoolResponse) ProtoMessage

func (*MsgDestroyPoolResponse) ProtoMessage()

func (*MsgDestroyPoolResponse) ProtoReflect

func (x *MsgDestroyPoolResponse) ProtoReflect() protoreflect.Message

func (*MsgDestroyPoolResponse) Reset

func (x *MsgDestroyPoolResponse) Reset()

func (*MsgDestroyPoolResponse) String

func (x *MsgDestroyPoolResponse) String() string

type MsgHarvest

type MsgHarvest struct {
	PoolId string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgHarvest defines a msg withdraw some reward from a farm pool

func (*MsgHarvest) Descriptor deprecated

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

Deprecated: Use MsgHarvest.ProtoReflect.Descriptor instead.

func (*MsgHarvest) GetPoolId

func (x *MsgHarvest) GetPoolId() string

func (*MsgHarvest) GetSender

func (x *MsgHarvest) GetSender() string

func (*MsgHarvest) ProtoMessage

func (*MsgHarvest) ProtoMessage()

func (*MsgHarvest) ProtoReflect

func (x *MsgHarvest) ProtoReflect() protoreflect.Message

func (*MsgHarvest) Reset

func (x *MsgHarvest) Reset()

func (*MsgHarvest) String

func (x *MsgHarvest) String() string

type MsgHarvestResponse

type MsgHarvestResponse struct {
	Reward []*v1beta1.Coin `protobuf:"bytes,2,rep,name=reward,proto3" json:"reward,omitempty"`
	// contains filtered or unexported fields
}

MsgHarvestResponse defines the Msg/Harvest response type

func (*MsgHarvestResponse) Descriptor deprecated

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

Deprecated: Use MsgHarvestResponse.ProtoReflect.Descriptor instead.

func (*MsgHarvestResponse) GetReward

func (x *MsgHarvestResponse) GetReward() []*v1beta1.Coin

func (*MsgHarvestResponse) ProtoMessage

func (*MsgHarvestResponse) ProtoMessage()

func (*MsgHarvestResponse) ProtoReflect

func (x *MsgHarvestResponse) ProtoReflect() protoreflect.Message

func (*MsgHarvestResponse) Reset

func (x *MsgHarvestResponse) Reset()

func (*MsgHarvestResponse) String

func (x *MsgHarvestResponse) String() string

type MsgServer

type MsgServer interface {
	// CreatePool defines a method for creating a new farm pool
	CreatePool(context.Context, *MsgCreatePool) (*MsgCreatePoolResponse, error)
	// CreatePoolWithCommunityPool defines a method for creating a new farm pool
	CreatePoolWithCommunityPool(context.Context, *MsgCreatePoolWithCommunityPool) (*MsgCreatePoolWithCommunityPoolResponse, error)
	// DestroyPool defines a method for destroying a existed farm pool
	DestroyPool(context.Context, *MsgDestroyPool) (*MsgDestroyPoolResponse, error)
	// AdjustPool defines a method for adjusting the farm pool params
	AdjustPool(context.Context, *MsgAdjustPool) (*MsgAdjustPoolResponse, error)
	// Stake defines a method for staking some lp token to a farm pool
	Stake(context.Context, *MsgStake) (*MsgStakeResponse, error)
	// Unstake defines a method for unstaking some lp token from a farm pool and
	// withdraw some reward
	Unstake(context.Context, *MsgUnstake) (*MsgUnstakeResponse, error)
	// Harvest defines a method withdraw some reward from a farm pool
	Harvest(context.Context, *MsgHarvest) (*MsgHarvestResponse, error)
	// UpdateParams defines a governance operation for updating the x/coinswap
	// module parameters. The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgStake

type MsgStake struct {
	PoolId string        `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Amount *v1beta1.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Sender string        `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgStake defines a msg for staking some lp token to a farm pool

func (*MsgStake) Descriptor deprecated

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

Deprecated: Use MsgStake.ProtoReflect.Descriptor instead.

func (*MsgStake) GetAmount

func (x *MsgStake) GetAmount() *v1beta1.Coin

func (*MsgStake) GetPoolId

func (x *MsgStake) GetPoolId() string

func (*MsgStake) GetSender

func (x *MsgStake) GetSender() string

func (*MsgStake) ProtoMessage

func (*MsgStake) ProtoMessage()

func (*MsgStake) ProtoReflect

func (x *MsgStake) ProtoReflect() protoreflect.Message

func (*MsgStake) Reset

func (x *MsgStake) Reset()

func (*MsgStake) String

func (x *MsgStake) String() string

type MsgStakeResponse

type MsgStakeResponse struct {
	Reward []*v1beta1.Coin `protobuf:"bytes,2,rep,name=reward,proto3" json:"reward,omitempty"`
	// contains filtered or unexported fields
}

MsgStakeResponse defines the Msg/Stake response type

func (*MsgStakeResponse) Descriptor deprecated

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

Deprecated: Use MsgStakeResponse.ProtoReflect.Descriptor instead.

func (*MsgStakeResponse) GetReward

func (x *MsgStakeResponse) GetReward() []*v1beta1.Coin

func (*MsgStakeResponse) ProtoMessage

func (*MsgStakeResponse) ProtoMessage()

func (*MsgStakeResponse) ProtoReflect

func (x *MsgStakeResponse) ProtoReflect() protoreflect.Message

func (*MsgStakeResponse) Reset

func (x *MsgStakeResponse) Reset()

func (*MsgStakeResponse) String

func (x *MsgStakeResponse) String() string

type MsgUnstake

type MsgUnstake struct {
	PoolId string        `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Amount *v1beta1.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Sender string        `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgUnstake defines a msg for unstaking some lp token from a farm pool and withdraw some reward

func (*MsgUnstake) Descriptor deprecated

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

Deprecated: Use MsgUnstake.ProtoReflect.Descriptor instead.

func (*MsgUnstake) GetAmount

func (x *MsgUnstake) GetAmount() *v1beta1.Coin

func (*MsgUnstake) GetPoolId

func (x *MsgUnstake) GetPoolId() string

func (*MsgUnstake) GetSender

func (x *MsgUnstake) GetSender() string

func (*MsgUnstake) ProtoMessage

func (*MsgUnstake) ProtoMessage()

func (*MsgUnstake) ProtoReflect

func (x *MsgUnstake) ProtoReflect() protoreflect.Message

func (*MsgUnstake) Reset

func (x *MsgUnstake) Reset()

func (*MsgUnstake) String

func (x *MsgUnstake) String() string

type MsgUnstakeResponse

type MsgUnstakeResponse struct {
	Reward []*v1beta1.Coin `protobuf:"bytes,2,rep,name=reward,proto3" json:"reward,omitempty"`
	// contains filtered or unexported fields
}

MsgUnstakeResponse defines the Msg/Unstake response type

func (*MsgUnstakeResponse) Descriptor deprecated

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

Deprecated: Use MsgUnstakeResponse.ProtoReflect.Descriptor instead.

func (*MsgUnstakeResponse) GetReward

func (x *MsgUnstakeResponse) GetReward() []*v1beta1.Coin

func (*MsgUnstakeResponse) ProtoMessage

func (*MsgUnstakeResponse) ProtoMessage()

func (*MsgUnstakeResponse) ProtoReflect

func (x *MsgUnstakeResponse) ProtoReflect() protoreflect.Message

func (*MsgUnstakeResponse) Reset

func (x *MsgUnstakeResponse) Reset()

func (*MsgUnstakeResponse) String

func (x *MsgUnstakeResponse) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/coinswap parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

type Params struct {
	PoolCreationFee     *v1beta1.Coin `protobuf:"bytes,1,opt,name=pool_creation_fee,json=poolCreationFee,proto3" json:"pool_creation_fee,omitempty"`
	MaxRewardCategories uint32        `protobuf:"varint,2,opt,name=max_reward_categories,json=maxRewardCategories,proto3" json:"max_reward_categories,omitempty"`
	TaxRate             string        `protobuf:"bytes,3,opt,name=tax_rate,json=taxRate,proto3" json:"tax_rate,omitempty"`
	// contains filtered or unexported fields
}

Params records the current params information of the farm pool

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetMaxRewardCategories

func (x *Params) GetMaxRewardCategories() uint32

func (*Params) GetPoolCreationFee

func (x *Params) GetPoolCreationFee() *v1beta1.Coin

func (*Params) GetTaxRate

func (x *Params) GetTaxRate() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryClient

type QueryClient interface {
	// FarmPools returns all the farm pool
	FarmPools(ctx context.Context, in *QueryFarmPoolsRequest, opts ...grpc.CallOption) (*QueryFarmPoolsResponse, error)
	// FarmPool returns the farm pool for the provided id
	FarmPool(ctx context.Context, in *QueryFarmPoolRequest, opts ...grpc.CallOption) (*QueryFarmPoolResponse, error)
	// Farmer returns the farmer for the provided farmer address
	Farmer(ctx context.Context, in *QueryFarmerRequest, opts ...grpc.CallOption) (*QueryFarmerResponse, error)
	// Params queries the farm parameters
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryFarmPoolRequest

type QueryFarmPoolRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

QueryFarmPoolsRequest is request type for the Query/FarmPool RPC method

func (*QueryFarmPoolRequest) Descriptor deprecated

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

Deprecated: Use QueryFarmPoolRequest.ProtoReflect.Descriptor instead.

func (*QueryFarmPoolRequest) GetId

func (x *QueryFarmPoolRequest) GetId() string

func (*QueryFarmPoolRequest) ProtoMessage

func (*QueryFarmPoolRequest) ProtoMessage()

func (*QueryFarmPoolRequest) ProtoReflect

func (x *QueryFarmPoolRequest) ProtoReflect() protoreflect.Message

func (*QueryFarmPoolRequest) Reset

func (x *QueryFarmPoolRequest) Reset()

func (*QueryFarmPoolRequest) String

func (x *QueryFarmPoolRequest) String() string

type QueryFarmPoolResponse

type QueryFarmPoolResponse struct {
	Pool *FarmPoolEntry `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
	// contains filtered or unexported fields
}

QueryFarmPoolResponse is response type for the Query/FarmPool RPC method

func (*QueryFarmPoolResponse) Descriptor deprecated

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

Deprecated: Use QueryFarmPoolResponse.ProtoReflect.Descriptor instead.

func (*QueryFarmPoolResponse) GetPool

func (x *QueryFarmPoolResponse) GetPool() *FarmPoolEntry

func (*QueryFarmPoolResponse) ProtoMessage

func (*QueryFarmPoolResponse) ProtoMessage()

func (*QueryFarmPoolResponse) ProtoReflect

func (x *QueryFarmPoolResponse) ProtoReflect() protoreflect.Message

func (*QueryFarmPoolResponse) Reset

func (x *QueryFarmPoolResponse) Reset()

func (*QueryFarmPoolResponse) String

func (x *QueryFarmPoolResponse) String() string

type QueryFarmPoolsRequest

type QueryFarmPoolsRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryFarmPoolsRequest is request type for the Query/FarmPools RPC method

func (*QueryFarmPoolsRequest) Descriptor deprecated

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

Deprecated: Use QueryFarmPoolsRequest.ProtoReflect.Descriptor instead.

func (*QueryFarmPoolsRequest) GetPagination

func (x *QueryFarmPoolsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryFarmPoolsRequest) ProtoMessage

func (*QueryFarmPoolsRequest) ProtoMessage()

func (*QueryFarmPoolsRequest) ProtoReflect

func (x *QueryFarmPoolsRequest) ProtoReflect() protoreflect.Message

func (*QueryFarmPoolsRequest) Reset

func (x *QueryFarmPoolsRequest) Reset()

func (*QueryFarmPoolsRequest) String

func (x *QueryFarmPoolsRequest) String() string

type QueryFarmPoolsResponse

type QueryFarmPoolsResponse struct {
	Pools      []*FarmPoolEntry      `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryFarmPoolsResponse is response type for the Query/FarmPools RPC method

func (*QueryFarmPoolsResponse) Descriptor deprecated

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

Deprecated: Use QueryFarmPoolsResponse.ProtoReflect.Descriptor instead.

func (*QueryFarmPoolsResponse) GetPagination

func (x *QueryFarmPoolsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryFarmPoolsResponse) GetPools

func (x *QueryFarmPoolsResponse) GetPools() []*FarmPoolEntry

func (*QueryFarmPoolsResponse) ProtoMessage

func (*QueryFarmPoolsResponse) ProtoMessage()

func (*QueryFarmPoolsResponse) ProtoReflect

func (x *QueryFarmPoolsResponse) ProtoReflect() protoreflect.Message

func (*QueryFarmPoolsResponse) Reset

func (x *QueryFarmPoolsResponse) Reset()

func (*QueryFarmPoolsResponse) String

func (x *QueryFarmPoolsResponse) String() string

type QueryFarmerRequest

type QueryFarmerRequest struct {
	Farmer string `protobuf:"bytes,1,opt,name=farmer,proto3" json:"farmer,omitempty"`
	PoolId string `protobuf:"bytes,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// contains filtered or unexported fields
}

QueryFarmerRequest is request type for the Query/Farmer RPC method

func (*QueryFarmerRequest) Descriptor deprecated

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

Deprecated: Use QueryFarmerRequest.ProtoReflect.Descriptor instead.

func (*QueryFarmerRequest) GetFarmer

func (x *QueryFarmerRequest) GetFarmer() string

func (*QueryFarmerRequest) GetPoolId

func (x *QueryFarmerRequest) GetPoolId() string

func (*QueryFarmerRequest) ProtoMessage

func (*QueryFarmerRequest) ProtoMessage()

func (*QueryFarmerRequest) ProtoReflect

func (x *QueryFarmerRequest) ProtoReflect() protoreflect.Message

func (*QueryFarmerRequest) Reset

func (x *QueryFarmerRequest) Reset()

func (*QueryFarmerRequest) String

func (x *QueryFarmerRequest) String() string

type QueryFarmerResponse

type QueryFarmerResponse struct {
	List   []*LockedInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Height int64         `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

QueryFarmerResponse is response type for the Query/Farmer RPC method

func (*QueryFarmerResponse) Descriptor deprecated

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

Deprecated: Use QueryFarmerResponse.ProtoReflect.Descriptor instead.

func (*QueryFarmerResponse) GetHeight

func (x *QueryFarmerResponse) GetHeight() int64

func (*QueryFarmerResponse) GetList

func (x *QueryFarmerResponse) GetList() []*LockedInfo

func (*QueryFarmerResponse) ProtoMessage

func (*QueryFarmerResponse) ProtoMessage()

func (*QueryFarmerResponse) ProtoReflect

func (x *QueryFarmerResponse) ProtoReflect() protoreflect.Message

func (*QueryFarmerResponse) Reset

func (x *QueryFarmerResponse) Reset()

func (*QueryFarmerResponse) String

func (x *QueryFarmerResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is request type for the Query/Params RPC method

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer

type QueryServer interface {
	// FarmPools returns all the farm pool
	FarmPools(context.Context, *QueryFarmPoolsRequest) (*QueryFarmPoolsResponse, error)
	// FarmPool returns the farm pool for the provided id
	FarmPool(context.Context, *QueryFarmPoolRequest) (*QueryFarmPoolResponse, error)
	// Farmer returns the farmer for the provided farmer address
	Farmer(context.Context, *QueryFarmerRequest) (*QueryFarmerResponse, error)
	// Params queries the farm parameters
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type RewardRule

type RewardRule struct {
	Reward          string `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward,omitempty"`
	TotalReward     string `protobuf:"bytes,2,opt,name=total_reward,json=totalReward,proto3" json:"total_reward,omitempty"`
	RemainingReward string `protobuf:"bytes,3,opt,name=remaining_reward,json=remainingReward,proto3" json:"remaining_reward,omitempty"`
	RewardPerBlock  string `protobuf:"bytes,4,opt,name=reward_per_block,json=rewardPerBlock,proto3" json:"reward_per_block,omitempty"`
	RewardPerShare  string `protobuf:"bytes,5,opt,name=reward_per_share,json=rewardPerShare,proto3" json:"reward_per_share,omitempty"`
	// contains filtered or unexported fields
}

RewardRule defines the properties of farm pool reward

func (*RewardRule) Descriptor deprecated

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

Deprecated: Use RewardRule.ProtoReflect.Descriptor instead.

func (*RewardRule) GetRemainingReward

func (x *RewardRule) GetRemainingReward() string

func (*RewardRule) GetReward

func (x *RewardRule) GetReward() string

func (*RewardRule) GetRewardPerBlock

func (x *RewardRule) GetRewardPerBlock() string

func (*RewardRule) GetRewardPerShare

func (x *RewardRule) GetRewardPerShare() string

func (*RewardRule) GetTotalReward

func (x *RewardRule) GetTotalReward() string

func (*RewardRule) ProtoMessage

func (*RewardRule) ProtoMessage()

func (*RewardRule) ProtoReflect

func (x *RewardRule) ProtoReflect() protoreflect.Message

func (*RewardRule) Reset

func (x *RewardRule) Reset()

func (*RewardRule) String

func (x *RewardRule) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) AdjustPool

func (UnimplementedMsgServer) CreatePool

func (UnimplementedMsgServer) DestroyPool

func (UnimplementedMsgServer) Harvest

func (UnimplementedMsgServer) Stake

func (UnimplementedMsgServer) Unstake

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) FarmPool

func (UnimplementedQueryServer) FarmPools

func (UnimplementedQueryServer) Farmer

func (UnimplementedQueryServer) Params

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Directories

Path Synopsis
module
v1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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