Documentation ¶
Overview ¶
nolint
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyActiveFarmPool(height int64, poolId string) []byte
- func KeyEscrowInfo(proposalId uint64) []byte
- func KeyFarmInfo(address, poolId string) []byte
- func KeyFarmPool(poolId string) []byte
- func KeyFarmPoolSeq() []byte
- func KeyRewardRule(poolId, reward string) []byte
- func MustMarshalPoolId(cdc codec.Codec, poolId string) []byte
- func MustUnMarshalPoolId(cdc codec.Codec, poolId []byte) string
- func PrefixActiveFarmPool(height int64) []byte
- func PrefixFarmInfo(address string) []byte
- func PrefixRewardRule(poolId string) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SetDefaultGenesisState(state GenesisState)
- func ValidateAddress(sender string) error
- func ValidateCoins(field string, coins ...sdk.Coin) error
- func ValidateDescription(description string) error
- func ValidateFund(rewardPerBlock, fundApplied, fundSelfBond []sdk.Coin) error
- func ValidateGenesis(data GenesisState) error
- func ValidateLpTokenDenom(denom string) error
- func ValidateReward(rewardPerBlock, totalReward sdk.Coins) error
- func ValidatepPoolId(poolId string) (uint64, error)
- type AccountKeeper
- type BankKeeper
- type CommunityPoolCreateFarmProposal
- func (*CommunityPoolCreateFarmProposal) Descriptor() ([]byte, []int)
- func (this *CommunityPoolCreateFarmProposal) Equal(that interface{}) bool
- func (cfp *CommunityPoolCreateFarmProposal) GetDescription() string
- func (cfp *CommunityPoolCreateFarmProposal) GetTitle() string
- func (m *CommunityPoolCreateFarmProposal) Marshal() (dAtA []byte, err error)
- func (m *CommunityPoolCreateFarmProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *CommunityPoolCreateFarmProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cfp *CommunityPoolCreateFarmProposal) ProposalRoute() string
- func (cfp *CommunityPoolCreateFarmProposal) ProposalType() string
- func (*CommunityPoolCreateFarmProposal) ProtoMessage()
- func (m *CommunityPoolCreateFarmProposal) Reset()
- func (m *CommunityPoolCreateFarmProposal) Size() (n int)
- func (cfp CommunityPoolCreateFarmProposal) String() string
- func (m *CommunityPoolCreateFarmProposal) Unmarshal(dAtA []byte) error
- func (cfp *CommunityPoolCreateFarmProposal) ValidateBasic() error
- func (m *CommunityPoolCreateFarmProposal) XXX_DiscardUnknown()
- func (m *CommunityPoolCreateFarmProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommunityPoolCreateFarmProposal) XXX_Merge(src proto.Message)
- func (m *CommunityPoolCreateFarmProposal) XXX_Size() int
- func (m *CommunityPoolCreateFarmProposal) XXX_Unmarshal(b []byte) error
- type DistrKeeper
- type EscrowInfo
- func (*EscrowInfo) Descriptor() ([]byte, []int)
- func (this *EscrowInfo) Equal(that interface{}) bool
- func (m *EscrowInfo) Marshal() (dAtA []byte, err error)
- func (m *EscrowInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *EscrowInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EscrowInfo) ProtoMessage()
- func (m *EscrowInfo) Reset()
- func (m *EscrowInfo) Size() (n int)
- func (m *EscrowInfo) String() string
- func (m *EscrowInfo) Unmarshal(dAtA []byte) error
- func (m *EscrowInfo) XXX_DiscardUnknown()
- func (m *EscrowInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EscrowInfo) XXX_Merge(src proto.Message)
- func (m *EscrowInfo) XXX_Size() int
- func (m *EscrowInfo) XXX_Unmarshal(b []byte) error
- type FarmInfo
- func (*FarmInfo) Descriptor() ([]byte, []int)
- func (this *FarmInfo) Equal(that interface{}) bool
- func (m *FarmInfo) Marshal() (dAtA []byte, err error)
- func (m *FarmInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *FarmInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FarmInfo) ProtoMessage()
- func (m *FarmInfo) Reset()
- func (m *FarmInfo) Size() (n int)
- func (m *FarmInfo) String() string
- func (m *FarmInfo) Unmarshal(dAtA []byte) error
- func (m *FarmInfo) XXX_DiscardUnknown()
- func (m *FarmInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FarmInfo) XXX_Merge(src proto.Message)
- func (m *FarmInfo) XXX_Size() int
- func (m *FarmInfo) XXX_Unmarshal(b []byte) error
- type FarmPool
- func (pool FarmPool) CaclRewards(farmInfo FarmInfo, deltaAmt sdk.Int) (rewards, rewardDebt sdk.Coins)
- func (*FarmPool) Descriptor() ([]byte, []int)
- func (this *FarmPool) Equal(that interface{}) bool
- func (pool FarmPool) ExpiredHeight() (int64, error)
- func (m *FarmPool) Marshal() (dAtA []byte, err error)
- func (m *FarmPool) MarshalTo(dAtA []byte) (int, error)
- func (m *FarmPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FarmPool) ProtoMessage()
- func (m *FarmPool) Reset()
- func (m *FarmPool) Size() (n int)
- func (pool FarmPool) Started(ctx sdk.Context) bool
- func (m *FarmPool) String() string
- func (m *FarmPool) Unmarshal(dAtA []byte) error
- func (m *FarmPool) XXX_DiscardUnknown()
- func (m *FarmPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FarmPool) XXX_Merge(src proto.Message)
- func (m *FarmPool) XXX_Size() int
- func (m *FarmPool) XXX_Unmarshal(b []byte) error
- type FarmPoolEntry
- func (*FarmPoolEntry) Descriptor() ([]byte, []int)
- func (m *FarmPoolEntry) GetCreator() string
- func (m *FarmPoolEntry) GetDescription() string
- func (m *FarmPoolEntry) GetEditable() bool
- func (m *FarmPoolEntry) GetEndHeight() int64
- func (m *FarmPoolEntry) GetExpired() bool
- func (m *FarmPoolEntry) GetId() string
- func (m *FarmPoolEntry) GetRemainingReward() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *FarmPoolEntry) GetRewardPerBlock() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *FarmPoolEntry) GetStartHeight() int64
- func (m *FarmPoolEntry) GetTotalReward() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *FarmPoolEntry) Marshal() (dAtA []byte, err error)
- func (m *FarmPoolEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *FarmPoolEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FarmPoolEntry) ProtoMessage()
- func (m *FarmPoolEntry) Reset()
- func (m *FarmPoolEntry) Size() (n int)
- func (m *FarmPoolEntry) String() string
- func (m *FarmPoolEntry) Unmarshal(dAtA []byte) error
- func (m *FarmPoolEntry) XXX_DiscardUnknown()
- func (m *FarmPoolEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FarmPoolEntry) XXX_Merge(src proto.Message)
- func (m *FarmPoolEntry) XXX_Size() int
- func (m *FarmPoolEntry) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetEscrow() []EscrowInfo
- func (m *GenesisState) GetFarmInfos() []FarmInfo
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPools() []FarmPool
- func (m *GenesisState) GetSequence() uint64
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GovKeeper
- type LockedInfo
- func (*LockedInfo) Descriptor() ([]byte, []int)
- func (m *LockedInfo) GetPendingReward() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *LockedInfo) GetPoolId() string
- func (m *LockedInfo) Marshal() (dAtA []byte, err error)
- func (m *LockedInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *LockedInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LockedInfo) ProtoMessage()
- func (m *LockedInfo) Reset()
- func (m *LockedInfo) Size() (n int)
- func (m *LockedInfo) String() string
- func (m *LockedInfo) Unmarshal(dAtA []byte) error
- func (m *LockedInfo) XXX_DiscardUnknown()
- func (m *LockedInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockedInfo) XXX_Merge(src proto.Message)
- func (m *LockedInfo) XXX_Size() int
- func (m *LockedInfo) XXX_Unmarshal(b []byte) error
- type MsgAdjustPool
- func (*MsgAdjustPool) Descriptor() ([]byte, []int)
- func (this *MsgAdjustPool) Equal(that interface{}) bool
- func (msg MsgAdjustPool) GetSignBytes() []byte
- func (msg MsgAdjustPool) GetSigners() []sdk.AccAddress
- func (m *MsgAdjustPool) Marshal() (dAtA []byte, err error)
- func (m *MsgAdjustPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAdjustPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAdjustPool) ProtoMessage()
- func (m *MsgAdjustPool) Reset()
- func (msg MsgAdjustPool) Route() string
- func (m *MsgAdjustPool) Size() (n int)
- func (m *MsgAdjustPool) String() string
- func (msg MsgAdjustPool) Type() string
- func (m *MsgAdjustPool) Unmarshal(dAtA []byte) error
- func (msg MsgAdjustPool) ValidateBasic() error
- func (m *MsgAdjustPool) XXX_DiscardUnknown()
- func (m *MsgAdjustPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAdjustPool) XXX_Merge(src proto.Message)
- func (m *MsgAdjustPool) XXX_Size() int
- func (m *MsgAdjustPool) XXX_Unmarshal(b []byte) error
- type MsgAdjustPoolResponse
- func (*MsgAdjustPoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgAdjustPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAdjustPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAdjustPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAdjustPoolResponse) ProtoMessage()
- func (m *MsgAdjustPoolResponse) Reset()
- func (m *MsgAdjustPoolResponse) Size() (n int)
- func (m *MsgAdjustPoolResponse) String() string
- func (m *MsgAdjustPoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAdjustPoolResponse) XXX_DiscardUnknown()
- func (m *MsgAdjustPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAdjustPoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgAdjustPoolResponse) XXX_Size() int
- func (m *MsgAdjustPoolResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreatePool
- func (*MsgCreatePool) Descriptor() ([]byte, []int)
- func (this *MsgCreatePool) Equal(that interface{}) bool
- func (msg MsgCreatePool) GetSignBytes() []byte
- func (msg MsgCreatePool) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePool) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePool) ProtoMessage()
- func (m *MsgCreatePool) Reset()
- func (msg MsgCreatePool) Route() string
- func (m *MsgCreatePool) Size() (n int)
- func (m *MsgCreatePool) String() string
- func (msg MsgCreatePool) Type() string
- func (m *MsgCreatePool) Unmarshal(dAtA []byte) error
- func (msg MsgCreatePool) ValidateBasic() error
- func (m *MsgCreatePool) XXX_DiscardUnknown()
- func (m *MsgCreatePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePool) XXX_Merge(src proto.Message)
- func (m *MsgCreatePool) XXX_Size() int
- func (m *MsgCreatePool) XXX_Unmarshal(b []byte) error
- type MsgCreatePoolResponse
- func (*MsgCreatePoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePoolResponse) ProtoMessage()
- func (m *MsgCreatePoolResponse) Reset()
- func (m *MsgCreatePoolResponse) Size() (n int)
- func (m *MsgCreatePoolResponse) String() string
- func (m *MsgCreatePoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePoolResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePoolResponse) XXX_Size() int
- func (m *MsgCreatePoolResponse) XXX_Unmarshal(b []byte) error
- type MsgCreatePoolWithCommunityPool
- func (*MsgCreatePoolWithCommunityPool) Descriptor() ([]byte, []int)
- func (this *MsgCreatePoolWithCommunityPool) Equal(that interface{}) bool
- func (msg MsgCreatePoolWithCommunityPool) GetSignBytes() []byte
- func (msg MsgCreatePoolWithCommunityPool) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePoolWithCommunityPool) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePoolWithCommunityPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePoolWithCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePoolWithCommunityPool) ProtoMessage()
- func (m *MsgCreatePoolWithCommunityPool) Reset()
- func (msg MsgCreatePoolWithCommunityPool) Route() string
- func (m *MsgCreatePoolWithCommunityPool) Size() (n int)
- func (m *MsgCreatePoolWithCommunityPool) String() string
- func (msg MsgCreatePoolWithCommunityPool) Type() string
- func (m *MsgCreatePoolWithCommunityPool) Unmarshal(dAtA []byte) error
- func (msg MsgCreatePoolWithCommunityPool) ValidateBasic() error
- func (m *MsgCreatePoolWithCommunityPool) XXX_DiscardUnknown()
- func (m *MsgCreatePoolWithCommunityPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePoolWithCommunityPool) XXX_Merge(src proto.Message)
- func (m *MsgCreatePoolWithCommunityPool) XXX_Size() int
- func (m *MsgCreatePoolWithCommunityPool) XXX_Unmarshal(b []byte) error
- type MsgCreatePoolWithCommunityPoolResponse
- func (*MsgCreatePoolWithCommunityPoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePoolWithCommunityPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePoolWithCommunityPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePoolWithCommunityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePoolWithCommunityPoolResponse) ProtoMessage()
- func (m *MsgCreatePoolWithCommunityPoolResponse) Reset()
- func (m *MsgCreatePoolWithCommunityPoolResponse) Size() (n int)
- func (m *MsgCreatePoolWithCommunityPoolResponse) String() string
- func (m *MsgCreatePoolWithCommunityPoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_Size() int
- func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_Unmarshal(b []byte) error
- type MsgDestroyPool
- func (*MsgDestroyPool) Descriptor() ([]byte, []int)
- func (this *MsgDestroyPool) Equal(that interface{}) bool
- func (msg MsgDestroyPool) GetSignBytes() []byte
- func (msg MsgDestroyPool) GetSigners() []sdk.AccAddress
- func (m *MsgDestroyPool) Marshal() (dAtA []byte, err error)
- func (m *MsgDestroyPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDestroyPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDestroyPool) ProtoMessage()
- func (m *MsgDestroyPool) Reset()
- func (msg MsgDestroyPool) Route() string
- func (m *MsgDestroyPool) Size() (n int)
- func (m *MsgDestroyPool) String() string
- func (msg MsgDestroyPool) Type() string
- func (m *MsgDestroyPool) Unmarshal(dAtA []byte) error
- func (msg MsgDestroyPool) ValidateBasic() error
- func (m *MsgDestroyPool) XXX_DiscardUnknown()
- func (m *MsgDestroyPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDestroyPool) XXX_Merge(src proto.Message)
- func (m *MsgDestroyPool) XXX_Size() int
- func (m *MsgDestroyPool) XXX_Unmarshal(b []byte) error
- type MsgDestroyPoolResponse
- func (*MsgDestroyPoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgDestroyPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDestroyPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDestroyPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDestroyPoolResponse) ProtoMessage()
- func (m *MsgDestroyPoolResponse) Reset()
- func (m *MsgDestroyPoolResponse) Size() (n int)
- func (m *MsgDestroyPoolResponse) String() string
- func (m *MsgDestroyPoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDestroyPoolResponse) XXX_DiscardUnknown()
- func (m *MsgDestroyPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDestroyPoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgDestroyPoolResponse) XXX_Size() int
- func (m *MsgDestroyPoolResponse) XXX_Unmarshal(b []byte) error
- type MsgHarvest
- func (*MsgHarvest) Descriptor() ([]byte, []int)
- func (this *MsgHarvest) Equal(that interface{}) bool
- func (msg MsgHarvest) GetSignBytes() []byte
- func (msg MsgHarvest) GetSigners() []sdk.AccAddress
- func (m *MsgHarvest) Marshal() (dAtA []byte, err error)
- func (m *MsgHarvest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgHarvest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgHarvest) ProtoMessage()
- func (m *MsgHarvest) Reset()
- func (msg MsgHarvest) Route() string
- func (m *MsgHarvest) Size() (n int)
- func (m *MsgHarvest) String() string
- func (msg MsgHarvest) Type() string
- func (m *MsgHarvest) Unmarshal(dAtA []byte) error
- func (msg MsgHarvest) ValidateBasic() error
- func (m *MsgHarvest) XXX_DiscardUnknown()
- func (m *MsgHarvest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgHarvest) XXX_Merge(src proto.Message)
- func (m *MsgHarvest) XXX_Size() int
- func (m *MsgHarvest) XXX_Unmarshal(b []byte) error
- type MsgHarvestResponse
- func (*MsgHarvestResponse) Descriptor() ([]byte, []int)
- func (m *MsgHarvestResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgHarvestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgHarvestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgHarvestResponse) ProtoMessage()
- func (m *MsgHarvestResponse) Reset()
- func (m *MsgHarvestResponse) Size() (n int)
- func (m *MsgHarvestResponse) String() string
- func (m *MsgHarvestResponse) Unmarshal(dAtA []byte) error
- func (m *MsgHarvestResponse) XXX_DiscardUnknown()
- func (m *MsgHarvestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgHarvestResponse) XXX_Merge(src proto.Message)
- func (m *MsgHarvestResponse) XXX_Size() int
- func (m *MsgHarvestResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgStake
- func (*MsgStake) Descriptor() ([]byte, []int)
- func (this *MsgStake) Equal(that interface{}) bool
- func (msg MsgStake) GetSignBytes() []byte
- func (msg MsgStake) GetSigners() []sdk.AccAddress
- func (m *MsgStake) Marshal() (dAtA []byte, err error)
- func (m *MsgStake) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStake) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStake) ProtoMessage()
- func (m *MsgStake) Reset()
- func (msg MsgStake) Route() string
- func (m *MsgStake) Size() (n int)
- func (m *MsgStake) String() string
- func (msg MsgStake) Type() string
- func (m *MsgStake) Unmarshal(dAtA []byte) error
- func (msg MsgStake) ValidateBasic() error
- func (m *MsgStake) XXX_DiscardUnknown()
- func (m *MsgStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStake) XXX_Merge(src proto.Message)
- func (m *MsgStake) XXX_Size() int
- func (m *MsgStake) XXX_Unmarshal(b []byte) error
- type MsgStakeResponse
- func (*MsgStakeResponse) Descriptor() ([]byte, []int)
- func (m *MsgStakeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStakeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStakeResponse) ProtoMessage()
- func (m *MsgStakeResponse) Reset()
- func (m *MsgStakeResponse) Size() (n int)
- func (m *MsgStakeResponse) String() string
- func (m *MsgStakeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStakeResponse) XXX_DiscardUnknown()
- func (m *MsgStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStakeResponse) XXX_Merge(src proto.Message)
- func (m *MsgStakeResponse) XXX_Size() int
- func (m *MsgStakeResponse) XXX_Unmarshal(b []byte) error
- type MsgUnstake
- func (*MsgUnstake) Descriptor() ([]byte, []int)
- func (this *MsgUnstake) Equal(that interface{}) bool
- func (msg MsgUnstake) GetSignBytes() []byte
- func (msg MsgUnstake) GetSigners() []sdk.AccAddress
- func (m *MsgUnstake) Marshal() (dAtA []byte, err error)
- func (m *MsgUnstake) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnstake) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnstake) ProtoMessage()
- func (m *MsgUnstake) Reset()
- func (msg MsgUnstake) Route() string
- func (m *MsgUnstake) Size() (n int)
- func (m *MsgUnstake) String() string
- func (msg MsgUnstake) Type() string
- func (m *MsgUnstake) Unmarshal(dAtA []byte) error
- func (msg MsgUnstake) ValidateBasic() error
- func (m *MsgUnstake) XXX_DiscardUnknown()
- func (m *MsgUnstake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnstake) XXX_Merge(src proto.Message)
- func (m *MsgUnstake) XXX_Size() int
- func (m *MsgUnstake) XXX_Unmarshal(b []byte) error
- type MsgUnstakeResponse
- func (*MsgUnstakeResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnstakeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnstakeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnstakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnstakeResponse) ProtoMessage()
- func (m *MsgUnstakeResponse) Reset()
- func (m *MsgUnstakeResponse) Size() (n int)
- func (m *MsgUnstakeResponse) String() string
- func (m *MsgUnstakeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnstakeResponse) XXX_DiscardUnknown()
- func (m *MsgUnstakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnstakeResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnstakeResponse) XXX_Size() int
- func (m *MsgUnstakeResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryFarmPoolRequest
- func (*QueryFarmPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryFarmPoolRequest) GetId() string
- func (m *QueryFarmPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmPoolRequest) ProtoMessage()
- func (m *QueryFarmPoolRequest) Reset()
- func (m *QueryFarmPoolRequest) Size() (n int)
- func (m *QueryFarmPoolRequest) String() string
- func (m *QueryFarmPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFarmPoolRequest) XXX_DiscardUnknown()
- func (m *QueryFarmPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryFarmPoolRequest) XXX_Size() int
- func (m *QueryFarmPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryFarmPoolResponse
- func (*QueryFarmPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryFarmPoolResponse) GetPool() *FarmPoolEntry
- func (m *QueryFarmPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmPoolResponse) ProtoMessage()
- func (m *QueryFarmPoolResponse) Reset()
- func (m *QueryFarmPoolResponse) Size() (n int)
- func (m *QueryFarmPoolResponse) String() string
- func (m *QueryFarmPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFarmPoolResponse) XXX_DiscardUnknown()
- func (m *QueryFarmPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryFarmPoolResponse) XXX_Size() int
- func (m *QueryFarmPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryFarmPoolsRequest
- func (*QueryFarmPoolsRequest) Descriptor() ([]byte, []int)
- func (m *QueryFarmPoolsRequest) GetPagination() *query.PageRequest
- func (m *QueryFarmPoolsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmPoolsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmPoolsRequest) ProtoMessage()
- func (m *QueryFarmPoolsRequest) Reset()
- func (m *QueryFarmPoolsRequest) Size() (n int)
- func (m *QueryFarmPoolsRequest) String() string
- func (m *QueryFarmPoolsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFarmPoolsRequest) XXX_DiscardUnknown()
- func (m *QueryFarmPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmPoolsRequest) XXX_Merge(src proto.Message)
- func (m *QueryFarmPoolsRequest) XXX_Size() int
- func (m *QueryFarmPoolsRequest) XXX_Unmarshal(b []byte) error
- type QueryFarmPoolsResponse
- func (*QueryFarmPoolsResponse) Descriptor() ([]byte, []int)
- func (m *QueryFarmPoolsResponse) GetPagination() *query.PageResponse
- func (m *QueryFarmPoolsResponse) GetPools() []*FarmPoolEntry
- func (m *QueryFarmPoolsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmPoolsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmPoolsResponse) ProtoMessage()
- func (m *QueryFarmPoolsResponse) Reset()
- func (m *QueryFarmPoolsResponse) Size() (n int)
- func (m *QueryFarmPoolsResponse) String() string
- func (m *QueryFarmPoolsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFarmPoolsResponse) XXX_DiscardUnknown()
- func (m *QueryFarmPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmPoolsResponse) XXX_Merge(src proto.Message)
- func (m *QueryFarmPoolsResponse) XXX_Size() int
- func (m *QueryFarmPoolsResponse) XXX_Unmarshal(b []byte) error
- type QueryFarmerRequest
- func (*QueryFarmerRequest) Descriptor() ([]byte, []int)
- func (m *QueryFarmerRequest) GetFarmer() string
- func (m *QueryFarmerRequest) GetPoolId() string
- func (m *QueryFarmerRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerRequest) ProtoMessage()
- func (m *QueryFarmerRequest) Reset()
- func (m *QueryFarmerRequest) Size() (n int)
- func (m *QueryFarmerRequest) String() string
- func (m *QueryFarmerRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerRequest) XXX_DiscardUnknown()
- func (m *QueryFarmerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerRequest) XXX_Merge(src proto.Message)
- func (m *QueryFarmerRequest) XXX_Size() int
- func (m *QueryFarmerRequest) XXX_Unmarshal(b []byte) error
- type QueryFarmerResponse
- func (*QueryFarmerResponse) Descriptor() ([]byte, []int)
- func (m *QueryFarmerResponse) GetHeight() int64
- func (m *QueryFarmerResponse) GetList() []*LockedInfo
- func (m *QueryFarmerResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFarmerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFarmerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFarmerResponse) ProtoMessage()
- func (m *QueryFarmerResponse) Reset()
- func (m *QueryFarmerResponse) Size() (n int)
- func (m *QueryFarmerResponse) String() string
- func (m *QueryFarmerResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFarmerResponse) XXX_DiscardUnknown()
- func (m *QueryFarmerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFarmerResponse) XXX_Merge(src proto.Message)
- func (m *QueryFarmerResponse) XXX_Size() int
- func (m *QueryFarmerResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RewardRule
- func (*RewardRule) Descriptor() ([]byte, []int)
- func (this *RewardRule) Equal(that interface{}) bool
- func (m *RewardRule) Marshal() (dAtA []byte, err error)
- func (m *RewardRule) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardRule) ProtoMessage()
- func (m *RewardRule) Reset()
- func (m *RewardRule) Size() (n int)
- func (m *RewardRule) String() string
- func (m *RewardRule) Unmarshal(dAtA []byte) error
- func (m *RewardRule) XXX_DiscardUnknown()
- func (m *RewardRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardRule) XXX_Merge(src proto.Message)
- func (m *RewardRule) XXX_Size() int
- func (m *RewardRule) XXX_Unmarshal(b []byte) error
- type RewardRules
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AdjustPool(ctx context.Context, req *MsgAdjustPool) (*MsgAdjustPoolResponse, error)
- func (*UnimplementedMsgServer) CreatePool(ctx context.Context, req *MsgCreatePool) (*MsgCreatePoolResponse, error)
- func (*UnimplementedMsgServer) CreatePoolWithCommunityPool(ctx context.Context, req *MsgCreatePoolWithCommunityPool) (*MsgCreatePoolWithCommunityPoolResponse, error)
- func (*UnimplementedMsgServer) DestroyPool(ctx context.Context, req *MsgDestroyPool) (*MsgDestroyPoolResponse, error)
- func (*UnimplementedMsgServer) Harvest(ctx context.Context, req *MsgHarvest) (*MsgHarvestResponse, error)
- func (*UnimplementedMsgServer) Stake(ctx context.Context, req *MsgStake) (*MsgStakeResponse, error)
- func (*UnimplementedMsgServer) Unstake(ctx context.Context, req *MsgUnstake) (*MsgUnstakeResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) FarmPool(ctx context.Context, req *QueryFarmPoolRequest) (*QueryFarmPoolResponse, error)
- func (*UnimplementedQueryServer) FarmPools(ctx context.Context, req *QueryFarmPoolsRequest) (*QueryFarmPoolsResponse, error)
- func (*UnimplementedQueryServer) Farmer(ctx context.Context, req *QueryFarmerRequest) (*QueryFarmerResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- type ValidateLPToken
Constants ¶
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
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" )
nolint
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" )
const (
// MaxDescriptionLength length of the service and author description
MaxDescriptionLength = 280
)
const (
ProposalTypeCreateFarmPool string = "CommunityPoolCreateFarm"
)
Variables ¶
var ( ErrExpiredHeight = sdkerrors.Register(ModuleName, 2, "expired block height") ErrInvalidLPToken = sdkerrors.Register(ModuleName, 3, "invalid lp token denom") ErrNotMatch = sdkerrors.Register(ModuleName, 4, "the data does not match") ErrPoolExpired = sdkerrors.Register(ModuleName, 5, "the farm pool has expired") ErrPoolNotStart = sdkerrors.Register(ModuleName, 6, "the farm pool don't start") ErrPoolExist = sdkerrors.Register(ModuleName, 7, "the farm pool already exist") ErrPoolNotFound = sdkerrors.Register(ModuleName, 8, "the farm pool does not exist") ErrInvalidOperate = sdkerrors.Register(ModuleName, 9, "invalid operate") ErrFarmerNotFound = sdkerrors.Register(ModuleName, 10, "the farmer does not exist") ErrInvalidPoolId = sdkerrors.Register(ModuleName, 11, "invalid pool id") ErrInvalidDescription = sdkerrors.Register(ModuleName, 12, "invalid pool description, length must be less than or equal to 280") ErrInvalidAppend = sdkerrors.Register(ModuleName, 13, "cannot add new token as a reward") ErrInvalidRewardRule = sdkerrors.Register(ModuleName, 14, "invalid reward rule") ErrAllEmpty = sdkerrors.Register(ModuleName, 15, "shouldn't all be empty") ErrBadDistribution = sdkerrors.Register(ModuleName, 16, "community pool does not have sufficient coins to distribute") ErrInvalidRefund = sdkerrors.Register(ModuleName, 17, "invalid refund amount") ErrInvalidProposal = sdkerrors.Register(ModuleName, 18, "invalid proposal") )
farm module sentinel errors
var ( ErrInvalidLengthFarm = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFarm = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFarm = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( 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} )
var ( DefaultPoolCreationFee = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(5000)) // 5000stake DefaulttTaxRate = sdk.NewDecWithPrec(4, 1) // 0.4 (40%) DefaultMaxRewardCategories = uint32(2) )
Farm params default values
var ( KeyPoolCreationFee = []byte("CreatePoolFee") KeyTaxRate = []byte("TaxRate") // fee key KeyMaxRewardCategories = []byte("MaxRewardCategories") )
Keys for parameter access nolint
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func KeyActiveFarmPool ¶
func KeyEscrowInfo ¶ added in v1.5.2
func KeyFarmInfo ¶
func KeyFarmPool ¶
func KeyFarmPoolSeq ¶ added in v1.5.2
func KeyFarmPoolSeq() []byte
func KeyRewardRule ¶
func MustMarshalPoolId ¶ added in v1.5.2
MustMarshalPoolId return the poolId protobuf code
func MustUnMarshalPoolId ¶ added in v1.5.2
MustUnMarshalPoolId return the poolId
func PrefixActiveFarmPool ¶
func PrefixFarmInfo ¶
func PrefixRewardRule ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the interface
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SetDefaultGenesisState ¶
func SetDefaultGenesisState(state GenesisState)
func ValidateAddress ¶
ValidateAddress validates the address
func ValidateCoins ¶
ValidateCoins validates the coin
func ValidateDescription ¶
ValidateDescription validates the pool name
func ValidateFund ¶ added in v1.5.2
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the provided farm genesis state to ensure the expected invariants holds.
func ValidateLpTokenDenom ¶
ValidateLpTokenDenom validates the lp token denom
func ValidateReward ¶
ValidateReward validates the coin
func ValidatepPoolId ¶ added in v1.5.2
ValidatepPoolId validates the pool id
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI SetModuleAccount(ctx sdk.Context, macc authtypes.ModuleAccountI) }
AccountKeeper defines the expected account keeper (noalias)
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error }
BankKeeper defines the expected bank keeper (noalias)
type CommunityPoolCreateFarmProposal ¶ added in v1.5.2
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 ¶ added in v1.5.2
func (*CommunityPoolCreateFarmProposal) Descriptor() ([]byte, []int)
func (*CommunityPoolCreateFarmProposal) Equal ¶ added in v1.5.2
func (this *CommunityPoolCreateFarmProposal) Equal(that interface{}) bool
func (*CommunityPoolCreateFarmProposal) GetDescription ¶ added in v1.5.2
func (cfp *CommunityPoolCreateFarmProposal) GetDescription() string
func (*CommunityPoolCreateFarmProposal) GetTitle ¶ added in v1.5.2
func (cfp *CommunityPoolCreateFarmProposal) GetTitle() string
func (*CommunityPoolCreateFarmProposal) Marshal ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) Marshal() (dAtA []byte, err error)
func (*CommunityPoolCreateFarmProposal) MarshalTo ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) MarshalTo(dAtA []byte) (int, error)
func (*CommunityPoolCreateFarmProposal) MarshalToSizedBuffer ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CommunityPoolCreateFarmProposal) ProposalRoute ¶ added in v1.5.2
func (cfp *CommunityPoolCreateFarmProposal) ProposalRoute() string
func (*CommunityPoolCreateFarmProposal) ProposalType ¶ added in v1.5.2
func (cfp *CommunityPoolCreateFarmProposal) ProposalType() string
func (*CommunityPoolCreateFarmProposal) ProtoMessage ¶ added in v1.5.2
func (*CommunityPoolCreateFarmProposal) ProtoMessage()
func (*CommunityPoolCreateFarmProposal) Reset ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) Reset()
func (*CommunityPoolCreateFarmProposal) Size ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) Size() (n int)
func (CommunityPoolCreateFarmProposal) String ¶ added in v1.5.2
func (cfp CommunityPoolCreateFarmProposal) String() string
func (*CommunityPoolCreateFarmProposal) Unmarshal ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) Unmarshal(dAtA []byte) error
func (*CommunityPoolCreateFarmProposal) ValidateBasic ¶ added in v1.5.2
func (cfp *CommunityPoolCreateFarmProposal) ValidateBasic() error
func (*CommunityPoolCreateFarmProposal) XXX_DiscardUnknown ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) XXX_DiscardUnknown()
func (*CommunityPoolCreateFarmProposal) XXX_Marshal ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommunityPoolCreateFarmProposal) XXX_Merge ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) XXX_Merge(src proto.Message)
func (*CommunityPoolCreateFarmProposal) XXX_Size ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) XXX_Size() int
func (*CommunityPoolCreateFarmProposal) XXX_Unmarshal ¶ added in v1.5.2
func (m *CommunityPoolCreateFarmProposal) XXX_Unmarshal(b []byte) error
type DistrKeeper ¶ added in v1.5.2
type DistrKeeper interface { GetFeePool(ctx sdk.Context) (feePool distrtypes.FeePool) SetFeePool(ctx sdk.Context, feePool distrtypes.FeePool) }
DistrKeeper defines the expected distribution keeper (noalias)
type EscrowInfo ¶ added in v1.5.2
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"` }
func (*EscrowInfo) Descriptor ¶ added in v1.5.2
func (*EscrowInfo) Descriptor() ([]byte, []int)
func (*EscrowInfo) Equal ¶ added in v1.5.2
func (this *EscrowInfo) Equal(that interface{}) bool
func (*EscrowInfo) Marshal ¶ added in v1.5.2
func (m *EscrowInfo) Marshal() (dAtA []byte, err error)
func (*EscrowInfo) MarshalTo ¶ added in v1.5.2
func (m *EscrowInfo) MarshalTo(dAtA []byte) (int, error)
func (*EscrowInfo) MarshalToSizedBuffer ¶ added in v1.5.2
func (m *EscrowInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EscrowInfo) ProtoMessage ¶ added in v1.5.2
func (*EscrowInfo) ProtoMessage()
func (*EscrowInfo) Reset ¶ added in v1.5.2
func (m *EscrowInfo) Reset()
func (*EscrowInfo) Size ¶ added in v1.5.2
func (m *EscrowInfo) Size() (n int)
func (*EscrowInfo) String ¶ added in v1.5.2
func (m *EscrowInfo) String() string
func (*EscrowInfo) Unmarshal ¶ added in v1.5.2
func (m *EscrowInfo) Unmarshal(dAtA []byte) error
func (*EscrowInfo) XXX_DiscardUnknown ¶ added in v1.5.2
func (m *EscrowInfo) XXX_DiscardUnknown()
func (*EscrowInfo) XXX_Marshal ¶ added in v1.5.2
func (m *EscrowInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EscrowInfo) XXX_Merge ¶ added in v1.5.2
func (m *EscrowInfo) XXX_Merge(src proto.Message)
func (*EscrowInfo) XXX_Size ¶ added in v1.5.2
func (m *EscrowInfo) XXX_Size() int
func (*EscrowInfo) XXX_Unmarshal ¶ added in v1.5.2
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 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=locked,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"locked"` RewardDebt github_com_cosmos_cosmos_sdk_types.Coins `` /* 135-byte string literal not displayed */ }
func (*FarmInfo) Descriptor ¶
func (*FarmInfo) MarshalToSizedBuffer ¶
func (*FarmInfo) ProtoMessage ¶
func (*FarmInfo) ProtoMessage()
func (*FarmInfo) XXX_DiscardUnknown ¶
func (m *FarmInfo) XXX_DiscardUnknown()
func (*FarmInfo) XXX_Marshal ¶
func (*FarmInfo) XXX_Unmarshal ¶
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"` }
func (FarmPool) CaclRewards ¶
func (*FarmPool) Descriptor ¶
func (FarmPool) ExpiredHeight ¶
func (*FarmPool) MarshalToSizedBuffer ¶
func (*FarmPool) ProtoMessage ¶
func (*FarmPool) ProtoMessage()
func (*FarmPool) XXX_DiscardUnknown ¶
func (m *FarmPool) XXX_DiscardUnknown()
func (*FarmPool) XXX_Marshal ¶
func (*FarmPool) XXX_Unmarshal ¶
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 */ }
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 ¶ added in v1.5.2
func (m *FarmPoolEntry) GetId() string
func (*FarmPoolEntry) GetRemainingReward ¶
func (m *FarmPoolEntry) GetRemainingReward() github_com_cosmos_cosmos_sdk_types.Coins
func (*FarmPoolEntry) GetRewardPerBlock ¶
func (m *FarmPoolEntry) GetRewardPerBlock() github_com_cosmos_cosmos_sdk_types.Coins
func (*FarmPoolEntry) GetStartHeight ¶
func (m *FarmPoolEntry) GetStartHeight() int64
func (*FarmPoolEntry) GetTotalReward ¶
func (m *FarmPoolEntry) GetTotalReward() github_com_cosmos_cosmos_sdk_types.Coins
func (*FarmPoolEntry) Marshal ¶
func (m *FarmPoolEntry) Marshal() (dAtA []byte, err 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"` }
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 ¶ added in v1.5.2
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 ¶ added in v1.5.2
func (m *GenesisState) GetSequence() uint64
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type GovKeeper ¶ added in v1.5.2
type GovKeeper interface { SubmitProposal(ctx sdk.Context, content govtypes.Content) (govtypes.Proposal, error) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress, depositAmount sdk.Coins) (bool, error) GetProposal(ctx sdk.Context, proposalID uint64) (govtypes.Proposal, bool) }
GovKeeper defines the expected gov keeper (noalias)
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 */ }
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 ¶ added in v1.5.2
func (m *LockedInfo) GetPoolId() string
func (*LockedInfo) Marshal ¶
func (m *LockedInfo) Marshal() (dAtA []byte, err 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"` }
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) 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) 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 { }
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) }
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"` }
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) MarshalToSizedBuffer ¶
func (m *MsgCreatePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePool) ProtoMessage ¶
func (*MsgCreatePool) ProtoMessage()
func (*MsgCreatePool) Reset ¶
func (m *MsgCreatePool) Reset()
func (*MsgCreatePool) Size ¶
func (m *MsgCreatePool) Size() (n int)
func (*MsgCreatePool) String ¶
func (m *MsgCreatePool) String() string
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 { }
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 ¶ added in v1.5.2
type MsgCreatePoolWithCommunityPool struct { Content CommunityPoolCreateFarmProposal `protobuf:"bytes,1,opt,name=content,proto3" json:"content"` InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `` /* 170-byte string literal not displayed */ Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"` }
func (*MsgCreatePoolWithCommunityPool) Descriptor ¶ added in v1.5.2
func (*MsgCreatePoolWithCommunityPool) Descriptor() ([]byte, []int)
func (*MsgCreatePoolWithCommunityPool) Equal ¶ added in v1.5.2
func (this *MsgCreatePoolWithCommunityPool) Equal(that interface{}) bool
func (MsgCreatePoolWithCommunityPool) GetSignBytes ¶ added in v1.5.2
func (msg MsgCreatePoolWithCommunityPool) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgCreatePoolWithCommunityPool) GetSigners ¶ added in v1.5.2
func (msg MsgCreatePoolWithCommunityPool) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgCreatePoolWithCommunityPool) Marshal ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) Marshal() (dAtA []byte, err error)
func (*MsgCreatePoolWithCommunityPool) MarshalTo ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePoolWithCommunityPool) MarshalToSizedBuffer ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePoolWithCommunityPool) ProtoMessage ¶ added in v1.5.2
func (*MsgCreatePoolWithCommunityPool) ProtoMessage()
func (*MsgCreatePoolWithCommunityPool) Reset ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) Reset()
func (MsgCreatePoolWithCommunityPool) Route ¶ added in v1.5.2
func (msg MsgCreatePoolWithCommunityPool) Route() string
----------------------------------------------------------------------------- Route implements Msg
func (*MsgCreatePoolWithCommunityPool) Size ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) Size() (n int)
func (*MsgCreatePoolWithCommunityPool) String ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) String() string
func (MsgCreatePoolWithCommunityPool) Type ¶ added in v1.5.2
func (msg MsgCreatePoolWithCommunityPool) Type() string
Type implements Msg
func (*MsgCreatePoolWithCommunityPool) Unmarshal ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) Unmarshal(dAtA []byte) error
func (MsgCreatePoolWithCommunityPool) ValidateBasic ¶ added in v1.5.2
func (msg MsgCreatePoolWithCommunityPool) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgCreatePoolWithCommunityPool) XXX_DiscardUnknown ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) XXX_DiscardUnknown()
func (*MsgCreatePoolWithCommunityPool) XXX_Marshal ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePoolWithCommunityPool) XXX_Merge ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) XXX_Merge(src proto.Message)
func (*MsgCreatePoolWithCommunityPool) XXX_Size ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) XXX_Size() int
func (*MsgCreatePoolWithCommunityPool) XXX_Unmarshal ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPool) XXX_Unmarshal(b []byte) error
type MsgCreatePoolWithCommunityPoolResponse ¶ added in v1.5.2
type MsgCreatePoolWithCommunityPoolResponse struct { }
func (*MsgCreatePoolWithCommunityPoolResponse) Descriptor ¶ added in v1.5.2
func (*MsgCreatePoolWithCommunityPoolResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePoolWithCommunityPoolResponse) Marshal ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePoolWithCommunityPoolResponse) MarshalTo ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePoolWithCommunityPoolResponse) MarshalToSizedBuffer ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePoolWithCommunityPoolResponse) ProtoMessage ¶ added in v1.5.2
func (*MsgCreatePoolWithCommunityPoolResponse) ProtoMessage()
func (*MsgCreatePoolWithCommunityPoolResponse) Reset ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) Reset()
func (*MsgCreatePoolWithCommunityPoolResponse) Size ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) Size() (n int)
func (*MsgCreatePoolWithCommunityPoolResponse) String ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) String() string
func (*MsgCreatePoolWithCommunityPoolResponse) Unmarshal ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePoolWithCommunityPoolResponse) XXX_DiscardUnknown ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_DiscardUnknown()
func (*MsgCreatePoolWithCommunityPoolResponse) XXX_Marshal ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePoolWithCommunityPoolResponse) XXX_Merge ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePoolWithCommunityPoolResponse) XXX_Size ¶ added in v1.5.2
func (m *MsgCreatePoolWithCommunityPoolResponse) XXX_Size() int
func (*MsgCreatePoolWithCommunityPoolResponse) XXX_Unmarshal ¶ added in v1.5.2
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"` }
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) 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) 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 { }
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"` }
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) 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) 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"`
}
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) }
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"` }
func (*MsgStake) Descriptor ¶
func (MsgStake) GetSignBytes ¶
GetSignBytes implements Msg
func (MsgStake) GetSigners ¶
func (msg MsgStake) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgStake) MarshalToSizedBuffer ¶
func (*MsgStake) ProtoMessage ¶
func (*MsgStake) ProtoMessage()
func (MsgStake) Route ¶
----------------------------------------------------------------------------- Route implements Msg
func (MsgStake) ValidateBasic ¶
ValidateBasic implements Msg
func (*MsgStake) XXX_DiscardUnknown ¶
func (m *MsgStake) XXX_DiscardUnknown()
func (*MsgStake) XXX_Marshal ¶
func (*MsgStake) XXX_Unmarshal ¶
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"`
}
func (*MsgStakeResponse) Descriptor ¶
func (*MsgStakeResponse) Descriptor() ([]byte, []int)
func (*MsgStakeResponse) Marshal ¶
func (m *MsgStakeResponse) Marshal() (dAtA []byte, err error)
func (*MsgStakeResponse) MarshalToSizedBuffer ¶
func (m *MsgStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStakeResponse) ProtoMessage ¶
func (*MsgStakeResponse) ProtoMessage()
func (*MsgStakeResponse) Reset ¶
func (m *MsgStakeResponse) Reset()
func (*MsgStakeResponse) Size ¶
func (m *MsgStakeResponse) Size() (n int)
func (*MsgStakeResponse) String ¶
func (m *MsgStakeResponse) String() string
func (*MsgStakeResponse) Unmarshal ¶
func (m *MsgStakeResponse) Unmarshal(dAtA []byte) error
func (*MsgStakeResponse) XXX_DiscardUnknown ¶
func (m *MsgStakeResponse) XXX_DiscardUnknown()
func (*MsgStakeResponse) XXX_Marshal ¶
func (m *MsgStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStakeResponse) XXX_Merge ¶
func (m *MsgStakeResponse) XXX_Merge(src proto.Message)
func (*MsgStakeResponse) XXX_Size ¶
func (m *MsgStakeResponse) XXX_Size() int
func (*MsgStakeResponse) XXX_Unmarshal ¶
func (m *MsgStakeResponse) XXX_Unmarshal(b []byte) error
type MsgUnstake ¶
type MsgUnstake struct { 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"` }
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) 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) 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"`
}
func (*MsgUnstakeResponse) Descriptor ¶
func (*MsgUnstakeResponse) Descriptor() ([]byte, []int)
func (*MsgUnstakeResponse) Marshal ¶
func (m *MsgUnstakeResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnstakeResponse) MarshalTo ¶
func (m *MsgUnstakeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnstakeResponse) MarshalToSizedBuffer ¶
func (m *MsgUnstakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnstakeResponse) ProtoMessage ¶
func (*MsgUnstakeResponse) ProtoMessage()
func (*MsgUnstakeResponse) Reset ¶
func (m *MsgUnstakeResponse) Reset()
func (*MsgUnstakeResponse) Size ¶
func (m *MsgUnstakeResponse) Size() (n int)
func (*MsgUnstakeResponse) String ¶
func (m *MsgUnstakeResponse) String() string
func (*MsgUnstakeResponse) Unmarshal ¶
func (m *MsgUnstakeResponse) Unmarshal(dAtA []byte) error
func (*MsgUnstakeResponse) XXX_DiscardUnknown ¶
func (m *MsgUnstakeResponse) XXX_DiscardUnknown()
func (*MsgUnstakeResponse) XXX_Marshal ¶
func (m *MsgUnstakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnstakeResponse) XXX_Merge ¶
func (m *MsgUnstakeResponse) XXX_Merge(src proto.Message)
func (*MsgUnstakeResponse) XXX_Size ¶
func (m *MsgUnstakeResponse) XXX_Size() int
func (*MsgUnstakeResponse) XXX_Unmarshal ¶
func (m *MsgUnstakeResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { 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 github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=tax_rate,json=taxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"tax_rate"` }
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs
ParamSetPairs implements paramstypes.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { FarmPools(ctx context.Context, in *QueryFarmPoolsRequest, opts ...grpc.CallOption) (*QueryFarmPoolsResponse, error) FarmPool(ctx context.Context, in *QueryFarmPoolRequest, opts ...grpc.CallOption) (*QueryFarmPoolResponse, error) Farmer(ctx context.Context, in *QueryFarmerRequest, opts ...grpc.CallOption) (*QueryFarmerResponse, error) // Params queries the htlc 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"`
}
func (*QueryFarmPoolRequest) Descriptor ¶
func (*QueryFarmPoolRequest) Descriptor() ([]byte, []int)
func (*QueryFarmPoolRequest) GetId ¶ added in v1.5.2
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"`
}
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"`
}
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"` }
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"` }
func (*QueryFarmerRequest) Descriptor ¶
func (*QueryFarmerRequest) Descriptor() ([]byte, []int)
func (*QueryFarmerRequest) GetFarmer ¶
func (m *QueryFarmerRequest) GetFarmer() string
func (*QueryFarmerRequest) GetPoolId ¶ added in v1.5.2
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"` }
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 { }
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { FarmPools(context.Context, *QueryFarmPoolsRequest) (*QueryFarmPoolsResponse, error) FarmPool(context.Context, *QueryFarmPoolRequest) (*QueryFarmPoolResponse, error) Farmer(context.Context, *QueryFarmerRequest) (*QueryFarmerResponse, error) // Params queries the htlc 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 github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */ RemainingReward github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ RewardPerBlock github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ }
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) 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) RewardsPerBlock ¶
func (rs RewardRules) RewardsPerBlock() (coins sdk.Coins)
func (RewardRules) TotalReward ¶ added in v1.5.2
func (rs RewardRules) TotalReward() (total sdk.Coins)
func (RewardRules) UpdateWith ¶
func (rs RewardRules) UpdateWith(rewardPerBlock sdk.Coins) RewardRules
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AdjustPool ¶
func (*UnimplementedMsgServer) AdjustPool(ctx context.Context, req *MsgAdjustPool) (*MsgAdjustPoolResponse, error)
func (*UnimplementedMsgServer) CreatePool ¶
func (*UnimplementedMsgServer) CreatePool(ctx context.Context, req *MsgCreatePool) (*MsgCreatePoolResponse, error)
func (*UnimplementedMsgServer) CreatePoolWithCommunityPool ¶ added in v1.5.2
func (*UnimplementedMsgServer) CreatePoolWithCommunityPool(ctx context.Context, req *MsgCreatePoolWithCommunityPool) (*MsgCreatePoolWithCommunityPoolResponse, error)
func (*UnimplementedMsgServer) DestroyPool ¶
func (*UnimplementedMsgServer) DestroyPool(ctx context.Context, req *MsgDestroyPool) (*MsgDestroyPoolResponse, error)
func (*UnimplementedMsgServer) Harvest ¶
func (*UnimplementedMsgServer) Harvest(ctx context.Context, req *MsgHarvest) (*MsgHarvestResponse, error)
func (*UnimplementedMsgServer) Stake ¶
func (*UnimplementedMsgServer) Stake(ctx context.Context, req *MsgStake) (*MsgStakeResponse, error)
func (*UnimplementedMsgServer) Unstake ¶
func (*UnimplementedMsgServer) Unstake(ctx context.Context, req *MsgUnstake) (*MsgUnstakeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) FarmPool ¶
func (*UnimplementedQueryServer) FarmPool(ctx context.Context, req *QueryFarmPoolRequest) (*QueryFarmPoolResponse, error)
func (*UnimplementedQueryServer) FarmPools ¶
func (*UnimplementedQueryServer) FarmPools(ctx context.Context, req *QueryFarmPoolsRequest) (*QueryFarmPoolsResponse, error)
func (*UnimplementedQueryServer) Farmer ¶
func (*UnimplementedQueryServer) Farmer(ctx context.Context, req *QueryFarmerRequest) (*QueryFarmerResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)