types

package
v0.0.0-...-96f998e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 37 Imported by: 4

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreatePool                  = "create_pool"
	EventTypeCreatePoolWithCommunityPool = "create_pool_with_community_pool"
	EventTypeDestroyPool                 = "destroy_pool"
	EventTypeAppendReward                = "append_reward"
	EventTypeStake                       = "stake"
	EventTypeUnstake                     = "unstake"
	EventTypeHarvest                     = "harvest"

	AttributeValueCategory = ModuleName

	AttributeValuePoolId   = "pool_id"
	AttributeValueCreator  = "creator"
	AttributeValueAmount   = "amount"
	AttributeValueReward   = "reward"
	AttributeValueProposal = "proposal_id"
)

farm module event types

View Source
const (
	// module name
	ModuleName = "farm"

	// StoreKey is the default store key for farm
	StoreKey = ModuleName

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

	// QuerierRoute is the querier route for the farm store.
	QuerierRoute = StoreKey

	// Query endpoints supported by the farm querier
	QueryRecord = "farm"

	// RewardCollector is the root string for the reward distribution account address
	RewardCollector = "reward_collector"

	// EscrowCollector is the root string for the reward escrow account address
	EscrowCollector = "escrow_collector"

	// Prefix for farm pool_id
	PrefixFarmPool = "farm"
)
View Source
const (
	// TypeMsgCreatePool is the type for MsgCreatePool
	TypeMsgCreatePool = "create_pool"

	// TypeMsgCreatePool is the type for MsgCreatePoolWithCommunityPool
	TypeMsgCreateProposal = "create_pool_with_community_pool"

	// TypeMsgDestroyPool is the type for MsgDestroyPool
	TypeMsgDestroyPool = "destroy_pool"

	// TypeMsgAdjustPool is the type for MsgAdjustPool
	TypeMsgAdjustPool = "adjust_pool"

	// TypeMsgStake is the type for MsgStake
	TypeMsgStake = "stake"

	// TypeMsgUnstake is the type for MsgUnstake
	TypeMsgUnstake = "unstake"

	// TypeMsgHarvest is the type for MsgHarvest
	TypeMsgHarvest = "harvest"
)
View Source
const (
	// MaxDescriptionLength length of the service and author description
	MaxDescriptionLength = 280
)
View Source
const (
	ProposalTypeCreateFarmPool string = "CommunityPoolCreateFarm"
)

Variables

View Source
var (
	ErrExpiredHeight      = errorsmod.Register(ModuleName, 2, "expired block height")
	ErrInvalidLPToken     = errorsmod.Register(ModuleName, 3, "invalid lp token denom")
	ErrNotMatch           = errorsmod.Register(ModuleName, 4, "the data does not match")
	ErrPoolExpired        = errorsmod.Register(ModuleName, 5, "the farm pool has expired")
	ErrPoolNotStart       = errorsmod.Register(ModuleName, 6, "the farm pool don't start")
	ErrPoolExist          = errorsmod.Register(ModuleName, 7, "the farm pool already exist")
	ErrPoolNotFound       = errorsmod.Register(ModuleName, 8, "the farm pool does not exist")
	ErrInvalidOperate     = errorsmod.Register(ModuleName, 9, "invalid operate")
	ErrFarmerNotFound     = errorsmod.Register(ModuleName, 10, "the farmer does not exist")
	ErrInvalidPoolId      = errorsmod.Register(ModuleName, 11, "invalid pool id")
	ErrInvalidDescription = errorsmod.Register(ModuleName, 12, "invalid pool description, length must be less than or equal to 280")
	ErrInvalidAppend      = errorsmod.Register(ModuleName, 13, "cannot add new token as a reward")
	ErrInvalidRewardRule  = errorsmod.Register(ModuleName, 14, "invalid reward rule")
	ErrAllEmpty           = errorsmod.Register(ModuleName, 15, "shouldn't all be empty")
	ErrBadDistribution    = errorsmod.Register(ModuleName, 16, "community pool does not have sufficient coins to distribute")
	ErrInvalidRefund      = errorsmod.Register(ModuleName, 17, "invalid refund amount")
	ErrInvalidProposal    = errorsmod.Register(ModuleName, 18, "invalid proposal")
	ErrEscrowInfoNotFound = errorsmod.Register(ModuleName, 19, "the escrow information does not exist")
)

farm module sentinel errors

View Source
var (
	NewParamSetPair = paramtypes.NewParamSetPair
	NewKeyTable     = paramtypes.NewKeyTable
)
View Source
var (
	ErrInvalidLengthFarm        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFarm          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFarm = 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 (
	Delimiter         = []byte{0x00} // Separator for string key
	FarmPoolRuleKey   = []byte{0x02} // key for farm pool reward rule
	FarmerKey         = []byte{0x03} // key for farmer
	ActiveFarmPoolKey = []byte{0x04} // key for active farm pool
	FarmPoolSeq       = []byte{0x05}
	FarmPoolKey       = []byte{0x06} // key for farm pool
	EscrowInfoKey     = []byte{0x07}
	ParamsKey         = []byte{0x08}
)
View Source
var (
	KeyPoolCreationFee     = []byte("CreatePoolFee")
	KeyTaxRate             = []byte("TaxRate") // fee key
	KeyMaxRewardCategories = []byte("MaxRewardCategories")
)
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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyActiveFarmPool

func KeyActiveFarmPool(height int64, poolId string) []byte

func KeyEscrowInfo

func KeyEscrowInfo(proposalId uint64) []byte

func KeyFarmInfo

func KeyFarmInfo(address, poolId string) []byte

func KeyFarmPool

func KeyFarmPool(poolId string) []byte

func KeyFarmPoolSeq

func KeyFarmPoolSeq() []byte

func KeyRewardRule

func KeyRewardRule(poolId, reward string) []byte

func MustMarshalPoolId

func MustMarshalPoolId(cdc codec.Codec, poolId string) []byte

MustMarshalPoolId return the poolId protobuf code

func MustUnMarshalPoolId

func MustUnMarshalPoolId(cdc codec.Codec, poolId []byte) string

MustUnMarshalPoolId return the poolId

func PrefixActiveFarmPool

func PrefixActiveFarmPool(height int64) []byte

func PrefixFarmInfo

func PrefixFarmInfo(address string) []byte

func PrefixRewardRule

func PrefixRewardRule(poolId string) []byte

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the interface

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateAddress

func ValidateAddress(sender string) error

ValidateAddress validates the address

func ValidateCoins

func ValidateCoins(field string, coins ...sdk.Coin) error

ValidateCoins validates the coin

func ValidateDescription

func ValidateDescription(description string) error

ValidateDescription validates the pool name

func ValidateFund

func ValidateFund(rewardPerBlock, fundApplied, fundSelfBond []sdk.Coin) error

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the provided farm genesis state to ensure the expected invariants holds.

func ValidateLpTokenDenom

func ValidateLpTokenDenom(denom string) error

ValidateLpTokenDenom validates the lp token denom

func ValidateReward

func ValidateReward(rewardPerBlock, totalReward sdk.Coins) error

ValidateReward validates the coin

func ValidatepPoolId

func ValidatepPoolId(poolId string) (uint64, error)

ValidatepPoolId validates the pool id

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx context.Context, moduleName string) sdk.ModuleAccountI
	SetModuleAccount(ctx context.Context, macc sdk.ModuleAccountI)
}

