From 0b83adc0c252c70086e493755faee84177fdf330 Mon Sep 17 00:00:00 2001 From: kbhat1 Date: Mon, 3 Oct 2022 10:58:56 -0400 Subject: [PATCH] Dex get price endpoint --- proto/dex/query.proto | 16 + x/dex/client/cli/query/query.go | 1 + x/dex/client/cli/query/query_get_price.go | 54 ++ x/dex/client/cli/query/query_get_prices.go | 2 +- x/dex/keeper/query/grpc_query_get_price.go | 25 + x/dex/types/query.pb.go | 857 +++++++++++++++++---- x/dex/types/query.pb.gw.go | 163 ++++ 7 files changed, 972 insertions(+), 146 deletions(-) create mode 100644 x/dex/client/cli/query/query_get_price.go create mode 100644 x/dex/keeper/query/grpc_query_get_price.go diff --git a/proto/dex/query.proto b/proto/dex/query.proto index 8d65cf0442..da2c4ef1fc 100644 --- a/proto/dex/query.proto +++ b/proto/dex/query.proto @@ -45,6 +45,10 @@ service Query { option (google.api.http).get = "/sei-protocol/seichain/dex/short_book/{contractAddr}/{priceDenom}/{assetDenom}"; } + rpc GetPrice(QueryGetPriceRequest) returns (QueryGetPriceResponse) { + option (google.api.http).get = "/sei-protocol/seichain/dex/get_price/{contractAddr}/{priceDenom}/{assetDenom}"; + } + rpc GetPrices(QueryGetPricesRequest) returns (QueryGetPricesResponse) { option (google.api.http).get = "/sei-protocol/seichain/dex/get_prices/{contractAddr}/{priceDenom}/{assetDenom}"; } @@ -156,6 +160,18 @@ message QueryGetPricesResponse { repeated Price prices = 1; } +message QueryGetPriceRequest { + string priceDenom = 1; + string assetDenom = 2; + string contractAddr = 3; + uint64 timestamp = 4; +} + +message QueryGetPriceResponse { + Price price = 1; + bool found = 2; +} + message QueryGetTwapsRequest { string contractAddr = 1 [ (gogoproto.jsontag) = "contract_address" diff --git a/x/dex/client/cli/query/query.go b/x/dex/client/cli/query/query.go index 3faf56178c..0227252a81 100644 --- a/x/dex/client/cli/query/query.go +++ b/x/dex/client/cli/query/query.go @@ -30,6 +30,7 @@ func GetQueryCmd(queryRoute string) *cobra.Command { cmd.AddCommand(CmdListShortBook()) cmd.AddCommand(CmdShowShortBook()) cmd.AddCommand(CmdGetPrice()) + cmd.AddCommand(CmdGetPrices()) cmd.AddCommand(CmdGetTwaps()) cmd.AddCommand(CmdGetAssetList()) cmd.AddCommand(CmdGetAssetMetadata()) diff --git a/x/dex/client/cli/query/query_get_price.go b/x/dex/client/cli/query/query_get_price.go new file mode 100644 index 0000000000..dee7773fbf --- /dev/null +++ b/x/dex/client/cli/query/query_get_price.go @@ -0,0 +1,54 @@ +package query + +import ( + "strconv" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/sei-protocol/sei-chain/x/dex/types" + "github.com/spf13/cobra" +) + +var _ = strconv.Itoa(0) + +func CmdGetPrice() *cobra.Command { + cmd := &cobra.Command{ + Use: "get-price [contract-address] [timestamp] [price-denom] [asset-denom]", + Short: "Query getPrice", + Args: cobra.ExactArgs(3), + RunE: func(cmd *cobra.Command, args []string) (err error) { + reqContractAddr := args[0] + reqTimestamp, err := strconv.ParseUint(args[1], 10, 64) + if err != nil { + return err + } + reqPriceDenom := args[2] + reqAssetDenom := args[3] + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryGetPriceRequest{ + ContractAddr: reqContractAddr, + PriceDenom: reqPriceDenom, + AssetDenom: reqAssetDenom, + Timestamp: reqTimestamp, + } + + res, err := queryClient.GetPrice(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/dex/client/cli/query/query_get_prices.go b/x/dex/client/cli/query/query_get_prices.go index 2594da1188..508f9bce64 100644 --- a/x/dex/client/cli/query/query_get_prices.go +++ b/x/dex/client/cli/query/query_get_prices.go @@ -11,7 +11,7 @@ import ( var _ = strconv.Itoa(0) -func CmdGetPrice() *cobra.Command { +func CmdGetPrices() *cobra.Command { cmd := &cobra.Command{ Use: "get-prices [contract-address] [price-denom] [asset-denom]", Short: "Query getPrices", diff --git a/x/dex/keeper/query/grpc_query_get_price.go b/x/dex/keeper/query/grpc_query_get_price.go new file mode 100644 index 0000000000..f58d38645a --- /dev/null +++ b/x/dex/keeper/query/grpc_query_get_price.go @@ -0,0 +1,25 @@ +package query + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/sei-protocol/sei-chain/x/dex/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k KeeperWrapper) GetPrice(goCtx context.Context, req *types.QueryGetPriceRequest) (*types.QueryGetPriceResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + price, found := k.GetPriceState(ctx, req.ContractAddr, req.Timestamp, types.Pair{PriceDenom: req.PriceDenom, AssetDenom: req.AssetDenom}) + + return &types.QueryGetPriceResponse{ + Price: &price, + Found: found, + }, nil +} diff --git a/x/dex/types/query.pb.go b/x/dex/types/query.pb.go index 0adfca7ce0..c3358ba389 100644 --- a/x/dex/types/query.pb.go +++ b/x/dex/types/query.pb.go @@ -682,6 +682,126 @@ func (m *QueryGetPricesResponse) GetPrices() []*Price { return nil } +type QueryGetPriceRequest struct { + PriceDenom string `protobuf:"bytes,1,opt,name=priceDenom,proto3" json:"priceDenom,omitempty"` + AssetDenom string `protobuf:"bytes,2,opt,name=assetDenom,proto3" json:"assetDenom,omitempty"` + ContractAddr string `protobuf:"bytes,3,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"` + Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (m *QueryGetPriceRequest) Reset() { *m = QueryGetPriceRequest{} } +func (m *QueryGetPriceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetPriceRequest) ProtoMessage() {} +func (*QueryGetPriceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d8e98105e6e08a59, []int{12} +} +func (m *QueryGetPriceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPriceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetPriceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPriceRequest.Merge(m, src) +} +func (m *QueryGetPriceRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPriceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPriceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPriceRequest proto.InternalMessageInfo + +func (m *QueryGetPriceRequest) GetPriceDenom() string { + if m != nil { + return m.PriceDenom + } + return "" +} + +func (m *QueryGetPriceRequest) GetAssetDenom() string { + if m != nil { + return m.AssetDenom + } + return "" +} + +func (m *QueryGetPriceRequest) GetContractAddr() string { + if m != nil { + return m.ContractAddr + } + return "" +} + +func (m *QueryGetPriceRequest) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +type QueryGetPriceResponse struct { + Price *Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` + Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"` +} + +func (m *QueryGetPriceResponse) Reset() { *m = QueryGetPriceResponse{} } +func (m *QueryGetPriceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetPriceResponse) ProtoMessage() {} +func (*QueryGetPriceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d8e98105e6e08a59, []int{13} +} +func (m *QueryGetPriceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPriceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetPriceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPriceResponse.Merge(m, src) +} +func (m *QueryGetPriceResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPriceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPriceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPriceResponse proto.InternalMessageInfo + +func (m *QueryGetPriceResponse) GetPrice() *Price { + if m != nil { + return m.Price + } + return nil +} + +func (m *QueryGetPriceResponse) GetFound() bool { + if m != nil { + return m.Found + } + return false +} + type QueryGetTwapsRequest struct { ContractAddr string `protobuf:"bytes,1,opt,name=contractAddr,proto3" json:"contract_address"` LookbackSeconds uint64 `protobuf:"varint,2,opt,name=lookbackSeconds,proto3" json:"lookback_seconds"` @@ -691,7 +811,7 @@ func (m *QueryGetTwapsRequest) Reset() { *m = QueryGetTwapsRequest{} } func (m *QueryGetTwapsRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetTwapsRequest) ProtoMessage() {} func (*QueryGetTwapsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{12} + return fileDescriptor_d8e98105e6e08a59, []int{14} } func (m *QueryGetTwapsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -742,7 +862,7 @@ func (m *QueryGetTwapsResponse) Reset() { *m = QueryGetTwapsResponse{} } func (m *QueryGetTwapsResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetTwapsResponse) ProtoMessage() {} func (*QueryGetTwapsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{13} + return fileDescriptor_d8e98105e6e08a59, []int{15} } func (m *QueryGetTwapsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -785,7 +905,7 @@ func (m *QueryAssetListRequest) Reset() { *m = QueryAssetListRequest{} } func (m *QueryAssetListRequest) String() string { return proto.CompactTextString(m) } func (*QueryAssetListRequest) ProtoMessage() {} func (*QueryAssetListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{14} + return fileDescriptor_d8e98105e6e08a59, []int{16} } func (m *QueryAssetListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -822,7 +942,7 @@ func (m *QueryAssetListResponse) Reset() { *m = QueryAssetListResponse{} func (m *QueryAssetListResponse) String() string { return proto.CompactTextString(m) } func (*QueryAssetListResponse) ProtoMessage() {} func (*QueryAssetListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{15} + return fileDescriptor_d8e98105e6e08a59, []int{17} } func (m *QueryAssetListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -866,7 +986,7 @@ func (m *QueryAssetMetadataRequest) Reset() { *m = QueryAssetMetadataReq func (m *QueryAssetMetadataRequest) String() string { return proto.CompactTextString(m) } func (*QueryAssetMetadataRequest) ProtoMessage() {} func (*QueryAssetMetadataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{16} + return fileDescriptor_d8e98105e6e08a59, []int{18} } func (m *QueryAssetMetadataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -910,7 +1030,7 @@ func (m *QueryAssetMetadataResponse) Reset() { *m = QueryAssetMetadataRe func (m *QueryAssetMetadataResponse) String() string { return proto.CompactTextString(m) } func (*QueryAssetMetadataResponse) ProtoMessage() {} func (*QueryAssetMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{17} + return fileDescriptor_d8e98105e6e08a59, []int{19} } func (m *QueryAssetMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -954,7 +1074,7 @@ func (m *QueryRegisteredPairsRequest) Reset() { *m = QueryRegisteredPair func (m *QueryRegisteredPairsRequest) String() string { return proto.CompactTextString(m) } func (*QueryRegisteredPairsRequest) ProtoMessage() {} func (*QueryRegisteredPairsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{18} + return fileDescriptor_d8e98105e6e08a59, []int{20} } func (m *QueryRegisteredPairsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -998,7 +1118,7 @@ func (m *QueryRegisteredPairsResponse) Reset() { *m = QueryRegisteredPai func (m *QueryRegisteredPairsResponse) String() string { return proto.CompactTextString(m) } func (*QueryRegisteredPairsResponse) ProtoMessage() {} func (*QueryRegisteredPairsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{19} + return fileDescriptor_d8e98105e6e08a59, []int{21} } func (m *QueryRegisteredPairsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1043,7 +1163,7 @@ func (m *QueryGetOrdersRequest) Reset() { *m = QueryGetOrdersRequest{} } func (m *QueryGetOrdersRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetOrdersRequest) ProtoMessage() {} func (*QueryGetOrdersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{20} + return fileDescriptor_d8e98105e6e08a59, []int{22} } func (m *QueryGetOrdersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1094,7 +1214,7 @@ func (m *QueryGetOrdersResponse) Reset() { *m = QueryGetOrdersResponse{} func (m *QueryGetOrdersResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetOrdersResponse) ProtoMessage() {} func (*QueryGetOrdersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{21} + return fileDescriptor_d8e98105e6e08a59, []int{23} } func (m *QueryGetOrdersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1141,7 +1261,7 @@ func (m *QueryGetOrderByIDRequest) Reset() { *m = QueryGetOrderByIDReque func (m *QueryGetOrderByIDRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetOrderByIDRequest) ProtoMessage() {} func (*QueryGetOrderByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{22} + return fileDescriptor_d8e98105e6e08a59, []int{24} } func (m *QueryGetOrderByIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1206,7 +1326,7 @@ func (m *QueryGetOrderByIDResponse) Reset() { *m = QueryGetOrderByIDResp func (m *QueryGetOrderByIDResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetOrderByIDResponse) ProtoMessage() {} func (*QueryGetOrderByIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{23} + return fileDescriptor_d8e98105e6e08a59, []int{25} } func (m *QueryGetOrderByIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1254,7 +1374,7 @@ func (m *QueryGetHistoricalPricesRequest) Reset() { *m = QueryGetHistori func (m *QueryGetHistoricalPricesRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetHistoricalPricesRequest) ProtoMessage() {} func (*QueryGetHistoricalPricesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{24} + return fileDescriptor_d8e98105e6e08a59, []int{26} } func (m *QueryGetHistoricalPricesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1326,7 +1446,7 @@ func (m *QueryGetHistoricalPricesResponse) Reset() { *m = QueryGetHistor func (m *QueryGetHistoricalPricesResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetHistoricalPricesResponse) ProtoMessage() {} func (*QueryGetHistoricalPricesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{25} + return fileDescriptor_d8e98105e6e08a59, []int{27} } func (m *QueryGetHistoricalPricesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1373,7 +1493,7 @@ func (m *QueryGetMarketSummaryRequest) Reset() { *m = QueryGetMarketSumm func (m *QueryGetMarketSummaryRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetMarketSummaryRequest) ProtoMessage() {} func (*QueryGetMarketSummaryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{26} + return fileDescriptor_d8e98105e6e08a59, []int{28} } func (m *QueryGetMarketSummaryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1442,7 +1562,7 @@ func (m *QueryGetMarketSummaryResponse) Reset() { *m = QueryGetMarketSum func (m *QueryGetMarketSummaryResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetMarketSummaryResponse) ProtoMessage() {} func (*QueryGetMarketSummaryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{27} + return fileDescriptor_d8e98105e6e08a59, []int{29} } func (m *QueryGetMarketSummaryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1480,7 +1600,7 @@ func (m *QueryOrderSimulationRequest) Reset() { *m = QueryOrderSimulatio func (m *QueryOrderSimulationRequest) String() string { return proto.CompactTextString(m) } func (*QueryOrderSimulationRequest) ProtoMessage() {} func (*QueryOrderSimulationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{28} + return fileDescriptor_d8e98105e6e08a59, []int{30} } func (m *QueryOrderSimulationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1531,7 +1651,7 @@ func (m *QueryOrderSimulationResponse) Reset() { *m = QueryOrderSimulati func (m *QueryOrderSimulationResponse) String() string { return proto.CompactTextString(m) } func (*QueryOrderSimulationResponse) ProtoMessage() {} func (*QueryOrderSimulationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{29} + return fileDescriptor_d8e98105e6e08a59, []int{31} } func (m *QueryOrderSimulationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1569,7 +1689,7 @@ func (m *QueryGetMatchResultRequest) Reset() { *m = QueryGetMatchResultR func (m *QueryGetMatchResultRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetMatchResultRequest) ProtoMessage() {} func (*QueryGetMatchResultRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{30} + return fileDescriptor_d8e98105e6e08a59, []int{32} } func (m *QueryGetMatchResultRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1620,7 +1740,7 @@ func (m *QueryGetMatchResultResponse) Reset() { *m = QueryGetMatchResult func (m *QueryGetMatchResultResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetMatchResultResponse) ProtoMessage() {} func (*QueryGetMatchResultResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d8e98105e6e08a59, []int{31} + return fileDescriptor_d8e98105e6e08a59, []int{33} } func (m *QueryGetMatchResultResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1669,6 +1789,8 @@ func init() { proto.RegisterType((*QueryAllShortBookResponse)(nil), "seiprotocol.seichain.dex.QueryAllShortBookResponse") proto.RegisterType((*QueryGetPricesRequest)(nil), "seiprotocol.seichain.dex.QueryGetPricesRequest") proto.RegisterType((*QueryGetPricesResponse)(nil), "seiprotocol.seichain.dex.QueryGetPricesResponse") + proto.RegisterType((*QueryGetPriceRequest)(nil), "seiprotocol.seichain.dex.QueryGetPriceRequest") + proto.RegisterType((*QueryGetPriceResponse)(nil), "seiprotocol.seichain.dex.QueryGetPriceResponse") proto.RegisterType((*QueryGetTwapsRequest)(nil), "seiprotocol.seichain.dex.QueryGetTwapsRequest") proto.RegisterType((*QueryGetTwapsResponse)(nil), "seiprotocol.seichain.dex.QueryGetTwapsResponse") proto.RegisterType((*QueryAssetListRequest)(nil), "seiprotocol.seichain.dex.QueryAssetListRequest") @@ -1694,131 +1816,135 @@ func init() { func init() { proto.RegisterFile("dex/query.proto", fileDescriptor_d8e98105e6e08a59) } var fileDescriptor_d8e98105e6e08a59 = []byte{ - // 1970 bytes of a gzipped FileDescriptorProto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 0x36, 0xa3, 0xea, 0x3b, 0x63, 0xeb, 0xfa, - 0x9e, 0xbe, 0x93, 0xac, 0xd5, 0x7b, 0xf8, 0xdf, 0x1a, 0x3a, 0x90, 0xae, 0x17, 0xf1, 0x9b, 0xf9, - 0xe8, 0xc6, 0x15, 0xd9, 0xd5, 0xb3, 0xa5, 0xf5, 0x80, 0x12, 0x5f, 0x32, 0xe2, 0xe2, 0xef, 0xe5, - 0xf0, 0xd1, 0x96, 0xda, 0x66, 0xa0, 0xd4, 0x4b, 0x90, 0x91, 0xa9, 0x96, 0x7b, 0xf8, 0xa7, 0x2a, - 0xc3, 0xa4, 0x8a, 0x92, 0xdc, 0x0c, 0x33, 0xbe, 0xc0, 0xca, 0xcd, 0x30, 0x13, 0x6a, 0x1f, 0x32, - 0x85, 0x7f, 0x80, 0x5e, 0x19, 0xad, 0x07, 0xf0, 0x1b, 0x45, 0x68, 0x4c, 0x97, 0x2e, 0xd5, 0x33, - 0x25, 0xb5, 0x22, 0x07, 0x1a, 0xab, 0x8f, 0x9e, 0x2c, 0x6b, 0x8f, 0x9f, 0x2c, 0x6b, 0xff, 0x7c, - 0xb2, 0xac, 0x3d, 0x7c, 0xba, 0x3c, 0xf5, 0xf8, 0xe9, 0xf2, 0xd4, 0xdf, 0x9f, 0x2e, 0x4f, 0xdd, - 0x5d, 0x49, 0x94, 0x5e, 0xe9, 0x8d, 0x59, 0x51, 0x3b, 0xb3, 0x25, 0xf7, 0x46, 0x56, 0x61, 0x1b, - 0xb3, 0x72, 0xfc, 0xf4, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x2c, 0xeb, 0x59, 0x8f, 0x1f, - 0x00, 0x00, + // 2042 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcd, 0x6f, 0x1c, 0x49, + 0x15, 0x77, 0x8f, 0x63, 0xe3, 0x29, 0x87, 0x4d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 0x94, 0xdc, 0x98, 0x95, 0xe3, 0xa7, 0xfe, 0x17, 0x00, 0x00, + 0xff, 0xff, 0xcb, 0x92, 0x9f, 0x25, 0x55, 0x21, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1843,6 +1969,7 @@ type QueryClient interface { ShortBook(ctx context.Context, in *QueryGetShortBookRequest, opts ...grpc.CallOption) (*QueryGetShortBookResponse, error) // Queries a list of ShortBook items. ShortBookAll(ctx context.Context, in *QueryAllShortBookRequest, opts ...grpc.CallOption) (*QueryAllShortBookResponse, error) + GetPrice(ctx context.Context, in *QueryGetPriceRequest, opts ...grpc.CallOption) (*QueryGetPriceResponse, error) GetPrices(ctx context.Context, in *QueryGetPricesRequest, opts ...grpc.CallOption) (*QueryGetPricesResponse, error) GetTwaps(ctx context.Context, in *QueryGetTwapsRequest, opts ...grpc.CallOption) (*QueryGetTwapsResponse, error) // Returns the metadata for a specified denom / display type @@ -1912,6 +2039,15 @@ func (c *queryClient) ShortBookAll(ctx context.Context, in *QueryAllShortBookReq return out, nil } +func (c *queryClient) GetPrice(ctx context.Context, in *QueryGetPriceRequest, opts ...grpc.CallOption) (*QueryGetPriceResponse, error) { + out := new(QueryGetPriceResponse) + err := c.cc.Invoke(ctx, "/seiprotocol.seichain.dex.Query/GetPrice", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) GetPrices(ctx context.Context, in *QueryGetPricesRequest, opts ...grpc.CallOption) (*QueryGetPricesResponse, error) { out := new(QueryGetPricesResponse) err := c.cc.Invoke(ctx, "/seiprotocol.seichain.dex.Query/GetPrices", in, out, opts...) @@ -2023,6 +2159,7 @@ type QueryServer interface { ShortBook(context.Context, *QueryGetShortBookRequest) (*QueryGetShortBookResponse, error) // Queries a list of ShortBook items. ShortBookAll(context.Context, *QueryAllShortBookRequest) (*QueryAllShortBookResponse, error) + GetPrice(context.Context, *QueryGetPriceRequest) (*QueryGetPriceResponse, error) GetPrices(context.Context, *QueryGetPricesRequest) (*QueryGetPricesResponse, error) GetTwaps(context.Context, *QueryGetTwapsRequest) (*QueryGetTwapsResponse, error) // Returns the metadata for a specified denom / display type @@ -2058,6 +2195,9 @@ func (*UnimplementedQueryServer) ShortBook(ctx context.Context, req *QueryGetSho func (*UnimplementedQueryServer) ShortBookAll(ctx context.Context, req *QueryAllShortBookRequest) (*QueryAllShortBookResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ShortBookAll not implemented") } +func (*UnimplementedQueryServer) GetPrice(ctx context.Context, req *QueryGetPriceRequest) (*QueryGetPriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPrice not implemented") +} func (*UnimplementedQueryServer) GetPrices(ctx context.Context, req *QueryGetPricesRequest) (*QueryGetPricesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPrices not implemented") } @@ -2186,6 +2326,24 @@ func _Query_ShortBookAll_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _Query_GetPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetPriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetPrice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/seiprotocol.seichain.dex.Query/GetPrice", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetPrice(ctx, req.(*QueryGetPriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_GetPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetPricesRequest) if err := dec(in); err != nil { @@ -2408,6 +2566,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "ShortBookAll", Handler: _Query_ShortBookAll_Handler, }, + { + MethodName: "GetPrice", + Handler: _Query_GetPrice_Handler, + }, { MethodName: "GetPrices", Handler: _Query_GetPrices_Handler, @@ -2972,6 +3134,100 @@ func (m *QueryGetPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *QueryGetPriceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetPriceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Timestamp != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x20 + } + if len(m.ContractAddr) > 0 { + i -= len(m.ContractAddr) + copy(dAtA[i:], m.ContractAddr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractAddr))) + i-- + dAtA[i] = 0x1a + } + if len(m.AssetDenom) > 0 { + i -= len(m.AssetDenom) + copy(dAtA[i:], m.AssetDenom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AssetDenom))) + i-- + dAtA[i] = 0x12 + } + if len(m.PriceDenom) > 0 { + i -= len(m.PriceDenom) + copy(dAtA[i:], m.PriceDenom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PriceDenom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetPriceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetPriceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Found { + i-- + if m.Found { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Price != nil { + { + size, err := m.Price.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *QueryGetTwapsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3991,6 +4247,46 @@ func (m *QueryGetPricesResponse) Size() (n int) { return n } +func (m *QueryGetPriceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PriceDenom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.AssetDenom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ContractAddr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Timestamp != 0 { + n += 1 + sovQuery(uint64(m.Timestamp)) + } + return n +} + +func (m *QueryGetPriceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Price != nil { + l = m.Price.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if m.Found { + n += 2 + } + return n +} + func (m *QueryGetTwapsRequest) Size() (n int) { if m == nil { return 0 @@ -5818,6 +6114,277 @@ func (m *QueryGetPricesResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryGetPriceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGetPriceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriceDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PriceDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssetDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AssetDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetPriceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGetPriceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Price == nil { + m.Price = &Price{} + } + if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Found", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Found = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *QueryGetTwapsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/dex/types/query.pb.gw.go b/x/dex/types/query.pb.gw.go index b8bbed07e4..382d523034 100644 --- a/x/dex/types/query.pb.gw.go +++ b/x/dex/types/query.pb.gw.go @@ -523,6 +523,122 @@ func local_request_Query_ShortBookAll_0(ctx context.Context, marshaler runtime.M } +var ( + filter_Query_GetPrice_0 = &utilities.DoubleArray{Encoding: map[string]int{"contractAddr": 0, "priceDenom": 1, "assetDenom": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + +func request_Query_GetPrice_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPriceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contractAddr"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contractAddr") + } + + protoReq.ContractAddr, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contractAddr", err) + } + + val, ok = pathParams["priceDenom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "priceDenom") + } + + protoReq.PriceDenom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "priceDenom", err) + } + + val, ok = pathParams["assetDenom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "assetDenom") + } + + protoReq.AssetDenom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "assetDenom", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetPrice_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetPrice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetPrice_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPriceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contractAddr"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contractAddr") + } + + protoReq.ContractAddr, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contractAddr", err) + } + + val, ok = pathParams["priceDenom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "priceDenom") + } + + protoReq.PriceDenom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "priceDenom", err) + } + + val, ok = pathParams["assetDenom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "assetDenom") + } + + protoReq.AssetDenom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "assetDenom", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetPrice_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetPrice(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_GetPrices_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetPricesRequest var metadata runtime.ServerMetadata @@ -1384,6 +1500,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_GetPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetPrice_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetPrice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_GetPrices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1732,6 +1871,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_GetPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetPrice_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetPrice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_GetPrices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1926,6 +2085,8 @@ var ( pattern_Query_ShortBookAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"sei-protocol", "seichain", "dex", "short_book", "contractAddr", "priceDenom", "assetDenom"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetPrice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"sei-protocol", "seichain", "dex", "get_price", "contractAddr", "priceDenom", "assetDenom"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_GetPrices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"sei-protocol", "seichain", "dex", "get_prices", "contractAddr", "priceDenom", "assetDenom"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_GetTwaps_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"sei-protocol", "seichain", "dex", "get_twaps", "contractAddr", "lookbackSeconds"}, "", runtime.AssumeColonVerbOpt(true))) @@ -1956,6 +2117,8 @@ var ( forward_Query_ShortBookAll_0 = runtime.ForwardResponseMessage + forward_Query_GetPrice_0 = runtime.ForwardResponseMessage + forward_Query_GetPrices_0 = runtime.ForwardResponseMessage forward_Query_GetTwaps_0 = runtime.ForwardResponseMessage