types

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeLiquidFarm              = "liquid_farm"
	EventTypeLiquidUnfarm            = "liquid_unfarm"
	EventTypeLiquidUnfarmAndWithdraw = "liquid_unfarm_and_withdraw"
	EventTypePlaceBid                = "place_bid"
	EventTypeRefundBid               = "refund_bid"

	AttributeKeyPoolId                   = "pool_id"
	AttributeKeyAuctionId                = "auction_id"
	AttributeKeyBidId                    = "bid_id"
	AttributeKeyFarmer                   = "farmer"
	AttributeKeyLiquidFarmReserveAddress = "liquid_farm_reserve_address"
	AttributeKeyBidder                   = "bidder"
	AttributeKeyFarmingCoin              = "farming_coin"
	AttributeKeyMintedCoin               = "minted_coin"
	AttributeKeyBiddingCoin              = "bidding_coin"
	AttributeKeyUnfarmingCoin            = "unfarming_coin"
	AttributeKeyUnfarmedCoin             = "unfarmed_coin"
	AttributeKeyRefundCoin               = "refund_coin"
)

Event types for the module.

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

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

	// RouterKey is the message route key
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgLiquidFarm              = "liquid_farm"
	TypeMsgLiquidUnfarm            = "liquid_unfarm"
	TypeMsgLiquidUnfarmAndWithdraw = "liquid_unfarm_and_withdraw"
	TypeMsgPlaceBid                = "place_bid"
	TypeMsgRefundBid               = "refund_bid"
	TypeMsgAdvanceAuction          = "advance_auction"
)

Message types for the module

View Source
const (
	PayingReserveAddressPrefix           string = "PayingReserveAddress"
	WithdrawnRewardsReserveAddressPrefix string = "WithdrawnRewardsReserveAddress"
	ModuleAddressNameSplitter            string = "|"

	// The module uses the address type of 32 bytes length, but it can always be changed depending on Cosmos SDK's direction.
	ReserveAddressType = farmingtypes.AddressType32Bytes
)
View Source
const (
	LiquidFarmReserveAccPrefix string = "LiquidFarmReserveAcc"
)

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	LastRewardsAuctionEndTimeKey  = []byte{0xe1} // key to retrieve the auction end time
	LastRewardsAuctionIdKeyPrefix = []byte{0xe2}
	LiquidFarmKeyPrefix           = []byte{0xe3}
	CompoundingRewardsKeyPrefix   = []byte{0xe4}
	RewardsAuctionKeyPrefix       = []byte{0xe5}
	BidKeyPrefix                  = []byte{0xe6}
	WinningBidKeyPrefix           = []byte{0xe7}
)

keys for the store prefixes

View Source
var (
	ErrInvalidLengthLiquidfarming        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLiquidfarming          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLiquidfarming = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyFeeCollector           = []byte("FeeCollector")
	KeyRewardsAuctionDuration = []byte("RewardsAuctionDuration")
	KeyLiquidFarms            = []byte("LiquidFarms")
)

Parameter store keys

View Source
var (
	DefaultFeeCollector           = sdk.AccAddress(address.Module(ModuleName, []byte("FeeCollector")))
	DefaultRewardsAuctionDuration = time.Hour * 8
	DefaultLiquidFarms            = []LiquidFarm{}
)