AccountKeeper defines the expected account keeper (noalias)

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(
		ctx context.Context,
		senderModule string,
		recipientAddr sdk.AccAddress,
		amt sdk.Coins,
	) error
	SendCoinsFromModuleToModule(
		ctx context.Context,
		senderModule string,
		recipientModule string,
		amt sdk.Coins,
	) error
	SendCoinsFromAccountToModule(
		ctx context.Context,
		senderAddr sdk.AccAddress,
		recipientModule string,
		amt sdk.Coins,
	) error
	GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	BurnCoins(ctx context.Context, name string, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper (noalias)

type CoinswapKeeper

type CoinswapKeeper interface {
	ValidatePool(ctx sdk.Context, lptDenom string) error
}

CoinswapKeeper defines the expected coinswap keeper (noalias)

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  []types.Coin `protobuf:"bytes,5,rep,name=reward_per_block,json=rewardPerBlock,proto3" json:"reward_per_block"`
	FundApplied     []types.Coin `protobuf:"bytes,6,rep,name=fund_applied,json=fundApplied,proto3" json:"fund_applied"`
	FundSelfBond    []types.Coin `protobuf:"bytes,7,rep,name=fund_self_bond,json=fundSelfBond,proto3" json:"fund_self_bond"`
}

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

func (*CommunityPoolCreateFarmProposal) Descriptor

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

func (*CommunityPoolCreateFarmProposal) Equal

func (this *CommunityPoolCreateFarmProposal) Equal(that interface{}) bool

func (*CommunityPoolCreateFarmProposal) GetDescription

func (cfp *CommunityPoolCreateFarmProposal) GetDescription() string

func (*CommunityPoolCreateFarmProposal) GetTitle

func (cfp *CommunityPoolCreateFarmProposal) GetTitle() string

func (*CommunityPoolCreateFarmProposal) Marshal

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

func (*CommunityPoolCreateFarmProposal) MarshalTo

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

func (*CommunityPoolCreateFarmProposal) MarshalToSizedBuffer

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

func (*CommunityPoolCreateFarmProposal) ProposalRoute

func (cfp *CommunityPoolCreateFarmProposal) ProposalRoute() string

func (*CommunityPoolCreateFarmProposal) ProposalType

func (cfp *CommunityPoolCreateFarmProposal) ProposalType() string

func (*CommunityPoolCreateFarmProposal) ProtoMessage

func (*CommunityPoolCreateFarmProposal) ProtoMessage()

func (*CommunityPoolCreateFarmProposal) Reset

func (*CommunityPoolCreateFarmProposal) Size

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

func (CommunityPoolCreateFarmProposal) String

func (*CommunityPoolCreateFarmProposal) Unmarshal

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

func (*CommunityPoolCreateFarmProposal) ValidateBasic

func (cfp *CommunityPoolCreateFarmProposal) ValidateBasic() error

func (*CommunityPoolCreateFarmProposal) XXX_DiscardUnknown

func (m *CommunityPoolCreateFarmProposal) XXX_DiscardUnknown()

func (*CommunityPoolCreateFarmProposal) XXX_Marshal

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

func (*CommunityPoolCreateFarmProposal) XXX_Merge

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

func (*CommunityPoolCreateFarmProposal) XXX_Size

func (m *CommunityPoolCreateFarmProposal) XXX_Size() int

func (*CommunityPoolCreateFarmProposal) XXX_Unmarshal

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

type DistrKeeper

type DistrKeeper interface {
	GetFeePool(ctx context.Context) (feePool distrtypes.FeePool, err error)
	SetFeePool(ctx context.Context, feePool distrtypes.FeePool) error
}

DistrKeeper defines the expected distribution keeper (noalias)

type EscrowInfo

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

EscrowInfo create delegate information for farm pool proposals

func (*EscrowInfo) Descriptor

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

func (*EscrowInfo) Equal

func (this *EscrowInfo) Equal(that interface{}) bool

func (*EscrowInfo) Marshal

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

func (*EscrowInfo) MarshalTo

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

func (*EscrowInfo) MarshalToSizedBuffer

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

func (*EscrowInfo) ProtoMessage

func (*EscrowInfo) ProtoMessage()

func (*EscrowInfo) Reset

func (m *EscrowInfo) Reset()

func (*EscrowInfo) Size

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

func (*EscrowInfo) String

func (m *EscrowInfo) String() string

func (*EscrowInfo) Unmarshal

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

func (*EscrowInfo) XXX_DiscardUnknown

func (m *EscrowInfo) XXX_DiscardUnknown()

func (*EscrowInfo) XXX_Marshal

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

func (*EscrowInfo) XXX_Merge

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

func (*EscrowInfo) XXX_Size

func (m *EscrowInfo) XXX_Size() int

func (*EscrowInfo) XXX_Unmarshal

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

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     cosmossdk_io_math.Int                    `protobuf:"bytes,3,opt,name=locked,proto3,customtype=cosmossdk.io/math.Int" json:"locked"`
	RewardDebt github_com_cosmos_cosmos_sdk_types.Coins `` /* 135-byte string literal not displayed */
}

FarmInfo records the current information of the farm pool

func (*FarmInfo) Descriptor

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

func (*FarmInfo) Equal

func (this *FarmInfo) Equal(that interface{}) bool

func (*FarmInfo) Marshal

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

func (*FarmInfo) MarshalTo

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

func (*FarmInfo) MarshalToSizedBuffer

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

func (*FarmInfo) ProtoMessage

func (*FarmInfo) ProtoMessage()

func (*FarmInfo) Reset

func (m *FarmInfo) Reset()

func (*FarmInfo) Size

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

func (*FarmInfo) String

func (m *FarmInfo) String() string

func (*FarmInfo) Unmarshal

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

func (*FarmInfo) XXX_DiscardUnknown

