diff --git a/x/leverage/keeper/grpc_query.go b/x/leverage/keeper/grpc_query.go index 6e41db0da1..f8a0994126 100644 --- a/x/leverage/keeper/grpc_query.go +++ b/x/leverage/keeper/grpc_query.go @@ -294,7 +294,7 @@ func (q Querier) MaxWithdraw( if req.Denom != "" { // Denom specified - denoms = []string{req.GetDenom()} + denoms = []string{req.Denom} } else { // Denom not specified for _, t := range q.Keeper.GetAllRegisteredTokens(ctx) { @@ -355,7 +355,7 @@ func (q Querier) MaxBorrow( if req.Denom != "" { // Denom specified - denoms = []string{req.GetDenom()} + denoms = []string{req.Denom} } else { // Denom not specified for _, t := range q.Keeper.GetAllRegisteredTokens(ctx) { diff --git a/x/leverage/keeper/grpc_query_test.go b/x/leverage/keeper/grpc_query_test.go index 438e51b03a..ac9de8455a 100644 --- a/x/leverage/keeper/grpc_query_test.go +++ b/x/leverage/keeper/grpc_query_test.go @@ -212,7 +212,7 @@ func (s *IntegrationTestSuite) TestQuerier_MaxBorrow() { resp, err := s.queryClient.MaxBorrow(ctx.Context(), &types.QueryMaxBorrow{ Address: addr.String(), - XDenom: &types.QueryMaxBorrow_Denom{Denom: umeeDenom}, + Denom: umeeDenom, }) require.NoError(err) @@ -237,7 +237,7 @@ func (s *IntegrationTestSuite) TestQuerier_MaxBorrow() { resp, err = s.queryClient.MaxBorrow(ctx.Context(), &types.QueryMaxBorrow{ Address: addr.String(), - XDenom: &types.QueryMaxBorrow_Denom{Denom: umeeDenom}, + Denom: umeeDenom, }) require.NoError(err) diff --git a/x/leverage/types/query.pb.go b/x/leverage/types/query.pb.go index d1d4f5277c..1457b8a844 100644 --- a/x/leverage/types/query.pb.go +++ b/x/leverage/types/query.pb.go @@ -618,9 +618,9 @@ var xxx_messageInfo_QueryBadDebtsResponse proto.InternalMessageInfo // QueryMaxWithdraw defines the request structure for the MaxWithdraw gRPC service handler. type QueryMaxWithdraw struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // Types that are valid to be assigned to XDenom: - // *QueryMaxWithdraw_Denom - XDenom isQueryMaxWithdraw_XDenom `protobuf_oneof:"_denom"` + // denom is the base token denom associated with the uToken to withdraw. + // empty denom will query all registered tokens. + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` } func (m *QueryMaxWithdraw) Reset() { *m = QueryMaxWithdraw{} } @@ -656,39 +656,6 @@ func (m *QueryMaxWithdraw) XXX_DiscardUnknown() { var xxx_messageInfo_QueryMaxWithdraw proto.InternalMessageInfo -type isQueryMaxWithdraw_XDenom interface { - isQueryMaxWithdraw_XDenom() - MarshalTo([]byte) (int, error) - Size() int -} - -type QueryMaxWithdraw_Denom struct { - Denom string `protobuf:"bytes,2,opt,name=denom,proto3,oneof" json:"denom,omitempty"` -} - -func (*QueryMaxWithdraw_Denom) isQueryMaxWithdraw_XDenom() {} - -func (m *QueryMaxWithdraw) GetXDenom() isQueryMaxWithdraw_XDenom { - if m != nil { - return m.XDenom - } - return nil -} - -func (m *QueryMaxWithdraw) GetDenom() string { - if x, ok := m.GetXDenom().(*QueryMaxWithdraw_Denom); ok { - return x.Denom - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*QueryMaxWithdraw) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*QueryMaxWithdraw_Denom)(nil), - } -} - // QueryMaxWithdrawResponse defines the response structure for the MaxWithdraw gRPC service handler. type QueryMaxWithdrawResponse struct { // uTokens is the maximum amount of uTokens that can be withdrawn @@ -733,9 +700,9 @@ var xxx_messageInfo_QueryMaxWithdrawResponse proto.InternalMessageInfo // QueryMaxBorrow defines the request structure for the MaxBorrow gRPC service handler. type QueryMaxBorrow struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // Types that are valid to be assigned to XDenom: - // *QueryMaxBorrow_Denom - XDenom isQueryMaxBorrow_XDenom `protobuf_oneof:"_denom"` + // denom is the base token denom to borrow. + // empty denom will query all registered tokens. + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` } func (m *QueryMaxBorrow) Reset() { *m = QueryMaxBorrow{} } @@ -771,39 +738,6 @@ func (m *QueryMaxBorrow) XXX_DiscardUnknown() { var xxx_messageInfo_QueryMaxBorrow proto.InternalMessageInfo -type isQueryMaxBorrow_XDenom interface { - isQueryMaxBorrow_XDenom() - MarshalTo([]byte) (int, error) - Size() int -} - -type QueryMaxBorrow_Denom struct { - Denom string `protobuf:"bytes,2,opt,name=denom,proto3,oneof" json:"denom,omitempty"` -} - -func (*QueryMaxBorrow_Denom) isQueryMaxBorrow_XDenom() {} - -func (m *QueryMaxBorrow) GetXDenom() isQueryMaxBorrow_XDenom { - if m != nil { - return m.XDenom - } - return nil -} - -func (m *QueryMaxBorrow) GetDenom() string { - if x, ok := m.GetXDenom().(*QueryMaxBorrow_Denom); ok { - return x.Denom - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*QueryMaxBorrow) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*QueryMaxBorrow_Denom)(nil), - } -} - // QueryMaxBorrowResponse defines the response structure for the MaxBorrow gRPC service handler. type QueryMaxBorrowResponse struct { // Tokens is the maximum amount of tokens that can be borrowed @@ -867,96 +801,95 @@ func init() { func init() { proto.RegisterFile("umee/leverage/v1/query.proto", fileDescriptor_1e8137dcabb0ccc7) } var fileDescriptor_1e8137dcabb0ccc7 = []byte{ - // 1417 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0x5d, 0x6f, 0x1b, 0x45, - 0x17, 0xc7, 0xb3, 0x49, 0x9b, 0xc4, 0xc7, 0x71, 0x92, 0xce, 0x93, 0x36, 0x5b, 0x37, 0xb5, 0xdd, - 0x6d, 0xd3, 0xa6, 0x7d, 0x88, 0xb7, 0x69, 0x25, 0x24, 0x04, 0x12, 0xaa, 0x5b, 0x10, 0xa0, 0xb4, - 0x24, 0x6e, 0x0b, 0x6a,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02, 0x85, 0xfd, 0xf7, 0xb5, 0x0b, 0x43, 0xe2, - 0xed, 0xb3, 0x2a, 0xbe, 0x36, 0x8a, 0x95, 0x94, 0xb4, 0x42, 0x25, 0x69, 0xa8, 0x92, 0x96, 0xe4, - 0x52, 0x87, 0x46, 0xc8, 0xa3, 0x7f, 0xa7, 0xc0, 0xdc, 0x60, 0x43, 0x70, 0x71, 0x48, 0xac, 0x01, - 0xbb, 0x62, 0x75, 0x34, 0x3b, 0xa9, 0xea, 0x0a, 0x55, 0x75, 0x01, 0x69, 0x69, 0x55, 0x98, 0xb9, - 0x34, 0x9a, 0x42, 0xc3, 0x37, 0x0a, 0xcc, 0x0e, 0x1c, 0x8b, 0xcb, 0x2f, 0x0f, 0x27, 0x32, 0xb5, - 0x3a, 0x92, 0x99, 0x14, 0x75, 0x99, 0x8a, 0x3a, 0x8f, 0xce, 0x0d, 0x17, 0x25, 0x72, 0xf5, 0x83, - 0x02, 0x28, 0x5d, 0x7d, 0xd1, 0xe5, 0x21, 0x01, 0xd3, 0xa6, 0xc5, 0xb5, 0x91, 0x4d, 0xa5, 0xbe, - 0x55, 0xaa, 0xef, 0x12, 0x5a, 0x4e, 0xeb, 0xdb, 0x77, 0x1c, 0x71, 0x31, 0x3d, 0x98, 0x16, 0x25, - 0x1d, 0x95, 0x87, 0x44, 0x13, 0x06, 0xc5, 0x4b, 0xaf, 0x30, 0x90, 0x22, 0xce, 0x53, 0x11, 0x67, - 0xd1, 0x99, 0xb4, 0x88, 0x26, 0x36, 0x1b, 0x26, 0x0d, 0xf7, 0x85, 0x02, 0xf9, 0x64, 0xe9, 0xd7, - 0x86, 0x6e, 0x59, 0x69, 0x53, 0xbc, 0xf2, 0x6a, 0x1b, 0x29, 0xe2, 0x22, 0x15, 0x51, 0x41, 0xa5, - 0x83, 0x36, 0x75, 0x57, 0x76, 0xe6, 0xe8, 0x09, 0xe4, 0xfa, 0x55, 0xb4, 0x32, 0x3c, 0x00, 0xb3, - 0x28, 0xae, 0xbc, 0xca, 0x42, 0x0a, 0xb8, 0x40, 0x05, 0x94, 0xd0, 0xd2, 0xc1, 0x02, 0x58, 0xb3, - 0x50, 0xbb, 0xb3, 0xfb, 0x47, 0x69, 0x6c, 0xf7, 0x59, 0x49, 0x79, 0xfa, 0xac, 0xa4, 0xfc, 0xfe, - 0xac, 0xa4, 0x7c, 0xfd, 0xbc, 0x34, 0xf6, 0xf4, 0x79, 0x69, 0xec, 0xe7, 0xe7, 0xa5, 0xb1, 0x87, - 0x57, 0x13, 0x95, 0x34, 0xa6, 0xac, 0x7a, 0x24, 0xda, 0xf1, 0x83, 0x6d, 0x86, 0xec, 0x5c, 0xd7, - 0xbb, 0x7d, 0x2e, 0xad, 0xab, 0xcd, 0x49, 0xfa, 0xff, 0xab, 0xeb, 0xff, 0x04, 0x00, 0x00, 0xff, - 0xff, 0x7e, 0x24, 0x8f, 0xdf, 0x86, 0x13, 0x00, 0x00, + // 1399 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xdf, 0x6f, 0xdb, 0x54, + 0x14, 0xc7, 0xeb, 0x76, 0xeb, 0x8f, 0x93, 0xa6, 0xed, 0x2e, 0xdd, 0xea, 0x65, 0x5d, 0x92, 0x79, + 0xeb, 0xd6, 0x0d, 0x1a, 0xaf, 0x9b, 0x84, 0x84, 0x40, 0x82, 0x65, 0x03, 0x09, 0xd4, 0x4d, 0x5d, + 0xb6, 0x81, 0xb6, 0x09, 0x45, 0x37, 0xf6, 0x95, 0x6b, 0xd5, 0x3f, 0x32, 0xdb, 0x49, 0x13, 0xa4, + 0x49, 0x08, 0x89, 0x47, 0x24, 0x10, 0xe2, 0x81, 0x47, 0x5e, 0xf9, 0x4b, 0xfa, 0x38, 0x89, 0x17, + 0x84, 0x44, 0x81, 0x0d, 0xf1, 0xb0, 0x7f, 0x80, 0x57, 0xe4, 0xfb, 0xcb, 0x6e, 0xdc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07, 0xdb, 0x0c, 0xd9, 0xbd, 0xae, 0xf7, 0x12, + 0x2e, 0xad, 0xab, 0xad, 0x49, 0xfa, 0x1f, 0xaa, 0xeb, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x1e, + 0xda, 0xfd, 0x2e, 0x68, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2027,14 +1960,12 @@ func (m *QueryMaxWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.XDenom != nil { - { - size := m.XDenom.Size() - i -= size - if _, err := m.XDenom.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } + 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] = 0x12 } if len(m.Address) > 0 { i -= len(m.Address) @@ -2046,20 +1977,6 @@ func (m *QueryMaxWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryMaxWithdraw_Denom) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryMaxWithdraw_Denom) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x12 - return len(dAtA) - i, nil -} func (m *QueryMaxWithdrawResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2131,14 +2048,12 @@ func (m *QueryMaxBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.XDenom != nil { - { - size := m.XDenom.Size() - i -= size - if _, err := m.XDenom.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } + 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] = 0x12 } if len(m.Address) > 0 { i -= len(m.Address) @@ -2150,20 +2065,6 @@ func (m *QueryMaxBorrow) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryMaxBorrow_Denom) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryMaxBorrow_Denom) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x12 - return len(dAtA) - i, nil -} func (m *QueryMaxBorrowResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2449,22 +2350,13 @@ func (m *QueryMaxWithdraw) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if m.XDenom != nil { - n += m.XDenom.Size() + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryMaxWithdraw_Denom) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Denom) - n += 1 + l + sovQuery(uint64(l)) - return n -} func (m *QueryMaxWithdrawResponse) Size() (n int) { if m == nil { return 0 @@ -2496,22 +2388,13 @@ func (m *QueryMaxBorrow) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if m.XDenom != nil { - n += m.XDenom.Size() + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryMaxBorrow_Denom) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Denom) - n += 1 + l + sovQuery(uint64(l)) - return n -} func (m *QueryMaxBorrowResponse) Size() (n int) { if m == nil { return 0 @@ -4422,7 +4305,7 @@ func (m *QueryMaxWithdraw) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.XDenom = &QueryMaxWithdraw_Denom{string(dAtA[iNdEx:postIndex])} + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4654,7 +4537,7 @@ func (m *QueryMaxBorrow) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.XDenom = &QueryMaxBorrow_Denom{string(dAtA[iNdEx:postIndex])} + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex