types

package
v5.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

	// 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 (
	TypeMsgMintShare = "mint_share"
	TypeMsgBurnShare = "burn_share"
	TypeMsgPlaceBid  = "place_bid"
)

Message types for the module

View Source
const (
	ProposalTypePublicPositionCreate          string = "PublicPositionCreate"
	ProposalTypePublicPositionParameterChange string = "PublicPositionParameterChange"
)
View Source
const (
	ShareDenomPrefix = "sb"
)

Variables

View Source
var (
	ErrPublicPositionExists  = sdkerrors.Register(ModuleName, 2, "public position with same parameters already exists")
	ErrInsufficientBidAmount = sdkerrors.Register(ModuleName, 3, "insufficient bid amount")
)

x/liquidamm module sentinel errors

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	LastPublicPositionIdKey              = []byte{0x81}
	LastRewardsAuctionEndTimeKey         = []byte{0x82}
	PublicPositionKeyPrefix              = []byte{0x83}
	PublicPositionsByPoolIndexKeyPrefix  = []byte{0x84}
	PublicPositionByParamsIndexKeyPrefix = []byte{0x85}
	RewardsAuctionKeyPrefix              = []byte{0x86}
	BidKeyPrefix                         = []byte{0x87}
)

keys for the store prefixes

View Source
var (
	ErrInvalidLengthLiquidamm        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLiquidamm          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLiquidamm = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyRewardsAuctionDuration      = []byte("RewardsAuctionDuration")
	KeyMaxNumRecentRewardsAuctions = []byte("MaxNumRecentRewardsAuctions")
)

Parameter store keys

