Versions in this module Expand all Collapse all v0 v0.16.15 Jul 20, 2023 v0.0.1 Jul 20, 2023 Changes in this version + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + 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 ArithmeticTwapRequest struct + BaseAsset string + EndTime *time.Time + PoolId uint64 + QuoteAsset string + StartTime time.Time + func (*ArithmeticTwapRequest) Descriptor() ([]byte, []int) + func (*ArithmeticTwapRequest) ProtoMessage() + func (m *ArithmeticTwapRequest) GetBaseAsset() string + func (m *ArithmeticTwapRequest) GetEndTime() *time.Time + func (m *ArithmeticTwapRequest) GetPoolId() uint64 + func (m *ArithmeticTwapRequest) GetQuoteAsset() string + func (m *ArithmeticTwapRequest) GetStartTime() time.Time + func (m *ArithmeticTwapRequest) Marshal() (dAtA []byte, err error) + func (m *ArithmeticTwapRequest) MarshalTo(dAtA []byte) (int, error) + func (m *ArithmeticTwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ArithmeticTwapRequest) Reset() + func (m *ArithmeticTwapRequest) Size() (n int) + func (m *ArithmeticTwapRequest) String() string + func (m *ArithmeticTwapRequest) Unmarshal(dAtA []byte) error + func (m *ArithmeticTwapRequest) XXX_DiscardUnknown() + func (m *ArithmeticTwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ArithmeticTwapRequest) XXX_Merge(src proto.Message) + func (m *ArithmeticTwapRequest) XXX_Size() int + func (m *ArithmeticTwapRequest) XXX_Unmarshal(b []byte) error + type ArithmeticTwapResponse struct + ArithmeticTwap github_com_cosmos_cosmos_sdk_types.Dec + func (*ArithmeticTwapResponse) Descriptor() ([]byte, []int) + func (*ArithmeticTwapResponse) ProtoMessage() + func (m *ArithmeticTwapResponse) Marshal() (dAtA []byte, err error) + func (m *ArithmeticTwapResponse) MarshalTo(dAtA []byte) (int, error) + func (m *ArithmeticTwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ArithmeticTwapResponse) Reset() + func (m *ArithmeticTwapResponse) Size() (n int) + func (m *ArithmeticTwapResponse) String() string + func (m *ArithmeticTwapResponse) Unmarshal(dAtA []byte) error + func (m *ArithmeticTwapResponse) XXX_DiscardUnknown() + func (m *ArithmeticTwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ArithmeticTwapResponse) XXX_Merge(src proto.Message) + func (m *ArithmeticTwapResponse) XXX_Size() int + func (m *ArithmeticTwapResponse) XXX_Unmarshal(b []byte) error + type ArithmeticTwapToNowRequest struct + BaseAsset string + PoolId uint64 + QuoteAsset string + StartTime time.Time + func (*ArithmeticTwapToNowRequest) Descriptor() ([]byte, []int) + func (*ArithmeticTwapToNowRequest) ProtoMessage() + func (m *ArithmeticTwapToNowRequest) GetBaseAsset() string + func (m *ArithmeticTwapToNowRequest) GetPoolId() uint64 + func (m *ArithmeticTwapToNowRequest) GetQuoteAsset() string + func (m *ArithmeticTwapToNowRequest) GetStartTime() time.Time + func (m *ArithmeticTwapToNowRequest) Marshal() (dAtA []byte, err error) + func (m *ArithmeticTwapToNowRequest) MarshalTo(dAtA []byte) (int, error) + func (m *ArithmeticTwapToNowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ArithmeticTwapToNowRequest) Reset() + func (m *ArithmeticTwapToNowRequest) Size() (n int) + func (m *ArithmeticTwapToNowRequest) String() string + func (m *ArithmeticTwapToNowRequest) Unmarshal(dAtA []byte) error + func (m *ArithmeticTwapToNowRequest) XXX_DiscardUnknown() + func (m *ArithmeticTwapToNowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ArithmeticTwapToNowRequest) XXX_Merge(src proto.Message) + func (m *ArithmeticTwapToNowRequest) XXX_Size() int + func (m *ArithmeticTwapToNowRequest) XXX_Unmarshal(b []byte) error + type ArithmeticTwapToNowResponse struct + ArithmeticTwap github_com_cosmos_cosmos_sdk_types.Dec + func (*ArithmeticTwapToNowResponse) Descriptor() ([]byte, []int) + func (*ArithmeticTwapToNowResponse) ProtoMessage() + func (m *ArithmeticTwapToNowResponse) Marshal() (dAtA []byte, err error) + func (m *ArithmeticTwapToNowResponse) MarshalTo(dAtA []byte) (int, error) + func (m *ArithmeticTwapToNowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ArithmeticTwapToNowResponse) Reset() + func (m *ArithmeticTwapToNowResponse) Size() (n int) + func (m *ArithmeticTwapToNowResponse) String() string + func (m *ArithmeticTwapToNowResponse) Unmarshal(dAtA []byte) error + func (m *ArithmeticTwapToNowResponse) XXX_DiscardUnknown() + func (m *ArithmeticTwapToNowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ArithmeticTwapToNowResponse) XXX_Merge(src proto.Message) + func (m *ArithmeticTwapToNowResponse) XXX_Size() int + func (m *ArithmeticTwapToNowResponse) XXX_Unmarshal(b []byte) error + type GeometricTwapRequest struct + BaseAsset string + EndTime *time.Time + PoolId uint64 + QuoteAsset string + StartTime time.Time + func (*GeometricTwapRequest) Descriptor() ([]byte, []int) + func (*GeometricTwapRequest) ProtoMessage() + func (m *GeometricTwapRequest) GetBaseAsset() string + func (m *GeometricTwapRequest) GetEndTime() *time.Time + func (m *GeometricTwapRequest) GetPoolId() uint64 + func (m *GeometricTwapRequest) GetQuoteAsset() string + func (m *GeometricTwapRequest) GetStartTime() time.Time + func (m *GeometricTwapRequest) Marshal() (dAtA []byte, err error) + func (m *GeometricTwapRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GeometricTwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GeometricTwapRequest) Reset() + func (m *GeometricTwapRequest) Size() (n int) + func (m *GeometricTwapRequest) String() string + func (m *GeometricTwapRequest) Unmarshal(dAtA []byte) error + func (m *GeometricTwapRequest) XXX_DiscardUnknown() + func (m *GeometricTwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GeometricTwapRequest) XXX_Merge(src proto.Message) + func (m *GeometricTwapRequest) XXX_Size() int + func (m *GeometricTwapRequest) XXX_Unmarshal(b []byte) error + type GeometricTwapResponse struct + GeometricTwap github_com_cosmos_cosmos_sdk_types.Dec + func (*GeometricTwapResponse) Descriptor() ([]byte, []int) + func (*GeometricTwapResponse) ProtoMessage() + func (m *GeometricTwapResponse) Marshal() (dAtA []byte, err error) + func (m *GeometricTwapResponse) MarshalTo(dAtA []byte) (int, error) + func (m *GeometricTwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GeometricTwapResponse) Reset() + func (m *GeometricTwapResponse) Size() (n int) + func (m *GeometricTwapResponse) String() string + func (m *GeometricTwapResponse) Unmarshal(dAtA []byte) error + func (m *GeometricTwapResponse) XXX_DiscardUnknown() + func (m *GeometricTwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GeometricTwapResponse) XXX_Merge(src proto.Message) + func (m *GeometricTwapResponse) XXX_Size() int + func (m *GeometricTwapResponse) XXX_Unmarshal(b []byte) error + type GeometricTwapToNowRequest struct + BaseAsset string + PoolId uint64 + QuoteAsset string + StartTime time.Time + func (*GeometricTwapToNowRequest) Descriptor() ([]byte, []int) + func (*GeometricTwapToNowRequest) ProtoMessage() + func (m *GeometricTwapToNowRequest) GetBaseAsset() string + func (m *GeometricTwapToNowRequest) GetPoolId() uint64 + func (m *GeometricTwapToNowRequest) GetQuoteAsset() string + func (m *GeometricTwapToNowRequest) GetStartTime() time.Time + func (m *GeometricTwapToNowRequest) Marshal() (dAtA []byte, err error) + func (m *GeometricTwapToNowRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GeometricTwapToNowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GeometricTwapToNowRequest) Reset() + func (m *GeometricTwapToNowRequest) Size() (n int) + func (m *GeometricTwapToNowRequest) String() string + func (m *GeometricTwapToNowRequest) Unmarshal(dAtA []byte) error + func (m *GeometricTwapToNowRequest) XXX_DiscardUnknown() + func (m *GeometricTwapToNowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GeometricTwapToNowRequest) XXX_Merge(src proto.Message) + func (m *GeometricTwapToNowRequest) XXX_Size() int + func (m *GeometricTwapToNowRequest) XXX_Unmarshal(b []byte) error + type GeometricTwapToNowResponse struct + GeometricTwap github_com_cosmos_cosmos_sdk_types.Dec + func (*GeometricTwapToNowResponse) Descriptor() ([]byte, []int) + func (*GeometricTwapToNowResponse) ProtoMessage() + func (m *GeometricTwapToNowResponse) Marshal() (dAtA []byte, err error) + func (m *GeometricTwapToNowResponse) MarshalTo(dAtA []byte) (int, error) + func (m *GeometricTwapToNowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GeometricTwapToNowResponse) Reset() + func (m *GeometricTwapToNowResponse) Size() (n int) + func (m *GeometricTwapToNowResponse) String() string + func (m *GeometricTwapToNowResponse) Unmarshal(dAtA []byte) error + func (m *GeometricTwapToNowResponse) XXX_DiscardUnknown() + func (m *GeometricTwapToNowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GeometricTwapToNowResponse) XXX_Merge(src proto.Message) + func (m *GeometricTwapToNowResponse) XXX_Size() int + func (m *GeometricTwapToNowResponse) XXX_Unmarshal(b []byte) error + type ParamsRequest struct + func (*ParamsRequest) Descriptor() ([]byte, []int) + func (*ParamsRequest) ProtoMessage() + 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 (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 struct + Params types1.Params + func (*ParamsResponse) Descriptor() ([]byte, []int) + func (*ParamsResponse) ProtoMessage() + func (m *ParamsResponse) GetParams() types1.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 (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 interface + ArithmeticTwap func(ctx context.Context, in *ArithmeticTwapRequest, opts ...grpc.CallOption) (*ArithmeticTwapResponse, error) + ArithmeticTwapToNow func(ctx context.Context, in *ArithmeticTwapToNowRequest, opts ...grpc.CallOption) (*ArithmeticTwapToNowResponse, error) + GeometricTwap func(ctx context.Context, in *GeometricTwapRequest, opts ...grpc.CallOption) (*GeometricTwapResponse, error) + GeometricTwapToNow func(ctx context.Context, in *GeometricTwapToNowRequest, opts ...grpc.CallOption) (*GeometricTwapToNowResponse, error) + Params func(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryServer interface + ArithmeticTwap func(context.Context, *ArithmeticTwapRequest) (*ArithmeticTwapResponse, error) + ArithmeticTwapToNow func(context.Context, *ArithmeticTwapToNowRequest) (*ArithmeticTwapToNowResponse, error) + GeometricTwap func(context.Context, *GeometricTwapRequest) (*GeometricTwapResponse, error) + GeometricTwapToNow func(context.Context, *GeometricTwapToNowRequest) (*GeometricTwapToNowResponse, error) + Params func(context.Context, *ParamsRequest) (*ParamsResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) ArithmeticTwap(ctx context.Context, req *ArithmeticTwapRequest) (*ArithmeticTwapResponse, error) + func (*UnimplementedQueryServer) ArithmeticTwapToNow(ctx context.Context, req *ArithmeticTwapToNowRequest) (*ArithmeticTwapToNowResponse, error) + func (*UnimplementedQueryServer) GeometricTwap(ctx context.Context, req *GeometricTwapRequest) (*GeometricTwapResponse, error) + func (*UnimplementedQueryServer) GeometricTwapToNow(ctx context.Context, req *GeometricTwapToNowRequest) (*GeometricTwapToNowResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)