From 922a6a4030a6dabb8a89ee0c82ea349081ed1b90 Mon Sep 17 00:00:00 2001 From: trestin Date: Sun, 25 Aug 2024 23:34:05 +0800 Subject: [PATCH] add some query cli --- proto/exocore/avs/v1/query.proto | 42 + proto/exocore/avs/v1/tx.proto | 2 +- proto/exocore/operator/v1/query.proto | 42 + x/avs/client/cli/query.go | 73 +- x/avs/keeper/query.go | 26 + x/avs/keeper/task.go | 16 + x/avs/types/query.pb.go | 1283 ++++++++++++++++++++++--- x/avs/types/query.pb.gw.go | 166 ++++ x/avs/types/tx.pb.go | 2 +- x/operator/client/cli/query.go | 68 +- x/operator/keeper/grpc_query.go | 21 + x/operator/types/query.pb.go | 966 +++++++++++++++++-- x/operator/types/query.pb.gw.go | 202 ++++ 13 files changed, 2668 insertions(+), 241 deletions(-) diff --git a/proto/exocore/avs/v1/query.proto b/proto/exocore/avs/v1/query.proto index 99015e6c1..3c4cb11f0 100644 --- a/proto/exocore/avs/v1/query.proto +++ b/proto/exocore/avs/v1/query.proto @@ -37,9 +37,43 @@ message QueryAVSTaskInfoReq { // task_addr is the task contract address,its type should be a sdk.AccAddress string task_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // task_id is the task identifier + string task_id = 2 ; +} + +// QuerySubmitTaskResultReq is the request to obtain the task information. +message QuerySubmitTaskResultReq { + // task_addr is the task contract address,its type should be a sdk.AccAddress + string task_addr = 1 [(gogoproto.customname) = "TaskAddress"]; + // task_id is the task identifier + string task_id = 2 ; + // operator_addr is the operator address,its type should be a sdk.AccAddress + string operator_addr = 3 + [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// QueryChallengeInfoReq is the request to obtain the task information. +message QueryChallengeInfoReq { + // task_addr is the task contract address,its type should be a sdk.AccAddress + string task_addr = 1 [(gogoproto.customname) = "TaskAddress"]; + // task_id is the task identifier string task_id = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // operator_addr is the operator address,its type should be a sdk.AccAddress + string operator_addr = 3 + [(cosmos_proto.scalar) = "cosmos.AddressString"]; } + +// QuerySubmitTaskResultResponse is the response of avs related information +message QuerySubmitTaskResultResponse { + // info is the taskResult. + TaskResultInfo info = 1; +} + +// QueryChallengeInfoResponse is the response of avs related information +message QueryChallengeInfoResponse { + // challenge_addr is the challenge address,its type should be a common.HexAddress. + string challenge_addr = 1; +} // Query defines the gRPC querier service. service Query { // Parameters queries the parameters of the module. @@ -54,4 +88,12 @@ service Query { rpc QueryAVSAddrByChainID(QueryAVSAddrByChainIDReq) returns (QueryAVSAddrByChainIDResponse) { option (google.api.http).get = "/exocore/avs/QueryAVSAddrByChainID"; } + // Parameters queries the parameters of the module. + rpc QuerySubmitTaskResult(QuerySubmitTaskResultReq) returns (QuerySubmitTaskResultResponse) { + option (google.api.http).get = "/exocore/avs/QuerySubmitTaskResult"; + } + // Parameters queries the parameters of the module. + rpc QueryChallengeInfo(QueryChallengeInfoReq) returns (QueryChallengeInfoResponse) { + option (google.api.http).get = "/exocore/avs/QueryChallengeInfo"; + } } \ No newline at end of file diff --git a/proto/exocore/avs/v1/tx.proto b/proto/exocore/avs/v1/tx.proto index d55d24011..5a368b727 100644 --- a/proto/exocore/avs/v1/tx.proto +++ b/proto/exocore/avs/v1/tx.proto @@ -238,7 +238,7 @@ message SubmitTaskResultReq { // from_address is the address of the operator (sdk.AccAddress). string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // info is the operator info. + // info is the taskResult. TaskResultInfo info = 2; } // SubmitTaskResultResponse is the response to submit task results. diff --git a/proto/exocore/operator/v1/query.proto b/proto/exocore/operator/v1/query.proto index 44ad4720c..140541d2e 100644 --- a/proto/exocore/operator/v1/query.proto +++ b/proto/exocore/operator/v1/query.proto @@ -185,6 +185,34 @@ message OperatorConsAddrPair { bool opting_out = 3; } + +// QueryAllOperatorsWithOptInAVSRequest is the request to obtain all opt-in operator addresses +// for a specific avs with pagination. +message QueryAllOperatorsWithOptInAVSRequest { + // avs address + string avs = 1; +} + +// QueryAllOperatorsWithOptInAVSResponse is the response that includes a list of all avs +// for a specified operator address. +message QueryAllOperatorsWithOptInAVSResponse { + // operator_list is a list of operator addresses. + repeated string operator_list = 1; +} + +// QueryAllAVSsByOperatorRequest is the request to obtain all operator addresses +// and consensus keys for a specific chain ID, with pagination. +message QueryAllAVSsByOperatorRequest { + // operator address. + string operator = 1; +} + +// QueryAllAVSsByOperatorResponse is the response that includes a list of all operators +// and their consensus keys for a specified chain ID. +message QueryAllAVSsByOperatorResponse { + // avs_list is a list of avs addresses . + repeated string avs_list = 1; +} // Query defines the gRPC querier service. service Query { // QueryOperatorInfo queries the operator information. @@ -251,4 +279,18 @@ service Query { get: "/exocore/operator/v1/all_operator_cons_addrs/{chain}" }; } + + // QueryAllOperatorsWithOptInAVS queries operator list by avs. + rpc QueryAllOperatorsWithOptInAVS(QueryAllOperatorsWithOptInAVSRequest) returns (QueryAllOperatorsWithOptInAVSResponse) { + option (google.api.http) = { + get: "/exocore/operator/v1/opt/operator_list/{avs}" + }; + } + + // QueryAllAVSsByOperator queries avs list. + rpc QueryAllAVSsByOperator(QueryAllAVSsByOperatorRequest) returns (QueryAllAVSsByOperatorResponse) { + option (google.api.http) = { + get: "/exocore/operator/v1/opt/avs_list/{operator}" + }; + } } \ No newline at end of file diff --git a/x/avs/client/cli/query.go b/x/avs/client/cli/query.go index 153b6db1c..5f6ecd274 100644 --- a/x/avs/client/cli/query.go +++ b/x/avs/client/cli/query.go @@ -25,9 +25,13 @@ func GetQueryCmd(_ string) *cobra.Command { RunE: client.ValidateCmd, } - cmd.AddCommand(QueryAVSInfo()) - cmd.AddCommand(QueryAVSAddrByChainID()) - cmd.AddCommand(QueryTaskInfo()) + cmd.AddCommand( + QueryAVSInfo(), + QueryAVSAddrByChainID(), + QueryTaskInfo(), + QueryChallengeInfo(), + QuerySubmitTaskResult(), + ) return cmd } @@ -120,3 +124,66 @@ func QueryTaskInfo() *cobra.Command { flags.AddQueryFlagsToCmd(cmd) return cmd } + +func QuerySubmitTaskResult() *cobra.Command { + cmd := &cobra.Command{ + Use: "SubmitTaskResult ", + Short: "Query the SubmitTaskResult by taskAddr taskID operatorAddr", + Long: "Query the currently submitted Task Result", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + if !common.IsHexAddress(args[0]) { + return xerrors.Errorf("invalid address,err:%s", types.ErrInvalidAddr) + } + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + req := types.QuerySubmitTaskResultReq{ + TaskAddress: args[0], + TaskId: args[1], + OperatorAddr: args[2], + } + res, err := queryClient.QuerySubmitTaskResult(context.Background(), &req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + flags.AddQueryFlagsToCmd(cmd) + return cmd +} +func QueryChallengeInfo() *cobra.Command { + cmd := &cobra.Command{ + Use: "ChallengeInfo ", + Short: "Query the ChallengeInfo by taskAddr taskID operatorAddr", + Long: "Query the currently Challenge Info ", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + if !common.IsHexAddress(args[0]) { + return xerrors.Errorf("invalid task address,err:%s", types.ErrInvalidAddr) + } + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + req := types.QueryChallengeInfoReq{ + TaskAddress: args[0], + TaskId: args[1], + OperatorAddr: args[2], + } + res, err := queryClient.QueryChallengeInfo(context.Background(), &req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + flags.AddQueryFlagsToCmd(cmd) + return cmd +} diff --git a/x/avs/keeper/query.go b/x/avs/keeper/query.go index ff1a7c7be..808c2a6a6 100644 --- a/x/avs/keeper/query.go +++ b/x/avs/keeper/query.go @@ -2,6 +2,7 @@ package keeper import ( "context" + "strconv" "github.com/ExocoreNetwork/exocore/x/avs/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -28,3 +29,28 @@ func (k Keeper) QueryAVSAddrByChainID(ctx context.Context, req *types.QueryAVSAd } return &types.QueryAVSAddrByChainIDResponse{AVSAddress: avsAddr.String()}, nil } +func (k Keeper) QuerySubmitTaskResult(ctx context.Context, req *types.QuerySubmitTaskResultReq) (*types.QuerySubmitTaskResultResponse, error) { + c := sdk.UnwrapSDKContext(ctx) + id, err := strconv.ParseUint(req.TaskId, 10, 64) + if err != nil { + return &types.QuerySubmitTaskResultResponse{}, err + } + + info, err := k.GetTaskResultInfo(c, req.OperatorAddr, req.TaskAddress, id) + return &types.QuerySubmitTaskResultResponse{ + Info: info, + }, err +} + +func (k Keeper) QueryChallengeInfo(ctx context.Context, req *types.QueryChallengeInfoReq) (*types.QueryChallengeInfoResponse, error) { + c := sdk.UnwrapSDKContext(ctx) + id, err := strconv.ParseUint(req.TaskId, 10, 64) + if err != nil { + return &types.QueryChallengeInfoResponse{}, err + } + + addr, err := k.GetTaskChallengedInfo(c, req.OperatorAddr, req.TaskAddress, id) + return &types.QueryChallengeInfoResponse{ + ChallengeAddr: addr, + }, err +} diff --git a/x/avs/keeper/task.go b/x/avs/keeper/task.go index c2788a969..641543c17 100644 --- a/x/avs/keeper/task.go +++ b/x/avs/keeper/task.go @@ -352,3 +352,19 @@ func (k *Keeper) IsExistTaskChallengedInfo(ctx sdk.Context, operatorAddress, tas store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefixTaskChallengeResult) return store.Has(infoKey) } + +func (k *Keeper) GetTaskChallengedInfo(ctx sdk.Context, operatorAddress, taskContractAddress string, taskID uint64) (addr string, err error) { + if !common.IsHexAddress(taskContractAddress) { + return "", types.ErrInvalidAddr + } + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefixTaskChallengeResult) + infoKey := assetstype.GetJoinedStoreKey(operatorAddress, taskContractAddress, + strconv.FormatUint(taskID, 10)) + value := store.Get(infoKey) + if value == nil { + return "", errorsmod.Wrap(types.ErrNoKeyInTheStore, + fmt.Sprintf("GetTaskChallengedInfo: key is %s", infoKey)) + } + + return common.Bytes2Hex(value), nil +} diff --git a/x/avs/types/query.pb.go b/x/avs/types/query.pb.go index 5aa43fe71..3b6c36b2d 100644 --- a/x/avs/types/query.pb.go +++ b/x/avs/types/query.pb.go @@ -269,50 +269,284 @@ func (m *QueryAVSTaskInfoReq) GetTaskId() string { return "" } +// QuerySubmitTaskResultReq is the request to obtain the task information. +type QuerySubmitTaskResultReq struct { + // task_addr is the task contract address,its type should be a sdk.AccAddress + TaskAddress string `protobuf:"bytes,1,opt,name=task_addr,json=taskAddr,proto3" json:"task_addr,omitempty"` + // task_id is the task identifier + TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // operator_addr is the operator address,its type should be a sdk.AccAddress + OperatorAddr string `protobuf:"bytes,3,opt,name=operator_addr,json=operatorAddr,proto3" json:"operator_addr,omitempty"` +} + +func (m *QuerySubmitTaskResultReq) Reset() { *m = QuerySubmitTaskResultReq{} } +func (m *QuerySubmitTaskResultReq) String() string { return proto.CompactTextString(m) } +func (*QuerySubmitTaskResultReq) ProtoMessage() {} +func (*QuerySubmitTaskResultReq) Descriptor() ([]byte, []int) { + return fileDescriptor_fd804655b77429f2, []int{5} +} +func (m *QuerySubmitTaskResultReq) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySubmitTaskResultReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySubmitTaskResultReq.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 *QuerySubmitTaskResultReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySubmitTaskResultReq.Merge(m, src) +} +func (m *QuerySubmitTaskResultReq) XXX_Size() int { + return m.Size() +} +func (m *QuerySubmitTaskResultReq) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySubmitTaskResultReq.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySubmitTaskResultReq proto.InternalMessageInfo + +func (m *QuerySubmitTaskResultReq) GetTaskAddress() string { + if m != nil { + return m.TaskAddress + } + return "" +} + +func (m *QuerySubmitTaskResultReq) GetTaskId() string { + if m != nil { + return m.TaskId + } + return "" +} + +func (m *QuerySubmitTaskResultReq) GetOperatorAddr() string { + if m != nil { + return m.OperatorAddr + } + return "" +} + +// QueryChallengeInfoReq is the request to obtain the task information. +type QueryChallengeInfoReq struct { + // task_addr is the task contract address,its type should be a sdk.AccAddress + TaskAddress string `protobuf:"bytes,1,opt,name=task_addr,json=taskAddr,proto3" json:"task_addr,omitempty"` + // task_id is the task identifier + TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // operator_addr is the operator address,its type should be a sdk.AccAddress + OperatorAddr string `protobuf:"bytes,3,opt,name=operator_addr,json=operatorAddr,proto3" json:"operator_addr,omitempty"` +} + +func (m *QueryChallengeInfoReq) Reset() { *m = QueryChallengeInfoReq{} } +func (m *QueryChallengeInfoReq) String() string { return proto.CompactTextString(m) } +func (*QueryChallengeInfoReq) ProtoMessage() {} +func (*QueryChallengeInfoReq) Descriptor() ([]byte, []int) { + return fileDescriptor_fd804655b77429f2, []int{6} +} +func (m *QueryChallengeInfoReq) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryChallengeInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryChallengeInfoReq.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 *QueryChallengeInfoReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryChallengeInfoReq.Merge(m, src) +} +func (m *QueryChallengeInfoReq) XXX_Size() int { + return m.Size() +} +func (m *QueryChallengeInfoReq) XXX_DiscardUnknown() { + xxx_messageInfo_QueryChallengeInfoReq.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryChallengeInfoReq proto.InternalMessageInfo + +func (m *QueryChallengeInfoReq) GetTaskAddress() string { + if m != nil { + return m.TaskAddress + } + return "" +} + +func (m *QueryChallengeInfoReq) GetTaskId() string { + if m != nil { + return m.TaskId + } + return "" +} + +func (m *QueryChallengeInfoReq) GetOperatorAddr() string { + if m != nil { + return m.OperatorAddr + } + return "" +} + +// QuerySubmitTaskResultResponse is the response of avs related information +type QuerySubmitTaskResultResponse struct { + // info is the taskResult. + Info *TaskResultInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` +} + +func (m *QuerySubmitTaskResultResponse) Reset() { *m = QuerySubmitTaskResultResponse{} } +func (m *QuerySubmitTaskResultResponse) String() string { return proto.CompactTextString(m) } +func (*QuerySubmitTaskResultResponse) ProtoMessage() {} +func (*QuerySubmitTaskResultResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_fd804655b77429f2, []int{7} +} +func (m *QuerySubmitTaskResultResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySubmitTaskResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySubmitTaskResultResponse.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 *QuerySubmitTaskResultResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySubmitTaskResultResponse.Merge(m, src) +} +func (m *QuerySubmitTaskResultResponse) XXX_Size() int { + return m.Size() +} +func (m *QuerySubmitTaskResultResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySubmitTaskResultResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySubmitTaskResultResponse proto.InternalMessageInfo + +func (m *QuerySubmitTaskResultResponse) GetInfo() *TaskResultInfo { + if m != nil { + return m.Info + } + return nil +} + +// QueryChallengeInfoResponse is the response of avs related information +type QueryChallengeInfoResponse struct { + // challenge_addr is the challenge address,its type should be a common.HexAddress. + ChallengeAddr string `protobuf:"bytes,1,opt,name=challenge_addr,json=challengeAddr,proto3" json:"challenge_addr,omitempty"` +} + +func (m *QueryChallengeInfoResponse) Reset() { *m = QueryChallengeInfoResponse{} } +func (m *QueryChallengeInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryChallengeInfoResponse) ProtoMessage() {} +func (*QueryChallengeInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_fd804655b77429f2, []int{8} +} +func (m *QueryChallengeInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryChallengeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryChallengeInfoResponse.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 *QueryChallengeInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryChallengeInfoResponse.Merge(m, src) +} +func (m *QueryChallengeInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryChallengeInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryChallengeInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryChallengeInfoResponse proto.InternalMessageInfo + +func (m *QueryChallengeInfoResponse) GetChallengeAddr() string { + if m != nil { + return m.ChallengeAddr + } + return "" +} + func init() { proto.RegisterType((*QueryAVSInfoReq)(nil), "exocore.avs.v1.QueryAVSInfoReq") proto.RegisterType((*QueryAVSInfoResponse)(nil), "exocore.avs.v1.QueryAVSInfoResponse") proto.RegisterType((*QueryAVSAddrByChainIDReq)(nil), "exocore.avs.v1.QueryAVSAddrByChainIDReq") proto.RegisterType((*QueryAVSAddrByChainIDResponse)(nil), "exocore.avs.v1.QueryAVSAddrByChainIDResponse") proto.RegisterType((*QueryAVSTaskInfoReq)(nil), "exocore.avs.v1.QueryAVSTaskInfoReq") + proto.RegisterType((*QuerySubmitTaskResultReq)(nil), "exocore.avs.v1.QuerySubmitTaskResultReq") + proto.RegisterType((*QueryChallengeInfoReq)(nil), "exocore.avs.v1.QueryChallengeInfoReq") + proto.RegisterType((*QuerySubmitTaskResultResponse)(nil), "exocore.avs.v1.QuerySubmitTaskResultResponse") + proto.RegisterType((*QueryChallengeInfoResponse)(nil), "exocore.avs.v1.QueryChallengeInfoResponse") } func init() { proto.RegisterFile("exocore/avs/v1/query.proto", fileDescriptor_fd804655b77429f2) } var fileDescriptor_fd804655b77429f2 = []byte{ - // 502 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4f, 0x6f, 0xd3, 0x30, - 0x18, 0xc6, 0x9b, 0x01, 0xeb, 0xe6, 0xa2, 0x81, 0x4c, 0xd1, 0xb2, 0x00, 0x29, 0x84, 0x01, 0x13, - 0xa8, 0xb1, 0x3a, 0xc4, 0x07, 0x68, 0x06, 0x9a, 0x7a, 0x41, 0xd0, 0xa2, 0x1d, 0xb8, 0x54, 0x5e, - 0xe3, 0x65, 0x51, 0x59, 0xde, 0x2e, 0xf6, 0x42, 0x7b, 0x02, 0xf1, 0x09, 0x90, 0xb8, 0x72, 0xe3, - 0x2b, 0xf0, 0x21, 0x38, 0x4e, 0x70, 0xe1, 0x34, 0xa1, 0x94, 0x0f, 0x82, 0xec, 0x38, 0xa8, 0x89, - 0x5a, 0xfe, 0xdc, 0x62, 0xbf, 0xcf, 0xfb, 0xf3, 0xe3, 0xc7, 0x6f, 0x90, 0xc5, 0xc6, 0x30, 0x80, - 0x98, 0x11, 0x9a, 0x70, 0x92, 0xb4, 0xc8, 0xf1, 0x09, 0x8b, 0x27, 0xee, 0x28, 0x06, 0x01, 0x78, - 0x4d, 0xd7, 0x5c, 0x9a, 0x70, 0x37, 0x69, 0x59, 0x1b, 0x03, 0xe0, 0x47, 0xc0, 0xf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1, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x08, - 0xbb, 0xb7, 0x2b, 0x04, 0x00, 0x00, + // 669 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xc7, 0xeb, 0x42, 0xbf, 0x36, 0xfd, 0x40, 0x4b, 0x51, 0x53, 0x03, 0x0e, 0x35, 0x2d, 0xad, + 0x0a, 0xb1, 0xd5, 0x22, 0x8e, 0x1c, 0x9a, 0x80, 0xaa, 0x5c, 0x10, 0x38, 0x55, 0x0f, 0x5c, 0xaa, + 0x6d, 0xbc, 0x75, 0xad, 0xa6, 0xde, 0xd4, 0xbb, 0x31, 0xe9, 0x0d, 0xf1, 0x04, 0x95, 0xb8, 0x72, + 0xe0, 0x21, 0x90, 0x78, 0x05, 0x8e, 0x15, 0x08, 0x89, 0x53, 0x85, 0x1c, 0x1e, 0x04, 0xed, 0x7a, + 0x1d, 0x6c, 0x27, 0x4e, 0x5b, 0x89, 0x5b, 0x76, 0x3e, 0xfe, 0xf3, 0xdb, 0xf1, 0xcc, 0x06, 0xa8, + 0xb8, 0x43, 0x1a, 0xc4, 0xc7, 0x26, 0x0a, 0xa8, 0x19, 0x6c, 0x98, 0x27, 0x6d, 0xec, 0x9f, 0x1a, + 0x2d, 0x9f, 0x30, 0x02, 0x67, 0xa5, 0xcf, 0x40, 0x01, 0x35, 0x82, 0x0d, 0x75, 0xb1, 0x41, 0xe8, + 0x31, 0xa1, 0x7b, 0xc2, 0x6b, 0x46, 0x87, 0x28, 0x54, 0x5d, 0xc8, 0xc8, 0xb0, 0x8e, 0x74, 0xcc, + 0x3b, 0xc4, 0x21, 0x51, 0x02, 0xff, 0x25, 0xad, 0xf7, 0x1c, 0x42, 0x9c, 0x26, 0x36, 0x51, 0xcb, + 0x35, 0x91, 0xe7, 0x11, 0x86, 0x98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0x78, 0xb4, 0xb2, 0x7b, 0x0b, 0xd7, 0xf2, 0x38, 0xb2, 0x4f, 0x84, 0x5a, 0xbe, 0x62, 0xa4, 0x6c, + 0xcc, 0xba, 0x20, 0x5c, 0x86, 0xfa, 0xc0, 0xc6, 0xa4, 0x21, 0x7a, 0x78, 0xd9, 0x01, 0xca, 0xc1, + 0x1b, 0xb0, 0xc3, 0x39, 0x78, 0x79, 0x13, 0x39, 0x0c, 0xaf, 0x0f, 0xe2, 0x4c, 0x01, 0xb0, 0x7f, + 0x14, 0xe1, 0xca, 0xc0, 0x8a, 0xd9, 0xe5, 0x55, 0xd7, 0xaf, 0x12, 0x26, 0xa9, 0x56, 0x05, 0xd5, + 0x12, 0x2c, 0xf5, 0x53, 0xa5, 0x12, 0x2a, 0xdb, 0xdf, 0x42, 0x4d, 0x39, 0x0f, 0x35, 0xe5, 0x77, + 0xa8, 0x29, 0x67, 0x5d, 0x6d, 0xe4, 0xbc, 0xab, 0x8d, 0xfc, 0xea, 0x6a, 0x23, 0x6f, 0xcb, 0x8e, + 0xcb, 0x0e, 0xdb, 0xfb, 0x46, 0x83, 0x1c, 0x9b, 0x2f, 0x23, 0x91, 0x57, 0x98, 0xbd, 0x23, 0xfe, + 0x51, 0x4f, 0xb3, 0x23, 0x54, 0xd9, 0x69, 0x0b, 0xd3, 0xfd, 0x71, 0xf1, 0x27, 0xf5, 0xf4, 0x6f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x2f, 0x76, 0x3f, 0x3a, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -333,6 +567,10 @@ type QueryClient interface { QueryAVSTaskInfo(ctx context.Context, in *QueryAVSTaskInfoReq, opts ...grpc.CallOption) (*TaskInfo, error) // QueryAVSAddrByChainID queries the avs address by chain id QueryAVSAddrByChainID(ctx context.Context, in *QueryAVSAddrByChainIDReq, opts ...grpc.CallOption) (*QueryAVSAddrByChainIDResponse, error) + // Parameters queries the parameters of the module. + QuerySubmitTaskResult(ctx context.Context, in *QuerySubmitTaskResultReq, opts ...grpc.CallOption) (*QuerySubmitTaskResultResponse, error) + // Parameters queries the parameters of the module. + QueryChallengeInfo(ctx context.Context, in *QueryChallengeInfoReq, opts ...grpc.CallOption) (*QueryChallengeInfoResponse, error) } type queryClient struct { @@ -370,6 +608,24 @@ func (c *queryClient) QueryAVSAddrByChainID(ctx context.Context, in *QueryAVSAdd return out, nil } +func (c *queryClient) QuerySubmitTaskResult(ctx context.Context, in *QuerySubmitTaskResultReq, opts ...grpc.CallOption) (*QuerySubmitTaskResultResponse, error) { + out := new(QuerySubmitTaskResultResponse) + err := c.cc.Invoke(ctx, "/exocore.avs.v1.Query/QuerySubmitTaskResult", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) QueryChallengeInfo(ctx context.Context, in *QueryChallengeInfoReq, opts ...grpc.CallOption) (*QueryChallengeInfoResponse, error) { + out := new(QueryChallengeInfoResponse) + err := c.cc.Invoke(ctx, "/exocore.avs.v1.Query/QueryChallengeInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Parameters queries the parameters of the module. @@ -378,6 +634,10 @@ type QueryServer interface { QueryAVSTaskInfo(context.Context, *QueryAVSTaskInfoReq) (*TaskInfo, error) // QueryAVSAddrByChainID queries the avs address by chain id QueryAVSAddrByChainID(context.Context, *QueryAVSAddrByChainIDReq) (*QueryAVSAddrByChainIDResponse, error) + // Parameters queries the parameters of the module. + QuerySubmitTaskResult(context.Context, *QuerySubmitTaskResultReq) (*QuerySubmitTaskResultResponse, error) + // Parameters queries the parameters of the module. + QueryChallengeInfo(context.Context, *QueryChallengeInfoReq) (*QueryChallengeInfoResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -393,6 +653,12 @@ func (*UnimplementedQueryServer) QueryAVSTaskInfo(ctx context.Context, req *Quer func (*UnimplementedQueryServer) QueryAVSAddrByChainID(ctx context.Context, req *QueryAVSAddrByChainIDReq) (*QueryAVSAddrByChainIDResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryAVSAddrByChainID not implemented") } +func (*UnimplementedQueryServer) QuerySubmitTaskResult(ctx context.Context, req *QuerySubmitTaskResultReq) (*QuerySubmitTaskResultResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QuerySubmitTaskResult not implemented") +} +func (*UnimplementedQueryServer) QueryChallengeInfo(ctx context.Context, req *QueryChallengeInfoReq) (*QueryChallengeInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryChallengeInfo not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -452,6 +718,42 @@ func _Query_QueryAVSAddrByChainID_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _Query_QuerySubmitTaskResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySubmitTaskResultReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QuerySubmitTaskResult(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/exocore.avs.v1.Query/QuerySubmitTaskResult", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QuerySubmitTaskResult(ctx, req.(*QuerySubmitTaskResultReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_QueryChallengeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryChallengeInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QueryChallengeInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/exocore.avs.v1.Query/QueryChallengeInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryChallengeInfo(ctx, req.(*QueryChallengeInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "exocore.avs.v1.Query", HandlerType: (*QueryServer)(nil), @@ -468,6 +770,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "QueryAVSAddrByChainID", Handler: _Query_QueryAVSAddrByChainID_Handler, }, + { + MethodName: "QuerySubmitTaskResult", + Handler: _Query_QuerySubmitTaskResult_Handler, + }, + { + MethodName: "QueryChallengeInfo", + Handler: _Query_QueryChallengeInfo_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "exocore/avs/v1/query.proto", @@ -635,56 +945,209 @@ func (m *QueryAVSTaskInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *QuerySubmitTaskResultReq) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *QueryAVSInfoReq) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AVSAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n + +func (m *QuerySubmitTaskResultReq) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAVSInfoResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *QuerySubmitTaskResultReq) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Info != nil { - l = m.Info.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.OperatorAddr) > 0 { + i -= len(m.OperatorAddr) + copy(dAtA[i:], m.OperatorAddr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OperatorAddr))) + i-- + dAtA[i] = 0x1a } - return n + if len(m.TaskId) > 0 { + i -= len(m.TaskId) + copy(dAtA[i:], m.TaskId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TaskId))) + i-- + dAtA[i] = 0x12 + } + if len(m.TaskAddress) > 0 { + i -= len(m.TaskAddress) + copy(dAtA[i:], m.TaskAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TaskAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *QueryAVSAddrByChainIDReq) Size() (n int) { - if m == nil { - return 0 +func (m *QueryChallengeInfoReq) 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 *QueryChallengeInfoReq) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryChallengeInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ChainID) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.OperatorAddr) > 0 { + i -= len(m.OperatorAddr) + copy(dAtA[i:], m.OperatorAddr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OperatorAddr))) + i-- + dAtA[i] = 0x1a } - return n -} - + if len(m.TaskId) > 0 { + i -= len(m.TaskId) + copy(dAtA[i:], m.TaskId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TaskId))) + i-- + dAtA[i] = 0x12 + } + if len(m.TaskAddress) > 0 { + i -= len(m.TaskAddress) + copy(dAtA[i:], m.TaskAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TaskAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QuerySubmitTaskResultResponse) 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 *QuerySubmitTaskResultResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySubmitTaskResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Info != nil { + { + size, err := m.Info.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 *QueryChallengeInfoResponse) 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 *QueryChallengeInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryChallengeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChallengeAddr) > 0 { + i -= len(m.ChallengeAddr) + copy(dAtA[i:], m.ChallengeAddr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChallengeAddr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryAVSInfoReq) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AVSAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAVSInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Info != nil { + l = m.Info.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAVSAddrByChainIDReq) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func (m *QueryAVSAddrByChainIDResponse) Size() (n int) { if m == nil { return 0 @@ -712,16 +1175,416 @@ func (m *QueryAVSTaskInfoReq) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - return n -} + return n +} + +func (m *QuerySubmitTaskResultReq) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TaskAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TaskId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.OperatorAddr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryChallengeInfoReq) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TaskAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TaskId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.OperatorAddr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QuerySubmitTaskResultResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Info != nil { + l = m.Info.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryChallengeInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChallengeAddr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryAVSInfoReq) 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: QueryAVSInfoReq: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAVSInfoReq: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AVSAddress", 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.AVSAddress = 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 *QueryAVSInfoResponse) 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: QueryAVSInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAVSInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", 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.Info == nil { + m.Info = &AVSInfo{} + } + if err := m.Info.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 *QueryAVSAddrByChainIDReq) 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: QueryAVSAddrByChainIDReq: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAVSAddrByChainIDReq: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainID", 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.ChainID = 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 *QueryAVSAddrByChainIDResponse) 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: QueryAVSAddrByChainIDResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAVSAddrByChainIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AVSAddress", 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.AVSAddress = 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 + } + } -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } -func (m *QueryAVSInfoReq) Unmarshal(dAtA []byte) error { +func (m *QueryAVSTaskInfoReq) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -744,15 +1607,15 @@ func (m *QueryAVSInfoReq) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAVSInfoReq: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAVSTaskInfoReq: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAVSInfoReq: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAVSTaskInfoReq: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AVSAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TaskAddr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -780,7 +1643,39 @@ func (m *QueryAVSInfoReq) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AVSAddress = string(dAtA[iNdEx:postIndex]) + m.TaskAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", 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.TaskId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -803,7 +1698,7 @@ func (m *QueryAVSInfoReq) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAVSInfoResponse) Unmarshal(dAtA []byte) error { +func (m *QuerySubmitTaskResultReq) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -826,17 +1721,17 @@ func (m *QueryAVSInfoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAVSInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QuerySubmitTaskResultReq: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAVSInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QuerySubmitTaskResultReq: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TaskAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -846,27 +1741,87 @@ func (m *QueryAVSInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Info == nil { - m.Info = &AVSInfo{} + m.TaskAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) } - if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + 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.TaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorAddr", 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.OperatorAddr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -889,7 +1844,7 @@ func (m *QueryAVSInfoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAVSAddrByChainIDReq) Unmarshal(dAtA []byte) error { +func (m *QueryChallengeInfoReq) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -912,15 +1867,15 @@ func (m *QueryAVSAddrByChainIDReq) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAVSAddrByChainIDReq: wiretype end group for non-group") + return fmt.Errorf("proto: QueryChallengeInfoReq: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAVSAddrByChainIDReq: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryChallengeInfoReq: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TaskAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -948,7 +1903,71 @@ func (m *QueryAVSAddrByChainIDReq) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainID = string(dAtA[iNdEx:postIndex]) + m.TaskAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", 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.TaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorAddr", 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.OperatorAddr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -971,7 +1990,7 @@ func (m *QueryAVSAddrByChainIDReq) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAVSAddrByChainIDResponse) Unmarshal(dAtA []byte) error { +func (m *QuerySubmitTaskResultResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -994,17 +2013,17 @@ func (m *QueryAVSAddrByChainIDResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAVSAddrByChainIDResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QuerySubmitTaskResultResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAVSAddrByChainIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QuerySubmitTaskResultResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AVSAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -1014,23 +2033,27 @@ func (m *QueryAVSAddrByChainIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.AVSAddress = string(dAtA[iNdEx:postIndex]) + if m.Info == nil { + m.Info = &TaskResultInfo{} + } + if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -1053,7 +2076,7 @@ func (m *QueryAVSAddrByChainIDResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAVSTaskInfoReq) Unmarshal(dAtA []byte) error { +func (m *QueryChallengeInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1076,47 +2099,15 @@ func (m *QueryAVSTaskInfoReq) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAVSTaskInfoReq: wiretype end group for non-group") + return fmt.Errorf("proto: QueryChallengeInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAVSTaskInfoReq: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryChallengeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskAddr", 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.TaskAddr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChallengeAddr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1144,7 +2135,7 @@ func (m *QueryAVSTaskInfoReq) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TaskId = string(dAtA[iNdEx:postIndex]) + m.ChallengeAddr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/avs/types/query.pb.gw.go b/x/avs/types/query.pb.gw.go index 5a6a3469c..2e24ae868 100644 --- a/x/avs/types/query.pb.gw.go +++ b/x/avs/types/query.pb.gw.go @@ -141,6 +141,78 @@ func local_request_Query_QueryAVSAddrByChainID_0(ctx context.Context, marshaler } +var ( + filter_Query_QuerySubmitTaskResult_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QuerySubmitTaskResult_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySubmitTaskResultReq + 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_QuerySubmitTaskResult_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QuerySubmitTaskResult(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QuerySubmitTaskResult_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySubmitTaskResultReq + 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_QuerySubmitTaskResult_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QuerySubmitTaskResult(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_QueryChallengeInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_QueryChallengeInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryChallengeInfoReq + 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_QueryChallengeInfo_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryChallengeInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryChallengeInfo_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryChallengeInfoReq + 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_QueryChallengeInfo_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryChallengeInfo(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. @@ -216,6 +288,52 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_QuerySubmitTaskResult_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_QuerySubmitTaskResult_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_QuerySubmitTaskResult_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_QueryChallengeInfo_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_QueryChallengeInfo_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_QueryChallengeInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -317,6 +435,46 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_QuerySubmitTaskResult_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_QuerySubmitTaskResult_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_QuerySubmitTaskResult_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_QueryChallengeInfo_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_QueryChallengeInfo_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_QueryChallengeInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -326,6 +484,10 @@ var ( pattern_Query_QueryAVSTaskInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"exocore", "avstask", "v1", "GetAVSTaskInfoReq"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryAVSAddrByChainID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"exocore", "avs", "QueryAVSAddrByChainID"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QuerySubmitTaskResult_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"exocore", "avs", "QuerySubmitTaskResult"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_QueryChallengeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"exocore", "avs", "QueryChallengeInfo"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -334,4 +496,8 @@ var ( forward_Query_QueryAVSTaskInfo_0 = runtime.ForwardResponseMessage forward_Query_QueryAVSAddrByChainID_0 = runtime.ForwardResponseMessage + + forward_Query_QuerySubmitTaskResult_0 = runtime.ForwardResponseMessage + + forward_Query_QueryChallengeInfo_0 = runtime.ForwardResponseMessage ) diff --git a/x/avs/types/tx.pb.go b/x/avs/types/tx.pb.go index 484ae2281..ed3f8986a 100644 --- a/x/avs/types/tx.pb.go +++ b/x/avs/types/tx.pb.go @@ -1094,7 +1094,7 @@ func (m *TaskResultInfo) GetStage() string { type SubmitTaskResultReq struct { // from_address is the address of the operator (sdk.AccAddress). FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` - // info is the operator info. + // info is the taskResult. Info *TaskResultInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` } diff --git a/x/operator/client/cli/query.go b/x/operator/client/cli/query.go index 743f80b69..71311572d 100644 --- a/x/operator/client/cli/query.go +++ b/x/operator/client/cli/query.go @@ -2,8 +2,9 @@ package cli import ( "context" - + "github.com/ExocoreNetwork/exocore/x/avs/types" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ethereum/go-ethereum/common" "golang.org/x/xerrors" operatortypes "github.com/ExocoreNetwork/exocore/x/operator/types" @@ -33,6 +34,8 @@ func GetQueryCmd() *cobra.Command { QueryOperatorUSDValue(), QueryAVSUSDValue(), QueryOperatorSlashInfo(), + QueryAllOperatorsWithOptInAVS(), + QueryAllAVSsByOperator(), ) return cmd } @@ -346,3 +349,66 @@ func QueryOperatorSlashInfo() *cobra.Command { flags.AddQueryFlagsToCmd(cmd) return cmd } + +// QueryAllOperatorsWithOptInAVS queries all operators +func QueryAllOperatorsWithOptInAVS() *cobra.Command { + cmd := &cobra.Command{ + Use: "get-operatorList", + Short: "get-operatorList", + Long: "Get operator list by avs", + Args: cobra.NoArgs, + RunE: func(cmd *cobra.Command, args []string) error { + if !common.IsHexAddress(args[0]) { + return xerrors.Errorf("invalid address,err:%s", types.ErrInvalidAddr) + } + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := operatortypes.NewQueryClient(clientCtx) + req := operatortypes.QueryAllOperatorsWithOptInAVSRequest{ + Avs: args[0], + } + res, err := queryClient.QueryAllOperatorsWithOptInAVS(context.Background(), &req) + if err != nil { + return err + } + return clientCtx.PrintProto(res) + }, + } + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +// QueryAllAVSsByOperator queries all avs +func QueryAllAVSsByOperator() *cobra.Command { + cmd := &cobra.Command{ + Use: "get-avsList", + Short: "get-avsList", + Long: "get-avsList by operator", + Args: cobra.NoArgs, + RunE: func(cmd *cobra.Command, args []string) error { + addr, err := sdk.AccAddressFromBech32(args[0]) + if err != nil { + return xerrors.Errorf("invalid address,err:%s", types.ErrInvalidAddr) + } + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := operatortypes.NewQueryClient(clientCtx) + req := operatortypes.QueryAllAVSsByOperatorRequest{ + Operator: addr.String(), + } + res, err := queryClient.QueryAllAVSsByOperator(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 cb41ed15e..288f3aae2 100644 --- a/x/operator/keeper/grpc_query.go +++ b/x/operator/keeper/grpc_query.go @@ -225,3 +225,24 @@ func (k *Keeper) QueryOperatorSlashInfo(goCtx context.Context, req *types.QueryO Pagination: pageRes, }, nil } +func (k *Keeper) QueryAllOperatorsWithOptInAVS(goCtx context.Context, req *types.QueryAllOperatorsWithOptInAVSRequest) (*types.QueryAllOperatorsWithOptInAVSResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + operatorList, err := k.GetOptedInOperatorListByAVS(ctx, req.Avs) + if err != nil { + return nil, err + } + return &types.QueryAllOperatorsWithOptInAVSResponse{ + OperatorList: operatorList, + }, nil +} + +func (k *Keeper) QueryAllAVSsByOperator(goCtx context.Context, req *types.QueryAllAVSsByOperatorRequest) (*types.QueryAllAVSsByOperatorResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + avsList, err := k.GetOptedInAVSForOperator(ctx, req.Operator) + if err != nil { + return nil, err + } + return &types.QueryAllAVSsByOperatorResponse{ + AvsList: avsList, + }, nil +} diff --git a/x/operator/types/query.pb.go b/x/operator/types/query.pb.go index a11b544c8..d5a47b5da 100644 --- a/x/operator/types/query.pb.go +++ b/x/operator/types/query.pb.go @@ -1137,6 +1137,196 @@ func (m *OperatorConsAddrPair) GetOptingOut() bool { return false } +// QueryAllOperatorsWithOptInAVSRequest is the request to obtain all opt-in operator addresses +// +// for a specific avs with pagination. +type QueryAllOperatorsWithOptInAVSRequest struct { + // avs address + Avs string `protobuf:"bytes,1,opt,name=avs,proto3" json:"avs,omitempty"` +} + +func (m *QueryAllOperatorsWithOptInAVSRequest) Reset() { *m = QueryAllOperatorsWithOptInAVSRequest{} } +func (m *QueryAllOperatorsWithOptInAVSRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllOperatorsWithOptInAVSRequest) ProtoMessage() {} +func (*QueryAllOperatorsWithOptInAVSRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f91e795a3cecbdbf, []int{20} +} +func (m *QueryAllOperatorsWithOptInAVSRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllOperatorsWithOptInAVSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllOperatorsWithOptInAVSRequest.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 *QueryAllOperatorsWithOptInAVSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllOperatorsWithOptInAVSRequest.Merge(m, src) +} +func (m *QueryAllOperatorsWithOptInAVSRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllOperatorsWithOptInAVSRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllOperatorsWithOptInAVSRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllOperatorsWithOptInAVSRequest proto.InternalMessageInfo + +func (m *QueryAllOperatorsWithOptInAVSRequest) GetAvs() string { + if m != nil { + return m.Avs + } + return "" +} + +// QueryAllOperatorsWithOptInAVSResponse is the response that includes a list of all avs +// +// for a specified operator address. +type QueryAllOperatorsWithOptInAVSResponse struct { + // operator_list is a list of operator addresses. + OperatorList []string `protobuf:"bytes,1,rep,name=operator_list,json=operatorList,proto3" json:"operator_list,omitempty"` +} + +func (m *QueryAllOperatorsWithOptInAVSResponse) Reset() { *m = QueryAllOperatorsWithOptInAVSResponse{} } +func (m *QueryAllOperatorsWithOptInAVSResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllOperatorsWithOptInAVSResponse) ProtoMessage() {} +func (*QueryAllOperatorsWithOptInAVSResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f91e795a3cecbdbf, []int{21} +} +func (m *QueryAllOperatorsWithOptInAVSResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllOperatorsWithOptInAVSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllOperatorsWithOptInAVSResponse.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 *QueryAllOperatorsWithOptInAVSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllOperatorsWithOptInAVSResponse.Merge(m, src) +} +func (m *QueryAllOperatorsWithOptInAVSResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllOperatorsWithOptInAVSResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllOperatorsWithOptInAVSResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllOperatorsWithOptInAVSResponse proto.InternalMessageInfo + +func (m *QueryAllOperatorsWithOptInAVSResponse) GetOperatorList() []string { + if m != nil { + return m.OperatorList + } + return nil +} + +// QueryAllAVSsByOperatorRequest is the request to obtain all operator addresses +// and consensus keys for a specific chain ID, with pagination. +type QueryAllAVSsByOperatorRequest struct { + // operator address. + Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` +} + +func (m *QueryAllAVSsByOperatorRequest) Reset() { *m = QueryAllAVSsByOperatorRequest{} } +func (m *QueryAllAVSsByOperatorRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllAVSsByOperatorRequest) ProtoMessage() {} +func (*QueryAllAVSsByOperatorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f91e795a3cecbdbf, []int{22} +} +func (m *QueryAllAVSsByOperatorRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllAVSsByOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllAVSsByOperatorRequest.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 *QueryAllAVSsByOperatorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllAVSsByOperatorRequest.Merge(m, src) +} +func (m *QueryAllAVSsByOperatorRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllAVSsByOperatorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllAVSsByOperatorRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllAVSsByOperatorRequest proto.InternalMessageInfo + +func (m *QueryAllAVSsByOperatorRequest) GetOperator() string { + if m != nil { + return m.Operator + } + return "" +} + +// QueryAllAVSsByOperatorResponse is the response that includes a list of all operators +// and their consensus keys for a specified chain ID. +type QueryAllAVSsByOperatorResponse struct { + // avs_list is a list of avs addresses . + AvsList []string `protobuf:"bytes,1,rep,name=avs_list,json=avsList,proto3" json:"avs_list,omitempty"` +} + +func (m *QueryAllAVSsByOperatorResponse) Reset() { *m = QueryAllAVSsByOperatorResponse{} } +func (m *QueryAllAVSsByOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllAVSsByOperatorResponse) ProtoMessage() {} +func (*QueryAllAVSsByOperatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f91e795a3cecbdbf, []int{23} +} +func (m *QueryAllAVSsByOperatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllAVSsByOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllAVSsByOperatorResponse.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 *QueryAllAVSsByOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllAVSsByOperatorResponse.Merge(m, src) +} +func (m *QueryAllAVSsByOperatorResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllAVSsByOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllAVSsByOperatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllAVSsByOperatorResponse proto.InternalMessageInfo + +func (m *QueryAllAVSsByOperatorResponse) GetAvsList() []string { + if m != nil { + return m.AvsList + } + return nil +} + func init() { proto.RegisterType((*GetOperatorInfoReq)(nil), "exocore.operator.v1.GetOperatorInfoReq") proto.RegisterType((*QueryAllOperatorsRequest)(nil), "exocore.operator.v1.QueryAllOperatorsRequest") @@ -1158,91 +1348,105 @@ func init() { proto.RegisterType((*QueryAllOperatorConsAddrsByChainIDRequest)(nil), "exocore.operator.v1.QueryAllOperatorConsAddrsByChainIDRequest") proto.RegisterType((*QueryAllOperatorConsAddrsByChainIDResponse)(nil), "exocore.operator.v1.QueryAllOperatorConsAddrsByChainIDResponse") proto.RegisterType((*OperatorConsAddrPair)(nil), "exocore.operator.v1.OperatorConsAddrPair") + proto.RegisterType((*QueryAllOperatorsWithOptInAVSRequest)(nil), "exocore.operator.v1.QueryAllOperatorsWithOptInAVSRequest") + proto.RegisterType((*QueryAllOperatorsWithOptInAVSResponse)(nil), "exocore.operator.v1.QueryAllOperatorsWithOptInAVSResponse") + proto.RegisterType((*QueryAllAVSsByOperatorRequest)(nil), "exocore.operator.v1.QueryAllAVSsByOperatorRequest") + proto.RegisterType((*QueryAllAVSsByOperatorResponse)(nil), "exocore.operator.v1.QueryAllAVSsByOperatorResponse") } func init() { proto.RegisterFile("exocore/operator/v1/query.proto", fileDescriptor_f91e795a3cecbdbf) } var fileDescriptor_f91e795a3cecbdbf = []byte{ - // 1255 bytes of a gzipped FileDescriptorProto + // 1417 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x73, 0xdb, 0x44, - 0x14, 0xcf, 0xa6, 0x2d, 0xad, 0x5f, 0xda, 0xd2, 0x6c, 0x52, 0x48, 0xdc, 0xd4, 0x4e, 0x35, 0xd0, - 0xa4, 0x26, 0x91, 0x88, 0x93, 0x72, 0x68, 0x29, 0x4c, 0x1c, 0x37, 0x25, 0x0d, 0x43, 0x82, 0x3c, - 0x64, 0x80, 0x03, 0x1e, 0x59, 0xda, 0x3a, 0x9a, 0x28, 0x5a, 0x47, 0x2b, 0x9b, 0x78, 0x32, 0x61, - 0x18, 0x4e, 0x30, 0x5c, 0x18, 0x7a, 0x64, 0xe0, 0x3b, 0xc0, 0x30, 0x5c, 0xf8, 0x00, 0xf4, 0xc0, - 0x21, 0xc0, 0x85, 0x53, 0x60, 0x1c, 0x3e, 0x08, 0xa3, 0xd5, 0xca, 0x7f, 0x14, 0xf9, 0x5f, 0xf0, - 0x70, 0xb3, 0x56, 0xef, 0xed, 0xfb, 0xfd, 0x7e, 0xef, 0xbd, 0x7d, 0x2b, 0x43, 0x92, 0xec, 0x53, - 0x9d, 0x3a, 0x44, 0xa1, 0x25, 0xe2, 0x68, 0x2e, 0x75, 0x94, 0xca, 0x82, 0xb2, 0x57, 0x26, 0x4e, - 0x55, 0x2e, 0x39, 0xd4, 0xa5, 0x78, 0x4c, 0x18, 0xc8, 0x81, 0x81, 0x5c, 0x59, 0x88, 0xa7, 0x74, - 0xca, 0x76, 0x29, 0x53, 0x0a, 0x1a, 0x23, 0xbe, 0xb5, 0x52, 0x59, 0x28, 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6, 0x64, 0xf4, 0x7a, 0x7f, 0xc7, 0x7f, 0xcc, 0x00, 0x90, 0xbe, 0xb6, + 0x1f, 0x53, 0x41, 0x6b, 0x81, 0xd3, 0xd2, 0xd0, 0x4c, 0xc2, 0x89, 0xc5, 0xf4, 0xb6, 0x01, 0x41, + 0xdf, 0x30, 0xeb, 0x74, 0x13, 0xfd, 0x22, 0xb3, 0xad, 0xa3, 0xad, 0x77, 0xcb, 0xb6, 0xa4, 0x01, + 0xa2, 0x5b, 0xb6, 0x25, 0xce, 0x0d, 0x7d, 0x20, 0x97, 0x63, 0x45, 0xf3, 0x94, 0xdd, 0xcc, 0xdf, + 0x7b, 0xba, 0x93, 0x51, 0xb6, 0x76, 0x32, 0xca, 0xdf, 0x3b, 0x19, 0xe5, 0xeb, 0xdd, 0xcc, 0xc0, + 0xd6, 0x6e, 0x66, 0xe0, 0xcf, 0xdd, 0xcc, 0xc0, 0x47, 0xd9, 0x8a, 0xcd, 0xd6, 0x6b, 0x6b, 0x9a, + 0x45, 0x1e, 0xea, 0x37, 0x83, 0x1d, 0xdf, 0xc1, 0xec, 0x13, 0xe2, 0x3d, 0x08, 0x1d, 0x3c, 0x6e, + 0xba, 0x60, 0x8d, 0x2a, 0xa6, 0x6b, 0xcf, 0xf1, 0xff, 0x09, 0xe7, 0xff, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0xcc, 0x34, 0x72, 0xd4, 0x16, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1277,6 +1481,10 @@ type QueryClient interface { // QueryAllOperatorConsAddrsByChainID queries all operators and their consensus addresses // for a specific chain ID QueryAllOperatorConsAddrsByChainID(ctx context.Context, in *QueryAllOperatorConsAddrsByChainIDRequest, opts ...grpc.CallOption) (*QueryAllOperatorConsAddrsByChainIDResponse, error) + // QueryAllOperatorsWithOptInAVS queries operator list by avs. + QueryAllOperatorsWithOptInAVS(ctx context.Context, in *QueryAllOperatorsWithOptInAVSRequest, opts ...grpc.CallOption) (*QueryAllOperatorsWithOptInAVSResponse, error) + // QueryAllAVSsByOperator queries avs list. + QueryAllAVSsByOperator(ctx context.Context, in *QueryAllAVSsByOperatorRequest, opts ...grpc.CallOption) (*QueryAllAVSsByOperatorResponse, error) } type queryClient struct { @@ -1368,6 +1576,24 @@ func (c *queryClient) QueryAllOperatorConsAddrsByChainID(ctx context.Context, in return out, nil } +func (c *queryClient) QueryAllOperatorsWithOptInAVS(ctx context.Context, in *QueryAllOperatorsWithOptInAVSRequest, opts ...grpc.CallOption) (*QueryAllOperatorsWithOptInAVSResponse, error) { + out := new(QueryAllOperatorsWithOptInAVSResponse) + err := c.cc.Invoke(ctx, "/exocore.operator.v1.Query/QueryAllOperatorsWithOptInAVS", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) QueryAllAVSsByOperator(ctx context.Context, in *QueryAllAVSsByOperatorRequest, opts ...grpc.CallOption) (*QueryAllAVSsByOperatorResponse, error) { + out := new(QueryAllAVSsByOperatorResponse) + err := c.cc.Invoke(ctx, "/exocore.operator.v1.Query/QueryAllAVSsByOperator", 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. @@ -1390,6 +1616,10 @@ type QueryServer interface { // QueryAllOperatorConsAddrsByChainID queries all operators and their consensus addresses // for a specific chain ID QueryAllOperatorConsAddrsByChainID(context.Context, *QueryAllOperatorConsAddrsByChainIDRequest) (*QueryAllOperatorConsAddrsByChainIDResponse, error) + // QueryAllOperatorsWithOptInAVS queries operator list by avs. + QueryAllOperatorsWithOptInAVS(context.Context, *QueryAllOperatorsWithOptInAVSRequest) (*QueryAllOperatorsWithOptInAVSResponse, error) + // QueryAllAVSsByOperator queries avs list. + QueryAllAVSsByOperator(context.Context, *QueryAllAVSsByOperatorRequest) (*QueryAllAVSsByOperatorResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1423,6 +1653,12 @@ func (*UnimplementedQueryServer) QueryOperatorSlashInfo(ctx context.Context, req func (*UnimplementedQueryServer) QueryAllOperatorConsAddrsByChainID(ctx context.Context, req *QueryAllOperatorConsAddrsByChainIDRequest) (*QueryAllOperatorConsAddrsByChainIDResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryAllOperatorConsAddrsByChainID not implemented") } +func (*UnimplementedQueryServer) QueryAllOperatorsWithOptInAVS(ctx context.Context, req *QueryAllOperatorsWithOptInAVSRequest) (*QueryAllOperatorsWithOptInAVSResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllOperatorsWithOptInAVS not implemented") +} +func (*UnimplementedQueryServer) QueryAllAVSsByOperator(ctx context.Context, req *QueryAllAVSsByOperatorRequest) (*QueryAllAVSsByOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAllAVSsByOperator not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1590,6 +1826,42 @@ func _Query_QueryAllOperatorConsAddrsByChainID_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } +func _Query_QueryAllOperatorsWithOptInAVS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllOperatorsWithOptInAVSRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QueryAllOperatorsWithOptInAVS(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/exocore.operator.v1.Query/QueryAllOperatorsWithOptInAVS", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryAllOperatorsWithOptInAVS(ctx, req.(*QueryAllOperatorsWithOptInAVSRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_QueryAllAVSsByOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllAVSsByOperatorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).QueryAllAVSsByOperator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/exocore.operator.v1.Query/QueryAllAVSsByOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).QueryAllAVSsByOperator(ctx, req.(*QueryAllAVSsByOperatorRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "exocore.operator.v1.Query", HandlerType: (*QueryServer)(nil), @@ -1630,6 +1902,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "QueryAllOperatorConsAddrsByChainID", Handler: _Query_QueryAllOperatorConsAddrsByChainID_Handler, }, + { + MethodName: "QueryAllOperatorsWithOptInAVS", + Handler: _Query_QueryAllOperatorsWithOptInAVS_Handler, + }, + { + MethodName: "QueryAllAVSsByOperator", + Handler: _Query_QueryAllAVSsByOperator_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "exocore/operator/v1/query.proto", @@ -2457,6 +2737,130 @@ func (m *OperatorConsAddrPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *QueryAllOperatorsWithOptInAVSRequest) 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 *QueryAllOperatorsWithOptInAVSRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllOperatorsWithOptInAVSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Avs) > 0 { + i -= len(m.Avs) + copy(dAtA[i:], m.Avs) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Avs))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllOperatorsWithOptInAVSResponse) 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 *QueryAllOperatorsWithOptInAVSResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllOperatorsWithOptInAVSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OperatorList) > 0 { + for iNdEx := len(m.OperatorList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.OperatorList[iNdEx]) + copy(dAtA[i:], m.OperatorList[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OperatorList[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryAllAVSsByOperatorRequest) 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 *QueryAllAVSsByOperatorRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllAVSsByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllAVSsByOperatorResponse) 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 *QueryAllAVSsByOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllAVSsByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AvsList) > 0 { + for iNdEx := len(m.AvsList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AvsList[iNdEx]) + copy(dAtA[i:], m.AvsList[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AvsList[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -2798,16 +3202,72 @@ func (m *OperatorConsAddrPair) Size() (n int) { return n } -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GetOperatorInfoReq) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { +func (m *QueryAllOperatorsWithOptInAVSRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Avs) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllOperatorsWithOptInAVSResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.OperatorList) > 0 { + for _, s := range m.OperatorList { + l = len(s) + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryAllAVSsByOperatorRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllAVSsByOperatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AvsList) > 0 { + for _, s := range m.AvsList { + l = len(s) + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GetOperatorInfoReq) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { @@ -4999,6 +5459,334 @@ func (m *OperatorConsAddrPair) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryAllOperatorsWithOptInAVSRequest) 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: QueryAllOperatorsWithOptInAVSRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllOperatorsWithOptInAVSRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Avs", 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.Avs = 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 *QueryAllOperatorsWithOptInAVSResponse) 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: QueryAllOperatorsWithOptInAVSResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllOperatorsWithOptInAVSResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorList", 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.OperatorList = append(m.OperatorList, 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 *QueryAllAVSsByOperatorRequest) 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: QueryAllAVSsByOperatorRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllAVSsByOperatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = 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 *QueryAllAVSsByOperatorResponse) 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: QueryAllAVSsByOperatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllAVSsByOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AvsList", 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.AvsList = append(m.AvsList, 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 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 dd2a98902..8a7a6ca14 100644 --- a/x/operator/types/query.pb.gw.go +++ b/x/operator/types/query.pb.gw.go @@ -527,6 +527,114 @@ func local_request_Query_QueryAllOperatorConsAddrsByChainID_0(ctx context.Contex } +func request_Query_QueryAllOperatorsWithOptInAVS_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllOperatorsWithOptInAVSRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["avs"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "avs") + } + + protoReq.Avs, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "avs", err) + } + + msg, err := client.QueryAllOperatorsWithOptInAVS(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryAllOperatorsWithOptInAVS_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllOperatorsWithOptInAVSRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["avs"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "avs") + } + + protoReq.Avs, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "avs", err) + } + + msg, err := server.QueryAllOperatorsWithOptInAVS(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_QueryAllAVSsByOperator_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllAVSsByOperatorRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["operator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "operator") + } + + protoReq.Operator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "operator", err) + } + + msg, err := client.QueryAllAVSsByOperator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_QueryAllAVSsByOperator_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllAVSsByOperatorRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["operator"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "operator") + } + + protoReq.Operator, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "operator", err) + } + + msg, err := server.QueryAllAVSsByOperator(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. @@ -740,6 +848,52 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_QueryAllOperatorsWithOptInAVS_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_QueryAllOperatorsWithOptInAVS_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_QueryAllOperatorsWithOptInAVS_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_QueryAllAVSsByOperator_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_QueryAllAVSsByOperator_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_QueryAllAVSsByOperator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -961,6 +1115,46 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_QueryAllOperatorsWithOptInAVS_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_QueryAllOperatorsWithOptInAVS_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_QueryAllOperatorsWithOptInAVS_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_QueryAllAVSsByOperator_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_QueryAllAVSsByOperator_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_QueryAllAVSsByOperator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -982,6 +1176,10 @@ var ( pattern_Query_QueryOperatorSlashInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"exocore", "operator", "v1", "QueryOperatorSlashInfo"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_QueryAllOperatorConsAddrsByChainID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"exocore", "operator", "v1", "all_operator_cons_addrs", "chain"}, "", runtime.AssumeColonVerbOpt(false))) + + 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))) ) var ( @@ -1002,4 +1200,8 @@ var ( forward_Query_QueryOperatorSlashInfo_0 = runtime.ForwardResponseMessage forward_Query_QueryAllOperatorConsAddrsByChainID_0 = runtime.ForwardResponseMessage + + forward_Query_QueryAllOperatorsWithOptInAVS_0 = runtime.ForwardResponseMessage + + forward_Query_QueryAllAVSsByOperator_0 = runtime.ForwardResponseMessage )