View Source
var (
	DefaultRewardsAuctionDuration      = time.Hour
	DefaultMaxNumRecentRewardsAuctions = uint32(10)
)

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 (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var 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 CalculateBurnRate

func CalculateBurnRate(shareSupply, totalLiquidity, prevWinningBidShareAmt sdk.Int) sdk.Dec

func CalculateMintRate

func CalculateMintRate(totalLiquidity, shareSupply sdk.Int) sdk.Dec

func CalculateMintedShareAmount

func CalculateMintedShareAmount(addedLiquidity, totalLiquidity, shareSupply sdk.Int) sdk.Int

CalculateMintedShareAmount calculates minting public position share amount. mintedShareAmt = shareSupply * (addedLiquidity / totalLiquidity)

func CalculateRemovedLiquidity

func CalculateRemovedLiquidity(
	burnedShareAmt, shareSupply, totalLiquidity, prevWinningBidShareAmt sdk.Int) sdk.Int

CalculateRemovedLiquidity calculates liquidity amount to be removed when burning public position share. removedLiquidity = totalLiquidity * (burnedShareAmt / (shareSupply + prevWinningBidShareAmt))

func DeductFees

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

DeductFees deducts fees from rewards by the fee rate.

func DeriveBidReserveAddress

func DeriveBidReserveAddress(positionId uint64) sdk.AccAddress

DeriveBidReserveAddress creates the reserve address for bids with the given public position id.

func GetBidKey

func GetBidKey(publicPositionId, auctionId uint64, bidderAddr sdk.AccAddress) []byte

GetBidKey returns the store key to retrieve the bid object by the given public position id, rewards auction id and bidder address.

func GetBidsByRewardsAuctionIteratorPrefix

func GetBidsByRewardsAuctionIteratorPrefix(publicPositionId, auctionId uint64) []byte

GetBidsByRewardsAuctionIteratorPrefix returns the prefix to iterate all bids by the given rewards auction id.

func GetPublicPositionByParamsIndexKey

func GetPublicPositionByParamsIndexKey(
	ownerAddr sdk.AccAddress, poolId uint64, lowerTick, upperTick int32) []byte

func GetPublicPositionKey

func GetPublicPositionKey(publicPositionId uint64) []byte

GetPublicPositionKey returns the store key to retrieve the public position object by the given id.

func GetPublicPositionsByPoolIndexKey

func GetPublicPositionsByPoolIndexKey(poolId, publicPositionId uint64) []byte

func GetPublicPositionsByPoolIteratorPrefix

func GetPublicPositionsByPoolIteratorPrefix(poolId uint64) []byte

func GetRewardsAuctionKey

func GetRewardsAuctionKey(publicPositionId, auctionId uint64) []byte

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

func GetRewardsAuctionsByPublicPositionIteratorPrefix

func GetRewardsAuctionsByPublicPositionIteratorPrefix(publicPositionId uint64) []byte

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamKeyTable the param key table for the module

func ParsePublicPositionsByPoolIndexKey

func ParsePublicPositionsByPoolIndexKey(key []byte) (poolId, publicPositionId uint64)

func ParseShareDenom

func ParseShareDenom(denom string) (publicPositionId uint64, err error)

ParseShareDenom parses a public position share denom and returns the position's id.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/liquidamm 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 ShareDenom

func ShareDenom(publicPositionId uint64) string

ShareDenom returns a unique public position share denom.

Types

type AMMKeeper

type AMMKeeper interface {
	LookupPool(ctx sdk.Context, poolId uint64) (found bool)
	GetPool(ctx sdk.Context, poolId uint64) (pool ammtypes.Pool, found bool)
	GetPositionByParams(
		ctx sdk.Context, ownerAddr sdk.AccAddress, poolId uint64, lowerTick, upperTick int32) (position ammtypes.Position, found bool)
	AddLiquidity(
		ctx sdk.Context, ownerAddr, fromAddr sdk.AccAddress, poolId uint64,
		lowerPrice, upperPrice sdk.Dec, desiredAmt sdk.Coins) (position ammtypes.Position, liquidity sdk.Int, amt sdk.Coins, err error)
	RemoveLiquidity(
		ctx sdk.Context, ownerAddr, toAddr sdk.AccAddress,
		positionId uint64, liquidity sdk.Int) (position ammtypes.Position, amt sdk.Coins, err error)
	Collect(
		ctx sdk.Context, ownerAddr, toAddr sdk.AccAddress, positionId uint64, amt sdk.Coins) error
	CollectibleCoins(ctx sdk.Context, positionId uint64) (fee, farmingRewards sdk.Coins, err error)
}

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 {
	// public_position_id specifies the public position's id
	PublicPositionId uint64 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	// rewards_auction_id specifies the reward auction's id
	RewardsAuctionId uint64 `protobuf:"varint,2,opt,name=rewards_auction_id,json=rewardsAuctionId,proto3" json:"rewards_auction_id,omitempty"`
	// bidder specifies the bech32-encoded address that places a bid for the auction
	Bidder string `protobuf:"bytes,3,opt,name=bidder,proto3" json:"bidder,omitempty"`
	// share specifies the share amount to place a bid
	Share types.Coin `protobuf:"bytes,4,opt,name=share,proto3" json:"share"`
}

Bid defines standard bid for a rewards auction.

func NewBid

func NewBid(
	publicPositionId, auctionId uint64, bidderAddr sdk.AccAddress, share sdk.Coin) Bid

NewBid creates a new Bid.

func (*Bid) Descriptor

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

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 (bid 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 EventBidRefunded

type EventBidRefunded struct {
	Bidder           string     `protobuf:"bytes,1,opt,name=bidder,proto3" json:"bidder,omitempty"`
	PublicPositionId uint64     `protobuf:"varint,2,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	RewardsAuctionId uint64     `protobuf:"varint,3,opt,name=rewards_auction_id,json=rewardsAuctionId,proto3" json:"rewards_auction_id,omitempty"`
	Share            types.Coin `protobuf:"bytes,4,opt,name=share,proto3" json:"share"`
}

func (*EventBidRefunded) Descriptor

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

func (*EventBidRefunded) Marshal

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

func (*EventBidRefunded) MarshalTo

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

func (*EventBidRefunded) MarshalToSizedBuffer

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

func (*EventBidRefunded) ProtoMessage

func (*EventBidRefunded) ProtoMessage()

func (*EventBidRefunded) Reset

func (m *EventBidRefunded) Reset()

func (*EventBidRefunded) Size

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

func (*EventBidRefunded) String

func (m *EventBidRefunded) String() string

func (*EventBidRefunded) Unmarshal

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

func (*EventBidRefunded) XXX_DiscardUnknown

func (m *EventBidRefunded) XXX_DiscardUnknown()

func (*EventBidRefunded) XXX_Marshal

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

func (*EventBidRefunded) XXX_Merge

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

func (*EventBidRefunded) XXX_Size

func (m *EventBidRefunded) XXX_Size() int

func (*EventBidRefunded) XXX_Unmarshal

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

type EventBurnShare

type EventBurnShare struct {
	Burner           string                                   `protobuf:"bytes,1,opt,name=burner,proto3" json:"burner,omitempty"`
	PublicPositionId uint64                                   `protobuf:"varint,2,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	Share            types.Coin                               `protobuf:"bytes,3,opt,name=share,proto3" json:"share"`
	RemovedLiquidity github_com_cosmos_cosmos_sdk_types.Int   `` /* 149-byte string literal not displayed */
	Amount           github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

func (*EventBurnShare) Descriptor

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

func (*EventBurnShare) Marshal

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

func (*EventBurnShare) MarshalTo

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

func (*EventBurnShare) MarshalToSizedBuffer

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

func (*EventBurnShare) ProtoMessage

func (*EventBurnShare) ProtoMessage()

func (*EventBurnShare) Reset

func (m *EventBurnShare) Reset()

func (*EventBurnShare) Size

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

func (*EventBurnShare) String

func (m *EventBurnShare) String() string

func (*EventBurnShare) Unmarshal

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

func (*EventBurnShare) XXX_DiscardUnknown

func (m *EventBurnShare) XXX_DiscardUnknown()

func (*EventBurnShare) XXX_Marshal

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

func (*EventBurnShare) XXX_Merge

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

func (*EventBurnShare) XXX_Size

func (m *EventBurnShare) XXX_Size() int

func (*EventBurnShare) XXX_Unmarshal

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

type EventMintShare

type EventMintShare struct {
	Minter           string                                   `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter,omitempty"`
	PublicPositionId uint64                                   `protobuf:"varint,2,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	MintedShare      types.Coin                               `protobuf:"bytes,3,opt,name=minted_share,json=mintedShare,proto3" json:"minted_share"`
	Liquidity        github_com_cosmos_cosmos_sdk_types.Int   `protobuf:"bytes,4,opt,name=liquidity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"liquidity"`
	Amount           github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

func (*EventMintShare) Descriptor

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

func (*EventMintShare) Marshal

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

func (*EventMintShare) MarshalTo

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

func (*EventMintShare) MarshalToSizedBuffer

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

func (*EventMintShare) ProtoMessage

func (*EventMintShare) ProtoMessage()

func (*EventMintShare) Reset

func (m *EventMintShare) Reset()

func (*EventMintShare) Size

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

func (*EventMintShare) String

func (m *EventMintShare) String() string

func (*EventMintShare) Unmarshal

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

func (*EventMintShare) XXX_DiscardUnknown

func (m *EventMintShare) XXX_DiscardUnknown()

func (*EventMintShare) XXX_Marshal

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

func (*EventMintShare) XXX_Merge

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

func (*EventMintShare) XXX_Size

func (m *EventMintShare) XXX_Size() int

func (*EventMintShare) XXX_Unmarshal

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

type EventPlaceBid

type EventPlaceBid struct {
	Bidder           string     `protobuf:"bytes,1,opt,name=bidder,proto3" json:"bidder,omitempty"`
	PublicPositionId uint64     `protobuf:"varint,2,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	RewardsAuctionId uint64     `protobuf:"varint,3,opt,name=rewards_auction_id,json=rewardsAuctionId,proto3" json:"rewards_auction_id,omitempty"`
	Share            types.Coin `protobuf:"bytes,4,opt,name=share,proto3" json:"share"`
}

func (*EventPlaceBid) Descriptor

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

func (*EventPlaceBid) Marshal

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

func (*EventPlaceBid) MarshalTo

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

func (*EventPlaceBid) MarshalToSizedBuffer

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

func (*EventPlaceBid) ProtoMessage

func (*EventPlaceBid) ProtoMessage()

func (*EventPlaceBid) Reset

func (m *EventPlaceBid) Reset()

func (*EventPlaceBid) Size

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

func (*EventPlaceBid) String

func (m *EventPlaceBid) String() string

func (*EventPlaceBid) Unmarshal

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

func (*EventPlaceBid) XXX_DiscardUnknown

func (m *EventPlaceBid) XXX_DiscardUnknown()

func (*EventPlaceBid) XXX_Marshal

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

func (*EventPlaceBid) XXX_Merge

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

func (*EventPlaceBid) XXX_Size

func (m *EventPlaceBid) XXX_Size() int

func (*EventPlaceBid) XXX_Unmarshal

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

type EventPublicPositionCreated

type EventPublicPositionCreated struct {
	PublicPositionId uint64                                 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	PoolId           uint64                                 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	LowerTick        int32                                  `protobuf:"varint,3,opt,name=lower_tick,json=lowerTick,proto3" json:"lower_tick,omitempty"`
	UpperTick        int32                                  `protobuf:"varint,4,opt,name=upper_tick,json=upperTick,proto3" json:"upper_tick,omitempty"`
	MinBidAmount     github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	FeeRate          github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
}

func (*EventPublicPositionCreated) Descriptor

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

func (*EventPublicPositionCreated) Marshal

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

func (*EventPublicPositionCreated) MarshalTo

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

func (*EventPublicPositionCreated) MarshalToSizedBuffer

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

func (*EventPublicPositionCreated) ProtoMessage

func (*EventPublicPositionCreated) ProtoMessage()

func (*EventPublicPositionCreated) Reset

func (m *EventPublicPositionCreated) Reset()

func (*EventPublicPositionCreated) Size

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

func (*EventPublicPositionCreated) String

func (m *EventPublicPositionCreated) String() string

func (*EventPublicPositionCreated) Unmarshal

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

func (*EventPublicPositionCreated) XXX_DiscardUnknown

func (m *EventPublicPositionCreated) XXX_DiscardUnknown()

func (*EventPublicPositionCreated) XXX_Marshal

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

func (*EventPublicPositionCreated) XXX_Merge

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

func (*EventPublicPositionCreated) XXX_Size

func (m *EventPublicPositionCreated) XXX_Size() int

func (*EventPublicPositionCreated) XXX_Unmarshal

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

type EventPublicPositionParameterChanged

type EventPublicPositionParameterChanged struct {
	PublicPositionId uint64                                 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	MinBidAmount     github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	FeeRate          github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
}

func (*EventPublicPositionParameterChanged) Descriptor

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

func (*EventPublicPositionParameterChanged) Marshal

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

func (*EventPublicPositionParameterChanged) MarshalTo

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

func (*EventPublicPositionParameterChanged) MarshalToSizedBuffer

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

func (*EventPublicPositionParameterChanged) ProtoMessage

func (*EventPublicPositionParameterChanged) ProtoMessage()

func (*EventPublicPositionParameterChanged) Reset

func (*EventPublicPositionParameterChanged) Size

func (*EventPublicPositionParameterChanged) String

func (*EventPublicPositionParameterChanged) Unmarshal

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

func (*EventPublicPositionParameterChanged) XXX_DiscardUnknown

func (m *EventPublicPositionParameterChanged) XXX_DiscardUnknown()

func (*EventPublicPositionParameterChanged) XXX_Marshal

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

func (*EventPublicPositionParameterChanged) XXX_Merge

func (*EventPublicPositionParameterChanged) XXX_Size

func (*EventPublicPositionParameterChanged) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params                    Params           `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	LastPublicPositionId      uint64           `` /* 126-byte string literal not displayed */
	PublicPositions           []PublicPosition `protobuf:"bytes,3,rep,name=public_positions,json=publicPositions,proto3" json:"public_positions"`
	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"`
	NextRewardsAuctionEndTime *time.Time       `` /* 150-byte string literal not displayed */
}

GenesisState defines the module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state.

func NewGenesisState

func NewGenesisState(
	params Params, lastPublicPositionId uint64, publicPositions []PublicPosition,
	auctions []RewardsAuction, bids []Bid, nextAuctionEndTime *time.Time) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (genState GenesisState) Validate() error

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 MsgBurnShare

type MsgBurnShare struct {
	Sender           string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	PublicPositionId uint64     `protobuf:"varint,2,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	Share            types.Coin `protobuf:"bytes,3,opt,name=share,proto3" json:"share"`
}

MsgBurnShare defines a SDK message for burning share of public position.

func NewMsgBurnShare

func NewMsgBurnShare(senderAddr sdk.AccAddress, publicPositionId uint64, share sdk.Coin) *MsgBurnShare

NewMsgBurnShare creates a new MsgBurnShare

func (*MsgBurnShare) Descriptor

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

func (MsgBurnShare) GetSignBytes

func (msg MsgBurnShare) GetSignBytes() []byte

func (MsgBurnShare) GetSigners

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

func (*MsgBurnShare) Marshal

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

func (*MsgBurnShare) MarshalTo

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

func (*MsgBurnShare) MarshalToSizedBuffer

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

func (*MsgBurnShare) ProtoMessage

func (*MsgBurnShare) ProtoMessage()

func (*MsgBurnShare) Reset

func (m *MsgBurnShare) Reset()

func (MsgBurnShare) Route

func (msg MsgBurnShare) Route() string

func (*MsgBurnShare) Size

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

func (*MsgBurnShare) String

func (m *MsgBurnShare) String() string

func (MsgBurnShare) Type

func (msg MsgBurnShare) Type() string

func (*MsgBurnShare) Unmarshal

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

func (MsgBurnShare) ValidateBasic

func (msg MsgBurnShare) ValidateBasic() error

func (*MsgBurnShare) XXX_DiscardUnknown

func (m *MsgBurnShare) XXX_DiscardUnknown()

func (*MsgBurnShare) XXX_Marshal

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

func (*MsgBurnShare) XXX_Merge

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

func (*MsgBurnShare) XXX_Size

func (m *MsgBurnShare) XXX_Size() int

func (*MsgBurnShare) XXX_Unmarshal

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

type MsgBurnShareResponse

type MsgBurnShareResponse struct {
	RemovedLiquidity github_com_cosmos_cosmos_sdk_types.Int   `` /* 149-byte string literal not displayed */
	Amount           github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

func (*MsgBurnShareResponse) Descriptor

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

func (*MsgBurnShareResponse) Marshal

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

func (*MsgBurnShareResponse) MarshalTo

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

func (*MsgBurnShareResponse) MarshalToSizedBuffer

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

func (*MsgBurnShareResponse) ProtoMessage

func (*MsgBurnShareResponse) ProtoMessage()

func (*MsgBurnShareResponse) Reset

func (m *MsgBurnShareResponse) Reset()

func (*MsgBurnShareResponse) Size

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

func (*MsgBurnShareResponse) String

func (m *MsgBurnShareResponse) String() string

func (*MsgBurnShareResponse) Unmarshal

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

func (*MsgBurnShareResponse) XXX_DiscardUnknown

func (m *MsgBurnShareResponse) XXX_DiscardUnknown()

func (*MsgBurnShareResponse) XXX_Marshal

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

func (*MsgBurnShareResponse) XXX_Merge

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

func (*MsgBurnShareResponse) XXX_Size

func (m *MsgBurnShareResponse) XXX_Size() int

func (*MsgBurnShareResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// MintShare defines a method for minting share of public position
	MintShare(ctx context.Context, in *MsgMintShare, opts ...grpc.CallOption) (*MsgMintShareResponse, error)
	// BurnShare defines a method for burning share of public position
	BurnShare(ctx context.Context, in *MsgBurnShare, opts ...grpc.CallOption) (*MsgBurnShareResponse, error)
	// PlaceBid defines a method for placing a bid for a rewards auction
	PlaceBid(ctx context.Context, in *MsgPlaceBid, opts ...grpc.CallOption) (*MsgPlaceBidResponse, 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 MsgMintShare

type MsgMintShare struct {
	Sender           string                                   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	PublicPositionId uint64                                   `protobuf:"varint,2,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	DesiredAmount    github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

MsgMintShare defines a SDK message for minting share of public position.

func NewMsgMintShare

func NewMsgMintShare(senderAddr sdk.AccAddress, publicPositionId uint64, desiredAmt sdk.Coins) *MsgMintShare

NewMsgMintShare creates a new MsgMintShare

func (*MsgMintShare) Descriptor

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

func (MsgMintShare) GetSignBytes

func (msg MsgMintShare) GetSignBytes() []byte

func (MsgMintShare) GetSigners

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

func (*MsgMintShare) Marshal

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

func (*MsgMintShare) MarshalTo

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

func (*MsgMintShare) MarshalToSizedBuffer

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

func (*MsgMintShare) ProtoMessage

func (*MsgMintShare) ProtoMessage()

func (*MsgMintShare) Reset

func (m *MsgMintShare) Reset()

func (MsgMintShare) Route

func (msg MsgMintShare) Route() string

func (*MsgMintShare) Size

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

func (*MsgMintShare) String

func (m *MsgMintShare) String() string

func (MsgMintShare) Type

func (msg MsgMintShare) Type() string

func (*MsgMintShare) Unmarshal

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

func (MsgMintShare) ValidateBasic

func (msg MsgMintShare) ValidateBasic() error

func (*MsgMintShare) XXX_DiscardUnknown

func (m *MsgMintShare) XXX_DiscardUnknown()

func (*MsgMintShare) XXX_Marshal

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

func (*MsgMintShare) XXX_Merge

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

func (*MsgMintShare) XXX_Size

func (m *MsgMintShare) XXX_Size() int

func (*MsgMintShare) XXX_Unmarshal

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

type MsgMintShareResponse

type MsgMintShareResponse struct {
	MintedShare types.Coin                               `protobuf:"bytes,1,opt,name=minted_share,json=mintedShare,proto3" json:"minted_share"`
	Liquidity   github_com_cosmos_cosmos_sdk_types.Int   `protobuf:"bytes,2,opt,name=liquidity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"liquidity"`
	Amount      github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

func (*MsgMintShareResponse) Descriptor

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

func (*MsgMintShareResponse) Marshal

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

func (*MsgMintShareResponse) MarshalTo

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

func (*MsgMintShareResponse) MarshalToSizedBuffer

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

func (*MsgMintShareResponse) ProtoMessage

func (*MsgMintShareResponse) ProtoMessage()

func (*MsgMintShareResponse) Reset

func (m *MsgMintShareResponse) Reset()

func (*MsgMintShareResponse) Size

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

func (*MsgMintShareResponse) String

func (m *MsgMintShareResponse) String() string

func (*MsgMintShareResponse) Unmarshal

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

func (*MsgMintShareResponse) XXX_DiscardUnknown

func (m *MsgMintShareResponse) XXX_DiscardUnknown()

func (*MsgMintShareResponse) XXX_Marshal

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

func (*MsgMintShareResponse) XXX_Merge

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

func (*MsgMintShareResponse) XXX_Size

func (m *MsgMintShareResponse) XXX_Size() int

func (*MsgMintShareResponse) XXX_Unmarshal

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

type MsgPlaceBid

type MsgPlaceBid struct {
	Sender           string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	PublicPositionId uint64     `protobuf:"varint,2,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	RewardsAuctionId uint64     `protobuf:"varint,3,opt,name=rewards_auction_id,json=rewardsAuctionId,proto3" json:"rewards_auction_id,omitempty"`
	Share            types.Coin `protobuf:"bytes,4,opt,name=share,proto3" json:"share"`
}

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

func NewMsgPlaceBid

func NewMsgPlaceBid(senderAddr sdk.AccAddress, publicPositionId, auctionId uint64, share sdk.Coin) *MsgPlaceBid

NewMsgPlaceBid creates a new MsgPlaceBid

func (*MsgPlaceBid) Descriptor

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

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

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 MsgServer

type MsgServer interface {
	// MintShare defines a method for minting share of public position
	MintShare(context.Context, *MsgMintShare) (*MsgMintShareResponse, error)
	// BurnShare defines a method for burning share of public position
	BurnShare(context.Context, *MsgBurnShare) (*MsgBurnShareResponse, error)
	// PlaceBid defines a method for placing a bid for a rewards auction
	PlaceBid(context.Context, *MsgPlaceBid) (*MsgPlaceBidResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	RewardsAuctionDuration      time.Duration `` /* 131-byte string literal not displayed */
	MaxNumRecentRewardsAuctions uint32        `` /* 149-byte string literal not displayed */
}

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 PublicPosition

type PublicPosition struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PoolId    uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	LowerTick int32  `protobuf:"varint,3,opt,name=lower_tick,json=lowerTick,proto3" json:"lower_tick,omitempty"`
	UpperTick int32  `protobuf:"varint,4,opt,name=upper_tick,json=upperTick,proto3" json:"upper_tick,omitempty"`
	// bid_reserve_address specifies the account that reserves bidding amounts placed by bidders
	BidReserveAddress    string                                 `protobuf:"bytes,5,opt,name=bid_reserve_address,json=bidReserveAddress,proto3" json:"bid_reserve_address,omitempty"`
	MinBidAmount         github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	FeeRate              github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
	LastRewardsAuctionId uint64                                 `` /* 126-byte string literal not displayed */
}

PublicPosition defines public position object that provides auto compounding functionality for the amm position and undergoes rewards auction process. See the technical spec for more detailed information.

func NewPublicPosition

func NewPublicPosition(
	id, poolId uint64, lowerTick, upperTick int32, minBidAmt sdk.Int, feeRate sdk.Dec) PublicPosition

NewPublicPosition returns a new PublicPosition.

func (*PublicPosition) Descriptor

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

func (*PublicPosition) Marshal

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

func (*PublicPosition) MarshalTo

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

func (*PublicPosition) MarshalToSizedBuffer

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

func (*PublicPosition) ProtoMessage

func (*PublicPosition) ProtoMessage()

func (*PublicPosition) Reset

func (m *PublicPosition) Reset()

func (*PublicPosition) Size

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

func (*PublicPosition) String

func (m *PublicPosition) String() string

func (*PublicPosition) Unmarshal

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

func (PublicPosition) Validate

func (publicPosition PublicPosition) Validate() error

Validate validates PublicPosition.

func (*PublicPosition) XXX_DiscardUnknown

func (m *PublicPosition) XXX_DiscardUnknown()

func (*PublicPosition) XXX_Marshal

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

func (*PublicPosition) XXX_Merge

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

func (*PublicPosition) XXX_Size

func (m *PublicPosition) XXX_Size() int

func (*PublicPosition) XXX_Unmarshal

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

type PublicPositionCreateProposal

type PublicPositionCreateProposal struct {
	Title        string                                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description  string                                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	PoolId       uint64                                 `protobuf:"varint,3,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	LowerPrice   github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */
	UpperPrice   github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-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,7,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
}

func NewPublicPositionCreateProposal

func NewPublicPositionCreateProposal(
	title, description string, poolId uint64,
	lowerPrice, upperPrice sdk.Dec, minBidAmt sdk.Int, feeRate sdk.Dec) *PublicPositionCreateProposal

func (*PublicPositionCreateProposal) Descriptor

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

func (*PublicPositionCreateProposal) GetDescription

func (p *PublicPositionCreateProposal) GetDescription() string

func (*PublicPositionCreateProposal) GetTitle

func (p *PublicPositionCreateProposal) GetTitle() string

func (*PublicPositionCreateProposal) Marshal

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

func (*PublicPositionCreateProposal) MarshalTo

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

func (*PublicPositionCreateProposal) MarshalToSizedBuffer

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

func (*PublicPositionCreateProposal) ProposalRoute

func (p *PublicPositionCreateProposal) ProposalRoute() string

func (*PublicPositionCreateProposal) ProposalType

func (p *PublicPositionCreateProposal) ProposalType() string

func (*PublicPositionCreateProposal) ProtoMessage

func (*PublicPositionCreateProposal) ProtoMessage()

func (*PublicPositionCreateProposal) Reset

func (m *PublicPositionCreateProposal) Reset()

func (*PublicPositionCreateProposal) Size

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

func (PublicPositionCreateProposal) String

func (*PublicPositionCreateProposal) Unmarshal

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

func (*PublicPositionCreateProposal) ValidateBasic

func (p *PublicPositionCreateProposal) ValidateBasic() error

func (*PublicPositionCreateProposal) XXX_DiscardUnknown

func (m *PublicPositionCreateProposal) XXX_DiscardUnknown()

func (*PublicPositionCreateProposal) XXX_Marshal

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

func (*PublicPositionCreateProposal) XXX_Merge

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

func (*PublicPositionCreateProposal) XXX_Size

func (m *PublicPositionCreateProposal) XXX_Size() int

func (*PublicPositionCreateProposal) XXX_Unmarshal

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

type PublicPositionParameterChange

type PublicPositionParameterChange struct {
	PublicPositionId uint64                                 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	MinBidAmount     github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	FeeRate          github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
}

func (*PublicPositionParameterChange) Descriptor

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

func (*PublicPositionParameterChange) Marshal

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

func (*PublicPositionParameterChange) MarshalTo

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

func (*PublicPositionParameterChange) MarshalToSizedBuffer

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

func (*PublicPositionParameterChange) ProtoMessage

func (*PublicPositionParameterChange) ProtoMessage()

func (*PublicPositionParameterChange) Reset

func (m *PublicPositionParameterChange) Reset()

func (*PublicPositionParameterChange) Size

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

func (*PublicPositionParameterChange) String

func (*PublicPositionParameterChange) Unmarshal

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

func (PublicPositionParameterChange) Validate

func (change PublicPositionParameterChange) Validate() error

func (*PublicPositionParameterChange) XXX_DiscardUnknown

func (m *PublicPositionParameterChange) XXX_DiscardUnknown()

func (*PublicPositionParameterChange) XXX_Marshal

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

func (*PublicPositionParameterChange) XXX_Merge

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

func (*PublicPositionParameterChange) XXX_Size

func (m *PublicPositionParameterChange) XXX_Size() int

func (*PublicPositionParameterChange) XXX_Unmarshal

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

type PublicPositionParameterChangeProposal

type PublicPositionParameterChangeProposal struct {
	Title       string                          `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string                          `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Changes     []PublicPositionParameterChange `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"`
}

func NewPublicPositionParameterChangeProposal

func NewPublicPositionParameterChangeProposal(
	title, description string, changes []PublicPositionParameterChange) *PublicPositionParameterChangeProposal

func (*PublicPositionParameterChangeProposal) Descriptor

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

func (*PublicPositionParameterChangeProposal) GetDescription

func (p *PublicPositionParameterChangeProposal) GetDescription() string

func (*PublicPositionParameterChangeProposal) GetTitle

func (*PublicPositionParameterChangeProposal) Marshal

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

func (*PublicPositionParameterChangeProposal) MarshalTo

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

func (*PublicPositionParameterChangeProposal) MarshalToSizedBuffer

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

func (*PublicPositionParameterChangeProposal) ProposalRoute

func (p *PublicPositionParameterChangeProposal) ProposalRoute() string

func (*PublicPositionParameterChangeProposal) ProposalType

func (*PublicPositionParameterChangeProposal) ProtoMessage

func (*PublicPositionParameterChangeProposal) ProtoMessage()

func (*PublicPositionParameterChangeProposal) Reset

func (*PublicPositionParameterChangeProposal) Size

func (PublicPositionParameterChangeProposal) String

func (*PublicPositionParameterChangeProposal) Unmarshal

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

func (*PublicPositionParameterChangeProposal) ValidateBasic

func (p *PublicPositionParameterChangeProposal) ValidateBasic() error

func (*PublicPositionParameterChangeProposal) XXX_DiscardUnknown

func (m *PublicPositionParameterChangeProposal) XXX_DiscardUnknown()

func (*PublicPositionParameterChangeProposal) XXX_Marshal

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

func (*PublicPositionParameterChangeProposal) XXX_Merge

func (*PublicPositionParameterChangeProposal) XXX_Size

func (*PublicPositionParameterChangeProposal) XXX_Unmarshal

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

type PublicPositionResponse

type PublicPositionResponse struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PoolId    uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	LowerTick int32  `protobuf:"varint,3,opt,name=lower_tick,json=lowerTick,proto3" json:"lower_tick,omitempty"`
	UpperTick int32  `protobuf:"varint,4,opt,name=upper_tick,json=upperTick,proto3" json:"upper_tick,omitempty"`
	// bid_reserve_address specifies the account that reserves bidding amounts placed by bidders
	BidReserveAddress    string                                 `protobuf:"bytes,5,opt,name=bid_reserve_address,json=bidReserveAddress,proto3" json:"bid_reserve_address,omitempty"`
	MinBidAmount         github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	FeeRate              github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
	LastRewardsAuctionId uint64                                 `` /* 126-byte string literal not displayed */
	Liquidity            github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=liquidity,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"liquidity"`
	PositionId           uint64                                 `protobuf:"varint,10,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	TotalShare           types.Coin                             `protobuf:"bytes,11,opt,name=total_share,json=totalShare,proto3" json:"total_share"`
}

PublicPositionResponse is response type for the Query/PublicPosition RPC method.

func (*PublicPositionResponse) Descriptor

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

func (*PublicPositionResponse) GetBidReserveAddress

func (m *PublicPositionResponse) GetBidReserveAddress() string

func (*PublicPositionResponse) GetId

func (m *PublicPositionResponse) GetId() uint64

func (*PublicPositionResponse) GetLastRewardsAuctionId

func (m *PublicPositionResponse) GetLastRewardsAuctionId() uint64

func (*PublicPositionResponse) GetLowerTick

func (m *PublicPositionResponse) GetLowerTick() int32

func (*PublicPositionResponse) GetPoolId

func (m *PublicPositionResponse) GetPoolId() uint64

func (*PublicPositionResponse) GetPositionId

func (m *PublicPositionResponse) GetPositionId() uint64

func (*PublicPositionResponse) GetTotalShare

func (m *PublicPositionResponse) GetTotalShare() types.Coin

func (*PublicPositionResponse) GetUpperTick

func (m *PublicPositionResponse) GetUpperTick() int32

func (*PublicPositionResponse) Marshal

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

func (*PublicPositionResponse) MarshalTo

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

func (*PublicPositionResponse) MarshalToSizedBuffer

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

func (*PublicPositionResponse) ProtoMessage

func (*PublicPositionResponse) ProtoMessage()

func (*PublicPositionResponse) Reset

func (m *PublicPositionResponse) Reset()

func (*PublicPositionResponse) Size

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

func (*PublicPositionResponse) String

func (m *PublicPositionResponse) String() string

func (*PublicPositionResponse) Unmarshal

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

func (*PublicPositionResponse) XXX_DiscardUnknown

func (m *PublicPositionResponse) XXX_DiscardUnknown()

func (*PublicPositionResponse) XXX_Marshal

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

func (*PublicPositionResponse) XXX_Merge

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

func (*PublicPositionResponse) XXX_Size

func (m *PublicPositionResponse) XXX_Size() int

func (*PublicPositionResponse) XXX_Unmarshal

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

type QueryBidsRequest

type QueryBidsRequest struct {
	PublicPositionId uint64             `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	AuctionId        uint64             `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	Pagination       *query.PageRequest `protobuf:"bytes,3,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) GetAuctionId

func (m *QueryBidsRequest) GetAuctionId() uint64

func (*QueryBidsRequest) GetPagination

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

func (*QueryBidsRequest) GetPublicPositionId

func (m *QueryBidsRequest) GetPublicPositionId() 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)
	// PublicPositions returns all public positions registered in module
	PublicPositions(ctx context.Context, in *QueryPublicPositionsRequest, opts ...grpc.CallOption) (*QueryPublicPositionsResponse, error)
	// PublicPosition returns the specific public position
	PublicPosition(ctx context.Context, in *QueryPublicPositionRequest, opts ...grpc.CallOption) (*QueryPublicPositionResponse, 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 rewards auction
	Bids(ctx context.Context, in *QueryBidsRequest, opts ...grpc.CallOption) (*QueryBidsResponse, error)
	// Rewards returns all accumulated rewards for the public position
	Rewards(ctx context.Context, in *QueryRewardsRequest, opts ...grpc.CallOption) (*QueryRewardsResponse, error)
	// ExchangeRate returns exchange rates (mint rate and burn rate) for the public position
	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 {
	PublicPositionId uint64 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
}

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

func (*QueryExchangeRateRequest) Descriptor

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

func (*QueryExchangeRateRequest) GetPublicPositionId

func (m *QueryExchangeRateRequest) GetPublicPositionId() 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 {
	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"`
}

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

func (*QueryExchangeRateResponse) Descriptor

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

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 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 QueryPublicPositionRequest

type QueryPublicPositionRequest struct {
	PublicPositionId uint64 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
}

QueryPublicPositionRequest is the request type for the Query/PublicPosition RPC method.

func (*QueryPublicPositionRequest) Descriptor

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

func (*QueryPublicPositionRequest) GetPublicPositionId

func (m *QueryPublicPositionRequest) GetPublicPositionId() uint64

func (*QueryPublicPositionRequest) Marshal

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

func (*QueryPublicPositionRequest) MarshalTo

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

func (*QueryPublicPositionRequest) MarshalToSizedBuffer

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

func (*QueryPublicPositionRequest) ProtoMessage

func (*QueryPublicPositionRequest) ProtoMessage()

func (*QueryPublicPositionRequest) Reset

func (m *QueryPublicPositionRequest) Reset()

func (*QueryPublicPositionRequest) Size

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

func (*QueryPublicPositionRequest) String

func (m *QueryPublicPositionRequest) String() string

func (*QueryPublicPositionRequest) Unmarshal

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

func (*QueryPublicPositionRequest) XXX_DiscardUnknown

func (m *QueryPublicPositionRequest) XXX_DiscardUnknown()

func (*QueryPublicPositionRequest) XXX_Marshal

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

func (*QueryPublicPositionRequest) XXX_Merge

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

func (*QueryPublicPositionRequest) XXX_Size

func (m *QueryPublicPositionRequest) XXX_Size() int

func (*QueryPublicPositionRequest) XXX_Unmarshal

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

type QueryPublicPositionResponse

type QueryPublicPositionResponse struct {
	PublicPosition PublicPositionResponse `protobuf:"bytes,1,opt,name=public_position,json=publicPosition,proto3" json:"public_position"`
}

QueryPublicPositionResponse is response type for the Query/PublicPosition RPC method.

func (*QueryPublicPositionResponse) Descriptor

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

func (*QueryPublicPositionResponse) GetPublicPosition

func (m *QueryPublicPositionResponse) GetPublicPosition() PublicPositionResponse

func (*QueryPublicPositionResponse) Marshal

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

func (*QueryPublicPositionResponse) MarshalTo

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

func (*QueryPublicPositionResponse) MarshalToSizedBuffer

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

func (*QueryPublicPositionResponse) ProtoMessage

func (*QueryPublicPositionResponse) ProtoMessage()

func (*QueryPublicPositionResponse) Reset

func (m *QueryPublicPositionResponse) Reset()

func (*QueryPublicPositionResponse) Size

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

func (*QueryPublicPositionResponse) String

func (m *QueryPublicPositionResponse) String() string

func (*QueryPublicPositionResponse) Unmarshal

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

func (*QueryPublicPositionResponse) XXX_DiscardUnknown

func (m *QueryPublicPositionResponse) XXX_DiscardUnknown()

func (*QueryPublicPositionResponse) XXX_Marshal

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

func (*QueryPublicPositionResponse) XXX_Merge

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

func (*QueryPublicPositionResponse) XXX_Size

func (m *QueryPublicPositionResponse) XXX_Size() int

func (*QueryPublicPositionResponse) XXX_Unmarshal

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

type QueryPublicPositionsRequest

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

QueryPublicPositionsRequest is the request type for the Query/PublicPositions RPC method.

func (*QueryPublicPositionsRequest) Descriptor

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

func (*QueryPublicPositionsRequest) GetPagination

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

func (*QueryPublicPositionsRequest) GetPoolId

func (m *QueryPublicPositionsRequest) GetPoolId() uint64

func (*QueryPublicPositionsRequest) Marshal

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

func (*QueryPublicPositionsRequest) MarshalTo

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

func (*QueryPublicPositionsRequest) MarshalToSizedBuffer

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

func (*QueryPublicPositionsRequest) ProtoMessage

func (*QueryPublicPositionsRequest) ProtoMessage()

func (*QueryPublicPositionsRequest) Reset

func (m *QueryPublicPositionsRequest) Reset()

func (*QueryPublicPositionsRequest) Size

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

func (*QueryPublicPositionsRequest) String

func (m *QueryPublicPositionsRequest) String() string

func (*QueryPublicPositionsRequest) Unmarshal

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

func (*QueryPublicPositionsRequest) XXX_DiscardUnknown

func (m *QueryPublicPositionsRequest) XXX_DiscardUnknown()

func (*QueryPublicPositionsRequest) XXX_Marshal

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

func (*QueryPublicPositionsRequest) XXX_Merge

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

func (*QueryPublicPositionsRequest) XXX_Size

func (m *QueryPublicPositionsRequest) XXX_Size() int

func (*QueryPublicPositionsRequest) XXX_Unmarshal

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

type QueryPublicPositionsResponse

type QueryPublicPositionsResponse struct {
	PublicPositions []PublicPositionResponse `protobuf:"bytes,1,rep,name=public_positions,json=publicPositions,proto3" json:"public_positions"`
	Pagination      *query.PageResponse      `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPublicPositionsResponse is response type for the Query/PublicPositions RPC method.

func (*QueryPublicPositionsResponse) Descriptor

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

func (*QueryPublicPositionsResponse) GetPagination

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

func (*QueryPublicPositionsResponse) GetPublicPositions

func (m *QueryPublicPositionsResponse) GetPublicPositions() []PublicPositionResponse

func (*QueryPublicPositionsResponse) Marshal

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

func (*QueryPublicPositionsResponse) MarshalTo

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

func (*QueryPublicPositionsResponse) MarshalToSizedBuffer

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

func (*QueryPublicPositionsResponse) ProtoMessage

func (*QueryPublicPositionsResponse) ProtoMessage()

func (*QueryPublicPositionsResponse) Reset

func (m *QueryPublicPositionsResponse) Reset()

func (*QueryPublicPositionsResponse) Size

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

func (*QueryPublicPositionsResponse) String

func (*QueryPublicPositionsResponse) Unmarshal

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

func (*QueryPublicPositionsResponse) XXX_DiscardUnknown

func (m *QueryPublicPositionsResponse) XXX_DiscardUnknown()

func (*QueryPublicPositionsResponse) XXX_Marshal

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

func (*QueryPublicPositionsResponse) XXX_Merge

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

func (*QueryPublicPositionsResponse) XXX_Size

func (m *QueryPublicPositionsResponse) XXX_Size() int

func (*QueryPublicPositionsResponse) XXX_Unmarshal

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

type QueryRewardsAuctionRequest

type QueryRewardsAuctionRequest struct {
	PublicPositionId uint64 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	AuctionId        uint64 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_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) GetPublicPositionId

func (m *QueryRewardsAuctionRequest) GetPublicPositionId() 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 {
	PublicPositionId uint64             `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_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) GetPublicPositionId

func (m *QueryRewardsAuctionsRequest) GetPublicPositionId() 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 {
	PublicPositionId uint64 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
}

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

func (*QueryRewardsRequest) Descriptor

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

func (*QueryRewardsRequest) GetPublicPositionId

func (m *QueryRewardsRequest) GetPublicPositionId() 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)
	// PublicPositions returns all public positions registered in module
	PublicPositions(context.Context, *QueryPublicPositionsRequest) (*QueryPublicPositionsResponse, error)
	// PublicPosition returns the specific public position
	PublicPosition(context.Context, *QueryPublicPositionRequest) (*QueryPublicPositionResponse, 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 rewards auction
	Bids(context.Context, *QueryBidsRequest) (*QueryBidsResponse, error)
	// Rewards returns all accumulated rewards for the public position
	Rewards(context.Context, *QueryRewardsRequest) (*QueryRewardsResponse, error)
	// ExchangeRate returns exchange rates (mint rate and burn rate) for the public position
	ExchangeRate(context.Context, *QueryExchangeRateRequest) (*QueryExchangeRateResponse, error)
}

QueryServer is the server API for Query service.

type RewardsAuction

type RewardsAuction struct {
	// public_position_id specifies the public position's id.
	PublicPositionId uint64 `protobuf:"varint,1,opt,name=public_position_id,json=publicPositionId,proto3" json:"public_position_id,omitempty"`
	// id specifies the unique auction id in the public position
	Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// start_time specifies the start time of an auction
	StartTime time.Time `protobuf:"bytes,3,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,4,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
	// status specifies the status of an auction
	Status AuctionStatus `protobuf:"varint,5,opt,name=status,proto3,enum=crescent.liquidamm.v1beta1.AuctionStatus" json:"status,omitempty"`
	// winning_bid specifies the winning bid
	WinningBid *Bid `protobuf:"bytes,6,opt,name=winning_bid,json=winningBid,proto3" json:"winning_bid,omitempty"`
	// rewards specifies the rewards the winning bidder has received
	// the value is determined when an auction is finished
	Rewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards"`
	Fees    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,8,rep,name=fees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fees"`
}

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

func NewRewardsAuction

func NewRewardsAuction(
	publicPositionId, auctionId uint64, startTime, endTime time.Time,
	status AuctionStatus) RewardsAuction

NewRewardsAuction creates a new RewardsAuction.

func (*RewardsAuction) Descriptor

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

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

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

func (*RewardsAuction) SetRewards

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

func (*RewardsAuction) SetStatus

func (auction *RewardsAuction) SetStatus(status AuctionStatus)

func (*RewardsAuction) SetWinningBid

func (auction *RewardsAuction) SetWinningBid(winningBid *Bid)

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 (auction 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) BurnShare

func (*UnimplementedMsgServer) MintShare

func (*UnimplementedMsgServer) PlaceBid

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Bids

func (*UnimplementedQueryServer) ExchangeRate

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PublicPosition

func (*UnimplementedQueryServer) PublicPositions

func (*UnimplementedQueryServer) Rewards

func (*UnimplementedQueryServer) RewardsAuction

func (*UnimplementedQueryServer) RewardsAuctions

Jump to

Keyboard shortcuts

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