diff --git a/proto/umee/leverage/v1/query.proto b/proto/umee/leverage/v1/query.proto index 22ec0ec772..8b1a5e48c5 100644 --- a/proto/umee/leverage/v1/query.proto +++ b/proto/umee/leverage/v1/query.proto @@ -82,6 +82,12 @@ service Query { returns (QueryInspectResponse) { option (google.api.http).get = "/umee/leverage/v1/inspect"; } + + // InspectAccount runs the inspect query on a single address + rpc InspectAccount(QueryInspectAccount) + returns (QueryInspectAccountResponse) { + option (google.api.http).get = "/umee/leverage/v1/inspect-account"; + } } // QueryParams defines the request structure for the Params gRPC service @@ -366,6 +372,11 @@ message QueryInspect { double ltv = 5; } +// QueryInspectAccount defines the request structure for the InspectAccount gRPC service handler. +message QueryInspectAccount { + string address = 1; +} + // QueryInspectResponse defines the response structure for the Inspect gRPC service handler. message QueryInspectResponse { repeated InspectAccount borrowers = 1 [ @@ -373,6 +384,13 @@ message QueryInspectResponse { ]; } +// QueryInspectAccountResponse defines the response structure for the InspectAccount gRPC service handler. +message QueryInspectAccountResponse { + InspectAccount borrower = 1 [ + (gogoproto.nullable) = false + ]; +} + // InspectAccount contains risk and balance info for a single account for the inspector query. message InspectAccount { // Address of a borrower @@ -381,6 +399,8 @@ message InspectAccount { RiskInfo analysis = 2; // Collateral and borrowed tokens, denoted in human-readable symbol denom instead of ibc denom. DecBalances position = 3; + // Info is a string which can be used to report additional information of any type + string info = 4; } // RiskInfo defines a borrower's account health without requiring sdk.Dec formatting. diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index dcd714d561..ad2dd6f274 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -370,6 +370,11 @@ paths: description: >- Borrowed contains all tokens the account has borrowed, including interest owed. + info: + type: string + title: >- + Info is a string which can be used to report additional + information of any type description: >- InspectAccount contains risk and balance info for a single account for the inspector query. @@ -443,6 +448,129 @@ paths: format: double tags: - Query + /umee/leverage/v1/inspect-account: + get: + summary: InspectAccount runs the inspect query on a single address + operationId: InspectAccount + responses: + '200': + description: A successful response. + schema: + type: object + properties: + borrower: + type: object + properties: + address: + type: string + title: Address of a borrower + analysis: + description: >- + USD totals of borrower's collateral, debt, and liquidation + threshold. + type: object + properties: + Borrowed: + type: number + format: double + description: Borrowed is account's borrowed value in USD. + Liquidation: + type: number + format: double + description: Liquidation is account's liquidation threshold in USD. + Value: + type: number + format: double + description: Value is account's collateral value in USD. + position: + description: >- + Collateral and borrowed tokens, denoted in human-readable + symbol denom instead of ibc denom. + type: object + properties: + collateral: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a + decimal amount. + + + NOTE: The amount field is an Dec which implements + the custom method + + signatures required by gogoproto. + description: >- + Collateral contains all uTokens the account has + collateralized. It has been converted from uTokens to + tokens. + borrowed: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a + decimal amount. + + + NOTE: The amount field is an Dec which implements + the custom method + + signatures required by gogoproto. + description: >- + Borrowed contains all tokens the account has borrowed, + including interest owed. + info: + type: string + title: >- + Info is a string which can be used to report additional + information of any type + description: >- + InspectAccount contains risk and balance info for a single + account for the inspector query. + description: >- + QueryInspectAccountResponse defines the response structure for the + InspectAccount gRPC service handler. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + parameters: + - name: address + in: query + required: false + type: string + tags: + - Query /umee/leverage/v1/liquidation_targets: get: summary: >- @@ -4404,6 +4532,11 @@ definitions: description: >- Borrowed contains all tokens the account has borrowed, including interest owed. + info: + type: string + title: >- + Info is a string which can be used to report additional information of + any type description: >- InspectAccount contains risk and balance info for a single account for the inspector query. @@ -4624,6 +4757,92 @@ definitions: description: >- QueryBadDebtsResponse defines the response structure for the BedDebts gRPC service handler. + umee.leverage.v1.QueryInspectAccountResponse: + type: object + properties: + borrower: + type: object + properties: + address: + type: string + title: Address of a borrower + analysis: + description: >- + USD totals of borrower's collateral, debt, and liquidation + threshold. + type: object + properties: + Borrowed: + type: number + format: double + description: Borrowed is account's borrowed value in USD. + Liquidation: + type: number + format: double + description: Liquidation is account's liquidation threshold in USD. + Value: + type: number + format: double + description: Value is account's collateral value in USD. + position: + description: >- + Collateral and borrowed tokens, denoted in human-readable symbol + denom instead of ibc denom. + type: object + properties: + collateral: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a decimal + amount. + + + NOTE: The amount field is an Dec which implements the custom + method + + signatures required by gogoproto. + description: >- + Collateral contains all uTokens the account has + collateralized. It has been converted from uTokens to tokens. + borrowed: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a decimal + amount. + + + NOTE: The amount field is an Dec which implements the custom + method + + signatures required by gogoproto. + description: >- + Borrowed contains all tokens the account has borrowed, + including interest owed. + info: + type: string + title: >- + Info is a string which can be used to report additional + information of any type + description: >- + InspectAccount contains risk and balance info for a single account for + the inspector query. + description: >- + QueryInspectAccountResponse defines the response structure for the + InspectAccount gRPC service handler. umee.leverage.v1.QueryInspectResponse: type: object properties: @@ -4702,6 +4921,11 @@ definitions: description: >- Borrowed contains all tokens the account has borrowed, including interest owed. + info: + type: string + title: >- + Info is a string which can be used to report additional + information of any type description: >- InspectAccount contains risk and balance info for a single account for the inspector query. diff --git a/x/leverage/client/cli/query.go b/x/leverage/client/cli/query.go index 5f2b42a59a..b58c9d1e49 100644 --- a/x/leverage/client/cli/query.go +++ b/x/leverage/client/cli/query.go @@ -39,6 +39,7 @@ func GetQueryCmd() *cobra.Command { QueryMaxWithdraw(), QueryMaxBorrow(), QueryInspect(), + QueryInspectAccount(), ) return cmd @@ -366,3 +367,29 @@ func QueryInspect() *cobra.Command { return cmd } + +// QueryInspectAccount creates a Cobra command to inspect a single account. +func QueryInspectAccount() *cobra.Command { + cmd := &cobra.Command{ + Use: "inspect-account [addr]", + Args: cobra.ExactArgs(1), + Short: "Inspect a single account", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + req := &types.QueryInspectAccount{ + Address: args[0], + } + resp, err := queryClient.InspectAccount(cmd.Context(), req) + return cli.PrintOrErr(resp, err, clientCtx) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} \ No newline at end of file diff --git a/x/leverage/keeper/inspector.go b/x/leverage/keeper/inspector.go index 24e0ebfa94..cec34e0864 100644 --- a/x/leverage/keeper/inspector.go +++ b/x/leverage/keeper/inspector.go @@ -88,6 +88,7 @@ func (q Querier) Inspect( Collateral: symbolDecCoins(collateral, exchangeRates), Borrowed: symbolDecCoins(borrowed, exchangeRates), }, + Info: position.String(), } ok := account.Analysis.Borrowed > req.Borrowed ok = ok && account.Analysis.Value > req.Collateral @@ -121,6 +122,65 @@ func (q Querier) Inspect( return &types.QueryInspectResponse{Borrowers: sortedBorrowers}, nil } +// Separated from grpc_query.go +func (q Querier) InspectAccount( + goCtx context.Context, + req *types.QueryInspectAccount, +) (*types.QueryInspectAccountResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + + k, ctx := q.Keeper, sdk.UnwrapSDKContext(goCtx) + tokens := k.GetAllRegisteredTokens(ctx) + + exchangeRates := map[string]tokenExchangeRate{} + for _, t := range tokens { + exchangeRates[t.BaseDenom] = tokenExchangeRate{ + symbol: t.SymbolDenom, + exponent: t.Exponent, + exchangeRate: k.DeriveExchangeRate(ctx, t.BaseDenom), + } + } + + addr, err := sdk.AccAddressFromBech32(req.Address) + if err != nil { + return nil, err + } + + position, err := k.GetAccountPosition(ctx, addr, true) + if err != nil { + return nil, err + } + borrowedValue := position.BorrowedValue() + collateralValue := position.CollateralValue() + liquidationThreshold := position.Limit() + + borrowPosition, err := k.GetAccountPosition(ctx, addr, false) + if err != nil { + return nil, err + } + + borrowed := k.GetBorrowerBorrows(ctx, addr) + collateral := k.GetBorrowerCollateral(ctx, addr) + + account := types.InspectAccount{ + Address: addr.String(), + Analysis: &types.RiskInfo{ + Borrowed: neat(borrowedValue), + Liquidation: neat(liquidationThreshold), + Value: neat(collateralValue), + }, + Position: &types.DecBalances{ + Collateral: symbolDecCoins(collateral, exchangeRates), + Borrowed: symbolDecCoins(borrowed, exchangeRates), + }, + Info: position.String() + "\n\n" + borrowPosition.String(), + } + + return &types.QueryInspectAccountResponse{Borrower: account}, nil +} + // symbolDecCoins converts an sdk.Coins containing base tokens or uTokens into an sdk.DecCoins containing symbol denom // base tokens. for example, 1000u/uumee becomes 0.0015UMEE at an exponent of 6 and uToken exchange rate of 1.5 func symbolDecCoins( @@ -171,4 +231,4 @@ func neat(num sdk.Dec) float64 { // Truncate the float at a certain precision (can be negative) x := math.Pow(10, float64(precision)) return float64(int(n*x)) / x -} +} \ No newline at end of file diff --git a/x/leverage/types/query.pb.go b/x/leverage/types/query.pb.go index 17a29ded44..a056270796 100644 --- a/x/leverage/types/query.pb.go +++ b/x/leverage/types/query.pb.go @@ -920,6 +920,44 @@ func (m *QueryInspect) XXX_DiscardUnknown() { var xxx_messageInfo_QueryInspect proto.InternalMessageInfo +// QueryInspectAccount defines the request structure for the InspectAccount gRPC service handler. +type QueryInspectAccount struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryInspectAccount) Reset() { *m = QueryInspectAccount{} } +func (m *QueryInspectAccount) String() string { return proto.CompactTextString(m) } +func (*QueryInspectAccount) ProtoMessage() {} +func (*QueryInspectAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_1e8137dcabb0ccc7, []int{21} +} +func (m *QueryInspectAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInspectAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInspectAccount.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 *QueryInspectAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInspectAccount.Merge(m, src) +} +func (m *QueryInspectAccount) XXX_Size() int { + return m.Size() +} +func (m *QueryInspectAccount) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInspectAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInspectAccount proto.InternalMessageInfo + // QueryInspectResponse defines the response structure for the Inspect gRPC service handler. type QueryInspectResponse struct { Borrowers []InspectAccount `protobuf:"bytes,1,rep,name=borrowers,proto3" json:"borrowers"` @@ -929,7 +967,7 @@ func (m *QueryInspectResponse) Reset() { *m = QueryInspectResponse{} } func (m *QueryInspectResponse) String() string { return proto.CompactTextString(m) } func (*QueryInspectResponse) ProtoMessage() {} func (*QueryInspectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1e8137dcabb0ccc7, []int{21} + return fileDescriptor_1e8137dcabb0ccc7, []int{22} } func (m *QueryInspectResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -958,6 +996,44 @@ func (m *QueryInspectResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryInspectResponse proto.InternalMessageInfo +// QueryInspectAccountResponse defines the response structure for the InspectAccount gRPC service handler. +type QueryInspectAccountResponse struct { + Borrower InspectAccount `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower"` +} + +func (m *QueryInspectAccountResponse) Reset() { *m = QueryInspectAccountResponse{} } +func (m *QueryInspectAccountResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInspectAccountResponse) ProtoMessage() {} +func (*QueryInspectAccountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1e8137dcabb0ccc7, []int{23} +} +func (m *QueryInspectAccountResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInspectAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInspectAccountResponse.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 *QueryInspectAccountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInspectAccountResponse.Merge(m, src) +} +func (m *QueryInspectAccountResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryInspectAccountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInspectAccountResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInspectAccountResponse proto.InternalMessageInfo + // InspectAccount contains risk and balance info for a single account for the inspector query. type InspectAccount struct { // Address of a borrower @@ -966,13 +1042,15 @@ type InspectAccount struct { Analysis *RiskInfo `protobuf:"bytes,2,opt,name=analysis,proto3" json:"analysis,omitempty"` // Collateral and borrowed tokens, denoted in human-readable symbol denom instead of ibc denom. Position *DecBalances `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"` + // Info is a string which can be used to report additional information of any type + Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` } func (m *InspectAccount) Reset() { *m = InspectAccount{} } func (m *InspectAccount) String() string { return proto.CompactTextString(m) } func (*InspectAccount) ProtoMessage() {} func (*InspectAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_1e8137dcabb0ccc7, []int{22} + return fileDescriptor_1e8137dcabb0ccc7, []int{24} } func (m *InspectAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1015,7 +1093,7 @@ func (m *RiskInfo) Reset() { *m = RiskInfo{} } func (m *RiskInfo) String() string { return proto.CompactTextString(m) } func (*RiskInfo) ProtoMessage() {} func (*RiskInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1e8137dcabb0ccc7, []int{23} + return fileDescriptor_1e8137dcabb0ccc7, []int{25} } func (m *RiskInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1056,7 +1134,7 @@ func (m *DecBalances) Reset() { *m = DecBalances{} } func (m *DecBalances) String() string { return proto.CompactTextString(m) } func (*DecBalances) ProtoMessage() {} func (*DecBalances) Descriptor() ([]byte, []int) { - return fileDescriptor_1e8137dcabb0ccc7, []int{24} + return fileDescriptor_1e8137dcabb0ccc7, []int{26} } func (m *DecBalances) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1107,7 +1185,9 @@ func init() { proto.RegisterType((*QueryMaxBorrow)(nil), "umee.leverage.v1.QueryMaxBorrow") proto.RegisterType((*QueryMaxBorrowResponse)(nil), "umee.leverage.v1.QueryMaxBorrowResponse") proto.RegisterType((*QueryInspect)(nil), "umee.leverage.v1.QueryInspect") + proto.RegisterType((*QueryInspectAccount)(nil), "umee.leverage.v1.QueryInspectAccount") proto.RegisterType((*QueryInspectResponse)(nil), "umee.leverage.v1.QueryInspectResponse") + proto.RegisterType((*QueryInspectAccountResponse)(nil), "umee.leverage.v1.QueryInspectAccountResponse") proto.RegisterType((*InspectAccount)(nil), "umee.leverage.v1.InspectAccount") proto.RegisterType((*RiskInfo)(nil), "umee.leverage.v1.RiskInfo") proto.RegisterType((*DecBalances)(nil), "umee.leverage.v1.DecBalances") @@ -1116,118 +1196,121 @@ func init() { func init() { proto.RegisterFile("umee/leverage/v1/query.proto", fileDescriptor_1e8137dcabb0ccc7) } var fileDescriptor_1e8137dcabb0ccc7 = []byte{ - // 1765 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xcf, 0x6f, 0xdb, 0xc8, - 0x15, 0xc7, 0x4d, 0x3b, 0xfe, 0xf5, 0x64, 0xd9, 0xce, 0xc4, 0x71, 0x18, 0xc5, 0x96, 0x14, 0x26, - 0x76, 0x9c, 0xa4, 0x96, 0x62, 0x07, 0x30, 0x50, 0xb4, 0x68, 0x6b, 0xc5, 0x2d, 0x9a, 0xc2, 0x09, - 0x1c, 0xe6, 0x47, 0x91, 0x1f, 0xad, 0x30, 0x22, 0xa7, 0x32, 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0xfc, - 0x2a, 0x3b, 0x74, 0xf8, 0x2e, 0xab, 0xbd, 0x7d, 0x97, 0xd5, 0xbe, 0x7c, 0x97, 0xd5, 0xfe, 0xf1, - 0x3e, 0x3b, 0xf4, 0xf6, 0x7d, 0x76, 0xe8, 0xd3, 0xf7, 0xd9, 0xa1, 0x17, 0x77, 0x62, 0x87, 0x0a, - 0x43, 0xac, 0x7a, 0x24, 0xdc, 0xf7, 0x83, 0x3d, 0xc1, 0x6b, 0x6e, 0x14, 0x0f, 0xda, 0x50, 0x7e, - 0xc4, 0x54, 0xc6, 0xf8, 0xb7, 0xfa, 0xbb, 0x3f, 0x04, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x52, 0x8d, - 0xcd, 0x72, 0x18, 0x00, 0x00, + // 1821 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x99, 0x4b, 0x6f, 0xdb, 0xca, + 0x15, 0xc7, 0x4d, 0x3b, 0x7e, 0x1d, 0x59, 0xb6, 0x33, 0x71, 0x1c, 0x46, 0xb1, 0x25, 0x85, 0x89, + 0x1d, 0xdf, 0xdc, 0x5a, 0x8a, 0x7d, 0x01, 0x03, 0x45, 0x8b, 0xb6, 0x56, 0xdc, 0xa2, 0x29, 0x7c, + 0x03, 0x87, 0x79, 0x14, 0x79, 0xb4, 0xc2, 0x88, 0x9c, 0xc8, 0x84, 0x29, 0x52, 0xe1, 0x50, 0xb2, + 0x55, 0x20, 0x9b, 0x02, 0xdd, 0xb5, 0x40, 0x83, 0xa2, 0x8b, 0x2e, 0xbb, 0xed, 0xae, 0xdf, 0xc2, + 0xcb, 0x00, 0xdd, 0x14, 0x05, 0xea, 0xb6, 0x49, 0xd1, 0x45, 0x36, 0xfd, 0x02, 0x5d, 0x14, 0xf3, + 0xe0, 0x88, 0x32, 0x45, 0x47, 0x16, 0xae, 0x57, 0x16, 0x39, 0xe7, 0xfc, 0xce, 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5d, 0xee, 0x9b, 0xca, 0xc3, 0xe3, 0x7f, 0xe5, 0x47, 0x8e, 0x3f, 0xe4, 0xb5, 0xf7, 0x1f, + 0xf2, 0xda, 0x3f, 0x3f, 0xe4, 0xb5, 0xdf, 0x7e, 0xcc, 0x8f, 0xbc, 0xff, 0x98, 0x1f, 0xf9, 0xeb, + 0xc7, 0xfc, 0xc8, 0x8b, 0x7b, 0xb1, 0x83, 0x8e, 0xa1, 0xd6, 0x3d, 0x12, 0x1e, 0xfa, 0xc1, 0x81, + 0xe0, 0xb6, 0xb7, 0xca, 0x47, 0x5d, 0x38, 0x3f, 0xf6, 0x6a, 0x13, 0xfc, 0xff, 0x1c, 0x5f, 0xfd, + 0x3f, 0x00, 0x00, 0xff, 0xff, 0x66, 0xd1, 0x6c, 0x4d, 0xae, 0x19, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1269,6 +1352,8 @@ type QueryClient interface { // with its address and borrowed/liquidation/collateral USD values, as well as its // actual token positions in human-readable symbol denoms instead of uTokens or ibc denoms. Inspect(ctx context.Context, in *QueryInspect, opts ...grpc.CallOption) (*QueryInspectResponse, error) + // InspectAccount runs the inspect query on a single address + InspectAccount(ctx context.Context, in *QueryInspectAccount, opts ...grpc.CallOption) (*QueryInspectAccountResponse, error) } type queryClient struct { @@ -1378,6 +1463,15 @@ func (c *queryClient) Inspect(ctx context.Context, in *QueryInspect, opts ...grp return out, nil } +func (c *queryClient) InspectAccount(ctx context.Context, in *QueryInspectAccount, opts ...grpc.CallOption) (*QueryInspectAccountResponse, error) { + out := new(QueryInspectAccountResponse) + err := c.cc.Invoke(ctx, "/umee.leverage.v1.Query/InspectAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Params queries the parameters of the x/leverage module. @@ -1407,6 +1501,8 @@ type QueryServer interface { // with its address and borrowed/liquidation/collateral USD values, as well as its // actual token positions in human-readable symbol denoms instead of uTokens or ibc denoms. Inspect(context.Context, *QueryInspect) (*QueryInspectResponse, error) + // InspectAccount runs the inspect query on a single address + InspectAccount(context.Context, *QueryInspectAccount) (*QueryInspectAccountResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1446,6 +1542,9 @@ func (*UnimplementedQueryServer) MaxBorrow(ctx context.Context, req *QueryMaxBor func (*UnimplementedQueryServer) Inspect(ctx context.Context, req *QueryInspect) (*QueryInspectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Inspect not implemented") } +func (*UnimplementedQueryServer) InspectAccount(ctx context.Context, req *QueryInspectAccount) (*QueryInspectAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InspectAccount not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1649,6 +1748,24 @@ func _Query_Inspect_Handler(srv interface{}, ctx context.Context, dec func(inter return interceptor(ctx, in, info, handler) } +func _Query_InspectAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInspectAccount) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InspectAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/umee.leverage.v1.Query/InspectAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InspectAccount(ctx, req.(*QueryInspectAccount)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "umee.leverage.v1.Query", HandlerType: (*QueryServer)(nil), @@ -1697,6 +1814,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Inspect", Handler: _Query_Inspect_Handler, }, + { + MethodName: "InspectAccount", + Handler: _Query_InspectAccount_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "umee/leverage/v1/query.proto", @@ -2679,6 +2800,36 @@ func (m *QueryInspect) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *QueryInspectAccount) 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 *QueryInspectAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInspectAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *QueryInspectResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2716,6 +2867,39 @@ func (m *QueryInspectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *QueryInspectAccountResponse) 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 *QueryInspectAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInspectAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Borrower.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 *InspectAccount) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2736,6 +2920,13 @@ func (m *InspectAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Info) > 0 { + i -= len(m.Info) + copy(dAtA[i:], m.Info) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Info))) + i-- + dAtA[i] = 0x22 + } if m.Position != nil { { size, err := m.Position.MarshalToSizedBuffer(dAtA[:i]) @@ -3237,6 +3428,19 @@ func (m *QueryInspect) Size() (n int) { return n } +func (m *QueryInspectAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func (m *QueryInspectResponse) Size() (n int) { if m == nil { return 0 @@ -3252,6 +3456,17 @@ func (m *QueryInspectResponse) Size() (n int) { return n } +func (m *QueryInspectAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Borrower.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + func (m *InspectAccount) Size() (n int) { if m == nil { return 0 @@ -3270,6 +3485,10 @@ func (m *InspectAccount) Size() (n int) { l = m.Position.Size() n += 1 + l + sovQuery(uint64(l)) } + l = len(m.Info) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -5940,6 +6159,88 @@ func (m *QueryInspect) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryInspectAccount) 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: QueryInspectAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInspectAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", 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.Address = 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 *QueryInspectResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -6024,6 +6325,89 @@ func (m *QueryInspectResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryInspectAccountResponse) 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: QueryInspectAccountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInspectAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Borrower", 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 err := m.Borrower.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 *InspectAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -6157,6 +6541,38 @@ func (m *InspectAccount) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", 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.Info = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/leverage/types/query.pb.gw.go b/x/leverage/types/query.pb.gw.go index fbd8829b8c..4d4d6a5591 100644 --- a/x/leverage/types/query.pb.gw.go +++ b/x/leverage/types/query.pb.gw.go @@ -375,6 +375,42 @@ func local_request_Query_Inspect_0(ctx context.Context, marshaler runtime.Marsha } +var ( + filter_Query_InspectAccount_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_InspectAccount_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInspectAccount + 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_InspectAccount_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.InspectAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InspectAccount_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInspectAccount + 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_InspectAccount_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.InspectAccount(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -634,6 +670,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_InspectAccount_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_InspectAccount_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_InspectAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -895,6 +954,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_InspectAccount_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_InspectAccount_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_InspectAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -920,6 +999,8 @@ var ( pattern_Query_MaxBorrow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"umee", "leverage", "v1", "max_borrow"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Inspect_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"umee", "leverage", "v1", "inspect"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_InspectAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"umee", "leverage", "v1", "inspect-account"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -944,4 +1025,6 @@ var ( forward_Query_MaxBorrow_0 = runtime.ForwardResponseMessage forward_Query_Inspect_0 = runtime.ForwardResponseMessage + + forward_Query_InspectAccount_0 = runtime.ForwardResponseMessage )