query

package
v15.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package query is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

Functions

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type LiquidityDepthWithRange

type LiquidityDepthWithRange struct {
	LiquidityAmount github_com_cosmos_cosmos_sdk_types.Dec `` /* 167-byte string literal not displayed */
	LowerTick       github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
	UpperTick       github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
}

func (*LiquidityDepthWithRange) Descriptor

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

func (*LiquidityDepthWithRange) Marshal

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

func (*LiquidityDepthWithRange) MarshalTo

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

func (*LiquidityDepthWithRange) MarshalToSizedBuffer

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

func (*LiquidityDepthWithRange) ProtoMessage

func (*LiquidityDepthWithRange) ProtoMessage()

func (*LiquidityDepthWithRange) Reset

func (m *LiquidityDepthWithRange) Reset()

func (*LiquidityDepthWithRange) Size

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

func (*LiquidityDepthWithRange) String

func (m *LiquidityDepthWithRange) String() string

func (*LiquidityDepthWithRange) Unmarshal

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

func (*LiquidityDepthWithRange) XXX_DiscardUnknown

func (m *LiquidityDepthWithRange) XXX_DiscardUnknown()

func (*LiquidityDepthWithRange) XXX_Marshal

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

func (*LiquidityDepthWithRange) XXX_Merge

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

func (*LiquidityDepthWithRange) XXX_Size

func (m *LiquidityDepthWithRange) XXX_Size() int

func (*LiquidityDepthWithRange) XXX_Unmarshal

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

type QueryClaimableFeesRequest

type QueryClaimableFeesRequest struct {
	PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"`
}

===================== MsgQueryClaimableFees

func (*QueryClaimableFeesRequest) Descriptor

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

func (*QueryClaimableFeesRequest) GetPositionId

func (m *QueryClaimableFeesRequest) GetPositionId() uint64

func (*QueryClaimableFeesRequest) Marshal

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

func (*QueryClaimableFeesRequest) MarshalTo

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

func (*QueryClaimableFeesRequest) MarshalToSizedBuffer

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

func (*QueryClaimableFeesRequest) ProtoMessage

func (*QueryClaimableFeesRequest) ProtoMessage()

func (*QueryClaimableFeesRequest) Reset

func (m *QueryClaimableFeesRequest) Reset()

func (*QueryClaimableFeesRequest) Size

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

func (*QueryClaimableFeesRequest) String

func (m *QueryClaimableFeesRequest) String() string

func (*QueryClaimableFeesRequest) Unmarshal

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

func (*QueryClaimableFeesRequest) XXX_DiscardUnknown

func (m *QueryClaimableFeesRequest) XXX_DiscardUnknown()

func (*QueryClaimableFeesRequest) XXX_Marshal

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

func (*QueryClaimableFeesRequest) XXX_Merge

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

func (*QueryClaimableFeesRequest) XXX_Size

func (m *QueryClaimableFeesRequest) XXX_Size() int

func (*QueryClaimableFeesRequest) XXX_Unmarshal

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

type QueryClaimableFeesResponse

type QueryClaimableFeesResponse struct {
	ClaimableFees []types2.Coin `protobuf:"bytes,1,rep,name=claimable_fees,json=claimableFees,proto3" json:"claimable_fees" yaml:"claimable_fees"`
}

func (*QueryClaimableFeesResponse) Descriptor

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

func (*QueryClaimableFeesResponse) GetClaimableFees

func (m *QueryClaimableFeesResponse) GetClaimableFees() []types2.Coin

func (*QueryClaimableFeesResponse) Marshal

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

func (*QueryClaimableFeesResponse) MarshalTo

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

func (*QueryClaimableFeesResponse) MarshalToSizedBuffer

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

func (*QueryClaimableFeesResponse) ProtoMessage

func (*QueryClaimableFeesResponse) ProtoMessage()

func (*QueryClaimableFeesResponse) Reset

func (m *QueryClaimableFeesResponse) Reset()

func (*QueryClaimableFeesResponse) Size

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