Default parameters

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AuctionStatus_name = map[int32]string{
	0: "AUCTION_STATUS_UNSPECIFIED",
	1: "AUCTION_STATUS_STARTED",
	2: "AUCTION_STATUS_FINISHED",
	3: "AUCTION_STATUS_SKIPPED",
}
View Source
var AuctionStatus_value = map[string]int32{
	"AUCTION_STATUS_UNSPECIFIED": 0,
	"AUCTION_STATUS_STARTED":     1,
	"AUCTION_STATUS_FINISHED":    2,
	"AUCTION_STATUS_SKIPPED":     3,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func CalculateLiquidFarmAmount

func CalculateLiquidFarmAmount(
	lfCoinTotalSupplyAmt sdk.Int,
	lpCoinTotalFarmingAmt sdk.Int,
	newFarmingAmt sdk.Int,
) sdk.Int

CalculateLiquidFarmAmount calculates minting liquid farm amount. MintingAmt = LFCoinTotalSupply / LPCoinTotalAmount * LPCoinFarmingAmount

func CalculateLiquidUnfarmAmount

func CalculateLiquidUnfarmAmount(
	lfCoinTotalSupplyAmt sdk.Int,
	lpCoinTotalFarmingAmt sdk.Int,
	unfarmingAmt sdk.Int,
	compoundingRewards sdk.Int,
) sdk.Int

CalculateLiquidUnfarmAmount calculates unfarming amount. UnfarmingAmount = LPCoinTotalAmount - CompoundingRewards / LFCoinTotalSupply * LFCoinUnfarmingAmount

func DeductFees

func DeductFees(rewards sdk.Coins, feeRate sdk.Dec) (deducted sdk.Coins, fees sdk.Coins)

DeductFees deducts rewards by the fee rate.

func GetBidByPoolIdPrefix

func GetBidByPoolIdPrefix(poolId uint64) []byte

GetBidByPoolIdPrefix returns the prefix to iterate all bids by the given pool id.

func GetBidKey

func GetBidKey(poolId uint64, bidder sdk.AccAddress) []byte

GetBidKey returns the store key to retrieve the bid object by the given pool id and bidder address.

func GetCompoundingRewardsKey

func GetCompoundingRewardsKey(poolId uint64) []byte

GetCompoundingRewardsKey returns the store key to retrieve the compounding rewards object by the given pool id.

func GetLastRewardsAuctionIdKey

func GetLastRewardsAuctionIdKey(poolId uint64) []byte

GetLastRewardsAuctionIdKey returns the store key to retrieve the last rewards auction by the given pool id.

func GetLiquidFarmKey

func GetLiquidFarmKey(poolId uint64) []byte

GetLiquidFarmKey returns the store key to retrieve the liquid farm object by the given pool id.

func GetRewardsAuctionKey

func GetRewardsAuctionKey(auctionId, poolId uint64) []byte

GetRewardsAuctionKey returns the store key to retrieve the rewards auction object by the given pool id and auction id.

func GetWinningBidKey

func GetWinningBidKey(auctionId uint64, poolId uint64) []byte

GetWinningBidKey returns the store key to retrieve the winning bid by the given pool id and the auction id.

func LengthPrefixTimeBytes

func LengthPrefixTimeBytes(t time.Time) []byte

LengthPrefixTimeBytes returns length-prefixed bytes representation of time.Time.

func LiquidFarmCoinDenom

func LiquidFarmCoinDenom(poolId uint64) string

LiquidFarmCoinDenom returns a unique liquid farming coin denom for a LiquidFarm.

func LiquidFarmReserveAddress

func LiquidFarmReserveAddress(poolId uint64) sdk.AccAddress

LiquidFarmReserveAddress returns the reserve address for a liquid farm with the given pool id.

func MustMarshalRewardsAuction

func MustMarshalRewardsAuction(cdc codec.BinaryCodec, auction RewardsAuction) []byte

MustMarshalRewardsAuction marshals RewardsAuction and it panics upon failure.

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamKeyTable the param key table for the module

func ParseLiquidFarmCoinDenom

func ParseLiquidFarmCoinDenom(denom string) (poolId uint64, err error)

ParseLiquidFarmCoinDenom parses a LF coin denom and returns its pool id.

func PayingReserveAddress

func PayingReserveAddress(poolId uint64) sdk.AccAddress

PayingReserveAddress creates the paying reserve address in the form of sdk.AccAddress with the given pool id.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the x/liquidfarming interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func WithdrawnRewardsReserveAddress

func WithdrawnRewardsReserveAddress(poolId uint64) sdk.AccAddress

WithdrawnRewardsReserveAddress creates the withdrawn rewards reserve address in the form of sdk.AccAddress with the given pool id.

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected interface needed for the module.

type AuctionStatus

type AuctionStatus int32

AuctionStatus enumerates the valid status of an auction.

const (
	// AUCTION_STATUS_UNSPECIFIED defines the default auction status
	AuctionStatusNil AuctionStatus = 0
	// AUCTION_STATUS_STARTED defines the started auction status
	AuctionStatusStarted AuctionStatus = 1
	// AUCTION_STATUS_FINISHED defines the finished auction status
	AuctionStatusFinished AuctionStatus = 2
	// AUCTION_STATUS_SKIPPED defines the skipped auction status
	AuctionStatusSkipped AuctionStatus = 3
)

func (AuctionStatus) EnumDescriptor

func (AuctionStatus) EnumDescriptor() ([]byte, []int)

func (AuctionStatus) String

func (x AuctionStatus) String() string

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	InputOutputCoins(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed for the module.

type Bid

type Bid struct {
	// pool_id specifies the pool id
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// bidder specifies the bech32-encoded address that places a bid for the auction
	Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
	// amount specifies the amount to place a bid
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
}

Bid defines standard bid for a rewards auction.

func NewBid

func NewBid(poolId uint64, bidder string, amount sdk.Coin) Bid

NewBid creates a new Bid.

func UnmarshalBid

func UnmarshalBid(cdc codec.BinaryCodec, value []byte) (bid Bid, err error)

UnmarshalBid unmarshals bid from a store value.

func (*Bid) Descriptor

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

func (Bid) GetBidder

func (b Bid) GetBidder() sdk.AccAddress

GetBidder returns the bidder address in the form of sdk.AccAddress.

func (*Bid) Marshal

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

func (*Bid) MarshalTo

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

func (*Bid) MarshalToSizedBuffer

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

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) Reset

func (m *Bid) Reset()

func (*Bid) Size

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

func (*Bid) String

func (m *Bid) String() string

func (*Bid) Unmarshal

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

func (Bid) Validate

func (b Bid) Validate() error

Validate validates Bid.

func (*Bid) XXX_DiscardUnknown

func (m *Bid) XXX_DiscardUnknown()

func (*Bid) XXX_Marshal

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

func (*Bid) XXX_Merge

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

func (*Bid) XXX_Size

func (m *Bid) XXX_Size() int

func (*Bid) XXX_Unmarshal

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

type CompoundingRewards

type CompoundingRewards struct {
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

CompoundingRewards records the amount of pool coin that is used for a bidder to place a bid for an auction. It is used internally to calculate unfarm amount.

func (*CompoundingRewards) Descriptor

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

func (*CompoundingRewards) Marshal

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

func (*CompoundingRewards) MarshalTo

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

func (*CompoundingRewards) MarshalToSizedBuffer

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

func (*CompoundingRewards) ProtoMessage

func (*CompoundingRewards) ProtoMessage()

func (*CompoundingRewards) Reset

func (m *CompoundingRewards) Reset()

func (*CompoundingRewards) Size

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

func (*CompoundingRewards) String

func (m *CompoundingRewards) String() string

func (*CompoundingRewards) Unmarshal

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

func (*CompoundingRewards) XXX_DiscardUnknown

func (m *CompoundingRewards) XXX_DiscardUnknown()

func (*CompoundingRewards) XXX_Marshal

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

func (*CompoundingRewards) XXX_Merge

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

func (*CompoundingRewards) XXX_Size

func (m *CompoundingRewards) XXX_Size() int

func (*CompoundingRewards) XXX_Unmarshal

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

type ExchangeRateResponse

type ExchangeRateResponse struct {
	MintRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=mint_rate,json=mintRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"mint_rate"`
	BurnRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=burn_rate,json=burnRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"burn_rate"`
}

func (*ExchangeRateResponse) Descriptor

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

func (*ExchangeRateResponse) Marshal

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

func (*ExchangeRateResponse) MarshalTo

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

func (*ExchangeRateResponse) MarshalToSizedBuffer

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

func (*ExchangeRateResponse) ProtoMessage

func (*ExchangeRateResponse) ProtoMessage()

func (*ExchangeRateResponse) Reset

func (m *ExchangeRateResponse) Reset()

func (*ExchangeRateResponse) Size

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

func (*ExchangeRateResponse) String

func (m *ExchangeRateResponse) String() string

func (*ExchangeRateResponse) Unmarshal

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

func (*ExchangeRateResponse) XXX_DiscardUnknown

func (m *ExchangeRateResponse) XXX_DiscardUnknown()

func (*ExchangeRateResponse) XXX_Marshal

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

func (*ExchangeRateResponse) XXX_Merge

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

func (*ExchangeRateResponse) XXX_Size

func (m *ExchangeRateResponse) XXX_Size() int

func (*ExchangeRateResponse) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params                     Params                       `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	LastRewardsAuctionIdRecord []LastRewardsAuctionIdRecord `` /* 135-byte string literal not displayed */
	LiquidFarms                []LiquidFarm                 `protobuf:"bytes,3,rep,name=liquid_farms,json=liquidFarms,proto3" json:"liquid_farms"`
	RewardsAuctions            []RewardsAuction             `protobuf:"bytes,4,rep,name=rewards_auctions,json=rewardsAuctions,proto3" json:"rewards_auctions"`
	Bids                       []Bid                        `protobuf:"bytes,5,rep,name=bids,proto3" json:"bids"`
	WinningBidRecords          []WinningBidRecord           `protobuf:"bytes,6,rep,name=winning_bid_records,json=winningBidRecords,proto3" json:"winning_bid_records"`
	LastRewardsAuctionEndTime  *time.Time                   `` /* 150-byte string literal not displayed */
}

GenesisState defines the liquidfarming module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 LPFarmKeeper

type LPFarmKeeper interface {
	Farm(ctx sdk.Context, farmerAddr sdk.AccAddress, coin sdk.Coin) (withdrawnRewards sdk.Coins, err error)
	Unfarm(ctx sdk.Context, farmerAddr sdk.AccAddress, coin sdk.Coin) (withdrawnRewards sdk.Coins, err error)
	Harvest(ctx sdk.Context, farmerAddr sdk.AccAddress, denom string) (withdrawnRewards sdk.Coins, err error)
	Rewards(ctx sdk.Context, farmerAddr sdk.AccAddress, denom string) sdk.DecCoins
	GetFarm(ctx sdk.Context, denom string) (farm lpfarmtypes.Farm, found bool)
	GetPosition(ctx sdk.Context, farmerAddr sdk.AccAddress, denom string) (position lpfarmtypes.Position, found bool)
}

LPFarmKeeper defines the expected interface needed for the module.

type LastRewardsAuctionIdRecord

type LastRewardsAuctionIdRecord struct {
	PoolId    uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	AuctionId uint64 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

func (*LastRewardsAuctionIdRecord) Descriptor

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

func (*LastRewardsAuctionIdRecord) Marshal

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

func (*LastRewardsAuctionIdRecord) MarshalTo

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

func (*LastRewardsAuctionIdRecord) MarshalToSizedBuffer

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

func (*LastRewardsAuctionIdRecord) ProtoMessage

func (*LastRewardsAuctionIdRecord) ProtoMessage()

func (*LastRewardsAuctionIdRecord) Reset

func (m *LastRewardsAuctionIdRecord) Reset()

func (*LastRewardsAuctionIdRecord) Size

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

func (*LastRewardsAuctionIdRecord) String

func (m *LastRewardsAuctionIdRecord) String() string

func (*LastRewardsAuctionIdRecord) Unmarshal

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

func (*LastRewardsAuctionIdRecord) XXX_DiscardUnknown

func (m *LastRewardsAuctionIdRecord) XXX_DiscardUnknown()

func (*LastRewardsAuctionIdRecord) XXX_Marshal

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

func (*LastRewardsAuctionIdRecord) XXX_Merge

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

func (*LastRewardsAuctionIdRecord) XXX_Size

func (m *LastRewardsAuctionIdRecord) XXX_Size() int

func (*LastRewardsAuctionIdRecord) XXX_Unmarshal

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

type LiquidFarm

type LiquidFarm struct {
	PoolId        uint64                                 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	MinFarmAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 142-byte string literal not displayed */
	MinBidAmount  github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	FeeRate       github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
}

LiquidFarm defines liquid farm object that provides auto compounding functionality for the liquidity pool and undergoes farming rewards auction process. See the technical spec for more detailed information.

func NewLiquidFarm

func NewLiquidFarm(poolId uint64, minFarmAmt, minBidAmount sdk.Int, feeRate sdk.Dec) LiquidFarm

NewLiquidFarm returns a new LiquidFarm.

func (*LiquidFarm) Descriptor

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

func (*LiquidFarm) Marshal

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

func (*LiquidFarm) MarshalTo

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

func (*LiquidFarm) MarshalToSizedBuffer

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

func (LiquidFarm) MarshalYAML

func (l LiquidFarm) MarshalYAML() (interface{}, error)

MarshalYAML returns the YAML representation of a LiquidFarm.

func (*LiquidFarm) ProtoMessage

func (*LiquidFarm) ProtoMessage()

func (*LiquidFarm) Reset

func (m *LiquidFarm) Reset()

func (*LiquidFarm) Size

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

func (LiquidFarm) String

func (l LiquidFarm) String() string

String returns a human-readable string representation of the LiquidFarm.

func (*LiquidFarm) Unmarshal

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

func (LiquidFarm) Validate

func (l LiquidFarm) Validate() error

Validate validates LiquidFarm.

func (*LiquidFarm) XXX_DiscardUnknown

func (m *LiquidFarm) XXX_DiscardUnknown()

func (*LiquidFarm) XXX_Marshal

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

func (*LiquidFarm) XXX_Merge

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

func (*LiquidFarm) XXX_Size

func (m *LiquidFarm) XXX_Size() int

func (*LiquidFarm) XXX_Unmarshal

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

type LiquidFarmResponse

type LiquidFarmResponse struct {
	PoolId                   uint64                                 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	LiquidFarmReserveAddress string                                 `` /* 137-byte string literal not displayed */
	LFCoinDenom              string                                 `protobuf:"bytes,3,opt,name=lf_coin_denom,json=lfCoinDenom,proto3" json:"lf_coin_denom,omitempty"`
	LFCoinSupply             github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	PoolCoinDenom            string                                 `protobuf:"bytes,5,opt,name=pool_coin_denom,json=poolCoinDenom,proto3" json:"pool_coin_denom,omitempty"`
	PoolCoinFarmingAmount    github_com_cosmos_cosmos_sdk_types.Int `` /* 168-byte string literal not displayed */
	MinFarmAmount            github_com_cosmos_cosmos_sdk_types.Int `` /* 142-byte string literal not displayed */
	MinBidAmount             github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
}

LiquidFarmResponse is response type for the Query/LiquidFarm RPC method.

func (*LiquidFarmResponse) Descriptor

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

func (*LiquidFarmResponse) GetLFCoinDenom

func (m *LiquidFarmResponse) GetLFCoinDenom() string

func (*LiquidFarmResponse) GetLiquidFarmReserveAddress

func (m *LiquidFarmResponse) GetLiquidFarmReserveAddress() string

func (*LiquidFarmResponse) GetPoolCoinDenom

func (m *LiquidFarmResponse) GetPoolCoinDenom() string

func (*LiquidFarmResponse) GetPoolId

func (m *LiquidFarmResponse) GetPoolId() uint64

func (*LiquidFarmResponse) Marshal

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

func (*LiquidFarmResponse) MarshalTo

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

func (*LiquidFarmResponse) MarshalToSizedBuffer

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

func (*LiquidFarmResponse) ProtoMessage

func (*LiquidFarmResponse) ProtoMessage()

func (*LiquidFarmResponse) Reset

func (m *LiquidFarmResponse) Reset()

func (*LiquidFarmResponse) Size

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

func (*LiquidFarmResponse) String

func (m *LiquidFarmResponse) String() string

func (*LiquidFarmResponse) Unmarshal

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

func (*LiquidFarmResponse) XXX_DiscardUnknown

func (m *LiquidFarmResponse) XXX_DiscardUnknown()

func (*LiquidFarmResponse) XXX_Marshal

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

func (*LiquidFarmResponse) XXX_Merge

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

func (*LiquidFarmResponse) XXX_Size

func (m *LiquidFarmResponse) XXX_Size() int

func (*LiquidFarmResponse) XXX_Unmarshal

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

type LiquidityKeeper

type LiquidityKeeper interface {
	GetPool(ctx sdk.Context, id uint64) (pool liquiditytypes.Pool, found bool)
	Withdraw(ctx sdk.Context, msg *liquiditytypes.MsgWithdraw) (liquiditytypes.WithdrawRequest, error)
}

LiquidityKeeper defines the expected interface needed for the module.

type MsgAdvanceAuction

type MsgAdvanceAuction struct {
	// requester defines the bech32-encoded address of the requester
	Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"`
}

MsgAdvanceAuction defines a message to advance rewards auction by one.

func NewMsgAdvanceAuction

func NewMsgAdvanceAuction(requesterAcc sdk.AccAddress) *MsgAdvanceAuction

NewMsgAdvanceAuction creates a new MsgAdvanceAuction.

func (*MsgAdvanceAuction) Descriptor

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

func (MsgAdvanceAuction) GetSignBytes

func (msg MsgAdvanceAuction) GetSignBytes() []byte

func (MsgAdvanceAuction) GetSigners

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

func (*MsgAdvanceAuction) Marshal

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

func (*MsgAdvanceAuction) MarshalTo

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

func (*MsgAdvanceAuction) MarshalToSizedBuffer

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

func (*MsgAdvanceAuction) ProtoMessage

func (*MsgAdvanceAuction) ProtoMessage()

func (*MsgAdvanceAuction) Reset

func (m *MsgAdvanceAuction) Reset()

func (MsgAdvanceAuction) Route

func (msg MsgAdvanceAuction) Route() string

func (*MsgAdvanceAuction) Size

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

func (*MsgAdvanceAuction) String

func (m *MsgAdvanceAuction) String() string

func (MsgAdvanceAuction) Type

func (msg MsgAdvanceAuction) Type() string

func (*MsgAdvanceAuction) Unmarshal

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

func (MsgAdvanceAuction) ValidateBasic

func (msg MsgAdvanceAuction) ValidateBasic() error

func (*MsgAdvanceAuction) XXX_DiscardUnknown

func (m *MsgAdvanceAuction) XXX_DiscardUnknown()

func (*MsgAdvanceAuction) XXX_Marshal

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

func (*MsgAdvanceAuction) XXX_Merge

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

func (*MsgAdvanceAuction) XXX_Size

func (m *MsgAdvanceAuction) XXX_Size() int

func (*MsgAdvanceAuction) XXX_Unmarshal

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

type MsgAdvanceAuctionResponse

type MsgAdvanceAuctionResponse struct {
}

MsgAdvanceAuctionResponse defines the Msg/AdvanceAuction response type.

func (*MsgAdvanceAuctionResponse) Descriptor

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

func (*MsgAdvanceAuctionResponse) Marshal

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

func (*MsgAdvanceAuctionResponse) MarshalTo

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

func (*MsgAdvanceAuctionResponse) MarshalToSizedBuffer

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

func (*MsgAdvanceAuctionResponse) ProtoMessage

func (*MsgAdvanceAuctionResponse) ProtoMessage()

func (*MsgAdvanceAuctionResponse) Reset

func (m *MsgAdvanceAuctionResponse) Reset()

func (*MsgAdvanceAuctionResponse) Size

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

func (*MsgAdvanceAuctionResponse) String

func (m *MsgAdvanceAuctionResponse) String() string

func (*MsgAdvanceAuctionResponse) Unmarshal

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

func (*MsgAdvanceAuctionResponse) XXX_DiscardUnknown

func (m *MsgAdvanceAuctionResponse) XXX_DiscardUnknown()

func (*MsgAdvanceAuctionResponse) XXX_Marshal

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

func (*MsgAdvanceAuctionResponse) XXX_Merge

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

func (*MsgAdvanceAuctionResponse) XXX_Size

func (m *MsgAdvanceAuctionResponse) XXX_Size() int

func (*MsgAdvanceAuctionResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// LiquidFarm defines a method for farming pool coin for a liquid farm
	LiquidFarm(ctx context.Context, in *MsgLiquidFarm, opts ...grpc.CallOption) (*MsgLiquidFarmResponse, error)
	// LiquidUnfarm defines a method for unfarming amount of LFCoin
	LiquidUnfarm(ctx context.Context, in *MsgLiquidUnfarm, opts ...grpc.CallOption) (*MsgLiquidUnfarmResponse, error)
	// LiquidUnfarmAndWithdraw defines a method for unfarming amount of LFCoin and withdraw pool coin from the pool
	LiquidUnfarmAndWithdraw(ctx context.Context, in *MsgLiquidUnfarmAndWithdraw, opts ...grpc.CallOption) (*MsgLiquidUnfarmAndWithdrawResponse, error)
	// PlaceBid defines a method for placing a bid for a rewards auction
	PlaceBid(ctx context.Context, in *MsgPlaceBid, opts ...grpc.CallOption) (*MsgPlaceBidResponse, error)
	// RefundBid defines a method for refunding the bid that is not winning for the auction
	RefundBid(ctx context.Context, in *MsgRefundBid, opts ...grpc.CallOption) (*MsgRefundBidResponse, error)
	// AdvanceAuction defines a method for advancing rewards auction by one.
	// This Msg is defined just for testing purpose and it shouldn't be used in production.
	AdvanceAuction(ctx context.Context, in *MsgAdvanceAuction, opts ...grpc.CallOption) (*MsgAdvanceAuctionResponse, 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 MsgLiquidFarm

type MsgLiquidFarm struct {
	PoolId      uint64     `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Farmer      string     `protobuf:"bytes,2,opt,name=farmer,proto3" json:"farmer,omitempty"`
	FarmingCoin types.Coin `` /* 137-byte string literal not displayed */
}

MsgLiquidFarm defines a SDK message for farming pool coin for a liquid farm.

func NewMsgLiquidFarm

func NewMsgLiquidFarm(poolId uint64, farmer string, farmingCoin sdk.Coin) *MsgLiquidFarm

NewMsgLiquidFarm creates a new MsgLiquidFarm

func (*MsgLiquidFarm) Descriptor

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

func (MsgLiquidFarm) GetFarmer

func (msg MsgLiquidFarm) GetFarmer() sdk.AccAddress

func (MsgLiquidFarm) GetSignBytes

func (msg MsgLiquidFarm) GetSignBytes() []byte

func (MsgLiquidFarm) GetSigners

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

func (*MsgLiquidFarm) Marshal

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

func (*MsgLiquidFarm) MarshalTo

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

func (*MsgLiquidFarm) MarshalToSizedBuffer

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

func (*MsgLiquidFarm) ProtoMessage

func (*MsgLiquidFarm) ProtoMessage()

func (*MsgLiquidFarm) Reset

func (m *MsgLiquidFarm) Reset()

func (MsgLiquidFarm) Route

func (msg MsgLiquidFarm) Route() string

func (*MsgLiquidFarm) Size

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

func (*MsgLiquidFarm) String

func (m *MsgLiquidFarm) String() string

func (MsgLiquidFarm) Type

func (msg MsgLiquidFarm) Type() string

func (*MsgLiquidFarm) Unmarshal

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

func (MsgLiquidFarm) ValidateBasic

func (msg MsgLiquidFarm) ValidateBasic() error

func (*MsgLiquidFarm) XXX_DiscardUnknown

func (m *MsgLiquidFarm) XXX_DiscardUnknown()

func (*MsgLiquidFarm) XXX_Marshal

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

func (*MsgLiquidFarm) XXX_Merge

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

func (*MsgLiquidFarm) XXX_Size

func (m *MsgLiquidFarm) XXX_Size() int

func (*MsgLiquidFarm) XXX_Unmarshal

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

type MsgLiquidFarmResponse

type MsgLiquidFarmResponse struct {
}

MsgLiquidFarmResponse defines the MsgLiquidFarmResponse response type.

func (*MsgLiquidFarmResponse) Descriptor

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

func (*MsgLiquidFarmResponse) Marshal

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

func (*MsgLiquidFarmResponse) MarshalTo

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

func (*MsgLiquidFarmResponse) MarshalToSizedBuffer

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

func (*MsgLiquidFarmResponse) ProtoMessage

func (*MsgLiquidFarmResponse) ProtoMessage()

func (*MsgLiquidFarmResponse) Reset

func (m *MsgLiquidFarmResponse) Reset()

func (*MsgLiquidFarmResponse) Size

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

func (*MsgLiquidFarmResponse) String

func (m *MsgLiquidFarmResponse) String() string

func (*MsgLiquidFarmResponse) Unmarshal

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

func (*MsgLiquidFarmResponse) XXX_DiscardUnknown

func (m *MsgLiquidFarmResponse) XXX_DiscardUnknown()

func (*MsgLiquidFarmResponse) XXX_Marshal

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

func (*MsgLiquidFarmResponse) XXX_Merge

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

func (*MsgLiquidFarmResponse) XXX_Size

func (m *MsgLiquidFarmResponse) XXX_Size() int

func (*MsgLiquidFarmResponse) XXX_Unmarshal

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

type MsgLiquidUnfarm

type MsgLiquidUnfarm struct {
	PoolId        uint64     `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Farmer        string     `protobuf:"bytes,2,opt,name=farmer,proto3" json:"farmer,omitempty"`
	UnfarmingCoin types.Coin `` /* 143-byte string literal not displayed */
}

MsgLiquidUnfarm defines a SDK message for unfarming LFCoin.

func NewMsgLiquidUnfarm

func NewMsgLiquidUnfarm(poolId uint64, farmer string, unfarmingCoin sdk.Coin) *MsgLiquidUnfarm

NewMsgLiquidUnfarm creates a new MsgLiquidUnfarm

func (*MsgLiquidUnfarm) Descriptor

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

func (MsgLiquidUnfarm) GetFarmer

func (msg MsgLiquidUnfarm) GetFarmer() sdk.AccAddress

func (MsgLiquidUnfarm) GetSignBytes

func (msg MsgLiquidUnfarm) GetSignBytes() []byte

func (MsgLiquidUnfarm) GetSigners

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

func (*MsgLiquidUnfarm) Marshal

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

func (*MsgLiquidUnfarm) MarshalTo

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

func (*MsgLiquidUnfarm) MarshalToSizedBuffer

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

func (*MsgLiquidUnfarm) ProtoMessage

func (*MsgLiquidUnfarm) ProtoMessage()

func (*MsgLiquidUnfarm) Reset

func (m *MsgLiquidUnfarm) Reset()

func (MsgLiquidUnfarm) Route

func (msg MsgLiquidUnfarm) Route() string

func (*MsgLiquidUnfarm) Size

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

func (*MsgLiquidUnfarm) String

func (m *MsgLiquidUnfarm) String() string

func (MsgLiquidUnfarm) Type

func (msg MsgLiquidUnfarm) Type() string

func (*MsgLiquidUnfarm) Unmarshal

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

func (MsgLiquidUnfarm) ValidateBasic

func (msg MsgLiquidUnfarm) ValidateBasic() error

func (*MsgLiquidUnfarm) XXX_DiscardUnknown

func (m *MsgLiquidUnfarm) XXX_DiscardUnknown()

func (*MsgLiquidUnfarm) XXX_Marshal

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

func (*MsgLiquidUnfarm) XXX_Merge

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

func (*MsgLiquidUnfarm) XXX_Size

func (m *MsgLiquidUnfarm) XXX_Size() int

func (*MsgLiquidUnfarm) XXX_Unmarshal

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

type MsgLiquidUnfarmAndWithdraw

type MsgLiquidUnfarmAndWithdraw struct {
	PoolId        uint64     `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Farmer        string     `protobuf:"bytes,2,opt,name=farmer,proto3" json:"farmer,omitempty"`
	UnfarmingCoin types.Coin `` /* 143-byte string literal not displayed */
}

MsgLiquidUnfarmAndWithdraw defines a SDK message for unfarming LFCoin.

func NewMsgLiquidUnfarmAndWithdraw

func NewMsgLiquidUnfarmAndWithdraw(poolId uint64, farmer string, unfarmingCoin sdk.Coin) *MsgLiquidUnfarmAndWithdraw

NewMsgLiquidUnfarmAndWithdraw creates a new MsgLiquidUnfarmAndWithdraw

func (*MsgLiquidUnfarmAndWithdraw) Descriptor

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

func (MsgLiquidUnfarmAndWithdraw) GetFarmer

func (msg MsgLiquidUnfarmAndWithdraw) GetFarmer() sdk.AccAddress

func (MsgLiquidUnfarmAndWithdraw) GetSignBytes

func (msg MsgLiquidUnfarmAndWithdraw) GetSignBytes() []byte

func (MsgLiquidUnfarmAndWithdraw) GetSigners

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

func (*MsgLiquidUnfarmAndWithdraw) Marshal

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

func (*MsgLiquidUnfarmAndWithdraw) MarshalTo

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

func (*MsgLiquidUnfarmAndWithdraw) MarshalToSizedBuffer

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

func (*MsgLiquidUnfarmAndWithdraw) ProtoMessage

func (*MsgLiquidUnfarmAndWithdraw) ProtoMessage()

func (*MsgLiquidUnfarmAndWithdraw) Reset

func (m *MsgLiquidUnfarmAndWithdraw) Reset()

func (MsgLiquidUnfarmAndWithdraw) Route

func (msg MsgLiquidUnfarmAndWithdraw) Route() string

func (*MsgLiquidUnfarmAndWithdraw) Size

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

func (*MsgLiquidUnfarmAndWithdraw) String

func (m *MsgLiquidUnfarmAndWithdraw) String() string

func (MsgLiquidUnfarmAndWithdraw) Type

func (*MsgLiquidUnfarmAndWithdraw) Unmarshal

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

func (MsgLiquidUnfarmAndWithdraw) ValidateBasic

func (msg MsgLiquidUnfarmAndWithdraw) ValidateBasic() error

func (*MsgLiquidUnfarmAndWithdraw) XXX_DiscardUnknown

func (m *MsgLiquidUnfarmAndWithdraw) XXX_DiscardUnknown()

func (*MsgLiquidUnfarmAndWithdraw) XXX_Marshal

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

func (*MsgLiquidUnfarmAndWithdraw) XXX_Merge

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

func (*MsgLiquidUnfarmAndWithdraw) XXX_Size

func (m *MsgLiquidUnfarmAndWithdraw) XXX_Size() int

func (*MsgLiquidUnfarmAndWithdraw) XXX_Unmarshal

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

type MsgLiquidUnfarmAndWithdrawResponse

type MsgLiquidUnfarmAndWithdrawResponse struct {
}

MsgLiquidUnfarmAndWithdrawResponse defines the MsgLiquidUnfarmAndWithdrawResponse response type.

func (*MsgLiquidUnfarmAndWithdrawResponse) Descriptor

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

func (*MsgLiquidUnfarmAndWithdrawResponse) Marshal

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

func (*MsgLiquidUnfarmAndWithdrawResponse) MarshalTo

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

func (*MsgLiquidUnfarmAndWithdrawResponse) MarshalToSizedBuffer

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

func (*MsgLiquidUnfarmAndWithdrawResponse) ProtoMessage

func (*MsgLiquidUnfarmAndWithdrawResponse) ProtoMessage()

func (*MsgLiquidUnfarmAndWithdrawResponse) Reset

func (*MsgLiquidUnfarmAndWithdrawResponse) Size

func (*MsgLiquidUnfarmAndWithdrawResponse) String

func (*MsgLiquidUnfarmAndWithdrawResponse) Unmarshal

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

func (*MsgLiquidUnfarmAndWithdrawResponse) XXX_DiscardUnknown

func (m *MsgLiquidUnfarmAndWithdrawResponse) XXX_DiscardUnknown()

func (*MsgLiquidUnfarmAndWithdrawResponse) XXX_Marshal

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

func (*MsgLiquidUnfarmAndWithdrawResponse) XXX_Merge

func (*MsgLiquidUnfarmAndWithdrawResponse) XXX_Size

func (*MsgLiquidUnfarmAndWithdrawResponse) XXX_Unmarshal

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

type MsgLiquidUnfarmResponse

type MsgLiquidUnfarmResponse struct {
}

MsgLiquidUnfarmResponse defines the MsgLiquidUnfarmResponse response type.

func (*MsgLiquidUnfarmResponse) Descriptor

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

func (*MsgLiquidUnfarmResponse) Marshal

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

func (*MsgLiquidUnfarmResponse) MarshalTo

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

func (*MsgLiquidUnfarmResponse) MarshalToSizedBuffer

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

func (*MsgLiquidUnfarmResponse) ProtoMessage

func (*MsgLiquidUnfarmResponse) ProtoMessage()

func (*MsgLiquidUnfarmResponse) Reset

func (m *MsgLiquidUnfarmResponse) Reset()

func (*MsgLiquidUnfarmResponse) Size

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

func (*MsgLiquidUnfarmResponse) String

func (m *MsgLiquidUnfarmResponse) String() string

func (*MsgLiquidUnfarmResponse) Unmarshal

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

func (*MsgLiquidUnfarmResponse) XXX_DiscardUnknown

func (m *MsgLiquidUnfarmResponse) XXX_DiscardUnknown()

func (*MsgLiquidUnfarmResponse) XXX_Marshal

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

func (*MsgLiquidUnfarmResponse) XXX_Merge

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

func (*MsgLiquidUnfarmResponse) XXX_Size

func (m *MsgLiquidUnfarmResponse) XXX_Size() int

func (*MsgLiquidUnfarmResponse) XXX_Unmarshal

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

type MsgPlaceBid

type MsgPlaceBid struct {
	AuctionId   uint64     `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	PoolId      uint64     `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Bidder      string     `protobuf:"bytes,3,opt,name=bidder,proto3" json:"bidder,omitempty"`
	BiddingCoin types.Coin `` /* 137-byte string literal not displayed */
}

MsgPlaceBid defines a SDK message for placing a bid for a rewards auction.

func NewMsgPlaceBid

func NewMsgPlaceBid(auctionId uint64, poolId uint64, bidder string, biddingCoin sdk.Coin) *MsgPlaceBid

NewMsgPlaceBid creates a new MsgPlaceBid

func (*MsgPlaceBid) Descriptor

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

func (MsgPlaceBid) GetBidder

func (msg MsgPlaceBid) GetBidder() sdk.AccAddress

func (MsgPlaceBid) GetSignBytes

func (msg MsgPlaceBid) GetSignBytes() []byte

func (MsgPlaceBid) GetSigners

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

func (*MsgPlaceBid) Marshal

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

func (*MsgPlaceBid) MarshalTo

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

func (*MsgPlaceBid) MarshalToSizedBuffer

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

func (*MsgPlaceBid) ProtoMessage

func (*MsgPlaceBid) ProtoMessage()

func (*MsgPlaceBid) Reset

func (m *MsgPlaceBid) Reset()

func (MsgPlaceBid) Route

func (msg MsgPlaceBid) Route() string

func (*MsgPlaceBid) Size

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

func (*MsgPlaceBid) String

func (m *MsgPlaceBid) String() string

func (MsgPlaceBid) Type

func (msg MsgPlaceBid) Type() string

func (*MsgPlaceBid) Unmarshal

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

func (MsgPlaceBid) ValidateBasic

func (msg MsgPlaceBid) ValidateBasic() error

func (*MsgPlaceBid) XXX_DiscardUnknown

func (m *MsgPlaceBid) XXX_DiscardUnknown()

func (*MsgPlaceBid) XXX_Marshal

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

func (*MsgPlaceBid) XXX_Merge

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

func (*MsgPlaceBid) XXX_Size

func (m *MsgPlaceBid) XXX_Size() int

func (*MsgPlaceBid) XXX_Unmarshal

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

type MsgPlaceBidResponse

type MsgPlaceBidResponse struct {
}

MsgPlaceBidResponse defines the MsgPlaceBidResponse response type.

func (*MsgPlaceBidResponse) Descriptor

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

func (*MsgPlaceBidResponse) Marshal

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

func (*MsgPlaceBidResponse) MarshalTo

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

func (*MsgPlaceBidResponse) MarshalToSizedBuffer

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

func (*MsgPlaceBidResponse) ProtoMessage

func (*MsgPlaceBidResponse) ProtoMessage()

func (*MsgPlaceBidResponse) Reset

func (m *MsgPlaceBidResponse) Reset()

func (*MsgPlaceBidResponse) Size

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

func (*MsgPlaceBidResponse) String

func (m *MsgPlaceBidResponse) String() string

func (*MsgPlaceBidResponse) Unmarshal

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

func (*MsgPlaceBidResponse) XXX_DiscardUnknown

func (m *MsgPlaceBidResponse) XXX_DiscardUnknown()

func (*MsgPlaceBidResponse) XXX_Marshal

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

func (*MsgPlaceBidResponse) XXX_Merge

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

func (*MsgPlaceBidResponse) XXX_Size

func (m *MsgPlaceBidResponse) XXX_Size() int

func (*MsgPlaceBidResponse) XXX_Unmarshal

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

type MsgRefundBid

type MsgRefundBid struct {
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	PoolId    uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Bidder    string `protobuf:"bytes,3,opt,name=bidder,proto3" json:"bidder,omitempty"`
}

MsgRefundBid defines a SDK message for refunding the bid that is not winning for the auction.

func NewMsgRefundBid

func NewMsgRefundBid(auctionId uint64, poolId uint64, bidder string) *MsgRefundBid

NewMsgRefundBid creates a new MsgRefundBid

func (*MsgRefundBid) Descriptor

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

func (MsgRefundBid) GetBidder

func (msg MsgRefundBid) GetBidder() sdk.AccAddress

func (MsgRefundBid) GetSignBytes

func (msg MsgRefundBid) GetSignBytes() []byte

func (MsgRefundBid) GetSigners

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

func (*MsgRefundBid) Marshal

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

func (*MsgRefundBid) MarshalTo

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

func (*MsgRefundBid) MarshalToSizedBuffer

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

func (*MsgRefundBid) ProtoMessage

func (*MsgRefundBid) ProtoMessage()

func (*MsgRefundBid) Reset

func (m *MsgRefundBid) Reset()

func (MsgRefundBid) Route

func (msg MsgRefundBid) Route() string

func (*MsgRefundBid) Size

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

func (*MsgRefundBid) String

func (m *MsgRefundBid) String() string

func (MsgRefundBid) Type

func (msg MsgRefundBid) Type() string

func (*MsgRefundBid) Unmarshal

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

func (MsgRefundBid) ValidateBasic

func (msg MsgRefundBid) ValidateBasic() error

func (*MsgRefundBid) XXX_DiscardUnknown

func (m *MsgRefundBid) XXX_DiscardUnknown()

func (*MsgRefundBid) XXX_Marshal

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

func (*MsgRefundBid) XXX_Merge

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

func (*MsgRefundBid) XXX_Size

func (m *MsgRefundBid) XXX_Size() int

func (*MsgRefundBid) XXX_Unmarshal

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

type MsgRefundBidResponse

type MsgRefundBidResponse struct {
}

MsgRefundBidResponse defines the MsgRefundBidResponse response type.

func (*MsgRefundBidResponse) Descriptor

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

func (*MsgRefundBidResponse) Marshal

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

func (*MsgRefundBidResponse) MarshalTo

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

func (*MsgRefundBidResponse) MarshalToSizedBuffer

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

func (*MsgRefundBidResponse) ProtoMessage

func (*MsgRefundBidResponse) ProtoMessage()

func (*MsgRefundBidResponse) Reset

func (m *MsgRefundBidResponse) Reset()

func (*MsgRefundBidResponse) Size

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

func (*MsgRefundBidResponse) String

func (m *MsgRefundBidResponse) String() string

func (*MsgRefundBidResponse) Unmarshal

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

func (*MsgRefundBidResponse) XXX_DiscardUnknown

func (m *MsgRefundBidResponse) XXX_DiscardUnknown()

func (*MsgRefundBidResponse) XXX_Marshal

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

func (*MsgRefundBidResponse) XXX_Merge

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

func (*MsgRefundBidResponse) XXX_Size

func (m *MsgRefundBidResponse) XXX_Size() int

func (*MsgRefundBidResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// LiquidFarm defines a method for farming pool coin for a liquid farm
	LiquidFarm(context.Context, *MsgLiquidFarm) (*MsgLiquidFarmResponse, error)
	// LiquidUnfarm defines a method for unfarming amount of LFCoin
	LiquidUnfarm(context.Context, *MsgLiquidUnfarm) (*MsgLiquidUnfarmResponse, error)
	// LiquidUnfarmAndWithdraw defines a method for unfarming amount of LFCoin and withdraw pool coin from the pool
	LiquidUnfarmAndWithdraw(context.Context, *MsgLiquidUnfarmAndWithdraw) (*MsgLiquidUnfarmAndWithdrawResponse, error)
	// PlaceBid defines a method for placing a bid for a rewards auction
	PlaceBid(context.Context, *MsgPlaceBid) (*MsgPlaceBidResponse, error)
	// RefundBid defines a method for refunding the bid that is not winning for the auction
	RefundBid(context.Context, *MsgRefundBid) (*MsgRefundBidResponse, error)
	// AdvanceAuction defines a method for advancing rewards auction by one.
	// This Msg is defined just for testing purpose and it shouldn't be used in production.
	AdvanceAuction(context.Context, *MsgAdvanceAuction) (*MsgAdvanceAuctionResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	FeeCollector           string        `protobuf:"bytes,1,opt,name=fee_collector,json=feeCollector,proto3" json:"fee_collector,omitempty"`
	RewardsAuctionDuration time.Duration `` /* 131-byte string literal not displayed */
	LiquidFarms            []LiquidFarm  `protobuf:"bytes,3,rep,name=liquid_farms,json=liquidFarms,proto3" json:"liquid_farms"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of parameters

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryBidsRequest

type QueryBidsRequest struct {
	PoolId     uint64             `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBidsRequest is request type for the Query/Bids RPC method.

func (*QueryBidsRequest) Descriptor

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

func (*QueryBidsRequest) GetPagination

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

func (*QueryBidsRequest) GetPoolId

func (m *QueryBidsRequest) GetPoolId() uint64

func (*QueryBidsRequest) Marshal

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

func (*QueryBidsRequest) MarshalTo

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

func (*QueryBidsRequest) MarshalToSizedBuffer

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

func (*QueryBidsRequest) ProtoMessage

func (*QueryBidsRequest) ProtoMessage()

func (*QueryBidsRequest) Reset

func (m *QueryBidsRequest) Reset()

func (*QueryBidsRequest) Size

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

func (*QueryBidsRequest) String

func (m *QueryBidsRequest) String() string

func (*QueryBidsRequest) Unmarshal

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

func (*QueryBidsRequest) XXX_DiscardUnknown

func (m *QueryBidsRequest) XXX_DiscardUnknown()

func (*QueryBidsRequest) XXX_Marshal

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

func (*QueryBidsRequest) XXX_Merge

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

func (*QueryBidsRequest) XXX_Size

func (m *QueryBidsRequest) XXX_Size() int

func (*QueryBidsRequest) XXX_Unmarshal

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

type QueryBidsResponse

type QueryBidsResponse struct {
	Bids       []Bid               `protobuf:"bytes,1,rep,name=bids,proto3" json:"bids"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBidsResponse is response type for the Query/Bids RPC method.

func (*QueryBidsResponse) Descriptor

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

func (*QueryBidsResponse) GetBids

func (m *QueryBidsResponse) GetBids() []Bid

func (*QueryBidsResponse) GetPagination

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

func (*QueryBidsResponse) Marshal

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

func (*QueryBidsResponse) MarshalTo

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

func (*QueryBidsResponse) MarshalToSizedBuffer

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

func (*QueryBidsResponse) ProtoMessage

func (*QueryBidsResponse) ProtoMessage()

func (*QueryBidsResponse) Reset

func (m *QueryBidsResponse) Reset()

func (*QueryBidsResponse) Size

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

func (*QueryBidsResponse) String

func (m *QueryBidsResponse) String() string

func (*QueryBidsResponse) Unmarshal

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

func (*QueryBidsResponse) XXX_DiscardUnknown

func (m *QueryBidsResponse) XXX_DiscardUnknown()

func (*QueryBidsResponse) XXX_Marshal

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

func (*QueryBidsResponse) XXX_Merge

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

func (*QueryBidsResponse) XXX_Size

func (m *QueryBidsResponse) XXX_Size() int

func (*QueryBidsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params returns parameters of the module
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// LiquidFarms returns all liquid farms registered in params
	LiquidFarms(ctx context.Context, in *QueryLiquidFarmsRequest, opts ...grpc.CallOption) (*QueryLiquidFarmsResponse, error)
	// LiquidFarm returns the specific liquid farm
	LiquidFarm(ctx context.Context, in *QueryLiquidFarmRequest, opts ...grpc.CallOption) (*QueryLiquidFarmResponse, error)
	// RewardsAuctions returns all rewards auctions that correspond to the given pool id
	RewardsAuctions(ctx context.Context, in *QueryRewardsAuctionsRequest, opts ...grpc.CallOption) (*QueryRewardsAuctionsResponse, error)
	// RewardsAuction returns the specific rewards auction
	RewardsAuction(ctx context.Context, in *QueryRewardsAuctionRequest, opts ...grpc.CallOption) (*QueryRewardsAuctionResponse, error)
	// Bids returns all bids for the liquid farm
	Bids(ctx context.Context, in *QueryBidsRequest, opts ...grpc.CallOption) (*QueryBidsResponse, error)
	// Rewards returns all accumulated farming rewards for the liquid farm
	Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error)
	// ExchangeRate returns exchange rates (mint rate and burn rate) for the liquid farm
	ExchangeRate(ctx context.Context, in *QueryExchangeRateRequest, opts ...grpc.CallOption) (*QueryExchangeRateResponse, 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 QueryExchangeRateRequest

type QueryExchangeRateRequest struct {
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

QueryExchangeRateRequest is request type for the Query/ExchangeRate RPC method.

func (*QueryExchangeRateRequest) Descriptor

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

func (*QueryExchangeRateRequest) GetPoolId

func (m *QueryExchangeRateRequest) GetPoolId() uint64

func (*QueryExchangeRateRequest) Marshal

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

func (*QueryExchangeRateRequest) MarshalTo

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

func (*QueryExchangeRateRequest) MarshalToSizedBuffer

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

func (*QueryExchangeRateRequest) ProtoMessage

func (*QueryExchangeRateRequest) ProtoMessage()

func (*QueryExchangeRateRequest) Reset

func (m *QueryExchangeRateRequest) Reset()

func (*QueryExchangeRateRequest) Size

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

func (*QueryExchangeRateRequest) String

func (m *QueryExchangeRateRequest) String() string

func (*QueryExchangeRateRequest) Unmarshal

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

func (*QueryExchangeRateRequest) XXX_DiscardUnknown

func (m *QueryExchangeRateRequest) XXX_DiscardUnknown()

func (*QueryExchangeRateRequest) XXX_Marshal

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

func (*QueryExchangeRateRequest) XXX_Merge

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

func (*QueryExchangeRateRequest) XXX_Size

func (m *QueryExchangeRateRequest) XXX_Size() int

func (*QueryExchangeRateRequest) XXX_Unmarshal

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

type QueryExchangeRateResponse

type QueryExchangeRateResponse struct {
	ExchangeRate ExchangeRateResponse `protobuf:"bytes,1,opt,name=exchange_rate,json=exchangeRate,proto3" json:"exchange_rate"`
}

QueryExchangeRateResponse is response type for the Query/ExchangeRate RPC method.

func (*QueryExchangeRateResponse) Descriptor

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

func (*QueryExchangeRateResponse) GetExchangeRate

func (m *QueryExchangeRateResponse) GetExchangeRate() ExchangeRateResponse

func (*QueryExchangeRateResponse) Marshal

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

func (*QueryExchangeRateResponse) MarshalTo

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

func (*QueryExchangeRateResponse) MarshalToSizedBuffer

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

func (*QueryExchangeRateResponse) ProtoMessage

func (*QueryExchangeRateResponse) ProtoMessage()

func (*QueryExchangeRateResponse) Reset

func (m *QueryExchangeRateResponse) Reset()

func (*QueryExchangeRateResponse) Size

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

func (*QueryExchangeRateResponse) String

func (m *QueryExchangeRateResponse) String() string

func (*QueryExchangeRateResponse) Unmarshal

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

func (*QueryExchangeRateResponse) XXX_DiscardUnknown

func (m *QueryExchangeRateResponse) XXX_DiscardUnknown()

func (*QueryExchangeRateResponse) XXX_Marshal

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

func (*QueryExchangeRateResponse) XXX_Merge

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

func (*QueryExchangeRateResponse) XXX_Size

func (m *QueryExchangeRateResponse) XXX_Size() int

func (*QueryExchangeRateResponse) XXX_Unmarshal

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

type QueryLiquidFarmRequest

type QueryLiquidFarmRequest struct {
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

QueryLiquidFarmRequest is the request type for the Query/LiquidFarm RPC method.

func (*QueryLiquidFarmRequest) Descriptor

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

func (*QueryLiquidFarmRequest) GetPoolId

func (m *QueryLiquidFarmRequest) GetPoolId() uint64

func (*QueryLiquidFarmRequest) Marshal

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

func (*QueryLiquidFarmRequest) MarshalTo

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

func (*QueryLiquidFarmRequest) MarshalToSizedBuffer

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

func (*QueryLiquidFarmRequest) ProtoMessage

func (*QueryLiquidFarmRequest) ProtoMessage()

func (*QueryLiquidFarmRequest) Reset

func (m *QueryLiquidFarmRequest) Reset()

func (*QueryLiquidFarmRequest) Size

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

func (*QueryLiquidFarmRequest) String

func (m *QueryLiquidFarmRequest) String() string

func (*QueryLiquidFarmRequest) Unmarshal

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

func (*QueryLiquidFarmRequest) XXX_DiscardUnknown

func (m *QueryLiquidFarmRequest) XXX_DiscardUnknown()

func (*QueryLiquidFarmRequest) XXX_Marshal

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

func (*QueryLiquidFarmRequest) XXX_Merge

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

func (*QueryLiquidFarmRequest) XXX_Size

func (m *QueryLiquidFarmRequest) XXX_Size() int

func (*QueryLiquidFarmRequest) XXX_Unmarshal

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

type QueryLiquidFarmResponse

type QueryLiquidFarmResponse struct {
	LiquidFarm LiquidFarmResponse `protobuf:"bytes,1,opt,name=liquid_farm,json=liquidFarm,proto3" json:"liquid_farm"`
}

QueryLiquidFarmResponse is response type for the Query/LiquidFarm RPC method.

func (*QueryLiquidFarmResponse) Descriptor

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

func (*QueryLiquidFarmResponse) GetLiquidFarm

func (m *QueryLiquidFarmResponse) GetLiquidFarm() LiquidFarmResponse

func (*QueryLiquidFarmResponse) Marshal

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

func (*QueryLiquidFarmResponse) MarshalTo

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

func (*QueryLiquidFarmResponse) MarshalToSizedBuffer

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

func (*QueryLiquidFarmResponse) ProtoMessage

func (*QueryLiquidFarmResponse) ProtoMessage()

func (*QueryLiquidFarmResponse) Reset

func (m *QueryLiquidFarmResponse) Reset()

func (*QueryLiquidFarmResponse) Size

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

func (*QueryLiquidFarmResponse) String

func (m *QueryLiquidFarmResponse) String() string

func (*QueryLiquidFarmResponse) Unmarshal

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

func (*QueryLiquidFarmResponse) XXX_DiscardUnknown

func (m *QueryLiquidFarmResponse) XXX_DiscardUnknown()

func (*QueryLiquidFarmResponse) XXX_Marshal

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

func (*QueryLiquidFarmResponse) XXX_Merge

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

func (*QueryLiquidFarmResponse) XXX_Size

func (m *QueryLiquidFarmResponse) XXX_Size() int

func (*QueryLiquidFarmResponse) XXX_Unmarshal

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

type QueryLiquidFarmsRequest

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

QueryLiquidFarmsRequest is the request type for the Query/LiquidFarms RPC method.

func (*QueryLiquidFarmsRequest) Descriptor

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

func (*QueryLiquidFarmsRequest) GetPagination

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

func (*QueryLiquidFarmsRequest) Marshal

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

func (*QueryLiquidFarmsRequest) MarshalTo

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

func (*QueryLiquidFarmsRequest) MarshalToSizedBuffer

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

func (*QueryLiquidFarmsRequest) ProtoMessage

func (*QueryLiquidFarmsRequest) ProtoMessage()

func (*QueryLiquidFarmsRequest) Reset

func (m *QueryLiquidFarmsRequest) Reset()

func (*QueryLiquidFarmsRequest) Size

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

func (*QueryLiquidFarmsRequest) String

func (m *QueryLiquidFarmsRequest) String() string

func (*QueryLiquidFarmsRequest) Unmarshal

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

func (*QueryLiquidFarmsRequest) XXX_DiscardUnknown

func (m *QueryLiquidFarmsRequest) XXX_DiscardUnknown()

func (*QueryLiquidFarmsRequest) XXX_Marshal

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

func (*QueryLiquidFarmsRequest) XXX_Merge

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

func (*QueryLiquidFarmsRequest) XXX_Size

func (m *QueryLiquidFarmsRequest) XXX_Size() int

func (*QueryLiquidFarmsRequest) XXX_Unmarshal

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

type QueryLiquidFarmsResponse

type QueryLiquidFarmsResponse struct {
	LiquidFarms []LiquidFarmResponse `protobuf:"bytes,1,rep,name=liquid_farms,json=liquidFarms,proto3" json:"liquid_farms"`
}

QueryLiquidFarmsResponse is response type for the Query/LiquidFarms RPC method.

func (*QueryLiquidFarmsResponse) Descriptor

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

func (*QueryLiquidFarmsResponse) GetLiquidFarms

func (m *QueryLiquidFarmsResponse) GetLiquidFarms() []LiquidFarmResponse

func (*QueryLiquidFarmsResponse) Marshal

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

func (*QueryLiquidFarmsResponse) MarshalTo

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

func (*QueryLiquidFarmsResponse) MarshalToSizedBuffer

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

func (*QueryLiquidFarmsResponse) ProtoMessage

func (*QueryLiquidFarmsResponse) ProtoMessage()

func (*QueryLiquidFarmsResponse) Reset

func (m *QueryLiquidFarmsResponse) Reset()

func (*QueryLiquidFarmsResponse) Size

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

func (*QueryLiquidFarmsResponse) String

func (m *QueryLiquidFarmsResponse) String() string

func (*QueryLiquidFarmsResponse) Unmarshal

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

func (*QueryLiquidFarmsResponse) XXX_DiscardUnknown

func (m *QueryLiquidFarmsResponse) XXX_DiscardUnknown()

func (*QueryLiquidFarmsResponse) XXX_Marshal

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

func (*QueryLiquidFarmsResponse) XXX_Merge

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

func (*QueryLiquidFarmsResponse) XXX_Size

func (m *QueryLiquidFarmsResponse) XXX_Size() int

func (*QueryLiquidFarmsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryRewardsAuctionRequest

type QueryRewardsAuctionRequest struct {
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	PoolId    uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

QueryRewardsAuctionRequest is request type for the Query/RewardsAuction RPC method.

func (*QueryRewardsAuctionRequest) Descriptor

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

func (*QueryRewardsAuctionRequest) GetAuctionId

func (m *QueryRewardsAuctionRequest) GetAuctionId() uint64

func (*QueryRewardsAuctionRequest) GetPoolId

func (m *QueryRewardsAuctionRequest) GetPoolId() uint64

func (*QueryRewardsAuctionRequest) Marshal

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

func (*QueryRewardsAuctionRequest) MarshalTo

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

func (*QueryRewardsAuctionRequest) MarshalToSizedBuffer

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

func (*QueryRewardsAuctionRequest) ProtoMessage

func (*QueryRewardsAuctionRequest) ProtoMessage()

func (*QueryRewardsAuctionRequest) Reset

func (m *QueryRewardsAuctionRequest) Reset()

func (*QueryRewardsAuctionRequest) Size

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

func (*QueryRewardsAuctionRequest) String

func (m *QueryRewardsAuctionRequest) String() string

func (*QueryRewardsAuctionRequest) Unmarshal

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

func (*QueryRewardsAuctionRequest) XXX_DiscardUnknown

func (m *QueryRewardsAuctionRequest) XXX_DiscardUnknown()

func (*QueryRewardsAuctionRequest) XXX_Marshal

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

func (*QueryRewardsAuctionRequest) XXX_Merge

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

func (*QueryRewardsAuctionRequest) XXX_Size

func (m *QueryRewardsAuctionRequest) XXX_Size() int

func (*QueryRewardsAuctionRequest) XXX_Unmarshal

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

type QueryRewardsAuctionResponse

type QueryRewardsAuctionResponse struct {
	RewardsAuction RewardsAuction `protobuf:"bytes,1,opt,name=rewards_auction,json=rewardsAuction,proto3" json:"rewards_auction"`
}

QueryRewardsAuctionResponse is response type for the Query/RewardsAuction RPC method.

func (*QueryRewardsAuctionResponse) Descriptor

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

func (*QueryRewardsAuctionResponse) GetRewardsAuction

func (m *QueryRewardsAuctionResponse) GetRewardsAuction() RewardsAuction

func (*QueryRewardsAuctionResponse) Marshal

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

func (*QueryRewardsAuctionResponse) MarshalTo

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

func (*QueryRewardsAuctionResponse) MarshalToSizedBuffer

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

func (*QueryRewardsAuctionResponse) ProtoMessage

func (*QueryRewardsAuctionResponse) ProtoMessage()

func (*QueryRewardsAuctionResponse) Reset

func (m *QueryRewardsAuctionResponse) Reset()

func (*QueryRewardsAuctionResponse) Size

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

func (*QueryRewardsAuctionResponse) String

func (m *QueryRewardsAuctionResponse) String() string

func (*QueryRewardsAuctionResponse) Unmarshal

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

func (*QueryRewardsAuctionResponse) XXX_DiscardUnknown

func (m *QueryRewardsAuctionResponse) XXX_DiscardUnknown()

func (*QueryRewardsAuctionResponse) XXX_Marshal

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

func (*QueryRewardsAuctionResponse) XXX_Merge

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

func (*QueryRewardsAuctionResponse) XXX_Size

func (m *QueryRewardsAuctionResponse) XXX_Size() int

func (*QueryRewardsAuctionResponse) XXX_Unmarshal

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

type QueryRewardsAuctionsRequest

type QueryRewardsAuctionsRequest struct {
	PoolId     uint64             `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Status     string             `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRewardsAuctionsRequest is request type for the Query/RewardsAuctions RPC method.

func (*QueryRewardsAuctionsRequest) Descriptor

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

func (*QueryRewardsAuctionsRequest) GetPagination

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

func (*QueryRewardsAuctionsRequest) GetPoolId

func (m *QueryRewardsAuctionsRequest) GetPoolId() uint64

func (*QueryRewardsAuctionsRequest) GetStatus

func (m *QueryRewardsAuctionsRequest) GetStatus() string

func (*QueryRewardsAuctionsRequest) Marshal

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

func (*QueryRewardsAuctionsRequest) MarshalTo

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

func (*QueryRewardsAuctionsRequest) MarshalToSizedBuffer

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

func (*QueryRewardsAuctionsRequest) ProtoMessage

func (*QueryRewardsAuctionsRequest) ProtoMessage()

func (*QueryRewardsAuctionsRequest) Reset

func (m *QueryRewardsAuctionsRequest) Reset()

func (*QueryRewardsAuctionsRequest) Size

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

func (*QueryRewardsAuctionsRequest) String

func (m *QueryRewardsAuctionsRequest) String() string

func (*QueryRewardsAuctionsRequest) Unmarshal

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

func (*QueryRewardsAuctionsRequest) XXX_DiscardUnknown

func (m *QueryRewardsAuctionsRequest) XXX_DiscardUnknown()

func (*QueryRewardsAuctionsRequest) XXX_Marshal

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

func (*QueryRewardsAuctionsRequest) XXX_Merge

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

func (*QueryRewardsAuctionsRequest) XXX_Size

func (m *QueryRewardsAuctionsRequest) XXX_Size() int

func (*QueryRewardsAuctionsRequest) XXX_Unmarshal

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

type QueryRewardsAuctionsResponse

type QueryRewardsAuctionsResponse struct {
	RewardsAuctions []RewardsAuction    `protobuf:"bytes,1,rep,name=rewards_auctions,json=rewardsAuctions,proto3" json:"rewards_auctions"`
	Pagination      *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRewardsAuctionsResponse is response type for the Query/RewardsAuctions RPC method.

func (*QueryRewardsAuctionsResponse) Descriptor

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

func (*QueryRewardsAuctionsResponse) GetPagination

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

func (*QueryRewardsAuctionsResponse) GetRewardsAuctions

func (m *QueryRewardsAuctionsResponse) GetRewardsAuctions() []RewardsAuction

func (*QueryRewardsAuctionsResponse) Marshal

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

func (*QueryRewardsAuctionsResponse) MarshalTo

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

func (*QueryRewardsAuctionsResponse) MarshalToSizedBuffer

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

func (*QueryRewardsAuctionsResponse) ProtoMessage

func (*QueryRewardsAuctionsResponse) ProtoMessage()

func (*QueryRewardsAuctionsResponse) Reset

func (m *QueryRewardsAuctionsResponse) Reset()

func (*QueryRewardsAuctionsResponse) Size

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

func (*QueryRewardsAuctionsResponse) String

func (*QueryRewardsAuctionsResponse) Unmarshal

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

func (*QueryRewardsAuctionsResponse) XXX_DiscardUnknown

func (m *QueryRewardsAuctionsResponse) XXX_DiscardUnknown()

func (*QueryRewardsAuctionsResponse) XXX_Marshal

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

func (*QueryRewardsAuctionsResponse) XXX_Merge

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

func (*QueryRewardsAuctionsResponse) XXX_Size

func (m *QueryRewardsAuctionsResponse) XXX_Size() int

func (*QueryRewardsAuctionsResponse) XXX_Unmarshal

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

type QueryRewardsRequest

type QueryRewardsRequest struct {
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

QueryRewardsRequest is request type for the Query/Rewards RPC method.

func (*QueryRewardsRequest) Descriptor

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

func (*QueryRewardsRequest) GetPoolId

func (m *QueryRewardsRequest) GetPoolId() uint64

func (*QueryRewardsRequest) Marshal

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

func (*QueryRewardsRequest) MarshalTo

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

func (*QueryRewardsRequest) MarshalToSizedBuffer

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

func (*QueryRewardsRequest) ProtoMessage

func (*QueryRewardsRequest) ProtoMessage()

func (*QueryRewardsRequest) Reset

func (m *QueryRewardsRequest) Reset()

func (*QueryRewardsRequest) Size

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

func (*QueryRewardsRequest) String

func (m *QueryRewardsRequest) String() string

func (*QueryRewardsRequest) Unmarshal

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

func (*QueryRewardsRequest) XXX_DiscardUnknown

func (m *QueryRewardsRequest) XXX_DiscardUnknown()

func (*QueryRewardsRequest) XXX_Marshal

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

func (*QueryRewardsRequest) XXX_Merge

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

func (*QueryRewardsRequest) XXX_Size

func (m *QueryRewardsRequest) XXX_Size() int

func (*QueryRewardsRequest) XXX_Unmarshal

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

type QueryRewardsResponse

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

QueryRewardsResponse is response type for the Query/Rewards RPC method.

func (*QueryRewardsResponse) Descriptor

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

func (*QueryRewardsResponse) GetRewards

func (*QueryRewardsResponse) Marshal

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

func (*QueryRewardsResponse) MarshalTo

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

func (*QueryRewardsResponse) MarshalToSizedBuffer

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

func (*QueryRewardsResponse) ProtoMessage

func (*QueryRewardsResponse) ProtoMessage()

func (*QueryRewardsResponse) Reset

func (m *QueryRewardsResponse) Reset()

func (*QueryRewardsResponse) Size

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

func (*QueryRewardsResponse) String

func (m *QueryRewardsResponse) String() string

func (*QueryRewardsResponse) Unmarshal

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

func (*QueryRewardsResponse) XXX_DiscardUnknown

func (m *QueryRewardsResponse) XXX_DiscardUnknown()

func (*QueryRewardsResponse) XXX_Marshal

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

func (*QueryRewardsResponse) XXX_Merge

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

func (*QueryRewardsResponse) XXX_Size

func (m *QueryRewardsResponse) XXX_Size() int

func (*QueryRewardsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params returns parameters of the module
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// LiquidFarms returns all liquid farms registered in params
	LiquidFarms(context.Context, *QueryLiquidFarmsRequest) (*QueryLiquidFarmsResponse, error)
	// LiquidFarm returns the specific liquid farm
	LiquidFarm(context.Context, *QueryLiquidFarmRequest) (*QueryLiquidFarmResponse, error)
	// RewardsAuctions returns all rewards auctions that correspond to the given pool id
	RewardsAuctions(context.Context, *QueryRewardsAuctionsRequest) (*QueryRewardsAuctionsResponse, error)
	// RewardsAuction returns the specific rewards auction
	RewardsAuction(context.Context, *QueryRewardsAuctionRequest) (*QueryRewardsAuctionResponse, error)
	// Bids returns all bids for the liquid farm
	Bids(context.Context, *QueryBidsRequest) (*QueryBidsResponse, error)
	// Rewards returns all accumulated farming rewards for the liquid farm
	Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error)
	// ExchangeRate returns exchange rates (mint rate and burn rate) for the liquid farm
	ExchangeRate(context.Context, *QueryExchangeRateRequest) (*QueryExchangeRateResponse, error)
}

QueryServer is the server API for Query service.

type RewardsAuction

type RewardsAuction struct {
	// id specifies the unique auction id
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// pool_id specifies the liquidity pool id
	PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// bidding_coin_denom specifies the bidding coin denomination
	BiddingCoinDenom string `protobuf:"bytes,3,opt,name=bidding_coin_denom,json=biddingCoinDenom,proto3" json:"bidding_coin_denom,omitempty"`
	// paying_reserve_address specfies the account that reserves bidding amounts placed by bidders
	PayingReserveAddress string `protobuf:"bytes,4,opt,name=paying_reserve_address,json=payingReserveAddress,proto3" json:"paying_reserve_address,omitempty"`
	// start_time specifies the start time of an auction
	StartTime time.Time `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	// end_time specifies the end time of an auction
	EndTime time.Time `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
	// status specifies the status of an auction
	Status AuctionStatus `protobuf:"varint,7,opt,name=status,proto3,enum=crescent.liquidfarming.v1beta1.AuctionStatus" json:"status,omitempty"`
	// winner specifies the bidder who won the auction
	// the value is determined when an auction is finished
	Winner string `protobuf:"bytes,8,opt,name=winner,proto3" json:"winner,omitempty"`
	// winning_amount specifies the winning amount for the uaction
	WinningAmount types.Coin `` /* 143-byte string literal not displayed */
	// rewards specifies the farming rewards for are accumulated in the farm module
	// the value is determined when an auction is finished
	Rewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,10,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards"`
	Fees    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,11,rep,name=fees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fees"`
	FeeRate github_com_cosmos_cosmos_sdk_types.Dec   `protobuf:"bytes,12,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
}

RewardsAuction defines rewards auction that is created by the module for every rewards_auction_duration in params.

func MustUnmarshalRewardsAuction

func MustUnmarshalRewardsAuction(cdc codec.BinaryCodec, value []byte) RewardsAuction

MustUnmarshalRewardsAuction unmarshals RewardsAuction and it panics upon failure.

func NewRewardsAuction

func NewRewardsAuction(
	id uint64,
	poolId uint64,
	startTime time.Time,
	endTime time.Time,
) RewardsAuction

NewRewardsAuction creates a new RewardsAuction.

func UnmarshalRewardsAuction

func UnmarshalRewardsAuction(cdc codec.BinaryCodec, value []byte) (auction RewardsAuction, err error)

UnmarshalRewardsAuction unmarshals RewardsAuction.

func (*RewardsAuction) Descriptor

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

func (RewardsAuction) GetPayingReserveAddress

func (a RewardsAuction) GetPayingReserveAddress() sdk.AccAddress

GetPayingReserveAddress returns the paying reserve address in the form of sdk.AccAddress.

func (*RewardsAuction) Marshal

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

func (*RewardsAuction) MarshalTo

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

func (*RewardsAuction) MarshalToSizedBuffer

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

func (*RewardsAuction) ProtoMessage

func (*RewardsAuction) ProtoMessage()

func (*RewardsAuction) Reset

func (m *RewardsAuction) Reset()

func (*RewardsAuction) SetFeeRate

func (a *RewardsAuction) SetFeeRate(feeRate sdk.Dec)

SetFeeRate sets auction fee rate.

func (*RewardsAuction) SetFees

func (a *RewardsAuction) SetFees(fees sdk.Coins)

SetFees sets auction fees.

func (*RewardsAuction) SetRewards

func (a *RewardsAuction) SetRewards(rewards sdk.Coins)

SetRewards sets auction rewards.

func (*RewardsAuction) SetStatus

func (a *RewardsAuction) SetStatus(status AuctionStatus)

SetStatus sets rewards auction status.

func (*RewardsAuction) SetWinner

func (a *RewardsAuction) SetWinner(winner string)

SetWinner sets winner address.

func (*RewardsAuction) SetWinningAmount

func (a *RewardsAuction) SetWinningAmount(winningAmount sdk.Coin)

SetWinningAmount sets the winning amount.

func (*RewardsAuction) Size

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

func (*RewardsAuction) String

func (m *RewardsAuction) String() string

func (*RewardsAuction) Unmarshal

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

func (*RewardsAuction) Validate

func (a *RewardsAuction) Validate() error

Validate validates RewardsAuction.

func (*RewardsAuction) XXX_DiscardUnknown

func (m *RewardsAuction) XXX_DiscardUnknown()

func (*RewardsAuction) XXX_Marshal

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

func (*RewardsAuction) XXX_Merge

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

func (*RewardsAuction) XXX_Size

func (m *RewardsAuction) XXX_Size() int

func (*RewardsAuction) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AdvanceAuction

func (*UnimplementedMsgServer) LiquidFarm

func (*UnimplementedMsgServer) LiquidUnfarm

func (*UnimplementedMsgServer) LiquidUnfarmAndWithdraw

func (*UnimplementedMsgServer) PlaceBid

func (*UnimplementedMsgServer) RefundBid

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Bids

func (*UnimplementedQueryServer) ExchangeRate

func (*UnimplementedQueryServer) LiquidFarm

func (*UnimplementedQueryServer) LiquidFarms

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Rewards

func (*UnimplementedQueryServer) RewardsAuction

func (*UnimplementedQueryServer) RewardsAuctions

type WinningBidRecord

type WinningBidRecord struct {
	AuctionId  uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	WinningBid Bid    `protobuf:"bytes,2,opt,name=winning_bid,json=winningBid,proto3" json:"winning_bid"`
}

WinningBidRecord defines a custom winning bid record that is required to be recorded in genesis state.

func (*WinningBidRecord) Descriptor

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

func (*WinningBidRecord) Marshal

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

func (*WinningBidRecord) MarshalTo

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

func (*WinningBidRecord) MarshalToSizedBuffer

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

func (*WinningBidRecord) ProtoMessage

func (*WinningBidRecord) ProtoMessage()

func (*WinningBidRecord) Reset

func (m *WinningBidRecord) Reset()

func (*WinningBidRecord) Size

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

func (*WinningBidRecord) String

func (m *WinningBidRecord) String() string

func (*WinningBidRecord) Unmarshal

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

func (*WinningBidRecord) XXX_DiscardUnknown

func (m *WinningBidRecord) XXX_DiscardUnknown()

func (*WinningBidRecord) XXX_Marshal

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

func (*WinningBidRecord) XXX_Merge

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

func (*WinningBidRecord) XXX_Size

func (m *WinningBidRecord) XXX_Size() int

func (*WinningBidRecord) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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