func (m *FarmInfo) XXX_DiscardUnknown()

func (*FarmInfo) XXX_Marshal

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

func (*FarmInfo) XXX_Merge

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

func (*FarmInfo) XXX_Size

func (m *FarmInfo) XXX_Size() int

func (*FarmInfo) XXX_Unmarshal

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

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         github_com_cosmos_cosmos_sdk_types.Coin `` /* 146-byte string literal not displayed */
	Rules                  []RewardRule                            `protobuf:"bytes,9,rep,name=rules,proto3" json:"rules"`
}

FarmPool defines the properties of farm pool

func (FarmPool) CaclRewards

func (pool FarmPool) CaclRewards(farmInfo FarmInfo, deltaAmt sdkmath.Int) (rewards, rewardDebt sdk.Coins)

func (*FarmPool) Descriptor

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

func (*FarmPool) Equal

func (this *FarmPool) Equal(that interface{}) bool

func (FarmPool) ExpiredHeight

func (pool FarmPool) ExpiredHeight() (int64, error)

func (*FarmPool) Marshal

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

func (*FarmPool) MarshalTo

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

func (*FarmPool) MarshalToSizedBuffer

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

func (*FarmPool) ProtoMessage

func (*FarmPool) ProtoMessage()

func (*FarmPool) Reset

func (m *FarmPool) Reset()

func (*FarmPool) Size

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

func (FarmPool) Started

func (pool FarmPool) Started(ctx sdk.Context) bool

func (*FarmPool) String

func (m *FarmPool) String() string

func (*FarmPool) Unmarshal

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

func (*FarmPool) XXX_DiscardUnknown

func (m *FarmPool) XXX_DiscardUnknown()

func (*FarmPool) XXX_Marshal

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

func (*FarmPool) XXX_Merge

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

func (*FarmPool) XXX_Size

func (m *FarmPool) XXX_Size() int

func (*FarmPool) XXX_Unmarshal

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

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  github_com_cosmos_cosmos_sdk_types.Coin  `` /* 146-byte string literal not displayed */
	TotalReward     github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */
	RemainingReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 151-byte string literal not displayed */
	RewardPerBlock  github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
}

FarmPoolEntry defines the properties of farm pool

func (*FarmPoolEntry) Descriptor

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

func (*FarmPoolEntry) GetCreator

func (m *FarmPoolEntry) GetCreator() string

func (*FarmPoolEntry) GetDescription

func (m *FarmPoolEntry) GetDescription() string

func (*FarmPoolEntry) GetEditable

func (m *FarmPoolEntry) GetEditable() bool

func (*FarmPoolEntry) GetEndHeight

func (m *FarmPoolEntry) GetEndHeight() int64

func (*FarmPoolEntry) GetExpired

func (m *FarmPoolEntry) GetExpired() bool

func (*FarmPoolEntry) GetId

func (m *FarmPoolEntry) GetId() string

func (*FarmPoolEntry) GetRemainingReward

func (m *FarmPoolEntry) GetRemainingReward() github_com_cosmos_cosmos_sdk_types.Coins

func (*FarmPoolEntry) GetRewardPerBlock

func (*FarmPoolEntry) GetStartHeight

func (m *FarmPoolEntry) GetStartHeight() int64

func (*FarmPoolEntry) GetTotalReward

func (*FarmPoolEntry) Marshal

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

func (*FarmPoolEntry) MarshalTo

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

func (*FarmPoolEntry) MarshalToSizedBuffer

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

func (*FarmPoolEntry) ProtoMessage

func (*FarmPoolEntry) ProtoMessage()

func (*FarmPoolEntry) Reset

func (m *FarmPoolEntry) Reset()

func (*FarmPoolEntry) Size

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

func (*FarmPoolEntry) String

func (m *FarmPoolEntry) String() string

func (*FarmPoolEntry) Unmarshal

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

func (*FarmPoolEntry) XXX_DiscardUnknown

func (m *FarmPoolEntry) XXX_DiscardUnknown()

func (*FarmPoolEntry) XXX_Marshal

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

func (*FarmPoolEntry) XXX_Merge

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

func (*FarmPoolEntry) XXX_Size

func (m *FarmPoolEntry) XXX_Size() int

func (*FarmPoolEntry) XXX_Unmarshal

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

type GenesisState

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

GenesisState defines the genesis information exported by the farm module

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState gets the default genesis state for testing

func NewGenesisState

func NewGenesisState(params Params, pools []FarmPool, farmInfos []FarmInfo, sequence uint64, escrow []EscrowInfo) *GenesisState

NewGenesisState constructs a new GenesisState instance

func (*GenesisState) Descriptor

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

func (*GenesisState) GetEscrow

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

func (*GenesisState) GetFarmInfos

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPools

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

func (*GenesisState) GetSequence

func (m *GenesisState) GetSequence() uint64

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

type GovKeeper interface {
	SubmitProposal(ctx context.Context, messages []sdk.Msg, metadata, title, summary string, proposer sdk.AccAddress, expedited bool) (v1.Proposal, error)
	AddDeposit(ctx context.Context, proposalID uint64, depositorAddr sdk.AccAddress, depositAmount sdk.Coins) (bool, error)
	GetProposal(ctx context.Context, proposalID uint64) (v1.Proposal, error)
	GetGovernanceAccount(ctx context.Context) sdk.ModuleAccountI
}

GovKeeper defines the expected gov keeper (noalias)

type KeyTable

type KeyTable = paramtypes.KeyTable

func ParamKeyTable

func ParamKeyTable() KeyTable

ParamKeyTable for farm module

type LockedInfo

