Documentation ¶
Overview ¶
Package queryproto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type EstimateSwapExactAmountInRequest
- func (*EstimateSwapExactAmountInRequest) Descriptor() ([]byte, []int)
- func (m *EstimateSwapExactAmountInRequest) GetPoolId() uint64
- func (m *EstimateSwapExactAmountInRequest) GetRoutes() []types.SwapAmountInRoute
- func (m *EstimateSwapExactAmountInRequest) GetSender() string
- func (m *EstimateSwapExactAmountInRequest) GetTokenIn() string
- func (m *EstimateSwapExactAmountInRequest) Marshal() (dAtA []byte, err error)
- func (m *EstimateSwapExactAmountInRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *EstimateSwapExactAmountInRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EstimateSwapExactAmountInRequest) ProtoMessage()
- func (m *EstimateSwapExactAmountInRequest) Reset()
- func (m *EstimateSwapExactAmountInRequest) Size() (n int)
- func (m *EstimateSwapExactAmountInRequest) String() string
- func (m *EstimateSwapExactAmountInRequest) Unmarshal(dAtA []byte) error
- func (m *EstimateSwapExactAmountInRequest) XXX_DiscardUnknown()
- func (m *EstimateSwapExactAmountInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EstimateSwapExactAmountInRequest) XXX_Merge(src proto.Message)
- func (m *EstimateSwapExactAmountInRequest) XXX_Size() int
- func (m *EstimateSwapExactAmountInRequest) XXX_Unmarshal(b []byte) error
- type EstimateSwapExactAmountInResponse
- func (*EstimateSwapExactAmountInResponse) Descriptor() ([]byte, []int)
- func (m *EstimateSwapExactAmountInResponse) Marshal() (dAtA []byte, err error)
- func (m *EstimateSwapExactAmountInResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *EstimateSwapExactAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EstimateSwapExactAmountInResponse) ProtoMessage()
- func (m *EstimateSwapExactAmountInResponse) Reset()
- func (m *EstimateSwapExactAmountInResponse) Size() (n int)
- func (m *EstimateSwapExactAmountInResponse) String() string
- func (m *EstimateSwapExactAmountInResponse) Unmarshal(dAtA []byte) error
- func (m *EstimateSwapExactAmountInResponse) XXX_DiscardUnknown()
- func (m *EstimateSwapExactAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EstimateSwapExactAmountInResponse) XXX_Merge(src proto.Message)
- func (m *EstimateSwapExactAmountInResponse) XXX_Size() int
- func (m *EstimateSwapExactAmountInResponse) XXX_Unmarshal(b []byte) error
- type EstimateSwapExactAmountOutRequest
- func (*EstimateSwapExactAmountOutRequest) Descriptor() ([]byte, []int)
- func (m *EstimateSwapExactAmountOutRequest) GetPoolId() uint64
- func (m *EstimateSwapExactAmountOutRequest) GetRoutes() []types.SwapAmountOutRoute
- func (m *EstimateSwapExactAmountOutRequest) GetSender() string
- func (m *EstimateSwapExactAmountOutRequest) GetTokenOut() string
- func (m *EstimateSwapExactAmountOutRequest) Marshal() (dAtA []byte, err error)
- func (m *EstimateSwapExactAmountOutRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *EstimateSwapExactAmountOutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EstimateSwapExactAmountOutRequest) ProtoMessage()
- func (m *EstimateSwapExactAmountOutRequest) Reset()
- func (m *EstimateSwapExactAmountOutRequest) Size() (n int)
- func (m *EstimateSwapExactAmountOutRequest) String() string
- func (m *EstimateSwapExactAmountOutRequest) Unmarshal(dAtA []byte) error
- func (m *EstimateSwapExactAmountOutRequest) XXX_DiscardUnknown()
- func (m *EstimateSwapExactAmountOutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EstimateSwapExactAmountOutRequest) XXX_Merge(src proto.Message)
- func (m *EstimateSwapExactAmountOutRequest) XXX_Size() int
- func (m *EstimateSwapExactAmountOutRequest) XXX_Unmarshal(b []byte) error
- type EstimateSwapExactAmountOutResponse
- func (*EstimateSwapExactAmountOutResponse) Descriptor() ([]byte, []int)
- func (m *EstimateSwapExactAmountOutResponse) Marshal() (dAtA []byte, err error)
- func (m *EstimateSwapExactAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *EstimateSwapExactAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EstimateSwapExactAmountOutResponse) ProtoMessage()
- func (m *EstimateSwapExactAmountOutResponse) Reset()
- func (m *EstimateSwapExactAmountOutResponse) Size() (n int)
- func (m *EstimateSwapExactAmountOutResponse) String() string
- func (m *EstimateSwapExactAmountOutResponse) Unmarshal(dAtA []byte) error
- func (m *EstimateSwapExactAmountOutResponse) XXX_DiscardUnknown()
- func (m *EstimateSwapExactAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EstimateSwapExactAmountOutResponse) XXX_Merge(src proto.Message)
- func (m *EstimateSwapExactAmountOutResponse) XXX_Size() int
- func (m *EstimateSwapExactAmountOutResponse) XXX_Unmarshal(b []byte) error
- type NumPoolsRequest
- func (*NumPoolsRequest) Descriptor() ([]byte, []int)
- func (m *NumPoolsRequest) Marshal() (dAtA []byte, err error)
- func (m *NumPoolsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *NumPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NumPoolsRequest) ProtoMessage()
- func (m *NumPoolsRequest) Reset()
- func (m *NumPoolsRequest) Size() (n int)
- func (m *NumPoolsRequest) String() string
- func (m *NumPoolsRequest) Unmarshal(dAtA []byte) error
- func (m *NumPoolsRequest) XXX_DiscardUnknown()
- func (m *NumPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NumPoolsRequest) XXX_Merge(src proto.Message)
- func (m *NumPoolsRequest) XXX_Size() int
- func (m *NumPoolsRequest) XXX_Unmarshal(b []byte) error
- type NumPoolsResponse
- func (*NumPoolsResponse) Descriptor() ([]byte, []int)
- func (m *NumPoolsResponse) GetNumPools() uint64
- func (m *NumPoolsResponse) Marshal() (dAtA []byte, err error)
- func (m *NumPoolsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *NumPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NumPoolsResponse) ProtoMessage()
- func (m *NumPoolsResponse) Reset()
- func (m *NumPoolsResponse) Size() (n int)
- func (m *NumPoolsResponse) String() string
- func (m *NumPoolsResponse) Unmarshal(dAtA []byte) error
- func (m *NumPoolsResponse) XXX_DiscardUnknown()
- func (m *NumPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NumPoolsResponse) XXX_Merge(src proto.Message)
- func (m *NumPoolsResponse) XXX_Size() int
- func (m *NumPoolsResponse) XXX_Unmarshal(b []byte) error
- type ParamsRequest
- func (*ParamsRequest) Descriptor() ([]byte, []int)
- func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsRequest) ProtoMessage()
- func (m *ParamsRequest) Reset()
- func (m *ParamsRequest) Size() (n int)
- func (m *ParamsRequest) String() string
- func (m *ParamsRequest) Unmarshal(dAtA []byte) error
- func (m *ParamsRequest) XXX_DiscardUnknown()
- func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsRequest) XXX_Merge(src proto.Message)
- func (m *ParamsRequest) XXX_Size() int
- func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
- type ParamsResponse
- func (*ParamsResponse) Descriptor() ([]byte, []int)
- func (m *ParamsResponse) GetParams() types.Params
- func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsResponse) ProtoMessage()
- func (m *ParamsResponse) Reset()
- func (m *ParamsResponse) Size() (n int)
- func (m *ParamsResponse) String() string
- func (m *ParamsResponse) Unmarshal(dAtA []byte) error
- func (m *ParamsResponse) XXX_DiscardUnknown()
- func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsResponse) XXX_Merge(src proto.Message)
- func (m *ParamsResponse) XXX_Size() int
- func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) EstimateSwapExactAmountIn(ctx context.Context, req *EstimateSwapExactAmountInRequest) (*EstimateSwapExactAmountInResponse, error)
- func (*UnimplementedQueryServer) EstimateSwapExactAmountOut(ctx context.Context, req *EstimateSwapExactAmountOutRequest) (*EstimateSwapExactAmountOutResponse, error)
- func (*UnimplementedQueryServer) NumPools(ctx context.Context, req *NumPoolsRequest) (*NumPoolsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type EstimateSwapExactAmountInRequest ¶
type EstimateSwapExactAmountInRequest struct { // TODO: CHANGE THIS TO RESERVED IN A PATCH RELEASE Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"` TokenIn string `protobuf:"bytes,3,opt,name=token_in,json=tokenIn,proto3" json:"token_in,omitempty" yaml:"token_in"` Routes []types.SwapAmountInRoute `protobuf:"bytes,4,rep,name=routes,proto3" json:"routes" yaml:"routes"` }
=============================== EstimateSwapExactAmountIn
func (*EstimateSwapExactAmountInRequest) Descriptor ¶
func (*EstimateSwapExactAmountInRequest) Descriptor() ([]byte, []int)
func (*EstimateSwapExactAmountInRequest) GetPoolId ¶
func (m *EstimateSwapExactAmountInRequest) GetPoolId() uint64
func (*EstimateSwapExactAmountInRequest) GetRoutes ¶
func (m *EstimateSwapExactAmountInRequest) GetRoutes() []types.SwapAmountInRoute
func (*EstimateSwapExactAmountInRequest) GetSender ¶
func (m *EstimateSwapExactAmountInRequest) GetSender() string
func (*EstimateSwapExactAmountInRequest) GetTokenIn ¶
func (m *EstimateSwapExactAmountInRequest) GetTokenIn() string
func (*EstimateSwapExactAmountInRequest) Marshal ¶
func (m *EstimateSwapExactAmountInRequest) Marshal() (dAtA []byte, err error)
func (*EstimateSwapExactAmountInRequest) MarshalTo ¶
func (m *EstimateSwapExactAmountInRequest) MarshalTo(dAtA []byte) (int, error)
func (*EstimateSwapExactAmountInRequest) MarshalToSizedBuffer ¶
func (m *EstimateSwapExactAmountInRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EstimateSwapExactAmountInRequest) ProtoMessage ¶
func (*EstimateSwapExactAmountInRequest) ProtoMessage()
func (*EstimateSwapExactAmountInRequest) Reset ¶
func (m *EstimateSwapExactAmountInRequest) Reset()
func (*EstimateSwapExactAmountInRequest) Size ¶
func (m *EstimateSwapExactAmountInRequest) Size() (n int)
func (*EstimateSwapExactAmountInRequest) String ¶
func (m *EstimateSwapExactAmountInRequest) String() string
func (*EstimateSwapExactAmountInRequest) Unmarshal ¶
func (m *EstimateSwapExactAmountInRequest) Unmarshal(dAtA []byte) error
func (*EstimateSwapExactAmountInRequest) XXX_DiscardUnknown ¶
func (m *EstimateSwapExactAmountInRequest) XXX_DiscardUnknown()
func (*EstimateSwapExactAmountInRequest) XXX_Marshal ¶
func (m *EstimateSwapExactAmountInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EstimateSwapExactAmountInRequest) XXX_Merge ¶
func (m *EstimateSwapExactAmountInRequest) XXX_Merge(src proto.Message)
func (*EstimateSwapExactAmountInRequest) XXX_Size ¶
func (m *EstimateSwapExactAmountInRequest) XXX_Size() int
func (*EstimateSwapExactAmountInRequest) XXX_Unmarshal ¶
func (m *EstimateSwapExactAmountInRequest) XXX_Unmarshal(b []byte) error
type EstimateSwapExactAmountInResponse ¶
type EstimateSwapExactAmountInResponse struct {
TokenOutAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */
}
func (*EstimateSwapExactAmountInResponse) Descriptor ¶
func (*EstimateSwapExactAmountInResponse) Descriptor() ([]byte, []int)
func (*EstimateSwapExactAmountInResponse) Marshal ¶
func (m *EstimateSwapExactAmountInResponse) Marshal() (dAtA []byte, err error)
func (*EstimateSwapExactAmountInResponse) MarshalTo ¶
func (m *EstimateSwapExactAmountInResponse) MarshalTo(dAtA []byte) (int, error)
func (*EstimateSwapExactAmountInResponse) MarshalToSizedBuffer ¶
func (m *EstimateSwapExactAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EstimateSwapExactAmountInResponse) ProtoMessage ¶
func (*EstimateSwapExactAmountInResponse) ProtoMessage()
func (*EstimateSwapExactAmountInResponse) Reset ¶
func (m *EstimateSwapExactAmountInResponse) Reset()
func (*EstimateSwapExactAmountInResponse) Size ¶
func (m *EstimateSwapExactAmountInResponse) Size() (n int)
func (*EstimateSwapExactAmountInResponse) String ¶
func (m *EstimateSwapExactAmountInResponse) String() string
func (*EstimateSwapExactAmountInResponse) Unmarshal ¶
func (m *EstimateSwapExactAmountInResponse) Unmarshal(dAtA []byte) error
func (*EstimateSwapExactAmountInResponse) XXX_DiscardUnknown ¶
func (m *EstimateSwapExactAmountInResponse) XXX_DiscardUnknown()
func (*EstimateSwapExactAmountInResponse) XXX_Marshal ¶
func (m *EstimateSwapExactAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EstimateSwapExactAmountInResponse) XXX_Merge ¶
func (m *EstimateSwapExactAmountInResponse) XXX_Merge(src proto.Message)
func (*EstimateSwapExactAmountInResponse) XXX_Size ¶
func (m *EstimateSwapExactAmountInResponse) XXX_Size() int
func (*EstimateSwapExactAmountInResponse) XXX_Unmarshal ¶
func (m *EstimateSwapExactAmountInResponse) XXX_Unmarshal(b []byte) error
type EstimateSwapExactAmountOutRequest ¶
type EstimateSwapExactAmountOutRequest struct { // TODO: CHANGE THIS TO RESERVED IN A PATCH RELEASE Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"` Routes []types.SwapAmountOutRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes" yaml:"routes"` TokenOut string `protobuf:"bytes,4,opt,name=token_out,json=tokenOut,proto3" json:"token_out,omitempty" yaml:"token_out"` }
=============================== EstimateSwapExactAmountOut
func (*EstimateSwapExactAmountOutRequest) Descriptor ¶
func (*EstimateSwapExactAmountOutRequest) Descriptor() ([]byte, []int)
func (*EstimateSwapExactAmountOutRequest) GetPoolId ¶
func (m *EstimateSwapExactAmountOutRequest) GetPoolId() uint64
func (*EstimateSwapExactAmountOutRequest) GetRoutes ¶
func (m *EstimateSwapExactAmountOutRequest) GetRoutes() []types.SwapAmountOutRoute
func (*EstimateSwapExactAmountOutRequest) GetSender ¶
func (m *EstimateSwapExactAmountOutRequest) GetSender() string
func (*EstimateSwapExactAmountOutRequest) GetTokenOut ¶
func (m *EstimateSwapExactAmountOutRequest) GetTokenOut() string
func (*EstimateSwapExactAmountOutRequest) Marshal ¶
func (m *EstimateSwapExactAmountOutRequest) Marshal() (dAtA []byte, err error)
func (*EstimateSwapExactAmountOutRequest) MarshalTo ¶
func (m *EstimateSwapExactAmountOutRequest) MarshalTo(dAtA []byte) (int, error)
func (*EstimateSwapExactAmountOutRequest) MarshalToSizedBuffer ¶
func (m *EstimateSwapExactAmountOutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EstimateSwapExactAmountOutRequest) ProtoMessage ¶
func (*EstimateSwapExactAmountOutRequest) ProtoMessage()
func (*EstimateSwapExactAmountOutRequest) Reset ¶
func (m *EstimateSwapExactAmountOutRequest) Reset()
func (*EstimateSwapExactAmountOutRequest) Size ¶
func (m *EstimateSwapExactAmountOutRequest) Size() (n int)
func (*EstimateSwapExactAmountOutRequest) String ¶
func (m *EstimateSwapExactAmountOutRequest) String() string
func (*EstimateSwapExactAmountOutRequest) Unmarshal ¶
func (m *EstimateSwapExactAmountOutRequest) Unmarshal(dAtA []byte) error
func (*EstimateSwapExactAmountOutRequest) XXX_DiscardUnknown ¶
func (m *EstimateSwapExactAmountOutRequest) XXX_DiscardUnknown()
func (*EstimateSwapExactAmountOutRequest) XXX_Marshal ¶
func (m *EstimateSwapExactAmountOutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EstimateSwapExactAmountOutRequest) XXX_Merge ¶
func (m *EstimateSwapExactAmountOutRequest) XXX_Merge(src proto.Message)
func (*EstimateSwapExactAmountOutRequest) XXX_Size ¶
func (m *EstimateSwapExactAmountOutRequest) XXX_Size() int
func (*EstimateSwapExactAmountOutRequest) XXX_Unmarshal ¶
func (m *EstimateSwapExactAmountOutRequest) XXX_Unmarshal(b []byte) error
type EstimateSwapExactAmountOutResponse ¶
type EstimateSwapExactAmountOutResponse struct {
TokenInAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */
}
func (*EstimateSwapExactAmountOutResponse) Descriptor ¶
func (*EstimateSwapExactAmountOutResponse) Descriptor() ([]byte, []int)
func (*EstimateSwapExactAmountOutResponse) Marshal ¶
func (m *EstimateSwapExactAmountOutResponse) Marshal() (dAtA []byte, err error)
func (*EstimateSwapExactAmountOutResponse) MarshalTo ¶
func (m *EstimateSwapExactAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
func (*EstimateSwapExactAmountOutResponse) MarshalToSizedBuffer ¶
func (m *EstimateSwapExactAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EstimateSwapExactAmountOutResponse) ProtoMessage ¶
func (*EstimateSwapExactAmountOutResponse) ProtoMessage()
func (*EstimateSwapExactAmountOutResponse) Reset ¶
func (m *EstimateSwapExactAmountOutResponse) Reset()
func (*EstimateSwapExactAmountOutResponse) Size ¶
func (m *EstimateSwapExactAmountOutResponse) Size() (n int)
func (*EstimateSwapExactAmountOutResponse) String ¶
func (m *EstimateSwapExactAmountOutResponse) String() string
func (*EstimateSwapExactAmountOutResponse) Unmarshal ¶
func (m *EstimateSwapExactAmountOutResponse) Unmarshal(dAtA []byte) error
func (*EstimateSwapExactAmountOutResponse) XXX_DiscardUnknown ¶
func (m *EstimateSwapExactAmountOutResponse) XXX_DiscardUnknown()
func (*EstimateSwapExactAmountOutResponse) XXX_Marshal ¶
func (m *EstimateSwapExactAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EstimateSwapExactAmountOutResponse) XXX_Merge ¶
func (m *EstimateSwapExactAmountOutResponse) XXX_Merge(src proto.Message)
func (*EstimateSwapExactAmountOutResponse) XXX_Size ¶
func (m *EstimateSwapExactAmountOutResponse) XXX_Size() int
func (*EstimateSwapExactAmountOutResponse) XXX_Unmarshal ¶
func (m *EstimateSwapExactAmountOutResponse) XXX_Unmarshal(b []byte) error
type NumPoolsRequest ¶
type NumPoolsRequest struct { }
=============================== NumPools
func (*NumPoolsRequest) Descriptor ¶
func (*NumPoolsRequest) Descriptor() ([]byte, []int)
func (*NumPoolsRequest) Marshal ¶
func (m *NumPoolsRequest) Marshal() (dAtA []byte, err error)
func (*NumPoolsRequest) MarshalToSizedBuffer ¶
func (m *NumPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NumPoolsRequest) ProtoMessage ¶
func (*NumPoolsRequest) ProtoMessage()
func (*NumPoolsRequest) Reset ¶
func (m *NumPoolsRequest) Reset()
func (*NumPoolsRequest) Size ¶
func (m *NumPoolsRequest) Size() (n int)
func (*NumPoolsRequest) String ¶
func (m *NumPoolsRequest) String() string
func (*NumPoolsRequest) Unmarshal ¶
func (m *NumPoolsRequest) Unmarshal(dAtA []byte) error
func (*NumPoolsRequest) XXX_DiscardUnknown ¶
func (m *NumPoolsRequest) XXX_DiscardUnknown()
func (*NumPoolsRequest) XXX_Marshal ¶
func (m *NumPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NumPoolsRequest) XXX_Merge ¶
func (m *NumPoolsRequest) XXX_Merge(src proto.Message)
func (*NumPoolsRequest) XXX_Size ¶
func (m *NumPoolsRequest) XXX_Size() int
func (*NumPoolsRequest) XXX_Unmarshal ¶
func (m *NumPoolsRequest) XXX_Unmarshal(b []byte) error
type NumPoolsResponse ¶
type NumPoolsResponse struct {
NumPools uint64 `protobuf:"varint,1,opt,name=num_pools,json=numPools,proto3" json:"num_pools,omitempty" yaml:"num_pools"`
}
func (*NumPoolsResponse) Descriptor ¶
func (*NumPoolsResponse) Descriptor() ([]byte, []int)
func (*NumPoolsResponse) GetNumPools ¶
func (m *NumPoolsResponse) GetNumPools() uint64
func (*NumPoolsResponse) Marshal ¶
func (m *NumPoolsResponse) Marshal() (dAtA []byte, err error)
func (*NumPoolsResponse) MarshalToSizedBuffer ¶
func (m *NumPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NumPoolsResponse) ProtoMessage ¶
func (*NumPoolsResponse) ProtoMessage()
func (*NumPoolsResponse) Reset ¶
func (m *NumPoolsResponse) Reset()
func (*NumPoolsResponse) Size ¶
func (m *NumPoolsResponse) Size() (n int)
func (*NumPoolsResponse) String ¶
func (m *NumPoolsResponse) String() string
func (*NumPoolsResponse) Unmarshal ¶
func (m *NumPoolsResponse) Unmarshal(dAtA []byte) error
func (*NumPoolsResponse) XXX_DiscardUnknown ¶
func (m *NumPoolsResponse) XXX_DiscardUnknown()
func (*NumPoolsResponse) XXX_Marshal ¶
func (m *NumPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NumPoolsResponse) XXX_Merge ¶
func (m *NumPoolsResponse) XXX_Merge(src proto.Message)
func (*NumPoolsResponse) XXX_Size ¶
func (m *NumPoolsResponse) XXX_Size() int
func (*NumPoolsResponse) XXX_Unmarshal ¶
func (m *NumPoolsResponse) XXX_Unmarshal(b []byte) error
type ParamsRequest ¶
type ParamsRequest struct { }
=============================== Params
func (*ParamsRequest) Descriptor ¶
func (*ParamsRequest) Descriptor() ([]byte, []int)
func (*ParamsRequest) Marshal ¶
func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
func (*ParamsRequest) MarshalToSizedBuffer ¶
func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsRequest) ProtoMessage ¶
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) Reset ¶
func (m *ParamsRequest) Reset()
func (*ParamsRequest) Size ¶
func (m *ParamsRequest) Size() (n int)
func (*ParamsRequest) String ¶
func (m *ParamsRequest) String() string
func (*ParamsRequest) Unmarshal ¶
func (m *ParamsRequest) Unmarshal(dAtA []byte) error
func (*ParamsRequest) XXX_DiscardUnknown ¶
func (m *ParamsRequest) XXX_DiscardUnknown()
func (*ParamsRequest) XXX_Marshal ¶
func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsRequest) XXX_Merge ¶
func (m *ParamsRequest) XXX_Merge(src proto.Message)
func (*ParamsRequest) XXX_Size ¶
func (m *ParamsRequest) XXX_Size() int
func (*ParamsRequest) XXX_Unmarshal ¶
func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
type ParamsResponse ¶
type ParamsResponse struct {
Params types.Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*ParamsResponse) Descriptor ¶
func (*ParamsResponse) Descriptor() ([]byte, []int)
func (*ParamsResponse) GetParams ¶
func (m *ParamsResponse) GetParams() types.Params
func (*ParamsResponse) Marshal ¶
func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
func (*ParamsResponse) MarshalToSizedBuffer ¶
func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsResponse) ProtoMessage ¶
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) Reset ¶
func (m *ParamsResponse) Reset()
func (*ParamsResponse) Size ¶
func (m *ParamsResponse) Size() (n int)
func (*ParamsResponse) String ¶
func (m *ParamsResponse) String() string
func (*ParamsResponse) Unmarshal ¶
func (m *ParamsResponse) Unmarshal(dAtA []byte) error
func (*ParamsResponse) XXX_DiscardUnknown ¶
func (m *ParamsResponse) XXX_DiscardUnknown()
func (*ParamsResponse) XXX_Marshal ¶
func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsResponse) XXX_Merge ¶
func (m *ParamsResponse) XXX_Merge(src proto.Message)
func (*ParamsResponse) XXX_Size ¶
func (m *ParamsResponse) XXX_Size() int
func (*ParamsResponse) XXX_Unmarshal ¶
func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) // Estimates swap amount out given in. EstimateSwapExactAmountIn(ctx context.Context, in *EstimateSwapExactAmountInRequest, opts ...grpc.CallOption) (*EstimateSwapExactAmountInResponse, error) // Estimates swap amount in given out. EstimateSwapExactAmountOut(ctx context.Context, in *EstimateSwapExactAmountOutRequest, opts ...grpc.CallOption) (*EstimateSwapExactAmountOutResponse, error) NumPools(ctx context.Context, in *NumPoolsRequest, opts ...grpc.CallOption) (*NumPoolsResponse, 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 QueryServer ¶
type QueryServer interface { Params(context.Context, *ParamsRequest) (*ParamsResponse, error) // Estimates swap amount out given in. EstimateSwapExactAmountIn(context.Context, *EstimateSwapExactAmountInRequest) (*EstimateSwapExactAmountInResponse, error) // Estimates swap amount in given out. EstimateSwapExactAmountOut(context.Context, *EstimateSwapExactAmountOutRequest) (*EstimateSwapExactAmountOutResponse, error) NumPools(context.Context, *NumPoolsRequest) (*NumPoolsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) EstimateSwapExactAmountIn ¶
func (*UnimplementedQueryServer) EstimateSwapExactAmountIn(ctx context.Context, req *EstimateSwapExactAmountInRequest) (*EstimateSwapExactAmountInResponse, error)
func (*UnimplementedQueryServer) EstimateSwapExactAmountOut ¶
func (*UnimplementedQueryServer) EstimateSwapExactAmountOut(ctx context.Context, req *EstimateSwapExactAmountOutRequest) (*EstimateSwapExactAmountOutResponse, error)
func (*UnimplementedQueryServer) NumPools ¶
func (*UnimplementedQueryServer) NumPools(ctx context.Context, req *NumPoolsRequest) (*NumPoolsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)