func (*QueryClaimableFeesResponse) String

func (m *QueryClaimableFeesResponse) String() string

func (*QueryClaimableFeesResponse) Unmarshal

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

func (*QueryClaimableFeesResponse) XXX_DiscardUnknown

func (m *QueryClaimableFeesResponse) XXX_DiscardUnknown()

func (*QueryClaimableFeesResponse) XXX_Marshal

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

func (*QueryClaimableFeesResponse) XXX_Merge

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

func (*QueryClaimableFeesResponse) XXX_Size

func (m *QueryClaimableFeesResponse) XXX_Size() int

func (*QueryClaimableFeesResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Pools returns all concentrated liquidity pools
	Pools(ctx context.Context, in *QueryPoolsRequest, opts ...grpc.CallOption) (*QueryPoolsResponse, error)
	// Params returns concentrated liquidity module params.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// UserPositions returns all concentrated postitions of some address.
	UserPositions(ctx context.Context, in *QueryUserPositionsRequest, opts ...grpc.CallOption) (*QueryUserPositionsResponse, error)
	// TotalLiquidityForRange the amount of liquidity existing within given range.
	TotalLiquidityForRange(ctx context.Context, in *QueryTotalLiquidityForRangeRequest, opts ...grpc.CallOption) (*QueryTotalLiquidityForRangeResponse, error)
	// LiquidityNetInDirection returns liquidity net in the direction given.
	// Uses the bound if specified, if not uses either min tick / max tick
	// depending on the direction.
	LiquidityNetInDirection(ctx context.Context, in *QueryLiquidityNetInDirectionRequest, opts ...grpc.CallOption) (*QueryLiquidityNetInDirectionResponse, error)
	// ClaimableFees returns the amount of fees that can be claimed by a position
	// with the given id.
	ClaimableFees(ctx context.Context, in *QueryClaimableFeesRequest, opts ...grpc.CallOption) (*QueryClaimableFeesResponse, error)
	// PositionById returns a position with the given id.
	PositionById(ctx context.Context, in *QueryPositionByIdRequest, opts ...grpc.CallOption) (*QueryPositionByIdResponse, 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 QueryLiquidityNetInDirectionRequest

type QueryLiquidityNetInDirectionRequest struct {
	PoolId    uint64                                  `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"`
	TokenIn   string                                  `protobuf:"bytes,2,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty" yaml:"token_in"`
	StartTick *github_com_cosmos_cosmos_sdk_types.Int `` /* 156-byte string literal not displayed */
	BoundTick *github_com_cosmos_cosmos_sdk_types.Int `` /* 156-byte string literal not displayed */
}

=============================== LiquidityNetInDirection

func (*QueryLiquidityNetInDirectionRequest) Descriptor

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

func (*QueryLiquidityNetInDirectionRequest) GetPoolId

func (*QueryLiquidityNetInDirectionRequest) GetTokenIn

func (*QueryLiquidityNetInDirectionRequest) Marshal

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

func (*QueryLiquidityNetInDirectionRequest) MarshalTo

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

func (*QueryLiquidityNetInDirectionRequest) MarshalToSizedBuffer

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

func (*QueryLiquidityNetInDirectionRequest) ProtoMessage

func (*QueryLiquidityNetInDirectionRequest) ProtoMessage()

func (*QueryLiquidityNetInDirectionRequest) Reset

func (*QueryLiquidityNetInDirectionRequest) Size

func (*QueryLiquidityNetInDirectionRequest) String

func (*QueryLiquidityNetInDirectionRequest) Unmarshal

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

func (*QueryLiquidityNetInDirectionRequest) XXX_DiscardUnknown

func (m *QueryLiquidityNetInDirectionRequest) XXX_DiscardUnknown()

func (*QueryLiquidityNetInDirectionRequest) XXX_Marshal

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

func (*QueryLiquidityNetInDirectionRequest) XXX_Merge

func (*QueryLiquidityNetInDirectionRequest) XXX_Size

func (*QueryLiquidityNetInDirectionRequest) XXX_Unmarshal

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

type QueryLiquidityNetInDirectionResponse

type QueryLiquidityNetInDirectionResponse struct {
	LiquidityDepths  []TickLiquidityNet                     `protobuf:"bytes,1,rep,name=liquidity_depths,json=liquidityDepths,proto3" json:"liquidity_depths"`
	CurrentTick      int64                                  `protobuf:"varint,2,opt,name=current_tick,json=currentTick,proto3" json:"current_tick,omitempty"`
	CurrentLiquidity github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */
}

func (*QueryLiquidityNetInDirectionResponse) Descriptor

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

func (*QueryLiquidityNetInDirectionResponse) GetCurrentTick

func (m *QueryLiquidityNetInDirectionResponse) GetCurrentTick() int64

func (*QueryLiquidityNetInDirectionResponse) GetLiquidityDepths

func (m *QueryLiquidityNetInDirectionResponse) GetLiquidityDepths() []TickLiquidityNet

func (*QueryLiquidityNetInDirectionResponse) Marshal

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

func (*QueryLiquidityNetInDirectionResponse) MarshalTo

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

func (*QueryLiquidityNetInDirectionResponse) MarshalToSizedBuffer

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

func (*QueryLiquidityNetInDirectionResponse) ProtoMessage

func (*QueryLiquidityNetInDirectionResponse) ProtoMessage()

func (*QueryLiquidityNetInDirectionResponse) Reset

func (*QueryLiquidityNetInDirectionResponse) Size

func (*QueryLiquidityNetInDirectionResponse) String

func (*QueryLiquidityNetInDirectionResponse) Unmarshal

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

func (*QueryLiquidityNetInDirectionResponse) XXX_DiscardUnknown

func (m *QueryLiquidityNetInDirectionResponse) XXX_DiscardUnknown()

func (*QueryLiquidityNetInDirectionResponse) XXX_Marshal

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

func (*QueryLiquidityNetInDirectionResponse) XXX_Merge

func (*QueryLiquidityNetInDirectionResponse) XXX_Size

func (*QueryLiquidityNetInDirectionResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

=============================== ModuleParams

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 types1.Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() types1.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 QueryPoolsRequest

type QueryPoolsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

=============================== Pools

func (*QueryPoolsRequest) Descriptor

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

func (*QueryPoolsRequest) GetPagination

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

func (*QueryPoolsRequest) Marshal

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

func (*QueryPoolsRequest) MarshalTo

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

func (*QueryPoolsRequest) MarshalToSizedBuffer

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

func (*QueryPoolsRequest) ProtoMessage

func (*QueryPoolsRequest) ProtoMessage()

func (*QueryPoolsRequest) Reset

func (m *QueryPoolsRequest) Reset()

func (*QueryPoolsRequest) Size

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

func (*QueryPoolsRequest) String

func (m *QueryPoolsRequest) String() string

func (*QueryPoolsRequest) Unmarshal

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

func (*QueryPoolsRequest) XXX_DiscardUnknown

func (m *QueryPoolsRequest) XXX_DiscardUnknown()

func (*QueryPoolsRequest) XXX_Marshal

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

func (*QueryPoolsRequest) XXX_Merge

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

func (*QueryPoolsRequest) XXX_Size

func (m *QueryPoolsRequest) XXX_Size() int

func (*QueryPoolsRequest) XXX_Unmarshal

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

type QueryPoolsResponse

type QueryPoolsResponse struct {
	Pools []*types.Any `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryPoolsResponse) Descriptor

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

func (*QueryPoolsResponse) GetPagination

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

func (*QueryPoolsResponse) GetPools

func (m *QueryPoolsResponse) GetPools() []*types.Any

func (*QueryPoolsResponse) Marshal

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

func (*QueryPoolsResponse) MarshalTo

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

func (*QueryPoolsResponse) MarshalToSizedBuffer

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

func (*QueryPoolsResponse) ProtoMessage

func (*QueryPoolsResponse) ProtoMessage()

func (*QueryPoolsResponse) Reset

func (m *QueryPoolsResponse) Reset()

func (*QueryPoolsResponse) Size

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

func (*QueryPoolsResponse) String

func (m *QueryPoolsResponse) String() string

func (*QueryPoolsResponse) Unmarshal

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

func (*QueryPoolsResponse) XXX_DiscardUnknown

func (m *QueryPoolsResponse) XXX_DiscardUnknown()

func (*QueryPoolsResponse) XXX_Marshal

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

func (*QueryPoolsResponse) XXX_Merge

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

func (*QueryPoolsResponse) XXX_Size

func (m *QueryPoolsResponse) XXX_Size() int

func (*QueryPoolsResponse) XXX_Unmarshal

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

type QueryPositionByIdRequest

type QueryPositionByIdRequest struct {
	PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"`
}

=============================== PositionById

func (*QueryPositionByIdRequest) Descriptor

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

func (*QueryPositionByIdRequest) GetPositionId

func (m *QueryPositionByIdRequest) GetPositionId() uint64

func (*QueryPositionByIdRequest) Marshal

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

func (*QueryPositionByIdRequest) MarshalTo

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

func (*QueryPositionByIdRequest) MarshalToSizedBuffer

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

func (*QueryPositionByIdRequest) ProtoMessage

func (*QueryPositionByIdRequest) ProtoMessage()

func (*QueryPositionByIdRequest) Reset

func (m *QueryPositionByIdRequest) Reset()

func (*QueryPositionByIdRequest) Size

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

func (*QueryPositionByIdRequest) String

func (m *QueryPositionByIdRequest) String() string

func (*QueryPositionByIdRequest) Unmarshal

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

func (*QueryPositionByIdRequest) XXX_DiscardUnknown

func (m *QueryPositionByIdRequest) XXX_DiscardUnknown()

func (*QueryPositionByIdRequest) XXX_Marshal

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

func (*QueryPositionByIdRequest) XXX_Merge

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

func (*QueryPositionByIdRequest) XXX_Size

func (m *QueryPositionByIdRequest) XXX_Size() int

func (*QueryPositionByIdRequest) XXX_Unmarshal

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

type QueryPositionByIdResponse

type QueryPositionByIdResponse struct {
	Position model.PositionWithUnderlyingAssetBreakdown `protobuf:"bytes,1,opt,name=position,proto3" json:"position"`
}

func (*QueryPositionByIdResponse) Descriptor

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

func (*QueryPositionByIdResponse) GetPosition

func (*QueryPositionByIdResponse) Marshal

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

func (*QueryPositionByIdResponse) MarshalTo

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

func (*QueryPositionByIdResponse) MarshalToSizedBuffer

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

func (*QueryPositionByIdResponse) ProtoMessage

func (*QueryPositionByIdResponse) ProtoMessage()

func (*QueryPositionByIdResponse) Reset

func (m *QueryPositionByIdResponse) Reset()

func (*QueryPositionByIdResponse) Size

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

func (*QueryPositionByIdResponse) String

func (m *QueryPositionByIdResponse) String() string

func (*QueryPositionByIdResponse) Unmarshal

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

func (*QueryPositionByIdResponse) XXX_DiscardUnknown

func (m *QueryPositionByIdResponse) XXX_DiscardUnknown()

func (*QueryPositionByIdResponse) XXX_Marshal

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

func (*QueryPositionByIdResponse) XXX_Merge

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

func (*QueryPositionByIdResponse) XXX_Size

func (m *QueryPositionByIdResponse) XXX_Size() int

func (*QueryPositionByIdResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Pools returns all concentrated liquidity pools
	Pools(context.Context, *QueryPoolsRequest) (*QueryPoolsResponse, error)
	// Params returns concentrated liquidity module params.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// UserPositions returns all concentrated postitions of some address.
	UserPositions(context.Context, *QueryUserPositionsRequest) (*QueryUserPositionsResponse, error)
	// TotalLiquidityForRange the amount of liquidity existing within given range.
	TotalLiquidityForRange(context.Context, *QueryTotalLiquidityForRangeRequest) (*QueryTotalLiquidityForRangeResponse, error)
	// LiquidityNetInDirection returns liquidity net in the direction given.
	// Uses the bound if specified, if not uses either min tick / max tick
	// depending on the direction.
	LiquidityNetInDirection(context.Context, *QueryLiquidityNetInDirectionRequest) (*QueryLiquidityNetInDirectionResponse, error)
	// ClaimableFees returns the amount of fees that can be claimed by a position
	// with the given id.
	ClaimableFees(context.Context, *QueryClaimableFeesRequest) (*QueryClaimableFeesResponse, error)
	// PositionById returns a position with the given id.
	PositionById(context.Context, *QueryPositionByIdRequest) (*QueryPositionByIdResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalLiquidityForRangeRequest

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

=============================== TotalLiquidityForRange

func (*QueryTotalLiquidityForRangeRequest) Descriptor

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

func (*QueryTotalLiquidityForRangeRequest) GetPoolId

func (*QueryTotalLiquidityForRangeRequest) Marshal

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

func (*QueryTotalLiquidityForRangeRequest) MarshalTo

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

func (*QueryTotalLiquidityForRangeRequest) MarshalToSizedBuffer

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

func (*QueryTotalLiquidityForRangeRequest) ProtoMessage

func (*QueryTotalLiquidityForRangeRequest) ProtoMessage()

func (*QueryTotalLiquidityForRangeRequest) Reset

func (*QueryTotalLiquidityForRangeRequest) Size

func (*QueryTotalLiquidityForRangeRequest) String

func (*QueryTotalLiquidityForRangeRequest) Unmarshal

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

func (*QueryTotalLiquidityForRangeRequest) XXX_DiscardUnknown

func (m *QueryTotalLiquidityForRangeRequest) XXX_DiscardUnknown()

func (*QueryTotalLiquidityForRangeRequest) XXX_Marshal

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

func (*QueryTotalLiquidityForRangeRequest) XXX_Merge

func (*QueryTotalLiquidityForRangeRequest) XXX_Size

func (*QueryTotalLiquidityForRangeRequest) XXX_Unmarshal

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

type QueryTotalLiquidityForRangeResponse

type QueryTotalLiquidityForRangeResponse struct {
	Liquidity []LiquidityDepthWithRange `protobuf:"bytes,1,rep,name=liquidity,proto3" json:"liquidity"`
}

func (*QueryTotalLiquidityForRangeResponse) Descriptor

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

func (*QueryTotalLiquidityForRangeResponse) GetLiquidity

func (*QueryTotalLiquidityForRangeResponse) Marshal

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

func (*QueryTotalLiquidityForRangeResponse) MarshalTo

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

func (*QueryTotalLiquidityForRangeResponse) MarshalToSizedBuffer

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

func (*QueryTotalLiquidityForRangeResponse) ProtoMessage

func (*QueryTotalLiquidityForRangeResponse) ProtoMessage()

func (*QueryTotalLiquidityForRangeResponse) Reset

func (*QueryTotalLiquidityForRangeResponse) Size

func (*QueryTotalLiquidityForRangeResponse) String

func (*QueryTotalLiquidityForRangeResponse) Unmarshal

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

func (*QueryTotalLiquidityForRangeResponse) XXX_DiscardUnknown

func (m *QueryTotalLiquidityForRangeResponse) XXX_DiscardUnknown()

func (*QueryTotalLiquidityForRangeResponse) XXX_Marshal

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

func (*QueryTotalLiquidityForRangeResponse) XXX_Merge

func (*QueryTotalLiquidityForRangeResponse) XXX_Size

func (*QueryTotalLiquidityForRangeResponse) XXX_Unmarshal

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

type QueryUserPositionsRequest

type QueryUserPositionsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	PoolId  uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"`
}

=============================== UserPositions

func (*QueryUserPositionsRequest) Descriptor

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

func (*QueryUserPositionsRequest) GetAddress

func (m *QueryUserPositionsRequest) GetAddress() string

func (*QueryUserPositionsRequest) GetPoolId

func (m *QueryUserPositionsRequest) GetPoolId() uint64

func (*QueryUserPositionsRequest) Marshal

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

func (*QueryUserPositionsRequest) MarshalTo

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

func (*QueryUserPositionsRequest) MarshalToSizedBuffer

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

func (*QueryUserPositionsRequest) ProtoMessage

func (*QueryUserPositionsRequest) ProtoMessage()

func (*QueryUserPositionsRequest) Reset

func (m *QueryUserPositionsRequest) Reset()

func (*QueryUserPositionsRequest) Size

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

func (*QueryUserPositionsRequest) String

func (m *QueryUserPositionsRequest) String() string

func (*QueryUserPositionsRequest) Unmarshal

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

func (*QueryUserPositionsRequest) XXX_DiscardUnknown

func (m *QueryUserPositionsRequest) XXX_DiscardUnknown()

func (*QueryUserPositionsRequest) XXX_Marshal

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

func (*QueryUserPositionsRequest) XXX_Merge

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

func (*QueryUserPositionsRequest) XXX_Size

func (m *QueryUserPositionsRequest) XXX_Size() int

func (*QueryUserPositionsRequest) XXX_Unmarshal

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

type QueryUserPositionsResponse

type QueryUserPositionsResponse struct {
	Positions []model.PositionWithUnderlyingAssetBreakdown `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions"`
}

func (*QueryUserPositionsResponse) Descriptor

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

func (*QueryUserPositionsResponse) GetPositions

func (*QueryUserPositionsResponse) Marshal

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

func (*QueryUserPositionsResponse) MarshalTo

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

func (*QueryUserPositionsResponse) MarshalToSizedBuffer

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

func (*QueryUserPositionsResponse) ProtoMessage

func (*QueryUserPositionsResponse) ProtoMessage()

func (*QueryUserPositionsResponse) Reset

func (m *QueryUserPositionsResponse) Reset()

func (*QueryUserPositionsResponse) Size

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

func (*QueryUserPositionsResponse) String

func (m *QueryUserPositionsResponse) String() string

func (*QueryUserPositionsResponse) Unmarshal

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

func (*QueryUserPositionsResponse) XXX_DiscardUnknown

func (m *QueryUserPositionsResponse) XXX_DiscardUnknown()

func (*QueryUserPositionsResponse) XXX_Marshal

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

func (*QueryUserPositionsResponse) XXX_Merge

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

func (*QueryUserPositionsResponse) XXX_Size

func (m *QueryUserPositionsResponse) XXX_Size() int

func (*QueryUserPositionsResponse) XXX_Unmarshal

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

type TickLiquidityNet

type TickLiquidityNet struct {
	LiquidityNet github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	TickIndex    github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
}

func (*TickLiquidityNet) Descriptor

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

func (*TickLiquidityNet) Marshal

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

func (*TickLiquidityNet) MarshalTo

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

func (*TickLiquidityNet) MarshalToSizedBuffer

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

func (*TickLiquidityNet) ProtoMessage

func (*TickLiquidityNet) ProtoMessage()

func (*TickLiquidityNet) Reset

func (m *TickLiquidityNet) Reset()

func (*TickLiquidityNet) Size

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

func (*TickLiquidityNet) String

func (m *TickLiquidityNet) String() string

func (*TickLiquidityNet) Unmarshal

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

func (*TickLiquidityNet) XXX_DiscardUnknown

func (m *TickLiquidityNet) XXX_DiscardUnknown()

func (*TickLiquidityNet) XXX_Marshal

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

func (*TickLiquidityNet) XXX_Merge

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

func (*TickLiquidityNet) XXX_Size

func (m *TickLiquidityNet) XXX_Size() int

func (*TickLiquidityNet) XXX_Unmarshal

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ClaimableFees

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Pools

func (*UnimplementedQueryServer) PositionById

func (*UnimplementedQueryServer) UserPositions

Jump to

Keyboard shortcuts

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