type LockedInfo struct {
	PoolId        string                                   `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Locked        github_com_cosmos_cosmos_sdk_types.Coin  `protobuf:"bytes,2,opt,name=locked,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"locked"`
	PendingReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

LockedInfo defines the information of the farmer's current pledge

func (*LockedInfo) Descriptor

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

func (*LockedInfo) GetPendingReward

func (m *LockedInfo) GetPendingReward() github_com_cosmos_cosmos_sdk_types.Coins

func (*LockedInfo) GetPoolId

func (m *LockedInfo) GetPoolId() string

func (*LockedInfo) Marshal

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

func (*LockedInfo) MarshalTo

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

func (*LockedInfo) MarshalToSizedBuffer

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

func (*LockedInfo) ProtoMessage

func (*LockedInfo) ProtoMessage()

func (*LockedInfo) Reset

func (m *LockedInfo) Reset()

func (*LockedInfo) Size

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

func (*LockedInfo) String

func (m *LockedInfo) String() string

func (*LockedInfo) Unmarshal

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

func (*LockedInfo) XXX_DiscardUnknown

func (m *LockedInfo) XXX_DiscardUnknown()

func (*LockedInfo) XXX_Marshal

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

func (*LockedInfo) XXX_Merge

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

func (*LockedInfo) XXX_Size

func (m *LockedInfo) XXX_Size() int

func (*LockedInfo) XXX_Unmarshal

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

type MsgAdjustPool

type MsgAdjustPool struct {
	PoolId           string                                   `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	AdditionalReward github_com_cosmos_cosmos_sdk_types.Coins `` /* 153-byte string literal not displayed */
	RewardPerBlock   github_com_cosmos_cosmos_sdk_types.Coins `` /* 149-byte string literal not displayed */
	Creator          string                                   `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
}

MsgAdjustPool defines a msg for adjusting the farm pool params

func (*MsgAdjustPool) Descriptor

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

func (*MsgAdjustPool) Equal

func (this *MsgAdjustPool) Equal(that interface{}) bool

func (MsgAdjustPool) GetSignBytes

func (msg MsgAdjustPool) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgAdjustPool) GetSigners

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

GetSigners implements Msg

func (*MsgAdjustPool) Marshal

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

func (*MsgAdjustPool) MarshalTo

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

func (*MsgAdjustPool) MarshalToSizedBuffer

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

func (*MsgAdjustPool) ProtoMessage

func (*MsgAdjustPool) ProtoMessage()

func (*MsgAdjustPool) Reset

func (m *MsgAdjustPool) Reset()

func (MsgAdjustPool) Route

func (msg MsgAdjustPool) Route() string

----------------------------------------------------------------------------- Route implements Msg

func (*MsgAdjustPool) Size

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

func (*MsgAdjustPool) String

func (m *MsgAdjustPool) String() string

func (MsgAdjustPool) Type

func (msg MsgAdjustPool) Type() string

Type implements Msg

func (*MsgAdjustPool) Unmarshal

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

func (MsgAdjustPool) ValidateBasic

func (msg MsgAdjustPool) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgAdjustPool) XXX_DiscardUnknown

func (m *MsgAdjustPool) XXX_DiscardUnknown()

func (*MsgAdjustPool) XXX_Marshal

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

func (*MsgAdjustPool) XXX_Merge

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

func (*MsgAdjustPool) XXX_Size

func (m *MsgAdjustPool) XXX_Size() int

func (*MsgAdjustPool) XXX_Unmarshal

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

type MsgAdjustPoolResponse

type MsgAdjustPoolResponse struct {
}

MsgAdjustPoolResponse defines the Msg/AdjustPool response type

func (*MsgAdjustPoolResponse) Descriptor

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

func (*MsgAdjustPoolResponse) Marshal

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

func (*MsgAdjustPoolResponse) MarshalTo

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

func (*MsgAdjustPoolResponse) MarshalToSizedBuffer

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

func (*MsgAdjustPoolResponse) ProtoMessage

func (*MsgAdjustPoolResponse) ProtoMessage()

func (*MsgAdjustPoolResponse) Reset

func (m *MsgAdjustPoolResponse) Reset()

func (*MsgAdjustPoolResponse) Size

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

func (*MsgAdjustPoolResponse) String

func (m *MsgAdjustPoolResponse) String() string

func (*MsgAdjustPoolResponse) Unmarshal

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

func (*MsgAdjustPoolResponse) XXX_DiscardUnknown

func (m *MsgAdjustPoolResponse) XXX_DiscardUnknown()

func (*MsgAdjustPoolResponse) XXX_Marshal

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

func (*MsgAdjustPoolResponse) XXX_Merge

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

func (*MsgAdjustPoolResponse) XXX_Size

func (m *MsgAdjustPoolResponse) XXX_Size() int

func (*MsgAdjustPoolResponse) XXX_Unmarshal

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

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) 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 github_com_cosmos_cosmos_sdk_types.Coins `` /* 149-byte string literal not displayed */
	TotalReward    github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */
	Editable       bool                                     `protobuf:"varint,6,opt,name=editable,proto3" json:"editable,omitempty"`
	Creator        string                                   `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"`
}

MsgCreatePool defines a msg for creating a new farm pool

func (*MsgCreatePool) Descriptor

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

func (*MsgCreatePool) Equal

func (this *MsgCreatePool) Equal(that interface{}) bool

func (MsgCreatePool) GetSignBytes

func (msg MsgCreatePool) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgCreatePool) GetSigners

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

GetSigners implements Msg

func (*MsgCreatePool) Marshal

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

func (*MsgCreatePool) MarshalTo

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

func (*MsgCreatePool) MarshalToSizedBuffer

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

func (*MsgCreatePool) ProtoMessage

func (*MsgCreatePool) ProtoMessage()

func (*MsgCreatePool) Reset

func (m *MsgCreatePool) Reset()

func (MsgCreatePool) Route

func (msg MsgCreatePool) Route() string

Route implements Msg

func (*MsgCreatePool) Size

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

func (*MsgCreatePool) String

func (m *MsgCreatePool) String() string

func (MsgCreatePool) Type

func (msg MsgCreatePool) Type() string

Type implements Msg

func (*MsgCreatePool) Unmarshal

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

func (MsgCreatePool) ValidateBasic

func (msg MsgCreatePool) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgCreatePool) XXX_DiscardUnknown

func (m *MsgCreatePool) XXX_DiscardUnknown()

func (*MsgCreatePool) XXX_Marshal

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

func (*MsgCreatePool) XXX_Merge

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

func (*MsgCreatePool) XXX_Size

func (m *MsgCreatePool) XXX_Size() int

func (*MsgCreatePool) XXX_Unmarshal

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

type MsgCreatePoolResponse

type MsgCreatePoolResponse struct {
}

MsgCreatePoolResponse defines the Msg/CreatePool response type

func (*MsgCreatePoolResponse) Descriptor

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

func (*MsgCreatePoolResponse) Marshal

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

func (*MsgCreatePoolResponse) MarshalTo

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

func (*MsgCreatePoolResponse) MarshalToSizedBuffer

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

func (*MsgCreatePoolResponse) ProtoMessage

func (*MsgCreatePoolResponse) ProtoMessage()

func (*MsgCreatePoolResponse) Reset

func (m *MsgCreatePoolResponse) Reset()

func (*MsgCreatePoolResponse) Size

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

func (*MsgCreatePoolResponse) String

func (m *MsgCreatePoolResponse) String() string

func (*MsgCreatePoolResponse) Unmarshal

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

func (*MsgCreatePoolResponse) XXX_DiscardUnknown

