diff --git a/proto/osmosis/poolmanager/v1beta1/query.proto b/proto/osmosis/poolmanager/v1beta1/query.proto index 39c49eccb09..03d25dbec6d 100644 --- a/proto/osmosis/poolmanager/v1beta1/query.proto +++ b/proto/osmosis/poolmanager/v1beta1/query.proto @@ -91,6 +91,12 @@ service Query { rpc AllPools(AllPoolsRequest) returns (AllPoolsResponse) { option (google.api.http).get = "/osmosis/poolmanager/v1beta1/all-pools"; } + // ListPoolsByDenom return all pools by denom + rpc ListPoolsByDenom(ListPoolsByDenomRequest) + returns (ListPoolsByDenomResponse) { + option (google.api.http).get = + "/osmosis/poolmanager/v1beta1/list-pools-by-denom"; + } // SpotPrice defines a gRPC query handler that returns the spot price given // a base denomination and a quote denomination. @@ -234,6 +240,17 @@ message AllPoolsResponse { [ (cosmos_proto.accepts_interface) = "PoolI" ]; } +// ======================================================= +// ListPoolsByDenomRequest +message ListPoolsByDenomRequest { + string denom = 1 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; +} + +message ListPoolsByDenomResponse { + repeated google.protobuf.Any pools = 1 + [ (cosmos_proto.accepts_interface) = "PoolI" ]; +} +// ========================================================== // SpotPriceRequest defines the gRPC request structure for a SpotPrice // query. message SpotPriceRequest { diff --git a/scripts/setup_superfluid.sh b/scripts/setup_superfluid.sh old mode 100644 new mode 100755 index ee5f4c94bee..ead323b8959 --- a/scripts/setup_superfluid.sh +++ b/scripts/setup_superfluid.sh @@ -33,4 +33,4 @@ sleep 7 osmosisd tx gov vote 1 yes --from=validator1 --keyring-backend=test --chain-id=testing --yes --home=$HOME/.osmosisd/validator1 sleep 7 osmosisd tx gov vote 1 yes --from=validator2 --keyring-backend=test --chain-id=testing --yes --home=$HOME/.osmosisd/validator2 -sleep 7 +sleep 7 \ No newline at end of file diff --git a/x/poolmanager/client/cli/query.go b/x/poolmanager/client/cli/query.go index 47232192c45..5d676549615 100644 --- a/x/poolmanager/client/cli/query.go +++ b/x/poolmanager/client/cli/query.go @@ -32,6 +32,7 @@ func GetQueryCmd() *cobra.Command { osmocli.AddQueryCmd(cmd, queryproto.NewQueryClient, GetCmdTotalVolumeForPool) osmocli.AddQueryCmd(cmd, queryproto.NewQueryClient, GetCmdTradingPairTakerFee) osmocli.AddQueryCmd(cmd, queryproto.NewQueryClient, GetCmdEstimateTradeBasedOnPriceImpact) + osmocli.AddQueryCmd(cmd, queryproto.NewQueryClient, GetCmdListPoolsByDenom) cmd.AddCommand( osmocli.GetParams[*queryproto.ParamsRequest]( types.ModuleName, queryproto.NewQueryClient), @@ -105,6 +106,15 @@ func GetCmdSpotPrice() (*osmocli.QueryDescriptor, *queryproto.SpotPriceRequest) `, }, &queryproto.SpotPriceRequest{} } +func GetCmdListPoolsByDenom() (*osmocli.QueryDescriptor, *queryproto.ListPoolsByDenomRequest) { + return &osmocli.QueryDescriptor{ + Use: "list-pools-by-denom", + Short: "Query list-pools-by-denom", + Long: `Query list-pools-by-denom +{{.CommandPrefix}} list-pools-by-denom uosmo +`, + }, &queryproto.ListPoolsByDenomRequest{} +} func EstimateSwapExactAmountInParseArgs(args []string, fs *flag.FlagSet) (proto.Message, error) { poolID, err := strconv.Atoi(args[0]) diff --git a/x/poolmanager/client/grpc/grpc_query.go b/x/poolmanager/client/grpc/grpc_query.go index a47c7e9b9d3..4bdc58d6da4 100644 --- a/x/poolmanager/client/grpc/grpc_query.go +++ b/x/poolmanager/client/grpc/grpc_query.go @@ -71,6 +71,16 @@ func (q Querier) SpotPrice(grpcCtx context.Context, return q.Q.SpotPrice(ctx, *req) } +func (q Querier) ListPoolsByDenom(grpcCtx context.Context, + req *queryproto.ListPoolsByDenomRequest, +) (*queryproto.ListPoolsByDenomResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + ctx := sdk.UnwrapSDKContext(grpcCtx) + return q.Q.ListPoolsByDenom(ctx, *req) +} + func (q Querier) Pool(grpcCtx context.Context, req *queryproto.PoolRequest, ) (*queryproto.PoolResponse, error) { diff --git a/x/poolmanager/client/query_proto_wrap.go b/x/poolmanager/client/query_proto_wrap.go index a88917012be..5425bbde0de 100644 --- a/x/poolmanager/client/query_proto_wrap.go +++ b/x/poolmanager/client/query_proto_wrap.go @@ -214,6 +214,30 @@ func (q Querier) AllPools(ctx sdk.Context, req queryproto.AllPoolsRequest) (*que }, nil } +// ListPoolsByDenom returns a list of pools filtered by denom +func (q Querier) ListPoolsByDenom(ctx sdk.Context, req queryproto.ListPoolsByDenomRequest) (*queryproto.ListPoolsByDenomResponse, error) { + if req.Denom == "" { + return nil, status.Error(codes.InvalidArgument, "invalid denom") + } + pools, err := q.K.ListPoolsByDenom(ctx, req.Denom) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + var anyPools []*codectypes.Any + for _, pool := range pools { + any, err := codectypes.NewAnyWithValue(pool.AsSerializablePool()) + if err != nil { + return nil, err + } + anyPools = append(anyPools, any) + } + + return &queryproto.ListPoolsByDenomResponse{ + Pools: anyPools, + }, nil +} + // SpotPrice returns the spot price of the pool with the given quote and base asset denoms. 18 decimals. func (q Querier) SpotPrice(ctx sdk.Context, req queryproto.SpotPriceRequest) (*queryproto.SpotPriceResponse, error) { if req.BaseAssetDenom == "" { diff --git a/x/poolmanager/client/queryproto/query.pb.go b/x/poolmanager/client/queryproto/query.pb.go index b1854156588..006cc48510a 100644 --- a/x/poolmanager/client/queryproto/query.pb.go +++ b/x/poolmanager/client/queryproto/query.pb.go @@ -837,6 +837,97 @@ func (m *AllPoolsResponse) GetPools() []*types1.Any { return nil } +// ======================================================= +// ListPoolsByDenomRequest +type ListPoolsByDenomRequest struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` +} + +func (m *ListPoolsByDenomRequest) Reset() { *m = ListPoolsByDenomRequest{} } +func (m *ListPoolsByDenomRequest) String() string { return proto.CompactTextString(m) } +func (*ListPoolsByDenomRequest) ProtoMessage() {} +func (*ListPoolsByDenomRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_6256a4106f701b7d, []int{16} +} +func (m *ListPoolsByDenomRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListPoolsByDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListPoolsByDenomRequest.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 *ListPoolsByDenomRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPoolsByDenomRequest.Merge(m, src) +} +func (m *ListPoolsByDenomRequest) XXX_Size() int { + return m.Size() +} +func (m *ListPoolsByDenomRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListPoolsByDenomRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListPoolsByDenomRequest proto.InternalMessageInfo + +func (m *ListPoolsByDenomRequest) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +type ListPoolsByDenomResponse struct { + Pools []*types1.Any `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"` +} + +func (m *ListPoolsByDenomResponse) Reset() { *m = ListPoolsByDenomResponse{} } +func (m *ListPoolsByDenomResponse) String() string { return proto.CompactTextString(m) } +func (*ListPoolsByDenomResponse) ProtoMessage() {} +func (*ListPoolsByDenomResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6256a4106f701b7d, []int{17} +} +func (m *ListPoolsByDenomResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListPoolsByDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ListPoolsByDenomResponse.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 *ListPoolsByDenomResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPoolsByDenomResponse.Merge(m, src) +} +func (m *ListPoolsByDenomResponse) XXX_Size() int { + return m.Size() +} +func (m *ListPoolsByDenomResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListPoolsByDenomResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListPoolsByDenomResponse proto.InternalMessageInfo + +func (m *ListPoolsByDenomResponse) GetPools() []*types1.Any { + if m != nil { + return m.Pools + } + return nil +} + +// ========================================================== // SpotPriceRequest defines the gRPC request structure for a SpotPrice // query. type SpotPriceRequest struct { @@ -849,7 +940,7 @@ func (m *SpotPriceRequest) Reset() { *m = SpotPriceRequest{} } func (m *SpotPriceRequest) String() string { return proto.CompactTextString(m) } func (*SpotPriceRequest) ProtoMessage() {} func (*SpotPriceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{16} + return fileDescriptor_6256a4106f701b7d, []int{18} } func (m *SpotPriceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -910,7 +1001,7 @@ func (m *SpotPriceResponse) Reset() { *m = SpotPriceResponse{} } func (m *SpotPriceResponse) String() string { return proto.CompactTextString(m) } func (*SpotPriceResponse) ProtoMessage() {} func (*SpotPriceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{17} + return fileDescriptor_6256a4106f701b7d, []int{19} } func (m *SpotPriceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -955,7 +1046,7 @@ func (m *TotalPoolLiquidityRequest) Reset() { *m = TotalPoolLiquidityReq func (m *TotalPoolLiquidityRequest) String() string { return proto.CompactTextString(m) } func (*TotalPoolLiquidityRequest) ProtoMessage() {} func (*TotalPoolLiquidityRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{18} + return fileDescriptor_6256a4106f701b7d, []int{20} } func (m *TotalPoolLiquidityRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -999,7 +1090,7 @@ func (m *TotalPoolLiquidityResponse) Reset() { *m = TotalPoolLiquidityRe func (m *TotalPoolLiquidityResponse) String() string { return proto.CompactTextString(m) } func (*TotalPoolLiquidityResponse) ProtoMessage() {} func (*TotalPoolLiquidityResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{19} + return fileDescriptor_6256a4106f701b7d, []int{21} } func (m *TotalPoolLiquidityResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1043,7 +1134,7 @@ func (m *TotalLiquidityRequest) Reset() { *m = TotalLiquidityRequest{} } func (m *TotalLiquidityRequest) String() string { return proto.CompactTextString(m) } func (*TotalLiquidityRequest) ProtoMessage() {} func (*TotalLiquidityRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{20} + return fileDescriptor_6256a4106f701b7d, []int{22} } func (m *TotalLiquidityRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1080,7 +1171,7 @@ func (m *TotalLiquidityResponse) Reset() { *m = TotalLiquidityResponse{} func (m *TotalLiquidityResponse) String() string { return proto.CompactTextString(m) } func (*TotalLiquidityResponse) ProtoMessage() {} func (*TotalLiquidityResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{21} + return fileDescriptor_6256a4106f701b7d, []int{23} } func (m *TotalLiquidityResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1125,7 +1216,7 @@ func (m *TotalVolumeForPoolRequest) Reset() { *m = TotalVolumeForPoolReq func (m *TotalVolumeForPoolRequest) String() string { return proto.CompactTextString(m) } func (*TotalVolumeForPoolRequest) ProtoMessage() {} func (*TotalVolumeForPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{22} + return fileDescriptor_6256a4106f701b7d, []int{24} } func (m *TotalVolumeForPoolRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1169,7 +1260,7 @@ func (m *TotalVolumeForPoolResponse) Reset() { *m = TotalVolumeForPoolRe func (m *TotalVolumeForPoolResponse) String() string { return proto.CompactTextString(m) } func (*TotalVolumeForPoolResponse) ProtoMessage() {} func (*TotalVolumeForPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{23} + return fileDescriptor_6256a4106f701b7d, []int{25} } func (m *TotalVolumeForPoolResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1215,7 +1306,7 @@ func (m *TradingPairTakerFeeRequest) Reset() { *m = TradingPairTakerFeeR func (m *TradingPairTakerFeeRequest) String() string { return proto.CompactTextString(m) } func (*TradingPairTakerFeeRequest) ProtoMessage() {} func (*TradingPairTakerFeeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{24} + return fileDescriptor_6256a4106f701b7d, []int{26} } func (m *TradingPairTakerFeeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1266,7 +1357,7 @@ func (m *TradingPairTakerFeeResponse) Reset() { *m = TradingPairTakerFee func (m *TradingPairTakerFeeResponse) String() string { return proto.CompactTextString(m) } func (*TradingPairTakerFeeResponse) ProtoMessage() {} func (*TradingPairTakerFeeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{25} + return fileDescriptor_6256a4106f701b7d, []int{27} } func (m *TradingPairTakerFeeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1322,7 +1413,7 @@ func (m *EstimateTradeBasedOnPriceImpactRequest) Reset() { func (m *EstimateTradeBasedOnPriceImpactRequest) String() string { return proto.CompactTextString(m) } func (*EstimateTradeBasedOnPriceImpactRequest) ProtoMessage() {} func (*EstimateTradeBasedOnPriceImpactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{26} + return fileDescriptor_6256a4106f701b7d, []int{28} } func (m *EstimateTradeBasedOnPriceImpactRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1391,7 +1482,7 @@ func (m *EstimateTradeBasedOnPriceImpactResponse) Reset() { func (m *EstimateTradeBasedOnPriceImpactResponse) String() string { return proto.CompactTextString(m) } func (*EstimateTradeBasedOnPriceImpactResponse) ProtoMessage() {} func (*EstimateTradeBasedOnPriceImpactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6256a4106f701b7d, []int{27} + return fileDescriptor_6256a4106f701b7d, []int{29} } func (m *EstimateTradeBasedOnPriceImpactResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1451,6 +1542,8 @@ func init() { proto.RegisterType((*PoolResponse)(nil), "osmosis.poolmanager.v1beta1.PoolResponse") proto.RegisterType((*AllPoolsRequest)(nil), "osmosis.poolmanager.v1beta1.AllPoolsRequest") proto.RegisterType((*AllPoolsResponse)(nil), "osmosis.poolmanager.v1beta1.AllPoolsResponse") + proto.RegisterType((*ListPoolsByDenomRequest)(nil), "osmosis.poolmanager.v1beta1.ListPoolsByDenomRequest") + proto.RegisterType((*ListPoolsByDenomResponse)(nil), "osmosis.poolmanager.v1beta1.ListPoolsByDenomResponse") proto.RegisterType((*SpotPriceRequest)(nil), "osmosis.poolmanager.v1beta1.SpotPriceRequest") proto.RegisterType((*SpotPriceResponse)(nil), "osmosis.poolmanager.v1beta1.SpotPriceResponse") proto.RegisterType((*TotalPoolLiquidityRequest)(nil), "osmosis.poolmanager.v1beta1.TotalPoolLiquidityRequest") @@ -1470,129 +1563,135 @@ func init() { } var fileDescriptor_6256a4106f701b7d = []byte{ - // 1950 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcb, 0x73, 0x1b, 0x49, - 0x19, 0xcf, 0xc8, 0x8a, 0xd7, 0xfa, 0x1c, 0x3f, 0xd2, 0x89, 0x13, 0x5b, 0x09, 0x96, 0xb7, 0xb3, - 0x64, 0xbd, 0x71, 0x3c, 0x8a, 0xed, 0x2c, 0x09, 0x81, 0x7d, 0x58, 0xb6, 0xb3, 0x11, 0x2c, 0xc4,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14, 0xe0, 0x37, 0x04, 0xe0, 0x1b, 0xe8, 0xf5, 0x7e, 0x1f, - 0x4d, 0x4c, 0x04, 0xbe, 0xff, 0xf4, 0xd9, 0xac, 0x76, 0xf0, 0x6c, 0x56, 0xfb, 0xe7, 0xb3, 0x59, - 0xed, 0x93, 0xe7, 0xb3, 0x27, 0x0e, 0x9e, 0xcf, 0x9e, 0xf8, 0xdb, 0xf3, 0xd9, 0x13, 0x1f, 0xad, - 0xb5, 0x08, 0x4b, 0x15, 0x7a, 0xb1, 0x62, 0x6d, 0x7b, 0x61, 0x9e, 0xdd, 0xe5, 0x6b, 0xf9, 0xbd, - 0xb6, 0x6c, 0x3b, 0x15, 0x9b, 0xb8, 0x4c, 0xfe, 0x4b, 0x55, 0xfe, 0xa4, 0x38, 0x2c, 0xfe, 0xac, - 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xae, 0xdc, 0x0c, 0xcf, 0x6e, 0x1e, 0x00, 0x00, + // 2046 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcd, 0x73, 0x1b, 0x49, + 0x15, 0xcf, 0xc8, 0x1f, 0x6b, 0x3d, 0xc7, 0xb2, 0xd2, 0x1b, 0x27, 0xb6, 0x12, 0x2c, 0x6f, 0x67, + 0xc9, 0x7a, 0xe3, 0x68, 0x14, 0xdb, 0x09, 0x09, 0x81, 0xdd, 0xac, 0x64, 0x3b, 0x1b, 0x41, 0x20, + 0xde, 0x89, 0xf7, 0x83, 0x85, 0x30, 0x35, 0xb6, 0x3a, 0xca, 0x10, 0xcd, 0x8c, 0xa2, 0xe9, 0x71, + 0xac, 0xa2, 0xf6, 0x42, 0x15, 0x05, 0x27, 0x6a, 0x61, 0x0f, 0x7b, 0xe0, 0x40, 0x71, 0xe0, 0xc2, + 0xc7, 0x0d, 0x0e, 0xfc, 0x07, 0xa9, 0xad, 0x82, 0x4a, 0x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 0x10, 0xb3, 0x5b, 0x7e, + 0xa8, 0x9a, 0x4e, 0xde, 0x32, 0xe8, 0x03, 0xb5, 0x64, 0xd3, 0x56, 0x33, 0x7b, 0x3a, 0x9c, 0x87, + 0x70, 0xc7, 0x5a, 0xca, 0x4f, 0x44, 0xac, 0x86, 0xff, 0xdb, 0x3f, 0x93, 0x3b, 0x1e, 0x1d, 0x51, + 0x7a, 0xdf, 0x0e, 0xa4, 0x34, 0xc6, 0xa5, 0x94, 0x8f, 0x29, 0x25, 0xb6, 0x62, 0x0c, 0x2d, 0xa1, + 0x55, 0x48, 0x06, 0xc8, 0xe6, 0xc7, 0x39, 0x23, 0x2c, 0xa1, 0x74, 0x08, 0x34, 0xd6, 0xa6, 0x7c, + 0xb4, 0x21, 0xf9, 0xfd, 0x26, 0x01, 0xeb, 0xfd, 0x51, 0xbf, 0x30, 0xfd, 0x1d, 0xd6, 0x53, 0x62, + 0x38, 0x3d, 0xdd, 0x85, 0xb9, 0x2e, 0x9d, 0x98, 0x76, 0x50, 0x71, 0x4c, 0x4e, 0x4b, 0xad, 0x66, + 0xf6, 0x6c, 0x0f, 0x39, 0xf9, 0x66, 0x58, 0x43, 0x1d, 0x6a, 0x2a, 0xd9, 0xbc, 0xf8, 0x46, 0x60, + 0x0f, 0xff, 0x51, 0x81, 0x95, 0x81, 0xfa, 0xeb, 0xa8, 0x97, 0xa1, 0x04, 0x78, 0x03, 0x52, 0x21, + 0x74, 0x42, 0x86, 0x1d, 0x2c, 0x85, 0x61, 0x1d, 0xa7, 0x7d, 0x01, 0x8d, 0xc5, 0x02, 0xf4, 0x7d, + 0x05, 0x70, 0x54, 0xd9, 0x4b, 0x05, 0xea, 0xbe, 0xd6, 0x4d, 0xbb, 0x5b, 0x80, 0x57, 0x07, 0x09, + 0xf0, 0x54, 0x28, 0x71, 0x5f, 0x7f, 0x33, 0x32, 0x73, 0x29, 0xbf, 0x13, 0x30, 0xfb, 0x75, 0xcf, + 0x62, 0x64, 0x06, 0x17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xe6, 0xda, 0xf0, 0x8e, 0x12, 0xcd, 0x5b, + 0x1c, 0xcd, 0x75, 0x74, 0x2d, 0xce, 0x8e, 0x88, 0x38, 0x7a, 0xcd, 0x30, 0xeb, 0x3a, 0x6f, 0x96, + 0xef, 0x13, 0x82, 0xfe, 0xa5, 0x40, 0x76, 0x40, 0x57, 0x87, 0x36, 0x62, 0x5d, 0x86, 0xd1, 0xad, + 0x76, 0x66, 0xf3, 0x68, 0x41, 0x24, 0xe0, 0x37, 0x38, 0xe0, 0xab, 0xe8, 0xca, 0xb0, 0xd7, 0x2a, + 0xe5, 0x81, 0xef, 0x3d, 0x79, 0xb6, 0xa8, 0x3c, 0x7d, 0xb6, 0xa8, 0xfc, 0xfd, 0xd9, 0xa2, 0xf2, + 0xf1, 0xf3, 0xc5, 0x63, 0x4f, 0x9f, 0x2f, 0x1e, 0xfb, 0xcb, 0xf3, 0xc5, 0x63, 0x1f, 0x6e, 0x74, + 0x34, 0xc5, 0x32, 0x74, 0xae, 0x6a, 0xec, 0xba, 0xc1, 0x3a, 0xfb, 0x6b, 0x97, 0xf2, 0x07, 0x5d, + 0xab, 0xed, 0x55, 0x4d, 0x62, 0x53, 0xf1, 0x9f, 0xd5, 0xe2, 0x73, 0xe8, 0x24, 0xff, 0x67, 0xfd, + 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x12, 0xa7, 0x1d, 0x71, 0xc8, 0x1f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1633,6 +1732,8 @@ type QueryClient interface { Pool(ctx context.Context, in *PoolRequest, opts ...grpc.CallOption) (*PoolResponse, error) // AllPools returns all pools on the Osmosis chain sorted by IDs. AllPools(ctx context.Context, in *AllPoolsRequest, opts ...grpc.CallOption) (*AllPoolsResponse, error) + // ListPoolsByDenom return all pools by denom + ListPoolsByDenom(ctx context.Context, in *ListPoolsByDenomRequest, opts ...grpc.CallOption) (*ListPoolsByDenomResponse, error) // SpotPrice defines a gRPC query handler that returns the spot price given // a base denomination and a quote denomination. SpotPrice(ctx context.Context, in *SpotPriceRequest, opts ...grpc.CallOption) (*SpotPriceResponse, error) @@ -1748,6 +1849,15 @@ func (c *queryClient) AllPools(ctx context.Context, in *AllPoolsRequest, opts .. return out, nil } +func (c *queryClient) ListPoolsByDenom(ctx context.Context, in *ListPoolsByDenomRequest, opts ...grpc.CallOption) (*ListPoolsByDenomResponse, error) { + out := new(ListPoolsByDenomResponse) + err := c.cc.Invoke(ctx, "/osmosis.poolmanager.v1beta1.Query/ListPoolsByDenom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) SpotPrice(ctx context.Context, in *SpotPriceRequest, opts ...grpc.CallOption) (*SpotPriceResponse, error) { out := new(SpotPriceResponse) err := c.cc.Invoke(ctx, "/osmosis.poolmanager.v1beta1.Query/SpotPrice", in, out, opts...) @@ -1830,6 +1940,8 @@ type QueryServer interface { Pool(context.Context, *PoolRequest) (*PoolResponse, error) // AllPools returns all pools on the Osmosis chain sorted by IDs. AllPools(context.Context, *AllPoolsRequest) (*AllPoolsResponse, error) + // ListPoolsByDenom return all pools by denom + ListPoolsByDenom(context.Context, *ListPoolsByDenomRequest) (*ListPoolsByDenomResponse, error) // SpotPrice defines a gRPC query handler that returns the spot price given // a base denomination and a quote denomination. SpotPrice(context.Context, *SpotPriceRequest) (*SpotPriceResponse, error) @@ -1881,6 +1993,9 @@ func (*UnimplementedQueryServer) Pool(ctx context.Context, req *PoolRequest) (*P func (*UnimplementedQueryServer) AllPools(ctx context.Context, req *AllPoolsRequest) (*AllPoolsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AllPools not implemented") } +func (*UnimplementedQueryServer) ListPoolsByDenom(ctx context.Context, req *ListPoolsByDenomRequest) (*ListPoolsByDenomResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPoolsByDenom not implemented") +} func (*UnimplementedQueryServer) SpotPrice(ctx context.Context, req *SpotPriceRequest) (*SpotPriceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SpotPrice not implemented") } @@ -2084,6 +2199,24 @@ func _Query_AllPools_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } +func _Query_ListPoolsByDenom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPoolsByDenomRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ListPoolsByDenom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.poolmanager.v1beta1.Query/ListPoolsByDenom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ListPoolsByDenom(ctx, req.(*ListPoolsByDenomRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_SpotPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SpotPriceRequest) if err := dec(in); err != nil { @@ -2236,6 +2369,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "AllPools", Handler: _Query_AllPools_Handler, }, + { + MethodName: "ListPoolsByDenom", + Handler: _Query_ListPoolsByDenom_Handler, + }, { MethodName: "SpotPrice", Handler: _Query_SpotPrice_Handler, @@ -2867,6 +3004,73 @@ func (m *AllPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ListPoolsByDenomRequest) 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 *ListPoolsByDenomRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListPoolsByDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ListPoolsByDenomResponse) 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 *ListPoolsByDenomResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListPoolsByDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Pools) > 0 { + for iNdEx := len(m.Pools) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pools[iNdEx].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 *SpotPriceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3572,6 +3776,34 @@ func (m *AllPoolsResponse) Size() (n int) { return n } +func (m *ListPoolsByDenomRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *ListPoolsByDenomResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Pools) > 0 { + for _, e := range m.Pools { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + func (m *SpotPriceRequest) Size() (n int) { if m == nil { return 0 @@ -5415,6 +5647,172 @@ func (m *AllPoolsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *ListPoolsByDenomRequest) 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: ListPoolsByDenomRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListPoolsByDenomRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", 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.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *ListPoolsByDenomResponse) 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: ListPoolsByDenomResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListPoolsByDenomResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pools", 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 + } + m.Pools = append(m.Pools, &types1.Any{}) + if err := m.Pools[len(m.Pools)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *SpotPriceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/poolmanager/client/queryproto/query.pb.gw.go b/x/poolmanager/client/queryproto/query.pb.gw.go index a22f9280715..5053847b8d3 100644 --- a/x/poolmanager/client/queryproto/query.pb.gw.go +++ b/x/poolmanager/client/queryproto/query.pb.gw.go @@ -573,6 +573,42 @@ func local_request_Query_AllPools_0(ctx context.Context, marshaler runtime.Marsh } +var ( + filter_Query_ListPoolsByDenom_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_ListPoolsByDenom_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListPoolsByDenomRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListPoolsByDenom_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListPoolsByDenom(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ListPoolsByDenom_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListPoolsByDenomRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListPoolsByDenom_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListPoolsByDenom(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Query_SpotPrice_0 = &utilities.DoubleArray{Encoding: map[string]int{"pool_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -1115,6 +1151,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_ListPoolsByDenom_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_ListPoolsByDenom_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_ListPoolsByDenom_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_SpotPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1494,6 +1553,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_ListPoolsByDenom_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_ListPoolsByDenom_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_ListPoolsByDenom_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_SpotPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1638,6 +1717,8 @@ var ( pattern_Query_AllPools_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "poolmanager", "v1beta1", "all-pools"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ListPoolsByDenom_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "poolmanager", "v1beta1", "list-pools-by-denom"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_SpotPrice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"osmosis", "poolmanager", "pools", "pool_id", "prices"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_TotalPoolLiquidity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"osmosis", "poolmanager", "v1beta1", "pools", "pool_id", "total_pool_liquidity"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1672,6 +1753,8 @@ var ( forward_Query_AllPools_0 = runtime.ForwardResponseMessage + forward_Query_ListPoolsByDenom_0 = runtime.ForwardResponseMessage + forward_Query_SpotPrice_0 = runtime.ForwardResponseMessage forward_Query_TotalPoolLiquidity_0 = runtime.ForwardResponseMessage diff --git a/x/poolmanager/router.go b/x/poolmanager/router.go index e13eb8b049e..4da50c598bc 100644 --- a/x/poolmanager/router.go +++ b/x/poolmanager/router.go @@ -548,6 +548,38 @@ func (k Keeper) AllPools( return sortedPools, nil } +// ListPoolsByDenom returns all pools by denom sorted by their ids +// from every pool module registered in the +// pool manager keeper. +func (k Keeper) ListPoolsByDenom( + ctx sdk.Context, + denom string, +) ([]types.PoolI, error) { + less := func(i, j types.PoolI) bool { + return i.GetId() < j.GetId() + } + var sortedPools []types.PoolI + for _, poolModule := range k.poolModules { + currentModulePools, err := poolModule.GetPools(ctx) + if err != nil { + return nil, err + } + + var poolsByDenom []types.PoolI + for _, pool := range currentModulePools { + coins, err := k.GetTotalPoolLiquidity(ctx, pool.GetId()) + if err != nil { + return nil, err + } + if coins.AmountOf(denom).GT(osmomath.ZeroInt()) { + poolsByDenom = append(poolsByDenom, pool) + } + } + sortedPools = osmoutils.MergeSlices(sortedPools, poolsByDenom, less) + } + return sortedPools, nil +} + // createMultihopExpectedSwapOuts defines the output denom and output amount for the last pool in // the routeStep of pools the caller is intending to hop through in a fixed-output multihop tx. It estimates the input // amount for this last pool and then chains that input as the output of the previous pool in the routeStep, repeating diff --git a/x/poolmanager/router_test.go b/x/poolmanager/router_test.go index 8d89dcd1a03..064ccc80573 100644 --- a/x/poolmanager/router_test.go +++ b/x/poolmanager/router_test.go @@ -3785,3 +3785,82 @@ func (s *KeeperTestSuite) testSwapExactAmpountInVolumeTracked(noTakerFeeVariant totalVolume = s.App.PoolManagerKeeper.GetTotalVolumeForPool(s.Ctx, concentratedPool.GetId()) s.Require().Equal(tokenIn.String(), totalVolume.String()) } + +func (suite *KeeperTestSuite) TestListPoolsByDenom() { + suite.Setup() + + tests := map[string]struct { + denom string + poolCoins []sdk.Coins + expectedNumPools int + expectedError bool + poolType []types.PoolType + }{ + "Single pool, pool contain denom": { + poolType: []types.PoolType{types.Balancer}, + poolCoins: []sdk.Coins{ + sdk.NewCoins(sdk.NewCoin(BAR, defaultInitPoolAmount), sdk.NewCoin(UOSMO, defaultInitPoolAmount)), // pool 1 bar-uosmo + }, + denom: BAR, + expectedNumPools: 1, + }, + "Single pool, pool does not contain denom": { + poolType: []types.PoolType{types.Balancer}, + poolCoins: []sdk.Coins{ + sdk.NewCoins(sdk.NewCoin(BAR, defaultInitPoolAmount), sdk.NewCoin(UOSMO, defaultInitPoolAmount)), // pool 1 bar-uosmo + }, + denom: FOO, + expectedNumPools: 0, + }, + "Two pools, pools contains denom": { + poolType: []types.PoolType{types.Balancer, types.Balancer}, + poolCoins: []sdk.Coins{ + sdk.NewCoins(sdk.NewCoin(BAR, defaultInitPoolAmount), sdk.NewCoin(UOSMO, defaultInitPoolAmount)), // pool 1 bar-uosmo + sdk.NewCoins(sdk.NewCoin(BAR, defaultInitPoolAmount), sdk.NewCoin(FOO, defaultInitPoolAmount)), // pool 2. baz-foo + }, + denom: BAR, + expectedNumPools: 2, + }, + "Two pools, pools does not contains denom": { + poolType: []types.PoolType{types.Balancer, types.Concentrated}, + poolCoins: []sdk.Coins{ + sdk.NewCoins(sdk.NewCoin(BAR, defaultInitPoolAmount), sdk.NewCoin(UOSMO, defaultInitPoolAmount)), // pool 1 bar-uosmo + sdk.NewCoins(sdk.NewCoin(BAZ, defaultInitPoolAmount), sdk.NewCoin(UOSMO, defaultInitPoolAmount)), // pool 2. baz-foo + }, + denom: FOO, + expectedNumPools: 0, + }, + "Many pools": { + poolType: []types.PoolType{types.Concentrated, types.Balancer, types.Concentrated, types.Balancer}, + poolCoins: []sdk.Coins{ + sdk.NewCoins(sdk.NewCoin(BAR, defaultInitPoolAmount), sdk.NewCoin(UOSMO, defaultInitPoolAmount)), // pool 1 bar-uosmo + sdk.NewCoins(sdk.NewCoin(BAZ, defaultInitPoolAmount), sdk.NewCoin(FOO, defaultInitPoolAmount)), // pool 2. baz-foo + sdk.NewCoins(sdk.NewCoin(BAR, defaultInitPoolAmount), sdk.NewCoin(BAZ, defaultInitPoolAmount)), // pool 3. bar-baz + sdk.NewCoins(sdk.NewCoin(BAZ, defaultInitPoolAmount), sdk.NewCoin(UOSMO, defaultInitPoolAmount)), // pool 4. baz-uosmo + }, + denom: BAR, + expectedNumPools: 2, + }, + } + + for name, tc := range tests { + suite.Run(name, func() { + suite.SetupTest() + ctx := suite.Ctx + poolManagerKeeper := suite.App.PoolManagerKeeper + + for i := range tc.poolType { + suite.FundAcc(suite.TestAccs[0], tc.poolCoins[i]) + suite.CreatePoolFromTypeWithCoins(tc.poolType[i], tc.poolCoins[i]) + } + + poolsResult, err := poolManagerKeeper.ListPoolsByDenom(ctx, tc.denom) + if tc.expectedError { + suite.Require().Error(err) + } else { + suite.Require().NoError(err) + suite.Require().Equal(tc.expectedNumPools, len(poolsResult)) + } + }) + } +}