From 082e5eb0bcaa9f8dbff78822226a7116cfd19ecb Mon Sep 17 00:00:00 2001 From: TimmyExogenous Date: Tue, 15 Oct 2024 10:59:00 +0800 Subject: [PATCH] add a cli to query the opted info for specified operator and avs --- local_node.sh | 3 + proto/exocore/operator/v1/query.proto | 17 +- x/operator/client/cli/query.go | 46 ++- x/operator/keeper/grpc_query.go | 5 + x/operator/types/query.pb.go | 403 ++++++++++++++++++++------ x/operator/types/query.pb.gw.go | 83 ++++++ 6 files changed, 462 insertions(+), 95 deletions(-) diff --git a/local_node.sh b/local_node.sh index c5d458519..a08d42eef 100755 --- a/local_node.sh +++ b/local_node.sh @@ -87,6 +87,9 @@ if [[ $overwrite == "y" || $overwrite == "Y" ]]; then LOCAL_ADDRESS_HEX=0x$(exocored keys parse "$LOCAL_ADDRESS_EXO" --output json | jq -r .bytes | tr '[:upper:]' '[:lower:]') CONSENSUS_KEY=$(exocored keys consensus-pubkey-to-bytes --keyring-backend "$KEYRING" --home "$HOMEDIR" --output json | jq -r .bytes32) + echo "the local operator address is $LOCAL_ADDRESS_EXO" + echo "the dogfood AVS address is $AVS_ADDRESS" + # Change parameter token denominations to hua jq '.app_state["crisis"]["constant_fee"]["denom"]="hua"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS" jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="hua"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS" diff --git a/proto/exocore/operator/v1/query.proto b/proto/exocore/operator/v1/query.proto index 05740969f..da30a63b5 100644 --- a/proto/exocore/operator/v1/query.proto +++ b/proto/exocore/operator/v1/query.proto @@ -48,7 +48,7 @@ message QueryOperatorUSDValueRequest { // QueryOperatorUSDValueResponse is the response to obtain the USD value for operator. message QueryOperatorUSDValueResponse { // usd_info includes the self and total staking for the operator and AVS - OperatorOptedUSDValue usd_values = 1 + OperatorOptedUSDValue usd_values = 1 [(gogoproto.customname) = "USDValues"]; } @@ -213,6 +213,14 @@ message QueryAllAVSsByOperatorResponse { // avs_list is a list of avs addresses . repeated string avs_list = 1; } + +// QueryOptInfoRequest is the request to obtain the opted information of specified operator +// and AVS +message QueryOptInfoRequest { + // details is the operator and AVS address + OperatorAVSAddressDetails details = 1; +} + // Query defines the gRPC querier service. service Query { // QueryOperatorInfo queries the operator information. @@ -294,4 +302,11 @@ service Query { get: "/exocore/operator/v1/opt/avs_list/{operator}" }; } + + // QueryOptInfo queries specified opted information. + rpc QueryOptInfo(QueryOptInfoRequest) returns (OptedInfo) { + option (google.api.http) = { + get: "/exocore/operator/v1/opt_info" + }; + } } \ No newline at end of file diff --git a/x/operator/client/cli/query.go b/x/operator/client/cli/query.go index d258907bf..745d01498 100644 --- a/x/operator/client/cli/query.go +++ b/x/operator/client/cli/query.go @@ -37,6 +37,7 @@ func GetQueryCmd() *cobra.Command { QueryOperatorSlashInfo(), QueryAllOperatorsWithOptInAVS(), QueryAllAVSsByOperator(), + GetOptInfo(), ) return cmd } @@ -314,10 +315,11 @@ func QueryAVSUSDValue() *cobra.Command { // QueryOperatorSlashInfo queries the slash information for the specified operator and AVS func QueryOperatorSlashInfo() *cobra.Command { cmd := &cobra.Command{ - Use: "QueryOperatorSlashInfo ", - Short: "Get the the slash information for the operator", - Long: "Get the the slash information for the operator", - Args: cobra.ExactArgs(2), + Use: "QueryOperatorSlashInfo ", + Short: "Get the the slash information for the operator", + Long: "Get the the slash information for the operator", + Example: "exocored query operator QueryOperatorSlashInfo exo1c5x7mxphvgavjhu0au9jjqnfqcyspevtyy27mz 0xaa089ba103f765fcea44808bd3d4073523254c57", + Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { _, err := sdk.AccAddressFromBech32(args[0]) if err != nil { @@ -415,3 +417,39 @@ func QueryAllAVSsByOperator() *cobra.Command { flags.AddQueryFlagsToCmd(cmd) return cmd } + +// GetOptInfo queries opt info +func GetOptInfo() *cobra.Command { + cmd := &cobra.Command{ + Use: "GetOptInfo ", + Short: "Get opt info", + Long: "Get opt info of specified operator and AVS", + Example: "exocored query operator GetOptInfo exo1c5x7mxphvgavjhu0au9jjqnfqcyspevtyy27mz 0xaa089ba103f765fcea44808bd3d4073523254c57", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + _, err := sdk.AccAddressFromBech32(args[0]) + if err != nil { + return xerrors.Errorf("invalid operator address,err:%s", err.Error()) + } + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + queryClient := operatortypes.NewQueryClient(clientCtx) + req := &operatortypes.QueryOptInfoRequest{ + Details: &operatortypes.OperatorAVSAddressDetails{ + OperatorAddr: args[0], + AVSAddress: args[1], + }, + } + res, err := queryClient.QueryOptInfo(context.Background(), req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} diff --git a/x/operator/keeper/grpc_query.go b/x/operator/keeper/grpc_query.go index 5e9c7f657..ee3458080 100644 --- a/x/operator/keeper/grpc_query.go +++ b/x/operator/keeper/grpc_query.go @@ -248,3 +248,8 @@ func (k *Keeper) QueryAllAVSsByOperator(goCtx context.Context, req *types.QueryA AvsList: avsList, }, nil } + +func (k *Keeper) QueryOptInfo(goCtx context.Context, req *types.QueryOptInfoRequest) (*types.OptedInfo, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + return k.GetOptedInfo(ctx, req.Details.OperatorAddr, req.Details.AVSAddress) +} diff --git a/x/operator/types/query.pb.go b/x/operator/types/query.pb.go index 1fd10f155..f6bc191af 100644 --- a/x/operator/types/query.pb.go +++ b/x/operator/types/query.pb.go @@ -1327,6 +1327,53 @@ func (m *QueryAllAVSsByOperatorResponse) GetAvsList() []string { return nil } +// QueryOptInfoRequest is the request to obtain the opted information of specified operator +// and AVS +type QueryOptInfoRequest struct { + // details is the operator and AVS address + Details *OperatorAVSAddressDetails `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` +} + +func (m *QueryOptInfoRequest) Reset() { *m = QueryOptInfoRequest{} } +func (m *QueryOptInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryOptInfoRequest) ProtoMessage() {} +func (*QueryOptInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f91e795a3cecbdbf, []int{24} +} +func (m *QueryOptInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryOptInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryOptInfoRequest.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 *QueryOptInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOptInfoRequest.Merge(m, src) +} +func (m *QueryOptInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryOptInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOptInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryOptInfoRequest proto.InternalMessageInfo + +func (m *QueryOptInfoRequest) GetDetails() *OperatorAVSAddressDetails { + if m != nil { + return m.Details + } + return nil +} + func init() { proto.RegisterType((*GetOperatorInfoReq)(nil), "exocore.operator.v1.GetOperatorInfoReq") proto.RegisterType((*QueryAllOperatorsRequest)(nil), "exocore.operator.v1.QueryAllOperatorsRequest") @@ -1352,101 +1399,105 @@ func init() { proto.RegisterType((*QueryAllOperatorsByOptInAVSResponse)(nil), "exocore.operator.v1.QueryAllOperatorsByOptInAVSResponse") proto.RegisterType((*QueryAllAVSsByOperatorRequest)(nil), "exocore.operator.v1.QueryAllAVSsByOperatorRequest") proto.RegisterType((*QueryAllAVSsByOperatorResponse)(nil), "exocore.operator.v1.QueryAllAVSsByOperatorResponse") + proto.RegisterType((*QueryOptInfoRequest)(nil), "exocore.operator.v1.QueryOptInfoRequest") } func init() { proto.RegisterFile("exocore/operator/v1/query.proto", fileDescriptor_f91e795a3cecbdbf) } var fileDescriptor_f91e795a3cecbdbf = []byte{ - // 1422 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0x8f, 0xd2, 0x96, 0xc4, 0x2f, 0x6d, 0x49, 0xb7, 0x29, 0x24, 0x6e, 0xeb, 0xb4, 0x2a, 0xb4, - 0x69, 0x48, 0x24, 0xe2, 0xa4, 0x85, 0x69, 0x28, 0x8c, 0x5d, 0xb7, 0x25, 0x6d, 0x87, 0x04, 0x79, - 0x08, 0x7f, 0x0e, 0x78, 0x14, 0x79, 0xeb, 0x68, 0xaa, 0x6a, 0x5d, 0xed, 0xda, 0xd4, 0x93, 0x09, - 0xc3, 0x70, 0x82, 0xe1, 0xc2, 0xd0, 0x23, 0x03, 0xdf, 0x01, 0x86, 0x81, 0x03, 0x5f, 0xa0, 0x87, - 0x1e, 0x0a, 0x5c, 0x38, 0x05, 0x26, 0xe1, 0x83, 0x30, 0x5a, 0xed, 0xca, 0xb6, 0x2c, 0xf9, 0x4f, - 0xc9, 0x70, 0xb3, 0xa4, 0x7d, 0xfb, 0x7e, 0xbf, 0xdf, 0x7b, 0x6f, 0xdf, 0x5b, 0xc3, 0x34, 0x7e, - 0x48, 0x2c, 0xe2, 0x61, 0x9d, 0x54, 0xb1, 0x67, 0x32, 0xe2, 0xe9, 0xf5, 0x05, 0xfd, 0x41, 0x0d, - 0x7b, 0x0d, 0xad, 0xea, 0x11, 0x46, 0xd0, 0x71, 0xb1, 0x40, 0x93, 0x0b, 0xb4, 0xfa, 0x42, 0x7a, - 0xd6, 0x22, 0xf4, 0x3e, 0xa1, 0xfa, 0x86, 0x49, 0x71, 0xb0, 0x5a, 0xaf, 0x2f, 0x6c, 0x60, 0x66, - 0x2e, 0xe8, 0x55, 0xb3, 0x62, 0xbb, 0x26, 0xb3, 0x89, 0x1b, 0x6c, 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05, - 0xb9, 0x37, 0x38, 0xb9, 0xcb, 0x68, 0xa9, 0xcf, 0x44, 0xe7, 0xc3, 0x4c, 0x98, 0xe9, 0x8f, 0x95, - 0x66, 0x13, 0x0d, 0x8f, 0xf2, 0xf7, 0x6d, 0xb6, 0x29, 0x5b, 0x32, 0x7a, 0xad, 0xbf, 0xe3, 0xbf, - 0xa3, 0xf9, 0xa7, 0x5f, 0x1f, 0xdc, 0x50, 0x50, 0x5a, 0xe2, 0x94, 0x34, 0x34, 0x97, 0x70, 0x5a, - 0x31, 0xbd, 0x6d, 0x38, 0xd0, 0xb7, 0xcc, 0x3a, 0xdd, 0x46, 0xbf, 0xc8, 0x4c, 0xeb, 0x68, 0xe9, - 0xdd, 0x32, 0x2d, 0x69, 0x78, 0xe8, 0x96, 0x69, 0x89, 0x33, 0x43, 0x1f, 0xc8, 0xe5, 0x48, 0xd1, - 0x3c, 0x61, 0xb7, 0xf3, 0x77, 0x1e, 0xef, 0x66, 0x94, 0xa7, 0xbb, 0x19, 0xe5, 0xef, 0xdd, 0x8c, - 0xf2, 0xf5, 0x5e, 0x66, 0xe8, 0xe9, 0x5e, 0x66, 0xe8, 0xcf, 0xbd, 0xcc, 0xd0, 0x47, 0xd9, 0x8a, - 0xcd, 0x36, 0x6b, 0x1b, 0x9a, 0x45, 0xee, 0xeb, 0xd7, 0x83, 0x1d, 0xdf, 0xc1, 0xec, 0x13, 0xe2, - 0xdd, 0x0b, 0x1d, 0x3c, 0x6c, 0xba, 0x60, 0x8d, 0x2a, 0xa6, 0x1b, 0xcf, 0xf1, 0xff, 0x07, 0x17, - 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x74, 0x13, 0xe9, 0x0e, 0x15, 0x00, 0x00, + // 1463 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x5d, 0x73, 0x13, 0xd5, + 0x1b, 0xef, 0x16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0xfc, 0x2d, + 0x87, 0x6d, 0xca, 0x9d, 0x8f, 0x5e, 0xec, 0x6f, 0xfc, 0x77, 0xb0, 0x0b, 0xf5, 0xa5, 0xc1, 0x05, + 0x85, 0x4b, 0x4b, 0xdc, 0x25, 0x1d, 0xcd, 0xc5, 0x4c, 0x2b, 0x66, 0xb4, 0xb1, 0x0f, 0x63, 0xcb, + 0xaa, 0xd1, 0x6d, 0xf4, 0x83, 0xac, 0xb4, 0x0e, 0xce, 0xd0, 0xad, 0xd2, 0xe2, 0xd8, 0x49, 0xb7, + 0x4a, 0x8b, 0x25, 0x25, 0x7d, 0x20, 0x97, 0x9c, 0xa5, 0x39, 0x61, 0xb7, 0xd1, 0x87, 0x70, 0xb8, + 0x95, 0xaf, 0xa0, 0x99, 0x6e, 0x45, 0xde, 0x4a, 0x69, 0xd4, 0x64, 0x0c, 0x7f, 0x60, 0xb8, 0xc8, + 0xc9, 0xc3, 0x39, 0x8e, 0x27, 0x85, 0x4e, 0xc5, 0xe1, 0xe1, 0xbc, 0x21, 0x7b, 0xe7, 0xf1, 0x6e, + 0x52, 0x79, 0xb2, 0x9b, 0x54, 0xfe, 0xdc, 0x4d, 0x2a, 0x9f, 0xef, 0x25, 0x87, 0x9e, 0xec, 0x25, + 0x87, 0x7e, 0xdf, 0x4b, 0x0e, 0xbd, 0x9b, 0x2e, 0x39, 0x6c, 0xb3, 0xba, 0xa1, 0xdb, 0xe4, 0xbe, + 0x71, 0x3d, 0x50, 0xf1, 0x3a, 0x66, 0xef, 0x93, 0xca, 0xbd, 0x86, 0xc6, 0x87, 0x4d, 0x9d, 0xac, + 0x5e, 0xc6, 0x74, 0xe3, 0x7f, 0xfc, 0x1f, 0xd0, 0xc5, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x58, + 0xd4, 0x27, 0xc2, 0xf0, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1485,6 +1536,8 @@ type QueryClient interface { QueryAllOperatorsWithOptInAVS(ctx context.Context, in *QueryAllOperatorsByOptInAVSRequest, opts ...grpc.CallOption) (*QueryAllOperatorsByOptInAVSResponse, error) // QueryAllAVSsByOperator queries avs list. QueryAllAVSsByOperator(ctx context.Context, in *QueryAllAVSsByOperatorRequest, opts ...grpc.CallOption) (*QueryAllAVSsByOperatorResponse, error) + // QueryOptInfo queries specified opted information. + QueryOptInfo(ctx context.Context, in *QueryOptInfoRequest, opts ...grpc.CallOption) (*OptedInfo, error) } type queryClient struct { @@ -1594,6 +1647,15 @@ func (c *queryClient) QueryAllAVSsByOperator(ctx context.Context, in *QueryAllAV return out, nil } +func (c *queryClient) QueryOptInfo(ctx context.Context, in *QueryOptInfoRequest, opts ...grpc.CallOption) (*OptedInfo, error) { + out := new(OptedInfo) + err := c.cc.Invoke(ctx, "/exocore.operator.v1.Query/QueryOptInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // QueryOperatorInfo queries the operator information. @@ -1620,6 +1682,8 @@ type QueryServer interface { QueryAllOperatorsWithOptInAVS(context.Context, *QueryAllOperatorsByOptInAVSRequest) (*QueryAllOperatorsByOptInAVSResponse, error) // QueryAllAVSsByOperator queries avs list. QueryAllAVSsByOperator(context.Context, *QueryAllAVSsByOperatorRequest) (*QueryAllAVSsByOperatorResponse, error) + // QueryOptInfo queries specified opted information. + QueryOptInfo(context.Context, *QueryOptInfoRequest) (*OptedInfo, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1659,6 +1723,9 @@ func (*UnimplementedQueryServer) QueryAllOperatorsWithOptInAVS(ctx context.Conte func (*UnimplementedQueryServer) QueryAllAVSsByOperator(ctx context.Context, req *QueryAllAVSsByOperatorRequest) (*QueryAllAVSsByOperatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryAllAVSsByOperator not implemented") } +func (*UnimplementedQueryServer) QueryOptInfo(ctx context.Context, req *QueryOptInfoRequest) (*OptedInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryOptInfo not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1862,6 +1929,24 @@ func _Query_QueryAllAVSsByOperator_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _Query_QueryOptInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOptInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QueryOptInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/exocore.operator.v1.Query/QueryOptInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryOptInfo(ctx, req.(*QueryOptInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "exocore.operator.v1.Query", HandlerType: (*QueryServer)(nil), @@ -1910,6 +1995,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "QueryAllAVSsByOperator", Handler: _Query_QueryAllAVSsByOperator_Handler, }, + { + MethodName: "QueryOptInfo", + Handler: _Query_QueryOptInfo_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "exocore/operator/v1/query.proto", @@ -2861,6 +2950,41 @@ func (m *QueryAllAVSsByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *QueryOptInfoRequest) 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 *QueryOptInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryOptInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Details != nil { + { + size, err := m.Details.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 encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -3258,6 +3382,19 @@ func (m *QueryAllAVSsByOperatorResponse) Size() (n int) { return n } +func (m *QueryOptInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Details != nil { + l = m.Details.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -5787,6 +5924,92 @@ func (m *QueryAllAVSsByOperatorResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryOptInfoRequest) 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: QueryOptInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOptInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details == nil { + m.Details = &OperatorAVSAddressDetails{} + } + if err := m.Details.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 skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/operator/types/query.pb.gw.go b/x/operator/types/query.pb.gw.go index 25774bec1..96a4a696d 100644 --- a/x/operator/types/query.pb.gw.go +++ b/x/operator/types/query.pb.gw.go @@ -635,6 +635,42 @@ func local_request_Query_QueryAllAVSsByOperator_0(ctx context.Context, marshaler } +var ( + filter_Query_QueryOptInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryOptInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOptInfoRequest + 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_QueryOptInfo_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryOptInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryOptInfo_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOptInfoRequest + 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_QueryOptInfo_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryOptInfo(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. @@ -894,6 +930,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_QueryOptInfo_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_QueryOptInfo_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_QueryOptInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1155,6 +1214,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_QueryOptInfo_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_QueryOptInfo_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_QueryOptInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1180,6 +1259,8 @@ var ( pattern_Query_QueryAllOperatorsWithOptInAVS_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"exocore", "operator", "v1", "opt", "operator_list", "avs"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryAllAVSsByOperator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 1}, []string{"exocore", "operator", "v1", "opt", "avs_list"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryOptInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"exocore", "operator", "v1", "opt_info"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1204,4 +1285,6 @@ var ( forward_Query_QueryAllOperatorsWithOptInAVS_0 = runtime.ForwardResponseMessage forward_Query_QueryAllAVSsByOperator_0 = runtime.ForwardResponseMessage + + forward_Query_QueryOptInfo_0 = runtime.ForwardResponseMessage )