func (m *MsgCreatePoolResponse) XXX_DiscardUnknown()

func (*MsgCreatePoolResponse) XXX_Marshal

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

func (*MsgCreatePoolResponse) XXX_Merge

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

func (*MsgCreatePoolResponse) XXX_Size

func (m *MsgCreatePoolResponse) XXX_Size() int

func (*MsgCreatePoolResponse) XXX_Unmarshal

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

type MsgCreatePoolWithCommunityPool

type MsgCreatePoolWithCommunityPool struct {
	Content        CommunityPoolCreateFarmProposal          `protobuf:"bytes,1,opt,name=content,proto3" json:"content"`
	InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */
	Proposer       string                                   `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"`
}

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

func (*MsgCreatePoolWithCommunityPool) Descriptor

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

func (*MsgCreatePoolWithCommunityPool) Equal

func (this *MsgCreatePoolWithCommunityPool) Equal(that interface{}) bool

func (MsgCreatePoolWithCommunityPool) GetSignBytes

func (msg MsgCreatePoolWithCommunityPool) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgCreatePoolWithCommunityPool) GetSigners

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

GetSigners implements Msg

func (*MsgCreatePoolWithCommunityPool) Marshal

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

func (*MsgCreatePoolWithCommunityPool) MarshalTo

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

func (*MsgCreatePoolWithCommunityPool) MarshalToSizedBuffer

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

func (*MsgCreatePoolWithCommunityPool) ProtoMessage

func (*MsgCreatePoolWithCommunityPool) ProtoMessage()

func (*MsgCreatePoolWithCommunityPool) Reset

func (m *MsgCreatePoolWithCommunityPool) Reset()

func (MsgCreatePoolWithCommunityPool) Route

----------------------------------------------------------------------------- Route implements Msg

func (*MsgCreatePoolWithCommunityPool) Size

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

func (*MsgCreatePoolWithCommunityPool) String

func (MsgCreatePoolWithCommunityPool) Type

Type implements Msg

func (*MsgCreatePoolWithCommunityPool) Unmarshal

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

func (MsgCreatePoolWithCommunityPool) ValidateBasic

func (msg MsgCreatePoolWithCommunityPool) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgCreatePoolWithCommunityPool) XXX_DiscardUnknown

func (m *MsgCreatePoolWithCommunityPool) XXX_DiscardUnknown()

func (*MsgCreatePoolWithCommunityPool) XXX_Marshal

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

func (*MsgCreatePoolWithCommunityPool) XXX_Merge

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

func (*MsgCreatePoolWithCommunityPool) XXX_Size

func (m *MsgCreatePoolWithCommunityPool) XXX_Size() int

func (*MsgCreatePoolWithCommunityPool) XXX_Unmarshal

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

type MsgCreatePoolWithCommunityPoolResponse

type MsgCreatePoolWithCommunityPoolResponse struct {
}

MsgCreatePoolWithCommunityPoolResponse defines the Msg/CreatePoolWithCommunityPool response type

func (*MsgCreatePoolWithCommunityPoolResponse) Descriptor

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

func (*MsgCreatePoolWithCommunityPoolResponse) Marshal

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

func (*MsgCreatePoolWithCommunityPoolResponse) MarshalTo

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

func (*MsgCreatePoolWithCommunityPoolResponse) MarshalToSizedBuffer

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

func (*MsgCreatePoolWithCommunityPoolResponse) ProtoMessage

func (*MsgCreatePoolWithCommunityPoolResponse) Reset

func (*MsgCreatePoolWithCommunityPoolResponse) Size

func (*MsgCreatePoolWithCommunityPoolResponse) String

func (*MsgCreatePoolWithCommunityPoolResponse) Unmarshal

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

func (*MsgCreatePoolWithCommunityPoolResponse) XXX_DiscardUnknown

func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_DiscardUnknown()

func (*MsgCreatePoolWithCommunityPoolResponse) XXX_Marshal

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

func (*MsgCreatePoolWithCommunityPoolResponse) XXX_Merge

func (*MsgCreatePoolWithCommunityPoolResponse) XXX_Size

func (*MsgCreatePoolWithCommunityPoolResponse) XXX_Unmarshal

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

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

MsgDestroyPool defines a msg for destroying a existed farm pool

func (*MsgDestroyPool) Descriptor

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

func (*MsgDestroyPool) Equal

func (this *MsgDestroyPool) Equal(that interface{}) bool

func (MsgDestroyPool) GetSignBytes

func (msg MsgDestroyPool) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgDestroyPool) GetSigners

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

GetSigners implements Msg

func (*MsgDestroyPool) Marshal

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

func (*MsgDestroyPool) MarshalTo

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

func (*MsgDestroyPool) MarshalToSizedBuffer

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

func (*MsgDestroyPool) ProtoMessage

func (*MsgDestroyPool) ProtoMessage()

func (*MsgDestroyPool) Reset

func (m *MsgDestroyPool) Reset()

func (MsgDestroyPool) Route

func (msg MsgDestroyPool) Route() string

----------------------------------------------------------------------------- Route implements Msg

func (*MsgDestroyPool) Size

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

func (*MsgDestroyPool) String

func (m *MsgDestroyPool) String() string

func (MsgDestroyPool) Type

func (msg MsgDestroyPool) Type() string

Type implements Msg

func (*MsgDestroyPool) Unmarshal

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

func (MsgDestroyPool) ValidateBasic

func (msg MsgDestroyPool) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgDestroyPool) XXX_DiscardUnknown

func (m *MsgDestroyPool) XXX_DiscardUnknown()

func (*MsgDestroyPool) XXX_Marshal

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

func (*MsgDestroyPool) XXX_Merge

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

func (*MsgDestroyPool) XXX_Size

func (m *MsgDestroyPool) XXX_Size() int

func (*MsgDestroyPool) XXX_Unmarshal

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

type MsgDestroyPoolResponse

type MsgDestroyPoolResponse struct {
}

MsgDestroyPoolResponse defines the Msg/DestroyPool response type

func (*MsgDestroyPoolResponse) Descriptor

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

func (*MsgDestroyPoolResponse) Marshal

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

func (*MsgDestroyPoolResponse) MarshalTo

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

func (*MsgDestroyPoolResponse) MarshalToSizedBuffer

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

func (*MsgDestroyPoolResponse) ProtoMessage

func (*MsgDestroyPoolResponse) ProtoMessage()

func (*MsgDestroyPoolResponse) Reset

func (m *MsgDestroyPoolResponse) Reset()

func (*MsgDestroyPoolResponse) Size

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

func (*MsgDestroyPoolResponse) String

func (m *MsgDestroyPoolResponse) String() string

func (*MsgDestroyPoolResponse) Unmarshal

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

func (*MsgDestroyPoolResponse) XXX_DiscardUnknown

func (m *MsgDestroyPoolResponse) XXX_DiscardUnknown()

func (*MsgDestroyPoolResponse) XXX_Marshal

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

func (*MsgDestroyPoolResponse) XXX_Merge

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

func (*MsgDestroyPoolResponse) XXX_Size

func (m *MsgDestroyPoolResponse) XXX_Size() int

func (*MsgDestroyPoolResponse) XXX_Unmarshal

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

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

MsgHarvest defines a msg withdraw some reward from a farm pool

func (*MsgHarvest) Descriptor

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

func (*MsgHarvest) Equal

func (this *MsgHarvest) Equal(that interface{}) bool

func (MsgHarvest) GetSignBytes

func (msg MsgHarvest) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgHarvest) GetSigners

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

GetSigners implements Msg

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

----------------------------------------------------------------------------- Route implements Msg

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

Type implements Msg

func (*MsgHarvest) Unmarshal

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

func (MsgHarvest) ValidateBasic

func (msg MsgHarvest) ValidateBasic() error

ValidateBasic implements Msg

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 {
	Reward github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"`
}

MsgHarvestResponse defines the Msg/Harvest response type

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

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

MsgServer is the server API for Msg service.

type MsgStake

type MsgStake struct {
	PoolId string                                  `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	Sender string                                  `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

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

func (*MsgStake) Descriptor

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

func (*MsgStake) Equal

func (this *MsgStake) Equal(that interface{}) bool

func (MsgStake) GetSignBytes

func (msg MsgStake) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgStake) GetSigners

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

GetSigners implements Msg

func (*MsgStake) Marshal

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

func (*MsgStake) MarshalTo

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

func (*MsgStake) MarshalToSizedBuffer

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

func (*MsgStake) ProtoMessage

func (*MsgStake) ProtoMessage()

func (*MsgStake) Reset

func (m *MsgStake) Reset()

func (MsgStake) Route

func (msg MsgStake) Route() string

----------------------------------------------------------------------------- Route implements Msg

func (*MsgStake) Size

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

func (*MsgStake) String

func (m *MsgStake) String() string

func (MsgStake) Type

func (msg MsgStake) Type() string

Type implements Msg

func (*MsgStake) Unmarshal

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

func (MsgStake) ValidateBasic

func (msg MsgStake) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgStake) XXX_DiscardUnknown

func (m *MsgStake) XXX_DiscardUnknown()

func (*MsgStake) XXX_Marshal

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

func (*MsgStake) XXX_Merge

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

func (*MsgStake) XXX_Size

func (m *MsgStake) XXX_Size() int

func (*MsgStake) XXX_Unmarshal

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

type MsgStakeResponse

type MsgStakeResponse struct {
	Reward github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"`
}

MsgStakeResponse defines the Msg/Stake response type

func (*MsgStakeResponse) Descriptor

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

func (*MsgStakeResponse) Marshal

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

func (*MsgStakeResponse) MarshalTo

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

func (*MsgStakeResponse) MarshalToSizedBuffer

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

func (*MsgStakeResponse) ProtoMessage

func (*MsgStakeResponse) ProtoMessage()

func (*MsgStakeResponse) Reset

func (m *MsgStakeResponse) Reset()

func (*MsgStakeResponse) Size

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

func (*MsgStakeResponse) String

func (m *MsgStakeResponse) String() string

func (*MsgStakeResponse) Unmarshal

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

func (*MsgStakeResponse) XXX_DiscardUnknown

func (m *MsgStakeResponse) XXX_DiscardUnknown()

func (*MsgStakeResponse) XXX_Marshal

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

func (*MsgStakeResponse) XXX_Merge

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

func (*MsgStakeResponse) XXX_Size

func (m *MsgStakeResponse) XXX_Size() int

func (*MsgStakeResponse) XXX_Unmarshal

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

type MsgUnstake

type MsgUnstake struct {
	PoolId string                                  `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	Sender string                                  `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

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

func (*MsgUnstake) Descriptor

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

func (*MsgUnstake) Equal

func (this *MsgUnstake) Equal(that interface{}) bool

func (MsgUnstake) GetSignBytes

func (msg MsgUnstake) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgUnstake) GetSigners

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

GetSigners implements Msg

func (*MsgUnstake) Marshal

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

func (*MsgUnstake) MarshalTo

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

func (*MsgUnstake) MarshalToSizedBuffer

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

func (*MsgUnstake) ProtoMessage

func (*MsgUnstake) ProtoMessage()

func (*MsgUnstake) Reset

func (m *MsgUnstake) Reset()

func (MsgUnstake) Route

func (msg MsgUnstake) Route() string

----------------------------------------------------------------------------- Route implements Msg

func (*MsgUnstake) Size

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

func (*MsgUnstake) String

func (m *MsgUnstake) String() string

func (MsgUnstake) Type

func (msg MsgUnstake) Type() string

Type implements Msg

func (*MsgUnstake) Unmarshal

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

func (MsgUnstake) ValidateBasic

func (msg MsgUnstake) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgUnstake) XXX_DiscardUnknown

func (m *MsgUnstake) XXX_DiscardUnknown()

func (*MsgUnstake) XXX_Marshal

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

func (*MsgUnstake) XXX_Merge

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

func (*MsgUnstake) XXX_Size

func (m *MsgUnstake) XXX_Size() int

func (*MsgUnstake) XXX_Unmarshal

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

type MsgUnstakeResponse

type MsgUnstakeResponse struct {
	Reward github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"`
}

MsgUnstakeResponse defines the Msg/Unstake response type

func (*MsgUnstakeResponse) Descriptor

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

func (*MsgUnstakeResponse) Marshal

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

func (*MsgUnstakeResponse) MarshalTo

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

func (*MsgUnstakeResponse) MarshalToSizedBuffer

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

func (*MsgUnstakeResponse) ProtoMessage

func (*MsgUnstakeResponse) ProtoMessage()

func (*MsgUnstakeResponse) Reset

func (m *MsgUnstakeResponse) Reset()

func (*MsgUnstakeResponse) Size

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

func (*MsgUnstakeResponse) String

func (m *MsgUnstakeResponse) String() string

func (*MsgUnstakeResponse) Unmarshal

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

func (*MsgUnstakeResponse) XXX_DiscardUnknown

func (m *MsgUnstakeResponse) XXX_DiscardUnknown()

func (*MsgUnstakeResponse) XXX_Marshal

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

func (*MsgUnstakeResponse) XXX_Merge

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

func (*MsgUnstakeResponse) XXX_Size

func (m *MsgUnstakeResponse) XXX_Size() int

func (*MsgUnstakeResponse) XXX_Unmarshal

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

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

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetSignBytes

func (m *MsgUpdateParams) GetSignBytes() []byte

GetSignBytes returns the raw bytes for a MsgUpdateParams message that the expected signer needs to sign.

func (*MsgUpdateParams) GetSigners

func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateParams message

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic executes sanity validation on the provided data

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type ParamSet

type ParamSet = paramtypes.ParamSet

type ParamSetPairs

type ParamSetPairs = paramtypes.ParamSetPairs

type Params

type Params struct {
	PoolCreationFee     github_com_cosmos_cosmos_sdk_types.Coin `` /* 149-byte string literal not displayed */
	MaxRewardCategories uint32                                  `protobuf:"varint,2,opt,name=max_reward_categories,json=maxRewardCategories,proto3" json:"max_reward_categories,omitempty"`
	TaxRate             cosmossdk_io_math.LegacyDec             `protobuf:"bytes,3,opt,name=tax_rate,json=taxRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"tax_rate"`
}

Params records the current params information of the farm pool

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(createPoolFee sdk.Coin, maxRewardCategories uint32, taxRate math.LegacyDec) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

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 (p *Params) ParamSetPairs() ParamSetPairs

ParamSetPairs implements paramstypes.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 (p Params) String() string

String returns a human readable string representation of the parameters.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates a set of 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 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryFarmPoolRequest

type QueryFarmPoolRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

QueryFarmPoolsRequest is request type for the Query/FarmPool RPC method

func (*QueryFarmPoolRequest) Descriptor

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

func (*QueryFarmPoolRequest) GetId

func (m *QueryFarmPoolRequest) GetId() string

func (*QueryFarmPoolRequest) Marshal

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

func (*QueryFarmPoolRequest) MarshalTo

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

func (*QueryFarmPoolRequest) MarshalToSizedBuffer

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

func (*QueryFarmPoolRequest) ProtoMessage

func (*QueryFarmPoolRequest) ProtoMessage()

func (*QueryFarmPoolRequest) Reset

func (m *QueryFarmPoolRequest) Reset()

func (*QueryFarmPoolRequest) Size

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

func (*QueryFarmPoolRequest) String

func (m *QueryFarmPoolRequest) String() string

func (*QueryFarmPoolRequest) Unmarshal

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

func (*QueryFarmPoolRequest) XXX_DiscardUnknown

func (m *QueryFarmPoolRequest) XXX_DiscardUnknown()

func (*QueryFarmPoolRequest) XXX_Marshal

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

func (*QueryFarmPoolRequest) XXX_Merge

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

func (*QueryFarmPoolRequest) XXX_Size

func (m *QueryFarmPoolRequest) XXX_Size() int

func (*QueryFarmPoolRequest) XXX_Unmarshal

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

type QueryFarmPoolResponse

type QueryFarmPoolResponse struct {
	Pool *FarmPoolEntry `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
}

QueryFarmPoolResponse is response type for the Query/FarmPool RPC method

func (*QueryFarmPoolResponse) Descriptor

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

func (*QueryFarmPoolResponse) GetPool

func (m *QueryFarmPoolResponse) GetPool() *FarmPoolEntry

func (*QueryFarmPoolResponse) Marshal

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

func (*QueryFarmPoolResponse) MarshalTo

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

func (*QueryFarmPoolResponse) MarshalToSizedBuffer

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

func (*QueryFarmPoolResponse) ProtoMessage

func (*QueryFarmPoolResponse) ProtoMessage()

func (*QueryFarmPoolResponse) Reset

func (m *QueryFarmPoolResponse) Reset()

func (*QueryFarmPoolResponse) Size

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

func (*QueryFarmPoolResponse) String

func (m *QueryFarmPoolResponse) String() string

func (*QueryFarmPoolResponse) Unmarshal

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

func (*QueryFarmPoolResponse) XXX_DiscardUnknown

func (m *QueryFarmPoolResponse) XXX_DiscardUnknown()

func (*QueryFarmPoolResponse) XXX_Marshal

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

func (*QueryFarmPoolResponse) XXX_Merge

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

func (*QueryFarmPoolResponse) XXX_Size

func (m *QueryFarmPoolResponse) XXX_Size() int

func (*QueryFarmPoolResponse) XXX_Unmarshal

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

type QueryFarmPoolsRequest

type QueryFarmPoolsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryFarmPoolsRequest is request type for the Query/FarmPools RPC method

func (*QueryFarmPoolsRequest) Descriptor

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

func (*QueryFarmPoolsRequest) GetPagination

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

func (*QueryFarmPoolsRequest) Marshal

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

func (*QueryFarmPoolsRequest) MarshalTo

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

func (*QueryFarmPoolsRequest) MarshalToSizedBuffer

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

func (*QueryFarmPoolsRequest) ProtoMessage

func (*QueryFarmPoolsRequest) ProtoMessage()

func (*QueryFarmPoolsRequest) Reset

func (m *QueryFarmPoolsRequest) Reset()

func (*QueryFarmPoolsRequest) Size

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

func (*QueryFarmPoolsRequest) String

func (m *QueryFarmPoolsRequest) String() string

func (*QueryFarmPoolsRequest) Unmarshal

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

func (*QueryFarmPoolsRequest) XXX_DiscardUnknown

func (m *QueryFarmPoolsRequest) XXX_DiscardUnknown()

func (*QueryFarmPoolsRequest) XXX_Marshal

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

func (*QueryFarmPoolsRequest) XXX_Merge

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

func (*QueryFarmPoolsRequest) XXX_Size

func (m *QueryFarmPoolsRequest) XXX_Size() int

func (*QueryFarmPoolsRequest) XXX_Unmarshal

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

type QueryFarmPoolsResponse

type QueryFarmPoolsResponse struct {
	Pools      []*FarmPoolEntry    `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryFarmPoolsResponse is response type for the Query/FarmPools RPC method

func (*QueryFarmPoolsResponse) Descriptor

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

func (*QueryFarmPoolsResponse) GetPagination

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

func (*QueryFarmPoolsResponse) GetPools

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

func (*QueryFarmPoolsResponse) Marshal

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

func (*QueryFarmPoolsResponse) MarshalTo

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

func (*QueryFarmPoolsResponse) MarshalToSizedBuffer

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

func (*QueryFarmPoolsResponse) ProtoMessage

func (*QueryFarmPoolsResponse) ProtoMessage()

func (*QueryFarmPoolsResponse) Reset

func (m *QueryFarmPoolsResponse) Reset()

func (*QueryFarmPoolsResponse) Size

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

func (*QueryFarmPoolsResponse) String

func (m *QueryFarmPoolsResponse) String() string

func (*QueryFarmPoolsResponse) Unmarshal

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

func (*QueryFarmPoolsResponse) XXX_DiscardUnknown

func (m *QueryFarmPoolsResponse) XXX_DiscardUnknown()

func (*QueryFarmPoolsResponse) XXX_Marshal

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

func (*QueryFarmPoolsResponse) XXX_Merge

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

func (*QueryFarmPoolsResponse) XXX_Size

func (m *QueryFarmPoolsResponse) XXX_Size() int

func (*QueryFarmPoolsResponse) XXX_Unmarshal

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

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

QueryFarmerRequest is request type for the Query/Farmer RPC method

func (*QueryFarmerRequest) Descriptor

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

func (*QueryFarmerRequest) GetFarmer

func (m *QueryFarmerRequest) GetFarmer() string

func (*QueryFarmerRequest) GetPoolId

func (m *QueryFarmerRequest) GetPoolId() string

func (*QueryFarmerRequest) Marshal

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

func (*QueryFarmerRequest) MarshalTo

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

func (*QueryFarmerRequest) MarshalToSizedBuffer

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

func (*QueryFarmerRequest) ProtoMessage

func (*QueryFarmerRequest) ProtoMessage()

func (*QueryFarmerRequest) Reset

func (m *QueryFarmerRequest) Reset()

func (*QueryFarmerRequest) Size

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

func (*QueryFarmerRequest) String

func (m *QueryFarmerRequest) String() string

func (*QueryFarmerRequest) Unmarshal

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

func (*QueryFarmerRequest) XXX_DiscardUnknown

func (m *QueryFarmerRequest) XXX_DiscardUnknown()

func (*QueryFarmerRequest) XXX_Marshal

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

func (*QueryFarmerRequest) XXX_Merge

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

func (*QueryFarmerRequest) XXX_Size

func (m *QueryFarmerRequest) XXX_Size() int

func (*QueryFarmerRequest) XXX_Unmarshal

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

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

QueryFarmerResponse is response type for the Query/Farmer RPC method

func (*QueryFarmerResponse) Descriptor

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

func (*QueryFarmerResponse) GetHeight

func (m *QueryFarmerResponse) GetHeight() int64

func (*QueryFarmerResponse) GetList

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

func (*QueryFarmerResponse) Marshal

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

func (*QueryFarmerResponse) MarshalTo

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

func (*QueryFarmerResponse) MarshalToSizedBuffer

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

func (*QueryFarmerResponse) ProtoMessage

func (*QueryFarmerResponse) ProtoMessage()

func (*QueryFarmerResponse) Reset

func (m *QueryFarmerResponse) Reset()

func (*QueryFarmerResponse) Size

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

func (*QueryFarmerResponse) String

func (m *QueryFarmerResponse) String() string

func (*QueryFarmerResponse) Unmarshal

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

func (*QueryFarmerResponse) XXX_DiscardUnknown

func (m *QueryFarmerResponse) XXX_DiscardUnknown()

func (*QueryFarmerResponse) XXX_Marshal

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

func (*QueryFarmerResponse) XXX_Merge

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

func (*QueryFarmerResponse) XXX_Size

func (m *QueryFarmerResponse) XXX_Size() int

func (*QueryFarmerResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type 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)
}

QueryServer is the server API for Query service.

type RewardRule

type RewardRule struct {
	Reward          string                      `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward,omitempty"`
	TotalReward     cosmossdk_io_math.Int       `protobuf:"bytes,2,opt,name=total_reward,json=totalReward,proto3,customtype=cosmossdk.io/math.Int" json:"total_reward"`
	RemainingReward cosmossdk_io_math.Int       `` /* 129-byte string literal not displayed */
	RewardPerBlock  cosmossdk_io_math.Int       `` /* 128-byte string literal not displayed */
	RewardPerShare  cosmossdk_io_math.LegacyDec `` /* 134-byte string literal not displayed */
}

RewardRule defines the properties of farm pool reward

func (*RewardRule) Descriptor

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

func (*RewardRule) Equal

func (this *RewardRule) Equal(that interface{}) bool

func (*RewardRule) Marshal

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

func (*RewardRule) MarshalTo

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

func (*RewardRule) MarshalToSizedBuffer

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

func (*RewardRule) ProtoMessage

func (*RewardRule) ProtoMessage()

func (*RewardRule) Reset

func (m *RewardRule) Reset()

func (*RewardRule) Size

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

func (*RewardRule) String

func (m *RewardRule) String() string

func (*RewardRule) Unmarshal

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

func (*RewardRule) XXX_DiscardUnknown

func (m *RewardRule) XXX_DiscardUnknown()

func (*RewardRule) XXX_Marshal

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

func (*RewardRule) XXX_Merge

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

func (*RewardRule) XXX_Size

func (m *RewardRule) XXX_Size() int

func (*RewardRule) XXX_Unmarshal

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

type RewardRules

type RewardRules []RewardRule

func (RewardRules) Contains

func (rs RewardRules) Contains(reward sdk.Coins) bool

func (RewardRules) RewardsPerBlock

func (rs RewardRules) RewardsPerBlock() (coins sdk.Coins)

func (RewardRules) TotalReward

func (rs RewardRules) TotalReward() (total sdk.Coins)

func (RewardRules) UpdateWith

func (rs RewardRules) UpdateWith(rewardPerBlock sdk.Coins) RewardRules

type Subspace

type Subspace interface {
	GetParamSet(ctx sdk.Context, ps ParamSet)
}

Subspace defines an interface that implements the legacy x/params Subspace type.

NOTE: This is used solely for migration of x/params managed parameters.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AdjustPool

func (*UnimplementedMsgServer) CreatePool

func (*UnimplementedMsgServer) CreatePoolWithCommunityPool

func (*UnimplementedMsgServer) DestroyPool

func (*UnimplementedMsgServer) Harvest

func (*UnimplementedMsgServer) Stake

func (*UnimplementedMsgServer) Unstake

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) FarmPool

func (*UnimplementedQueryServer) FarmPools

func (*UnimplementedQueryServer) Farmer

func (*UnimplementedQueryServer) Params

type ValidateLPToken

type ValidateLPToken func(ctx context.Context, lpTokenDenom string) error

Jump to

Keyboard shortcuts

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